def test_Identity(): shape_generator = shape_from_format([['N','P']],['N','P']) do_test_runs(Identity, shape_generator) do_test_derivs(Identity, shape_generator)
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)
def test_Exponent(): shape_generator = shape_from_format([['N','P']],['N','P']) do_test_runs(Exponent, shape_generator) do_test_derivs(Exponent, shape_generator)
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)
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)
def test_LeakyRelu(): shape_generator = shape_from_format([['N','P']],['N','P']) do_test_runs(LeakyRelu, shape_generator) do_test_derivs(LeakyRelu, shape_generator)
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)
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)
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)