Method Expand
Expand<T>(T, TensorShape)
Calculates an output tensor by broadcasting the input tensor into a given shape.
Declaration
public T Expand<T>(T X, TensorShape shape) where T : Tensor
Parameters
Type | Name | Description |
---|---|---|
T | X | The input tensor. |
TensorShape | shape | The shape to broadcast the input shape together with to calculate the output tensor. |
Returns
Type | Description |
---|---|
T | The computed output tensor. |
Type Parameters
Name | Description |
---|---|
T | The tensor type of the input and output tensors. |