Example #1
0
def test_Identity():
    shape_generator = shape_from_format([['N','P']],['N','P'])
    do_test_runs(Identity, shape_generator)
    do_test_derivs(Identity, shape_generator)
Example #2
0
def test_Concat():
    shape_generator = shape_from_format([['N','P'],['N', 'Q']],['N','P+Q'])
    do_test_runs(Concat, shape_generator)
    do_test_derivs(Concat, shape_generator)
Example #3
0
def test_Exponent():
    shape_generator = shape_from_format([['N','P']],['N','P'])
    do_test_runs(Exponent, shape_generator)
    do_test_derivs(Exponent, shape_generator)
Example #4
0
def test_Probabilize():
    shape_generator = shape_from_format([['N','P']],['N','P'])
    do_test_runs(Probabilize, shape_generator)
    do_test_derivs(Probabilize, shape_generator, permissible_skip_ratio=0.7)
Example #5
0
def test_TanH():
    shape_generator = shape_from_format([['N','P']],['N','P'])
    do_test_runs(TanH, shape_generator)
    do_test_derivs(TanH, shape_generator, permissible_skip_ratio=0.6)
Example #6
0
def test_LeakyRelu():
    shape_generator = shape_from_format([['N','P']],['N','P'])
    do_test_runs(LeakyRelu, shape_generator)
    do_test_derivs(LeakyRelu, shape_generator)
Example #7
0
def test_MatrixAdd():
    shape_generator = shape_from_format([['N','P'],['P']],['N','P'])
    do_test_runs(MatrixAdd, shape_generator)
    do_test_derivs(MatrixAdd, shape_generator)
Example #8
0
def test_ElementwiseMult():
    shape_generator = shape_from_format([['N','M'],['N','M']],['N','M'])
    do_test_runs(ElementwiseMult, shape_generator)
    do_test_derivs(ElementwiseMult, shape_generator)
Example #9
0
def test_MatrixMult():
    shape_generator = shape_from_format([['N','M'],['M','P']],['N','P'])
    do_test_runs(MatrixMult, shape_generator)
    do_test_derivs(MatrixMult, shape_generator)