| 201 | } |
| 202 | |
| 203 | char* GetBackingBuffer(const Tensor& val) { |
| 204 | CHECK(DataTypeCanUseMemcpy(val.dtype())) << val.dtype(); |
| 205 | return const_cast<char*>(val.tensor_data().data()); |
| 206 | } |
| 207 | |
| 208 | tstring* GetStringBackingBuffer(const Tensor& val) { |
| 209 | CHECK_EQ(DT_STRING, val.dtype()); |
no test coverage detected