/external/python/cpython3/Lib/idlelib/ |
calltip.py | 70 argspec = self.fetch_tip(expression) 71 if not argspec: 74 self.active_calltip.showtip(argspec, sur_paren[0], sur_paren[1]) 133 argspec = default = "" 142 argspec = str(inspect.signature(fob)) 148 if '/' in argspec: 150 argspec += _argument_positional 151 if isinstance(fob, type) and argspec == '()': 152 """fob with no argument, use default callable argspec""" 153 argspec = _default_callable_argspe [all...] |
/external/tensorflow/tensorflow/python/util/ |
tf_inspect_test.py | 74 argspec = tf_inspect.getargspec(test_decorated_function_with_defaults) 75 self.assertEqual(['a', 'b', 'c'], argspec.args) 76 self.assertEqual((2, 'Hello'), argspec.defaults) 79 argspec = tf_inspect.ArgSpec( 86 argspec) 87 self.assertEqual(argspec, tf_inspect.getargspec(decorator)) 90 argspec = tf_inspect.ArgSpec( 97 '', argspec) [all...] |
tf_inspect.py | 28 ArgSpec = _inspect.ArgSpec 40 def _convert_maybe_argspec_to_fullargspec(argspec): 41 if isinstance(argspec, FullArgSpec): 42 return argspec 44 args=argspec.args, 45 varargs=argspec.varargs, 46 varkw=argspec.keywords, 47 defaults=argspec.defaults, 59 varkw, and defaults to a python 2/3 compatible `ArgSpec` [all...] |
tf_contextlib_test.py | 86 argspec = tf_inspect.getargspec(test_params_and_defaults) 87 self.assertEqual(['a', 'b', 'c', 'd'], argspec.args) 88 self.assertEqual((2, True, 'hello'), argspec.defaults)
|
tf_decorator_test.py | 127 argspec = tf_inspect.ArgSpec( 132 self.assertIs(argspec, 134 argspec).decorator_argspec) 228 argspec = tf_inspect.ArgSpec( 234 argspec) 236 self.assertEqual(argspec, decorator.decorator_argspec)
|
/external/python/cpython2/Lib/idlelib/ |
CallTips.py | 148 argspec = "" 155 return argspec 196 argspec = ", ".join(items) 197 argspec = "(%s)" % re.sub("(?<!\d)\.\d+", "<tuple>", argspec) 199 lines = (textwrap.wrap(argspec, _MAX_COLS, subsequent_indent=_INDENT) 200 if len(argspec) > _MAX_COLS else [argspec] if argspec else []) 214 argspec = '\n'.join(lines [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/ |
DocXMLRPCServer.py | 81 argspec = inspect.formatargspec (
90 argspec = inspect.formatargspec(
93 argspec = '(...)'
96 argspec = object[0] or argspec
101 decl = title + argspec + (note and self.grey(
181 method_info = [None, None] # argspec, documentation
|
pydoc.py | [all...] |
/external/python/cpython2/Lib/ |
DocXMLRPCServer.py | 81 argspec = inspect.formatargspec ( 90 argspec = inspect.formatargspec( 93 argspec = '(...)' 96 argspec = object[0] or argspec 101 decl = title + argspec + (note and self.grey( 181 method_info = [None, None] # argspec, documentation
|
pydoc.py | [all...] |
/external/tensorflow/tensorflow/contrib/gan/python/losses/python/ |
tuple_losses_impl.py | 104 argspec = tf_inspect.getargspec(loss_fn) 105 defaults = argspec.defaults or [] 107 required_args = set(argspec.args[:-len(defaults)]) 108 args_with_defaults = argspec.args[-len(defaults):] 129 args_from_tuple = set(argspec.args).intersection(set(gan_model._fields))
|
/external/tensorflow/tensorflow/python/ops/parallel_for/ |
control_flow_ops.py | 168 argspec = tf_inspect.getargspec(loop_fn) 169 return PFOR_CONFIG_ARG in argspec.args 172 argspec = tf_inspect.getargspec(fn) 173 return (PFOR_CONFIG_ARG in argspec.args and 179 argspec = tf_inspect.getargspec(loop_class.__call__) 180 return PFOR_CONFIG_ARG in argspec.args
|
/external/python/apitools/apitools/base/py/ |
app2.py | 68 argspec = inspect.getargspec(func) 69 if argspec.args and argspec.args[0] == 'self': 70 argspec = argspec._replace( # pylint: disable=protected-access 71 args=argspec.args[1:]) 72 self._argspec = argspec
|
/external/tensorflow/tensorflow/python/ops/ragged/ |
ragged_dispatch.py | 69 # Inspect the func's argspec to find the position of each arg. 494 argspec = tf_inspect.getfullargspec(op) 495 arg_names = argspec.args 502 for pos in range(-1, -len(argspec.defaults) - 1, -1): 503 arg_names[pos] += '=`{!r}`'.format(argspec.defaults[pos]) 506 if argspec.varargs: 507 arg_names.append('*' + argspec.varargs) 508 if argspec.varkw: 509 arg_names.append('**' + argspec.varkw)
|
/external/tensorflow/tensorflow/python/keras/engine/ |
sequential.py | 250 argspec = self._layer_call_argspecs[layer].args 251 if 'mask' in argspec: 253 if 'training' in argspec:
|
base_layer_utils.py | 396 def training_arg_passed_to_call(argspec, args, kwargs): 398 # `argspec.args` starts with ['self', 'inputs'] 399 full_args = dict(zip(argspec.args[2:], args))
|
/external/tensorflow/tensorflow/examples/saved_model/integration_tests/ |
export_mnist_cnn.py | 88 # The goal is to save a function with this argspec... 89 argspec = tf_inspect.FullArgSpec( 106 # the desired argspec. 110 tf_decorator.make_decorator(call_fn, wrapped, decorator_argspec=argspec))
|
/external/tensorflow/tensorflow/python/framework/ |
function.py | 136 argspec = tf_inspect.getargspec(func) 137 if argspec.keywords or argspec.defaults: 141 func, argspec.defaults, argspec.keywords)) 144 min_args = len(argspec.args) 146 if argspec.varargs: 148 argnames = argspec.args [all...] |
/external/python/cpython3/Lib/ |
pydoc.py | [all...] |
/external/autotest/frontend/afe/ |
rpc_utils.py | [all...] |
/external/python/cpython3/Lib/xmlrpc/ |
server.py | 775 argspec = str(signature(object)) 777 argspec = '(...)' 780 argspec = object[0] or argspec 785 decl = title + argspec + (note and self.grey( 865 method_info = [None, None] # argspec, documentation [all...] |
/external/tensorflow/tensorflow/tools/api/lib/ |
python_object_to_proto_visitor.py | 90 """Get an ArgSpec string that is free of addresses. 100 string, a string representation of the argspec. 193 # argspec, because it is implemented on the C side. It also has no 196 new_method.argspec = _SanitizedArgSpec(member_obj)
|
/external/autotest/client/common_lib/ |
utils.py | [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/PyMod-2.7.2/Lib/ |
pydoc.py | [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/PyMod-2.7.10/Lib/ |
pydoc.py | [all...] |