Home
last modified time | relevance | path

Searched refs:text_format (Results 1 – 25 of 92) sorted by relevance

1234

/external/protobuf/python/google/protobuf/internal/
Dtext_format_test.py62 from google.protobuf import text_format
75 for quote in text_format._QUOTES:
118 self.RemoveRedundantZeros(text_format.MessageToString(message)),
136 text_format.MessageToString(message),
144 text_format.MessageToString(message, as_one_line=True),
155 text_format.MessageToString(message, as_one_line=True),
184 actual_ascii = text_format.MessageToString(
189 text_format.Parse(actual_ascii, parsed_message)
200 text_format.MessageToString(message, as_one_line=True),
213 self.RemoveRedundantZeros(text_format.MessageToString(
[all …]
Dproto_builder_test.py47 from google.protobuf import text_format
68 'bar: "asdf"\nfoo: 12345\n', text_format.MessageToString(proto))
79 'foo: 12345\nbar: "asdf"\n', text_format.MessageToString(proto))
/external/protobuf/python/compatibility_tests/v2.5.0/tests/google/protobuf/internal/
Dtext_format_test.py41 from google.protobuf import text_format
71 self.RemoveRedundantZeros(text_format.MessageToString(message)),
78 self.RemoveRedundantZeros(text_format.MessageToString(message)),
87 self.CompareToGoldenText(text_format.MessageToString(message),
131 self.RemoveRedundantZeros(text_format.MessageToString(message)),
146 text_format.MessageToString(message, as_one_line=True),
157 text_format.MessageToString(message, as_one_line=True),
165 text_format.MessageToString(message, as_one_line=True),
175 text_format.MessageToString(message, as_one_line=True),
196 text_format.MessageToString(message, as_one_line=True)),
[all …]
/external/tensorflow/tensorflow/python/grappler/
Dcost_analyzer_tool.py25 from google.protobuf import text_format
46 text_format.Merge(input_data, saved_model)
48 except text_format.ParseError:
55 text_format.Merge(input_data, meta_graph)
56 except text_format.ParseError:
62 text_format.Merge(input_data, graph_def)
63 except text_format.ParseError:
84 text_format.Merge(FLAGS.rewriter_config,
/external/tensorflow/tensorflow/python/kernel_tests/boosted_trees/
Dprediction_ops_test.py22 from google.protobuf import text_format
109 text_format.Merge(
177 text_format.Merge(
246 text_format.Merge(
319 text_format.Merge("""
392 text_format.Merge(
465 text_format.Merge(
557 text_format.Merge("""
672 text_format.Merge(
825 text_format.Merge("""
[all …]
Dresource_ops_test.py20 from google.protobuf import text_format
51 text_format.Merge(
181 text_format.Merge(
/external/tensorflow/tensorflow/python/util/
Dexample_parser_configuration_test.py21 from google.protobuf import text_format
78 text_format.Parse(EXPECTED_CONFIG_V2, expected)
80 text_format.Parse(EXPECTED_CONFIG_V1, expected)
/external/tensorflow/tensorflow/python/saved_model/
Dmethod_name_updater_test.py24 from google.protobuf import text_format
33 _SAVED_MODEL_PROTO = text_format.Parse("""
143 text_format.Parse(
255 text_format.Parse(
/external/tensorflow/tensorflow/python/tools/
Dprint_selective_registration_header_test.py24 from google.protobuf import text_format
105 text_format.Parse(d, graph_pb2.GraphDef())
199 text_format.Parse(d, graph_pb2.GraphDef())
226 graphs = [text_format.Parse(GRAPH_DEF_TXT_2, graph_pb2.GraphDef())]
Dsaved_model_utils.py24 from google.protobuf import text_format
69 text_format.Merge(file_content.decode("utf-8"), saved_model)
71 except text_format.ParseError as e:
Dstrip_unused_lib.py23 from google.protobuf import text_format
111 text_format.Merge(f.read(), input_graph_def)
123 f.write(text_format.MessageToString(output_graph_def))
Doptimize_for_inference.py62 from google.protobuf import text_format
85 text_format.Merge(data.decode("utf-8"), input_graph_def)
Dfreeze_graph.py44 from google.protobuf import text_format
253 text_format.Merge(f.read(), input_graph_def)
267 text_format.Merge(f.read(), input_meta_graph_def)
282 text_format.Merge(f.read(), saver_def)
Dselective_registration_header_lib.py29 from google.protobuf import text_format
96 graph_def = text_format.Parse(file_data, graph_pb2.GraphDef())
/external/tensorflow/tensorflow/python/util/protobuf/
Dcompare.py72 from google.protobuf import text_format
96 a = text_format.Merge(a, b.__class__(), descriptor_pool=pool)
106 a_str = text_format.MessageToString(a, descriptor_pool=pool)
107 b_str = text_format.MessageToString(b, descriptor_pool=pool)
/external/tensorflow/tensorflow/python/framework/
Dop_def_util_test.py25 from google.protobuf import text_format
116 text_format.Parse(pbtxt, proto)
132 text_format.Parse(pbtxt, proto)
Dgraph_io.py24 from google.protobuf import text_format
71 text_format.MessageToString(
/external/protobuf/conformance/
Dconformance_python.py47 from google.protobuf import text_format
147 text_format.Parse(request.text_payload, test_message)
169 response.text_payload = text_format.MessageToString(
/external/perfetto/tools/
Dproto_utils.py22 from google.protobuf import reflection, text_format
56 text_format.Merge(text_proto_file.read(), proto)
/external/rust/crates/protobuf/src/text_format/lexer/
Dstr_lit.rs3 use crate::text_format::lexer::ParserLanguage;
72 use crate::text_format::lexer::StrLit;
/external/tensorflow/tensorflow/python/kernel_tests/proto/
Dencode_proto_op_test_base.py29 from google.protobuf import text_format
198 text_format.Parse(
199 text_format.MessageToString(
Ddecode_proto_op_test_base.py29 from google.protobuf import text_format
249 text_format.Parse(
250 text_format.MessageToString(value, float_format='.17g'),
269 text_format.MessageToString(
/external/tensorflow/tensorflow/python/feature_column/
Dsequence_feature_column_integration_test.py24 from google.protobuf import text_format
202 return text_format.Parse(_SEQ_EX_PROTO, example)
/external/tensorflow/tensorflow/tools/test/
Drun_and_gather_logs.py31 from google.protobuf import text_format
81 print(text_format.MessageToString(test_results))
/external/grpc-grpc/test/cpp/util/
Dproto_file_parser.cc284 grpc::string text_format; in GetTextFormatFromMessageType() local
285 if (!protobuf::TextFormat::PrintToString(*msg.get(), &text_format)) { in GetTextFormatFromMessageType()
289 return text_format; in GetTextFormatFromMessageType()

1234