(pointer->tvm-ary ptr
device-type
device-id
datatype
shape
strides
byte-offset
&
[gc-root])
Take a pointer value and convert it into a dl-tensor datatype.
strides are optional, can be nil.
Not all backends in TVM can offset their pointer types. For this reason, tvm arrays have a byte_offset member that you can use to make an array not start at the pointer's base address.
Take a pointer value and convert it into a dl-tensor datatype. strides are optional, can be nil. Not all backends in TVM can offset their pointer types. For this reason, tvm arrays have a byte_offset member that you can use to make an array not start at the pointer's base address.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close