| 51 | |
| 52 | template <typename T> |
| 53 | Tensor Constant(T v, TensorShape shape) { |
| 54 | Tensor ret(DataTypeToEnum<T>::value, shape); |
| 55 | ret.flat<T>().setConstant(v); |
| 56 | return ret; |
| 57 | } |
| 58 | |
| 59 | template <typename T> |
| 60 | Tensor Constant_2x3(T v) { |
no outgoing calls
no test coverage detected