Function tvm::runtime::Empty#
Defined in File tensor.h
Function Documentation#
-
ffi::Tensor tvm::runtime::Empty(ffi::Shape shape, DLDataType dtype, Device dev, ffi::Optional<MemoryScope> mem_scope = std::nullopt)#
Allocate an uninitialized tensor through the runtime device allocator.
- Parameters:
shape – The tensor shape.
dtype – The tensor data type.
dev – The allocation device.
mem_scope – The optional device memory scope.