Home
last modified time | relevance | path

Searched refs:save_path (Results 1 – 25 of 50) sorted by relevance

12

/external/fonttools/Tests/cffLib/
DcffLib_test.py59 save_path = os.path.join(self.tempdir, 'TestOTF.otf')
60 font.save(save_path)
62 font2 = TTFont(save_path)
87 save_path = os.path.join(self.tempdir, 'TestOTF.otf')
88 font.save(save_path)
90 font2 = TTFont(save_path)
103 save_path = os.path.join(self.tempdir, 'TestOTF.otf')
104 font.save(save_path)
106 font2 = TTFont(save_path)
/external/tensorflow/tensorflow/python/keras/distribute/
Dcheckpointing_test.py76 save_path = checkpoint.save(prefix)
77 return save_path
79 save_path = checkpoint()
86 checkpoint.restore(save_path)
97 checkpoint.restore(save_path)
126 save_path = checkpoint.save(prefix, options=ckpt_options)
127 return save_path
129 save_path = checkpoint()
137 checkpoint.restore(save_path, options=ckpt_options)
/external/tensorflow/tensorflow/python/training/tracking/
Dutil.py182 def __init__(self, object_graph_proto, save_path, save_path_tensor, argument
221 self.save_path_string = save_path
223 save_path).get_variable_to_dtype_map()
320 def __init__(self, save_path, dtype_map=None): argument
321 self.save_path = save_path
382 prefix=self.save_path,
467 def object_metadata(save_path): argument
490 reader = py_checkpoint_reader.NewCheckpointReader(save_path)
498 (save_path, base.OBJECT_GRAPH_PROTO_KEY))
1050 sess=session, save_path=self._checkpoint.save_path)
[all …]
Dutil_test.py220 save_path = checkpoint.save(prefix)
223 checkpoint.restore(save_path).assert_consumed().initialize_or_restore()
227 save_path = checkpoint.save(prefix)
229 checkpoint.restore(save_path).assert_consumed().initialize_or_restore()
242 save_path = saver.save(sess, prefix)
245 saver.restore(sess, save_path)
256 save_path = ckpt.save(file_prefix=prefix)
257 status = ckpt.restore(save_path=save_path)
271 save_path = ckpt.save(file_prefix=prefix, options=options)
272 status = ckpt.restore(save_path=save_path, options=options)
[all …]
Dpython_state_test.py142 save_path = root.save(prefix)
145 root.restore(save_path)
189 save_path = saver.save(prefix)
190 saver.restore(save_path)
195 saver.restore(save_path)
202 save_path = checkpoint.save(os.path.join(self.get_temp_dir(), "ckpt"))
204 checkpoint.restore(save_path)
208 second_checkpoint.restore(save_path)
Dbase_test.py67 save_path = saved.save(os.path.join(self.get_temp_dir(), "ckpt"))
69 restored.restore(save_path).assert_consumed()
80 save_path = saved.save(os.path.join(self.get_temp_dir(), "ckpt"))
82 status = restored.restore(save_path)
Dutil_with_v1_optimizers_test.py132 save_path = obj.save(checkpoint_prefix)
133 obj.restore(save_path)
135 obj.restore(save_path)
174 save_path = second_root_trackable.save(checkpoint_prefix)
180 status = second_root_trackable.restore(save_path)
243 save_path = save_root.save(checkpoint_prefix)
249 status = load_root.restore(save_path)
/external/tensorflow/tensorflow/python/keras/tests/
Dtracking_test.py102 save_path = os.path.join(self.get_temp_dir(), "ckpt")
103 model.save_weights(save_path)
105 model.load_weights(save_path)
281 save_path = os.path.join(self.get_temp_dir(), "ckpt")
282 model.save_weights(save_path)
284 model.load_weights(save_path)
308 save_path = os.path.join(self.get_temp_dir(), "ckpt")
310 model.save_weights(save_path)
319 save_path = os.path.join(self.get_temp_dir(), "ckpt")
320 model.save_weights(save_path)
[all …]
Dsaver_test.py112 save_path = object_saver.save(file_prefix=checkpoint_prefix)
127 saver.restore(sess=sess, save_path=save_path)
131 saver.restore(sess=sess, save_path=save_path)
136 saver.restore(sess=sess, save_path=second_path)
146 save_path = object_saver.save(file_prefix=checkpoint_prefix)
153 saver.restore(sess=None, save_path=save_path)
Dtracking_util_test.py219 save_path = root_trackable.save(file_prefix=prefix)
226 status = root_trackable.restore(save_path=save_path).assert_consumed()
238 status = on_create_root.restore(save_path=save_path)
314 status = root.restore(save_path=checkpoint_path)
354 status = root.restore(save_path=manager.latest_checkpoint)
377 save_path = original_root.save(prefix)
381 partial_root.restore(save_path)
409 status = root.restore(save_path=checkpoint_path)
565 save_path = obj.save(checkpoint_prefix)
566 obj.restore(save_path)
[all …]
Dtracking_util_with_v1_optimizers_test.py205 save_path = root_trackable.save(file_prefix=prefix)
211 status = root_trackable.restore(save_path=save_path).assert_consumed()
228 status = on_create_root.restore(save_path=save_path)
365 status = root.restore(save_path=checkpoint_path)
400 status = root.restore(save_path=manager.latest_checkpoint)
434 status = root.restore(save_path=checkpoint_path)
508 status = root.restore(save_path=checkpoint_path)
530 status = root.restore(save_path=model_save_path)
554 status = root.restore(save_path=model_save_path)
555 init_only_optimizer_status = opt_root.restore(save_path=None)
[all …]
/external/tensorflow/tensorflow/python/distribute/
Dvalues_test.py448 save_path = checkpoint.save(prefix)
457 checkpoint.restore(save_path).assert_consumed().run_restore_ops()
979 save_path, _ = self._save_return_saver(sess, var)
980 return save_path
991 save_path = self._save(sess, mirrored)
995 return save_path
1007 save_path = self._save(sess, var)
1011 return save_path
1013 def _restore_normal(self, save_path): argument
1024 saver.restore(sess, save_path)
[all …]
Dcheckpointing_test.py48 save_path = save_checkpoint.save(
52 restore_checkpoint.restore(save_path)
/external/tensorflow/tensorflow/python/training/
Dsaver_test.py81 save_path = os.path.join(self.get_temp_dir(), "basic_save_restore")
108 val = save.save(sess, save_path)
110 self.assertEqual(save_path, val)
127 save.restore(sess, save_path)
155 save2.restore(sess, save_path)
267 save_path = os.path.join(self.get_temp_dir(), "resource_cache")
276 save.save(sess, save_path)
279 save2.restore(sess, save_path)
394 save_path = os.path.join(self.get_temp_dir(), "int64")
403 val = save.save(sess, save_path)
[all …]
Dsaver.py1089 save_path, argument
1160 save_path = compat.as_str(save_path)
1164 checkpoint_file = "%s-%d" % (save_path, global_step)
1167 checkpoint_file = "%s-%s" % (save_path, "{:08d}".format(global_step))
1169 checkpoint_file = save_path
1170 if os.path.basename(save_path) == latest_filename and not self._sharded:
1174 (latest_filename, save_path))
1180 save_path_parent = os.path.dirname(save_path)
1206 save_path))
1270 def restore(self, sess, save_path): argument
[all …]
Dsaver_large_partitioned_variable_test.py39 save_path = os.path.join(self.get_temp_dir(), "large_variable")
56 val = save.save(sess, save_path)
57 self.assertEqual(save_path, val)
Dcheckpoint_management.py816 save_path = self._checkpoint.write(prefix)
818 save_path = self._checkpoint.write(prefix, options=options)
822 if save_path in self._maybe_delete:
823 del self._maybe_delete[save_path]
824 self._maybe_delete[save_path] = timestamp
825 self._latest_checkpoint = save_path
835 return save_path
Dquantize_training_test.py58 save_path = os.path.join(self.get_temp_dir(), 'quantized_save_restore')
84 saver.save(sess, save_path)
91 saver.restore(sess, save_path)
Dsaver_large_variable_test.py40 save_path = os.path.join(self.get_temp_dir(), "large_variable")
56 save.save(sess, save_path)
Dsupervisor_test.py436 self._wait_for_glob(sv.save_path, 3.0)
605 save_path = sv.save_path
606 self._wait_for_glob(save_path, 3.0)
749 filename = sv.saver.save(sess, sv.save_path)
758 sv2.saver.save(sess, sv2.save_path)
775 save_path = sv.save_path
776 self._wait_for_glob(save_path, 3.0)
810 sav.restore(sess, save_path)
826 save_path = "%s-123" % sv.save_path
827 self._wait_for_glob(save_path, 3.0)
[all …]
/external/tensorflow/tensorflow/python/kernel_tests/boosted_trees/
Dquantile_ops_test.py182 save_path = os.path.join(tempfile.mkdtemp(prefix=save_dir), "hash")
204 save.save(sess, save_path)
213 save.restore(sess, save_path)
220 save_path = os.path.join(tempfile.mkdtemp(prefix=save_dir), "hash")
238 save.save(sess, save_path)
250 save.restore(sess, save_path)
/external/tensorflow/tensorflow/tools/api/golden/v2/
Dtensorflow.train.-checkpoint.pbtxt17 …argspec: "args=[\'self\', \'save_path\', \'options\'], varargs=None, keywords=None, defaults=[\'No…
21 …argspec: "args=[\'self\', \'save_path\', \'options\'], varargs=None, keywords=None, defaults=[\'No…
/external/tensorflow/tensorflow/python/data/kernel_tests/
Dcheckpoint_test.py309 save_path = checkpoint.save(checkpoint_prefix)
312 checkpoint.restore(save_path).run_restore_ops()
338 save_path = checkpoint.save(checkpoint_prefix)
342 checkpoint.restore(save_path).run_restore_ops()
357 save_path = checkpoint.save(checkpoint_prefix)
359 checkpoint.restore(save_path).run_restore_ops()
361 save_path = checkpoint.save(checkpoint_prefix)
362 checkpoint.restore(save_path).run_restore_ops()
558 save_path = checkpoint.save(checkpoint_prefix)
561 checkpoint.restore(save_path).run_restore_ops()
/external/tensorflow/tensorflow/python/tpu/
Dasync_checkpoint.py72 save_path = os.path.join(checkpoint_dir, checkpoint_basename)
74 save_path)
83 self._save_path = save_path
/external/tensorflow/tensorflow/tools/api/golden/v1/
Dtensorflow.train.-saver.pbtxt35 argspec: "args=[\'self\', \'sess\', \'save_path\'], varargs=None, keywords=None, defaults=None"
39 …argspec: "args=[\'self\', \'sess\', \'save_path\', \'global_step\', \'latest_filename\', \'meta_gr…

12