26 #ifndef NVNEURAL_FILESYSTEMWEIGHTSLOADER_H
27 #define NVNEURAL_FILESYSTEMWEIGHTSLOADER_H
131 std::string m_weightsPrefix;
132 bool m_allowRandomWeights;
133 bool m_allowBinaryWeights;
134 bool m_allowNumpyWeights;
Common helper classes and template function implementations.
Fundamental NvNeural data types are declared here.
NeuralResult
NeuralResult is a generic success/failure result type similar to COM HRESULT.
Definition: CoreTypes.h:274
Standard IWeightsLoader interface that loads weights from the local filesystem.
Definition: FilesystemWeightsLoader.h:105
Official "public" interface allowing control of FilesystemWeightsLoader from other modules.
Definition: FilesystemWeightsLoader.h:37
virtual NeuralResult setAllowNumpyWeights(bool allowNumpy) noexcept=0
Turn NumPy support on or off.
virtual bool allowNumpyWeights() const noexcept=0
Returns true if NumPy support is enabled.
virtual bool allowRandomWeights() const noexcept=0
Returns true if random weights generation is enabled.
static const IRefObject::TypeId typeID
Interface TypeId for InterfaceOf purposes.
Definition: FilesystemWeightsLoader.h:40
virtual bool allowBinaryWeights() const noexcept=0
Returns true if binary support is enabled.
virtual NeuralResult setAllowRandomWeights(bool allowRandoms) noexcept=0
Turn random weights generation on or off.
virtual NeuralResult setAllowBinaryWeights(bool allowBinary) noexcept=0
Turn binary support on or off.
ILayer is the base class for neural network layers.
Definition: LayerTypes.h:59
INetworkRuntime is a subset of the basic network interface that is accessible from layer classes duri...
Definition: CoreTypes.h:1128
Base class for all objects, similar to COM's IUnknown.
Definition: CoreTypes.h:342
std::uint64_t TypeId
Every interface must define a unique TypeId. This should be randomized.
Definition: CoreTypes.h:348
IWeightsData represents a binary buffer provided by IWeightsLoader.
Definition: CoreTypes.h:493
IWeightsLoader is an interface that provides weights to layers.
Definition: CoreTypes.h:524
TensorDimension describes the dimensions of a four-dimensional image tensor.
Definition: CoreTypes.h:135