![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <NNETypes.h>
Public Member Functions | |
| const FString & | GetName () const |
| ENNETensorDataType | GetDataType () const |
| uint32 | GetElementByteSize () const |
| const FSymbolicTensorShape & | GetShape () const |
Static Public Member Functions | |
| static NNE_API FTensorDesc | Make (const FString &Name, const FSymbolicTensorShape &Shape, ENNETensorDataType DataType) |
The descriptor for a tensor as model inputs and output.
A tensor is described by its name, the type of data it contains and it's shape. Since input and output tensors of a neural network can have dynamic shapes, Shape is symbolic.
|
inline |
Get the data type of the tensor
|
inline |
Get the size in bytes of one element of the tensor.
|
inline |
Get the name of the tensor
|
inline |
Get the symbolic shape of the tensor.
|
static |
Construct a tensor description for model input/output
| Name | the name of the tensor. |
| Shape | the symbolic shape of the tensor. |
| DataType | the type of data the tensor contains. |