| 109 | std::is_arithmetic<T>::value || |
| 110 | std::is_convertible<T, string>::value>::type> |
| 111 | Initializer(const T& v) { // NOLINT(runtime/explicit) |
| 112 | typedef typename RealType<T>::type RealT; |
| 113 | Tensor t(DataTypeToEnum<RealT>::v(), TensorShape()); |
| 114 | t.flat<RealT>()(0) = RealT(v); |
| 115 | tensor = t; |
| 116 | } |
| 117 | |
| 118 | Initializer(const Tensor& t) : tensor(t) {} // NOLINT(runtime/explicit) |
| 119 |
nothing calls this directly
no test coverage detected