Caffe2 - Python API
A deep learning, cross platform ML framework
Public Member Functions | List of all members
test_nn.TestNNInit Class Reference
Inheritance diagram for test_nn.TestNNInit:
common_utils.TestCase expecttest.TestCase

Public Member Functions

def setUp (self)
 
def test_calculate_gain_linear (self)
 
def test_calculate_gain_nonlinear (self)
 
def test_calculate_gain_leaky_relu (self)
 
def test_calculate_gain_leaky_relu_only_accepts_numbers (self)
 
def test_calculate_gain_only_accepts_valid_nonlinearities (self)
 
def test_uniform (self)
 
def test_normal (self)
 
def test_constant (self)
 
def test_ones_and_zeros (self)
 
def test_eye (self)
 
def test_eye_only_works_on_2d_inputs (self)
 
def test_max_unpool (self)
 
def test_dirac_properties (self)
 
def test_dirac_identity (self)
 
def test_dirac_only_works_on_3_4_5d_inputs (self)
 
def test_xavier_uniform_errors_on_inputs_smaller_than_2d (self)
 
def test_xavier_normal_errors_on_inputs_smaller_than_2d (self)
 
def test_xavier_uniform (self)
 
def test_xavier_normal (self)
 
def test_kaiming_uniform_errors_on_inputs_smaller_than_2d (self)
 
def test_kaiming_normal_errors_on_inputs_smaller_than_2d (self)
 
def test_kaiming_uniform (self)
 
def test_kaiming_normal (self)
 
def test_sparse_only_works_on_2d_inputs (self)
 
def test_sparse_default_std (self)
 
def test_orthogonal (self)
 
def test_deprecation (self)
 
- Public Member Functions inherited from common_utils.TestCase
def __init__ (self, method_name='runTest')
 
def assertLeaksNoCudaTensors (self, name=None)
 
def wrap_with_cuda_memory_check (self, method)
 
def setUp (self)
 
def assertTensorsSlowEqual (self, x, y, prec=None, message='')
 
def genSparseTensor (self, size, sparse_dim, nnz, is_uncoalesced, device='cpu')
 
def safeToDense (self, t)
 
def safeCoalesce (self, t)
 
def assertEqual (self, x, y, prec=None, message='', allow_inf=False)
 
def assertAlmostEqual (self, x, y, places=None, msg=None, delta=None, allow_inf=None)
 
def assertNotEqual (self, x, y, prec=None, message='')
 
def assertObjectIn (self, obj, iterable)
 
def assertExpectedRaises (self, exc_type, callable, args, kwargs)
 
def assertWarns (self, callable, msg='')
 
def assertWarnsRegex (self, callable, regex, msg='')
 
def assertExpected (self, s, subname=None)
 
- Public Member Functions inherited from expecttest.TestCase
def assertExpectedInline (self, actual, expect, skip=0)
 

Additional Inherited Members

- Static Public Attributes inherited from common_utils.TestCase
int precision = 1
 
 maxDiff = None
 
 assertRegex = unittest.TestCase.assertRegexpMatches
 
 assertRaisesRegex = unittest.TestCase.assertRaisesRegexp
 
- Static Public Attributes inherited from expecttest.TestCase
bool longMessage = True
 

Detailed Description

Definition at line 7239 of file test_nn.py.


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