| 
 mxnet
    
 | 
registry entry to register simple operators via functions. More...
#include <operator_util.h>

Public Types | |
| typedef SimpleOpRegEntry | TSelf | 
| declare self type  More... | |
Public Member Functions | |
| virtual TSelf & | set_symbol_op_name (char const *symbol_name)=0 | 
| set a seperate name for symbol This must be called before set_function. Default: this is set to be same as the name of operator.  More... | |
| virtual TSelf & | set_enable_scalar (bool enable_scalar, SimpleOpScalarOption type_mask=kArrayBeforeScalar)=0 | 
| set number of scalar arguments needed to be passed in env A function cannot have both kwargs and scalar arguments. Default: this is set to false  More... | |
| virtual TSelf & | set_enable_kwargs (bool enable_kwargs)=0 | 
| set whether to enable kwargs A function cannot have both kwargs and scalar arguments. Default: this is set to false  More... | |
| virtual TSelf & | set_resource_request (const std::vector< ResourceRequest > &reqs)=0 | 
| set resource request By default there is no resource request. The resource will be presented in both forward and backward.  More... | |
| virtual TSelf & | set_resource_request (ResourceRequest req)=0 | 
| set resource request By default there is no resource request. The resource will be presented in both forward and backward.  More... | |
| virtual TSelf & | set_shape_function (SourceShapeFunction fshapeinfer)=0 | 
| set source inference function.  More... | |
| virtual TSelf & | set_shape_function (UnaryShapeFunction fshapeinfer)=0 | 
| set shape inference function. Default: out_shape = in_shape  More... | |
| virtual TSelf & | set_shape_function (BinaryShapeFunction fshapeinfer)=0 | 
| set shape inference function to be the binary inference function Default: out_shape = lhs_shape, and lhs_shape must equal rhs_shape.  More... | |
| virtual TSelf & | set_function (int dev_mask, SourceFunction fsource, SimpleOpRegOption register_symbolic=kRegisterSymbolic)=0 | 
| set function of the function to be fsource  More... | |
| virtual TSelf & | set_function (int dev_mask, UnaryFunction funary, SimpleOpInplaceOption inplace_in_out, SimpleOpRegOption register_symbolic=kRegisterSymbolic)=0 | 
| set function of the function to be funary  More... | |
| virtual TSelf & | set_function (int dev_mask, BinaryFunction fbinary, SimpleOpInplaceOption inplace_lhs_out, SimpleOpRegOption register_symbolic=kRegisterSymbolic)=0 | 
| set function of the function to be funary  More... | |
| virtual TSelf & | set_gradient (int dev_mask, UnaryGradFunctionT0 fgrad, SimpleOpInplaceOption inplace_out_in_grad)=0 | 
| set gradient of the function of this function.  More... | |
| virtual TSelf & | set_gradient (int dev_mask, UnaryGradFunctionT1 fgrad, SimpleOpInplaceOption inplace_out_in_grad)=0 | 
| set gradient of the function of this function.  More... | |
| virtual TSelf & | set_gradient (int dev_mask, UnaryGradFunctionT2 fgrad, SimpleOpInplaceOption inplace_out_in_grad)=0 | 
| set gradient of the function of this function.  More... | |
| virtual TSelf & | set_gradient (int dev_mask, BinaryGradFunctionT0 fgrad, SimpleOpInplaceOption inplace_out_lhs_grad)=0 | 
| set gradient of the function of this function.  More... | |
| virtual TSelf & | set_gradient (int dev_mask, BinaryGradFunctionT1 fgrad, SimpleOpInplaceOption inplace_out_lhs_grad)=0 | 
| set gradient of the function of this function.  More... | |
| virtual TSelf & | describe (const std::string &description)=0 | 
| Describe the function.  More... | |
| virtual TSelf & | add_arguments (const std::vector< dmlc::ParamFieldInfo > &args)=0 | 
| Describe the function.  More... | |
| virtual | ~SimpleOpRegEntry () | 
| virtual destructor  More... | |
Public Attributes | |
| std::string | name | 
| name of the operator  More... | |
registry entry to register simple operators via functions.
declare self type
  | 
inlinevirtual | 
virtual destructor
  | 
pure virtual | 
Describe the function.
| args | argument information. Add additional arguments to the function. | 
  | 
pure virtual | 
Describe the function.
| description | The description of the function. | 
  | 
pure virtual | 
set whether to enable kwargs A function cannot have both kwargs and scalar arguments. Default: this is set to false
| enable_kwargs | whether to enable kwargs | 
  | 
pure virtual | 
set number of scalar arguments needed to be passed in env A function cannot have both kwargs and scalar arguments. Default: this is set to false
| enable_scalar | whether to enable scalar argument | 
| type_mask | the position of the scalar argument. | 
  | 
pure virtual | 
set function of the function to be fsource
| dev_mask | The device mask of the function can act on. | 
| fsource | The unary function that peforms the operation. | 
| register_symbolic | Whether register a symbolic operator as well. | 
  | 
pure virtual | 
set function of the function to be funary
| dev_mask | The device mask of the function can act on. | 
| funary | The unary function that peforms the operation. | 
| inplace_in_out | Whether do inplace optimization on in and out. | 
| register_symbolic | Whether register a symbolic operator as well. | 
  | 
pure virtual | 
set function of the function to be funary
| dev_mask | The device mask of the function can act on. | 
| fbinary | The binary function that peforms the operation. | 
| inplace_lhs_out | Whether do inplace optimization on lhs and out. | 
| register_symbolic | Whether register a symbolic operator as well. | 
  | 
pure virtual | 
set gradient of the function of this function.
| dev_mask | The device mask of the function can act on. | 
| fgrad | The gradient function to be set. | 
| inplace_out_in_grad | whether out_grad and in_grad can share memory. | 
  | 
pure virtual | 
set gradient of the function of this function.
| dev_mask | The device mask of the function can act on. | 
| fgrad | The gradient function to be set. | 
| inplace_out_in_grad | whether out_grad and in_grad can share memory. | 
  | 
pure virtual | 
set gradient of the function of this function.
| dev_mask | The device mask of the function can act on. | 
| fgrad | The gradient function to be set. | 
| inplace_out_in_grad | whether out_grad and in_grad can share memory. | 
  | 
pure virtual | 
set gradient of the function of this function.
| dev_mask | The device mask of the function can act on. | 
| fgrad | The gradient function to be set. | 
| inplace_out_lhs_grad | whether out_grad and lhs_grad can share memory. | 
  | 
pure virtual | 
set gradient of the function of this function.
| dev_mask | The device mask of the function can act on. | 
| fgrad | The gradient function to be set. | 
| inplace_out_lhs_grad | whether out_grad and lhs_grad can share memory. | 
  | 
pure virtual | 
set resource request By default there is no resource request. The resource will be presented in both forward and backward.
| reqs | the request. | 
  | 
pure virtual | 
set resource request By default there is no resource request. The resource will be presented in both forward and backward.
| req | the request. | 
  | 
pure virtual | 
set source inference function.
| fshapeinfer | The source function that peforms the operation. | 
  | 
pure virtual | 
set shape inference function. Default: out_shape = in_shape
| fshapeinfer | The unary function that peforms the operation. | 
  | 
pure virtual | 
set shape inference function to be the binary inference function Default: out_shape = lhs_shape, and lhs_shape must equal rhs_shape.
| fshapeinfer | The binary function that peforms the operation. | 
  | 
pure virtual | 
set a seperate name for symbol This must be called before set_function. Default: this is set to be same as the name of operator.
| symbol_name | the name of symbolic operator. | 
| std::string mxnet::op::SimpleOpRegEntry::name | 
name of the operator
 1.8.11