1// This file is MACHINE GENERATED! Do not edit.
2
3
4#include "tensorflow/cc/ops/const_op.h"
5#include "tensorflow/cc/ops/state_ops_internal.h"
6
7namespace tensorflow {
8namespace ops {
9namespace internal {
10// NOTE: This namespace has internal TensorFlow details that
11// are not part of TensorFlow's public API.
12
13ScatterNdMax::ScatterNdMax(const ::tensorflow::Scope& scope,
14 ::tensorflow::Input ref, ::tensorflow::Input
15 indices, ::tensorflow::Input updates, const
16 ScatterNdMax::Attrs& attrs) {
17 if (!scope.ok()) return;
18 auto _ref = ::tensorflow::ops::AsNodeOut(scope, ref);
19 if (!scope.ok()) return;
20 auto _indices = ::tensorflow::ops::AsNodeOut(scope, indices);
21 if (!scope.ok()) return;
22 auto _updates = ::tensorflow::ops::AsNodeOut(scope, updates);
23 if (!scope.ok()) return;
24 ::tensorflow::Node* ret;
25 const auto unique_name = scope.GetUniqueNameForOp("ScatterNdMax");
26 auto builder = ::tensorflow::NodeBuilder(unique_name, "ScatterNdMax")
27 .Input(_ref)
28 .Input(_indices)
29 .Input(_updates)
30 .Attr("use_locking", attrs.use_locking_)
31 ;
32 scope.UpdateBuilder(&builder);
33 scope.UpdateStatus(builder.Finalize(scope.graph(), &ret));
34 if (!scope.ok()) return;
35 scope.UpdateStatus(scope.DoShapeInference(ret));
36 this->operation = Operation(ret);
37 this->output_ref = Output(ret, 0);
38}
39
40ScatterNdMax::ScatterNdMax(const ::tensorflow::Scope& scope,
41 ::tensorflow::Input ref, ::tensorflow::Input
42 indices, ::tensorflow::Input updates)
43 : ScatterNdMax(scope, ref, indices, updates, ScatterNdMax::Attrs()) {}
44
45ScatterNdMin::ScatterNdMin(const ::tensorflow::Scope& scope,
46 ::tensorflow::Input ref, ::tensorflow::Input
47 indices, ::tensorflow::Input updates, const
48 ScatterNdMin::Attrs& attrs) {
49 if (!scope.ok()) return;
50 auto _ref = ::tensorflow::ops::AsNodeOut(scope, ref);
51 if (!scope.ok()) return;
52 auto _indices = ::tensorflow::ops::AsNodeOut(scope, indices);
53 if (!scope.ok()) return;
54 auto _updates = ::tensorflow::ops::AsNodeOut(scope, updates);
55 if (!scope.ok()) return;
56 ::tensorflow::Node* ret;
57 const auto unique_name = scope.GetUniqueNameForOp("ScatterNdMin");
58 auto builder = ::tensorflow::NodeBuilder(unique_name, "ScatterNdMin")
59 .Input(_ref)
60 .Input(_indices)
61 .Input(_updates)
62 .Attr("use_locking", attrs.use_locking_)
63 ;
64 scope.UpdateBuilder(&builder);
65 scope.UpdateStatus(builder.Finalize(scope.graph(), &ret));
66 if (!scope.ok()) return;
67 scope.UpdateStatus(scope.DoShapeInference(ret));
68 this->operation = Operation(ret);
69 this->output_ref = Output(ret, 0);
70}
71
72ScatterNdMin::ScatterNdMin(const ::tensorflow::Scope& scope,
73 ::tensorflow::Input ref, ::tensorflow::Input
74 indices, ::tensorflow::Input updates)
75 : ScatterNdMin(scope, ref, indices, updates, ScatterNdMin::Attrs()) {}
76
77} // namespace internal
78} // namespace ops
79} // namespace tensorflow
80