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,335
02.12.2019 18:39:59
28,800
ac2af106ed35556841a6fc3bf643b0e200ca0fa4
adjust scan docstring (thanks
[ { "change_type": "MODIFY", "old_path": "jax/lax/lax_control_flow.py", "new_path": "jax/lax/lax_control_flow.py", "diff": "@@ -453,10 +453,12 @@ def scan(f, init, xs, length=None):\nrepresents the type with the same pytree structure and corresponding leaves\neach with an additional leading axis.\n- W...
Python
Apache License 2.0
google/jax
adjust scan docstring (thanks @shoyer)
260,335
04.12.2019 09:50:29
28,800
c1aeaf511cb38c9d7a3174446d0525877256e6c9
xla_computation option to instantiate const output
[ { "change_type": "MODIFY", "old_path": "jax/api.py", "new_path": "jax/api.py", "diff": "@@ -198,7 +198,7 @@ def disable_jit():\ndef xla_computation(fun, static_argnums=(), axis_env=None, backend=None,\n- tuple_args=False):\n+ tuple_args=False, instantiate_const_outputs=False):\n\"\"\"Creates a funct...
Python
Apache License 2.0
google/jax
xla_computation option to instantiate const output
260,335
04.12.2019 09:55:05
28,800
0899673363e4189dc670792bd3f0317795196b75
switch xla_computation instantiate outputs default
[ { "change_type": "MODIFY", "old_path": "jax/api.py", "new_path": "jax/api.py", "diff": "@@ -198,7 +198,7 @@ def disable_jit():\ndef xla_computation(fun, static_argnums=(), axis_env=None, backend=None,\n- tuple_args=False, instantiate_const_outputs=False):\n+ tuple_args=False, instantiate_const_outpu...
Python
Apache License 2.0
google/jax
switch xla_computation instantiate outputs default
260,335
04.12.2019 19:34:21
28,800
0c0137d787830d8ebd584c4610f7932f3787cab6
avoid compiling trivial programs from partial_eval also minor clean up in api_test.py
[ { "change_type": "MODIFY", "old_path": "jax/interpreters/xla.py", "new_path": "jax/interpreters/xla.py", "diff": "@@ -37,7 +37,8 @@ from ..abstract_arrays import (ConcreteArray, ShapedArray, AbstractToken,\nmake_shaped_array, array_types, raise_to_shaped,\nabstract_token, make_abstract_python_scalar...
Python
Apache License 2.0
google/jax
avoid compiling trivial programs from partial_eval also minor clean up in api_test.py
260,335
06.12.2019 10:23:17
28,800
d17e69ee2dc3e973deb1392215e8a9541b669827
add whitelist for multi-host collectives
[ { "change_type": "MODIFY", "old_path": "jax/interpreters/pxla.py", "new_path": "jax/interpreters/pxla.py", "diff": "@@ -460,6 +460,14 @@ def parallel_callable(fun, backend, axis_name, axis_size, devices, *avals):\ndel master\nout_pvs, out_consts = unzip2(out_pvals)\n+ # TODO(skye,mattjj): allow more...
Python
Apache License 2.0
google/jax
add whitelist for multi-host collectives
260,335
06.12.2019 10:29:54
28,800
5eafc7baba966e868fba1093e8a50c445130b873
improve condition for multi-host pmap checking
[ { "change_type": "MODIFY", "old_path": "jax/interpreters/pxla.py", "new_path": "jax/interpreters/pxla.py", "diff": "@@ -462,7 +462,11 @@ def parallel_callable(fun, backend, axis_name, axis_size, devices, *avals):\n# TODO(skye,mattjj): allow more collectives on multi-host as we test them, but\n# for ...
Python
Apache License 2.0
google/jax
improve condition for multi-host pmap checking
260,335
06.12.2019 20:32:46
28,800
80f455d3f0688734efc384c304e68f8c0d060501
make eval_jaxpr get jit cache hits
[ { "change_type": "MODIFY", "old_path": "jax/core.py", "new_path": "jax/core.py", "diff": "@@ -27,7 +27,8 @@ import types\nimport six\nfrom . import linear_util as lu\n-from .util import safe_zip, safe_map, partial, curry\n+from .linear_util import transformation, transformation_with_aux, wrap_init\n...
Python
Apache License 2.0
google/jax
make eval_jaxpr get jit cache hits
260,335
06.12.2019 22:28:41
28,800
7083b0a78edd8f2e88abe3f395ee0f51ac915082
roll back previous commit There was a mysterious failure on an internal test, and that mysteriousness means I didn't fully understand the attempted fix, so best to roll back for now.
[ { "change_type": "MODIFY", "old_path": "jax/core.py", "new_path": "jax/core.py", "diff": "@@ -27,8 +27,7 @@ import types\nimport six\nfrom . import linear_util as lu\n-from .linear_util import transformation, transformation_with_aux, wrap_init\n-from .util import safe_zip, safe_map, partial, curry, ...
Python
Apache License 2.0
google/jax
roll back previous commit #1829 There was a mysterious failure on an internal test, and that mysteriousness means I didn't fully understand the attempted fix, so best to roll back for now.
260,270
09.12.2019 16:06:59
0
26e863923af0b1fbbbae5ef9396e33eb376ad22a
Support atrous conv in same padded convolution and add warning if use transposed convolution with same or valid padding.
[ { "change_type": "MODIFY", "old_path": "docs/notebooks/Common_Gotchas_in_JAX.ipynb", "new_path": "docs/notebooks/Common_Gotchas_in_JAX.ipynb", "diff": "\"out = lax.conv_general_dilated(img, # lhs = image tensor\\n\",\n\" kernel, # rhs = conv kernel tensor\\n\",\n\" (1,1), # window strides\\n\",\n- \...
Python
Apache License 2.0
google/jax
Support atrous conv in same padded convolution and add warning if use transposed convolution with same or valid padding. (#1806) PiperOrigin-RevId: 283517237
260,335
10.12.2019 14:10:57
28,800
3167b3ddcdfb92f9636935ba004d29979c471d3e
test tupling of args
[ { "change_type": "MODIFY", "old_path": "tests/api_test.py", "new_path": "tests/api_test.py", "diff": "@@ -36,7 +36,7 @@ from jax import jit, grad, device_put, jacfwd, jacrev, hessian\nfrom jax import api, lax\nfrom jax.core import Primitive\nfrom jax.interpreters import ad\n-from jax.interpreters.xl...
Python
Apache License 2.0
google/jax
test tupling of args
260,483
11.12.2019 02:48:51
0
a73106b37cf2f0a6a0148e0f9ed1d27c7821449a
Avoid stack overflow when JITting a function that uses copy.copy or copy.deepcopy.
[ { "change_type": "MODIFY", "old_path": "jax/core.py", "new_path": "jax/core.py", "diff": "@@ -372,6 +372,12 @@ class Tracer(object):\ndef __repr__(self):\nreturn 'Traced<{}>with<{}>'.format(self.aval, self.trace)\n+ def __copy__(self):\n+ return self\n+\n+ def __deepcopy__(self, unused_memo):\n+ ret...
Python
Apache License 2.0
google/jax
Avoid stack overflow when JITting a function that uses copy.copy or copy.deepcopy. (#1834)
260,335
12.12.2019 05:14:57
28,800
fbde09f5677351431b91b66debc5f6d37a03f915
add tuple_args logic to xla primitive application
[ { "change_type": "MODIFY", "old_path": "jax/interpreters/xla.py", "new_path": "jax/interpreters/xla.py", "diff": "@@ -162,18 +162,20 @@ def xla_primitive_callable(prim, *abstract_args, **params):\nhandle_result = lambda xs: tuple(h(x) for h, x in zip(handlers, xs.destructure()))\nelse:\nhandle_resul...
Python
Apache License 2.0
google/jax
add tuple_args logic to xla primitive application
260,285
13.12.2019 11:46:08
0
9d12a24b63ac10943006d588f601718c135c12ef
Add categorical sampler
[ { "change_type": "MODIFY", "old_path": "jax/random.py", "new_path": "jax/random.py", "diff": "@@ -946,6 +946,24 @@ def _gumbel(key, shape, dtype):\nreturn -np.log(-np.log(\nuniform(key, shape, dtype, minval=np.finfo(dtype).eps, maxval=1.)))\n+def categorical(key, logits, axis=-1, shape=()):\n+ \"\"\...
Python
Apache License 2.0
google/jax
Add categorical sampler
260,445
13.12.2019 05:41:51
28,800
cc92bb64115b817f18a3ebf016170d9158845688
Improve the VJP structure mismatch errors.
[ { "change_type": "MODIFY", "old_path": "jax/api.py", "new_path": "jax/api.py", "diff": "@@ -1703,11 +1703,27 @@ def defvjp_all(fun, custom_vjp):\nargs = tree_unflatten(params['in_tree'], args_flat)\nout, vjp = custom_vjp(*args)\nout_flat, out_tree = tree_flatten(out)\n- assert out_tree == params['ou...
Python
Apache License 2.0
google/jax
Improve the VJP structure mismatch errors. (#1854)
260,285
13.12.2019 15:00:32
0
6178755281cd2ff7c48d26c584ac4e1e1f474d1c
Remove safe zip/map
[ { "change_type": "MODIFY", "old_path": "tests/random_test.py", "new_path": "tests/random_test.py", "diff": "@@ -26,7 +26,7 @@ import numpy as onp\nimport scipy.special\nimport scipy.stats\n-from jax import api, safe_zip, safe_map\n+from jax import api\nfrom jax import lax\nfrom jax import numpy as n...
Python
Apache License 2.0
google/jax
Remove safe zip/map
260,335
14.12.2019 08:16:01
28,800
0ad8837f2fc69fd944c9106342675ae24ac5d1d3
tweak wording around installing jaxlib
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -354,9 +354,9 @@ Some standouts:\n## Installation\n-JAX is written in pure Python, but it depends on XLA, which needs to be compiled\n-and installed as the `jaxlib` package. Use the following instructions to\n-i...
Python
Apache License 2.0
google/jax
tweak wording around installing jaxlib
260,335
14.12.2019 08:23:27
28,800
764f007f9a921d0c774d789176f4d62b0c0a6cef
point pmap links to cloud tpu colabs
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -282,7 +282,7 @@ print(normalize(np.arange(4.)))\n# prints [0. 0.16666667 0.33333334 0.5 ]\n```\n-You can even [nest `pmap` functions](https://github.com/google/jax) for more\n+You can even [nest `pmap` function...
Python
Apache License 2.0
google/jax
point pmap links to cloud tpu colabs
260,335
14.12.2019 08:34:01
28,800
5c800367d11be981857caff29a81fe3053b87f51
mention cloud tpus in readme
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -29,7 +29,9 @@ executed. But JAX also lets you just-in-time compile your own Python functions\ninto XLA-optimized kernels using a one-function API,\n[`jit`](#compilation-with-jit). Compilation and automatic diff...
Python
Apache License 2.0
google/jax
mention cloud tpus in readme
260,335
16.12.2019 09:32:55
28,800
c952ed4f5fb7c8df00fba4eefea060962fc277ad
update readme to clarify Cloud TPU preview status
[ { "change_type": "MODIFY", "old_path": "cloud_tpu_colabs/README.md", "new_path": "cloud_tpu_colabs/README.md", "diff": "-# Example Cloud TPU notebooks\n+# JAX Cloud TPU Preview\n-JAX now runs on Cloud TPUs!\n+JAX now runs on Cloud TPUs! **This is a preview**, and we're still working on it. Help us o...
Python
Apache License 2.0
google/jax
update readme to clarify Cloud TPU preview status
260,270
17.12.2019 02:03:17
0
4af04cefa98dac7fc99ec6b5162580aa6750f5f2
Support dilated transposed convolutions in the conv_transpose op.
[ { "change_type": "MODIFY", "old_path": "jax/experimental/stax.py", "new_path": "jax/experimental/stax.py", "diff": "@@ -87,7 +87,7 @@ def GeneralConv(dimension_numbers, out_chan, filter_shape,\ndef apply_fun(params, inputs, **kwargs):\nW, b = params\nreturn lax.conv_general_dilated(inputs, W, stride...
Python
Apache License 2.0
google/jax
Support dilated transposed convolutions in the conv_transpose op. (#1823) PiperOrigin-RevId: 284155973
260,335
17.12.2019 13:14:10
28,800
7175c1dfe1617ccdf26f408eb01cc0d9fa9dc298
fix transpose bug in multivariate normal, add test fixes
[ { "change_type": "MODIFY", "old_path": "jax/random.py", "new_path": "jax/random.py", "diff": "@@ -39,8 +39,8 @@ from jax.lib import xla_bridge\nfrom jax.lib import cuda_prng\nfrom jax import core\nfrom jax import abstract_arrays\n+from jax.numpy.linalg import cholesky\nfrom jax.scipy.special import ...
Python
Apache License 2.0
google/jax
fix transpose bug in multivariate normal, add test fixes #1869
260,386
17.12.2019 19:38:32
18,000
9a0ed06647731abf8178df2c0cf1a040ef763b92
Add Delta orthogonal initialization
[ { "change_type": "MODIFY", "old_path": "jax/nn/initializers.py", "new_path": "jax/nn/initializers.py", "diff": "@@ -24,9 +24,10 @@ from functools import partial\nimport numpy as onp\n+import jax.numpy as np\nfrom jax import lax\n+from jax import ops\nfrom jax import random\n-import jax.numpy as np\n...
Python
Apache License 2.0
google/jax
Add Delta orthogonal initialization (#1838)
260,335
17.12.2019 17:49:06
28,800
286ec51f6152d8972176bdf0f6fd2b38f1aa87ff
make op-by-op computation follow arg placement
[ { "change_type": "MODIFY", "old_path": ".travis.yml", "new_path": ".travis.yml", "diff": "@@ -42,7 +42,9 @@ install:\npip install sklearn;\nfi\nscript:\n- - if [[ \"$JAX_ONLY_DOCUMENTATION\" == \"\" ]]; then\n+ - if [[ \"$MULTI_DEVICE_TEST\" != \"\" ]]; then\n+ XLA_FLAGS=--xla_force_host_platform_de...
Python
Apache License 2.0
google/jax
make op-by-op computation follow arg placement
260,335
18.12.2019 11:18:33
28,800
8bd1a46ce7c7cc8e4827611531926ba200ad756e
revise handling of 'backend' values
[ { "change_type": "MODIFY", "old_path": "jax/interpreters/xla.py", "new_path": "jax/interpreters/xla.py", "diff": "@@ -172,6 +172,7 @@ def xla_primitive_callable(prim, *arg_specs, **params):\nelse:\nall_devices = it.chain(xb.devices(), xb.devices('cpu'))\ndevice = device and next(d for d in all_devic...
Python
Apache License 2.0
google/jax
revise handling of 'backend' values
260,335
18.12.2019 11:20:42
28,800
00e621df757c1746bf8065ce19ec90b61b80337c
add multi_device_test in travis
[ { "change_type": "MODIFY", "old_path": ".travis.yml", "new_path": ".travis.yml", "diff": "@@ -13,6 +13,9 @@ matrix:\ninclude:\n- python: \"3.7\"\nenv: JAX_ENABLE_X64=1 JAX_ONLY_DOCUMENTATION=true\n+ include:\n+ - python: \"3.7\"\n+ env: MULTI_DEVICE_TEST=1\nbefore_install:\n- if [[ \"$TRAVIS_PYTHON_...
Python
Apache License 2.0
google/jax
add multi_device_test in travis
260,335
18.12.2019 11:26:58
28,800
2a394ce31ba61b587a9813cf72c7b320db202b81
move multi-device test into its own file
[ { "change_type": "MODIFY", "old_path": ".travis.yml", "new_path": ".travis.yml", "diff": "@@ -13,9 +13,6 @@ matrix:\ninclude:\n- python: \"3.7\"\nenv: JAX_ENABLE_X64=1 JAX_ONLY_DOCUMENTATION=true\n- include:\n- - python: \"3.7\"\n- env: MULTI_DEVICE_TEST=1\nbefore_install:\n- if [[ \"$TRAVIS_PYTHON_...
Python
Apache License 2.0
google/jax
move multi-device test into its own file
260,296
18.12.2019 15:27:46
28,800
ec4b5445081b9ecd5d31c0b0e6e71a115c87125d
Stax: allow arbitrary dimension numbers in pooling layers.
[ { "change_type": "MODIFY", "old_path": "jax/experimental/stax.py", "new_path": "jax/experimental/stax.py", "diff": "@@ -167,18 +167,24 @@ Gelu = elementwise(gelu)\ndef _pooling_layer(reducer, init_val, rescaler=None):\n- def PoolingLayer(window_shape, strides=None, padding='VALID'):\n+ def PoolingLa...
Python
Apache License 2.0
google/jax
Stax: allow arbitrary dimension numbers in pooling layers. (#1892)
260,335
18.12.2019 15:55:39
28,800
0ed842ed118ef361fb4396118d42cfa60da7279d
add another multi-device test
[ { "change_type": "MODIFY", "old_path": "tests/multi_device_test.py", "new_path": "tests/multi_device_test.py", "diff": "@@ -20,8 +20,10 @@ import os\nfrom unittest import SkipTest\nfrom absl.testing import absltest\n+import numpy as onp\nimport jax\n+import jax.numpy as np\nfrom jax import lax\nfrom...
Python
Apache License 2.0
google/jax
add another multi-device test
260,314
23.12.2019 23:02:08
18,000
c75bf4ab72503314a092c707f264dfb2552d530b
make beta sampler faster
[ { "change_type": "MODIFY", "old_path": "jax/random.py", "new_path": "jax/random.py", "diff": "@@ -618,7 +618,6 @@ def beta(key, a, b, shape=None, dtype=onp.float64):\ndtype = dtypes.canonicalize_dtype(dtype)\nreturn _beta(key, a, b, shape, dtype)\n-@partial(jit, static_argnums=(3, 4))\ndef _beta(key...
Python
Apache License 2.0
google/jax
make beta sampler faster
260,335
24.12.2019 11:16:42
28,800
3bf12f6ecde817f8e8f2c8ec6c6d7bc9e1a2a0b0
update readme jaxlib version
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -395,7 +395,7 @@ PYTHON_VERSION=cp37 # alternatives: cp27, cp35, cp36, cp37\nCUDA_VERSION=cuda92 # alternatives: cuda90, cuda92, cuda100, cuda101\nPLATFORM=linux_x86_64 # alternatives: linux_x86_64\nBASE_URL='ht...
Python
Apache License 2.0
google/jax
update readme jaxlib version
260,314
26.12.2019 22:43:06
18,000
edf0e61bc913d0978ca1a7248b9dfe2d05193450
support nested vmap for gamma sampler
[ { "change_type": "MODIFY", "old_path": "jax/random.py", "new_path": "jax/random.py", "diff": "@@ -45,6 +45,7 @@ from jax.interpreters import ad\nfrom jax.interpreters import batching\nfrom jax.interpreters import partial_eval as pe\nfrom jax.interpreters import xla\n+from jax.util import prod\ndef P...
Python
Apache License 2.0
google/jax
support nested vmap for gamma sampler
260,335
30.12.2019 07:36:36
28,800
f5723848d349488edd27f1a8ad663f9d999ddab0
fix error in autodiff cookbook: 3x not 2x
[ { "change_type": "MODIFY", "old_path": "docs/notebooks/autodiff_cookbook.ipynb", "new_path": "docs/notebooks/autodiff_cookbook.ipynb", "diff": "\"source\": [\n\"The `jvp`-transformed function is evaluated much like the original function, but paired up with each primal value of type `a` it pushes alo...
Python
Apache License 2.0
google/jax
fix error in autodiff cookbook: 3x not 2x
260,335
31.12.2019 10:38:45
28,800
82dbf9131105a0b3a22c191930bc42b15d420794
add tests for adapt make_jaxpr staging
[ { "change_type": "MODIFY", "old_path": "jax/api.py", "new_path": "jax/api.py", "diff": "@@ -1337,8 +1337,8 @@ def make_jaxpr(fun):\njax_args, in_tree = tree_flatten((args, kwargs))\njaxtree_fun, out_tree = flatten_fun(wrapped, in_tree)\nin_pvals = map(pv_like, jax_args)\n- jaxpr, out_pvals, consts =...
Python
Apache License 2.0
google/jax
add tests for #1640, adapt make_jaxpr staging
260,335
01.01.2020 11:43:44
28,800
b380ac1f7f7efd6a07edf102d9b1e2ee69535038
add faster reshape utility function
[ { "change_type": "MODIFY", "old_path": "jax/numpy/lax_numpy.py", "new_path": "jax/numpy/lax_numpy.py", "diff": "@@ -885,10 +885,18 @@ def reshape(a, newshape, order=\"C\"):\nexcept AttributeError:\nreturn _reshape(a, newshape, order=order)\n-def _reshape(a, newshape, order=\"C\"):\n- dummy_val = onp...
Python
Apache License 2.0
google/jax
add faster reshape utility function
260,388
02.01.2020 12:57:24
0
fd6067471e08862547e76fd0bd80eaa3dbf69b53
Fix minor typo in Common_Gotchas_in_JAX.ipynb Moved misplaced backtick
[ { "change_type": "MODIFY", "old_path": "docs/notebooks/Common_Gotchas_in_JAX.ipynb", "new_path": "docs/notebooks/Common_Gotchas_in_JAX.ipynb", "diff": "\"\\n\",\n\"If you want to trace where NaNs are occurring in your functions or gradients, you can turn on the NaN-checker by:\\n\",\n\"- setting the...
Python
Apache License 2.0
google/jax
Fix minor typo in Common_Gotchas_in_JAX.ipynb Moved misplaced backtick
260,312
04.01.2020 14:26:35
-3,600
592f167e5bfd7f4d6ff67bdaba94008895c5b5fa
Implement numpy.gradient
[ { "change_type": "MODIFY", "old_path": "jax/numpy/lax_numpy.py", "new_path": "jax/numpy/lax_numpy.py", "diff": "@@ -873,6 +873,49 @@ 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+ a_swap = swapaxes(a, 0, axis)...
Python
Apache License 2.0
google/jax
Implement numpy.gradient
260,378
04.01.2020 18:21:30
28,800
ca155129322cc9fdb4e483c14d66d9be58e96152
added fft2 and ifft2, corresponding tests, and documentation links.
[ { "change_type": "MODIFY", "old_path": "docs/jax.numpy.rst", "new_path": "docs/jax.numpy.rst", "diff": "@@ -260,6 +260,8 @@ jax.numpy.fft\nifftn\nfft\nifft\n+ fft2\n+ ifft2\njax.numpy.linalg\n----------------\n" }, { "change_type": "MODIFY", "old_path": "jax/numpy/fft.py", "new_path"...
Python
Apache License 2.0
google/jax
added fft2 and ifft2, corresponding tests, and documentation links. (#1939)
260,335
06.01.2020 20:57:19
28,800
bb9cd233683565c5127f88bab5a51a504752cae2
tweak shape error message, add test
[ { "change_type": "MODIFY", "old_path": "jax/lax/lax.py", "new_path": "jax/lax/lax.py", "diff": "@@ -94,7 +94,11 @@ def _canonicalize_shape(shape):\nexcept TypeError:\npass\nmsg = (\"Shapes must be 1D sequences of concrete values of integer type, \"\n- \"got {}\")\n+ \"got {}.\")\n+ if any(isinstance...
Python
Apache License 2.0
google/jax
tweak shape error message, add test
260,335
06.01.2020 18:08:00
28,800
80d8ee4e3c6f1ed8f33c4a5dccb26285fa3aab0d
lower away grad_and_aux pure jaxpr tracers fixes
[ { "change_type": "MODIFY", "old_path": "jax/interpreters/ad.py", "new_path": "jax/interpreters/ad.py", "diff": "@@ -79,6 +79,7 @@ def jvp_subtrace_aux(master, primals, tangents):\naux_tracers = map(trace.full_raise, aux)\nout_primals, out_tangents = unzip2((t.primal, t.tangent) for t in ans_tracers)...
Python
Apache License 2.0
google/jax
lower away grad_and_aux pure jaxpr tracers fixes #1950
260,312
30.12.2019 23:20:08
-3,600
58ee0a8ea4a2699f723dc4fee3afe8887b91f9ec
Add np.iterable
[ { "change_type": "MODIFY", "old_path": "jax/numpy/lax_numpy.py", "new_path": "jax/numpy/lax_numpy.py", "diff": "@@ -391,6 +391,14 @@ def issubdtype(arg1, arg2): return dtypes.issubdtype(arg1, arg2)\n@_wraps(onp.isscalar)\ndef isscalar(num): return dtypes.is_python_scalar(num) or onp.isscalar(num)\n+...
Python
Apache License 2.0
google/jax
Add np.iterable
260,312
04.01.2020 13:38:56
-3,600
0c9aacf1dac3804cad8044d517f009a15cf49654
Use numpy function directly instead of copying source code
[ { "change_type": "MODIFY", "old_path": "jax/numpy/lax_numpy.py", "new_path": "jax/numpy/lax_numpy.py", "diff": "@@ -391,13 +391,7 @@ def issubdtype(arg1, arg2): return dtypes.issubdtype(arg1, arg2)\n@_wraps(onp.isscalar)\ndef isscalar(num): return dtypes.is_python_scalar(num) or onp.isscalar(num)\n-...
Python
Apache License 2.0
google/jax
Use numpy function directly instead of copying source code
260,335
06.01.2020 22:45:44
28,800
7da75587b5ccc708d7267aef16f182ed39e098d0
make control flow abstract eval to shaped level fixes
[ { "change_type": "MODIFY", "old_path": "jax/lax/lax_control_flow.py", "new_path": "jax/lax/lax_control_flow.py", "diff": "@@ -211,7 +211,7 @@ def while_loop(cond_fun, body_fun, init_val):\nreturn tree_unflatten(body_tree, outs)\ndef _while_loop_abstract_eval(*args, **kwargs):\n- return kwargs[\"body...
Python
Apache License 2.0
google/jax
make control flow abstract eval to shaped level fixes #1919
260,312
07.01.2020 12:34:34
-3,600
b15a27a7fc4b8dce0056c53e5ec45d97ab40dee8
Tests for jax.numpy.gradient and minor tweaks
[ { "change_type": "MODIFY", "old_path": "jax/numpy/lax_numpy.py", "new_path": "jax/numpy/lax_numpy.py", "diff": "@@ -889,7 +889,7 @@ def _gradient(a, axis):\nelse:\nif isinstance(axis, int):\naxis = (axis,)\n- if not (isinstance(axis, tuple) or isinstance(axis, list)):\n+ if not isinstance(axis, tupl...
Python
Apache License 2.0
google/jax
Tests for jax.numpy.gradient and minor tweaks
260,312
08.01.2020 12:22:12
-3,600
48cb6af6b4125b5874c6ffc2586dbe9c5c1565f0
Support None and negative indices in slice_in_dim
[ { "change_type": "MODIFY", "old_path": "jax/lax/lax.py", "new_path": "jax/lax/lax.py", "diff": "@@ -1309,6 +1309,17 @@ def slice_in_dim(operand, start_index, limit_index, stride=1, axis=0):\nlimit_indices = list(operand.shape)\nstrides = [1] * operand.ndim\n+ # translate `None`\n+ len_axis = operand...
Python
Apache License 2.0
google/jax
Support None and negative indices in slice_in_dim
260,312
08.01.2020 12:31:45
-3,600
ac1aaedc4f2ec6acf352e7ccb718a9a4fb59ae06
Change from swapaxes to slice_in_dim in numpy.gradient
[ { "change_type": "MODIFY", "old_path": "jax/numpy/lax_numpy.py", "new_path": "jax/numpy/lax_numpy.py", "diff": "@@ -876,13 +876,13 @@ def diff(a, n=1, axis=-1,):\n@partial(jit, static_argnums=1)\ndef _gradient(a, axis):\ndef gradient_along_axis(a, axis):\n- a_swap = swapaxes(a, 0, axis)\n+ sliced = ...
Python
Apache License 2.0
google/jax
Change from swapaxes to slice_in_dim in numpy.gradient
260,312
09.01.2020 08:46:36
-3,600
9ef9b38b4e2274608d7449269af9c29780482ed1
Put axis in named_parameters for numpy.gradient test
[ { "change_type": "MODIFY", "old_path": "tests/lax_numpy_test.py", "new_path": "tests/lax_numpy_test.py", "diff": "@@ -2560,22 +2560,22 @@ class LaxBackedNumpyTests(jtu.JaxTestCase):\n@parameterized.named_parameters(\njtu.cases_from_list(\n- {\"testcase_name\": (\"_shape={}_dtype={}\").format(shape, ...
Python
Apache License 2.0
google/jax
Put axis in named_parameters for numpy.gradient test
260,285
10.01.2020 13:28:03
0
f36d858c4ef62f5ea2f9616701f33fb38b74b464
Require shape = sample_shape + batch_shape in random.categorical
[ { "change_type": "MODIFY", "old_path": "jax/random.py", "new_path": "jax/random.py", "diff": "@@ -946,25 +946,34 @@ def _gumbel(key, shape, dtype):\nreturn -np.log(-np.log(\nuniform(key, shape, dtype, minval=np.finfo(dtype).eps, maxval=1.)))\n-def categorical(key, logits, axis=-1, shape=()):\n+def c...
Python
Apache License 2.0
google/jax
Require shape = sample_shape + batch_shape in random.categorical
260,393
10.01.2020 16:49:08
28,800
34ede6b72ec9a49386b55a55e40d7efbc46956c2
Added pshuffle
[ { "change_type": "MODIFY", "old_path": "jax/lax/lax_parallel.py", "new_path": "jax/lax/lax_parallel.py", "diff": "@@ -113,6 +113,30 @@ def ppermute(x, axis_name, perm):\n\"\"\"\nreturn ppermute_p.bind(x, axis_name=axis_name, perm=tuple(perm))\n+def pshuffle(x, axis_name, perm):\n+ \"\"\"Perform a co...
Python
Apache License 2.0
google/jax
Added pshuffle (#1975)
260,335
10.01.2020 20:44:24
28,800
9afa2c6b69695a015b1af7d1ccbb3546ddc002ae
fix broken link to trax, fixes
[ { "change_type": "MODIFY", "old_path": "cloud_tpu_colabs/Pmap_Cookbook.ipynb", "new_path": "cloud_tpu_colabs/Pmap_Cookbook.ipynb", "diff": "\"\\n\",\n\"To run this notebook with any parallelism, you'll need multiple XLA devices available, e.g. with a multi-GPU machine or a Cloud TPU.\\n\",\n\"\\n\",...
Python
Apache License 2.0
google/jax
fix broken link to trax, fixes #1974
260,335
11.01.2020 16:31:59
28,800
a7eb5897d31f5f0fd2b346cfd26e51faa11e9c97
add mini-libraries readme
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -88,6 +88,14 @@ For a deeper dive into JAX:\n- See the [full list of\nnotebooks](https://github.com/google/jax/tree/master/docs/notebooks).\n+You can also take a look at [the mini-libraries in\n+`jax.experimenta...
Python
Apache License 2.0
google/jax
add mini-libraries readme
260,292
17.01.2020 07:05:15
-19,080
71323b5d023a33bf8c06d435c4a6e406dea3c0a8
changes loop_mjp(f, x, M) a minor change: we iterate over M and not S
[ { "change_type": "MODIFY", "old_path": "docs/notebooks/autodiff_cookbook.ipynb", "new_path": "docs/notebooks/autodiff_cookbook.ipynb", "diff": "\"def loop_jmp(f, x, M):\\n\",\n\" # jvp immediately returns the primal and tangent values as a tuple,\\n\",\n\" # so we'll compute and select the tangents ...
Python
Apache License 2.0
google/jax
changes loop_mjp(f, x, M) (#2013) a minor change: we iterate over M and not S
260,299
17.01.2020 17:48:27
0
3974df0aeeeb89d74ee6832894ab153406626266
[docs] Pmap compiles functions with XLA
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -261,7 +261,9 @@ differentiation for fast Jacobian and Hessian matrix calculations in\nFor parallel programming of multiple accelerators, like multiple GPUs, use\n[`pmap`](https://jax.readthedocs.io/en/latest/ja...
Python
Apache License 2.0
google/jax
[docs] Pmap compiles functions with XLA (#2021)
260,375
21.01.2020 13:26:36
28,800
2c80cd3d88c7393a9bfaa80da626be1a868c0049
Fix Sysml paper link in README The original ULR was broken as sysml updated their links.
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -454,7 +454,7 @@ the year corresponds to the project's open-source release.\nA nascent version of JAX, supporting only automatic differentiation and\ncompilation to XLA, was described in a [paper that appeared a...
Python
Apache License 2.0
google/jax
Fix Sysml paper link in README (#2036) The original ULR was broken as sysml updated their links.
260,335
22.01.2020 17:19:14
28,800
07260f6572ac436317558a4b78b4b0931e0b30ad
remove hasing methods from core.Literal
[ { "change_type": "MODIFY", "old_path": "jax/core.py", "new_path": "jax/core.py", "diff": "@@ -129,10 +129,10 @@ class Literal(object):\nself.hash = None\ndef __hash__(self):\n- return id(self.val) if self.hash is None else self.hash\n+ assert False\ndef __eq__(self, other):\n- return self.val is oth...
Python
Apache License 2.0
google/jax
remove hasing methods from core.Literal (#2038)
260,335
23.01.2020 10:21:55
28,800
6b5ef898dc7eaa3295ef3556a523507620d05793
fix autodiff cookbook np.allclose tuple bug
[ { "change_type": "MODIFY", "old_path": "docs/notebooks/autodiff_cookbook.ipynb", "new_path": "docs/notebooks/autodiff_cookbook.ipynb", "diff": "\"# multiply, rather than an outer loop over vector-matrix multiplies.\\n\",\n\"def vmap_mjp(f, x, M):\\n\",\n\" y, vjp_fun = vjp(f, x)\\n\",\n- \" return v...
Python
Apache License 2.0
google/jax
fix autodiff cookbook np.allclose tuple bug (#2055)
260,335
23.01.2020 10:25:49
28,800
a61bcff54d3167ac22d098341de309bf22c128b4
update readme gotchas about pure functions
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -343,22 +343,23 @@ we highly recommend reading the [Gotchas\nNotebook](https://jax.readthedocs.io/en/latest/notebooks/Common_Gotchas_in_JAX.html).\nSome standouts:\n+1. JAX transformations only work on [pure fun...
Python
Apache License 2.0
google/jax
update readme gotchas about pure functions
260,393
27.01.2020 15:44:33
28,800
82d6c6ce518d4d6925c42f3cd2cc1fd1a2d15146
Added better error messages. Added better error messages for when a user accidentally uses a python cast instead of a the `jax.numpy` casting.
[ { "change_type": "MODIFY", "old_path": "jax/abstract_arrays.py", "new_path": "jax/abstract_arrays.py", "diff": "@@ -24,17 +24,18 @@ from . import dtypes\nfrom . util import prod, partialmethod\n-def concretization_err_msg(fun):\n+def concretization_err_msg(fun, context=None):\nfname = getattr(fun, \...
Python
Apache License 2.0
google/jax
Added better error messages. (#2058) #2057 Added better error messages for when a user accidentally uses a python cast instead of a the `jax.numpy` casting.
260,296
27.01.2020 16:14:28
28,800
95ccaae8058f8fb49c81680f1f9061bf96d8d95e
Add test for empty dimension list for reversion
[ { "change_type": "MODIFY", "old_path": "tests/lax_test.py", "new_path": "tests/lax_test.py", "diff": "@@ -913,6 +913,10 @@ class LaxTest(jtu.JaxTestCase):\ndef testReverse(self):\nrev = api.jit(lambda operand: lax.rev(operand, dimensions))\n+ dimensions = []\n+ self.assertAllClose(onp.array([0, 1, 2...
Python
Apache License 2.0
google/jax
Add test for empty dimension list for reversion
260,384
28.01.2020 15:48:37
18,000
b68d8b5c4fead01ba85da9a9574a686493a5b7ba
Clarify instructions for building from source. Adds additional subsections of the `Building from source` documentation page to make it more obvious that you can install `jaxlib` from pip when doing Python-only development.
[ { "change_type": "MODIFY", "old_path": "docs/developer.rst", "new_path": "docs/developer.rst", "diff": "@@ -8,14 +8,30 @@ First, obtain the JAX source code.\ngit clone https://github.com/google/jax\ncd jax\n+Building JAX involves two steps:\n-There are two steps to building JAX: building ``jaxlib`` ...
Python
Apache License 2.0
google/jax
Clarify instructions for building from source. (#2093) Adds additional subsections of the `Building from source` documentation page to make it more obvious that you can install `jaxlib` from pip when doing Python-only development.
260,335
28.01.2020 16:41:21
28,800
1afcac70dfeaa4ffc89d79dc64f72361e18c4a91
tweak readme not to have bad line wrap
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "| [**Install guide**](#installation)\n| [**Reference docs**](https://jax.readthedocs.io/en/latest/)\n-## Announcements\n-\n-* `jax` 0.1.58 has been released. As of `jax` 0.1.58, JAX has dropped Python 2\n- support....
Python
Apache License 2.0
google/jax
tweak readme not to have bad line wrap
260,335
28.01.2020 18:15:16
28,800
71811be3b9257ab1fc48fce8fb0512c0a384d901
tweak top-line announcement text in readme
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "| [**Install guide**](#installation)\n| [**Reference docs**](https://jax.readthedocs.io/en/latest/)\n-As of `jax` 0.1.58, JAX has dropped Python 2 support. Please update to Python 3.5 or newer.\n+**Announcement:** ...
Python
Apache License 2.0
google/jax
tweak top-line announcement text in readme
260,335
28.01.2020 18:16:04
28,800
d46e82d0abbb4e0d009d5b201a178871d5e2c672
tweak readme announcement text again
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "| [**Install guide**](#installation)\n| [**Reference docs**](https://jax.readthedocs.io/en/latest/)\n-**Announcement:** As of version 0.1.58, JAX has dropped Python 2 support, and requires Python 3.5 or newer. See ...
Python
Apache License 2.0
google/jax
tweak readme announcement text again
260,304
30.01.2020 15:03:00
28,800
664a4e123d83fb1d17cd31451fbebc6f1568707a
VJP of cond, via partial eval + transpose VJP (grad) of lax.cond, via partial eval + transpose
[ { "change_type": "MODIFY", "old_path": "CHANGELOG.md", "new_path": "CHANGELOG.md", "diff": "@@ -8,6 +8,11 @@ These are the release notes for JAX.\n* The minimum jaxlib version is now 0.1.38.\n+### New features\n+\n+* Reverse-mode automatic differentiation (e.g. `grad`) of `lax.cond`, making it\n+ no...
Python
Apache License 2.0
google/jax
VJP of cond, via partial eval + transpose (#2091) VJP (grad) of lax.cond, via partial eval + transpose Co-authored-by: Matthew Johnson <mattjj@google.com>
260,620
30.01.2020 17:19:01
28,800
4c30c0285c509764f3b1b937b8a6bc9f9b8dd061
Implement scipy.stats.logistic
[ { "change_type": "MODIFY", "old_path": "jax/scipy/stats/__init__.py", "new_path": "jax/scipy/stats/__init__.py", "diff": "@@ -25,3 +25,4 @@ from . import norm\nfrom . import pareto\nfrom . import t\nfrom . import uniform\n+from . import logistic\n" }, { "change_type": "ADD", "old_path": ...
Python
Apache License 2.0
google/jax
Implement scipy.stats.logistic (#1993)
260,335
31.01.2020 23:47:30
28,800
ae1d6b875fcc2b23909b360c73db00489f32068e
fix remat with nontrivial env fixes
[ { "change_type": "MODIFY", "old_path": "jax/api.py", "new_path": "jax/api.py", "diff": "@@ -2027,7 +2027,8 @@ def checkpoint(fun, concrete=False):\ndef fun_remat(*args, **kwargs):\nargs_flat, in_tree = tree_flatten((args, kwargs))\nflat_fun, out_tree = flatten_fun(lu.wrap_init(fun), in_tree)\n- out_...
Python
Apache License 2.0
google/jax
fix remat with nontrivial env (#2136) fixes #2030
260,425
03.02.2020 15:12:40
0
8c7fc3919d3e131da6a2121158084ed480dbec2a
Upgrade bazel from 0.29.1 to 1.2.1
[ { "change_type": "MODIFY", "old_path": "build/build.py", "new_path": "build/build.py", "diff": "@@ -57,19 +57,19 @@ def get_python_bin_path(python_bin_path_flag):\n# Bazel\n-BAZEL_BASE_URI = \"https://github.com/bazelbuild/bazel/releases/download/0.29.1/\"\n+BAZEL_BASE_URI = \"https://github.com/baz...
Python
Apache License 2.0
google/jax
Upgrade bazel from 0.29.1 to 1.2.1 (#2137)
260,296
03.02.2020 07:31:12
28,800
1022573b26a1996db524229de10fb84dbe6e08b3
Make stax pooling layers accept `spec=None` Currently pooling layers have a default channel-last spec that is explicitly 2D. This change will make this default work for arbitrary input dimensionality.
[ { "change_type": "MODIFY", "old_path": "jax/experimental/stax.py", "new_path": "jax/experimental/stax.py", "diff": "@@ -163,12 +163,16 @@ Gelu = elementwise(gelu)\ndef _pooling_layer(reducer, init_val, rescaler=None):\n- def PoolingLayer(window_shape, strides=None, padding='VALID', spec='NHWC'):\n+ ...
Python
Apache License 2.0
google/jax
Make stax pooling layers accept `spec=None` (#2145) Currently pooling layers have a default channel-last spec that is explicitly 2D. This change will make this default work for arbitrary input dimensionality.
260,662
04.02.2020 15:24:10
0
4080a1c2ce95dc4a90f899fe4bf9ad5ac6a7b8b3
Add np.fft.fftshift/ifftshift
[ { "change_type": "MODIFY", "old_path": "jax/numpy/fft.py", "new_path": "jax/numpy/fft.py", "diff": "@@ -208,6 +208,34 @@ def rfftfreq(n, d=1.0):\nreturn k / (d * n)\n+@_wraps(onp.fft.fftshift)\n+def fftshift(x, axes=None):\n+ x = np.asarray(x)\n+ if axes is None:\n+ axes = tuple(range(x.ndim))\n+ sh...
Python
Apache License 2.0
google/jax
Add np.fft.fftshift/ifftshift (#1850)
260,335
07.02.2020 14:25:03
28,800
5c9438864e64c8b02b0e13fce9759d8a8ed3d488
fix cond batching bug reading axis size
[ { "change_type": "MODIFY", "old_path": "jax/lax/lax_control_flow.py", "new_path": "jax/lax/lax_control_flow.py", "diff": "@@ -454,11 +454,12 @@ def _cond_pred_bcast_select(pred, x, y):\ndef _cond_batching_rule(args, dims, true_jaxpr, false_jaxpr, linear):\n# TODO: maybe avoid moving arg axes to fron...
Python
Apache License 2.0
google/jax
fix cond batching bug reading axis size (#2193)
260,299
10.02.2020 18:23:19
0
c999a482b09712879555522c40db6369a29ecd55
Test for PRNG consistency accross JAX versions
[ { "change_type": "MODIFY", "old_path": "tests/random_test.py", "new_path": "tests/random_test.py", "diff": "@@ -519,6 +519,39 @@ class LaxRandomTest(jtu.JaxTestCase):\nfinally:\nxla.apply_primitive = apply_primitive\n+ def testPRNGValues(self):\n+ # Test to ensure consistent random values between JA...
Python
Apache License 2.0
google/jax
Test for PRNG consistency accross JAX versions
260,335
11.02.2020 07:21:17
28,800
9e6fe64a66a4fac78ef9c8e57bb0818e4af6b619
bump version and update changelog for pypi
[ { "change_type": "MODIFY", "old_path": "CHANGELOG.md", "new_path": "CHANGELOG.md", "diff": "These are the release notes for JAX.\n-## jax 0.1.59 (unreleased)\n+## jax 0.1.60 (unreleased)\n+\n+## jax 0.1.59 (February 11, 2020)\n### Breaking changes\n" }, { "change_type": "MODIFY", "old_pa...
Python
Apache License 2.0
google/jax
bump version and update changelog for pypi
260,335
11.02.2020 15:56:53
28,800
7ca43f0ea96a3e2253b346bad8b2c1764290bd50
more nonlinear evaluation in backward_pass.py * more nonlinear evaluation in backward_pass.py fixes * add tests, fix by not raising error eagerly
[ { "change_type": "MODIFY", "old_path": "jax/interpreters/ad.py", "new_path": "jax/interpreters/ad.py", "diff": "@@ -183,21 +183,12 @@ def backward_pass(jaxpr: core.Jaxpr, consts, args, cotangents_in):\nelse:\nwrite_primal(eqn.outvars[0], ans)\nelse:\n- call_jaxpr = eqn.params[\"call_jaxpr\"]\n+ call...
Python
Apache License 2.0
google/jax
more nonlinear evaluation in backward_pass.py (#2214) * more nonlinear evaluation in backward_pass.py fixes #2180 * add tests, fix #1963 by not raising error eagerly
260,272
17.02.2020 14:28:56
-3,600
3a0690fa11d303e988ddb8cc05bfcb8ea0cf0e04
Correct sign mistake in complex autodiff docs.
[ { "change_type": "MODIFY", "old_path": "docs/notebooks/autodiff_cookbook.ipynb", "new_path": "docs/notebooks/autodiff_cookbook.ipynb", "diff": "\"source\": [\n\"def grad_f(z):\\n\",\n\" x, y = real(z), imag(z)\\n\",\n- \" return grad(u, 0)(x, y) + grad(u, 1)(x, y) * 1j\"\n+ \" return grad(u, 0)(x, y...
Python
Apache License 2.0
google/jax
Correct sign mistake in complex autodiff docs.
260,411
17.02.2020 16:01:10
-3,600
fcd949b695018bede6bc2c3c16f3947c3e326760
Added blank line to autodiff cookbook to trigger an enumeration
[ { "change_type": "MODIFY", "old_path": "docs/notebooks/autodiff_cookbook.ipynb", "new_path": "docs/notebooks/autodiff_cookbook.ipynb", "diff": "},\n\"source\": [\n\"This convention covers three important cases:\\n\",\n+ \"\\n\",\n\"1. If `f` evaluates a holomorphic function, then we get the usual co...
Python
Apache License 2.0
google/jax
Added blank line to autodiff cookbook to trigger an enumeration
260,335
18.02.2020 12:39:03
28,800
ae1214de74e9ec42da8ff813dab8577c6bd9231d
add np.copy method to abstract arrays * add np.copy method to abstract arrays fixes * make device_get use onp.asarray, not .copy()
[ { "change_type": "MODIFY", "old_path": "jax/api.py", "new_path": "jax/api.py", "diff": "@@ -1383,11 +1383,10 @@ def device_put(x, device=None):\nreturn tree_map(lambda y: xla.device_put_p.bind(y, device=device), x)\n-# TODO(mattjj): consider revising\ndef _device_get(x):\nif isinstance(x, core.Trace...
Python
Apache License 2.0
google/jax
add np.copy method to abstract arrays (#2257) * add np.copy method to abstract arrays fixes #2248 * make device_get use onp.asarray, not .copy()
260,411
19.02.2020 16:03:10
-3,600
08eb0ee030cf4fe41eb719dffccd835a25e2e8a9
Disable newly added test on TPU (no float16) Added in
[ { "change_type": "MODIFY", "old_path": "tests/nn_test.py", "new_path": "tests/nn_test.py", "diff": "@@ -55,6 +55,8 @@ class NNFunctionsTest(jtu.JaxTestCase):\n(np.float32, np.bfloat16, np.float16),\n(nn.gelu, nn.relu, nn.softplus, nn.sigmoid)))\ndef testDtypeMatchesInput(self, dtype, fn):\n+ if dtyp...
Python
Apache License 2.0
google/jax
Disable newly added test on TPU (no float16) (#2262) Added in #2259
260,335
19.02.2020 21:57:04
28,800
ab327acab0303c1b6dd47c25515125ccb216a1f3
fix unit handling in vmap of cond, fixes
[ { "change_type": "MODIFY", "old_path": "jax/lax/lax_control_flow.py", "new_path": "jax/lax/lax_control_flow.py", "diff": "@@ -449,6 +449,9 @@ def _cond_translation_rule(c, axis_env, name_stack, pred, *args,\nreturn c.Conditional(pred, true_op, true_c, false_op, false_c)\ndef _cond_pred_bcast_select(...
Python
Apache License 2.0
google/jax
fix unit handling in vmap of cond, fixes #2264 (#2268)
260,411
20.02.2020 09:41:08
-3,600
4978e3c285bbf052364b499c6ca9386ecae47629
Disable linalg_test:testMatrix power on TPU Due to internal test failures (b/149870255)
[ { "change_type": "MODIFY", "old_path": "tests/linalg_test.py", "new_path": "tests/linalg_test.py", "diff": "@@ -721,6 +721,7 @@ class NumpyLinalgTest(jtu.JaxTestCase):\nfor dtype in float_types + complex_types\nfor n in [-5, -2, -1, 0, 1, 2, 3, 4, 5, 10]\nfor rng_factory in [jtu.rand_default]))\n+ @...
Python
Apache License 2.0
google/jax
Disable linalg_test:testMatrix power on TPU (#2269) Due to internal test failures (b/149870255)
260,411
23.02.2020 19:18:06
-3,600
89514f9278fb3705ca5ecab2fb4656a285ad2da4
Moved CHANGELOG to docs * Moved CHANGELOG to docs This puts the documentation also on RTD, with TOC. Also changed its format to .rst, for consistency. Added GitHub links to the change log. * Actually add the CHANGELOG.rst * Added reminder comments to the CHANGELOG.rst
[ { "change_type": "MODIFY", "old_path": "CHANGELOG.md", "new_path": "CHANGELOG.md", "diff": "-# Changelog\n+# Change Log\n-These are the release notes for JAX.\n-\n-## jax 0.1.60 (unreleased)\n-\n-### New features\n-\n-* `pmap` has `static_broadcast_argnums` argument which allows the user to\n- speci...
Python
Apache License 2.0
google/jax
Moved CHANGELOG to docs (#2252) * Moved CHANGELOG to docs This puts the documentation also on RTD, with TOC. Also changed its format to .rst, for consistency. Added GitHub links to the change log. * Actually add the CHANGELOG.rst * Added reminder comments to the CHANGELOG.rst
260,280
24.02.2020 06:04:02
-32,400
f6e1d01f94936c992d9e63810eae5db69c06a026
JIT differentiate -> JIT compile
[ { "change_type": "MODIFY", "old_path": "docs/notebooks/How_JAX_primitives_work.ipynb", "new_path": "docs/notebooks/How_JAX_primitives_work.ipynb", "diff": "\"colab_type\": \"text\"\n},\n\"source\": [\n- \"Below is another use of `jit` where we differentiate only\\n\",\n+ \"Below is another use of `j...
Python
Apache License 2.0
google/jax
JIT differentiate -> JIT compile (#2279)
260,411
26.02.2020 21:30:21
-3,600
b21e7530f329ccc6ba6c73bd85f5d03dbec9be8d
Added the optix.py documentation to RTD Issue:
[ { "change_type": "MODIFY", "old_path": "docs/developer.rst", "new_path": "docs/developer.rst", "diff": "@@ -140,8 +140,9 @@ To rebuild the documentation, install several packages:\npip install -r docs/requirements.txt\nYou must also install ``pandoc`` in order to regenerate the notebooks.\n-See `Ins...
Python
Apache License 2.0
google/jax
Added the optix.py documentation to RTD (#2312) Issue: #2297
260,673
27.02.2020 10:20:02
18,000
a473e5b6bb3be5aa032d30ed023abb6b121af0e0
Reference deduped precision issue.
[ { "change_type": "MODIFY", "old_path": "cloud_tpu_colabs/README.md", "new_path": "cloud_tpu_colabs/README.md", "diff": "@@ -46,7 +46,7 @@ By default\\*, matrix multiplication in JAX on TPUs [uses bfloat16](https://cloud\nJAX also adds the `bfloat16` dtype, which you can use to explicitly cast arrays...
Python
Apache License 2.0
google/jax
Reference deduped precision issue. (#2319)
260,297
27.02.2020 14:43:55
18,000
ce9b03866cf04a378d6cc44a5ce5f99700f0148c
Remove check comparing shift/axis and input dimensions in np.roll
[ { "change_type": "MODIFY", "old_path": "jax/numpy/lax_numpy.py", "new_path": "jax/numpy/lax_numpy.py", "diff": "@@ -2678,8 +2678,6 @@ def roll(a, shift, axis=None):\nif len(b_shape) != 1:\nmsg = \"'shift' and 'axis' arguments to roll must be scalars or 1D arrays\"\nraise ValueError(msg)\n- if b_shap...
Python
Apache License 2.0
google/jax
Remove check comparing shift/axis and input dimensions in np.roll (#2327)
260,700
28.02.2020 12:05:38
18,000
0dfa9ef5e4eb77acf4b2156687b8cf673a2d25b2
fix vjp odeint
[ { "change_type": "MODIFY", "old_path": "jax/experimental/ode.py", "new_path": "jax/experimental/ode.py", "diff": "@@ -362,8 +362,8 @@ def vjp_odeint(ofunc, y0, t, *args, **kwargs):\ntime_vjp_list = jax.ops.index_update(result[-1], -1, result[-3])\nvjp_times = np.hstack(time_vjp_list)[::-1]\n-\n- ret...
Python
Apache License 2.0
google/jax
fix vjp odeint (#2321)
260,692
29.02.2020 00:06:38
0
2d9caba3169c7280fd09cb26d97ff8ef82626a30
Address Issue 2330 * fix issue 2330 * Update lax_numpy_test.py * Update lax_numpy_test.py * Update lax_numpy_test.py Fixed error in naming convention jnp -> lnp; np -> onp
[ { "change_type": "MODIFY", "old_path": "jax/numpy/lax_numpy.py", "new_path": "jax/numpy/lax_numpy.py", "diff": "@@ -1721,6 +1721,9 @@ def concatenate(arrays, axis=0):\n# tree of concatenations as a workaround especially for op-by-op mode.\n# (https://github.com/google/jax/issues/653).\nk = 16\n+ if ...
Python
Apache License 2.0
google/jax
Address Issue 2330 (#2331) * fix issue 2330 * Update lax_numpy_test.py * Update lax_numpy_test.py * Update lax_numpy_test.py Fixed error in naming convention jnp -> lnp; np -> onp
260,358
01.03.2020 02:34:33
0
e7debd732f1e8ea3fe76d0bd054da7ef59217544
Replace jnp.clip_by_value with jnp.clip jnp.clip_by_value does not exist
[ { "change_type": "MODIFY", "old_path": "jax/experimental/optix.py", "new_path": "jax/experimental/optix.py", "diff": "@@ -58,10 +58,10 @@ ClipState = collections.namedtuple(\"ClipState\", \"\")\ndef clip(max_delta):\n- \"\"\"Clip updates element-wise.\n+ \"\"\"Clip updates element-wise, to be betwee...
Python
Apache License 2.0
google/jax
Replace jnp.clip_by_value with jnp.clip (#2339) jnp.clip_by_value does not exist
260,335
03.03.2020 16:27:53
28,800
1e61ba429d950629d2f04ca569e2621f8419d344
improve jax.nn.relu differentiation
[ { "change_type": "MODIFY", "old_path": "jax/nn/functions.py", "new_path": "jax/nn/functions.py", "diff": "import numpy as onp\nfrom jax import dtypes\n+from jax import custom_transforms, defjvp\nfrom jax import lax\nfrom jax import random\nfrom jax.scipy.special import expit\nimport jax.numpy as np\...
Python
Apache License 2.0
google/jax
improve jax.nn.relu differentiation (#2342)
260,411
09.03.2020 10:01:09
-3,600
04a027b85309b87e92d8b77f7d425838bc8de593
Replaced self.assertTrue(...===...) with assertEquals This was caught in internal presubmit tests
[ { "change_type": "MODIFY", "old_path": "tests/lax_numpy_test.py", "new_path": "tests/lax_numpy_test.py", "diff": "@@ -1087,7 +1087,7 @@ class LaxBackedNumpyTests(jtu.JaxTestCase):\nexpected_onp_input_after_call = onp.ones((1))\nexpected_jnp_input_after_call = jnp.ones((1))\n- self.assertTrue(type(jn...
Python
Apache License 2.0
google/jax
Replaced self.assertTrue(...===...) with assertEquals (#2383) This was caught in internal presubmit tests
260,699
09.03.2020 17:07:12
-10,800
8339511eb50891b66536b03330e844c415e3e86b
Implement NumPy sorting routines. Implement `np.msort`. Related issue:
[ { "change_type": "MODIFY", "old_path": "docs/jax.numpy.rst", "new_path": "docs/jax.numpy.rst", "diff": "@@ -170,6 +170,7 @@ Not every function in NumPy is implemented; contributions are welcome!\nminimum\nmod\nmoveaxis\n+ msort\nmultiply\nnan_to_num\nnancumprod\n" }, { "change_type": "MODIFY...
Python
Apache License 2.0
google/jax
Implement NumPy sorting routines. (#2318) Implement `np.msort`. Related issue: #2079
260,323
09.03.2020 11:43:45
25,200
c53ae2c47706d3c6cae5c50b88e8b1f2ef392700
automatic detection of wheel version
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -433,6 +433,12 @@ for Python 3.5, 3.6, 3.7, and 3.8; for anything else, you must build from\nsource. Jax requires Python 3.5 or above. Jax does not support Python 2 any\nmore.\n+To try automatic detection of the...
Python
Apache License 2.0
google/jax
automatic detection of wheel version (#2373)
260,411
09.03.2020 20:41:01
-3,600
282225f676a4dddd170047de377f831f44ea2304
Added some pytype annotations Tried to catch all uses of linear_util.WrappedFun
[ { "change_type": "MODIFY", "old_path": "jax/api.py", "new_path": "jax/api.py", "diff": "@@ -1427,7 +1427,7 @@ def device_get(x):\nreturn tree_map(_device_get, x)\n-def _argnums_partial(f, dyn_argnums, args):\n+def _argnums_partial(f: lu.WrappedFun, dyn_argnums, args):\nif isinstance(dyn_argnums, int...
Python
Apache License 2.0
google/jax
Added some pytype annotations (#2386) Tried to catch all uses of linear_util.WrappedFun
260,581
10.03.2020 14:40:38
-3,600
5c3b4786b2bd71fccecc5617de7a1d9f4269f2cb
Add a module to apply updates every k steps (and accumulate them otherwise)
[ { "change_type": "MODIFY", "old_path": "jax/experimental/optix.py", "new_path": "jax/experimental/optix.py", "diff": "@@ -324,6 +324,36 @@ def add_noise(eta, gamma, seed):\nreturn InitUpdate(init_fn, update_fn)\n+ApplyEvery = collections.namedtuple(\"ApplyEvery\", \"count grad_acc\")\n+\n+\n+def app...
Python
Apache License 2.0
google/jax
Add a module to apply updates every k steps (and accumulate them otherwise) (#2350)
260,335
10.03.2020 06:59:54
25,200
cc53aa956b0571efb3b0237dd87d92d509f8b1fd
skip new optix test on tpu (cf.
[ { "change_type": "MODIFY", "old_path": "tests/optix_test.py", "new_path": "tests/optix_test.py", "diff": "@@ -19,7 +19,7 @@ from absl.testing import absltest\nfrom jax import numpy as jnp\nfrom jax.experimental import optimizers\nfrom jax.experimental import optix\n-import jax.test_util # imported o...
Python
Apache License 2.0
google/jax
skip new optix test on tpu (cf. #2350)
260,335
10.03.2020 08:29:46
25,200
ebbcbad547e56357e600cd8c19232d4b91cf4f00
allow vmap in_axes to be a list, fixes
[ { "change_type": "MODIFY", "old_path": "jax/api.py", "new_path": "jax/api.py", "diff": "@@ -657,6 +657,14 @@ def vmap(fun: Callable, in_axes=0, out_axes=0):\ndocstr = (\"Vectorized version of {fun}. Takes similar arguments as {fun} \"\n\"but with additional array axes over which {fun} is mapped.\")\...
Python
Apache License 2.0
google/jax
allow vmap in_axes to be a list, fixes #2367 (#2395)
260,335
10.03.2020 15:01:18
25,200
cfbdb65ad8637e883679a0d0516acdc28dd9e8ea
add register_pytree_node_class, fixes
[ { "change_type": "MODIFY", "old_path": "jax/tree_util.py", "new_path": "jax/tree_util.py", "diff": "@@ -38,6 +38,7 @@ for examples.\nimport functools\nimport collections\n+import operator as op\nfrom .lib import pytree\n@@ -105,6 +106,26 @@ def register_pytree_node(nodetype, flatten_func, unflatten_...
Python
Apache License 2.0
google/jax
add register_pytree_node_class, fixes #2396 (#2400) Co-authored-by: Stephan Hoyer <shoyer@google.com> Co-authored-by: Stephan Hoyer <shoyer@google.com>
260,335
11.03.2020 09:42:25
25,200
cdf188af2fd4f256c2c5c390ec0d09ed321212d0
add raises-exception notebook cell metadata
[ { "change_type": "MODIFY", "old_path": "docs/notebooks/Common_Gotchas_in_JAX.ipynb", "new_path": "docs/notebooks/Common_Gotchas_in_JAX.ipynb", "diff": "{\n\"cell_type\": \"code\",\n\"execution_count\": 0,\n- \"metadata\": {},\n+ \"metadata\": {\n+ \"tags\": [\n+ \"raises-exception\"\n+ ]\n+ },\n\"ou...
Python
Apache License 2.0
google/jax
add raises-exception notebook cell metadata (#2402)
260,384
11.03.2020 16:19:46
14,400
2dfeaeb63fa9e884ef5b76bc43cf99b2c5a5c04f
Allow zero tolerance for jax.test_util.tolerance Currently, if a user passes any falsy value to jax.test_util.tolerance, it is changed to the default value. This makes sense when the value passed is None, but not when the value passed is 0 (which indicates a desired tolerance of exactly 0). Disables failing tests for now.
[ { "change_type": "MODIFY", "old_path": "jax/test_util.py", "new_path": "jax/test_util.py", "diff": "@@ -116,7 +116,7 @@ def _assert_numpy_allclose(a, b, atol=None, rtol=None):\nonp.testing.assert_allclose(a, b, **kw)\ndef tolerance(dtype, tol=None):\n- tol = tol or {}\n+ tol = {} if tol is None else...
Python
Apache License 2.0
google/jax
Allow zero tolerance for jax.test_util.tolerance (#2393) Currently, if a user passes any falsy value to jax.test_util.tolerance, it is changed to the default value. This makes sense when the value passed is None, but not when the value passed is 0 (which indicates a desired tolerance of exactly 0). Disables failing tests for now.
260,411
12.03.2020 10:59:30
-3,600
61b430eeb40aeef3254f50dbcb79271e7ab3db96
Added more documentation for how to fix notebook build failures
[ { "change_type": "MODIFY", "old_path": "docs/developer.rst", "new_path": "docs/developer.rst", "diff": "@@ -166,6 +166,16 @@ local repo), update it as needed, ``Run all cells`` then\n``Download ipynb``. You may want to test that it executes properly, using ``sphinx-build`` as\nexplained above.\n+Som...
Python
Apache License 2.0
google/jax
Added more documentation for how to fix notebook build failures (#2404)
260,335
20.02.2020 08:04:21
28,800
e84a621184967618997e2b0018fa88979735a7cd
new jet implementation, with conv-based rules
[ { "change_type": "MODIFY", "old_path": "jax/api.py", "new_path": "jax/api.py", "diff": "@@ -57,6 +57,7 @@ from .interpreters import ad\nfrom .interpreters import batching\nfrom .interpreters import parallel\nfrom .interpreters import masking\n+from .interpreters import taylor\nfrom .interpreters.mas...
Python
Apache License 2.0
google/jax
new jet implementation, with conv-based rules Co-authored-by: Jesse Bettencourt <jessebett@cs.toronto.edu> Co-authored-by: David Duvenaud <duvenaud@cs.toronto.edu>
260,335
20.02.2020 08:43:40
28,800
a21fdf8669437a7a052983e18112b3379b955290
more jet rules and tests
[ { "change_type": "MODIFY", "old_path": "jax/lax/lax.py", "new_path": "jax/lax/lax.py", "diff": "@@ -1674,6 +1674,18 @@ ad.defjvp_zero(is_finite_p)\nexp_p = standard_unop(_float | _complex, 'exp')\nad.defjvp2(exp_p, lambda g, ans, x: _safe_mul(g, ans))\n+def _exp_taylor(primals_in, series_in):\n+ x, ...
Python
Apache License 2.0
google/jax
more jet rules and tests Co-authored-by: Jesse Bettencourt <jessebett@cs.toronto.edu>