Type Parameters
R extends Rank
D extends DataType = "float32"
Methods
get
- get(...locs): SingleValueMap[D]
Returns SingleValueMap[D]
set
- set(value, ...locs): void
Parameters
value: SingleValueMap[D]
Rest
...locs: number[]
Returns void
toTensor
- toTensor(): Tensor<R>
A mutable object, similar to
tf.Tensor
, that allows users to set values at locations before converting to an immutabletf.Tensor
.See
tf.buffer
for creating a tensor buffer.Doc