Home
last modified time | relevance | path

Searched refs:kwonlyargs (Results 1 – 25 of 34) sorted by relevance

12

/external/tensorflow/tensorflow/python/keras/saving/saved_model/
Dutils.py178 kwonlyargs = arg_spec.kwonlyargs
182 kwonlyargs.append('training')
197 kwonlyargs=kwonlyargs,
Dsave_impl.py351 arg_spec.kwonlyargs or
469 kwonlyargs=arg_spec.kwonlyargs,
/external/tensorflow/tensorflow/python/util/
Dtf_inspect_test.py319 kwonlyargs=[],
333 kwonlyargs=[],
348 kwonlyargs=[],
356 kwonlyargs=[],
377 kwonlyargs=[],
395 kwonlyargs=[],
413 kwonlyargs=[],
434 kwonlyargs=[],
452 kwonlyargs=[],
471 kwonlyargs=[],
[all …]
Dtf_inspect.py62 kwonlyargs=[],
/external/python/cpython3/Parser/pegen/
Dpegen.c1676 _PyPegen_star_etc(Parser *p, arg_ty vararg, asdl_seq *kwonlyargs, arg_ty kwarg) in _PyPegen_star_etc() argument
1683 a->kwonlyargs = kwonlyargs; in _PyPegen_star_etc()
1834 asdl_seq *kwonlyargs; in _PyPegen_make_arguments() local
1835 if (star_etc != NULL && star_etc->kwonlyargs != NULL) { in _PyPegen_make_arguments()
1836 kwonlyargs = _get_names(p, star_etc->kwonlyargs); in _PyPegen_make_arguments()
1837 if (!kwonlyargs) { in _PyPegen_make_arguments()
1842 kwonlyargs = _Py_asdl_seq_new(0, p->arena); in _PyPegen_make_arguments()
1843 if (!kwonlyargs) { in _PyPegen_make_arguments()
1849 if (star_etc != NULL && star_etc->kwonlyargs != NULL) { in _PyPegen_make_arguments()
1850 kwdefaults = _get_defaults(p, star_etc->kwonlyargs); in _PyPegen_make_arguments()
[all …]
Dpegen.h101 asdl_seq *kwonlyargs; // asdl_seq* of NameDefaultsPair's member
/external/python/cpython3/Lib/
Dinspect.py1081 kwonlyargs = list(names[nargs:nargs+nkwargs])
1092 return Arguments(args + kwonlyargs, varargs, varkw)
1119 args, varargs, varkw, defaults, kwonlyargs, kwonlydefaults, ann = \
1121 if kwonlyargs or ann:
1177 kwonlyargs = []
1200 kwonlyargs.append(name)
1218 kwonlyargs, kwdefaults, annotations)
1249 kwonlyargs=(), kwonlydefaults={}, annotations={}, argument
1291 if kwonlyargs:
1293 if kwonlyargs:
[all …]
Dast.py1503 if node.vararg or node.kwonlyargs:
1516 if node.kwonlyargs:
1517 for a, d in zip(node.kwonlyargs, node.kw_defaults):
/external/tensorflow/tensorflow/python/autograph/pyct/
Dparser.py227 node_kwonlyargs = tuple(_arg_name(arg) for arg in node.args.kwonlyargs)
228 if node_kwonlyargs != tuple(arg_spec.kwonlyargs):
Dloader_test.py62 kwonlyargs=[],
/external/tensorflow/tensorflow/c/experimental/saved_model/core/
Dobject_graph_traversal_test.cc122 key: "kwonlyargs"
/external/tensorflow/tensorflow/python/ops/
Dcustom_gradient.py381 "variables" in grad_argspec.kwonlyargs or
450 ("variables" not in grad_argspec.kwonlyargs) and
/external/tensorflow/tensorflow/python/saved_model/
Dfunction_deserialization.py141 kwonlyargs=typeless_fullargspec.kwonlyargs,
/external/python/cpython3/Python/
Dast_unparse.c241 if (args->vararg || asdl_seq_LEN(args->kwonlyargs)) { in append_ast_args()
250 arg_count = asdl_seq_LEN(args->kwonlyargs); in append_ast_args()
254 APPEND(arg, (arg_ty)asdl_seq_GET(args->kwonlyargs, i)); in append_ast_args()
Dast.c108 if (!validate_args(args->kwonlyargs)) in validate_arguments()
118 if (asdl_seq_LEN(args->kw_defaults) != asdl_seq_LEN(args->kwonlyargs)) { in validate_arguments()
1341 asdl_seq *kwonlyargs, asdl_seq *kwdefaults) in handle_keywordonly_args() argument
1350 if (kwonlyargs == NULL) { in handle_keywordonly_args()
1390 asdl_seq_SET(kwonlyargs, j++, arg); in handle_keywordonly_args()
1482 asdl_seq *posonlyargs, *posargs, *posdefaults, *kwonlyargs, *kwdefaults; in ast_for_arguments() local
1532 kwonlyargs = (nkwonlyargs ? in ast_for_arguments()
1534 if (!kwonlyargs && nkwonlyargs) in ast_for_arguments()
1617 kwonlyargs, kwdefaults); in ast_for_arguments()
1641 kwonlyargs, kwdefaults); in ast_for_arguments()
[all …]
Dsymtable.c1730 if (a->kwonlyargs && !symtable_visit_argannotations(st, a->kwonlyargs)) in symtable_visit_annotations()
1747 if (a->kwonlyargs && !symtable_visit_params(st, a->kwonlyargs)) in symtable_visit_arguments()
Dcompile.c1962 compiler_visit_kwonlydefaults(struct compiler *c, asdl_seq *kwonlyargs, in compiler_visit_kwonlydefaults() argument
1972 for (i = 0; i < asdl_seq_LEN(kwonlyargs); i++) { in compiler_visit_kwonlydefaults()
1973 arg_ty arg = asdl_seq_GET(kwonlyargs, i); in compiler_visit_kwonlydefaults()
2090 if (!compiler_visit_argannotations(c, args->kwonlyargs, names)) in compiler_visit_annotations()
2141 if (args->kwonlyargs) { in compiler_default_arguments()
2142 int res = compiler_visit_kwonlydefaults(c, args->kwonlyargs, in compiler_default_arguments()
2196 if (!compiler_check_debug_args_seq(c, args->kwonlyargs)) in compiler_check_debug_args()
2279 c->u->u_kwonlyargcount = asdl_seq_LEN(args->kwonlyargs); in compiler_function()
2675 c->u->u_kwonlyargcount = asdl_seq_LEN(args->kwonlyargs); in compiler_lambda()
/external/tensorflow/tensorflow/python/keras/utils/
Dtf_inspect.py48 kwonlyargs=[],
/external/tensorflow/tensorflow/python/distribute/
Dparameter_server_strategy_v2.py633 "shard_info" not in arg_spec.kwonlyargs):
/external/python/cpython3/Parser/
DPython.asdl109 arguments = (arg* posonlyargs, arg* args, arg? vararg, arg* kwonlyargs,
/external/llvm-project/llvm/lib/Analysis/models/inliner/
Dsaved_model.pbtxt28495 key: "kwonlyargs"
28563 key: "kwonlyargs"
28688 key: "kwonlyargs"
28779 key: "kwonlyargs"
28870 key: "kwonlyargs"
28961 key: "kwonlyargs"
29032 key: "kwonlyargs"
29103 key: "kwonlyargs"
29174 key: "kwonlyargs"
29245 key: "kwonlyargs"
[all …]
/external/tensorflow/tensorflow/python/autograph/pyct/static_analysis/
Dactivity.py564 node.args.kwonlyargs = self._visit_node_list(node.args.kwonlyargs)
/external/python/cpython3/Lib/test/
Dtest_ast.py1059 kwonlyargs=None, kwarg=None, argument
1065 if kwonlyargs is None:
1066 kwonlyargs = []
1071 args = ast.arguments(args, posonlyargs, vararg, kwonlyargs,
1077 check(arguments(kwonlyargs=args), "must have Load context")
1087 check(arguments(kwonlyargs=args,
/external/tensorflow/tensorflow/python/eager/
Dfunction.py1623 kwonlyargs=list(sorted(kwarg_specs)),
2418 kwonlyargs=[],
2509 if set(fullargspec.kwonlyargs) - set(fullargspec.kwonlydefaults or ()):
2579 if self._fullargspec.kwonlyargs:
2581 for arg_name in self._fullargspec.kwonlyargs:
2617 if kw in self._fullargspec.kwonlyargs or kw in self._fullargspec.args:
/external/python/cpython3/Doc/library/
Dinspect.rst934 ``FullArgSpec(args, varargs, varkw, defaults, kwonlyargs, kwonlydefaults,
945 *kwonlyargs* is a list of keyword-only parameter names in declaration order.
946 *kwonlydefaults* is a dictionary mapping parameter names from *kwonlyargs*
989 .. function:: formatargspec(args[, varargs, varkw, defaults, kwonlyargs, kwonlydefaults, annotation…
995 ``defaults``, ``kwonlyargs``, ``kwonlydefaults``, ``annotations``).

12