This project has retired. For details please refer to its Attic page.
mxnet: mxnet::ResourceRequest Struct Reference
mxnet
Public Types | Public Member Functions | Public Attributes | List of all members
mxnet::ResourceRequest Struct Reference

The resources that can be requested by Operator. More...

#include <resource.h>

Collaboration diagram for mxnet::ResourceRequest:
Collaboration graph

Public Types

enum  Type { kRandom, kTempSpace, kParallelRandom }
 Resource type, indicating what the pointer type is. More...
 

Public Member Functions

 ResourceRequest ()
 default constructor More...
 
 ResourceRequest (Type type)
 constructor, allow implicit conversion More...
 

Public Attributes

Type type
 type of resources More...
 

Detailed Description

The resources that can be requested by Operator.

Member Enumeration Documentation

Resource type, indicating what the pointer type is.

Enumerator
kRandom 

mshadow::Random<xpu> object

kTempSpace 

A dynamic temp space that can be arbitrary size.

kParallelRandom 

common::RandGenerator<xpu> object, which can be used in GPU kernel functions

Constructor & Destructor Documentation

mxnet::ResourceRequest::ResourceRequest ( )
inline

default constructor

mxnet::ResourceRequest::ResourceRequest ( Type  type)
inline

constructor, allow implicit conversion

Parameters
typetype of resources

Member Data Documentation

Type mxnet::ResourceRequest::type

type of resources


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