/external/tensorflow/tensorflow/python/autograph/converters/ |
asserts_test.py | 36 def test_fn(a): function in function:AssertsTest.test_basic 40 with self.converted(test_fn, (asserts, side_effect_guards), {}, 43 op = result.test_fn(constant_op.constant(False))
|
error_handlers_test.py | 34 def test_fn(): function in function:ErrorHandlersTest.test_basic 37 with self.converted(test_fn, error_handlers, {}) as result: 40 result.test_fn() 44 def test_fn(x): function in function:ErrorHandlersTest.test_no_origin_annotation 47 node, ctx = self.prepare(test_fn, {})
|
slices_test.py | 36 def test_fn(l): function in function:SliceTest.test_index_access 39 node, ctx = self.prepare(test_fn, {}) 50 y = result.test_fn(tl) 55 def test_fn(l): function in function:SliceTest.test_index_access_multiple_definitions 60 node, ctx = self.prepare(test_fn, {})
|
conditional_expressions_test.py | 28 def assertTransformedEquivalent(self, test_fn, *inputs): 30 with self.converted(test_fn, conditional_expressions, ns) as result: 31 self.assertEqual(test_fn(*inputs), result.test_fn(*inputs)) 35 def test_fn(x): function in function:ConditionalExpressionsTest.test_basic 38 self.assertTransformedEquivalent(test_fn, 0) 39 self.assertTransformedEquivalent(test_fn, 3) 43 def test_fn(x): function in function:ConditionalExpressionsTest.test_nested_orelse 47 self.assertTransformedEquivalent(test_fn, -2) 48 self.assertTransformedEquivalent(test_fn, 0 [all...] |
arg_defaults_test.py | 34 def test_fn(): function in function:ArgDefaultsTransformerTest.test_no_args 37 node, ctx = self.prepare(test_fn, {}) 39 self.assertTransformedFirstLineIs(node, 'def test_fn():') 43 def test_fn(a, b, *c, **e): function in function:ArgDefaultsTransformerTest.test_no_defaults 46 node, ctx = self.prepare(test_fn, {}) 48 self.assertTransformedFirstLineIs(node, 'def test_fn(a, b, *c, **e):') 54 def test_fn(a, b=1, c=2): function in function:ArgDefaultsTransformerTest.test_arg_defaults 57 node, ctx = self.prepare(test_fn, {}) 59 self.assertTransformedFirstLineIs(node, 'def test_fn(a, b=None, c=None):') 63 def test_fn(a, b=1, *c): # pylint: disable=keyword-arg-before-varar function in function:ArgDefaultsTransformerTest.test_arg_defaults_with_vararg [all...] |
builtin_functions_test.py | 37 def test_fn(a): function in function:BuiltinFunctionsTest.test_len 40 with self.converted(test_fn, builtin_functions, {'len': len}) as result: 43 ops = result.test_fn(p) 52 def test_fn(a): function in function:BuiltinFunctionsTest.test_print 55 with self.converted(test_fn, builtin_functions, {'print': print}) as result: 58 sess.run(result.test_fn(constant_op.constant('a'))) 60 result.test_fn('a') 68 def test_fn(a, b, c): function in function:BuiltinFunctionsTest.test_print_multiple_values 71 with self.converted(test_fn, builtin_functions, {'print': print}) as result: 75 result.test_fn( 80 def test_fn(): function in function:BuiltinFunctionsTest.test_conversion_robust_to_unhashable_callables [all...] |
list_comprehensions_test.py | 28 def assertTransformedEquivalent(self, test_fn, *inputs): 29 with self.converted(test_fn, list_comprehensions, {}) as result: 30 self.assertEqual(test_fn(*inputs), result.test_fn(*inputs)) 34 def test_fn(l): function in function:ListCompTest.test_basic 38 self.assertTransformedEquivalent(test_fn, []) 39 self.assertTransformedEquivalent(test_fn, [1, 2, 3]) 43 def test_fn(l): function in function:ListCompTest.test_multiple_generators 47 self.assertTransformedEquivalent(test_fn, []) 48 self.assertTransformedEquivalent(test_fn, [[1], [2], [3]] 52 def test_fn(l): function in function:ListCompTest.test_cond [all...] |
logical_expressions_test.py | 33 def test_fn(a, b): function in function:LogicalExpressionTest.test_equals 36 with self.converted(test_fn, logical_expressions, {}) as result: 38 self.assertTrue(sess.run(result.test_fn(constant_op.constant(1), 1))) 39 self.assertFalse(sess.run(result.test_fn(constant_op.constant(1), 2))) 44 def test_fn(a, b, c): function in function:LogicalExpressionTest.test_bool_ops 47 with self.converted(test_fn, logical_expressions, {}) as result: 50 sess.run(result.test_fn(constant_op.constant(True), False, False))) 52 sess.run(result.test_fn(constant_op.constant(True), False, True))) 57 def test_fn(a, b, c, d): function in function:LogicalExpressionTest.test_comparison 60 with self.converted(test_fn, logical_expressions, {}) as result 74 def test_fn(a, b): function in function:LogicalExpressionTest.test_default_ops 81 def test_fn(a): function in function:LogicalExpressionTest.test_unary_ops [all...] |
break_statements_test.py | 29 def assertTransformedEquivalent(self, test_fn, *inputs): 30 with self.converted(test_fn, break_statements, {}, 32 self.assertEqual(test_fn(*inputs), result.test_fn(*inputs)) 36 def test_fn(x): function in function:BreakCanonicalizationTest.test_while_loop 45 self.assertTransformedEquivalent(test_fn, 0) 46 self.assertTransformedEquivalent(test_fn, 1) 47 self.assertTransformedEquivalent(test_fn, 4) 51 def test_fn(a): function in function:BreakCanonicalizationTest.test_for_loop 60 with self.converted(test_fn, break_statements, {} 68 def test_fn(x): function in function:BreakCanonicalizationTest.test_nested 89 def test_fn(x): function in function:BreakCanonicalizationTest.test_nested_loops 112 def test_fn(x): function in function:BreakCanonicalizationTest.test_loop_orelse [all...] |
continue_statements_test.py | 30 def assertTransformedEquivalent(self, test_fn, *inputs): 31 with self.converted(test_fn, continue_statements, {'ops': ops}, 33 self.assertEqual(test_fn(*inputs), result.test_fn(*inputs)) 37 def test_fn(x): function in function:ContinueCanonicalizationTest.test_basic 46 self.assertTransformedEquivalent(test_fn, 0) 47 self.assertTransformedEquivalent(test_fn, 1) 48 self.assertTransformedEquivalent(test_fn, 3) 49 self.assertTransformedEquivalent(test_fn, 4) 53 def test_fn(a) function in function:ContinueCanonicalizationTest.test_for_loop 69 def test_fn(x): function in function:ContinueCanonicalizationTest.test_nested_with 86 def test_fn(x): function in function:ContinueCanonicalizationTest.test_nested_multiple_withs 105 def test_fn(x): function in function:ContinueCanonicalizationTest.test_nested_multiple_withs_and_statements 126 def test_fn(x): function in function:ContinueCanonicalizationTest.test_nested_multiple_withs_and_nested_withs 148 def test_fn(x): function in function:ContinueCanonicalizationTest.test_nested [all...] |
directives_test.py | 34 def test_fn(): function in function:DirectivesTest.test_local_target 39 node, ctx = self.prepare(test_fn, {'directives': directives}) 50 def test_fn(a): function in function:DirectivesTest.test_argument_target 53 node, ctx = self.prepare(test_fn, {'directives': directives}) 63 def test_fn(): function in function:DirectivesTest.test_loop_target 68 node, ctx = self.prepare(test_fn, {'directives': directives})
|
function_scopes_test.py | 34 def test_fn(l): function in function:FunctionBodyTransformerTest.test_basic 40 with self.converted(test_fn, function_scopes, {}) as result: 41 result_op = result.test_fn(constant_op.constant(1)) 42 self.assertIn('test_fn/', result_op.op.name) 43 self.assertEqual('Docstring.', result.test_fn.__doc__) 50 def test_fn(): function in function:FunctionBodyTransformerTest.test_multiline_docstring 57 with self.converted(test_fn, function_scopes, {}, 59 result_op = result.test_fn() 60 self.assertIn('test_fn/', result_op.op.name) 61 self.assertIn('First sentence.', result.test_fn.__doc__ 67 def test_fn(l): function in function:FunctionBodyTransformerTest.test_nested_functions 86 def test_fn(self, l): member in class:FunctionBodyTransformerTest.test_method.TestClass [all...] |
lists_test.py | 41 def test_fn(): function in function:ListTest.test_empty_list 44 with self.converted(test_fn, lists, {}) as result: 45 tl = result.test_fn() 52 def test_fn(): function in function:ListTest.test_initialized_list 55 with self.converted(test_fn, lists, {}) as result: 56 self.assertAllEqual(result.test_fn(), [1, 2, 3]) 60 def test_fn(): function in function:ListTest.test_list_append 67 with self.converted(test_fn, lists, ns) as result: 69 tl = result.test_fn() 75 def test_fn() function in function:ListTest.test_list_pop 99 def test_fn(l): function in function:ListTest.test_double_list_pop 112 def test_fn(): function in function:ListTest.test_list_stack [all...] |
side_effect_guards_test.py | 41 def test_fn(a): function in function:SideEffectGuardsTest.test_side_effect_on_return_only_variable 45 node, ctx = self.prepare(test_fn, {}) 54 self.evaluate(result.test_fn(v)) 62 def test_fn(a): function in function:SideEffectGuardsTest.test_side_effect_on_used_variable 66 node, ctx = self.prepare(test_fn, {}) 75 self.evaluate(result.test_fn(v)) 76 # TODO(mdan): Ensure the result of test_fn(v) is also deterministic. 83 def test_fn(a): function in function:SideEffectGuardsTest.test_side_effect_on_tensor 87 node, ctx = self.prepare(test_fn, {}) 96 sess.run(result.test_fn(constant_op.constant(-1)) 100 def test_fn(a): function in function:SideEffectGuardsTest.test_multiline_block 122 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 | 30 def test_fn(f): function in function:CallTreesTest.test_normal_function 33 with self.converted(test_fn, call_trees, {}) as result: 35 result.test_fn(None), 41 def test_fn(f, a, b): function in function:CallTreesTest.test_function_with_kwarg 44 with self.converted(test_fn, call_trees, {}) as result: 46 result.test_fn(None, 1, 2), 52 def test_fn(f, a, *args, **kwargs): function in function:CallTreesTest.test_function_with_kwargs_starargs 55 with self.converted(test_fn, call_trees, {}) as result: 57 result.test_fn(None, 1, *[2, 3], **{'b': 4, 'c': 5}), 66 def test_fn() function in function:CallTreesTest.test_function_with_kwargs_starargs_only 78 def test_fn(f, a, b, **kwargs): function in function:CallTreesTest.test_function_with_kwargs_keywords [all...] |
return_statements_test.py | 29 def assertTransformedEquivalent(self, test_fn, *inputs): 31 with self.converted(test_fn, return_statements, ns) as result: 32 self.assertEqual(test_fn(*inputs), result.test_fn(*inputs)) 36 def test_fn(x): function in function:SingleReturnTest.test_straightline 39 self.assertTransformedEquivalent(test_fn, 2) 43 def test_fn(x): function in function:SingleReturnTest.test_conditional 49 self.assertTransformedEquivalent(test_fn, 2) 50 self.assertTransformedEquivalent(test_fn, -2) 54 def test_fn(x) function in function:SingleReturnTest.test_missing_else 63 def test_fn(x): function in function:SingleReturnTest.test_missing_else_then_default 73 def test_fn(x): function in function:SingleReturnTest.test_else_only_then_default 85 def test_fn(x): function in function:SingleReturnTest.test_conditional_nested 100 def test_fn(x): function in function:SingleReturnTest.test_context_manager 109 def test_fn(x): function in function:SingleReturnTest.test_context_manager_in_conditional 121 def test_fn(x): function in function:SingleReturnTest.text_conditional_in_context_manager 133 def test_fn(x): function in function:SingleReturnTest.test_no_return 140 def test_fn(x): function in function:SingleReturnTest.test_nested_function 155 def test_fn(x): function in function:SingleReturnTest.test_nested_function_in_control_flow 167 def test_fn(n): function in function:SingleReturnTest.test_for_loop 176 def test_fn(n): function in function:SingleReturnTest.test_while_loop 192 def test_fn(n): function in function:SingleReturnTest.test_null_return 202 def test_fn(x): function in function:SingleReturnTest.test_nested_multiple_withs [all...] |
/external/tensorflow/tensorflow/python/autograph/pyct/ |
compiler_test.py | 35 def test_fn(x): function in function:CompilerTest.test_parser_compile_idempotent 42 _, _, all_nodes = parser.parse_entity(test_fn) 45 textwrap.dedent(tf_inspect.getsource(test_fn)), 47 compiler.ast_to_object(all_nodes)[0].test_fn))
|
origin_info_test.py | 32 def test_fn(x): function in function:OriginInfoTest.test_create_source_map 35 node, _, _ = parser.parse_entity(test_fn) 53 def test_fn(x): function in function:OriginInfoTest.test_source_map_no_origin 56 node, _, _ = parser.parse_entity(test_fn) 66 def test_fn(x): function in function:OriginInfoTest.test_resolve 70 node, source, _ = parser.parse_entity(test_fn) 77 self.assertEqual(origin.source_code_line, 'def test_fn(x):') 94 def test_fn(x): function in function:OriginInfoTest.disabled_test_resolve_with_future_imports 99 node, source, _ = parser.parse_entity(test_fn) 106 self.assertEqual(origin.source_code_line, 'def test_fn(x):' [all...] |
/external/tensorflow/tensorflow/python/autograph/core/ |
converter_test.py | 41 def test_fn(): 50 reparsed_opts = reparsed.test_fn() 66 def test_fn(): function in function:ConverterBaseTest.test_get_definition_directive_basic 71 node, ctx = self.prepare(test_fn, ns) 87 def test_fn(): function in function:ConverterBaseTest.test_get_definition_directive_default 92 node, ctx = self.prepare(test_fn, ns) 103 def test_fn(): function in function:ConverterBaseTest.test_get_definition_directive_multiple_consistent 110 node, ctx = self.prepare(test_fn, ns) 130 def test_fn(): function in function:ConverterBaseTest.test_get_definition_directive_multiple_inconsistent 137 node, ctx = self.prepare(test_fn, ns [all...] |
/external/tensorflow/tensorflow/python/autograph/utils/ |
py_func_test.py | 31 def test_fn(a, b, c): function in function:PyFuncTest.test_wrap_py_func_simple 35 result = py_func.wrap_py_func(test_fn, dtypes.int32, 38 result = py_func.wrap_py_func(test_fn, dtypes.int32, (1, 1, 1)) 41 test_fn, dtypes.int32, 52 def test_fn(a, b): function in function:PyFuncTest.test_wrap_py_func_complex_args 56 result = py_func.wrap_py_func(test_fn, dtypes.int32, (7, TestClass())) 58 result = py_func.wrap_py_func(test_fn, dtypes.int32, 69 def test_fn(a, b, c, d): function in function:PyFuncTest.test_wrap_py_func_kwargs 73 result = py_func.wrap_py_func(test_fn, dtypes.int32, (7, TestClass(5)), { 78 result = py_func.wrap_py_func(test_fn, dtypes.int32 89 def test_fn(_): function in function:PyFuncTest.test_wrap_py_func_dummy_return [all...] |
/external/libcxx/test/std/utilities/any/any.nonmembers/any.cast/ |
any_cast_pointer.pass.cpp | 158 void test_fn() {} function 162 std::any a(test_fn); 167 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/python/autograph/pyct/static_analysis/ |
live_values_test.py | 39 test_fn, 44 node, source, _ = parser.parse_entity(test_fn) 66 def test_fn(): function in function:LiveValuesResolverTest.test_literals 69 node = self._parse_and_analyze(test_fn, {}, literals={'a': 'bar'}) 77 def test_fn(): function in function:LiveValuesResolverTest.test_primitive_values 80 node = self._parse_and_analyze(test_fn, {'a': True}) 93 def test_fn(): function in function:LiveValuesResolverTest.test_namespace 96 node = self._parse_and_analyze(test_fn, {'foo': foo}) 103 def test_fn(): function in function:LiveValuesResolverTest.test_attribute_names 106 node = self._parse_and_analyze(test_fn, {'constant_op': constant_op} 119 def test_fn(self): member in class:LiveValuesResolverTest.test_attributes_with_type_hints.TestClass [all...] |
type_info_test.py | 62 test_fn, 65 node, source, _ = parser.parse_entity(test_fn) 85 def test_fn(): function in function:TypeInfoResolverTest.test_constructor_detection 89 node = self._parse_and_analyze(test_fn, {'training': training}) 99 def test_fn(x): function in function:TypeInfoResolverTest.test_constructor_detection_builtin_class 103 node = self._parse_and_analyze(test_fn, {}) 109 def test_fn(): function in function:TypeInfoResolverTest.test_class_members_of_detected_constructor 113 node = self._parse_and_analyze(test_fn, {'training': training}) 120 def test_fn(x): function in function:TypeInfoResolverTest.test_class_members_in_with_stmt 124 node = self._parse_and_analyze(test_fn, {'session': session} 136 def test_fn(x): function in function:TypeInfoResolverTest.test_constructor_data_dependent 149 def test_fn(opt): function in function:TypeInfoResolverTest.test_parameter_class_members 158 def test_fn(opt): function in function:TypeInfoResolverTest.test_parameter_class_members_with_value_hints 177 def test_fn(): function in function:TypeInfoResolverTest.test_function_variables 187 def test_fn(): function in function:TypeInfoResolverTest.test_nested_members 203 def test_fn(): function in function:TypeInfoResolverTest.test_nested_unpacking [all...] |
/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);
|