An intermediate expression of tensor that can be composed into a more complex expression.
An intermediate expression of tensor that can be composed into a more complex expression.
A Tensor that is associated with a non-inline kernel program (i.e.
There are three kinds of Tensor.
@inline def
,
which can be merged into a larger kernel
and will be recalculated whenever a slow action is performed.@noinline def
,
which is never merged into a larger kernel
and will be recalculated whenever a slow action is performed.lazy val
,
which has an associated data buffer on the compute device
and will be calculated only once even when slow actions are performed more than once.Returns an uninitialized buffer of Element
on device.
Returns an uninitialized buffer of Element
on device.
Returns a buffer of Element
on device whose content is copied from hostBuffer
.
Returns a buffer of Element
on device whose content is copied from hostBuffer
.
Creates single kernel from this Program.
Creates single kernel from this Program.
com.thoughtworks.compute.OpenCL.Exceptions.InvalidValue
if the this Program has more than one kernel.