tfmri.array.update_tensor
tfmri.array.update_tensor¶
- update_tensor(tensor, slices, value)[source]¶
Updates the values of a tensor at the specified slices.
This operator performs slice assignment.
Note
Equivalent to
tensor[slices] = value
.Warning
TensorFlow does not support slice assignment because tensors are immutable. This operator works around this limitation by creating a new tensor, which may have performance implications.