| 26 | struct CPUNDAlloc { |
| 27 | void AllocData(DLTensor* tensor) { tensor->data = malloc(GetDataSize(*tensor)); } |
| 28 | void FreeData(DLTensor* tensor) { free(tensor->data); } |
| 29 | }; |
| 30 | |
| 31 | inline Tensor Empty(const Shape& shape, DLDataType dtype, DLDevice device) { |
nothing calls this directly
no outgoing calls
no test coverage detected