/external/tensorflow/tensorflow/contrib/session_bundle/ |
session_bundle_test.cc | 72 MetaGraphDef graph_def; local 73 TF_RETURN_IF_ERROR(ReadBinaryProto(Env::Default(), source, &graph_def)); 74 twiddler(&graph_def); 76 WriteStringToFile(Env::Default(), sink, graph_def.SerializeAsString()));
|
/external/tensorflow/tensorflow/core/distributed_runtime/ |
graph_mgr.cc | 408 GraphDef graph_def; local 409 unit.graph->ToGraphDef(&graph_def); 410 response->AddPartitionGraph(graph_def);
|
message_wrappers.cc | 658 GraphDef* graph_def = response_.mutable_partition_graph()->Add(); local 659 *graph_def = partition_graph; 731 GraphDef* graph_def = response_->add_partition_graph(); local 732 *graph_def = partition_graph;
|
/external/tensorflow/tensorflow/core/framework/ |
dataset.cc | 206 GraphDef graph_def; local 207 TF_RETURN_IF_ERROR(b.ToGraphDef(&graph_def)); 208 graph_def.SerializeToString(serialized_graph_def);
|
/external/tensorflow/tensorflow/core/kernels/ |
remote_fused_graph_execute_utils_test.cc | 197 static string SummarizeGraphDef(const GraphDef& graph_def) { 199 for (const NodeDef& node : graph_def.node()) { 477 GraphDef graph_def; local 479 RemoteFusedGraphExecuteOpTestUtils::BuildMultipleAddGraph(&graph_def)); 483 {"H", "I"}, {"J"}, graph_def, &cluster)); 488 {"F", "C", "G"}, {"J"}, graph_def, &cluster)); 493 {"A", "B", "C", "D", "E"}, {"J"}, graph_def, &cluster)); 498 {"A", "B", "C", "D", "E"}, {"K"}, graph_def, &cluster)); 503 {"F"}, {"H"}, graph_def, &cluster)); 508 GraphDef graph_def; local 545 GraphDef graph_def; local [all...] |
/external/tensorflow/tensorflow/examples/label_image/ |
main.cc | 187 tensorflow::GraphDef graph_def; local 189 ReadBinaryProto(tensorflow::Env::Default(), graph_file_name, &graph_def); 195 Status session_create_status = (*session)->Create(graph_def);
|
/external/tensorflow/tensorflow/examples/speech_commands/ |
test_streaming_accuracy.cc | 100 tensorflow::GraphDef graph_def; local 102 ReadBinaryProto(tensorflow::Env::Default(), graph_file_name, &graph_def); 108 Status session_create_status = (*session)->Create(graph_def);
|
/external/tensorflow/tensorflow/python/client/ |
session.py | 730 def graph_def(self): member in class:BaseSession [all...] |
/external/tensorflow/tensorflow/python/debug/wrappers/ |
framework.py | 400 def graph_def(self): member in class:BaseDebugWrapperSession 401 return self._sess.graph_def [all...] |
/external/tensorflow/tensorflow/tools/graph_transforms/ |
fold_constants_test.cc | 69 GraphDef graph_def; local 70 TF_ASSERT_OK(root.ToGraphDef(&graph_def)); 74 TestConstantFolding(graph_def, 77 TestConstantFolding(graph_def, 106 GraphDef graph_def; local 107 TF_ASSERT_OK(root.ToGraphDef(&graph_def)); 111 TestConstantFolding(graph_def, 130 GraphDef graph_def; local 131 TF_ASSERT_OK(root.ToGraphDef(&graph_def)); 135 TestConstantFolding(graph_def, 159 GraphDef graph_def; local 316 GraphDef graph_def; local 346 GraphDef graph_def; local [all...] |
sparsify_gather_test.cc | 42 const std::vector<NodeDef*>& inputs, GraphDef* graph_def, 44 NodeDef* node_def = graph_def->add_node(); 60 NodeDef* indices, GraphDef* graph_def) { 63 CreateNode(strings::StrCat(name, "_axis"), "Const", {}, graph_def); 67 CreateNode(name, "GatherV2", {params, indices, axis_node}, graph_def); 69 CreateNode(name, "Gather", {params, indices}, graph_def); 76 GraphDef graph_def; local 81 NodeDef* input_node = CreateNode("ids", "Const", {}, &graph_def); 92 w_node = CreateNode("w/part_1", "Const", {}, &graph_def); 95 w_node = CreateNode("w/part_1", "VariableV2", {}, &graph_def); 289 GraphDef graph_def; local [all...] |
summarize_graph_main.cc | 317 GraphDef graph_def; local 318 Status load_status = LoadTextOrBinaryGraphFile(in_graph, &graph_def); 327 SummarizeGraph(graph_def, in_graph, print_structure);
|
transform_graph.cc | 197 GraphDef graph_def; local 198 Status load_status = LoadTextOrBinaryGraphFile(in_graph, &graph_def); 207 TransformGraph(inputs, outputs, transform_params, &graph_def); 217 save_status = WriteTextProto(Env::Default(), out_graph, graph_def); 219 save_status = WriteBinaryProto(Env::Default(), out_graph, graph_def); 253 GraphDef* graph_def) { 276 transform_func(*graph_def, context, &transformed_graph_def); 281 transformed_graph_def = *graph_def; 287 *transformed_graph_def.mutable_library() = graph_def->library(); 290 *graph_def = transformed_graph_def [all...] |
/external/tensorflow/tensorflow/cc/training/ |
queue_runner_test.cc | 78 GraphDef graph_def; local 79 TF_EXPECT_OK(root.ToGraphDef(&graph_def)); 80 return graph_def; 102 const GraphDef& graph_def) { 105 TF_CHECK_OK(session->Create(graph_def)); 112 GraphDef graph_def = BuildSimpleGraph(); local 113 auto session = BuildSessionAndInitVariable(graph_def); 130 GraphDef graph_def = BuildSimpleGraph(); local 131 auto session = BuildSessionAndInitVariable(graph_def); 150 GraphDef graph_def = BuildSimpleGraph() local 165 GraphDef graph_def = BuildSimpleGraph(); local 196 GraphDef graph_def; local 202 auto graph_def = BuildDoubleQueueGraph(); local 239 auto graph_def = BuildDoubleQueueGraph(); local 284 GraphDef graph_def = BuildDoubleQueueGraph(); local 301 auto graph_def = BuildDoubleQueueGraph(); local 333 GraphDef graph_def = BuildSimpleGraph(); local 360 GraphDef graph_def; local 394 GraphDef graph_def = BuildSimpleGraph(); local [all...] |
/external/tensorflow/tensorflow/core/graph/ |
graph_partition_test.cc | 75 void Partition(const GraphDef& graph_def, 79 TF_CHECK_OK(ConvertGraphDefToGraph(opts, graph_def, &g)); 100 EXPECT_EQ(graph_def.versions().producer(), TF_GRAPH_DEF_VERSION); 103 EXPECT_EQ(graph_def.versions().producer(), it.second.versions().producer()); 104 EXPECT_EQ(graph_def.versions().min_consumer(), 109 void CheckLoopConstruction(const GraphDef& graph_def) { 111 Partition(graph_def, &partitions); 210 GraphDef graph_def; local 211 TF_EXPECT_OK(scope_a_.ToGraphDef(&graph_def)); 213 TF_EXPECT_GRAPH_EQ(graph_def, partitions_[a]) 217 GraphDef graph_def; local [all...] |
graph_test.cc | 663 GraphDef graph_def; local 664 CHECK(protobuf::TextFormat::ParseFromString(s, &graph_def)); 666 TF_CHECK_OK(ConvertGraphDefToGraph(opts, graph_def, &graph));
|
/external/tensorflow/tensorflow/examples/multibox_detector/ |
main.cc | 164 tensorflow::GraphDef graph_def; local 166 ReadBinaryProto(tensorflow::Env::Default(), graph_file_name, &graph_def); 172 Status session_create_status = (*session)->Create(graph_def);
|
/external/tensorflow/tensorflow/compiler/tf2xla/ |
functionalize_control_flow_test.cc | 98 GraphDef graph_def; local 99 graph.ToGraphDef(&graph_def); 103 TF_EXPECT_OK(FindIfThenAndElse(graph_def, &op_name, &then_fn, &else_fn)); 119 TF_EXPECT_GRAPH_EQ(expected, graph_def); 241 GraphDef graph_def; local 242 graph.ToGraphDef(&graph_def); 245 TF_EXPECT_OK(FindWhileCondAndBody(graph_def, &cond_fn, &body_fn)); 257 TF_EXPECT_GRAPH_EQ(expected, graph_def); 344 GraphDef graph_def; local 345 graph.ToGraphDef(&graph_def); 485 GraphDef graph_def; local 718 GraphDef graph_def; local [all...] |
/external/tensorflow/tensorflow/contrib/pi_examples/camera/ |
camera.cc | 241 tensorflow::GraphDef graph_def; local 243 ReadBinaryProto(tensorflow::Env::Default(), graph_file_name, &graph_def); 249 Status session_create_status = (*session)->Create(graph_def);
|
/external/tensorflow/tensorflow/contrib/pi_examples/label_image/ |
label_image.cc | 213 tensorflow::GraphDef graph_def; local 215 ReadBinaryProto(tensorflow::Env::Default(), graph_file_name, &graph_def); 221 Status session_create_status = (*session)->Create(graph_def);
|
/external/tensorflow/tensorflow/core/kernels/data/ |
iterator_ops.cc | 131 GraphDef graph_def; local 132 if (!graph_def.ParseFromString(serialized_graph_def)) { 140 TF_RETURN_IF_ERROR(ImportGraphDef({}, graph_def, &graph, nullptr)); 148 TF_RETURN_IF_ERROR(flib_def->AddLibrary(graph_def.library())); [all...] |
/external/tensorflow/tensorflow/core/kernels/hexagon/ |
hexagon_graph_execution_test.cc | 516 GraphDef graph_def; local 517 Status status = ReadBinaryProto(Env::Default(), MODEL_FILENAME, &graph_def); 524 REMOTE_FUSED_GRAPH_EXECUTE_NODE_NAME, inputs, outputs, &graph_def);
|
graph_transferer.cc | 85 const GraphDef& graph_def, 91 Status status = ImportGraphDef({}, graph_def, &graph, &shape_refiner); 98 graph_def, input_node_info_list, &graph, &shape_refiner); 197 GraphDef graph_def; local 203 if (!protobuf::TextFormat::ParseFromString(output, &graph_def)) { 207 status = ReadBinaryProto(Env::Default(), graph_def_path, &graph_def); 217 graph_def, input_node_info_list, true, &tensor_shape_map); 221 for (NodeDef& node_def : *graph_def.mutable_node()) { 227 return LoadGraphFromProto(ops_definitions, graph_def, input_node_info_list, [all...] |
/external/tensorflow/tensorflow/contrib/tensorboard/db/ |
summary_db_writer.cc | 359 graph_def 368 string graph_def; local 369 if (graph_->SerializeToString(&graph_def)) { 370 insert.BindBlobUnsafe(4, graph_def); [all...] |
/external/tensorflow/tensorflow/core/debug/ |
debug_io_utils.cc | 476 GraphDef graph_def; local 477 graph.ToGraphDef(&graph_def); 480 graph_def.SerializeToString(&buf); [all...] |