[alloc_tensor.begin] --- Tensor allocation helper ---
| 60 | // [alloc_tensor.begin] |
| 61 | // --- Tensor allocation helper --- |
| 62 | inline ffi::Tensor alloc_tensor(const ffi::Shape& shape, DLDataType dtype, DLDevice device) { |
| 63 | return ffi::Tensor::FromEnvAlloc(TVMFFIEnvTensorAlloc, shape, dtype, device); |
| 64 | } |
| 65 | // [alloc_tensor.end] |
| 66 | |
| 67 | // [dtype_constants.begin] |
nothing calls this directly
no outgoing calls
no test coverage detected