| 69 | } TEST_GRAPH_TRANSFER_OPS_DEFINITIONS; |
| 70 | |
| 71 | static 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 | |
| 86 | static Output BuildSoftmaxOps(const Scope& scope, const Input& logits) { |
| 87 | EXPECT_TRUE(scope.ok()); |
no test coverage detected