Liking cljdoc? Tell your friends :D

tech.compute.tensor

Functions for dealing with tensors with the compute system

Functions for dealing with tensors with the compute system
raw docstring

->arrayclj

(->array tens & [datatype])
source

->double-arrayclj

(->double-array tens)
source

->float-arrayclj

(->float-array tens)
source

->tensorclj

(->tensor data & {:keys [datatype device stream sync?] :as options})
source

assign!clj

(assign! lhs rhs & [options])

assign rhs to lhs returning lhs

assign rhs to lhs returning lhs
sourceraw docstring

clone-to-deviceclj

(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.
sourceraw docstring

clone-to-hostclj

(clone-to-host device-tens)
(clone-to-host device-tens options)

Copy this tensor to the host. Synchronized by default.

Copy this tensor to the host.  Synchronized by default.
sourceraw docstring

columnsclj

(columns tens)
source

ensure-deviceclj

(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.
sourceraw docstring

ensure-hostclj

(ensure-host device-tens)
(ensure-host device-tens options)

Ensure this tensor is a 'host' tensor. Synchronized by default.

Ensure this tensor is a 'host' tensor.  Synchronized by default.
sourceraw docstring

new-host-tensorclj

(new-host-tensor shape)
(new-host-tensor shape options)
source

new-tensorclj

(new-tensor shape)
(new-tensor shape options)
source

rowsclj

(rows tens)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close