Searched refs:as_text (Results 1 - 25 of 31) sorted by relevance

12

/external/tensorflow/tensorflow/python/framework/
H A Dgraph_io.py31 def write_graph(graph_or_graph_def, logdir, name, as_text=True):
34 The graph is written as a text proto unless `as_text` is `False`.
55 as_text: If `True`, writes the graph as an ASCII proto.
69 if as_text:
H A Dop_def_library.py689 (key, op_type_name, compat.as_text(attr_value.s),
690 '", "'.join(map(compat.as_text,
699 (key, op_type_name, compat.as_text(x),
700 '", "'.join(map(compat.as_text,
H A Derrors_impl.py515 compat.as_text(c_api.TF_Message(self.status.status)),
H A Dmeta_graph.py813 as_text=False,
836 as_text: If `True`, writes the `MetaGraphDef` as an ASCII proto.
942 as_text=as_text)
/external/tensorflow/tensorflow/python/estimator/
H A Dexporter.py78 as_text=False,
94 as_text: whether to write the SavedModel proto in text format. Defaults to
106 self._as_text = as_text
121 as_text=self._as_text,
139 as_text=False):
154 as_text: whether to write the SavedModel proto in text format. Defaults to
162 assets_extra, as_text)
191 as_text=False,
207 as_text: whether to write the SavedModel proto in text format. Defaults to
218 assets_extra, as_text)
[all...]
H A Dexporter_test.py58 as_text=False,
71 as_text=False,
87 as_text=False)
105 as_text=False,
H A Destimator.py535 as_text=False,
576 as_text: whether to write the SavedModel proto in text format.
643 builder.save(as_text)
/external/tensorflow/tensorflow/python/util/
H A Dcompat.py21 @@as_text
71 @tf_export('compat.as_text')
72 def as_text(bytes_or_text, encoding='utf-8'): function
97 as_str = as_text
/external/tensorflow/tensorflow/python/saved_model/
H A Dbuilder_impl.py367 compat.as_text(self._export_dir),
368 compat.as_text(constants.VARIABLES_DIRECTORY))
373 compat.as_text(variables_dir),
374 compat.as_text(constants.VARIABLES_FILENAME))
416 def save(self, as_text=False):
423 as_text: Writes the SavedModel protocol buffer in text format to disk.
431 if as_text:
H A Dsaved_model_test.py93 compat.as_text(actual_asset_contents))
387 builder.save(as_text=True)
417 builder.save(as_text=True)
899 builder.save(as_text=True)
961 builder.save(as_text=True)
/external/skia/infra/bots/recipe_modules/swarming_client/
H A Dapi.py83 as_text = '.'.join(map(str, step_test_data))
84 step_test_data_cb = lambda: self.m.raw_io.test_api.stream_output(as_text)
/external/skqp/infra/bots/recipe_modules/swarming_client/
H A Dapi.py83 as_text = '.'.join(map(str, step_test_data))
84 step_test_data_cb = lambda: self.m.raw_io.test_api.stream_output(as_text)
/external/tensorflow/tensorflow/contrib/learn/python/learn/utils/
H A Dsaved_model_export_utils.py393 as_text=False,
412 as_text: whether to write the SavedModel proto in text format.
453 as_text=as_text,
462 as_text=as_text,
475 as_text=False,
499 as_text: whether to write the SavedModel proto in text format.
524 as_text=as_text,
[all...]
H A Dsaved_model_export_utils_test.py58 as_text=False,
682 as_text=False,
/external/tensorflow/tensorflow/python/client/
H A Devents_writer_test.py38 filename = compat.as_text(writer.FileName())
/external/tensorflow/tensorflow/contrib/session_bundle/
H A Dexporter.py281 tmp_export_dir = compat.as_text(export_dir) + "-tmp"
287 compat.as_text(tmp_export_dir),
288 compat.as_text(constants.EXPORT_BASE_NAME)),
/external/tensorflow/tensorflow/examples/saved_model/
H A Dsaved_model_half_plus_two.py107 as_text=False,
113 as_text: Writes the SavedModel protocol buffer in text format to disk.
215 builder.save(as_text)
222 _generate_saved_model_for_half_plus_two(FLAGS.output_dir_pbtxt, as_text=True)
/external/tensorflow/tensorflow/core/platform/
H A Denv_test.cc126 string as_text; local
127 EXPECT_TRUE(protobuf::TextFormat::PrintToString(proto, &as_text));
128 TF_EXPECT_OK(WriteStringToFile(env_, filename, as_text));
/external/tensorflow/tensorflow/examples/speech_commands/
H A Dfreeze.py126 as_text=False)
/external/syslinux/com32/tools/
H A Drelocs.c665 static void emit_relocs(int as_text, int use_real_mode) argument
694 if (as_text) {
748 int as_text, use_real_mode; local
755 as_text = 0;
770 as_text = 1;
806 emit_relocs(as_text, use_real_mode);
/external/tensorflow/tensorflow/python/kernel_tests/
H A Dreader_ops_test.py318 self.assertAllEqual("%s:%d" % (files[i], j + 1), compat.as_text(k))
343 self.assertAllEqual("%s:%d" % (files[i], j + 2), compat.as_text(k))
505 self.assertAllEqual("%s:%d" % (files[i], j), compat.as_text(k))
533 self.assertAllEqual("%s:%d" % (files[i], j), compat.as_text(k))
614 self.assertTrue(compat.as_text(k).startswith("%s:" % files[i]))
672 self.assertTrue(compat.as_text(k).startswith("%s:" % zlib_files[i]))
698 self.assertTrue(compat.as_text(k).startswith("%s:" % gzip_files[i]))
760 self.assertTrue(compat.as_text(k).startswith("%s:" % files[i]))
799 self.assertTrue(compat.as_text(k).startswith("%s:" % fn))
/external/tensorflow/tensorflow/python/training/
H A Dsaver.py1693 as_text=False,
1704 as_text: If `True`, writes the meta_graph as an ASCII proto.
1724 as_text=as_text,
1929 as_text=False,
1951 as_text: If `True`, writes the `MetaGraphDef` as an ASCII proto.
1990 as_text=as_text,
/external/tensorflow/tensorflow/python/debug/lib/
H A Dgrpc_debug_server.py250 compat.as_text(value.metadata.plugin_data.content))
H A Dgrpc_debug_test_server.py204 content = json.loads(compat.as_text(summary_metadata.plugin_data.content))
/external/tensorflow/tensorflow/python/tools/
H A Dfreeze_graph_test.py158 builder.save(as_text=True)

Completed in 593 milliseconds

12