(->long-ptr item)
(arg-list->tvm-args args)
(call-function tvm-fn & args)
(check-call & body)
(datatype->dl-datatype datatype & [dtype-retval])
(datatype->dl-type-code datatype)
(device-id->int item)
(device-type->int item)
(dl-datatype->datatype dtype)
(dl-datatype->map dtype)
(get-last-error)
(global-function fn-name & args)
(int-ptr item)
(keyword->tvm-datatype kwd)
(long-ptr item)
(make-tvm-jna-fn fn-name docstring rettype & argpairs)
TVM functions are very regular so the mapping to them can exploit this. Argpair is of type [symbol type-coersion].
TVM functions are very regular so the mapping to them can exploit this. Argpair is of type [symbol type-coersion].
(name->global-function fn-name)
(ptr-ptr item)
(tvm-datatype->keyword tvm-datatype)
(tvm-datatype->keyword-nothrow tvm-datatype)
Attempts to coerce the tvm value into the jvm. Failures result in a returned map container a value for the key: :tvm->jvm-failure
This is in order to ensure that, for instance, deserialization of a node's fields allows for a sane recovery mechanism and doesn't lose those field values.
Attempts to coerce the tvm value into the jvm. Failures result in a returned map container a value for the key: :tvm->jvm-failure This is in order to ensure that, for instance, deserialization of a node's fields allows for a sane recovery mechanism and doesn't lose those field values.
(TVMFuncCall fn-handle arg_values type_codes num_args ret_val ret_type_code)
Call a tvm function
Call a tvm function
(TVMFuncGetGlobal fn-name fn-ptr)
Get a global function ptr
Get a global function ptr
(TVMFuncListGlobalNames num-fns fn-names)
List the global names
List the global names
(TVMGetLastError)
Get last tvm error as byte ptr
Get last tvm error as byte ptr
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close