TensorShape Methods

Methods

Append Adds a dimension of the specified size to the end of the current shape.
AsSpan Returns the dimensions of the tensor shape as a readonly span of integers.
Broadcast(TensorShape[]) Returns the shape of the result of an elementwise operation when applied, with broadcasting, to operands with the specified shapes.
Broadcast(TensorShape, TensorShape) Returns the shape of the result of an elementwise operation when applied, with broadcasting, to operands with the specified shapes.
Broadcast(TensorShape, TensorShape, TensorShape) Returns the shape of the result of an elementwise operation when applied, with broadcasting, to operands with the specified shapes.
CanBroadcastFrom(TensorShape) Gets whether this shape can be broadcast into from another shape.
CanBroadcastFrom(TensorShape, TensorShape) Gets whether this shape can be broadcast into another shape.
CanBroadcastTo Returns whether a shape is entirely contained within another shape.
ColumnVector Represents the shape of a column vector of the specified length.
CreateFromArray Returns the shape of an array.
Equals(Object)Determines whether the specified object is equal to the current object.
(Overrides ValueType.Equals(Object))
Equals(TensorShape) Compares this shape to another shape.
GetHashCodeServes as the default hash function.
(Overrides ValueType.GetHashCode())
GetTypeGets the Type of the current instance.
(Inherited from Object)
Insert(Index, Int32) Inserts a dimension of the specified size at the specified position in the current shape.
Insert(Int32, Int32) Inserts a dimension of the specified size at the specified position in the current shape.
RemoveAt(Axes) Removes the specified dimensions from the current shape.
RemoveAt(Index) Returns a new tensor shape with the specified axis removed.
RemoveAt(Int32) Returns a new tensor shape with the specified axis removed.
RowVector Represents the shape of a row vector of the specified length.
SwapAxes(Index, Index) Returns a new tensor shape that has the dimensions along the specified axes swapped.
SwapAxes(Int32, Int32) Returns a new tensor shape that has the dimensions along the specified axes swapped.
ToStringReturns the fully qualified type name of this instance.
(Overrides ValueType.ToString())
TryBroadcast Attempts to compute the shape of the result of an elementwise operation when applied, with broadcasting, to operands with the specified shapes.
Vector Represents the shape of a vector of the specified length.
WithDimension(Axes, Int32) Replaces the specified dimensions with the specified size.
WithDimension(Index, Int32) Returns a tensor shape that has one dimension changed from this shape.
WithDimension(Int32, Int32) Returns a tensor shape that has one dimension changed from this shape.

See Also