mxnet
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
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 numbers. 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 numbers.

Parameters
seedthe seed to the random number generators on all devices.

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