mxnet
Public Member Functions | Public Attributes | List of all members
nnvm::OpGroup Class Reference

auxiliary data structure used to set attributes to a group of operators More...

#include <op.h>

Collaboration diagram for nnvm::OpGroup:
Collaboration graph

Public Member Functions

template<typename ValueType >
OpGroupset_attr (const std::string &attr_name, const ValueType &value, int plevel=1)
 Register additional attributes to operator group. More...
 

Public Attributes

std::string group_name
 the tag key to be matched More...
 

Detailed Description

auxiliary data structure used to set attributes to a group of operators

Member Function Documentation

template<typename ValueType >
OpGroup & nnvm::OpGroup::set_attr ( const std::string &  attr_name,
const ValueType &  value,
int  plevel = 1 
)
inline

Register additional attributes to operator group.

Parameters
attr_nameThe name of the attribute.
valueThe value to be set.
plevelThe priority level of this set, an higher priority level attribute will replace lower priority level attribute. Must be bigger than 0.

Cannot set with same plevel twice in the code.

Template Parameters
ValueTypeThe type of the value to be set.

Member Data Documentation

std::string nnvm::OpGroup::group_name

the tag key to be matched


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