Home
last modified time | relevance | path

Searched refs:_kwargs (Results 1 – 25 of 31) sorted by relevance

12

/external/python/cpython2/Lib/bsddb/
Ddbutils.py47 def DeadlockWrap(function, *_args, **_kwargs): argument
63 max_retries = _kwargs.get('max_retries', -1)
64 if 'max_retries' in _kwargs:
65 del _kwargs['max_retries']
68 return function(*_args, **_kwargs)
/external/tensorflow/tensorflow/contrib/gan/python/losses/python/
Dlosses_impl_test.py404 loss = self._penalty_fn(**self._kwargs)
415 self._penalty_fn(loss_collection='collection', **self._kwargs)
419 loss = self._penalty_fn(reduction=tf_losses.Reduction.NONE, **self._kwargs)
423 loss = self._penalty_fn(weights=2.3, **self._kwargs)
429 loss = self._penalty_fn(weights=constant_op.constant(2.3), **self._kwargs)
448 self._kwargs = {
472 self._kwargs['generator_inputs'],
473 self._kwargs['discriminator_fn'],
474 self._kwargs['discriminator_scope'])
493 self._kwargs['generator_inputs'],
[all …]
/external/python/cpython2/Lib/multiprocessing/
Dutil.py186 self._kwargs = kwargs or {}
206 self._callback, self._args, self._kwargs)
207 res = self._callback(*self._args, **self._kwargs)
209 self._kwargs = self._key = None
222 self._kwargs = self._key = None
243 if self._kwargs:
244 x += ', kwargs=' + str(self._kwargs)
Dprocess.py105 self._kwargs = dict(kwargs)
114 self._target(*self._args, **self._kwargs)
133 del self._target, self._args, self._kwargs
/external/python/cpython3/Lib/multiprocessing/
Dutil.py164 self._kwargs = kwargs or {}
188 self._callback, self._args, self._kwargs)
189 res = self._callback(*self._args, **self._kwargs)
191 self._kwargs = self._key = None
204 self._kwargs = self._key = None
226 if self._kwargs:
227 x += ', kwargs=' + str(self._kwargs)
Dprocess.py83 self._kwargs = dict(kwargs)
99 self._target(*self._args, **self._kwargs)
116 del self._target, self._args, self._kwargs
/external/python/oauth2client/oauth2client/
Dservice_account.py117 self._kwargs = kwargs
384 payload.update(self._kwargs)
488 **self._kwargs)
507 new_kwargs = dict(self._kwargs)
643 **self._kwargs)
668 payload.update(self._kwargs)
Dtransport.py220 if 'aud' in credentials._kwargs:
/external/python/cpython3/Lib/
Doperator.py314 self._kwargs = kwargs
317 return getattr(obj, self._name)(*self._args, **self._kwargs)
322 args.extend('%s=%r' % (k, v) for k, v in self._kwargs.items())
328 if not self._kwargs:
332 return partial(self.__class__, self._name, **self._kwargs), self._args
Dthreading.py787 self._kwargs = kwargs
865 self._target(*self._args, **self._kwargs)
869 del self._target, self._args, self._kwargs
/external/chromium-trace/catapult/devil/devil/android/
Dflag_changer_test.py27 def RemovePath(self, path, **_kwargs): argument
30 def WriteFile(self, path, contents, **_kwargs): argument
33 def ReadFile(self, path, **_kwargs): argument
/external/chromium-trace/catapult/devil/devil/utils/
Dcmd_helper_test.py150 def read_side_effect(*_args, **_kwargs): argument
156 def select_side_effect(*_args, **_kwargs): argument
167 def time_side_effect(*_args, **_kwargs): argument
170 def poll_side_effect(*_args, **_kwargs): argument
Dreraiser_thread.py65 self._kwargs = kwargs
84 self._ret = self._func(*self._args, **self._kwargs)
/external/libchrome/third_party/jinja2/
Dsandbox.py116 self._kwargs = kwargs
128 return self._kwargs[key]
131 return iter(self._kwargs)
134 return len(self._kwargs)
/external/python/cpython2/Lib/test/
D_mock_backport.py1239 _kwargs = {}
1254 _kwargs['spec'] = spec
1256 _kwargs['spec_set'] = spec_set
1261 _kwargs['name'] = self.attribute
1263 _kwargs.update(kwargs)
1264 new = Klass(**_kwargs)
1276 _kwargs.pop('name')
1278 **_kwargs)
2111 _kwargs = {'spec': spec}
2113 _kwargs = {'spec_set': spec}
[all …]
/external/python/cpython3/Lib/unittest/
Dmock.py1293 _kwargs = {}
1308 _kwargs['spec'] = spec
1310 _kwargs['spec_set'] = spec_set
1315 _kwargs['name'] = self.attribute
1317 _kwargs.update(kwargs)
1318 new = Klass(**_kwargs)
1330 _kwargs.pop('name')
1332 **_kwargs)
2175 _kwargs = {'spec': spec}
2177 _kwargs = {'spec_set': spec}
[all …]
/external/python/mock/mock/
Dmock.py1394 _kwargs = {}
1409 _kwargs['spec'] = spec
1411 _kwargs['spec_set'] = spec_set
1416 _kwargs['name'] = self.attribute
1418 _kwargs.update(kwargs)
1419 new = Klass(**_kwargs)
1431 _kwargs.pop('name')
1433 **_kwargs)
2291 _kwargs = {'spec': spec}
2293 _kwargs = {'spec_set': spec}
[all …]
/external/pdfium/third_party/pymock/
Dmock.py1293 _kwargs = {}
1308 _kwargs['spec'] = spec
1310 _kwargs['spec_set'] = spec_set
1315 _kwargs['name'] = self.attribute
1317 _kwargs.update(kwargs)
1318 new = Klass(**_kwargs)
1330 _kwargs.pop('name')
1332 **_kwargs)
2161 _kwargs = {'spec': spec}
2163 _kwargs = {'spec_set': spec}
[all …]
/external/python/oauth2client/tests/
Dtest_service_account.py247 self.assertNotIn('sub', creds._kwargs)
249 self.assertEqual(delegated_creds._kwargs['sub'], sub)
251 self.assertNotIn('sub', creds._kwargs)
259 self.assertEqual(creds._kwargs['sub'], sub1)
261 self.assertEqual(delegated_creds._kwargs['sub'], sub2)
263 self.assertEqual(creds._kwargs['sub'], sub1)
Dtest_jwt.py276 self.assertEqual(credentials._kwargs, restored._kwargs)
/external/python/oauth2client/oauth2client/contrib/
Dappengine.py147 self._kwargs = kwargs
192 return AppAssertionCredentials(scopes, **self._kwargs)
598 self._kwargs = kwargs
674 revoke_uri=self._revoke_uri, **self._kwargs)
/external/tensorflow/tensorflow/python/training/
Dcoordinator.py453 self._kwargs = kwargs or {}
509 self._target(*self._args, **self._kwargs)
/external/toolchain-utils/cros_utils/
Dlogger.py207 def __init__(self, *_args, **_kwargs): argument
268 def LogMsg(self, _file_fd, _term_fd, msg, **_kwargs): argument
277 def LogCmdToFileOnly(self, *_args, **_kwargs): argument
/external/chromium-trace/catapult/devil/devil/android/sdk/
Dshared_prefs_test.py37 def write_file(path, contents, **_kwargs): argument
40 def read_file(path, **_kwargs): argument
/external/autotest/scheduler/
Ddrone_utility.py61 self._kwargs = kwargs
66 return method(*self._args, **self._kwargs)
72 self._kwargs.iteritems())

12