We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3734314 commit 1badf76Copy full SHA for 1badf76
src/sagemaker/tensorflow/estimator.py
@@ -545,9 +545,12 @@ def hyperparameters(self):
545
mpi_dict = self.distributions["mpi"]
546
mpi_enabled = mpi_dict.get("enabled", False)
547
additional_hyperparameters[self.LAUNCH_MPI_ENV_NAME] = mpi_enabled
548
- additional_hyperparameters[self.MPI_NUM_PROCESSES_PER_HOST] = mpi_dict.get(
549
- "processes_per_host", 1
550
- )
+
+ if mpi_dict.get("processes_per_host"):
+ additional_hyperparameters[self.MPI_NUM_PROCESSES_PER_HOST] = mpi_dict.get(
551
+ "processes_per_host"
552
+ )
553
554
additional_hyperparameters[self.MPI_CUSTOM_MPI_OPTIONS] = mpi_dict.get(
555
"custom_mpi_options", ""
556
)
0 commit comments