| 125 | } |
| 126 | |
| 127 | Status ReadData(CLCommandQueue* queue, void* data_ptr) const { |
| 128 | const size_t data_size = |
| 129 | Width() * Height() * Channels() * SizeOf(DataType()); |
| 130 | RETURN_IF_ERROR( |
| 131 | queue->EnqueueReadBuffer(GetMemoryPtr(), data_size, data_ptr)); |
| 132 | return OkStatus(); |
| 133 | } |
| 134 | |
| 135 | ~TensorBHWC() override { ReleaseBHWC(); } |
| 136 |
nothing calls this directly
no test coverage detected