26 #ifndef NVNEURAL_FILESYSTEMWEIGHTSLOADER_H
27 #define NVNEURAL_FILESYSTEMWEIGHTSLOADER_H
140 void init(
const std::string& weightsPrefix);
143 std::string m_weightsPrefix;
144 bool m_allowRandomWeights;
145 bool m_allowBinaryWeights;
146 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:275
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:1129
Base class for all objects, similar to COM's IUnknown.
Definition: CoreTypes.h:343
std::uint64_t TypeId
Every interface must define a unique TypeId. This should be randomized.
Definition: CoreTypes.h:349
IWeightsData represents a binary buffer provided by IWeightsLoader.
Definition: CoreTypes.h:494
IWeightsLoader is an interface that provides weights to layers.
Definition: CoreTypes.h:525
TensorDimension describes the dimensions of a four-dimensional image tensor.
Definition: CoreTypes.h:136