Home
last modified time | relevance | path

Searched refs:checkpoint_dir (Results 1 – 25 of 27) sorted by relevance

12

/external/tensorflow/tensorflow/python/training/
Dcheckpoint_utils_test.py44 def _create_checkpoints(sess, checkpoint_dir): argument
45 checkpoint_prefix = os.path.join(checkpoint_dir, "model")
63 def _create_partition_checkpoints(sess, checkpoint_dir): argument
64 checkpoint_prefix = os.path.join(checkpoint_dir, "model")
87 checkpoint_dir = self.get_temp_dir() + "/no_checkpoints"
90 checkpoint_utils.load_variable(checkpoint_dir, "var1"), [])
93 checkpoint_dir = self.get_temp_dir()
95 _, _, _, _ = _create_checkpoints(session, checkpoint_dir)
98 checkpoint_utils.load_variable(checkpoint_dir, "var5"), [])
101 checkpoint_dir = self.get_temp_dir()
[all …]
Dsession_manager_test.py91 checkpoint_dir = os.path.join(self.get_temp_dir(), "prepare_session")
94 gfile.DeleteRecursively(checkpoint_dir)
98 gfile.MakeDirs(checkpoint_dir)
109 checkpoint_dir=checkpoint_dir)
111 checkpoint_filename = os.path.join(checkpoint_dir,
117 os.rename(checkpoint_dir, checkpoint_dir2)
118 gfile.MakeDirs(checkpoint_dir)
132 checkpoint_dir=checkpoint_dir,
136 gfile.DeleteRecursively(checkpoint_dir)
137 os.rename(checkpoint_dir2, checkpoint_dir)
[all …]
Devaluation_test.py75 def _train_model(self, checkpoint_dir, num_steps): argument
98 checkpoint_dir=checkpoint_dir,
108 checkpoint_dir = os.path.join(self.get_temp_dir(),
112 self._train_model(checkpoint_dir, num_steps=300)
122 checkpoint_path = saver.latest_checkpoint(checkpoint_dir)
134 checkpoint_dir = os.path.join(self.get_temp_dir(),
138 self._train_model(checkpoint_dir, num_steps=300)
154 checkpoint_path = saver.latest_checkpoint(checkpoint_dir)
173 checkpoint_dir = os.path.join(self.get_temp_dir(), 'eval_ops_and_final_ops')
176 self._train_model(checkpoint_dir, num_steps=1)
[all …]
Dsession_manager.py163 checkpoint_dir=None, argument
200 if checkpoint_dir and checkpoint_filename_with_path:
205 if not saver or not (checkpoint_dir or checkpoint_filename_with_path):
214 ckpt = checkpoint_management.get_checkpoint_state(checkpoint_dir)
220 ckpt = checkpoint_management.get_checkpoint_state(checkpoint_dir)
233 checkpoint_dir=None, argument
291 checkpoint_dir=checkpoint_dir,
324 checkpoint_dir=None, argument
356 checkpoint_dir=checkpoint_dir,
369 restoring_file = checkpoint_dir or checkpoint_filename_with_path
Dmonitored_session.py324 checkpoint_dir=None, argument
372 summary_dir = summary_dir or checkpoint_dir
403 checkpoint_dir):
407 checkpoint_dir,
415 os.path.join(checkpoint_dir, tmpdir),
425 checkpoint_dir=checkpoint_dir,
437 checkpoint_dir=None, argument
536 checkpoint_dir=checkpoint_dir,
566 checkpoint_dir=checkpoint_dir,
570 summary_dir = summary_dir or checkpoint_dir
[all …]
Dcheckpoint_utils.py121 def wait_for_new_checkpoint(checkpoint_dir, argument
139 logging.info("Waiting for new checkpoint at %s", checkpoint_dir)
142 checkpoint_path = checkpoint_management.latest_checkpoint(checkpoint_dir)
153 def checkpoints_iterator(checkpoint_dir, argument
198 checkpoint_dir, checkpoint_path, timeout=timeout)
Dcheckpoint_management.py252 def get_checkpoint_state(checkpoint_dir, latest_filename=None): argument
271 coord_checkpoint_filename = _GetCheckpointFilename(checkpoint_dir,
284 + checkpoint_dir)
288 ckpt.model_checkpoint_path = os.path.join(checkpoint_dir,
292 ckpt.all_model_checkpoint_paths[i] = os.path.join(checkpoint_dir, p)
328 def latest_checkpoint(checkpoint_dir, latest_filename=None): argument
351 ckpt = get_checkpoint_state(checkpoint_dir, latest_filename)
Dmonitored_session_test.py296 is_chief=True, checkpoint_dir=logdir) as session:
302 is_chief=True, checkpoint_dir=logdir) as session:
312 checkpoint_dir=logdir,
319 is_chief=True, checkpoint_dir=logdir) as session:
329 checkpoint_dir=logdir,
338 is_chief=True, checkpoint_dir=logdir) as session:
349 checkpoint_dir=logdir,
367 checkpoint_dir=logdir,
388 checkpoint_dir=logdir,
399 is_chief=True, checkpoint_dir=logdir) as session:
[all …]
Dbasic_session_run_hooks.py517 checkpoint_dir, argument
550 self._checkpoint_dir = checkpoint_dir
551 self._save_path = os.path.join(checkpoint_dir, checkpoint_basename)
Dbasic_session_run_hooks_test.py480 checkpoint_dir=self.model_dir) as sess:
503 checkpoint_dir=self.model_dir) as sess:
523 checkpoint_dir=self.model_dir) as sess:
539 checkpoint_dir=self.model_dir) as sess2:
555 checkpoint_dir=self.model_dir) as sess:
573 checkpoint_dir=self.model_dir) as sess2:
/external/tensorflow/tensorflow/python/keras/distribute/
Dsidecar_evaluator_test.py84 checkpoint_dir = self.get_temp_dir()
87 checkpoint, checkpoint_dir, max_to_keep=2)
91 model, data=None, checkpoint_dir=checkpoint_dir, log_dir=None)
107 checkpoint_dir = os.path.join(self.get_temp_dir(), 'ckpt')
109 logging.info('checkpoint_dir = %s, log_dir = %s', checkpoint_dir, log_dir)
113 checkpoint, checkpoint_dir, max_to_keep=2)
116 file_io.list_directory_v2(checkpoint_dir),
126 checkpoint_dir=checkpoint_dir,
137 checkpoint_dir = os.path.join(self.get_temp_dir(), 'checkpoints')
146 filepath=os.path.join(checkpoint_dir, 'ckpt-{epoch}'),
[all …]
Dsidecar_evaluator.py111 checkpoint_dir, argument
148 self.checkpoint_dir = checkpoint_dir
168 self.checkpoint_dir):
Dworker_training_state.py47 def __init__(self, model, checkpoint_dir): argument
78 directory=os.path.join(checkpoint_dir, 'chief'),
81 checkpoint_dir, self._model.distribute_strategy)
/external/tensorflow/tensorflow/python/distribute/
Dcheckpoint_utils_test.py42 def _create_checkpoints(sess, checkpoint_dir): argument
43 checkpoint_prefix = os.path.join(checkpoint_dir, "model")
62 checkpoint_dir = self.get_temp_dir()
64 v1, v2 = _create_checkpoints(session, checkpoint_dir)
65 return checkpoint_dir, v1, v2
78 checkpoint_dir, v1_value, v2_value = self._get_test_object()
86 checkpoint_utils.init_from_checkpoint(checkpoint_dir, {
112 checkpoint_dir, v1_value, _ = self._get_test_object()
120 checkpoint_utils.init_from_checkpoint(checkpoint_dir, {
Ddistribute_coordinator.py221 checkpoint_dir=None, argument
256 checkpoint_dir=checkpoint_dir,
/external/tensorflow/tensorflow/python/keras/integration_test/
Dmulti_worker_tutorial_test.py144 def fn(model_path, checkpoint_dir): argument
186 write_checkpoint_dir = write_filepath(checkpoint_dir, task_type, task_id)
197 if not tf.io.gfile.exists(checkpoint_dir):
203 latest_checkpoint = tf.train.latest_checkpoint(checkpoint_dir)
210 checkpoint_dir = os.path.join(self.get_temp_dir(), 'ckpt')
216 args=(model_path, checkpoint_dir),
246 def proc_func(checkpoint_dir): argument
297 write_checkpoint_dir = write_filepath(checkpoint_dir, task_type,
302 latest_checkpoint = tf.train.latest_checkpoint(checkpoint_dir)
335 checkpoint_dir = os.path.join(self.get_temp_dir(), 'ckpt')
[all …]
/external/tensorflow/tensorflow/tools/api/golden/v2/
Dtensorflow.train.pbtxt81 …argspec: "args=[\'checkpoint_dir\', \'min_interval_secs\', \'timeout\', \'timeout_fn\'], varargs=N…
85 …argspec: "args=[\'checkpoint_dir\', \'latest_filename\'], varargs=None, keywords=None, defaults=[\…
89 …argspec: "args=[\'checkpoint_dir\', \'latest_filename\'], varargs=None, keywords=None, defaults=[\…
Dtensorflow.estimator.-checkpoint-saver-hook.pbtxt8 …argspec: "args=[\'self\', \'checkpoint_dir\', \'save_secs\', \'save_steps\', \'saver\', \'checkpoi…
/external/tensorflow/tensorflow/tools/api/golden/v1/
Dtensorflow.train.-session-manager.pbtxt11 …argspec: "args=[\'self\', \'master\', \'init_op\', \'saver\', \'checkpoint_dir\', \'checkpoint_fil…
15 …argspec: "args=[\'self\', \'master\', \'saver\', \'checkpoint_dir\', \'checkpoint_filename_with_pa…
Dtensorflow.train.-chief-session-creator.pbtxt8 …argspec: "args=[\'self\', \'scaffold\', \'master\', \'config\', \'checkpoint_dir\', \'checkpoint_f…
Dtensorflow.estimator.-checkpoint-saver-hook.pbtxt8 …argspec: "args=[\'self\', \'checkpoint_dir\', \'save_secs\', \'save_steps\', \'saver\', \'checkpoi…
Dtensorflow.train.-checkpoint-saver-hook.pbtxt8 …argspec: "args=[\'self\', \'checkpoint_dir\', \'save_secs\', \'save_steps\', \'saver\', \'checkpoi…
Dtensorflow.train.-singular-monitored-session.pbtxt16 …argspec: "args=[\'self\', \'hooks\', \'scaffold\', \'master\', \'config\', \'checkpoint_dir\', \'s…
Dtensorflow.train.pbtxt257 …argspec: "args=[\'master\', \'is_chief\', \'checkpoint_dir\', \'scaffold\', \'hooks\', \'chief_onl…
289 …argspec: "args=[\'checkpoint_dir\', \'min_interval_secs\', \'timeout\', \'timeout_fn\'], varargs=N…
325 …argspec: "args=[\'checkpoint_dir\', \'latest_filename\'], varargs=None, keywords=None, defaults=[\…
357 …argspec: "args=[\'checkpoint_dir\', \'latest_filename\'], varargs=None, keywords=None, defaults=[\…
/external/tensorflow/tensorflow/python/tpu/
Dasync_checkpoint.py47 checkpoint_dir: Text,
72 save_path = os.path.join(checkpoint_dir, checkpoint_basename)
82 self._checkpoint_dir = checkpoint_dir

12