Method Length
Length(int)
Returns the number of elements represented by the TensorShape
, starting from a given axis. A negative axis counts backwards from the inner dimension.
Declaration
public int Length(int start)
Parameters
Type | Name | Description |
---|---|---|
int | start | The first axis to count length from. |
Returns
Type | Description |
---|---|
int | The number of elements in the shape. |
Length(int, int)
Returns the number of elements represented by the TensorShape
, between the start and end axes. Negative axes counts backwards from the inner dimension.
Declaration
public int Length(int start, int end)
Parameters
Type | Name | Description |
---|---|---|
int | start | The first axis to count length from. |
int | end | The exclusive final axis to count length to. |
Returns
Type | Description |
---|---|
int | The number of elements in the shape. |