Home
last modified time | relevance | path

Searched full:dist (Results 1 – 25 of 4422) sorted by relevance

12345678910>>...177

/external/zopfli/src/zopfli/
Dsymbols.h37 /* Gets the amount of extra bits for the given dist, cfr. the DEFLATE spec. */
38 static int ZopfliGetDistExtraBits(int dist) { in ZopfliGetDistExtraBits() argument
40 if (dist < 5) return 0; in ZopfliGetDistExtraBits()
41 return (31 ^ __builtin_clz(dist - 1)) - 1; /* log2(dist - 1) - 1 */ in ZopfliGetDistExtraBits()
43 if (dist < 5) return 0; in ZopfliGetDistExtraBits()
44 else if (dist < 9) return 1; in ZopfliGetDistExtraBits()
45 else if (dist < 17) return 2; in ZopfliGetDistExtraBits()
46 else if (dist < 33) return 3; in ZopfliGetDistExtraBits()
47 else if (dist < 65) return 4; in ZopfliGetDistExtraBits()
48 else if (dist < 129) return 5; in ZopfliGetDistExtraBits()
[all …]
/external/python/setuptools/setuptools/tests/config/
Dtest_setupcfg.py10 from setuptools.dist import Distribution, _Distribution
62 dist = Distribution(kwargs_initial)
63 dist.script_name = 'setup.py'
64 parse and dist.parse_config_files()
66 yield dist
137 with get_dist(tmpdir, meta_initial) as dist:
138 metadata = dist.metadata
164 with get_dist(tmpdir) as dist:
165 metadata = dist.metadata
181 with get_dist(tmpdir) as dist:
[all …]
/external/tensorflow/tensorflow/python/kernel_tests/distributions/
Dbernoulli_test.py60 dist = bernoulli.Bernoulli(probs=p)
61 self.assertAllClose(p, self.evaluate(dist.probs))
66 dist = bernoulli.Bernoulli(logits=logits)
67 self.assertAllClose(logits, self.evaluate(dist.logits))
72 self.assertAllClose(special.expit(logits), self.evaluate(dist.probs))
75 dist = bernoulli.Bernoulli(probs=p)
76 self.assertAllClose(special.logit(p), self.evaluate(dist.logits))
83 dist = bernoulli.Bernoulli(probs=p, validate_args=True)
84 self.evaluate(dist.probs)
89 dist = bernoulli.Bernoulli(probs=p, validate_args=True)
[all …]
Dcategorical_test.py47 dist = categorical.Categorical(probs=p)
49 self.assertAllClose(p, dist.probs)
50 self.assertAllEqual([2], dist.logits.get_shape())
56 dist = categorical.Categorical(logits=logits)
58 self.assertAllEqual([2], dist.probs.get_shape())
59 self.assertAllEqual([2], dist.logits.get_shape())
60 self.assertAllClose(dist.probs, p)
61 self.assertAllClose(dist.logits, logits)
67 dist = make_categorical(batch_shape, 10)
68 self.assertAllEqual(batch_shape, dist.batch_shape)
[all …]
Ddirichlet_multinomial_test.py40 dist = ds.DirichletMultinomial(1., alpha)
41 self.assertEqual(3, dist.event_shape_tensor().eval())
42 self.assertAllEqual([], dist.batch_shape_tensor())
43 self.assertEqual(tensor_shape.TensorShape([3]), dist.event_shape)
44 self.assertEqual(tensor_shape.TensorShape([]), dist.batch_shape)
51 dist = ds.DirichletMultinomial(n, alpha)
52 self.assertEqual(2, dist.event_shape_tensor().eval())
53 self.assertAllEqual([3, 2], dist.batch_shape_tensor())
54 self.assertEqual(tensor_shape.TensorShape([2]), dist.event_shape)
55 self.assertEqual(tensor_shape.TensorShape([3, 2]), dist.batch_shape)
[all …]
Dbeta_test.py51 dist = beta_lib.Beta(a, b)
52 self.assertAllEqual([], self.evaluate(dist.event_shape_tensor()))
53 self.assertAllEqual([3], self.evaluate(dist.batch_shape_tensor()))
54 self.assertEqual(tensor_shape.TensorShape([]), dist.event_shape)
55 self.assertEqual(tensor_shape.TensorShape([3]), dist.batch_shape)
60 dist = beta_lib.Beta(a, b)
61 self.assertAllEqual([], self.evaluate(dist.event_shape_tensor()))
62 self.assertAllEqual([3, 2, 2], self.evaluate(dist.batch_shape_tensor()))
63 self.assertEqual(tensor_shape.TensorShape([]), dist.event_shape)
64 self.assertEqual(tensor_shape.TensorShape([3, 2, 2]), dist.batch_shape)
[all …]
Dmultinomial_test.py37 dist = multinomial.Multinomial(total_count=1., probs=p)
38 self.assertEqual(3, dist.event_shape_tensor().eval())
39 self.assertAllEqual([], dist.batch_shape_tensor())
40 self.assertEqual(tensor_shape.TensorShape([3]), dist.event_shape)
41 self.assertEqual(tensor_shape.TensorShape([]), dist.batch_shape)
48 dist = multinomial.Multinomial(total_count=n, probs=p)
49 self.assertEqual(2, dist.event_shape_tensor().eval())
50 self.assertAllEqual([3, 2], dist.batch_shape_tensor())
51 self.assertEqual(tensor_shape.TensorShape([2]), dist.event_shape)
52 self.assertEqual(tensor_shape.TensorShape([3, 2]), dist.batch_shape)
[all …]
/external/tensorflow/tensorflow/python/distribute/
Ddistribute_lib_test.py134 dist = _TestStrategy()
137 unbound_test_method(test_case, dist)
139 with dist.scope():
140 unbound_test_method(test_case, dist)
147 unbound_test_method(test_case, dist)
155 dist = _TestStrategy()
163 self.assertIs(dist, ds_context.get_strategy())
171 dist.extended.call_for_each_replica(run_fn)
172 with dist.scope():
173 dist.extended.call_for_each_replica(run_fn)
[all …]
/external/python/setuptools/setuptools/tests/
Dtest_setuptools.py17 import setuptools.dist
134 self.dist = makeSetup(
142 assert isinstance(self.dist, setuptools.dist.Distribution)
145 self.dist.exclude_package('a')
146 assert self.dist.packages == ['b', 'c']
148 self.dist.exclude_package('b')
149 assert self.dist.packages == ['c']
150 assert self.dist.py_modules == ['x']
151 assert self.dist.ext_modules == [self.e1, self.e2]
153 self.dist.exclude_package('c')
[all …]
Dtest_sdist.py17 from setuptools.dist import Distribution
124 dist = Distribution(SETUP_ATTRS)
125 dist.script_name = 'setup.py'
126 cmd = sdist(dist)
142 dist = Distribution(setup_attrs)
143 dist.script_name = 'setup.py'
144 cmd = sdist(dist)
173 dist = Distribution(setup_attrs)
174 dist.script_name = 'setup.py'
175 cmd = sdist(dist)
[all …]
Dtest_dist.py9 from setuptools.dist import (
61 dist = Distribution()
62 dist.parse_config_files()
64 dist.fetch_build_egg(r)
67 assert [dist.key for dist in resolved_dists if dist] == reqs
152 dist = Distribution(attrs)
153 metadata_out = dist.metadata
250 dist = Distribution(attrs)
254 dist.metadata.write_pkg_info(fn_s)
282 dist = Distribution(attrs)
[all …]
/external/python/cpython2/Lib/distutils/tests/
Dtest_dist.py3 """Tests for distutils.dist."""
11 from distutils.dist import Distribution, fix_help_options
13 import distutils.dist
77 distutils.dist.DEBUG = True
84 distutils.dist.DEBUG = False
138 dist = klass(attrs={'author': u'Mister Café',
147 dist.metadata.write_pkg_file(open(my_file, 'w'))
150 dist = klass(attrs={'author': 'Mister Cafe',
157 dist.metadata.write_pkg_file(open(my_file2, 'w'))
171 dist = Distribution(attrs={'author': 'xxx', 'name': 'xxx',
[all …]
/external/python/cpython3/Lib/distutils/tests/
Dtest_dist.py1 """Tests for distutils.dist."""
11 from distutils.dist import Distribution, fix_help_options
183 dist = Distribution(attrs={'author': 'xxx', 'name': 'xxx',
188 self.assertNotIn('options', dir(dist))
194 dist = Distribution(attrs=attrs)
195 dist.finalize_options()
198 self.assertEqual(dist.metadata.platforms, ['one', 'two'])
199 self.assertEqual(dist.metadata.keywords, ['one', 'two'])
203 dist = Distribution(attrs=attrs)
204 dist.finalize_options()
[all …]
Dtest_build_py.py34 dist = Distribution({"packages": ["pkg"],
37 dist.script_name = os.path.join(sources, "setup.py")
38 dist.command_obj["build"] = support.DummyCommand(
41 dist.packages = ["pkg"]
42 dist.package_data = {"pkg": ["README.txt"]}
43 dist.package_dir = {"pkg": sources}
45 cmd = build_py(dist)
48 self.assertEqual(cmd.package_data, dist.package_data)
78 dist = Distribution({"packages": ["pkg"],
82 dist.script_name = os.path.join(sources, "setup.py")
[all …]
/external/rust/crates/libz-sys/src/zlib-ng/
Dchunkset_tpl.h9 extern uint8_t* chunkmemset_sse41(uint8_t *out, unsigned dist, unsigned len);
57 Z_INTERNAL uint8_t* CHUNKUNROLL(uint8_t *out, unsigned *dist, unsigned *len) { in CHUNKUNROLL() argument
58 unsigned char const *from = out - *dist; in CHUNKUNROLL()
60 while (*dist < *len && *dist < sizeof(chunk_t)) { in CHUNKUNROLL()
63 out += *dist; in CHUNKUNROLL()
64 *len -= *dist; in CHUNKUNROLL()
65 *dist += *dist; in CHUNKUNROLL()
73 static inline chunk_t GET_CHUNK_MAG(uint8_t *buf, uint32_t *chunk_rem, uint32_t dist) { in GET_CHUNK_MAG() argument
74 /* This code takes string of length dist from "from" and repeats in GET_CHUNK_MAG()
81 cpy_dist = MIN(dist, bytes_remaining); in GET_CHUNK_MAG()
[all …]
/external/python/setuptools/setuptools.egg-info/
Dentry_points.txt24 dependency_links = setuptools.dist:assert_string_list
25 eager_resources = setuptools.dist:assert_string_list
26 entry_points = setuptools.dist:check_entry_points
27 exclude_package_data = setuptools.dist:check_package_data
28 extras_require = setuptools.dist:check_extras
29 include_package_data = setuptools.dist:assert_bool
30 install_requires = setuptools.dist:check_requirements
31 namespace_packages = setuptools.dist:check_nsp
32 package_data = setuptools.dist:check_package_data
33 packages = setuptools.dist:check_packages
[all …]
/external/python/setuptools/setuptools/_distutils/tests/
Dtest_dist.py1 """Tests for distutils.dist."""
11 from distutils.dist import Distribution, fix_help_options
187 dist = Distribution(attrs={'author': 'xxx', 'name': 'xxx',
192 self.assertNotIn('options', dir(dist))
198 dist = Distribution(attrs=attrs)
199 dist.finalize_options()
202 self.assertEqual(dist.metadata.platforms, ['one', 'two'])
203 self.assertEqual(dist.metadata.keywords, ['one', 'two'])
207 dist = Distribution(attrs=attrs)
208 dist.finalize_options()
[all …]
Dtest_build_py.py34 dist = Distribution({"packages": ["pkg"],
37 dist.script_name = os.path.join(sources, "setup.py")
38 dist.command_obj["build"] = support.DummyCommand(
41 dist.packages = ["pkg"]
42 dist.package_data = {"pkg": ["README.txt"]}
43 dist.package_dir = {"pkg": sources}
45 cmd = build_py(dist)
48 self.assertEqual(cmd.package_data, dist.package_data)
78 dist = Distribution({"packages": ["pkg"],
82 dist.script_name = os.path.join(sources, "setup.py")
[all …]
/external/selinux/python/sepolgen/src/sepolgen/
Dmatching.py32 def __init__(self, interface=None, dist=0): argument
34 self.dist = dist
42 a = (self.dist, self.info_dir_change)
43 b = (other.dist, other.info_dir_change)
80 if match.dist <= self.threshold:
163 dist = 0
167 dist += self.type_distance(req.src_type, prov.src_type)
168 dist += self.type_distance(req.tgt_type, prov.tgt_type)
172 dist -= self.obj_penalty
179 if dist < 0:
[all …]
/external/python/cpython2/Doc/library/
Dtix.rst37 `Tix Man Pages <http://tix.sourceforge.net/dist/current/man/>`_
40 `Tix Programming Guide <http://tix.sourceforge.net/dist/current/docs/tix-book/tix.book.html>`_
91 `Tix <http://tix.sourceforge.net/dist/current/man/html/TixCmd/TixIntro.htm>`_
106 <http://tix.sourceforge.net/dist/current/man/html/TixCmd/tixBalloon.htm>`_ that
112 .. \ulink{Balloon}{http://tix.sourceforge.net/dist/current/demos/samples/Balloon.tcl}
118 <http://tix.sourceforge.net/dist/current/man/html/TixCmd/tixButtonBox.htm>`_
122 .. \ulink{ButtonBox}{http://tix.sourceforge.net/dist/current/demos/samples/BtnBox.tcl}
128 <http://tix.sourceforge.net/dist/current/man/html/TixCmd/tixComboBox.htm>`_
134 .. \ulink{ComboBox}{http://tix.sourceforge.net/dist/current/demos/samples/ComboBox.tcl}
140 <http://tix.sourceforge.net/dist/current/man/html/TixCmd/tixControl.htm>`_
[all …]
/external/python/cpython3/Doc/library/
Dtkinter.tix.rst40 `Tix Man Pages <http://tix.sourceforge.net/dist/current/man/>`_
43 `Tix Programming Guide <http://tix.sourceforge.net/dist/current/docs/tix-book/tix.book.html>`_
83 `Tix <http://tix.sourceforge.net/dist/current/man/html/TixCmd/TixIntro.htm>`_
94 <http://tix.sourceforge.net/dist/current/man/html/TixCmd/tixBalloon.htm>`_ that
100 .. \ulink{Balloon}{http://tix.sourceforge.net/dist/current/demos/samples/Balloon.tcl}
106 <http://tix.sourceforge.net/dist/current/man/html/TixCmd/tixButtonBox.htm>`_
110 .. \ulink{ButtonBox}{http://tix.sourceforge.net/dist/current/demos/samples/BtnBox.tcl}
116 <http://tix.sourceforge.net/dist/current/man/html/TixCmd/tixComboBox.htm>`_
122 .. \ulink{ComboBox}{http://tix.sourceforge.net/dist/current/demos/samples/ComboBox.tcl}
128 <http://tix.sourceforge.net/dist/current/man/html/TixCmd/tixControl.htm>`_
[all …]
/external/python/setuptools/setuptools/config/
D_apply_pyprojecttoml.py20 from setuptools.dist import Distribution # noqa
31 def apply(dist: "Distribution", config: dict, filename: _Path) -> "Distribution":
42 corresp(dist, value, root_dir)
44 _set_config(dist, corresp, value)
49 _set_config(dist, norm_key, value)
51 _copy_command_options(config, dist, filename)
56 dist._finalize_requires()
57 dist._finalize_license_files()
61 return dist
69 def _set_config(dist: "Distribution", field: str, value: Any):
[all …]
/external/python/setuptools/
Dsetup.cfg31 dist*
113 parent_finalize = setuptools.dist:_Distribution.finalize_options
114 keywords = setuptools.dist:Distribution._finalize_setup_keywords
116 eager_resources = setuptools.dist:assert_string_list
117 namespace_packages = setuptools.dist:check_nsp
118 extras_require = setuptools.dist:check_extras
119 install_requires = setuptools.dist:check_requirements
120 tests_require = setuptools.dist:check_requirements
121 setup_requires = setuptools.dist:check_requirements
122 python_requires = setuptools.dist:check_specifier
[all …]
/external/python/cpython3/Doc/
DMakefile24 suspicious coverage doctest pydoc-topics htmlview clean dist check serve \
43 @echo " dist to create a \"dist\" directory with archived docs for download"
157 dist: target
158 rm -rf dist
159 mkdir -p dist
163 cp -pPR build/html dist/python-$(DISTVERSION)-docs-html
164 tar -C dist -cf dist/python-$(DISTVERSION)-docs-html.tar python-$(DISTVERSION)-docs-html
165 bzip2 -9 -k dist/python-$(DISTVERSION)-docs-html.tar
166 (cd dist; zip -q -r -9 python-$(DISTVERSION)-docs-html.zip python-$(DISTVERSION)-docs-html)
167 rm -r dist/python-$(DISTVERSION)-docs-html
[all …]
/external/python/cpython2/Doc/
DMakefile17 suspicious coverage doctest pydoc-topics htmlview clean dist check serve \
34 @echo " dist to create a \"dist\" directory with archived docs for download"
107 dist: target
108 rm -rf dist
109 mkdir -p dist
113 cp -pPR build/html dist/python-$(DISTVERSION)-docs-html
114 tar -C dist -cf dist/python-$(DISTVERSION)-docs-html.tar python-$(DISTVERSION)-docs-html
115 bzip2 -9 -k dist/python-$(DISTVERSION)-docs-html.tar
116 (cd dist; zip -q -r -9 python-$(DISTVERSION)-docs-html.zip python-$(DISTVERSION)-docs-html)
117 rm -r dist/python-$(DISTVERSION)-docs-html
[all …]

12345678910>>...177