1 | // This file is MACHINE GENERATED! Do not edit. |
2 | |
3 | |
4 | #include "tensorflow/cc/ops/const_op.h" |
5 | #include "tensorflow/cc/ops/logging_ops.h" |
6 | |
7 | namespace tensorflow { |
8 | namespace ops { |
9 | |
10 | Assert::Assert(const ::tensorflow::Scope& scope, ::tensorflow::Input condition, |
11 | ::tensorflow::InputList data, const Assert::Attrs& attrs) { |
12 | if (!scope.ok()) return; |
13 | auto _condition = ::tensorflow::ops::AsNodeOut(scope, condition); |
14 | if (!scope.ok()) return; |
15 | auto _data = ::tensorflow::ops::AsNodeOutList(scope, data); |
16 | if (!scope.ok()) return; |
17 | ::tensorflow::Node* ret; |
18 | const auto unique_name = scope.GetUniqueNameForOp("Assert" ); |
19 | auto builder = ::tensorflow::NodeBuilder(unique_name, "Assert" ) |
20 | .Input(_condition) |
21 | .Input(_data) |
22 | .Attr("summarize" , attrs.summarize_) |
23 | ; |
24 | scope.UpdateBuilder(&builder); |
25 | scope.UpdateStatus(builder.Finalize(scope.graph(), &ret)); |
26 | if (!scope.ok()) return; |
27 | scope.UpdateStatus(scope.DoShapeInference(ret)); |
28 | this->operation = Operation(ret); |
29 | return; |
30 | } |
31 | |
32 | Assert::Assert(const ::tensorflow::Scope& scope, ::tensorflow::Input condition, |
33 | ::tensorflow::InputList data) |
34 | : Assert(scope, condition, data, Assert::Attrs()) {} |
35 | |
36 | AudioSummary::AudioSummary(const ::tensorflow::Scope& scope, |
37 | ::tensorflow::Input tag, ::tensorflow::Input tensor, |
38 | ::tensorflow::Input sample_rate, const |
39 | AudioSummary::Attrs& attrs) { |
40 | if (!scope.ok()) return; |
41 | auto _tag = ::tensorflow::ops::AsNodeOut(scope, tag); |
42 | if (!scope.ok()) return; |
43 | auto _tensor = ::tensorflow::ops::AsNodeOut(scope, tensor); |
44 | if (!scope.ok()) return; |
45 | auto _sample_rate = ::tensorflow::ops::AsNodeOut(scope, sample_rate); |
46 | if (!scope.ok()) return; |
47 | ::tensorflow::Node* ret; |
48 | const auto unique_name = scope.GetUniqueNameForOp("AudioSummary" ); |
49 | auto builder = ::tensorflow::NodeBuilder(unique_name, "AudioSummaryV2" ) |
50 | .Input(_tag) |
51 | .Input(_tensor) |
52 | .Input(_sample_rate) |
53 | .Attr("max_outputs" , attrs.max_outputs_) |
54 | ; |
55 | scope.UpdateBuilder(&builder); |
56 | scope.UpdateStatus(builder.Finalize(scope.graph(), &ret)); |
57 | if (!scope.ok()) return; |
58 | scope.UpdateStatus(scope.DoShapeInference(ret)); |
59 | this->operation = Operation(ret); |
60 | this->summary = Output(ret, 0); |
61 | } |
62 | |
63 | AudioSummary::AudioSummary(const ::tensorflow::Scope& scope, |
64 | ::tensorflow::Input tag, ::tensorflow::Input tensor, |
65 | ::tensorflow::Input sample_rate) |
66 | : AudioSummary(scope, tag, tensor, sample_rate, AudioSummary::Attrs()) {} |
67 | |
68 | HistogramSummary::HistogramSummary(const ::tensorflow::Scope& scope, |
69 | ::tensorflow::Input tag, ::tensorflow::Input |
70 | values) { |
71 | if (!scope.ok()) return; |
72 | auto _tag = ::tensorflow::ops::AsNodeOut(scope, tag); |
73 | if (!scope.ok()) return; |
74 | auto _values = ::tensorflow::ops::AsNodeOut(scope, values); |
75 | if (!scope.ok()) return; |
76 | ::tensorflow::Node* ret; |
77 | const auto unique_name = scope.GetUniqueNameForOp("HistogramSummary" ); |
78 | auto builder = ::tensorflow::NodeBuilder(unique_name, "HistogramSummary" ) |
79 | .Input(_tag) |
80 | .Input(_values) |
81 | ; |
82 | scope.UpdateBuilder(&builder); |
83 | scope.UpdateStatus(builder.Finalize(scope.graph(), &ret)); |
84 | if (!scope.ok()) return; |
85 | scope.UpdateStatus(scope.DoShapeInference(ret)); |
86 | this->operation = Operation(ret); |
87 | this->summary = Output(ret, 0); |
88 | } |
89 | |
90 | ImageSummary::ImageSummary(const ::tensorflow::Scope& scope, |
91 | ::tensorflow::Input tag, ::tensorflow::Input tensor, |
92 | const ImageSummary::Attrs& attrs) { |
93 | if (!scope.ok()) return; |
94 | auto _tag = ::tensorflow::ops::AsNodeOut(scope, tag); |
95 | if (!scope.ok()) return; |
96 | auto _tensor = ::tensorflow::ops::AsNodeOut(scope, tensor); |
97 | if (!scope.ok()) return; |
98 | ::tensorflow::Node* ret; |
99 | const auto unique_name = scope.GetUniqueNameForOp("ImageSummary" ); |
100 | auto builder = ::tensorflow::NodeBuilder(unique_name, "ImageSummary" ) |
101 | .Input(_tag) |
102 | .Input(_tensor) |
103 | .Attr("max_images" , attrs.max_images_) |
104 | .Attr("bad_color" , attrs.bad_color_) |
105 | ; |
106 | scope.UpdateBuilder(&builder); |
107 | scope.UpdateStatus(builder.Finalize(scope.graph(), &ret)); |
108 | if (!scope.ok()) return; |
109 | scope.UpdateStatus(scope.DoShapeInference(ret)); |
110 | this->operation = Operation(ret); |
111 | this->summary = Output(ret, 0); |
112 | } |
113 | |
114 | ImageSummary::ImageSummary(const ::tensorflow::Scope& scope, |
115 | ::tensorflow::Input tag, ::tensorflow::Input tensor) |
116 | : ImageSummary(scope, tag, tensor, ImageSummary::Attrs()) {} |
117 | |
118 | MergeSummary::MergeSummary(const ::tensorflow::Scope& scope, |
119 | ::tensorflow::InputList inputs) { |
120 | if (!scope.ok()) return; |
121 | auto _inputs = ::tensorflow::ops::AsNodeOutList(scope, inputs); |
122 | if (!scope.ok()) return; |
123 | ::tensorflow::Node* ret; |
124 | const auto unique_name = scope.GetUniqueNameForOp("MergeSummary" ); |
125 | auto builder = ::tensorflow::NodeBuilder(unique_name, "MergeSummary" ) |
126 | .Input(_inputs) |
127 | ; |
128 | scope.UpdateBuilder(&builder); |
129 | scope.UpdateStatus(builder.Finalize(scope.graph(), &ret)); |
130 | if (!scope.ok()) return; |
131 | scope.UpdateStatus(scope.DoShapeInference(ret)); |
132 | this->operation = Operation(ret); |
133 | this->summary = Output(ret, 0); |
134 | } |
135 | |
136 | Print::Print(const ::tensorflow::Scope& scope, ::tensorflow::Input input, |
137 | ::tensorflow::InputList data, const Print::Attrs& attrs) { |
138 | if (!scope.ok()) return; |
139 | auto _input = ::tensorflow::ops::AsNodeOut(scope, input); |
140 | if (!scope.ok()) return; |
141 | auto _data = ::tensorflow::ops::AsNodeOutList(scope, data); |
142 | if (!scope.ok()) return; |
143 | ::tensorflow::Node* ret; |
144 | const auto unique_name = scope.GetUniqueNameForOp("Print" ); |
145 | auto builder = ::tensorflow::NodeBuilder(unique_name, "Print" ) |
146 | .Input(_input) |
147 | .Input(_data) |
148 | .Attr("message" , attrs.message_) |
149 | .Attr("first_n" , attrs.first_n_) |
150 | .Attr("summarize" , attrs.summarize_) |
151 | ; |
152 | scope.UpdateBuilder(&builder); |
153 | scope.UpdateStatus(builder.Finalize(scope.graph(), &ret)); |
154 | if (!scope.ok()) return; |
155 | scope.UpdateStatus(scope.DoShapeInference(ret)); |
156 | this->operation = Operation(ret); |
157 | this->output = Output(ret, 0); |
158 | } |
159 | |
160 | Print::Print(const ::tensorflow::Scope& scope, ::tensorflow::Input input, |
161 | ::tensorflow::InputList data) |
162 | : Print(scope, input, data, Print::Attrs()) {} |
163 | |
164 | PrintV2::PrintV2(const ::tensorflow::Scope& scope, ::tensorflow::Input input, |
165 | const PrintV2::Attrs& attrs) { |
166 | if (!scope.ok()) return; |
167 | auto _input = ::tensorflow::ops::AsNodeOut(scope, input); |
168 | if (!scope.ok()) return; |
169 | ::tensorflow::Node* ret; |
170 | const auto unique_name = scope.GetUniqueNameForOp("PrintV2" ); |
171 | auto builder = ::tensorflow::NodeBuilder(unique_name, "PrintV2" ) |
172 | .Input(_input) |
173 | .Attr("output_stream" , attrs.output_stream_) |
174 | .Attr("end" , attrs.end_) |
175 | ; |
176 | scope.UpdateBuilder(&builder); |
177 | scope.UpdateStatus(builder.Finalize(scope.graph(), &ret)); |
178 | if (!scope.ok()) return; |
179 | scope.UpdateStatus(scope.DoShapeInference(ret)); |
180 | this->operation = Operation(ret); |
181 | return; |
182 | } |
183 | |
184 | PrintV2::PrintV2(const ::tensorflow::Scope& scope, ::tensorflow::Input input) |
185 | : PrintV2(scope, input, PrintV2::Attrs()) {} |
186 | |
187 | ScalarSummary::ScalarSummary(const ::tensorflow::Scope& scope, |
188 | ::tensorflow::Input tags, ::tensorflow::Input |
189 | values) { |
190 | if (!scope.ok()) return; |
191 | auto _tags = ::tensorflow::ops::AsNodeOut(scope, tags); |
192 | if (!scope.ok()) return; |
193 | auto _values = ::tensorflow::ops::AsNodeOut(scope, values); |
194 | if (!scope.ok()) return; |
195 | ::tensorflow::Node* ret; |
196 | const auto unique_name = scope.GetUniqueNameForOp("ScalarSummary" ); |
197 | auto builder = ::tensorflow::NodeBuilder(unique_name, "ScalarSummary" ) |
198 | .Input(_tags) |
199 | .Input(_values) |
200 | ; |
201 | scope.UpdateBuilder(&builder); |
202 | scope.UpdateStatus(builder.Finalize(scope.graph(), &ret)); |
203 | if (!scope.ok()) return; |
204 | scope.UpdateStatus(scope.DoShapeInference(ret)); |
205 | this->operation = Operation(ret); |
206 | this->summary = Output(ret, 0); |
207 | } |
208 | |
209 | TensorSummary::TensorSummary(const ::tensorflow::Scope& scope, |
210 | ::tensorflow::Input tensor, const |
211 | TensorSummary::Attrs& attrs) { |
212 | if (!scope.ok()) return; |
213 | auto _tensor = ::tensorflow::ops::AsNodeOut(scope, tensor); |
214 | if (!scope.ok()) return; |
215 | ::tensorflow::Node* ret; |
216 | const auto unique_name = scope.GetUniqueNameForOp("TensorSummary" ); |
217 | auto builder = ::tensorflow::NodeBuilder(unique_name, "TensorSummary" ) |
218 | .Input(_tensor) |
219 | .Attr("description" , attrs.description_) |
220 | .Attr("labels" , attrs.labels_) |
221 | .Attr("display_name" , attrs.display_name_) |
222 | ; |
223 | scope.UpdateBuilder(&builder); |
224 | scope.UpdateStatus(builder.Finalize(scope.graph(), &ret)); |
225 | if (!scope.ok()) return; |
226 | scope.UpdateStatus(scope.DoShapeInference(ret)); |
227 | this->operation = Operation(ret); |
228 | this->summary = Output(ret, 0); |
229 | } |
230 | |
231 | TensorSummary::TensorSummary(const ::tensorflow::Scope& scope, |
232 | ::tensorflow::Input tensor) |
233 | : TensorSummary(scope, tensor, TensorSummary::Attrs()) {} |
234 | |
235 | TensorSummaryV2::TensorSummaryV2(const ::tensorflow::Scope& scope, |
236 | ::tensorflow::Input tag, ::tensorflow::Input |
237 | tensor, ::tensorflow::Input |
238 | serialized_summary_metadata) { |
239 | if (!scope.ok()) return; |
240 | auto _tag = ::tensorflow::ops::AsNodeOut(scope, tag); |
241 | if (!scope.ok()) return; |
242 | auto _tensor = ::tensorflow::ops::AsNodeOut(scope, tensor); |
243 | if (!scope.ok()) return; |
244 | auto _serialized_summary_metadata = ::tensorflow::ops::AsNodeOut(scope, serialized_summary_metadata); |
245 | if (!scope.ok()) return; |
246 | ::tensorflow::Node* ret; |
247 | const auto unique_name = scope.GetUniqueNameForOp("TensorSummaryV2" ); |
248 | auto builder = ::tensorflow::NodeBuilder(unique_name, "TensorSummaryV2" ) |
249 | .Input(_tag) |
250 | .Input(_tensor) |
251 | .Input(_serialized_summary_metadata) |
252 | ; |
253 | scope.UpdateBuilder(&builder); |
254 | scope.UpdateStatus(builder.Finalize(scope.graph(), &ret)); |
255 | if (!scope.ok()) return; |
256 | scope.UpdateStatus(scope.DoShapeInference(ret)); |
257 | this->operation = Operation(ret); |
258 | this->summary = Output(ret, 0); |
259 | } |
260 | |
261 | Timestamp::Timestamp(const ::tensorflow::Scope& scope) { |
262 | if (!scope.ok()) return; |
263 | ::tensorflow::Node* ret; |
264 | const auto unique_name = scope.GetUniqueNameForOp("Timestamp" ); |
265 | auto builder = ::tensorflow::NodeBuilder(unique_name, "Timestamp" ) |
266 | ; |
267 | scope.UpdateBuilder(&builder); |
268 | scope.UpdateStatus(builder.Finalize(scope.graph(), &ret)); |
269 | if (!scope.ok()) return; |
270 | scope.UpdateStatus(scope.DoShapeInference(ret)); |
271 | this->operation = Operation(ret); |
272 | this->ts = Output(ret, 0); |
273 | } |
274 | |
275 | /// @} |
276 | |
277 | } // namespace ops |
278 | } // namespace tensorflow |
279 | |