Home
last modified time | relevance | path

Searched refs:test_fn (Results 1 – 25 of 56) sorted by relevance

123

/external/tensorflow/tensorflow/contrib/py2tf/converters/
Dcontinue_statements_test.py30 def test_fn(x): function
39 node = self.parse_and_analyze(test_fn, {})
43 self.assertEqual(test_fn(0), result.test_fn(0))
44 self.assertEqual(test_fn(1), result.test_fn(1))
45 self.assertEqual(test_fn(2), result.test_fn(2))
46 self.assertEqual(test_fn(3), result.test_fn(3))
47 self.assertEqual(test_fn(4), result.test_fn(4))
51 def test_fn(a): function
60 node = self.parse_and_analyze(test_fn, {})
64 self.assertEqual(test_fn([]), result.test_fn([]))
[all …]
Dbreak_statements_test.py30 def test_fn(x): function
39 node = self.parse_and_analyze(test_fn, {})
43 self.assertEqual(test_fn(0), result.test_fn(0))
44 self.assertEqual(test_fn(1), result.test_fn(1))
45 self.assertEqual(test_fn(2), result.test_fn(2))
46 self.assertEqual(test_fn(3), result.test_fn(3))
47 self.assertEqual(test_fn(4), result.test_fn(4))
51 def test_fn(a): function
71 node = self.parse_and_analyze(test_fn, {})
77 self.assertEqual(test_equiv_fn([]), result.test_fn([]))
[all …]
Dlist_comprehension_test.py30 def test_fn(l): function
34 node = self.parse_and_analyze(test_fn, {})
39 self.assertEqual(test_fn(l), result.test_fn(l))
41 self.assertEqual(test_fn(l), result.test_fn(l))
45 def test_fn(l): function
49 node = self.parse_and_analyze(test_fn, {})
54 self.assertEqual(test_fn(l), result.test_fn(l))
56 self.assertEqual(test_fn(l), result.test_fn(l))
60 def test_fn(l): function
64 node = self.parse_and_analyze(test_fn, {})
[all …]
Dside_effect_guards_test.py38 def test_fn(a): function
42 node = self.parse_and_analyze(test_fn, {})
52 self.assertEqual(2, sess.run(result.test_fn(v)))
58 def test_fn(a): function
62 node = self.parse_and_analyze(test_fn, {})
73 self.assertEqual(4, sess.run(result.test_fn(v)))
79 def test_fn(a): function
83 node = self.parse_and_analyze(test_fn, {})
93 sess.run(result.test_fn(constant_op.constant(-1)))
99 def test_fn(a): function
[all …]
Dcontrol_flow_test.py32 def test_fn(n): function
40 node = self.parse_and_analyze(test_fn, {})
46 sess.run(result.test_fn(constant_op.constant(5))))
50 def test_fn(n): function
55 node = self.parse_and_analyze(test_fn, {})
60 self.assertEqual(0, sess.run(result.test_fn(constant_op.constant(5))))
64 def test_fn(n): function
73 node = self.parse_and_analyze(test_fn, {})
79 sess.run(result.test_fn(constant_op.constant(1))))
81 sess.run(result.test_fn(constant_op.constant(-1))))
[all …]
Dbuiltin_functions_test.py38 def test_fn(a): function
41 node = self.parse_and_analyze(test_fn, {'len': len})
48 result.test_fn(constant_op.constant([0, 0, 0]))))
52 def test_fn(a): function
55 node = self.parse_and_analyze(test_fn, {'print': print})
65 result.test_fn('a')
73 def test_fn(a, b): function
76 node = self.parse_and_analyze(test_fn, {'print': print})
86 result.test_fn('a', 1)
94 def test_fn(a, b, c): function
[all …]
Dlogical_expressions_test.py31 def test_fn(a, b): function
34 node = self.parse_and_analyze(test_fn, {})
39 self.assertTrue(sess.run(result.test_fn(1, 1)))
40 self.assertFalse(sess.run(result.test_fn(1, 2)))
44 def test_fn(a, b, c): function
47 node = self.parse_and_analyze(test_fn, {})
53 self.assertTrue(sess.run(result.test_fn(True, False, True)))
Dfor_loops_test.py30 def test_fn(l): function
36 node = self.parse_and_analyze(test_fn, {})
41 self.assertEqual(test_fn(l), result.test_fn(l))
43 self.assertEqual(test_fn(l), result.test_fn(l))
Ddecorators_test.py48 def test_fn(a): # pylint:disable=unused-variable function
62 self.assertEqual(2, result.test_fn(1))
66 self.assertEqual(1, result.test_fn(1))
80 def test_fn(a): # pylint:disable=unused-variable function
94 self.assertEqual(2, result.test_fn(1))
98 self.assertEqual(1, result.test_fn(1))
Dcall_trees_test.py71 def test_fn(a): function
74 node = self.parse_and_analyze(test_fn, {'setattr': setattr})
87 result.test_fn(a)
94 def test_fn(a): function
99 node = self.parse_and_analyze(test_fn, {
113 result_tensor = result.test_fn(constant_op.constant(1))
Dasserts_test.py32 def test_fn(a): function
35 node = self.parse_and_analyze(test_fn, {})
/external/tensorflow/tensorflow/contrib/py2tf/pyct/static_analysis/
Dtype_info_test.py59 def _parse_and_analyze(self, test_fn, namespace, arg_types=None): argument
60 node, source = parser.parse_entity(test_fn)
78 def test_fn(): function
82 node = self._parse_and_analyze(test_fn, {'training': training})
91 def test_fn(): function
95 node = self._parse_and_analyze(test_fn, {'training': training})
102 def test_fn(x): function
106 node = self._parse_and_analyze(test_fn, {'session': session})
118 def test_fn(x): function
125 node = self._parse_and_analyze(test_fn, {'training': training})
[all …]
Dlive_values_test.py35 test_fn, argument
41 node, source = parser.parse_entity(test_fn)
59 def test_fn(): function
62 node = self._parse_and_analyze(test_fn, {}, {'Foo': 'bar'})
71 def test_fn(): function
74 node = self._parse_and_analyze(test_fn, {'foo': foo})
81 def test_fn(): function
84 node = self._parse_and_analyze(test_fn, {'constant_op': constant_op})
97 def test_fn(self): member in LiveValuesResolverTest.test_attributes_with_type_hints.TestClass
101 TestClass.test_fn, {'constant_op': constant_op},
Dactivity_test.py102 def _parse_and_analyze(self, test_fn): argument
103 node, source = parser.parse_entity(test_fn)
118 def test_fn(a): # pylint:disable=unused-argument function
124 node = self._parse_and_analyze(test_fn)
142 def test_fn(a): function
148 node = self._parse_and_analyze(test_fn)
165 def test_fn(a): function
171 node = self._parse_and_analyze(test_fn)
180 def test_fn(a): function
187 node = self._parse_and_analyze(test_fn)
[all …]
/external/tensorflow/tensorflow/contrib/py2tf/utils/
Dpy_func_test.py31 def test_fn(a, b, c): function
38 py_func.wrap_py_func(test_fn, dtypes.int64,
42 py_func.wrap_py_func(test_fn, dtypes.int64,
46 py_func.wrap_py_func(test_fn, dtypes.int64,
56 def test_fn(a, b): function
62 py_func.wrap_py_func(test_fn, dtypes.int64,
67 py_func.wrap_py_func(test_fn, dtypes.int64,
74 def test_fn(_): function
80 py_func.wrap_py_func(test_fn, None, (5,), True)))
84 py_func.wrap_py_func(test_fn, None,
/external/tensorflow/tensorflow/contrib/quantize/python/
Dquantize_graph_test.py35 def _RunTestOverAllRewrites(self, test_fn): argument
43 test_fn(fn)
45 def _RunTestOverTrainingRewrites(self, test_fn): argument
51 test_fn(fn)
53 def _RunTestOverEvalRewrites(self, test_fn): argument
59 test_fn(fn)
61 def _RunTestOverExperimentalRewrites(self, test_fn): argument
67 test_fn(fn)
/external/tensorflow/tensorflow/contrib/bayesflow/python/kernel_tests/
Dvariable_utils_test.py34 def test_fn(x): function
55 test_fn, [x])
75 _ = test_fn(self.dtype([0., 0.])) # Needed to create vars.
81 test_fn, [x], possible_ancestor_vars=[y_actual])
96 test_fn, [x], possible_ancestor_vars=[])
113 test_fn,
/external/tensorflow/tensorflow/contrib/py2tf/pyct/
Dtemplates_test.py39 self.assertEquals((2, 3), result.test_fn(2, 3))
51 self.assertEquals(7, result.test_fn(2))
63 self.assertEquals(7, result.test_fn(2))
80 self.assertEquals(3, result.test_fn(1))
/external/python/cpython2/Lib/test/
Dtest_pdb.py363 test_fn = '.\\test_mod.py'
365 with open(test_fn, 'w') as f:
367 self.addCleanup(os.remove, test_fn)
368 cmd = [sys.executable, '-m', 'pdb', test_fn,]
/external/boringssl/src/fipstools/
Dcavp_aes_gcm_test.cc139 bool (*test_fn)(FileTest * t, void *arg); in cavp_aes_gcm_test_main() local
141 test_fn = &TestAEADEncrypt; in cavp_aes_gcm_test_main()
143 test_fn = &TestAEADDecrypt; in cavp_aes_gcm_test_main()
158 opts.callback = test_fn; in cavp_aes_gcm_test_main()
/external/tensorflow/tensorflow/contrib/solvers/python/kernel_tests/
Dleast_squares_test.py83 for test_fn in _get_least_squares_tests(dtype, use_static_shape, shape):
84 name = "_".join(["LeastSquares", test_fn.__name__, arg_string])
85 _add_test(LeastSquaresTest, name, test_fn)
Dlanczos_test.py87 for test_fn in _get_lanczos_tests(dtype, use_static_shape, shape,
89 name = "_".join(["Lanczos", test_fn.__name__, arg_string])
90 _add_test(LanczosBidiagTest, name, test_fn)
Dlinear_equations_test.py120 for test_fn in _get_linear_equations_tests(dtype, use_static_shape,
122 name = "_".join(["LinearEquations", test_fn.__name__, arg_string])
123 _add_test(LinearEquationsTest, name, test_fn)
/external/tensorflow/tensorflow/contrib/py2tf/impl/
Dapi_test.py168 def test_fn(x, s): function
173 compiled_fn = api.to_graph(test_fn)
180 def test_fn(x, s): function
185 compiled_code = api.to_code(test_fn)
/external/libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/
DF_incomplete.pass.cpp34 IncompleteReturnType test_fn() { in test_fn() function
47 X.fn = test_fn; in test_pr34298()

123