Skip to content
Open
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
8 changes: 4 additions & 4 deletions tests/zero_code_change/test_tensorflow2_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def helper_test_keras_v2_json_config(
run_eagerly=run_eagerly,
)
history = model.fit(
x_train, y_train, batch_size=64, epochs=2, validation_split=0.2, callbacks=[hook]
x_train, y_train, batch_size=64, epochs=1, validation_split=0.2, callbacks=[hook]
)
test_scores = model.evaluate(x_test, y_test, verbose=2, callbacks=[hook])
else:
Expand All @@ -149,7 +149,7 @@ def helper_test_keras_v2_json_config(
metrics=["accuracy"],
run_eagerly=run_eagerly,
)
history = model.fit(x_train, y_train, epochs=2, batch_size=64, validation_split=0.2)
history = model.fit(x_train, y_train, epochs=1, batch_size=64, validation_split=0.2)
test_scores = model.evaluate(x_test, y_test, verbose=2)

hook = smd.get_hook()
Expand Down Expand Up @@ -183,7 +183,7 @@ def test_keras_v2_multi_collections(script_mode, eager_mode):
"S3OutputPath": "s3://sagemaker-test",
"LocalPath": "/opt/ml/output/tensors",
"HookParameters" : {
"save_interval": "2",
"save_steps": "0",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

save step 0,1,2,3. same on L222

"include_workers": "all"
},
"CollectionConfigurations": [
Expand Down Expand Up @@ -219,7 +219,7 @@ def test_keras_v2_save_all(script_mode, eager_mode):
"S3OutputPath": "s3://sagemaker-test",
"LocalPath": "/opt/ml/output/tensors",
"HookParameters" : {
"save_steps": "0,1,2,3",
"save_steps": "0",
"save_all": true
}
}
Expand Down