(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 builds & hosts documentation for Clojure/Script libraries
Ctrl+k | Jump to recent docs |
← | Move to previous article |
→ | Move to next article |
Ctrl+/ | Jump to the search field |