Caffe2 - Python API
A deep learning, cross platform ML framework
Functions | Variables
init_baseline Namespace Reference

Functions

def emit (initializer_parameter_map)
 
def run (initializer)
 
def main ()
 

Variables

string HEADER
 
string FOOTER = "} // namespace expected_parameters"
 
string PARAMETERS = "inline std::vector<std::vector<torch::Tensor>> {}() {{"
 
dictionary INITIALIZERS
 

Detailed Description

Script to generate baseline values from PyTorch initialization algorithms

Variable Documentation

string init_baseline.HEADER
Initial value:
1 = """
2 #include <torch/types.h>
3 
4 #include <vector>
5 
6 namespace expected_parameters {
7 """

Definition at line 6 of file init_baseline.py.

dictionary init_baseline.INITIALIZERS
Initial value:
1 = {
2  "Xavier_Uniform": lambda w: torch.nn.init.xavier_uniform(w),
3  "Xavier_Normal": lambda w: torch.nn.init.xavier_normal(w),
4  "Kaiming_Normal": lambda w: torch.nn.init.kaiming_normal(w),
5  "Kaiming_Uniform": lambda w: torch.nn.init.kaiming_uniform(w)
6 }
xavier_uniform
Definition: init.py:429
kaiming_normal
Definition: init.py:432
kaiming_uniform
Definition: init.py:431

Definition at line 18 of file init_baseline.py.