7#include "NNETypes.generated.h"
258 inline const FString&
GetName()
const {
return Name; }
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
ENNETensorDataType
Definition NNETypes.h:16
@ Float
32-bit floating number
@ Int16
16-bit signed integer
@ Int8
8-bit signed integer
@ UInt16
16-bit unsigned integer
@ UInt64
64-bit unsigned integer
@ UInt8
8-bit unsigned integer
@ Int32
32-bit signed integer
@ Half
16-bit floating number
@ BFloat16
16-bit floating number
@ Double
64-bit floating number
@ Complex64
64-bit Complex Number
@ UInt32
32-bit unsigned integer
@ Complex128
128-bit Complex Number
@ Int64
64-bit signed integer
#define UENUM(...)
Definition ObjectMacros.h:749
TConstArrayView< int32 > GetData() const
Definition NNETypes.h:88
NNE_API bool IsConcrete() const
Definition NNETypes.cpp:30
int32 Rank() const
Definition NNETypes.h:95
static constexpr int32 MaxRank
Definition NNETypes.h:57
NNE_API void operator=(const FSymbolicTensorShape &OtherShape)
Definition NNETypes.cpp:49
FSymbolicTensorShape()=default
NNE_API bool operator!=(const FSymbolicTensorShape &OtherShape) const
Definition NNETypes.cpp:47
NNE_API bool operator==(const FSymbolicTensorShape &OtherShape) const
Definition NNETypes.cpp:42
static NNE_API FSymbolicTensorShape Make(TConstArrayView< int32 > Data)
Definition NNETypes.cpp:55
FSymbolicTensorShape(const FSymbolicTensorShape &OtherShape)=default
Definition NNETypes.h:234
ENNETensorDataType GetDataType() const
Definition NNETypes.h:265
const FString & GetName() const
Definition NNETypes.h:258
uint32 GetElementByteSize() const
Definition NNETypes.h:272
const FSymbolicTensorShape & GetShape() const
Definition NNETypes.h:279
static NNE_API FTensorDesc Make(const FString &Name, const FSymbolicTensorShape &Shape, ENNETensorDataType DataType)
Definition NNETypes.cpp:161
Definition NNETypes.h:134
NNE_API void operator=(const FTensorShape &OtherShape)
Definition NNETypes.cpp:99
TConstArrayView< uint32 > GetData() const
Definition NNETypes.h:179
NNE_API bool operator==(const FTensorShape &OtherShape) const
Definition NNETypes.cpp:92
NNE_API uint64 Volume() const
Definition NNETypes.cpp:64
NNE_API bool operator!=(const FTensorShape &OtherShape) const
Definition NNETypes.cpp:97
static constexpr int32 MaxRank
Definition NNETypes.h:139
static NNE_API FTensorShape Make(TConstArrayView< uint32 > Data)
Definition NNETypes.cpp:105
int32 Rank() const
Definition NNETypes.h:186
NNE_API bool IsCompatibleWith(const FSymbolicTensorShape &SymbolicShape) const
Definition NNETypes.cpp:76
static NNE_API FTensorShape MakeFromSymbolic(const FSymbolicTensorShape &SymbolicShape)
Definition NNETypes.cpp:114
FTensorShape(const FTensorShape &OtherShape)=default
int32 GetTensorDataTypeSizeInBytes(ENNETensorDataType InType)
Definition NNETypes.cpp:125