Navigation
API > API/Runtime > API/Runtime/NNE
A symbolic tensor shape represents the shape of a tensor with potentially variable dimension.
The variable dimensions are represented by -1 values.
| Name | FSymbolicTensorShape |
| Type | class |
| Header File | /Engine/Source/Runtime/NNE/Public/NNETypes.h |
| Include Path | #include "NNETypes.h" |
Syntax
class FSymbolicTensorShape
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Default construct a symbolic tensor shape. | NNETypes.h | ||
FSymbolicTensorShape
(
const FSymbolicTensorShape& OtherShape |
Construct this symbolic tensor shape from another one. | NNETypes.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| MaxRank | int32 | The maximum number of dimensions supported by the symbolic tensor shape, aka the rank. | NNETypes.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Data | TArray< int32, TInlineAllocator< MaxRank > > | NNETypes.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TConstArrayView< int32 > GetData() |
Get the dimensions of the symbolic tensor shape. | NNETypes.h | |
bool IsConcrete() |
Check if the symbolic tensor shape has no variable dimensions, aka is concrete. | NNETypes.h | |
int32 Rank() |
Get the number of dimensions of the symbolic tensor shape, aka the rank. | NNETypes.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static FSymbolicTensorShape Make
(
TConstArrayView< int32 > Data |
Construct a symbolic tensor shape with the given dimensions. | NNETypes.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool operator!=
(
const FSymbolicTensorShape& OtherShape |
Check if the symbolic tensor shape is different from another one. | NNETypes.h | |
void operator=
(
const FSymbolicTensorShape& OtherShape |
Assign this symbolic tensor shape from another one. | NNETypes.h | |
bool operator==
(
const FSymbolicTensorShape& OtherShape |
Check if the symbolic tensor shape is equal to another one. | NNETypes.h |