/external/tensorflow/tensorflow/contrib/py2tf/converters/ |
asserts_test.py | 32 def test_fn(a): function in function:AssertsTest.test_transform 35 node = self.parse_and_analyze(test_fn, {})
|
for_loops_test.py | 30 def test_fn(l): function in function:ControlFlowTest.test_basic_for 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))
|
logical_expressions_test.py | 31 def test_fn(a, b): function in function:GradientsFunctionTest.test_equals 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 in function:GradientsFunctionTest.test_bool_ops 47 node = self.parse_and_analyze(test_fn, {}) 53 self.assertTrue(sess.run(result.test_fn(True, False, True)))
|
continue_statements_test.py | 30 def test_fn(x): function in function:ContinueCanonicalizationTest.test_basic_continue 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) 51 def test_fn(a): function in function:ContinueCanonicalizationTest.test_basic_continue_for_loop 71 def test_fn(x): function in function:ContinueCanonicalizationTest.test_continue_deeply_nested [all...] |
list_comprehension_test.py | 30 def test_fn(l): function in function:ListCompTest.test_basic 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 in function:ListCompTest.test_multiple_generators 49 node = self.parse_and_analyze(test_fn, {}) 54 self.assertEqual(test_fn(l), result.test_fn(l) 60 def test_fn(l): function in function:ListCompTest.test_conds [all...] |
break_statements_test.py | 30 def test_fn(x): function in function:BreakCanonicalizationTest.test_basic_break 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) 51 def test_fn(a): function in function:BreakCanonicalizationTest.test_basic_break_for_loop 85 def test_fn(x): function in function:BreakCanonicalizationTest.test_continue_deeply_nested [all...] |
builtin_functions_test.py | 38 def test_fn(a): function in function:BuiltinFunctionsTest.test_len 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 in function:BuiltinFunctionsTest.test_print_with_op 55 node = self.parse_and_analyze(test_fn, {'print': print}) 65 result.test_fn('a') 73 def test_fn(a, b): function in function:BuiltinFunctionsTest.test_print_with_op_multiple_values 76 node = self.parse_and_analyze(test_fn, {'print': print}) 86 result.test_fn('a', 1) 94 def test_fn(a, b, c) function in function:BuiltinFunctionsTest.test_print_with_py_func [all...] |
control_flow_test.py | 32 def test_fn(n): function in function:ControlFlowTest.test_simple_while 40 node = self.parse_and_analyze(test_fn, {}) 46 sess.run(result.test_fn(constant_op.constant(5)))) 50 def test_fn(n): function in function:ControlFlowTest.test_while_single_var 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 in function:ControlFlowTest.test_simple_if 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))) 85 def test_fn(n): function in function:ControlFlowTest.test_if_single_var [all...] |
decorators_test.py | 48 def test_fn(a): # pylint:disable=unused-variable function in function:DecoratorsTest.test_function_decorator.static_wrapper 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 in function:DecoratorsTest.test_simple_decorator.static_wrapper 94 self.assertEqual(2, result.test_fn(1)) 98 self.assertEqual(1, result.test_fn(1))
|
side_effect_guards_test.py | 38 def test_fn(a): function in function:SideEffectGuardsTest.test_side_effect_on_return_only_variable 42 node = self.parse_and_analyze(test_fn, {}) 52 self.assertEqual(2, sess.run(result.test_fn(v))) 58 def test_fn(a): function in function:SideEffectGuardsTest.test_side_effect_on_used_variable 62 node = self.parse_and_analyze(test_fn, {}) 73 self.assertEqual(4, sess.run(result.test_fn(v))) 79 def test_fn(a): function in function:SideEffectGuardsTest.test_side_effect_on_tensor 83 node = self.parse_and_analyze(test_fn, {}) 93 sess.run(result.test_fn(constant_op.constant(-1))) 99 def test_fn(a) function in function:SideEffectGuardsTest.test_multiline_block 121 def test_fn(a): function in function:SideEffectGuardsTest.test_multiline_nested_block 143 def test_fn(a): function in function:SideEffectGuardsTest.test_multiline_block_unsafe [all...] |
call_trees_test.py | 71 def test_fn(a): function in function:CallTreesTest.test_py_func_wrap_no_retval 74 node = self.parse_and_analyze(test_fn, {'setattr': setattr}) 87 result.test_fn(a) 94 def test_fn(a): function in function:CallTreesTest.test_uncompiled_modules 99 node = self.parse_and_analyze(test_fn, { 113 result_tensor = result.test_fn(constant_op.constant(1))
|
/external/tensorflow/tensorflow/contrib/py2tf/utils/ |
py_func_test.py | 31 def test_fn(a, b, c): function in function:PyFuncTest.test_wrap_py_func_simple 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 in function:PyFuncTest.test_wrap_py_func_complex_args 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 in function:PyFuncTest.test_wrap_py_func_dummy_return 80 py_func.wrap_py_func(test_fn, None, (5,), True))) 84 py_func.wrap_py_func(test_fn, None [all...] |
/external/tensorflow/tensorflow/contrib/bayesflow/python/kernel_tests/ |
variable_utils_test.py | 34 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/static_analysis/ |
live_values_test.py | 35 test_fn, 41 node, source = parser.parse_entity(test_fn) 59 def test_fn(): function in function:LiveValuesResolverTest.test_literals 62 node = self._parse_and_analyze(test_fn, {}, {'Foo': 'bar'}) 71 def test_fn(): function in function:LiveValuesResolverTest.test_namespace 74 node = self._parse_and_analyze(test_fn, {'foo': foo}) 81 def test_fn(): function in function:LiveValuesResolverTest.test_attribute_names 84 node = self._parse_and_analyze(test_fn, {'constant_op': constant_op}) 97 def test_fn(self): member in class:LiveValuesResolverTest.test_attributes_with_type_hints.TestClass 101 TestClass.test_fn, {'constant_op': constant_op} [all...] |
type_info_test.py | 59 def _parse_and_analyze(self, test_fn, namespace, arg_types=None): 60 node, source = parser.parse_entity(test_fn) 78 def test_fn(): function in function:TypeInfoResolverTest.test_constructor_detection 82 node = self._parse_and_analyze(test_fn, {'training': training}) 91 def test_fn(): function in function:TypeInfoResolverTest.test_class_members_of_detected_constructor 95 node = self._parse_and_analyze(test_fn, {'training': training}) 102 def test_fn(x): function in function:TypeInfoResolverTest.test_class_members_in_with_stmt 106 node = self._parse_and_analyze(test_fn, {'session': session}) 118 def test_fn(x): function in function:TypeInfoResolverTest.test_constructor_data_dependent 125 node = self._parse_and_analyze(test_fn, {'training': training} 131 def test_fn(opt): function in function:TypeInfoResolverTest.test_parameter_class_members 140 def test_fn(opt): function in function:TypeInfoResolverTest.test_parameter_class_members_with_value_hints 159 def test_fn(): function in function:TypeInfoResolverTest.test_function_variables 169 def test_fn(): function in function:TypeInfoResolverTest.test_nested_members [all...] |
activity_test.py | 102 def _parse_and_analyze(self, test_fn): 103 node, source = parser.parse_entity(test_fn) 118 def test_fn(a): # pylint:disable=unused-argument function in function:ActivityAnalizerTest.test_local_markers 124 node = self._parse_and_analyze(test_fn) 142 def test_fn(a): function in function:ActivityAnalizerTest.test_print_statement 148 node = self._parse_and_analyze(test_fn) 165 def test_fn(a): function in function:ActivityAnalizerTest.test_call 171 node = self._parse_and_analyze(test_fn) 180 def test_fn(a): function in function:ActivityAnalizerTest.test_while 187 node = self._parse_and_analyze(test_fn) 198 def test_fn(a): function in function:ActivityAnalizerTest.test_for 215 def test_fn(x): function in function:ActivityAnalizerTest.test_if 247 def test_fn(a): function in function:ActivityAnalizerTest.test_call_with_composite_names [all...] |
/external/libcxx/test/std/utilities/any/any.nonmembers/any.cast/ |
any_cast_pointer.pass.cpp | 157 void test_fn() {} function 161 std::any a(test_fn); 166 assert(fn_ptr == test_fn);
|
/external/libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/ |
F_incomplete.pass.cpp | 34 IncompleteReturnType test_fn() { function 47 X.fn = test_fn;
|
/external/tensorflow/tensorflow/contrib/py2tf/impl/ |
api_test.py | 168 def test_fn(x, s): function in function:ApiTest.test_to_graph_basic 173 compiled_fn = api.to_graph(test_fn) 180 def test_fn(x, s): function in function:ApiTest.test_to_code_basic 185 compiled_code = api.to_code(test_fn)
|
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/utilities/any/any.nonmembers/any.cast/ |
any_cast_pointer.pass.cpp | 157 void test_fn() {} function 161 std::any a(test_fn); 166 assert(fn_ptr == test_fn);
|
/external/libffi/testsuite/libffi.call/ |
cls_struct_va1.c | 27 test_fn (ffi_cif* cif __UNUSED__, void* resp, function 106 CHECK(ffi_prep_closure_loc(pcl, &cif, test_fn, NULL, code) == FFI_OK);
|
va_struct1.c | 29 test_fn (int n, ...) function 115 ffi_call(&cif, FFI_FN(test_fn), &res, args);
|
va_struct2.c | 29 test_fn (int n, ...) function 117 ffi_call(&cif, FFI_FN(test_fn), &res, args);
|
va_struct3.c | 29 test_fn (int n, ...) function 119 ffi_call(&cif, FFI_FN(test_fn), &res, args);
|
/external/python/cpython2/Modules/_ctypes/libffi/testsuite/libffi.call/ |
cls_struct_va1.c | 27 test_fn (ffi_cif* cif __UNUSED__, void* resp, function 106 CHECK(ffi_prep_closure_loc(pcl, &cif, test_fn, NULL, code) == FFI_OK);
|