Home
last modified time | relevance | path

Searched refs:kwarg (Results 1 – 25 of 53) sorted by relevance

123

/external/bcc/tests/python/
Dutils.py18 def __init__(self, nsname, *argv, **kwarg): argument
21 super(NSPopenWithCheck, self).__init__(nsname, *argv, **kwarg)
/external/scapy/scapy/
Dasn1fields.py280 for kwarg in ["context", "implicit_tag",
282 if kwarg in kwargs:
283 setattr(self, kwarg, kwargs[kwarg])
285 setattr(self, kwarg, None)
443 for kwarg in ["context", "explicit_tag"]:
444 if kwarg in kwargs:
445 setattr(self, kwarg, kwargs[kwarg])
447 setattr(self, kwarg, None)
/external/python/cpython3/Lib/test/
Dtest_keywordonlyarg.py8 def posonly_sum(pos_arg1, *arg, **kwarg): argument
9 return pos_arg1 + sum(arg) + sum(kwarg.values())
14 def keywordonly_and_kwarg_sum(*, k1, k2, **kwarg): argument
15 return k1 + k2 + sum(kwarg.values())
/external/tensorflow/tensorflow/contrib/opt/python/training/
Dexternal_optimizer.py388 for kwarg in minimize_kwargs:
389 if kwarg in optimizer_kwargs:
390 if kwarg == 'bounds':
397 'automatically and cannot be injected manually'.format(kwarg))
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_Cumprod.pbtxt39 By setting the `exclusive` kwarg to `True`, an exclusive cumprod is
46 By setting the `reverse` kwarg to `True`, the cumprod is performed in the
Dapi_def_Cumsum.pbtxt39 By setting the `exclusive` kwarg to `True`, an exclusive cumsum is
46 By setting the `reverse` kwarg to `True`, the cumsum is performed in the
/external/python/mock/mock/tests/
Dtestpatch.py1711 for kwarg in ('spec', 'spec_set', 'autospec'):
1713 **{kwarg: True})
1718 p = patch(MODNAME, create=True, **{kwarg: True})
1725 for kwarg in ('spec', 'spec_set'):
1726 p = patch(MODNAME, autospec=0, **{kwarg: 0})
1730 for kwarg in ('spec', 'autospec'):
1731 p = patch(MODNAME, spec_set=0, **{kwarg: 0})
1735 for kwarg in ('spec_set', 'autospec'):
1736 p = patch(MODNAME, spec=0, **{kwarg: 0})
1753 for kwarg in ('spec', 'autospec', 'spec_set'):
[all …]
/external/python/cpython3/Lib/unittest/test/testmock/
Dtestpatch.py1730 for kwarg in ('spec', 'spec_set', 'autospec'):
1732 **{kwarg: True})
1737 p = patch(MODNAME, create=True, **{kwarg: True})
1744 for kwarg in ('spec', 'spec_set'):
1745 p = patch(MODNAME, autospec=0, **{kwarg: 0})
1749 for kwarg in ('spec', 'autospec'):
1750 p = patch(MODNAME, spec_set=0, **{kwarg: 0})
1754 for kwarg in ('spec_set', 'autospec'):
1755 p = patch(MODNAME, spec=0, **{kwarg: 0})
1772 for kwarg in ('spec', 'autospec', 'spec_set'):
[all …]
/external/tensorflow/tensorflow/python/layers/
Dbase.py359 for kwarg in kwargs:
360 if kwarg != 'experimental_autocast':
361 raise TypeError('Unknown keyword argument:', kwarg)
/external/tensorflow/tensorflow/python/autograph/pyct/
Dpretty_printer_test.py44 kwarg=None,
Dcompiler_test.py79 kwarg=None,
/external/tensorflow/tensorflow/python/util/
Dtf_inspect_test.py219 def func(m, n, **kwarg): argument
220 return m * n + len(kwarg)
425 def func(m, n, **kwarg): argument
426 return m * n + len(kwarg)
/external/tensorflow/tensorflow/python/keras/engine/
Dbase_layer.py134 for kwarg in kwargs:
135 if kwarg not in allowed_kwargs:
136 raise TypeError('Keyword argument not understood:', kwarg)
317 for kwarg in kwargs:
318 if kwarg not in ['getter', 'collections', 'experimental_autocast']:
319 raise TypeError('Unknown keyword argument:', kwarg)
/external/tensorflow/tensorflow/tools/compatibility/
Dast_edits.py289 for (kwarg, arg), (level, warning) in sorted(arg_warnings.items()):
290 present, _ = get_arg_value(node, kwarg, arg)
296 (full_name or name, kwarg, warning_message))
/external/python/cpython3/Tools/parser/
Dunparse.py634 if t.kwarg:
637 self.write("**"+t.kwarg.arg)
638 if t.kwarg.annotation:
640 self.dispatch(t.kwarg.annotation)
/external/autotest/client/bin/net/
Dnet_utils_mock.py12 def os_open(*args, **kwarg): argument
/external/libchrome/third_party/jinja2/
Dcompiler.py419 for kwarg in chain((x.key for x in node.kwargs), extra_kwargs or ()):
420 if is_python_keyword(kwarg):
429 for kwarg in node.kwargs:
431 self.visit(kwarg, frame)
444 for kwarg in node.kwargs:
445 self.write('%r: ' % kwarg.key)
446 self.visit(kwarg.value, frame)
/external/python/cpython3/Lib/
Dinspect.py1377 for kwarg in kwonlyargs:
1378 if kwarg not in arg2value:
1379 if kwonlydefaults and kwarg in kwonlydefaults:
1380 arg2value[kwarg] = kwonlydefaults[kwarg]
2077 if f.args.kwarg:
2079 p(f.args.kwarg, empty)
/external/tensorflow/tensorflow/python/autograph/pyct/common_transformers/
Danf_test.py162 call_something(a + b, y * z, kwarg=c + d, *(e + f), **(g + h + i))
171 call_something(tmp_1002, tmp_1003, kwarg=tmp_1005, *tmp_1004, **tmp_1006)
/external/python/cpython3/Python/
Dsymtable.c1566 if (a->kwarg && a->kwarg->annotation) in symtable_visit_annotations()
1567 VISIT(st, expr, a->kwarg->annotation); in symtable_visit_annotations()
1590 if (a->kwarg) { in symtable_visit_arguments()
1591 if (!symtable_add_def(st, a->kwarg->arg, DEF_PARAM)) in symtable_visit_arguments()
/external/tensorflow/tensorflow/contrib/learn/python/learn/
Dexperiment_test.py130 for kwarg in kwargs:
131 if kwarg not in supported_args:
133 'Argument `{}` is not supported in method {}.'.format(kwarg, method))
/external/tensorflow/tensorflow/tools/docs/
Dparser.py680 for kwarg in (func.keywords or []):
681 if kwarg in (argspec.args or []):
682 i = argspec_args.index(kwarg)
/external/python/cpython2/Parser/
DPython.asdl108 identifier? kwarg, expr* defaults)
/external/python/cpython2/Demo/parser/
Dunparse.py548 if t.kwarg:
551 self.write("**"+t.kwarg)
/external/python/cpython2/Lib/lib2to3/tests/data/
Dpy3_test_grammar.py283 def pos2key2dict(p1, p2, *, k1=100, k2, **kwarg): return p1,p2,k1,k2,kwarg argument

123