Home
last modified time | relevance | path

Searched refs:fused_graph_def (Results 1 – 12 of 12) sorted by relevance

/external/tensorflow/tensorflow/contrib/framework/python/framework/
Dgraph_util_test.py50 fused_graph_def = graph_util.fuse_op(
52 self.assertEqual(len(fused_graph_def.node), 4)
53 self.assertEqual(fused_graph_def.node[0].name, 'A')
54 self.assertEqual(fused_graph_def.node[1].name, 'FusedOp')
55 self.assertEqual(fused_graph_def.node[1].input[0], 'A')
56 self.assertEqual(fused_graph_def.node[1].op, 'Op2')
57 self.assertEqual(fused_graph_def.node[1].attr['_output_quantized'].b, True)
58 self.assertEqual(fused_graph_def.node[1].attr['_output_types'].list.type,
60 self.assertEqual(fused_graph_def.node[2].name, 'D')
61 self.assertEqual(fused_graph_def.node[3].name, 'E')
[all …]
/external/tensorflow/tensorflow/tools/graph_transforms/
Dfold_batch_norms_test.cc74 GraphDef fused_graph_def; in TestFoldBatchNormsConv2D() local
76 FoldBatchNorms(original_graph_def, {{}, {"output"}}, &fused_graph_def)); in TestFoldBatchNormsConv2D()
79 TF_ASSERT_OK(fused_session->Create(fused_graph_def)); in TestFoldBatchNormsConv2D()
85 for (const NodeDef& node : fused_graph_def.node()) { in TestFoldBatchNormsConv2D()
125 GraphDef fused_graph_def; in TestFoldBatchNormsDepthwiseConv2dNative() local
127 FoldBatchNorms(original_graph_def, {{}, {"output"}}, &fused_graph_def)); in TestFoldBatchNormsDepthwiseConv2dNative()
130 TF_ASSERT_OK(fused_session->Create(fused_graph_def)); in TestFoldBatchNormsDepthwiseConv2dNative()
136 for (const NodeDef& node : fused_graph_def.node()) { in TestFoldBatchNormsDepthwiseConv2dNative()
185 GraphDef fused_graph_def; in TestFoldBatchNormsConv2DShared() local
187 original_graph_def, {{}, {"output", "output_2"}}, &fused_graph_def)); in TestFoldBatchNormsConv2DShared()
[all …]
Dfuse_convolutions_test.cc83 GraphDef fused_graph_def; in TestFuseResizePadAndConv() local
85 &fused_graph_def)); in TestFuseResizePadAndConv()
88 TF_ASSERT_OK(fused_session->Create(fused_graph_def)); in TestFuseResizePadAndConv()
94 for (const NodeDef& node : fused_graph_def.node()) { in TestFuseResizePadAndConv()
133 GraphDef fused_graph_def; in TestFuseResizeAndConv() local
135 &fused_graph_def)); in TestFuseResizeAndConv()
138 TF_ASSERT_OK(fused_session->Create(fused_graph_def)); in TestFuseResizeAndConv()
144 for (const NodeDef& node : fused_graph_def.node()) { in TestFuseResizeAndConv()
185 GraphDef fused_graph_def; in TestFusePadAndConv() local
187 FusePadAndConv(original_graph_def, {{}, {"output"}}, &fused_graph_def)); in TestFusePadAndConv()
[all …]
Dfold_old_batch_norms_test.cc108 GraphDef fused_graph_def; in TestFoldOldBatchNorms() local
110 &fused_graph_def)); in TestFoldOldBatchNorms()
113 TF_ASSERT_OK(fused_session->Create(fused_graph_def)); in TestFoldOldBatchNorms()
119 for (const NodeDef& node : fused_graph_def.node()) { in TestFoldOldBatchNorms()
186 GraphDef fused_graph_def; in TestFoldOldBatchNormsAfterDepthwiseConv2dNative() local
188 &fused_graph_def)); in TestFoldOldBatchNormsAfterDepthwiseConv2dNative()
191 TF_ASSERT_OK(fused_session->Create(fused_graph_def)); in TestFoldOldBatchNormsAfterDepthwiseConv2dNative()
197 for (const NodeDef& node : fused_graph_def.node()) { in TestFoldOldBatchNormsAfterDepthwiseConv2dNative()
263 GraphDef fused_graph_def; in TestFoldFusedBatchNorms() local
265 &fused_graph_def)); in TestFoldFusedBatchNorms()
[all …]
/external/tensorflow/tensorflow/core/kernels/
Dremote_fused_graph_execute_op_test.cc220 GraphDef* fused_graph_def) final { in FuseRemoteGraph() argument
221 *fused_graph_def = original_graph_def; in FuseRemoteGraph()
261 GraphDef fused_graph_def; in RewriteGraphToFusedGraph() local
262 TF_CHECK_OK(root.ToGraphDef(&fused_graph_def)); in RewriteGraphToFusedGraph()
263 *fused_graph = fused_graph_def; in RewriteGraphToFusedGraph()
Dremote_fused_graph_execute_op_test_utils.cc118 const std::vector<string>& outputs, GraphDef* fused_graph_def) { in FuseRemoteGraph() argument
122 /*require_shape_type=*/false, fused_graph_def); in FuseRemoteGraph()
Di_remote_fused_graph_executor.h67 GraphDef* fused_graph_def) = 0;
Dremote_fused_graph_execute_op_test_utils.h79 GraphDef* fused_graph_def) final;
/external/tensorflow/tensorflow/core/kernels/hexagon/
Dhexagon_graph_execution_test.cc283 static void RunFusedGraph(const GraphDef& fused_graph_def) { in RunFusedGraph() argument
297 TF_ASSERT_OK(session->Create(fused_graph_def)); in RunFusedGraph()
524 GraphDef fused_graph_def = GraphTransferUtils::BuildFusedGraphDef( in TEST() local
528 RunFusedGraph(fused_graph_def); in TEST()
535 GraphDef fused_graph_def; in TEST() local
537 ReadBinaryProto(Env::Default(), FUSED_MODEL_FILENAME, &fused_graph_def); in TEST()
538 RunFusedGraph(fused_graph_def); in TEST()
Dhexagon_control_wrapper.h54 GraphDef* fused_graph_def) final;
Dhexagon_control_wrapper.cc398 const std::vector<string>& outputs, GraphDef* fused_graph_def) { in FuseRemoteGraph() argument
407 /*require_shape_type=*/true, fused_graph_def)); in FuseRemoteGraph()
Dgraph_transferer_test.cc411 GraphDef fused_graph_def = GraphTransferUtils::BuildFusedGraphDef( in TEST_F() local
415 EXPECT_EQ(3, fused_graph_def.node_size()); in TEST_F()