| 84 | // Creates a tensor with the specified dtype, shape, and value. |
| 85 | template <typename T> |
| 86 | static Tensor CreateTensor(const TensorShape& input_shape, |
| 87 | const gtl::ArraySlice<T>& input_data) { |
| 88 | Tensor tensor(DataTypeToEnum<T>::value, input_shape); |
| 89 | test::FillValues<T>(&tensor, input_data); |
| 90 | return tensor; |
| 91 | } |
| 92 | |
| 93 | // Creates a vector of tensors with the specified dtype, shape, and values. |
| 94 | template <typename T> |