(ensure-datatypes datatype & args)
Most tensor functions require all arguments to have same datatype.
Most tensor functions require all arguments to have same datatype.
(ensure-elementwise-compatible lhs rhs)
Ensure these two tensors are compatible for an elementwise operation that rerequires the items to have the same element count.
Ensure these two tensors are compatible for an elementwise operation that rerequires the items to have the same element count.
(ensure-same-device & args)
Given a set of tensors, ensure they share the same device. Only assignment of identical types is guaranteed to work across devices.
Given a set of tensors, ensure they share the same device. Only assignment of identical types is guaranteed to work across devices.
(ensure-same-driver & args)
Given a set of tensors, ensure they share the same driver.
Given a set of tensors, ensure they share the same driver.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close