コード例 #1
0
 def test_test_data_uri(self):
     env_vars = training_utils.EnvironmentVariables()
     assert env_vars.test_data_uri == _TEST_TEST_DATA_URI
コード例 #2
0
 def test_test_data_uri_none(self):
     env_vars = training_utils.EnvironmentVariables()
     assert env_vars.test_data_uri is None
コード例 #3
0
 def test_tf_config_none(self):
     env_vars = training_utils.EnvironmentVariables()
     assert env_vars.tf_config is None
コード例 #4
0
 def test_validation_data_uri(self):
     env_vars = training_utils.EnvironmentVariables()
     assert env_vars.validation_data_uri == _TEST_VALIDATION_DATA_URI
コード例 #5
0
 def test_cluster_spec_none(self):
     env_vars = training_utils.EnvironmentVariables()
     assert env_vars.cluster_spec is None
コード例 #6
0
 def test_tf_config(self):
     env_vars = training_utils.EnvironmentVariables()
     assert env_vars.tf_config == json.loads(_TEST_CLUSTER_SPEC)
コード例 #7
0
 def test_tensorboard_log_dir_none(self):
     env_vars = training_utils.EnvironmentVariables()
     assert env_vars.tensorboard_log_dir is None
コード例 #8
0
 def test_cluster_spec(self):
     env_vars = training_utils.EnvironmentVariables()
     assert env_vars.cluster_spec == json.loads(_TEST_CLUSTER_SPEC)
コード例 #9
0
 def test_tensorboard_log_dir(self):
     env_vars = training_utils.EnvironmentVariables()
     assert env_vars.tensorboard_log_dir == _TEST_TENSORBOARD_LOG_DIR
コード例 #10
0
 def test_checkpoint_dir_none(self):
     env_vars = training_utils.EnvironmentVariables()
     assert env_vars.checkpoint_dir is None
コード例 #11
0
 def test_checkpoint_dir(self):
     env_vars = training_utils.EnvironmentVariables()
     assert env_vars.checkpoint_dir == _TEST_CHECKPOINT_DIR
コード例 #12
0
 def test_model_dir_none(self):
     env_vars = training_utils.EnvironmentVariables()
     assert env_vars.model_dir is None
コード例 #13
0
 def test_model_dir(self):
     env_vars = training_utils.EnvironmentVariables()
     assert env_vars.model_dir == _TEST_MODEL_DIR