Float Scalar
A differentiable tensor of rank 0 containing a single float (a FloatTensor wrapper around a float).
Constructors
FloatScalar
Link copied to clipboard
Creates a FloatScalar initialized to value.
Types
Functions
as Strided
Link copied to clipboard
cpu
Link copied to clipboard
gpu
Link copied to clipboard
impure Map
Link copied to clipboard
map for when the function is not pure.
impure Zip
Link copied to clipboard
open fun impureZip(right: FloatTensor, f: (Float, Float) -> Float): FloatTensor
Content copied to clipboard
zip for when the function is not pure.
impure Zip2
Link copied to clipboard
open fun impureZip2(second: FloatTensor, third: FloatTensor, f: (Float, Float, Float) -> Float): FloatTensor
Content copied to clipboard
zip2 for when the function is not pure.
map
Link copied to clipboard
map Indexed
Link copied to clipboard
normalize
Link copied to clipboard
Return an equivalent tensor whose representation is a StridedFloatTensor with natural layout and zero offset (that is, with a contiguous data representation).
pos To Index
Link copied to clipboard
Computes the tensor index corresponding to the position in normal form.
to
Link copied to clipboard
to Code String
Link copied to clipboard
zip
Link copied to clipboard
open fun zip(right: FloatTensor, f: (Float, Float) -> Float): FloatTensor
Content copied to clipboard
zip2
Link copied to clipboard
open fun zip2(second: FloatTensor, third: FloatTensor, f: (Float, Float, Float) -> Float): FloatTensor
Content copied to clipboard
Properties
Extensions
compare To
Link copied to clipboard