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

Public Member Functions

def __init__ (self, pattern, filename="")
def substitute (self, env={}, kwargs)

Static Public Member Functions

def from_file (filename)

Public Attributes


Static Public Attributes

string substitution_str = r'(^[^\n\S]*)?\$([^\d\W]\w*|\{,?[^\d\W]\w*\,?})'
 substitution_str = substitution_str.replace(r'\w', r'[a-zA-Z0-9_]')
 subtitution = re.compile(substitution_str, re.MULTILINE)

Detailed Description

Definition at line 13 of file

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