Home
last modified time | relevance | path

Searched refs:functools (Results 1 – 25 of 434) sorted by relevance

12345678910>>...18

/external/tensorflow/tensorflow/python/util/
Dfunction_utils_test.py21 import functools
70 wrapped_fn = functools.partial(fn, test_arg=123)
82 wrapped_fn = functools.partial(fn, 123)
98 wrapped_fn = functools.partial(fn, test_arg2=456)
99 double_wrapped_fn = functools.partial(wrapped_fn, test_arg1=123)
112 wrapped_fn = functools.partial(fn, test_arg2=456)
113 double_wrapped_fn = functools.partial(wrapped_fn, 123)
129 wrapped_fn = functools.partial(fn, 123) # binds to test_arg1
130 double_wrapped_fn = functools.partial(wrapped_fn, 456) # binds to test_arg2
184 wrapped_fn = functools.partial(fn_has_kwargs, test_arg=123)
[all …]
Dtf_inspect_test.py22 import functools
119 partial_func = functools.partial(func, 7)
131 partial_func = functools.partial(func, m=0)
145 partial_func = functools.partial(func, n=7)
159 partial_func = functools.partial(func, n=7, l=2)
174 partial_func = functools.partial(func, 7, 10)
186 partial_func = functools.partial(func, n=7)
198 partial_func = functools.partial(func, n=7)
210 partial_func = functools.partial(func, 7, 8)
222 partial_func = functools.partial(func, 7)
[all …]
Dfunction_utils.py21 import functools
51 if isinstance(fn, functools.partial):
75 if isinstance(fn, functools.partial):
Dkeyword_args.py22 import functools
45 @functools.wraps(func)
/external/tensorflow/tensorflow/python/training/
Dlearning_rate_decay.py20 import functools
102 decayed_lr = functools.partial(decayed_lr, global_step)
154 decayed_lr = functools.partial(decayed_lr, x)
254 decayed_lr = functools.partial(decayed_lr, global_step)
338 decayed_lr = functools.partial(decayed_lr, global_step)
424 decayed_lr = functools.partial(decayed_lr, global_step)
483 decayed_lr = functools.partial(decayed_lr, global_step)
556 decayed_lr = functools.partial(decayed_lr, global_step)
638 decayed_lr = functools.partial(decayed_lr, global_step)
730 decayed_lr = functools.partial(decayed_lr, global_step)
/external/python/cpython2/Lib/test/
Dtest_functools.py2 import functools
41 partial = functools.partial
290 class PartialSubclass(functools.partial):
318 assigned=functools.WRAPPER_ASSIGNMENTS,
319 updated=functools.WRAPPER_UPDATES):
337 functools.update_wrapper(wrapper, f)
359 functools.update_wrapper(wrapper, f, (), ())
375 functools.update_wrapper(wrapper, f, assign, update)
387 functools.update_wrapper(wrapper, max)
398 @functools.wraps(f)
[all …]
/external/tensorflow/tensorflow/python/kernel_tests/random/
Dstateless_random_ops_test.py21 import functools
106 yield (functools.partial(stateless_op, **kwds),
107 functools.partial(stateful_op, **kwds))
116 yield (functools.partial(stateless.stateless_random_uniform, **kwds),
117 functools.partial(random_ops.random_uniform, **kwds))
129 yield (functools.partial(stateless.stateless_multinomial, **kwds),
130 functools.partial(random_ops.multinomial, **kwds))
/external/python/futures/
Dcrawl.py3 import functools
58 functools.partial(download_urls_sequential, URLS)),
60 functools.partial(download_urls_with_executor,
64 functools.partial(download_urls_with_executor,
/external/python/cpython3/Lib/test/
Dtest_functools.py19 import functools
463 nothing = functools.partialmethod(capture)
464 positional = functools.partialmethod(capture, 1)
465 keywords = functools.partialmethod(capture, a=2)
466 both = functools.partialmethod(capture, 3, b=4)
468 nested = functools.partialmethod(positional, 5)
470 over_partial = functools.partialmethod(functools.partial(capture, c=6), 7)
472 static = functools.partialmethod(staticmethod(capture), 8)
473 cls = functools.partialmethod(classmethod(capture), d=9)
552 method = functools.partialmethod(None, 1)
[all …]
/external/tensorflow/tensorflow/tools/compatibility/
Dtf_upgrade_v2.py22 import functools
1564 functools.partial(
1572 functools.partial(
1580 functools.partial(
1588 functools.partial(
1596 functools.partial(
1604 functools.partial(
1612 functools.partial(
1620 functools.partial(
1628 functools.partial(
[all …]
/external/python/cpython3/Lib/asyncio/
Dformat_helpers.py1 import functools
15 if isinstance(func, functools.partial):
17 if isinstance(func, functools.partialmethod):
45 if isinstance(func, functools.partial):
/external/tensorflow/tensorflow/python/data/kernel_tests/
Diterator_checkpoint_test.py20 import functools
45 ) else functools.partial(self.evaluate, iterator.get_next())
66 ) else functools.partial(self.evaluate, iterator_1.get_next())
70 ) else functools.partial(self.evaluate, iterator_2.get_next())
75 ) else functools.partial(self.evaluate, iterator_3.get_next())
98 ) else functools.partial(self.evaluate, iterator.get_next())
/external/autotest/client/cros/cellular/pseudomodem/
Dutils.py7 import functools
37 @functools.wraps(func)
116 @functools.wraps(return_cb)
135 @functools.wraps(raise_cb)
/external/python/cpython3/Lib/encodings/
Dcp65001.py6 import functools
13 encode = functools.partial(codecs.code_page_encode, 65001)
14 _decode = functools.partial(codecs.code_page_decode, 65001)
/external/tensorflow/tensorflow/contrib/layers/python/layers/
Dsummaries.py21 import functools
152 summarize_variables = functools.partial(summarize_collection,
155 summarize_weights = functools.partial(summarize_collection,
158 summarize_biases = functools.partial(summarize_collection, ops.GraphKeys.BIASES)
/external/tensorflow/tensorflow/python/training/tracking/
Dutil_with_v1_optimizers_test.py20 import functools
292 functools.partial(model, input_value),
308 functools.partial(_train_fn, optimizer, model))
322 functools.partial(model, input_value),
337 functools.partial(_train_fn, optimizer, model))
404 train_fn = functools.partial(
406 functools.partial(model, input_value),
409 train_fn = functools.partial(self.evaluate, train_fn())
446 train_fn = functools.partial(
675 train_fn = functools.partial(
[all …]
/external/tensorflow/tensorflow/contrib/gan/python/eval/python/
Dclassifier_metrics_impl.py30 import functools
405 inception_score = functools.partial(
407 classifier_fn=functools.partial(
741 frechet_inception_distance = functools.partial(
743 classifier_fn=functools.partial(
817 kernel_inception_distance = functools.partial(
819 classifier_fn=functools.partial(
917 kernel_inception_distance_and_std = functools.partial(
919 classifier_fn=functools.partial(
/external/tensorflow/tensorflow/python/kernel_tests/signal/
Dwindow_ops_test.py21 import functools
86 functools.partial(_scipy_raised_cosine, a=0.5, b=0.5),
96 functools.partial(_scipy_raised_cosine, a=0.54, b=0.46),
/external/tensorflow/tensorflow/contrib/distribute/python/
Dcheckpointing_test.py20 import functools
71 functools.partial(model, input_value),
87 functools.partial(_train_fn, optimizer, model))
/external/brotli/python/tests/
Dcompressor_test.py6 import functools
47 read_chunk = functools.partial(in_file.read, self.CHUNK_SIZE)
58 read_chunk = functools.partial(in_file.read, self.CHUNK_SIZE)
/external/chromium-trace/catapult/common/py_utils/py_utils/refactor/
D__init__.py11 import functools
27 transform = functools.partial(_TransformFile, transform)
/external/python/setuptools/setuptools/
Dmonkey.py9 import functools
159 msvc9 = functools.partial(patch_params, 'distutils.msvc9compiler')
162 msvc14 = functools.partial(patch_params, 'distutils._msvccompiler')
/external/tensorflow/tensorflow/contrib/gan/python/estimator/python/
Dlatent_gan_estimator_impl.py73 import functools
107 generator = functools.partial(generator_fn, mode=mode)
108 discriminator = functools.partial(discriminator_fn, mode=mode)
/external/tensorflow/tensorflow/python/keras/utils/
Dkernelized_utils_test.py21 import functools
31 return functools.partial(
36 return functools.partial(
/external/chromium-trace/catapult/common/py_utils/py_utils/
Dretry_util.py4 import functools
41 @functools.wraps(f)

12345678910>>...18