Skip to content

Commit a47d3b3

Browse files
committed
Format
1 parent a984d04 commit a47d3b3

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

src/sagemaker/fw_utils.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,14 @@ def validate_bool(keys):
142142
for key in ["microbatches", "partitions", "active_microbatches"]:
143143
validate_positive(key)
144144

145-
for key in ["auto_partition", "contiguous", "load_partition", "horovod", "ddp", "deterministic_server"]:
145+
for key in [
146+
"auto_partition",
147+
"contiguous",
148+
"load_partition",
149+
"horovod",
150+
"ddp",
151+
"deterministic_server",
152+
]:
146153
validate_bool(key)
147154

148155
if "partition_file" in config and not isinstance(config.get("partition_file"), str):

tests/unit/test_fw_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def test_mp_config_string_names(pipeline, placement_strategy, optimize, trace_de
115115
"optimize": optimize,
116116
"trace_device": trace_device,
117117
"active_microbatches": 8,
118-
"deterministic_server": True
118+
"deterministic_server": True,
119119
}
120120
fw_utils.validate_mp_config(mp_parameters)
121121

0 commit comments

Comments
 (0)