Caffe2 - Python API
A deep learning, cross platform ML framework
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
tools.cwrap.cwrap.cwrap Class Reference
Inheritance diagram for tools.cwrap.cwrap.cwrap:

Public Member Functions

def __init__ (self, source, destination=None, plugins=None, default_plugins=True, template_path=None)
 
def wrap_declarations (self, declarations)
 
def parse_arguments (self, args)
 
def search_plugins (self, fnname, args, fallback)
 
def get_type_check (self, arg, option)
 
def get_type_unpack (self, arg, option)
 
def get_return_wrapper (self, option)
 
def get_wrapper_template (self, declaration)
 
def get_assign_args (self, arguments)
 
def get_arg_accessor (self, arg, option)
 
def generate_wrapper (self, declaration)
 
def map_selected_arguments (self, base_fn_name, plugin_fn_name, option, arguments)
 
def build_option_args (self, arguments, arg_unpack)
 
def indent_code (self, code)
 
def generate_option (self, option, is_first)
 

Public Attributes

 plugins
 
 base_path
 

Static Public Attributes

 BASE_INDENT_SIZE
 
 RETURN_WRAPPERS
 
 OPTION_TEMPLATE
 
 ARG_ASSIGN_TEMPLATE
 
 OPTION_CODE_TEMPLATE
 
 FUNCTION_CALL_TEMPLATE
 
 DEFAULT_PLUGIN_CLASSES
 

Detailed Description

Definition at line 10 of file cwrap.py.

Member Function Documentation

def tools.cwrap.cwrap.cwrap.search_plugins (   self,
  fnname,
  args,
  fallback 
)
Search plugins for the given function to call with args.

If not found, call fallback with args.

Definition at line 136 of file cwrap.py.


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