Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions tests/tensorflow2/test_should_save_tensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# First Party
import smdebug.tensorflow as smd
from smdebug.core.collection import CollectionKeys
from smdebug.core.modes import ModeKeys
from smdebug.tensorflow import SaveConfig
from smdebug.tensorflow.constants import TF_DEFAULT_SAVED_COLLECTIONS

Expand All @@ -27,6 +28,9 @@ def helper_create_hook(out_dir, collections, include_regex=None):
hook.get_collection(collection).include(include_regex)

hook.register_model(model)
hook.set_mode(ModeKeys.TRAIN)
hook._prepare_collections()
hook._increment_step()
hook.on_train_begin()
return hook

Expand Down