| 42 | } // namespace |
| 43 | |
| 44 | Output Const(const Scope& scope, const Input::Initializer& val) { |
| 45 | if (!val.status.ok()) { |
| 46 | scope.UpdateStatus(val.status); |
| 47 | return Output(); |
| 48 | } |
| 49 | return ConstHelper(scope, val.tensor, val.tensor.dtype()); |
| 50 | } |
| 51 | |
| 52 | Output ConstFromProto(const Scope& scope, const TensorProto& proto) { |
| 53 | return ConstHelper(scope, proto, proto.dtype()); |
no test coverage detected