Home
last modified time | relevance | path

Searched refs:pad_node (Results 1 – 5 of 5) sorted by relevance

/external/tensorflow/tensorflow/lite/delegates/gpu/common/transformations/
Dmerge_padding_with_test.cc40 auto pad_node = graph.NewNode(); in TEST() local
41 ASSERT_TRUE(graph.AddConsumer(pad_node->id, input->id).ok()); in TEST()
42 pad_node->operation.type = ToString(OperationType::PAD); in TEST()
46 pad_node->operation.attributes = attr; in TEST()
50 ASSERT_TRUE(ConnectTwoNodes(&graph, pad_node, conv_node, &temp).ok()); in TEST()
126 auto pad_node = graph.NewNode(); in TEST() local
127 pad_node->operation.type = ToString(OperationType::PAD); in TEST()
131 pad_node->operation.attributes = pad_attr; in TEST()
133 ASSERT_TRUE(graph.AddConsumer(pad_node->id, input0->id).ok()); in TEST()
134 ASSERT_TRUE(graph.SetProducer(pad_node->id, padded->id).ok()); in TEST()
[all …]
Dmake_padding_test.cc72 auto pad_node = graph.nodes()[0]; in TEST() local
73 ASSERT_EQ(ToString(OperationType::PAD), pad_node->operation.type); in TEST()
74 auto pad_attr = absl::any_cast<PadAttributes>(pad_node->operation.attributes); in TEST()
Dmerge_padding_with.cc55 Node* pad_node = sequence.front(); in ApplyToNodesSequence() local
59 absl::any_cast<PadAttributes>(pad_node->operation.attributes); in ApplyToNodesSequence()
71 absl::Status status = RemovePrecedingNode(graph, pad_node, op_node); in ApplyToNodesSequence()
/external/tensorflow/tensorflow/core/tpu/graph_rewrite/
Ddistributed_tpu_rewrite_pass.cc700 Node* pad_node = graph->AddNode(pad_def, &s); in CreatePadNode() local
701 pad_node->set_assigned_device_name(split_node->assigned_device_name()); in CreatePadNode()
704 graph->AddEdge(split_node, split_index, pad_node, 0); in CreatePadNode()
705 graph->AddEdge(paddings_node, 0, pad_node, 1); in CreatePadNode()
706 graph->AddControlEdge(control_predecessor, pad_node); in CreatePadNode()
707 return pad_node; in CreatePadNode()
723 Node * pad_node, in CreateSplitNode()
726 to_split_node = pad_node; in CreateSplitNode()
/external/tensorflow/tensorflow/core/grappler/optimizers/
Dgeneric_layout_optimizer_transposer_test.cc1754 auto* pad_node = context.graph_view->GetNode("p"); in TEST_F() local
1755 ASSERT_NE(pad_node, nullptr); in TEST_F()
1756 ASSERT_EQ(pad_node->NumRegularFanins(), 2); in TEST_F()
1757 VerifyRegularFaninMatch(pad_node, 0, input_transpose_node->GetName(), 0); in TEST_F()
1758 VerifyRegularFaninMatch(pad_node, 1, padding_transpose_node->GetName(), 0); in TEST_F()
1764 VerifyRegularFaninMatch(output_transpose_node, 0, pad_node->GetName(), 0); in TEST_F()