author
int64
658
755k
date
stringdate
2012-06-12 08:34:29
2024-07-22 14:51:21
timezone
int64
-46,800
43.2k
hash
stringlengths
40
40
message
stringlengths
5
490
mods
listlengths
1
16
language
stringclasses
20 values
license
stringclasses
3 values
repo
stringlengths
5
68
original_message
stringlengths
12
491
260,411
11.04.2020 13:38:29
-7,200
c4dd1cf3fa76fd4ef6449c23efaa540b08030e20
Relax tolerance for new test on TPU
[ { "change_type": "MODIFY", "old_path": "tests/lax_numpy_test.py", "new_path": "tests/lax_numpy_test.py", "diff": "@@ -1139,7 +1139,7 @@ class LaxBackedNumpyTests(jtu.JaxTestCase):\nargs_maker = lambda: [rng(xshape, dtype), rng(yshape, dtype)]\nonp_fun = partial(onp_op, mode=mode)\njnp_fun = partial(...
Python
Apache License 2.0
google/jax
Relax tolerance for new test on TPU
260,384
11.04.2020 20:54:04
0
98d46d39aa9138fbd8143411b99dc42ef0a36ad3
Implement indexing helpers
[ { "change_type": "MODIFY", "old_path": "jax/numpy/lax_numpy.py", "new_path": "jax/numpy/lax_numpy.py", "diff": "@@ -32,6 +32,7 @@ import itertools\nimport os\nimport re\nimport string\n+import textwrap\nimport types\nfrom typing import Callable\nimport warnings\n@@ -46,6 +47,7 @@ from ..abstract_arr...
Python
Apache License 2.0
google/jax
Implement indexing helpers
260,411
12.04.2020 19:05:04
-7,200
453dc5f0857477fa672537124b32140f3610fe21
Relax tolerance for LaxBackedNumpyTests.testConvolutions
[ { "change_type": "MODIFY", "old_path": "tests/lax_numpy_test.py", "new_path": "tests/lax_numpy_test.py", "diff": "@@ -1139,7 +1139,7 @@ class LaxBackedNumpyTests(jtu.JaxTestCase):\nargs_maker = lambda: [rng(xshape, dtype), rng(yshape, dtype)]\nonp_fun = partial(onp_op, mode=mode)\njnp_fun = partial(...
Python
Apache License 2.0
google/jax
Relax tolerance for LaxBackedNumpyTests.testConvolutions
260,335
13.04.2020 09:44:13
25,200
2d25773c212589b81fa7d6bbb61a43bf9970f3e3
add custom_jvp for logaddexp / logaddexp2 fixes draws from and thanks !
[ { "change_type": "MODIFY", "old_path": "jax/interpreters/ad.py", "new_path": "jax/interpreters/ad.py", "diff": "@@ -143,8 +143,11 @@ def backward_pass(jaxpr: core.Jaxpr, consts, args, cotangents_in):\ndef write_cotangent(v, ct):\n# assert v not in primal_env\n- if ct is not None and type(v) is not L...
Python
Apache License 2.0
google/jax
add custom_jvp for logaddexp / logaddexp2 fixes #2107, draws from #2356 and #2357, thanks @yingted ! Co-authored-by: Ted Ying <yingted@gmail.com>
260,467
14.04.2020 03:26:30
-7,200
d6ab70c315067bf9a08b1071486715b515188a7c
Fix minor typo in cell * Fix minor typo in cell One of the arguments to `hvp` wasn't being used, which made the example slightly confusing. * Fix both definitions of hvp in the autodiff cookbook.
[ { "change_type": "MODIFY", "old_path": "docs/notebooks/autodiff_cookbook.ipynb", "new_path": "docs/notebooks/autodiff_cookbook.ipynb", "diff": "\"outputs\": [],\n\"source\": [\n\"def hvp(f, x, v):\\n\",\n- \" return grad(lambda x: np.vdot(grad(f)(x), v))\"\n+ \" return grad(lambda x: np.vdot(grad(f)...
Python
Apache License 2.0
google/jax
Fix minor typo in cell (#2692) * Fix minor typo in cell One of the arguments to `hvp` wasn't being used, which made the example slightly confusing. * Fix both definitions of hvp in the autodiff cookbook. Co-authored-by: Peter Hawkins <phawkins@google.com>
260,384
15.04.2020 01:20:30
0
72593f0489315cefe685f36f6c89ae8b81dfc860
Modify syntax to `x.at[idx].set(y)` and similar.
[ { "change_type": "MODIFY", "old_path": "jax/numpy/lax_numpy.py", "new_path": "jax/numpy/lax_numpy.py", "diff": "@@ -3692,61 +3692,100 @@ def _unstack(x):\nsetattr(DeviceArray, \"_unstack\", _unstack)\n-# Syntactic sugar for scatter operations\n+# Syntactic sugar for scatter operations.\nclass IndexU...
Python
Apache License 2.0
google/jax
Modify syntax to `x.at[idx].set(y)` and similar.
260,384
15.04.2020 01:28:43
0
9e429907c1236e600473d2ff31008cb81e9d1395
Add support for `mul`
[ { "change_type": "MODIFY", "old_path": "jax/numpy/lax_numpy.py", "new_path": "jax/numpy/lax_numpy.py", "diff": "@@ -3803,6 +3803,7 @@ class IndexUpdateHelper(object):\nIn particular:\n- :code:`x = x.at[idx].set(y)` is a pure equivalent of :code:`x[idx] = y`.\n- :code:`x = x.at[idx].add(y)` is a pure...
Python
Apache License 2.0
google/jax
Add support for `mul`
260,384
17.04.2020 01:30:06
0
a5efe842562af81cae4df7aca95e52981dea2802
Update names and documentation.
[ { "change_type": "MODIFY", "old_path": "docs/jax.ops.rst", "new_path": "docs/jax.ops.rst", "diff": "@@ -24,6 +24,27 @@ pure alternatives, namely :func:`jax.ops.index_update` and its relatives.\nindex_min\nindex_max\n+\n+Syntactic sugar for indexed update operators\n+---------------------------------...
Python
Apache License 2.0
google/jax
Update names and documentation.
260,287
17.04.2020 11:20:54
0
8c00b35f21e51163dcbd8b427d4c861b6d6cc13a
Add FIXMEs for AD type errors
[ { "change_type": "MODIFY", "old_path": "jax/interpreters/ad.py", "new_path": "jax/interpreters/ad.py", "diff": "@@ -137,7 +137,8 @@ def unpair_pval(pval):\naval_1, aval_2 = aval\nreturn (aval_1, const_1), (aval_2, const_2)\n-def backward_pass(jaxpr: core.Jaxpr, consts, args, cotangents_in):\n+# NOTE...
Python
Apache License 2.0
google/jax
Add FIXMEs for AD type errors
260,411
19.04.2020 12:13:07
-10,800
3ca7f6e4f120853a5f0c9f98c6b8b2db30300820
Fixes in the FAQ for RST
[ { "change_type": "MODIFY", "old_path": "docs/CHANGELOG.rst", "new_path": "docs/CHANGELOG.rst", "diff": "@@ -12,6 +12,10 @@ These are the release notes for JAX.\njax 0.1.64 (unreleased)\n---------------------------\n+* `GitHub commits <https://github.com/google/jax/compare/jax-v0.1.63...master>`_.\n+...
Python
Apache License 2.0
google/jax
Fixes in the FAQ for RST (#2761)
260,700
19.04.2020 16:02:17
14,400
61fc2bf2c1ddf4a2c5847a9dc3ca24f35a4e6fae
add adamax test
[ { "change_type": "MODIFY", "old_path": "tests/optimizers_test.py", "new_path": "tests/optimizers_test.py", "diff": "@@ -149,6 +149,13 @@ class OptimizerTests(jtu.JaxTestCase):\nx0 = (np.ones(2), np.ones((2, 2)))\nself._CheckOptimizer(optimizers.sm3, loss, x0, num_iters, step_size)\n+ def testAdaMaxV...
Python
Apache License 2.0
google/jax
add adamax test
260,411
20.04.2020 11:30:52
-10,800
ff24f9a2f7bca0b463c1bcd27e138b79695553a7
Added FAQ entry about relationship between VJP and JVP
[ { "change_type": "MODIFY", "old_path": "docs/faq.rst", "new_path": "docs/faq.rst", "diff": "JAX Frequently Asked Questions\n==============================\n+.. comment RST primer for Sphinx: https://thomas-cokelaer.info/tutorials/sphinx/rest_syntax.html\n+.. comment Some links referenced here. Use J...
Python
Apache License 2.0
google/jax
Added FAQ entry about relationship between VJP and JVP (#2762)
260,346
20.04.2020 20:37:05
-7,200
685c0de99bbf7224d5644feab93f850e3e0a96c7
Fix confusing documentation typo.
[ { "change_type": "MODIFY", "old_path": "jax/api.py", "new_path": "jax/api.py", "diff": "@@ -919,7 +919,7 @@ def pmap(fun: Callable, axis_name: Optional[AxisName] = None,\nEach host passes in a different length-4 array, corresponding to its 4 local\ndevices, and the psum operates over all 8 values. C...
Python
Apache License 2.0
google/jax
Fix confusing documentation typo. (#2773)
260,471
20.04.2020 22:55:23
14,400
2bc3c7985e4da55d21c0915d0b455e29a92c3394
Fix distribution name in docstring
[ { "change_type": "MODIFY", "old_path": "jax/random.py", "new_path": "jax/random.py", "diff": "@@ -626,7 +626,7 @@ def beta(key: np.ndarray,\nb: Union[float, np.ndarray],\nshape: Optional[Sequence[int]] = None,\ndtype: onp.dtype = onp.float64) -> np.ndarray:\n- \"\"\"Sample Bernoulli random values wi...
Python
Apache License 2.0
google/jax
Fix distribution name in docstring (#2764)
260,335
20.04.2020 23:47:49
25,200
94178d98a055eca94f836ecc2ca7a690c5186b66
also skip jax.numpy.unique test on tpu
[ { "change_type": "MODIFY", "old_path": "tests/lax_numpy_test.py", "new_path": "tests/lax_numpy_test.py", "diff": "@@ -1095,7 +1095,7 @@ class LaxBackedNumpyTests(jtu.JaxTestCase):\nfor return_index in [False, True]\nfor return_inverse in [False, True]\nfor return_counts in [False, True]))\n- @jtu.sk...
Python
Apache License 2.0
google/jax
also skip jax.numpy.unique test on tpu
260,335
21.04.2020 14:08:26
25,200
964cf4fb6acca7d172545e9baf4e5a163ff34b26
autodiff cookbook: assume continuous second derivatives fixes
[ { "change_type": "MODIFY", "old_path": "docs/notebooks/autodiff_cookbook.ipynb", "new_path": "docs/notebooks/autodiff_cookbook.ipynb", "diff": "\"\\n\",\n\"A Hessian-vector product function can be useful in a [truncated Newton Conjugate-Gradient algorithm](https://en.wikipedia.org/wiki/Truncated_New...
Python
Apache License 2.0
google/jax
autodiff cookbook: assume continuous second derivatives fixes #2772
260,335
21.04.2020 14:27:59
25,200
18f967420c12765467db5c66d2e54f5580d08269
attempt to fix changelog formatting bugs
[ { "change_type": "MODIFY", "old_path": "docs/CHANGELOG.rst", "new_path": "docs/CHANGELOG.rst", "diff": "@@ -26,21 +26,24 @@ jax 0.1.64 (April 21, 2020)\n* `GitHub commits <https://github.com/google/jax/compare/jax-v0.1.63...master>`_.\n* New features:\n+\n* Add syntactic sugar for functional indexed...
Python
Apache License 2.0
google/jax
attempt to fix changelog formatting bugs
260,335
21.04.2020 15:01:30
25,200
783e24fd4557c35254772f6a255f30b5bba69b67
try optimize=True with einsum closes can revert if this ends up problematic for some reason!
[ { "change_type": "MODIFY", "old_path": "jax/numpy/lax_numpy.py", "new_path": "jax/numpy/lax_numpy.py", "diff": "@@ -2558,7 +2558,7 @@ def tensordot(a, b, axes=2, precision=None):\n@_wraps(onp.einsum, lax_description=_PRECISION_DOC)\ndef einsum(*operands, **kwargs):\n- optimize = kwargs.pop('optimize...
Python
Apache License 2.0
google/jax
try optimize=True with einsum closes #2583 can revert if this ends up problematic for some reason!
260,335
21.04.2020 17:47:28
25,200
1bcaef142f9744ead76cc4641821373ed9facb59
apply is_stable=True to sort translation rules fixes
[ { "change_type": "MODIFY", "old_path": "jax/lax/lax.py", "new_path": "jax/lax/lax.py", "diff": "@@ -4494,6 +4494,7 @@ def _sort_batch_rule(batched_args, batch_dims, *, dimension):\nsort_p = standard_primitive(sort_shape, _input_dtype, 'sort')\nad.defjvp(sort_p, _sort_jvp_rule)\n+xla.translations[sor...
Python
Apache License 2.0
google/jax
apply is_stable=True to sort translation rules (#2789) fixes #2779
260,335
21.04.2020 18:12:02
25,200
b1cb3a5deae7f682541acc8591a6367a7bcfaa2f
factor out process_map / post_process_map * factor out process_map / post_process_map Also fix a bug from reusing post_process_call for pmap. Fixes * consolidate call_bind / map_bind code
[ { "change_type": "MODIFY", "old_path": "jax/core.py", "new_path": "jax/core.py", "diff": "@@ -942,8 +942,8 @@ def canonicalize_shape(shape):\n\"smaller subfunctions.\")\nraise TypeError(msg.format(shape))\n-# ------------------- Call -------------------\n+# ------------------- Call and map ---------...
Python
Apache License 2.0
google/jax
factor out process_map / post_process_map (#2788) * factor out process_map / post_process_map Also fix a bug from reusing post_process_call for pmap. Fixes #2787 * consolidate call_bind / map_bind code
260,335
21.04.2020 18:27:53
25,200
f753845f617a2f38eff65d41cd537b3fd25518b9
adjust test tolerance for tpu
[ { "change_type": "MODIFY", "old_path": "tests/pmap_test.py", "new_path": "tests/pmap_test.py", "diff": "@@ -1029,12 +1029,13 @@ class PmapTest(jtu.JaxTestCase):\nreturn res\nkey = random.PRNGKey(1)\n- x = random.normal(key, (800, 50))\n+ x = random.normal(key, (80, 50))\nbatched_mvm = vmap(lambda b:...
Python
Apache License 2.0
google/jax
adjust test tolerance for tpu
260,335
21.04.2020 19:04:28
25,200
2e34dbc188f43150578a6f6f978ffc343f0e3213
update travis to match min jaxlib version
[ { "change_type": "MODIFY", "old_path": ".travis.yml", "new_path": ".travis.yml", "diff": "@@ -32,7 +32,7 @@ install:\n# The jaxlib version should match the minimum jaxlib version in\n# jax/lib/__init__.py. This tests JAX PRs against the oldest permitted\n# jaxlib.\n- - pip install jaxlib==0.1.43\n+ ...
Python
Apache License 2.0
google/jax
update travis to match min jaxlib version
260,335
22.04.2020 08:59:22
25,200
7334f97da86521598a3c91ad7563e4b049848e51
attempt to fix failing travis (numerical issues)
[ { "change_type": "MODIFY", "old_path": "tests/lax_test.py", "new_path": "tests/lax_test.py", "diff": "@@ -2053,6 +2053,9 @@ class LaxAutodiffTest(jtu.JaxTestCase):\npadding, lhs_dil, rhs_dil, dimension_numbers,\nperms, feature_group_count, batch_group_count,\nrng_factory):\n+ if dtype == onp.float16...
Python
Apache License 2.0
google/jax
attempt to fix failing travis (numerical issues)
260,335
22.04.2020 14:39:51
25,200
fcb6ff0a15420cdfcf772f5d60cbdba59dcb4e47
loosen scipy convolve test tolerance (GPU flaky)
[ { "change_type": "MODIFY", "old_path": "tests/scipy_signal_test.py", "new_path": "tests/scipy_signal_test.py", "diff": "@@ -44,7 +44,7 @@ class LaxBackedScipySignalTests(jtu.JaxTestCase):\n\"\"\"Tests for LAX-backed scipy.stats implementations\"\"\"\n@parameterized.named_parameters(jtu.cases_from_li...
Python
Apache License 2.0
google/jax
loosen scipy convolve test tolerance (GPU flaky)
260,700
22.04.2020 20:49:10
14,400
59bdb1fb3d1329bcb7bf71e9e869ae40c4e7f05b
add tanh rule change expit taylor rule add manual expit check, check stability of expit and tanh
[ { "change_type": "MODIFY", "old_path": "jax/experimental/jet.py", "new_path": "jax/experimental/jet.py", "diff": "@@ -17,6 +17,7 @@ from functools import partial\nimport numpy as onp\n+import jax\nfrom jax import core\nfrom jax.util import unzip2\nfrom jax.tree_util import (register_pytree_node, tre...
Python
Apache License 2.0
google/jax
add tanh rule (#2653) change expit taylor rule add manual expit check, check stability of expit and tanh
260,335
22.04.2020 22:09:56
25,200
6b5e36763c8c21912c22e033cf09db108924f0c3
skip pinv test on tpu because no svd
[ { "change_type": "MODIFY", "old_path": "tests/linalg_test.py", "new_path": "tests/linalg_test.py", "diff": "@@ -719,7 +719,7 @@ class NumpyLinalgTest(jtu.JaxTestCase):\n# TODO(phawkins): 1e-1 seems like a very loose tolerance.\njtu.check_grads(np.linalg.pinv, args_maker(), 2, rtol=1e-1)\n-\n+ @jtu.s...
Python
Apache License 2.0
google/jax
skip pinv test on tpu because no svd
260,335
22.04.2020 23:29:32
25,200
8ccb907d125c23efc4af119b520b24a8ebd76909
in custom_jvp/vjp stop_gradient on nondiff_argnums fixes
[ { "change_type": "MODIFY", "old_path": "jax/custom_derivatives.py", "new_path": "jax/custom_derivatives.py", "diff": "@@ -18,6 +18,7 @@ import inspect\nimport itertools as it\nimport operator as op\n+import jax\nfrom . import core\nfrom . import linear_util as lu\nfrom .tree_util import tree_flatten...
Python
Apache License 2.0
google/jax
in custom_jvp/vjp stop_gradient on nondiff_argnums (#2804) fixes #2784
260,335
23.04.2020 09:28:14
25,200
903010b7b90f5af6ff4d724721f4bc1f10237dc4
disable mypy checks causing new errors
[ { "change_type": "MODIFY", "old_path": "jax/lax/lax_control_flow.py", "new_path": "jax/lax/lax_control_flow.py", "diff": "@@ -1388,7 +1388,7 @@ def _memcpy(axis, num, src, dst, offset):\nreturn lax.dynamic_update_index_in_dim(dst, update, i + offset, axis)\nreturn fori_loop(0, num, body, dst)\n-mask...
Python
Apache License 2.0
google/jax
disable mypy checks causing new errors
260,335
23.04.2020 13:12:24
25,200
13a17286df985648257f4da2a06bd47f06c09a55
stop_gradient_p -> ad_util.py, re-enable some mypy
[ { "change_type": "MODIFY", "old_path": "jax/ad_util.py", "new_path": "jax/ad_util.py", "diff": "# limitations under the License.\n-from .core import lattice_join, Primitive, Unit, unit, AbstractUnit\n+from .core import (lattice_join, Primitive, Unit, unit, AbstractUnit,\n+ valid_jaxtype)\nfrom .tree...
Python
Apache License 2.0
google/jax
stop_gradient_p -> ad_util.py, re-enable some mypy (#2806)
260,335
23.04.2020 13:34:01
25,200
d2653a1e8a29dda3f2df40098076c83978a0098f
rewrite axis_index implementation, use custom bind * rewrite axis_index implementation, use custom bind fixes * add test for
[ { "change_type": "MODIFY", "old_path": "jax/interpreters/pxla.py", "new_path": "jax/interpreters/pxla.py", "diff": "@@ -383,26 +383,27 @@ def axis_index(axis_name):\n[0 1]\n[0 1]]\n\"\"\"\n+ return axis_index_p.bind(axis_name=axis_name)\n+\n+def _axis_index_bind(*, axis_name):\ndynamic_axis_env = _t...
Python
Apache License 2.0
google/jax
rewrite axis_index implementation, use custom bind (#2807) * rewrite axis_index implementation, use custom bind fixes #2716 Co-authored-by: Trevor Cai <tycai@google.com> * add test for #2716 Co-authored-by: Trevor Cai <tycai@google.com>
260,335
23.04.2020 18:07:51
25,200
251834367f3093c669612ddc119e8fefdcf53387
use static_argnums in xla_computation * use static_argnums in xla_computation fixes * add static_argnums to make_jaxpr * fix type error: handle int case
[ { "change_type": "MODIFY", "old_path": "jax/api.py", "new_path": "jax/api.py", "diff": "@@ -294,8 +294,9 @@ def xla_computation(fun: Callable,\nROOT tuple.18 = (f32[], f32[], f32[]) tuple(all-reduce.7, all-reduce.12, all-reduce.17)\n}\n\"\"\"\n- del static_argnums # Unused.\n_check_callable(fun)\n+ ...
Python
Apache License 2.0
google/jax
use static_argnums in xla_computation (#2812) * use static_argnums in xla_computation fixes #1017 * add static_argnums to make_jaxpr * fix type error: handle int case
260,700
24.04.2020 01:07:35
14,400
fc4203c38adfe7b06477e4126ff30f307179ef61
implement jet rules by lowering to other primitives merge jet_test add jet rules use lax.square
[ { "change_type": "MODIFY", "old_path": "jax/experimental/jet.py", "new_path": "jax/experimental/jet.py", "diff": "@@ -293,6 +293,41 @@ def _log_taylor(primals_in, series_in):\nreturn primal_out, series_out\njet_rules[lax.log_p] = _log_taylor\n+def _sqrt_taylor(primals_in, series_in):\n+ return jet(l...
Python
Apache License 2.0
google/jax
implement jet rules by lowering to other primitives (#2816) merge jet_test add jet rules use lax.square
260,335
24.04.2020 01:47:20
25,200
11d7fb051c0a972d81b0a77e170f4b5dbf7719f8
add more ode tests
[ { "change_type": "MODIFY", "old_path": "tests/ode_test.py", "new_path": "tests/ode_test.py", "diff": "@@ -65,6 +65,43 @@ class JetTest(jtu.JaxTestCase):\njtu.check_grads(integrate, (y0, ts), modes=[\"rev\"], order=2,\nrtol=tol, atol=tol)\n+ @jtu.skip_on_devices(\"tpu\")\n+ def test_decay(self):\n+ d...
Python
Apache License 2.0
google/jax
add more ode tests (#2819)
260,265
24.04.2020 13:43:04
25,200
77901e9fa71f5b23066c70132a983ae57f655b39
Fix lax.rng_uniform.
[ { "change_type": "MODIFY", "old_path": "jax/lax/lax.py", "new_path": "jax/lax/lax.py", "diff": "@@ -4778,7 +4778,8 @@ def _rng_uniform_abstract_eval(a, b, *, shape):\nreturn ShapedArray(shape, a.dtype)\ndef _rng_uniform_translation_rule(c, a, b, *, shape):\n- return xops.RngUniform(a, b, shape)\n+ x...
Python
Apache License 2.0
google/jax
Fix lax.rng_uniform. (#2830)
260,335
24.04.2020 18:19:24
25,200
8f902452abd016b73d287641a5b999e96c3c8365
only maximally stage out for some call primitives fixes
[ { "change_type": "MODIFY", "old_path": "jax/interpreters/partial_eval.py", "new_path": "jax/interpreters/partial_eval.py", "diff": "@@ -163,7 +163,8 @@ class JaxprTrace(Trace):\ndef process_call(self, call_primitive, f: lu.WrappedFun, tracers, params):\nname = params.get('name', f.__name__)\n- if se...
Python
Apache License 2.0
google/jax
only maximally stage out for some call primitives (#2834) fixes #2833
260,677
25.04.2020 16:32:27
-3,600
ffaf417b1bfb3b2a2a834748b405fb3324b31c2a
Fix typo in docstring for _cofactor_solve Found a small typo in the description of _cofactor_solve
[ { "change_type": "MODIFY", "old_path": "jax/numpy/linalg.py", "new_path": "jax/numpy/linalg.py", "diff": "@@ -170,13 +170,13 @@ def _cofactor_solve(a, b):\nIf a is rank n-1, then the lower right corner of u will be zero and the\ntriangular_solve will fail.\nLet x = solve(p @ l, b) and y = det(a)*sol...
Python
Apache License 2.0
google/jax
Fix typo in docstring for _cofactor_solve (#2844) Found a small typo in the description of _cofactor_solve
260,335
25.04.2020 09:20:26
25,200
0a5cc090ee34610d6bd957d554e3c1b4026ad4f4
split testDetGradOfSingularMatrix into corank=1,2
[ { "change_type": "MODIFY", "old_path": "tests/linalg_test.py", "new_path": "tests/linalg_test.py", "diff": "@@ -133,16 +133,19 @@ class NumpyLinalgTest(jtu.JaxTestCase):\na[0] = 0\njtu.check_grads(np.linalg.det, (a,), 1, atol=1e-1, rtol=1e-1)\n- def testDetGradOfSingularMatrix(self):\n+ def testDetG...
Python
Apache License 2.0
google/jax
split testDetGradOfSingularMatrix into corank=1,2 (#2845)
260,700
27.04.2020 19:45:51
14,400
b277b55d1c85505024f6197c8cd686f7262d7d55
check step size is greater than zero loosen tols for grad test set tol only for float64
[ { "change_type": "MODIFY", "old_path": "jax/experimental/ode.py", "new_path": "jax/experimental/ode.py", "diff": "@@ -171,8 +171,8 @@ def _odeint(func, rtol, atol, mxstep, y0, ts, *args):\ndef scan_fun(carry, target_t):\ndef cond_fun(state):\n- i, _, _, t, _, _, _ = state\n- return (t < target_t) & ...
Python
Apache License 2.0
google/jax
check step size is greater than zero (#2857) loosen tols for grad test set tol only for float64
260,700
28.04.2020 00:53:38
14,400
cc0e9a3189731ce91919e8dbdbaa90e88959d8cb
refactor ode tests, add scipy benchmark * refactor ode tests, add scipy benchmark remove double import rename to scipy merge vmap test properly * clean up more global trace state after errors
[ { "change_type": "MODIFY", "old_path": "jax/core.py", "new_path": "jax/core.py", "diff": "@@ -623,7 +623,9 @@ def find_top_trace(xs):\n@contextmanager\ndef initial_style_staging():\nprev, trace_state.initial_style = trace_state.initial_style, True\n+ try:\nyield\n+ finally:\ntrace_state.initial_styl...
Python
Apache License 2.0
google/jax
refactor ode tests, add scipy benchmark (#2824) * refactor ode tests, add scipy benchmark remove double import rename to scipy merge vmap test properly * clean up more global trace state after errors Co-authored-by: Matthew Johnson <mattjj@google.com>
260,299
28.04.2020 06:32:52
-3,600
75617be80320184ae6a4cf12eb62b11c30240898
Add population_count primitive to lax * add population_count primitive (needs new jaxlib) fixes * Add popcount docs * Add population_count to lax_reference * Use int prng (since we're only testing uints)
[ { "change_type": "MODIFY", "old_path": "docs/jax.lax.rst", "new_path": "docs/jax.lax.rst", "diff": "@@ -38,6 +38,7 @@ Operators\nbitwise_and\nbitwise_or\nbitwise_xor\n+ population_count\nbroadcast\nbroadcasted_iota\nbroadcast_in_dim\n" }, { "change_type": "MODIFY", "old_path": "jax/lax/l...
Python
Apache License 2.0
google/jax
Add population_count primitive to lax (#2753) * add population_count primitive (needs new jaxlib) fixes #2263 * Add popcount docs * Add population_count to lax_reference * Use int prng (since we're only testing uints) Co-authored-by: Matthew Johnson <mattjj@google.com>
260,287
28.04.2020 15:07:08
-7,200
5fe6b069dfc1b1b91f6870519c7f3923005068fd
Correct the order of .format arguments in vjp wrapper
[ { "change_type": "MODIFY", "old_path": "jax/api.py", "new_path": "jax/api.py", "diff": "@@ -1336,7 +1336,7 @@ def _vjp_pullback_wrapper(fun, cotangent_dtypes, io_tree, py_args):\nif in_tree != in_tree_expected:\nmsg = (\"Tree structure of cotangent input {}, does not match structure of \"\n\"primal ...
Python
Apache License 2.0
google/jax
Correct the order of .format arguments in vjp wrapper (#2866)
260,403
19.04.2020 11:49:15
25,200
dddad2a3dc0e36f76e98288f6b50ccd65fdebced
Add top_k jvp and batching rules
[ { "change_type": "MODIFY", "old_path": "docs/jax.lax.rst", "new_path": "docs/jax.lax.rst", "diff": "@@ -123,6 +123,7 @@ Operators\nsub\ntan\ntie_in\n+ top_k\ntranspose\n" }, { "change_type": "MODIFY", "old_path": "jax/lax/lax.py", "new_path": "jax/lax/lax.py", "diff": "@@ -1183,7...
Python
Apache License 2.0
google/jax
Add top_k jvp and batching rules
260,403
28.04.2020 10:49:17
25,200
e599a254223f911a7d885c1a1bd4963f60a2e150
fix sort_key_val return type annotation, docstring
[ { "change_type": "MODIFY", "old_path": "jax/lax/lax.py", "new_path": "jax/lax/lax.py", "diff": "@@ -1181,7 +1181,9 @@ def sort(operand: Array, dimension: int = -1) -> Array:\n\"\"\"\nreturn sort_p.bind(operand, dimension=dimension)\n-def sort_key_val(keys: Array, values: Array, dimension: int = -1) ...
Python
Apache License 2.0
google/jax
fix sort_key_val return type annotation, docstring
260,458
28.04.2020 19:34:27
-3,600
2a0637a1b89142a255eb68190812bb18cc57b8d2
add spacing to numpy.gradient
[ { "change_type": "MODIFY", "old_path": "jax/numpy/lax_numpy.py", "new_path": "jax/numpy/lax_numpy.py", "diff": "@@ -1021,16 +1021,16 @@ def diff(a, n=1, axis=-1,):\nreturn a\n-@partial(jit, static_argnums=1)\n-def _gradient(a, axis):\n- def gradient_along_axis(a, axis):\n+@partial(jit, static_argnum...
Python
Apache License 2.0
google/jax
add spacing to numpy.gradient (#2545)
260,568
28.04.2020 22:23:03
-10,800
56f6294e377cb4e03c8e1a6fe82dade0c965d617
Implement nanargmin-max and add tests
[ { "change_type": "MODIFY", "old_path": "docs/notebooks/Common_Gotchas_in_JAX.ipynb", "new_path": "docs/notebooks/Common_Gotchas_in_JAX.ipynb", "diff": "}\n]\n},\n+ {\n+ \"cell_type\": \"markdown\",\n+ \"metadata\": {},\n+ \"source\": [\n+ \"Note that due to this behavior np.nanargmin and np.nanargma...
Python
Apache License 2.0
google/jax
Implement nanargmin-max and add tests (#2398) Co-authored-by: vlad <veryfakemail@ya.ru>
260,571
29.04.2020 12:25:18
-19,080
ef963f06ae5947fa05e6d4b54fa47af127626173
Add ReLU6, Hard sigmoid, swish
[ { "change_type": "MODIFY", "old_path": "jax/nn/functions.py", "new_path": "jax/nn/functions.py", "diff": "@@ -266,3 +266,33 @@ def one_hot(x, num_classes, *, dtype=np.float64):\nx = np.asarray(x)\nreturn np.array(x[..., np.newaxis] == np.arange(num_classes, dtype=x.dtype),\ndtype=dtype)\n+\n+def rel...
Python
Apache License 2.0
google/jax
Add ReLU6, Hard sigmoid, swish (#2709)
260,529
29.04.2020 03:16:49
14,400
52c69e88c58e3838a605eb952d9bbf3ad6195f89
Fix slices in Gated Linear Unit activation
[ { "change_type": "MODIFY", "old_path": "jax/nn/functions.py", "new_path": "jax/nn/functions.py", "diff": "@@ -189,7 +189,7 @@ def glu(x, axis=-1):\n\"\"\"Gated linear unit activation function.\"\"\"\nsize = x.shape[axis]\nassert size % 2 == 0, \"axis size must be divisible by 2\"\n- return x[..., :s...
Python
Apache License 2.0
google/jax
Fix slices in Gated Linear Unit activation (#2341)
260,700
29.04.2020 22:18:21
14,400
1f7ebabfc8445cba9b26f46275bbac61b8bce151
add jets for sines fns refactor remove duplicate
[ { "change_type": "MODIFY", "old_path": "jax/experimental/jet.py", "new_path": "jax/experimental/jet.py", "diff": "@@ -354,6 +354,26 @@ def _div_taylor_rule(primals_in, series_in, **params):\nreturn primal_out, series_out\njet_rules[lax.div_p] = _div_taylor_rule\n+def _sinusoidal_rule(sign, prims, pr...
Python
Apache License 2.0
google/jax
add jets for sines fns (#2892) refactor remove duplicate
260,411
30.04.2020 10:16:14
-10,800
b39da1f842f1363b8b36052c0837407de0be9c2d
Fix jit with device placement In setups with multiple backends, a jit happens on the default backend, unless we give a `backend` parameter. This is true even if the inputs are committed to a device on the non-default backend, or if we pass a `device` parameter to jit.
[ { "change_type": "MODIFY", "old_path": "jax/interpreters/xla.py", "new_path": "jax/interpreters/xla.py", "diff": "@@ -482,6 +482,7 @@ def _xla_callable(fun: lu.WrappedFun, device, backend, name, *arg_specs):\nnreps = jaxpr_replicas(jaxpr)\ndevice = _xla_callable_device(nreps, backend, device, arg_de...
Python
Apache License 2.0
google/jax
Fix jit with device placement (#2883) In setups with multiple backends, a jit happens on the default backend, unless we give a `backend` parameter. This is true even if the inputs are committed to a device on the non-default backend, or if we pass a `device` parameter to jit.
260,411
30.04.2020 19:16:05
-10,800
8d4b6857adbd52c3093f034b35c23a6dc2e20492
Fix typo in tests; caught on GPU and TPU
[ { "change_type": "MODIFY", "old_path": "tests/multibackend_test.py", "new_path": "tests/multibackend_test.py", "diff": "@@ -165,11 +165,11 @@ class MultiBackendTest(jtu.JaxTestCase):\n# jit with `device` spec places the data on the specified device\nresult3 = api.jit(my_sin, device=cpus[0])(2)\n- se...
Python
Apache License 2.0
google/jax
Fix typo in tests; caught on GPU and TPU (#2902)
260,411
01.05.2020 09:16:31
-10,800
2e9047d3884451294874fd485209d3218ee968fb
Add flag to enable checking, and turn on checking in tests. Fix an error in check_jaxpr.
[ { "change_type": "MODIFY", "old_path": "jax/config.py", "new_path": "jax/config.py", "diff": "@@ -123,4 +123,13 @@ class NameSpace(object):\nconfig = Config()\nflags = config\n+FLAGS = flags.FLAGS\n+\nalready_configured_with_absl = False\n+\n+flags.DEFINE_bool(\n+ 'jax_enable_checks',\n+ bool_env('J...
Python
Apache License 2.0
google/jax
Add flag to enable checking, and turn on checking in tests. (#2900) Fix an error in check_jaxpr.
260,335
01.05.2020 13:47:46
25,200
49a89016740b6fc7166d5f523707b0638bc34486
skip failing shapecheck tests cc
[ { "change_type": "MODIFY", "old_path": "tests/masking_test.py", "new_path": "tests/masking_test.py", "diff": "@@ -271,11 +271,15 @@ class ShapesTest(jtu.JaxTestCase):\nreturn x[x.shape[0] - 1:]\ndef test_iota(self):\n+ raise SkipTest(\"not yet implemented\")\n+ # https://travis-ci.org/github/google/...
Python
Apache License 2.0
google/jax
skip failing shapecheck tests cc @JuliusKunze
260,335
01.05.2020 14:39:30
25,200
2263899d3c76f367b46ff013085e8f4f330ed168
replace accidental use of jax.numpy.min w/ builtin
[ { "change_type": "MODIFY", "old_path": "jax/numpy/lax_numpy.py", "new_path": "jax/numpy/lax_numpy.py", "diff": "@@ -1044,7 +1044,7 @@ def _gradient(a, varargs, axis):\nreturn []\naxis = [_canonicalize_axis(i, a.ndim) for i in axis]\n- if min([s for i, s in enumerate(a.shape) if i in axis]) < 2:\n+ i...
Python
Apache License 2.0
google/jax
replace accidental use of jax.numpy.min w/ builtin
260,700
01.05.2020 20:10:20
14,400
a821e67d607dbcc530c5b57cd6175e20f7b07c12
instantiate zeros fix dtype remove TODO
[ { "change_type": "MODIFY", "old_path": "jax/experimental/jet.py", "new_path": "jax/experimental/jet.py", "diff": "@@ -22,7 +22,7 @@ from jax import core\nfrom jax.util import unzip2\nfrom jax import ad_util\nfrom jax.tree_util import (register_pytree_node, tree_structure,\n- treedef_is_leaf, tree_fl...
Python
Apache License 2.0
google/jax
instantiate zeros (#2924) fix dtype remove TODO
260,335
02.05.2020 10:25:53
25,200
64f12a42463f90bdd35e5c969028a0e539e253e4
improve docs and error message for odeint *args cf.
[ { "change_type": "MODIFY", "old_path": "jax/experimental/ode.py", "new_path": "jax/experimental/ode.py", "diff": "@@ -28,6 +28,7 @@ import operator as op\nimport jax\nimport jax.numpy as np\n+from jax import core\nfrom jax import lax\nfrom jax import ops\nfrom jax.util import safe_map, safe_zip\n@@ ...
Python
Apache License 2.0
google/jax
improve docs and error message for odeint *args (#2931) cf. #2920
260,380
04.05.2020 11:20:21
-3,600
525235d8c976d60ffecf4a017b6b528565a9cc7b
Fix a codeblock in the "understanding jaxpr" doc. This fixes an issue where the codeblock didn't render properly on the website.
[ { "change_type": "MODIFY", "old_path": "docs/jaxpr.rst", "new_path": "docs/jaxpr.rst", "diff": "Understanding Jaxprs\n====================\n-Updated: February 14, 2020 (for commit 9e6fe64).\n+Updated: May 3, 2020 (for commit f1a46fe).\n(Note: the code examples in this file can be seed also in\n``jax...
Python
Apache License 2.0
google/jax
Fix a codeblock in the "understanding jaxpr" doc. (#2942) This fixes an issue where the codeblock didn't render properly on the website.
260,270
04.05.2020 19:02:13
-3,600
04102e5b9d98f2f79d3f4b5c1b9bb21216ff4c3e
Allow ConvDimensionNumbers to be passed into conv_transpose
[ { "change_type": "MODIFY", "old_path": "jax/lax/lax.py", "new_path": "jax/lax/lax.py", "diff": "@@ -520,9 +520,6 @@ def conv_general_dilated(\n(for a 2D convolution).\n\"\"\"\ndnums: ConvDimensionNumbers\n- if isinstance(dimension_numbers, ConvDimensionNumbers):\n- dnums = dimension_numbers\n- else:...
Python
Apache License 2.0
google/jax
Allow ConvDimensionNumbers to be passed into conv_transpose (#2915)
260,568
05.05.2020 04:29:55
-10,800
3e522373a00124eec8c996bc1ed89937095e3d86
Raise an error in np.var when array is complex and dtype is not
[ { "change_type": "MODIFY", "old_path": "jax/numpy/lax_numpy.py", "new_path": "jax/numpy/lax_numpy.py", "diff": "@@ -1646,6 +1646,14 @@ def var(a, axis=None, dtype=None, out=None, ddof=0, keepdims=False):\na_dtype = _dtype(a)\nif dtype:\n+ if (not issubdtype(dtype, complexfloating) and\n+ issubdtype(...
Python
Apache License 2.0
google/jax
Raise an error in np.var when array is complex and dtype is not (#2288) Co-authored-by: vlad <veryfakemail@ya.ru>
260,285
05.05.2020 05:12:43
-7,200
e4d8cacfc60a41ae1acbe312ae420c86d36325cb
Fix tests for random.categorical with multi-dimensional logits
[ { "change_type": "MODIFY", "old_path": "tests/random_test.py", "new_path": "tests/random_test.py", "diff": "@@ -246,8 +246,8 @@ class LaxRandomTest(jtu.JaxTestCase):\nfor (p, axis) in [\n([.25] * 4, -1),\n([.1, .2, .3, .4], -1),\n- ([[.25, .25], [.1, .9]], 1),\n- ([[.25, .1], [.25, .9]], 0),\n+ ([[....
Python
Apache License 2.0
google/jax
Fix tests for random.categorical with multi-dimensional logits (#2955)
260,617
06.05.2020 16:05:49
14,400
f338b0b061b69d90d58f543a8df73790faf16603
Add jnp.unravel_index
[ { "change_type": "MODIFY", "old_path": "jax/numpy/lax_numpy.py", "new_path": "jax/numpy/lax_numpy.py", "diff": "@@ -1154,6 +1154,25 @@ def ravel(a, order=\"C\"):\nreturn reshape(a, (size(a),), order)\n+_UNRAVEL_INDEX_DOC = \"\"\"\\\n+Unlike numpy's implementation of unravel_index, negative indices a...
Python
Apache License 2.0
google/jax
Add jnp.unravel_index (#2966)
260,411
07.05.2020 13:28:24
-10,800
804e083e664746dd4fcf1507a959e750084af14a
Fix pytype for copybara import
[ { "change_type": "MODIFY", "old_path": "jax/core.py", "new_path": "jax/core.py", "diff": "@@ -632,7 +632,7 @@ def find_top_trace(args) -> Optional[Tracer]:\nraise TypeError(f\"Argument '{arg}' of type {type(arg)} is not a valid JAX type\")\nreturn top_so_far\n- top_trace = reduce(check_arg, args, No...
Python
Apache License 2.0
google/jax
Fix pytype for copybara import (#2995)
260,411
07.05.2020 16:16:22
-10,800
970e475e0a6b61e76006e0cc75f13d0f0c5f5250
Undo strict checking of LAX primitives This undoes
[ { "change_type": "MODIFY", "old_path": "jax/api.py", "new_path": "jax/api.py", "diff": "@@ -1590,7 +1590,6 @@ def _check_args(args):\nraise TypeError(\"Argument '{}' of type {} is not a valid JAX type\"\n.format(arg, type(arg)))\n-# TODO(necula): this duplicates code in core.valid_jaxtype\ndef _vali...
Python
Apache License 2.0
google/jax
Undo strict checking of LAX primitives (#2996) This undoes d08dec5d20
260,411
25.04.2020 10:19:21
-7,200
a16584d28080c7e39c751b9721d5e2610df6e2a7
Fixed scan, and grad. Added multiplexing protocol.
[ { "change_type": "MODIFY", "old_path": ".travis.yml", "new_path": ".travis.yml", "diff": "@@ -26,6 +26,7 @@ before_install:\n- conda update -q conda\ninstall:\n- conda install --yes python=$TRAVIS_PYTHON_VERSION pip absl-py opt_einsum numpy scipy pytest-xdist pytest-benchmark mypy=0.770\n+ - pip ins...
Python
Apache License 2.0
google/jax
Fixed scan, and grad. Added multiplexing protocol.
260,411
26.04.2020 16:31:02
-7,200
931cb3f684348584c315108b0fbfd74c74d81d96
Ensure that we carry state only for control-flow conditionals that use print
[ { "change_type": "MODIFY", "old_path": "jax/api.py", "new_path": "jax/api.py", "diff": "@@ -332,6 +332,7 @@ def xla_computation(fun: Callable,\nouts = xla.jaxpr_subcomp(\nc, jaxpr, backend, axis_env_, xla_consts,\nextend_name_stack(wrap_name(fun_name, 'xla_computation')), *xla_args)\n+ xla.state_car...
Python
Apache License 2.0
google/jax
Ensure that we carry state only for control-flow conditionals that use print
260,411
28.04.2020 14:43:22
-7,200
47cb5eaa8644da6d493c4fdfbc3d2263422c2992
Added masking transformation, added batch_dims to vmap
[ { "change_type": "MODIFY", "old_path": "jax/experimental/host_callback.py", "new_path": "jax/experimental/host_callback.py", "diff": "@@ -46,7 +46,7 @@ from jax import core\nfrom jax import dtypes\nfrom jax import lax\nfrom jax.lib import pytree, xla_bridge\n-from jax.interpreters import ad, xla, ba...
Python
Apache License 2.0
google/jax
Added masking transformation, added batch_dims to vmap
260,411
02.05.2020 15:52:59
-10,800
0444f92795586e16e65da5f0fe253edc93b01f9c
Added support for sending all arrays in a single message
[ { "change_type": "MODIFY", "old_path": "jax/experimental/host_callback.py", "new_path": "jax/experimental/host_callback.py", "diff": "@@ -74,6 +74,8 @@ xops = xla_client._xla.ops\n# TODO: write description for descriptor\n+_OUTFEED_ALL_TOGETHER = True # If true, then all the arrays are outfed togeth...
Python
Apache License 2.0
google/jax
Added support for sending all arrays in a single message
260,411
03.05.2020 11:30:27
-10,800
cee5989a1dbe618d757801e2c0e5895c76e139dc
Implemented pytree support for arg and result. Enabled outfeed for all arrays as a tuple
[ { "change_type": "MODIFY", "old_path": "jax/experimental/host_callback.py", "new_path": "jax/experimental/host_callback.py", "diff": "@@ -41,6 +41,7 @@ from jax import lax\nfrom jax.lib import pytree, xla_bridge\nfrom jax.interpreters import ad, xla, batching, masking\nfrom jax.interpreters import p...
Python
Apache License 2.0
google/jax
Implemented pytree support for arg and result. Enabled outfeed for all arrays as a tuple
260,411
08.05.2020 10:01:28
-10,800
e1cb0324564d49812784590ac956d3e1f141b603
Prepare version 0.1.47 for jaxlib
[ { "change_type": "MODIFY", "old_path": "WORKSPACE", "new_path": "WORKSPACE", "diff": "@@ -28,10 +28,10 @@ http_archive(\n# and update the sha256 with the result.\nhttp_archive(\nname = \"org_tensorflow\",\n- sha256 = \"77338daa0112a62989e610fa1ee5a24afac5d139bd5bde476d6f2a82922a425e\",\n- strip_pref...
Python
Apache License 2.0
google/jax
Prepare version 0.1.47 for jaxlib (#3008)
260,335
08.05.2020 17:58:02
25,200
2b622943f4dd9e8391c546967b0df0c9d60e6d5e
improve pmap static broadcasted kwarg error msg fixes
[ { "change_type": "MODIFY", "old_path": "jax/api.py", "new_path": "jax/api.py", "diff": "@@ -138,9 +138,9 @@ def jit(fun: Callable, static_argnums: Union[int, Iterable[int]] = (),\nif _jit_is_disabled():\nreturn fun(*args, **kwargs)\nif static_argnums and max(static_argnums) >= len(args):\n- msg = (\...
Python
Apache License 2.0
google/jax
improve pmap static broadcasted kwarg error msg (#3018) fixes #3007
260,335
08.05.2020 17:58:25
25,200
fb685ff214d15bfdb9848bddaa4666c954a9324b
sort supported dtypes in host_callback_test.py * sort supported dtypes in host_callback_test.py This fixes issues I ran into with running `pytest -n auto tests/host_callback_test.py` or similar. * remove unused import
[ { "change_type": "MODIFY", "old_path": "tests/host_callback_test.py", "new_path": "tests/host_callback_test.py", "diff": "@@ -46,6 +46,9 @@ def skip_if_jit_not_enabled():\nif os.getenv(\"JAX_ENABLE_JIT_PRINT\", \"false\") == \"false\":\nraise SkipTest(\"print jit not enabled yet; use JAX_ENABLE_JIT_...
Python
Apache License 2.0
google/jax
sort supported dtypes in host_callback_test.py (#3020) * sort supported dtypes in host_callback_test.py This fixes issues I ran into with running `pytest -n auto tests/host_callback_test.py` or similar. * remove unused import
260,568
10.05.2020 05:04:42
-10,800
7d3c886bf66a7f8ac528a46c7a168e144061efcb
Implement np.nanvar and np.nanstd * Implement nanvar & nanstd Add tests for nanvar & nanstd * Clean up bfloat16 tests for np.nanvar and np.nanstd * add nanvar & nanstd to the whitelist ignore numpy ddof warnings
[ { "change_type": "MODIFY", "old_path": "jax/numpy/__init__.py", "new_path": "jax/numpy/__init__.py", "diff": "@@ -43,10 +43,10 @@ from .lax_numpy import (\nlogical_xor, logspace, mask_indices, matmul, max, maximum, mean, median,\nmeshgrid, min, minimum, mod, moveaxis, msort, multiply, nan, nan_to_nu...
Python
Apache License 2.0
google/jax
Implement np.nanvar and np.nanstd (#2310) * Implement nanvar & nanstd Add tests for nanvar & nanstd * Clean up bfloat16 tests for np.nanvar and np.nanstd * add nanvar & nanstd to the whitelist ignore numpy ddof warnings
260,411
10.05.2020 13:16:16
-10,800
b3ae01d1798eae7d0ce16ad4feece8bf108eb10b
Use a new variable for static_broadcasted_argnums as a tuple. * Use a new variable for static_broadcasted_argnums as a tuple. This works around a bug in pytype (b/156151503).
[ { "change_type": "MODIFY", "old_path": "jax/api.py", "new_path": "jax/api.py", "diff": "@@ -1022,7 +1022,9 @@ def pmap(fun: Callable, axis_name: Optional[AxisName] = None, *, in_axes=0,\n_check_callable(fun)\naxis_name = _TempAxisName(fun) if axis_name is None else axis_name\nif isinstance(static_br...
Python
Apache License 2.0
google/jax
Use a new variable for static_broadcasted_argnums as a tuple. (#3027) * Use a new variable for static_broadcasted_argnums as a tuple. This works around a bug in pytype (b/156151503).
260,411
10.05.2020 14:25:18
-10,800
bc2d2c8ac9648262051e4daca9ab38ffcef9a03c
Fix uses of deprecated onp. in pmap_test
[ { "change_type": "MODIFY", "old_path": "tests/pmap_test.py", "new_path": "tests/pmap_test.py", "diff": "@@ -429,19 +429,19 @@ class PmapTest(jtu.JaxTestCase):\nreplicas = xla_bridge.device_count()\nif replicas % 2 != 0:\nraise SkipTest\n- axis_index_groups = onp.arange(replicas).reshape(\n+ axis_ind...
Python
Apache License 2.0
google/jax
Fix uses of deprecated onp. in pmap_test (#3028)
260,411
10.05.2020 19:54:46
-10,800
c171c33b1c3aef0427531b4805213430f3633dbd
Update numpy references to use np. Added to Changelog
[ { "change_type": "MODIFY", "old_path": "docs/CHANGELOG.rst", "new_path": "docs/CHANGELOG.rst", "diff": "@@ -18,6 +18,9 @@ jax 0.1.67 (unreleased)\n* Support for reduction over subsets of a pmapped axis using ``axis_index_groups``\n`#2382 <https://github.com/google/jax/pull/2382>`_.\n+ * Experimental...
Python
Apache License 2.0
google/jax
Update numpy references to use np. Added to Changelog (#3029)
260,411
11.05.2020 14:37:17
-10,800
7acb41d57c92e19a4d94fe85e82b3bad05cd7782
Fixed imports for readthedocs
[ { "change_type": "MODIFY", "old_path": "docs/developer.rst", "new_path": "docs/developer.rst", "diff": "@@ -188,10 +188,11 @@ I saw in the Readthedocs logs::\ncd jax\ngit checkout --force origin/test-docs\ngit clean -d -f -f\n+ workon jax-docs\npython -m pip install --upgrade --no-cache-dir pip\npyt...
Python
Apache License 2.0
google/jax
Fixed imports for readthedocs (#3033)
260,645
11.05.2020 16:52:55
-3,600
72cd1f7dfc6cd947ae3b19393f211733d2ca0667
Fix sign error in examples.
[ { "change_type": "MODIFY", "old_path": "docs/notebooks/Custom_derivative_rules_for_Python_code.ipynb", "new_path": "docs/notebooks/Custom_derivative_rules_for_Python_code.ipynb", "diff": "\" x, y = primals\\n\",\n\" x_dot, y_dot = tangents\\n\",\n\" primal_out = f(x, y)\\n\",\n- \" tangent_out = np....
Python
Apache License 2.0
google/jax
Fix sign error in examples. (#3031)
260,411
11.05.2020 20:17:26
-10,800
ddf079d8f332a2095af0aecb3b9c9e2eae5383d5
Minor improvements to the script to build macos wheels
[ { "change_type": "MODIFY", "old_path": "build/build_jaxlib_wheels_macos.sh", "new_path": "build/build_jaxlib_wheels_macos.sh", "diff": "#!/bin/bash\n+set -e\n+\n# Script that builds wheels for a JAX release on Mac OS X.\n# Builds wheels for multiple Python versions, using pyenv instead of Docker.\n#...
Python
Apache License 2.0
google/jax
Minor improvements to the script to build macos wheels (#3013)
260,443
11.05.2020 10:22:49
25,200
30c94c6ebac9f5f2b4a40d3ed939bea5574e18ac
Add lax implementation of np.indices
[ { "change_type": "MODIFY", "old_path": "docs/jax.numpy.rst", "new_path": "docs/jax.numpy.rst", "diff": "@@ -138,6 +138,7 @@ Not every function in NumPy is implemented; contributions are welcome!\nhypot\nidentity\nimag\n+ indices\ninner\nisclose\niscomplex\n" }, { "change_type": "MODIFY", ...
Python
Apache License 2.0
google/jax
Add lax implementation of np.indices (#2998)
260,411
12.05.2020 09:06:22
-10,800
a2d6b1aab4c44b3fc752d537a2e429bd922f4705
Fix typo in lstsq
[ { "change_type": "MODIFY", "old_path": "jax/numpy/linalg.py", "new_path": "jax/numpy/linalg.py", "diff": "@@ -512,7 +512,7 @@ def lstsq(a, b, rcond=None, *, numpy_resid=False):\nf\"{a.ndim}-dimensional array given. Array must be two-dimensional\")\nif b.ndim != 2:\nraise TypeError(\n- f\"{b_original...
Python
Apache License 2.0
google/jax
Fix typo in lstsq (#3052)
260,411
12.05.2020 10:06:32
-10,800
cc9de87562d46ca8831e68193ce01c6dfb48906f
Disabled lstsq test due to numerical failures
[ { "change_type": "MODIFY", "old_path": "tests/linalg_test.py", "new_path": "tests/linalg_test.py", "diff": "@@ -861,6 +861,7 @@ class NumpyLinalgTest(jtu.JaxTestCase):\nfor dtype in float_types + complex_types\nfor rng_factory in [jtu.rand_default]))\n@jtu.skip_on_devices(\"tpu\") # SVD not implemen...
Python
Apache License 2.0
google/jax
Disabled lstsq test due to numerical failures (#3054)
260,411
12.05.2020 10:09:42
-10,800
28bc4b759ee113815bfacb99546e58a91891b3f2
Adjusted lax.numpy.indices test for older versions of numpy This test was failing on numpy 1.16.4
[ { "change_type": "MODIFY", "old_path": "tests/lax_numpy_test.py", "new_path": "tests/lax_numpy_test.py", "diff": "@@ -2362,6 +2362,12 @@ class LaxBackedNumpyTests(jtu.JaxTestCase):\nfor sparse in [True, False]))\ndef testIndices(self, dimensions, dtype, sparse):\ndef args_maker(): return []\n+ if on...
Python
Apache License 2.0
google/jax
Adjusted lax.numpy.indices test for older versions of numpy (#3053) This test was failing on numpy 1.16.4
260,335
14.05.2020 16:06:20
25,200
dceb5787bf956dafbeb36cbac4da3076cdcbdf7f
stash order on jet master trace, fixes
[ { "change_type": "MODIFY", "old_path": "jax/experimental/jet.py", "new_path": "jax/experimental/jet.py", "diff": "@@ -51,16 +51,17 @@ def jet(fun, primals, series):\nyield tree_flatten(ans)\nf, out_tree = flatten_fun_output(lu.wrap_init(fun))\n- out_primals, out_terms = jet_fun(jet_subtrace(f)).call...
Python
Apache License 2.0
google/jax
stash order on jet master trace, fixes #3079 (#3097)
260,565
15.05.2020 20:51:53
25,200
510af1de64e3a1390f9d6c9d983a62e64045d761
Fix documentation for `nn.elu`, `nn.celu`, and `lax.expm1`.
[ { "change_type": "MODIFY", "old_path": "jax/lax/lax.py", "new_path": "jax/lax/lax.py", "diff": "@@ -145,7 +145,7 @@ def exp(x: Array) -> Array:\nreturn exp_p.bind(x)\ndef expm1(x: Array) -> Array:\n- r\"\"\"Elementwise :math:`e^{x - 1}`.\"\"\"\n+ r\"\"\"Elementwise :math:`e^{x} - 1`.\"\"\"\nreturn e...
Python
Apache License 2.0
google/jax
Fix documentation for `nn.elu`, `nn.celu`, and `lax.expm1`. (#3116)
260,299
16.05.2020 14:19:24
-3,600
670fab59cfbfe19404de365f961a0321619d8d13
Test code in docs and api.py docstrings Also remove jaxpr doc tests from api_test.py.
[ { "change_type": "MODIFY", "old_path": ".travis.yml", "new_path": ".travis.yml", "diff": "@@ -12,7 +12,7 @@ jobs:\n- python: \"3.6\"\nenv: JAX_ENABLE_X64=1 JAX_NUM_GENERATED_CASES=25\n- python: \"3.7\"\n- env: JAX_ENABLE_X64=1 JAX_ONLY_DOCUMENTATION=true\n+ env: JAX_ENABLE_X64=0 JAX_ONLY_DOCUMENTATI...
Python
Apache License 2.0
google/jax
Test code in docs and api.py docstrings (#2994) Also remove jaxpr doc tests from api_test.py.
260,411
18.05.2020 16:02:49
-10,800
b071b12a13ed7301f8298d0d0404cb61dea994af
Fixed link in FAQ
[ { "change_type": "MODIFY", "old_path": "docs/faq.rst", "new_path": "docs/faq.rst", "diff": "@@ -123,7 +123,7 @@ its use is not recommended.)\nFor a worked-out example, we recommend reading through\n``test_computation_follows_data`` in\n-[multi_device_test.py](https://github.com/google/jax/blob/maste...
Python
Apache License 2.0
google/jax
Fixed link in FAQ (#3129)
260,361
18.05.2020 19:24:45
25,200
8d0749f13ee9e0d40af49ec0eabbc1e07ec4ff22
Fix a corner case in `repeat`. * Fixes a corner case: `jnp.repeat(jnp.array(0), 1, axis=0)` throws an error, whereas `np.repeat(np.array(0), 1, axis=0) = np.array([0])`. * Add test for `np.range(np.array(0), 1, axis=0)`.
[ { "change_type": "MODIFY", "old_path": "jax/numpy/lax_numpy.py", "new_path": "jax/numpy/lax_numpy.py", "diff": "@@ -2395,7 +2395,7 @@ def _repeat_scalar(a, repeats, axis=None):\nif not isscalar(repeats):\nraise NotImplementedError(\n\"_repeat_scalar implementation only supports scalar repeats\")\n- ...
Python
Apache License 2.0
google/jax
Fix a corner case in `repeat`. (#3117) * Fixes a corner case: `jnp.repeat(jnp.array(0), 1, axis=0)` throws an error, whereas `np.repeat(np.array(0), 1, axis=0) = np.array([0])`. * Add test for `np.range(np.array(0), 1, axis=0)`.
260,577
19.05.2020 07:06:32
-3,600
85fe5a28f1836ed1a9e91636c224d8f3cd4eb675
Add gradients to the scatter_max and scatter_min operations. This is being done to allow the creation of a differentiable segment_max. Segment_max is an important operation for GraphNets and is an open feature request at
[ { "change_type": "MODIFY", "old_path": "jax/lax/lax.py", "new_path": "jax/lax/lax.py", "diff": "@@ -3729,20 +3729,113 @@ ad.primitive_transposes[scatter_mul_p] = _scatter_mul_transpose_rule\nbatching.primitive_batchers[scatter_mul_p] = (\npartial(_scatter_batching_rule, scatter_mul))\n-# TODO(jlebar...
Python
Apache License 2.0
google/jax
Add gradients to the scatter_max and scatter_min operations. (#3111) This is being done to allow the creation of a differentiable segment_max. Segment_max is an important operation for GraphNets and is an open feature request at https://github.com/google/jax/issues/2255 Co-authored-by: Alex Davies <adavies@google.com>
260,440
19.05.2020 20:40:03
-3,600
73b76e9976ba94a9e28759faca602a4f9f295578
Exported lax from jax/__init__.py This allows to use lax functions without separately importing jax.lax.
[ { "change_type": "MODIFY", "old_path": "jax/__init__.py", "new_path": "jax/__init__.py", "diff": "# See the License for the specific language governing permissions and\n# limitations under the License.\n-from jax.version import __version__\nfrom .config import config\nfrom .api import (\nad, # TODO(...
Python
Apache License 2.0
google/jax
Exported lax from jax/__init__.py (#3135) This allows to use lax functions without separately importing jax.lax.
260,335
19.05.2020 15:17:03
25,200
850f1afd959917aa69337f253c435c84b5e53ebc
improve errors for complex derivs, fixes
[ { "change_type": "MODIFY", "old_path": "jax/api.py", "new_path": "jax/api.py", "diff": "@@ -150,7 +150,7 @@ def jit(fun: Callable, static_argnums: Union[int, Iterable[int]] = (),\nelse:\ndyn_args = args\nargs_flat, in_tree = tree_flatten((dyn_args, kwargs))\n- _check_args(args_flat)\n+ for arg in ar...
Python
Apache License 2.0
google/jax
improve errors for complex derivs, fixes #3121 (#3149)
260,700
19.05.2020 18:22:25
14,400
83a339e161d4016096663b8b3e4e8b991c9799f8
add erf and erfc rules refactor def comp
[ { "change_type": "MODIFY", "old_path": "jax/experimental/jet.py", "new_path": "jax/experimental/jet.py", "diff": "@@ -212,7 +212,36 @@ deflinear(lax.tie_in_p)\ndeflinear(lax_fft.fft_p)\ndeflinear(xla.device_put_p)\n+def def_deriv(prim, deriv):\n+ \"\"\"\n+ Define the jet rule for a primitive in term...
Python
Apache License 2.0
google/jax
add erf and erfc rules (#3051) refactor def comp
260,335
19.05.2020 15:51:07
25,200
ccb203c894e833264f2e11daf6bc24ba64c00260
improve pmap unbound axis error, fixes
[ { "change_type": "MODIFY", "old_path": "jax/api.py", "new_path": "jax/api.py", "diff": "@@ -1131,7 +1131,7 @@ def pmap(fun: Callable, axis_name: Optional[AxisName] = None, *, in_axes=0,\nf_pmapped.__name__ = namestr(f_pmapped.__name__, axis_name)\nreturn f_pmapped\n-class _TempAxisName(object):\n+cl...
Python
Apache License 2.0
google/jax
improve pmap unbound axis error, fixes #3120 (#3152)
260,335
20.05.2020 19:09:44
25,200
a4094f72a4435e57e2c52e27085e55659797b54a
revise "Tracer with raw numpy" error message * revise "Tracer with raw numpy" error message fixes * fix f-string typo * fix typo
[ { "change_type": "MODIFY", "old_path": "jax/core.py", "new_path": "jax/core.py", "diff": "@@ -371,11 +371,18 @@ class Tracer(object):\n__slots__ = ['_trace', '__weakref__']\ndef __array__(self, *args, **kw):\n- raise Exception(\"Tracer can't be used with raw numpy functions. \"\n- \"You might have\\...
Python
Apache License 2.0
google/jax
revise "Tracer with raw numpy" error message (#3160) * revise "Tracer with raw numpy" error message fixes #3133 * fix f-string typo * fix typo Co-authored-by: James Bradbury <jekbradbury@google.com> Co-authored-by: James Bradbury <jekbradbury@google.com>
260,335
20.05.2020 19:09:54
25,200
f9c978e9d608e373965512ebc498c0a1338af3ed
improve docstring of jax.numpy.broadcast_to thanks !
[ { "change_type": "MODIFY", "old_path": "jax/numpy/lax_numpy.py", "new_path": "jax/numpy/lax_numpy.py", "diff": "@@ -1354,8 +1354,10 @@ def broadcast_arrays(*args):\nreturn [broadcast_to(arg, result_shape) for arg in args]\n+@_wraps(np.broadcast_to, lax_description=\"\"\"\\\n+The JAX version does not...
Python
Apache License 2.0
google/jax
improve docstring of jax.numpy.broadcast_to (#3173) thanks @joaogui1 !
260,335
20.05.2020 20:21:41
25,200
ae9d1753462d07d75e9e002b13538c385949d9af
fix while_loop cond function batching * fix while_loop cond function batching fixes * add test for
[ { "change_type": "MODIFY", "old_path": "jax/lax/lax_control_flow.py", "new_path": "jax/lax/lax_control_flow.py", "diff": "@@ -375,7 +375,8 @@ def _while_loop_batching_rule(args, dims, cond_nconsts, cond_jaxpr,\nbody_jaxpr_batched, carry_bat_out = batching.batch_jaxpr(\nbody_jaxpr, size, batched, ins...
Python
Apache License 2.0
google/jax
fix while_loop cond function batching (#3174) * fix while_loop cond function batching fixes #3164 * add test for #3164
260,335
21.05.2020 06:47:02
25,200
eb81d7e7ffcbfaff1e2b281ae6ee902d46653d6a
add dict in_axes example to vmap docstring * add dict in_axes example to vmap docstring fixes * fix typo
[ { "change_type": "MODIFY", "old_path": "jax/api.py", "new_path": "jax/api.py", "diff": "@@ -796,6 +796,17 @@ def vmap(fun: Callable, in_axes=0, out_axes=0) -> Callable:\n>>> print(vfoo(tree).shape)\n(6, 2, 5)\n+ Here's another example using container types in ``in_axes``, this time a\n+ dictionary, ...
Python
Apache License 2.0
google/jax
add dict in_axes example to vmap docstring (#3176) * add dict in_axes example to vmap docstring fixes #3161 * fix typo
260,335
21.05.2020 08:00:18
25,200
5c1de2836c11f5068f9df75fcce4fe887b458f1c
revise vmap in_axes/out_axes leaf type error msg from discussion
[ { "change_type": "MODIFY", "old_path": "jax/api.py", "new_path": "jax/api.py", "diff": "@@ -836,11 +836,16 @@ def vmap(fun: Callable, in_axes=0, out_axes=0) -> Callable:\n# rather than raising an error. https://github.com/google/jax/issues/2367\nin_axes = tuple(in_axes)\n- if (not isinstance(in_axes...
Python
Apache License 2.0
google/jax
revise vmap in_axes/out_axes leaf type error msg (#3179) from #3161 discussion
260,306
21.05.2020 14:00:58
25,200
d8ede0106a6dcf8f71d97dc5e47636398dcb9124
Update jax/interpreters/pxla.py
[ { "change_type": "MODIFY", "old_path": "jax/interpreters/pxla.py", "new_path": "jax/interpreters/pxla.py", "diff": "@@ -716,7 +716,7 @@ def parallel_callable(fun, backend, axis_name, axis_size, global_axis_size,\nif devices is None:\nif num_global_shards > xb.device_count(backend):\n- msg = (\"compi...
Python
Apache License 2.0
google/jax
Update jax/interpreters/pxla.py Co-authored-by: James Bradbury <jekbradbury@google.com>
260,309
22.05.2020 14:12:44
25,200
190f88dedebd90e87d73e6b19d591afaf5357b7f
Update Common_Gotchas_in_JAX.ipynb typo fix
[ { "change_type": "MODIFY", "old_path": "docs/notebooks/Common_Gotchas_in_JAX.ipynb", "new_path": "docs/notebooks/Common_Gotchas_in_JAX.ipynb", "diff": "\"colab_type\": \"text\"\n},\n\"source\": [\n- \"JAX transformation and compilation are designed to work only on Python functions that are functiona...
Python
Apache License 2.0
google/jax
Update Common_Gotchas_in_JAX.ipynb (#3189) typo fix
260,411
26.05.2020 10:22:33
-10,800
f18f7920ba6fa830d2bdfef17dc2974f863ba907
Fix error in code generation of batched while loops Fixed the case when the value is a unit, which we do not batch.
[ { "change_type": "MODIFY", "old_path": "jax/lax/lax_control_flow.py", "new_path": "jax/lax/lax_control_flow.py", "diff": "@@ -329,7 +329,7 @@ def _while_loop_translation_rule(c, axis_env, name_stack, avals, backend, *args,\nbody_pred, = xla.jaxpr_subcomp(body_c, cond_jaxpr.jaxpr, backend, axis_env,\...
Python
Apache License 2.0
google/jax
Fix error in code generation of batched while loops (#3207) Fixed the case when the value is a unit, which we do not batch.
260,483
26.05.2020 20:21:22
-3,600
0f230029c98ff796141873b742a38beee0f0703b
Add a JAX flag to avoid most optimizations.
[ { "change_type": "MODIFY", "old_path": "jax/lib/xla_bridge.py", "new_path": "jax/lib/xla_bridge.py", "diff": "@@ -58,6 +58,10 @@ flags.DEFINE_string(\n'Platform name for XLA. The default is to attempt to use a GPU if '\n'available, but fall back to CPU otherwise. To set the platform manually, '\n'pa...
Python
Apache License 2.0
google/jax
Add a JAX flag to avoid most optimizations. (#3208)