1 | // This file is MACHINE GENERATED! Do not edit. |
---|---|
2 | |
3 | |
4 | #include "tensorflow/cc/ops/const_op.h" |
5 | #include "tensorflow/cc/ops/random_ops_internal.h" |
6 | |
7 | namespace tensorflow { |
8 | namespace ops { |
9 | namespace internal { |
10 | // NOTE: This namespace has internal TensorFlow details that |
11 | // are not part of TensorFlow's public API. |
12 | |
13 | RandomGammaGrad::RandomGammaGrad(const ::tensorflow::Scope& scope, |
14 | ::tensorflow::Input alpha, ::tensorflow::Input |
15 | sample) { |
16 | if (!scope.ok()) return; |
17 | auto _alpha = ::tensorflow::ops::AsNodeOut(scope, alpha); |
18 | if (!scope.ok()) return; |
19 | auto _sample = ::tensorflow::ops::AsNodeOut(scope, sample); |
20 | if (!scope.ok()) return; |
21 | ::tensorflow::Node* ret; |
22 | const auto unique_name = scope.GetUniqueNameForOp("RandomGammaGrad"); |
23 | auto builder = ::tensorflow::NodeBuilder(unique_name, "RandomGammaGrad") |
24 | .Input(_alpha) |
25 | .Input(_sample) |
26 | ; |
27 | scope.UpdateBuilder(&builder); |
28 | scope.UpdateStatus(builder.Finalize(scope.graph(), &ret)); |
29 | if (!scope.ok()) return; |
30 | scope.UpdateStatus(scope.DoShapeInference(ret)); |
31 | this->operation = Operation(ret); |
32 | this->output = Output(ret, 0); |
33 | } |
34 | |
35 | } // namespace internal |
36 | } // namespace ops |
37 | } // namespace tensorflow |
38 |