NVIDIA NvNeural SDK
2021.2
GPU inference framework for NVIDIA Nsight Deep Learning Designer
|
Standard IWeightsLoader interface that loads weights from the local filesystem. More...
#include <FilesystemWeightsLoader.h>
Public Member Functions | |
bool | allowBinaryWeights () const noexcept |
Returns true if binary support is enabled. More... | |
bool | allowNumpyWeights () const noexcept |
Returns true if NumPy support is enabled. More... | |
bool | allowRandomWeights () const noexcept |
Returns true if random weights generation is enabled. More... | |
FilesystemWeightsLoader (const std::string &weightsPrefix) | |
Creates a weights loader that operates in a particular directory. More... | |
NeuralResult | getWeightsForLayer (IWeightsData **ppWeightsDataOut, const INetworkRuntime *pNetwork, const ILayer *pLayer, const char *pName) const noexcept |
Retrieves a weights data buffer in a canonical format. More... | |
NeuralResult | setAllowBinaryWeights (bool allowBinary) noexcept |
Turn binary support on or off. More... | |
NeuralResult | setAllowNumpyWeights (bool allowNumpy) noexcept |
Turn NumPy support on or off. More... | |
NeuralResult | setAllowRandomWeights (bool allowRandoms) noexcept |
Turn random weights generation on or off. More... | |
![]() | |
IRefObject::RefCount | addRef () const noexcept |
Increment the object's reference count. More... | |
const void * | queryInterface (IRefObject::TypeId interfaceId) const noexcept |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
void * | queryInterface (IRefObject::TypeId interfaceId) noexcept |
Retrieves a new object interface pointer. More... | |
RefObjectBase () | |
Default constructor. Logs object creation. | |
IRefObject::RefCount | release () const noexcept |
Decrements the object's reference count and destroys the object if the reference count reaches zero. More... | |
Standard IWeightsLoader interface that loads weights from the local filesystem.
Applications should feel to augment or replace this class with domain-specific functionality.
|
explicit |
Creates a weights loader that operates in a particular directory.
weightsPrefix | Path string to prepend to generated weights filenames before loading |
|
noexcept |
Returns true if binary support is enabled.
|
noexcept |
Returns true if NumPy support is enabled.
|
noexcept |
Returns true if random weights generation is enabled.
|
noexcept |
Retrieves a weights data buffer in a canonical format.
ppWeightsDataOut | Pointer to a variable receiving the created IWeightsData object |
pNetwork | NetworkRuntime containing the layer |
pLayer | Layer to retrieve data for |
pName | Buffer to retrieve |
|
noexcept |
Turn binary support on or off.
|
noexcept |
Turn NumPy support on or off.
|
noexcept |
Turn random weights generation on or off.