1 | // This file is MACHINE GENERATED! Do not edit. |
---|---|
2 | |
3 | |
4 | #include "tensorflow/cc/ops/const_op.h" |
5 | #include "tensorflow/cc/ops/no_op.h" |
6 | |
7 | namespace tensorflow { |
8 | namespace ops { |
9 | |
10 | NoOp::NoOp(const ::tensorflow::Scope& scope) { |
11 | if (!scope.ok()) return; |
12 | ::tensorflow::Node* ret; |
13 | const auto unique_name = scope.GetUniqueNameForOp("NoOp"); |
14 | auto builder = ::tensorflow::NodeBuilder(unique_name, "NoOp") |
15 | ; |
16 | scope.UpdateBuilder(&builder); |
17 | scope.UpdateStatus(builder.Finalize(scope.graph(), &ret)); |
18 | if (!scope.ok()) return; |
19 | scope.UpdateStatus(scope.DoShapeInference(ret)); |
20 | this->operation = Operation(ret); |
21 | return; |
22 | } |
23 | |
24 | /// @} |
25 | |
26 | } // namespace ops |
27 | } // namespace tensorflow |
28 |