Navigation
API > API/Runtime > API/Runtime/NNE
References
| Module | NNE |
| Header | /Engine/Source/Runtime/NNE/Public/NNETypes.h |
| Include | #include "NNETypes.h" |
Syntax
class FTensorShape
Remarks
The concrete shape of a tensor.
Concrete tensor shapes are well defined through strictly positive values and thus have a defined volume.
Constructors
| Type | Name | Description | |
|---|---|---|---|
FTensorShape () |
Default construct a tensor shape. | ||
FTensorShape
(
const FTensorShape& OtherShape |
Construct this tensor shape from another one. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| TConstArrayView< uint32 > | GetData () |
Get the dimensions of the tensor shape. | |
| bool | IsCompatibleWith
(
const FSymbolicTensorShape& SymbolicShape |
Check if this tensor shape is part of the ensemble of shapes defined by the symbolic shape. | |
| FTensorShape | Make
(
TConstArrayView< uint32 > Data |
Construct a tensor shape with the given dimensions. | |
| FTensorShape | MakeFromSymbolic
(
const FSymbolicTensorShape& SymbolicShape |
Construct a tensor shape from a symbolic tensor shape. | |
| int32 | Rank () |
Get the number of dimensions of the tensor shape, aka the rank. | |
| uint64 | Volume () |
Get the number of elements in this tensor shape. |
Operators
| Type | Name | Description | |
|---|---|---|---|
| bool | operator!=
(
const FTensorShape& OtherShape |
Check if the tensor shape is different from another one. | |
| void | operator=
(
const FTensorShape& OtherShape |
Assign this tensor shape from another one. | |
| bool | operator==
(
const FTensorShape& OtherShape |
Check if the tensor shape is equal to another one. |
Constants
| Name | Description |
|---|---|
| MaxRank | The maximum number of dimensions supported by the tensor shape, aka the rank. |