Global resource manager.
More...
#include <resource.h>
virtual mxnet::ResourceManager::~ResourceManager |
( |
| ) |
|
|
inlinevirtual |
Get resource of requested type.
- Parameters
-
ctx | the context of the request. |
req | the resource request. |
- Returns
- the requested resource.
- Note
- The returned resource's ownership is still hold by the manager singleton.
virtual void mxnet::ResourceManager::SeedRandom |
( |
uint32_t |
seed | ) |
|
|
pure virtual |
Seed all the allocated random number generators.
- Parameters
-
seed | the seed to the random number generators on all devices. |
virtual void mxnet::ResourceManager::SeedRandom |
( |
Context |
ctx, |
|
|
uint32_t |
seed |
|
) |
| |
|
pure virtual |
Seed the random number generators of the given context.
- Parameters
-
seed | the seed to the random number generators. |
The documentation for this class was generated from the following file: