mxnet
Public Member Functions | Static Public Member Functions | List of all members
mxnet::ResourceManager Class Referenceabstract

Global resource manager. More...

#include <resource.h>

Collaboration diagram for mxnet::ResourceManager:
Collaboration graph

Public Member Functions

virtual Resource Request (Context ctx, const ResourceRequest &req)=0
 Get resource of requested type. More...
 
virtual void SeedRandom (uint32_t seed)=0
 Seed all the allocated random number generators. More...
 
virtual void SeedRandom (Context ctx, uint32_t seed)=0
 Seed the random number generators of the given context. More...
 
virtual ~ResourceManager () DMLC_THROW_EXCEPTION
 virtual destructor More...
 

Static Public Member Functions

static ResourceManagerGet ()
 

Detailed Description

Global resource manager.

Constructor & Destructor Documentation

virtual mxnet::ResourceManager::~ResourceManager ( )
inlinevirtual

virtual destructor

Member Function Documentation

static ResourceManager* mxnet::ResourceManager::Get ( )
static
Returns
Resource manager singleton.
virtual Resource mxnet::ResourceManager::Request ( Context  ctx,
const ResourceRequest req 
)
pure virtual

Get resource of requested type.

Parameters
ctxthe context of the request.
reqthe 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
seedthe 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
seedthe seed to the random number generators.

The documentation for this class was generated from the following file: