Method Set
Set<T>(T, T, int, int, int)
Updates values of A with values from B similar to setting a slice in numpy. A[..., start:end, ....] = B
This returns a new tensor rather than working on A in-place.
This supports numpy-style one-directional broadcasting of B into A.
Declaration
public T Set<T>(T A, T B, int axis, int start, int end) where T : Tensor
Parameters
Type | Name | Description |
---|---|---|
T | A | The first argument as a tensor. |
T | B | The second argument as a tensor. |
int | axis | The axis along which to set the slice. |
int | start | The inclusive start of the slice. |
int | end | The exclusive end of the slice. |
Returns
Type | Description |
---|---|
T | The computed output tensor. |
Type Parameters
Name | Description |
---|---|
T | The tensor type. |