V
- the type of the values to be addedpublic static final class ImmutableTensor.Builder<V> extends AbstractTensorBuilder<V>
Modifier and Type | Method and Description |
---|---|
ImmutableTensor<V> |
build()
Builds an
ImmutableTensor from all elements put before. |
java.util.Map<Position,V> |
createEntriesMap()
Builds the entries map as an
ImmutableMap . |
protected void |
putIt(Position position,
V value) |
TensorBuilder<V> |
remove(Position position) |
context, context, dimensions, put, put, putAll, putAll, putAll, putAll
public java.util.Map<Position,V> createEntriesMap()
ImmutableMap
.public ImmutableTensor<V> build()
ImmutableTensor
from all elements put before.ImmutableTensor
.protected void putIt(Position position, V value)
putIt
in class AbstractTensorBuilder<V>
public TensorBuilder<V> remove(Position position)