Functions for dealing with tensors with the compute system
Functions for dealing with tensors with the compute system
(clone-to-device input-tens)
(clone-to-device input-tens options)
Clone a host tensor to a device. Tensor must have relatively straighforward dimensions (transpose OK but arbitrary reorder or offset not OK) or :force? must be specified. options: :force? Copy tensor to another buffer if necessary. :sync? Sync with stream to ensure copy operation is finished before moving forward.
Clone a host tensor to a device. Tensor must have relatively straighforward dimensions (transpose OK but arbitrary reorder or offset not OK) or :force? must be specified. options: :force? Copy tensor to another buffer if necessary. :sync? Sync with stream to ensure copy operation is finished before moving forward.
(ensure-device input-tens)
(ensure-device input-tens options)
Ensure a tensor can be used on a device. Some devices can use CPU tensors.
Ensure a tensor can be used on a device. Some devices can use CPU tensors.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close