MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / BuildAddOps

Function BuildAddOps

tensorflow/core/kernels/hexagon/graph_transferer_test.cc:71–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69} TEST_GRAPH_TRANSFER_OPS_DEFINITIONS;
70
71static Output BuildAddOps(const Scope& scope, const Input& x, const Input& y) {
72 EXPECT_TRUE(scope.ok());
73 auto _x = ops::AsNodeOut(scope, x);
74 EXPECT_TRUE(scope.ok());
75 auto _y = ops::AsNodeOut(scope, y);
76 EXPECT_TRUE(scope.ok());
77 Node* ret;
78 const auto unique_name = scope.GetUniqueNameForOp("Add");
79 auto builder = NodeBuilder(unique_name, "Add").Input(_x).Input(_y);
80 scope.UpdateBuilder(&builder);
81 scope.UpdateStatus(builder.Finalize(scope.graph(), &ret));
82 EXPECT_TRUE(scope.ok());
83 return Output(ret, 0);
84}
85
86static Output BuildSoftmaxOps(const Scope& scope, const Input& logits) {
87 EXPECT_TRUE(scope.ok());

Callers 1

CreateAddGraphDefFunction · 0.85

Calls 10

AsNodeOutFunction · 0.85
GetUniqueNameForOpMethod · 0.80
UpdateBuilderMethod · 0.80
NodeBuilderClass · 0.50
OutputClass · 0.50
okMethod · 0.45
InputMethod · 0.45
UpdateStatusMethod · 0.45
FinalizeMethod · 0.45
graphMethod · 0.45

Tested by

no test coverage detected