| 1285 | } |
| 1286 | |
| 1287 | inline void* GetTensorBuffer(const Tensor* tensor) const { |
| 1288 | CHECK_NOTNULL(tensor); |
| 1289 | return const_cast<void*>( |
| 1290 | static_cast<const void*>(tensor->flat<T>().data())); |
| 1291 | } |
| 1292 | |
| 1293 | void SetIs3DData(bool bIs3D_) { bIs3D = bIs3D_; } |
| 1294 | bool GetIs3D() { return bIs3D; } |
no test coverage detected