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,299 | 25.09.2019 16:19:26 | -7,200 | d2d0576892a5796daffbb01d288a27f6ba100b65 | Ensure cache hits for gcd, lcm | [
{
"change_type": "MODIFY",
"old_path": "jax/numpy/lax_numpy.py",
"new_path": "jax/numpy/lax_numpy.py",
"diff": "@@ -2819,23 +2819,24 @@ hanning = _wrap_numpy_nullary_function(onp.hanning)\n# TODO: lower `kaiser` via lax to allow non-constant beta values.\nkaiser = _wrap_numpy_nullary_function(onp.ka... | Python | Apache License 2.0 | google/jax | Ensure cache hits for gcd, lcm |
260,387 | 25.09.2019 10:30:19 | 14,400 | 3610c4aee7c08c4f917a6ccca156f4d5235e0345 | Fixed typo in initial_step_size method.
See the reference in the docstring for details. | [
{
"change_type": "MODIFY",
"old_path": "jax/experimental/ode.py",
"new_path": "jax/experimental/ode.py",
"diff": "@@ -124,7 +124,7 @@ def initial_step_size(fun, t0, y0, order, rtol, atol, f0):\nf1 = fun(y1, t0 + h0)\nd2 = (np.linalg.norm(f1 - f0) / scale) / h0\n- h1 = np.where(np.all(np.asarray([d0 ... | Python | Apache License 2.0 | google/jax | Fixed typo in initial_step_size method.
See the reference in the docstring for details. |
260,299 | 26.09.2019 11:25:51 | -7,200 | b24d6cacd3c4c408cd5d19926d346e254127d92a | Ensure LU decomposition cache hits in op-by-op | [
{
"change_type": "MODIFY",
"old_path": "jax/lax/lax_control_flow.py",
"new_path": "jax/lax/lax_control_flow.py",
"diff": "@@ -79,6 +79,20 @@ class FixedPointError(Exception): pass\n### fori_loop and while_loop\n+@cache()\n+def _make_fori_cond(upper):\n+ def while_cond_fun(loop_carry):\n+ i, _ = loop... | Python | Apache License 2.0 | google/jax | Ensure LU decomposition cache hits in op-by-op |
260,299 | 26.09.2019 13:34:57 | -7,200 | 806ebd4ed4bab2025b3776908119a1b466e3b962 | Fix and test for fori_loop op-by-op caching | [
{
"change_type": "MODIFY",
"old_path": "jax/lax/lax_control_flow.py",
"new_path": "jax/lax/lax_control_flow.py",
"diff": "@@ -79,18 +79,15 @@ class FixedPointError(Exception): pass\n### fori_loop and while_loop\n-@cache()\n-def _make_fori_cond(upper):\n- def while_cond_fun(loop_carry):\n- i, _ = loo... | Python | Apache License 2.0 | google/jax | Fix and test for fori_loop op-by-op caching |
260,299 | 26.09.2019 13:39:35 | -7,200 | 57d9fd6ab4608336403e8d98fb4639d19bfb6805 | Googly indentation | [
{
"change_type": "MODIFY",
"old_path": "jax/lax_linalg.py",
"new_path": "jax/lax_linalg.py",
"diff": "@@ -622,9 +622,8 @@ def lu_pivots_to_permutation(swaps, m):\npermutation = lax.broadcasted_iota(np.int32, batch_dims + (m,),\nlen(batch_dims))\n- result, _ = lax.fori_loop(\n- onp.array(0, onp.int32... | Python | Apache License 2.0 | google/jax | Googly indentation |
260,389 | 27.09.2019 12:11:18 | 14,400 | b82673dcdbd4472b0a531a8918f4fd1e3f6e1eef | add check_dtypes | [
{
"change_type": "MODIFY",
"old_path": "tests/nn_test.py",
"new_path": "tests/nn_test.py",
"diff": "@@ -35,4 +35,4 @@ class NNTest(jtu.JaxTestCase):\ncheck_grads(nn.softplus, (1e-8,), 4)\ndef testSoftplusValue(self):\nval = nn.softplus(89.)\n- self.assertAllClose(val, 89.)\n+ self.assertAllClose(val... | Python | Apache License 2.0 | google/jax | add check_dtypes |
260,299 | 01.10.2019 17:56:44 | -3,600 | f66aa275a62f62afb038170c486647d1248284ec | Rm duplicates from end_nodes in toposort | [
{
"change_type": "MODIFY",
"old_path": "jax/util.py",
"new_path": "jax/util.py",
"diff": "@@ -107,6 +107,7 @@ def curry(f):\ndef toposort(end_nodes):\nif not end_nodes: return []\n+ end_nodes = _remove_duplicates(end_nodes)\nchild_counts = {}\nstack = list(end_nodes)\n@@ -141,6 +142,15 @@ def check_... | Python | Apache License 2.0 | google/jax | Rm duplicates from end_nodes in toposort |
260,280 | 03.10.2019 11:04:09 | 10,800 | d21efd3cc75fa765183847546a353e6070cf711c | Fixes the parameters descriptions | [
{
"change_type": "MODIFY",
"old_path": "jax/numpy/lax_numpy.py",
"new_path": "jax/numpy/lax_numpy.py",
"diff": "@@ -272,6 +272,22 @@ def _wraps(fun):\n\"{summary}\\n\\nLAX-backend implementation of :func:`{fun}`. \"\n\"Original docstring below.\\n\\n{body}\".format(\nsummary=summary, fun=fun.__name_... | Python | Apache License 2.0 | google/jax | Fixes the parameters descriptions |
260,646 | 03.10.2019 23:43:34 | 25,200 | f20521326b39ff34c8c65d38464c39a658ab42a5 | Fix typo in initial_step_size d2 calculation | [
{
"change_type": "MODIFY",
"old_path": "jax/experimental/ode.py",
"new_path": "jax/experimental/ode.py",
"diff": "@@ -122,9 +122,9 @@ def initial_step_size(fun, t0, y0, order, rtol, atol, f0):\ny1 = y0 + h0 * f0\nf1 = fun(y1, t0 + h0)\n- d2 = (np.linalg.norm(f1 - f0) / scale) / h0\n+ d2 = np.linalg.... | Python | Apache License 2.0 | google/jax | Fix typo in initial_step_size d2 calculation (#1428) |
260,280 | 04.10.2019 22:19:31 | 10,800 | a0bb2c0ea452975be76e0ba2c6055f5be4439aa3 | Add a pylintrc to make it easier to use linter | [
{
"change_type": "MODIFY",
"old_path": "jax/numpy/lax_numpy.py",
"new_path": "jax/numpy/lax_numpy.py",
"diff": "@@ -103,13 +103,11 @@ class _ArrayMeta(type(onp.ndarray)):\nexcept AttributeError:\nreturn isinstance(instance, _arraylike_types)\n-# pylint: disable=invalid-name\nclass ndarray(six.with_m... | Python | Apache License 2.0 | google/jax | Add a pylintrc to make it easier to use linter (#1442) |
260,389 | 08.10.2019 10:57:36 | 25,200 | bc0e79767b94dd5d82091cdf9402e9388a1429d6 | fix XLA metadata for primitives with many args | [
{
"change_type": "MODIFY",
"old_path": "jax/core.py",
"new_path": "jax/core.py",
"diff": "@@ -19,6 +19,7 @@ from __future__ import print_function\nfrom operator import attrgetter\nfrom contextlib import contextmanager\nfrom collections import namedtuple, Counter, defaultdict\n+import itertools as it... | Python | Apache License 2.0 | google/jax | fix XLA metadata for primitives with many args |
260,389 | 08.10.2019 11:08:42 | 25,200 | 245d29b40d77bdb5fefcb596251f316dfcdead93 | add test for the case that failed | [
{
"change_type": "MODIFY",
"old_path": "tests/lax_control_flow_test.py",
"new_path": "tests/lax_control_flow_test.py",
"diff": "@@ -72,6 +72,17 @@ class LaxControlFlowTest(jtu.JaxTestCase):\nself.assertEqual(cloop(2), limit - 2)\nself.assertEqual(cloop(3), limit - 3)\n+ def testWhileWithManyArgs(sel... | Python | Apache License 2.0 | google/jax | add test for the case that failed |
260,646 | 09.10.2019 15:00:27 | 25,200 | 6e55c4e7bac26778543c988f8a2de2df9b0fd326 | Move variables inside functions to avoid flags errors, remove matplotlib dependency | [
{
"change_type": "MODIFY",
"old_path": "jax/experimental/ode.py",
"new_path": "jax/experimental/ode.py",
"diff": "@@ -35,34 +35,17 @@ import jax.lax\nimport jax.numpy as np\nimport jax.ops\nfrom jax.test_util import check_vjp\n-import matplotlib.pyplot as plt\nimport numpy as onp\nimport scipy.integ... | Python | Apache License 2.0 | google/jax | Move variables inside functions to avoid flags errors, remove matplotlib dependency (#1479) |
260,280 | 11.10.2019 16:25:23 | 10,800 | 245f40678ed79ff958481dd87b10e03673bdeaa6 | Adds dirichlet to __init__.py, making it usable | [
{
"change_type": "MODIFY",
"old_path": "jax/scipy/stats/__init__.py",
"new_path": "jax/scipy/stats/__init__.py",
"diff": "@@ -16,6 +16,7 @@ from __future__ import absolute_import\nfrom . import bernoulli\nfrom . import beta\nfrom . import cauchy\n+from . import dirichlet\nfrom . import expon\nfrom .... | Python | Apache License 2.0 | google/jax | Adds dirichlet to __init__.py, making it usable |
260,411 | 13.10.2019 09:34:51 | -7,200 | 858a411982f64ec021785669d28054d67058adc9 | Add a separate build matrix entry for documentation testing.
* Add a separate build matrix entry for documentation testing.
This way we parallelize the unit tests with the documentation tests. | [
{
"change_type": "MODIFY",
"old_path": ".travis.yml",
"new_path": ".travis.yml",
"diff": "@@ -9,6 +9,11 @@ python:\nenv:\n- JAX_ENABLE_X64=0 JAX_NUM_GENERATED_CASES=25\n- JAX_ENABLE_X64=1 JAX_NUM_GENERATED_CASES=25\n+matrix:\n+ include:\n+ - python: \"3.7\"\n+ env: JAX_ENABLE_X64=1 JAX_ONLY_DOCUMENT... | Python | Apache License 2.0 | google/jax | Add a separate build matrix entry for documentation testing. (#1495)
* Add a separate build matrix entry for documentation testing.
This way we parallelize the unit tests with the documentation tests. |
260,280 | 13.10.2019 20:30:32 | 10,800 | d6bc62bd6b56d2c37f77807c45475bd1821a95f1 | Fixes Readme links to notebooks | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -37,7 +37,7 @@ are instances of such transformations. Another is [`vmap`](#auto-vectorization-w\nfor automatic vectorization, with more to come.\nThis is a research project, not an official Google product. Expec... | Python | Apache License 2.0 | google/jax | Fixes Readme links to notebooks |
260,335 | 15.10.2019 23:07:31 | 0 | 0eea9885026b7e18b07a4bd8488e32f8805741aa | try following jupyterlab/jupyter-renderers#212 to fix travis | [
{
"change_type": "MODIFY",
"old_path": ".travis.yml",
"new_path": ".travis.yml",
"diff": "@@ -22,8 +22,12 @@ before_install:\nfi\n- bash miniconda.sh -b -p $HOME/miniconda\n- export PATH=\"$HOME/miniconda/bin:$PATH\"\n- - conda update --yes conda\n+ - conda config --set always_yes yes --set changeps... | Python | Apache License 2.0 | google/jax | try following jupyterlab/jupyter-renderers#212 to fix travis |
260,335 | 15.10.2019 23:49:15 | 0 | 585cefc8c014f1b04bfd1523db017f6592384910 | document pmap with pytrees, fixes | [
{
"change_type": "MODIFY",
"old_path": "jax/api.py",
"new_path": "jax/api.py",
"diff": "@@ -652,7 +652,7 @@ def pmap(fun, axis_name=None, devices=None, backend=None):\ndevices available, as returned by ``jax.local_device_count()`` (unless\n``devices`` is specified, see below). For nested ``pmap`` ca... | Python | Apache License 2.0 | google/jax | document pmap with pytrees, fixes #1486 |
260,335 | 15.10.2019 22:55:35 | 0 | 2f858bded88bc187a9a8f47b234572ae2ce3be56 | handle complex dtypes in psum
fixes | [
{
"change_type": "MODIFY",
"old_path": "jax/lax/lax_parallel.py",
"new_path": "jax/lax/lax_parallel.py",
"diff": "@@ -193,11 +193,20 @@ def _allreduce_translation_rule(prim, c, val, replica_groups, backend=None):\ncomputation = xla.primitive_computation(prim, scalar, scalar, backend=backend)\nreturn... | Python | Apache License 2.0 | google/jax | handle complex dtypes in psum
fixes #1409 |
260,335 | 17.10.2019 22:38:28 | 0 | cc137ced4d89f64f346de207d69ef3ea08f93644 | broadcast arguments in take_along_axis, fixes | [
{
"change_type": "MODIFY",
"old_path": "jax/numpy/lax_numpy.py",
"new_path": "jax/numpy/lax_numpy.py",
"diff": "@@ -2411,6 +2411,7 @@ def _take_along_axis(arr, indices, axis):\nif rank != ndim(indices):\nmsg = \"indices and arr must have the same number of dimensions; {} vs. {}\"\nraise ValueError(m... | Python | Apache License 2.0 | google/jax | broadcast arguments in take_along_axis, fixes #1521 |
260,335 | 17.10.2019 23:23:08 | 0 | aa0692d30774c1fb4cc5cd6e706703b3c835bbec | improve broadcast_to, add error checks (fixes | [
{
"change_type": "MODIFY",
"old_path": "jax/numpy/lax_numpy.py",
"new_path": "jax/numpy/lax_numpy.py",
"diff": "@@ -889,23 +889,20 @@ def broadcast_arrays(*args):\ndef broadcast_to(arr, shape):\n\"\"\"Like Numpy's broadcast_to but doesn't necessarily return views.\"\"\"\narr = arr if isinstance(arr,... | Python | Apache License 2.0 | google/jax | improve broadcast_to, add error checks (fixes #1522) |
260,622 | 17.10.2019 16:00:35 | 25,200 | 1090e89a86147a5ce326db68149677027b9bb0ef | sign missing from loss function definition | [
{
"change_type": "MODIFY",
"old_path": "examples/resnet50.py",
"new_path": "examples/resnet50.py",
"diff": "@@ -101,7 +101,7 @@ if __name__ == \"__main__\":\ndef loss(params, batch):\ninputs, targets = batch\nlogits = predict_fun(params, inputs)\n- return np.sum(logits * targets)\n+ return -np.sum(l... | Python | Apache License 2.0 | google/jax | - sign missing from loss function definition |
260,335 | 18.10.2019 22:50:24 | 0 | a0352f3969955b2dae0f0151506c4fe594ba1718 | fix up broadcasting in take_along_axis | [
{
"change_type": "MODIFY",
"old_path": "jax/numpy/lax_numpy.py",
"new_path": "jax/numpy/lax_numpy.py",
"diff": "@@ -2405,20 +2405,27 @@ def _take_along_axis(arr, indices, axis):\nif axis is None:\nif ndim(indices) != 1:\nmsg = \"take_along_axis indices must be 1D if axis=None, got shape {}\"\n- rais... | Python | Apache License 2.0 | google/jax | fix up broadcasting in take_along_axis |
260,335 | 16.10.2019 01:35:39 | 0 | 8a132b41093018e818bfa63b836c573029731f8a | try simplifying random.multivariate_normal api | [
{
"change_type": "MODIFY",
"old_path": "jax/random.py",
"new_path": "jax/random.py",
"diff": "@@ -419,41 +419,37 @@ def _normal(key, shape, dtype):\nreturn onp.array(onp.sqrt(2), dtype) * lax.erf_inv(u)\n-def multivariate_normal(key, mean=0.0, cov=1.0, shape=(), dtype=onp.float64):\n+def multivariat... | Python | Apache License 2.0 | google/jax | try simplifying random.multivariate_normal api |
260,335 | 17.10.2019 20:36:51 | 0 | ab6ac6c876968bc6b4a9b76ead4c8289ff733250 | standardize shape handling in jax.random | [
{
"change_type": "MODIFY",
"old_path": "jax/random.py",
"new_path": "jax/random.py",
"diff": "@@ -240,12 +240,19 @@ def _random_bits(key, bit_width, shape):\n### random samplers\n-def _check_shape(name, shape):\n+def _check_shape(name, shape, *param_shapes):\ntry:\nshape = tuple(map(int, shape))\nex... | Python | Apache License 2.0 | google/jax | standardize shape handling in jax.random |
260,335 | 20.10.2019 21:14:48 | 0 | 1f4e45cdcd92b205d2d42cc40f7fedb0eeb702b3 | tweak shape convention again | [
{
"change_type": "MODIFY",
"old_path": "jax/random.py",
"new_path": "jax/random.py",
"diff": "@@ -428,24 +428,26 @@ def _normal(key, shape, dtype):\nreturn onp.array(onp.sqrt(2), dtype) * lax.erf_inv(u)\n-def multivariate_normal(key, mean, cov, shape=(), dtype=onp.float64):\n+def multivariate_normal... | Python | Apache License 2.0 | google/jax | tweak shape convention again |
260,273 | 21.10.2019 11:48:58 | 0 | 43be8d8ef81177d4c41b8e580e2c4f8b2afef52b | Fix NaNs in grad(jax.nn.elu) for large inputs. | [
{
"change_type": "MODIFY",
"old_path": "jax/nn/functions.py",
"new_path": "jax/nn/functions.py",
"diff": "@@ -35,7 +35,8 @@ def swish(x): return x * sigmoid(x)\ndef log_sigmoid(x): return -softplus(-x)\ndef elu(x, alpha=1.0):\n- return np.where(x > 0, x, alpha * np.expm1(x))\n+ safe_x = np.where(x >... | Python | Apache License 2.0 | google/jax | Fix NaNs in grad(jax.nn.elu) for large inputs. |
260,335 | 21.10.2019 15:11:51 | 25,200 | 0601b8cdc7d7cb6a89990e40380dc469ab7103af | make lax.broadcast_in_dim work on scalars
fixes | [
{
"change_type": "MODIFY",
"old_path": "jax/lax/lax.py",
"new_path": "jax/lax/lax.py",
"diff": "@@ -599,7 +599,7 @@ def broadcast(operand, sizes):\nreturn broadcast_p.bind(operand, sizes=tuple(sizes))\ndef broadcast_in_dim(operand, shape, broadcast_dimensions):\n- if operand.ndim == len(shape) and n... | Python | Apache License 2.0 | google/jax | make lax.broadcast_in_dim work on scalars
fixes #1548 |
260,411 | 24.10.2019 10:10:04 | -7,200 | 7cbd58b6c6f910e1d7b762d7ed51a057be138976 | Improved the type checking for uses of scan.
* Improved the type checking for uses of scan.
Previous way of checking was done after flattening and got
easily confused by tuples of different shapes, or None.
Relates to | [
{
"change_type": "MODIFY",
"old_path": "jax/lax/lax_control_flow.py",
"new_path": "jax/lax/lax_control_flow.py",
"diff": "@@ -447,7 +447,8 @@ def scan(f, init, xs):\nthe loop carry and the second represents a slice of the output.\ninit: an initial loop carry value of type ``c``, which can be a scala... | Python | Apache License 2.0 | google/jax | Improved the type checking for uses of scan. (#1551)
* Improved the type checking for uses of scan.
Previous way of checking was done after flattening and got
easily confused by tuples of different shapes, or None.
Relates to https://github.com/google/jax/issues/1534. |
260,335 | 28.10.2019 13:02:31 | 25,200 | 38d6bf5edaf1fdd16e267d3a68de1e2f8d61577b | add test for fori_loop index batching
fixes | [
{
"change_type": "MODIFY",
"old_path": "tests/lax_control_flow_test.py",
"new_path": "tests/lax_control_flow_test.py",
"diff": "@@ -312,6 +312,13 @@ class LaxControlFlowTest(jtu.JaxTestCase):\nexpected = (onp.array([10, 11]), onp.array([20, 20]))\nself.assertAllClose(ans, expected, check_dtypes=Fals... | Python | Apache License 2.0 | google/jax | add test for fori_loop index batching
fixes #1190 |
260,510 | 28.10.2019 12:54:04 | 25,200 | 5d5699991327afde27d2850cd6d630ea82d599e6 | Add custom interpreter notebook | [
{
"change_type": "MODIFY",
"old_path": "docs/index.rst",
"new_path": "docs/index.rst",
"diff": "@@ -23,6 +23,7 @@ For an introduction to JAX, start at the\nnotebooks/Common_Gotchas_in_JAX\nnotebooks/XLA_in_Python\nnotebooks/How_JAX_primitives_work\n+ notebooks/Writing_custom_interpreters_in_Jax.ipyn... | Python | Apache License 2.0 | google/jax | Add custom interpreter notebook |
260,510 | 28.10.2019 13:59:16 | 25,200 | e2e4e6e955f0c8a2d4fa6082497ab4b9eae5fdd2 | Fix title toc structure | [
{
"change_type": "MODIFY",
"old_path": "docs/notebooks/Writing_custom_interpreters_in_Jax.ipynb",
"new_path": "docs/notebooks/Writing_custom_interpreters_in_Jax.ipynb",
"diff": "\"colab_type\": \"text\"\n},\n\"source\": [\n- \"# Your first interpreter: `invert`\"\n+ \"## Your first interpreter: `inv... | Python | Apache License 2.0 | google/jax | Fix title toc structure |
260,314 | 29.10.2019 00:03:36 | 14,400 | 7aa20ec273839c4505a7810577858ad9ec962e4c | support mxstep for ode | [
{
"change_type": "MODIFY",
"old_path": "jax/experimental/ode.py",
"new_path": "jax/experimental/ode.py",
"diff": "@@ -209,21 +209,23 @@ def odeint(ofunc, y0, t, *args, **kwargs):\n**kwargs: Two relevant keyword arguments:\n'rtol': Relative local error tolerance for solver.\n'atol': Absolute local er... | Python | Apache License 2.0 | google/jax | support mxstep for ode |
260,411 | 29.10.2019 08:53:35 | -3,600 | 8880e262b09dc85b8014c5dc98677eeb2f45ae7a | Use redthedocs links for Colabs
Steer the documentation readers to readthedocs.
Also, minor fixes to the wording of How_jax_primitives_work, suggested by Dougal | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -37,7 +37,7 @@ are instances of such transformations. Another is [`vmap`](#auto-vectorization-w\nfor automatic vectorization, with more to come.\nThis is a research project, not an official Google product. Expec... | Python | Apache License 2.0 | google/jax | Use redthedocs links for Colabs (#1572)
Steer the documentation readers to readthedocs.
Also, minor fixes to the wording of How_jax_primitives_work, suggested by Dougal |
260,280 | 03.10.2019 16:01:41 | 10,800 | a0cf482636e0d1435fd28da45ed27f36554b9d55 | Adds new functionality to wraps | [
{
"change_type": "MODIFY",
"old_path": "jax/numpy/lax_numpy.py",
"new_path": "jax/numpy/lax_numpy.py",
"diff": "@@ -242,10 +242,45 @@ def _promote_args_like(op, *args):\ndef _constant_like(x, const):\nreturn onp.array(const, dtype=_dtype(x))\n+\n+def update_numpydoc(docstr, fun, op):\n+ '''Transform... | Python | Apache License 2.0 | google/jax | Adds new functionality to wraps |
260,335 | 28.10.2019 14:03:52 | 25,200 | f5079a6281ec637a55f021cdfeffd48db7c3d471 | improve vmap docstring and tree prefix errors
fixes | [
{
"change_type": "MODIFY",
"old_path": "jax/api.py",
"new_path": "jax/api.py",
"diff": "@@ -565,21 +565,28 @@ def vmap(fun, in_axes=0, out_axes=0):\nArgs:\nfun: Function to be mapped over additional axes.\n- in_axes: Specifies which input axes to map over. Normally this is a tuple with\n- one axes s... | Python | Apache License 2.0 | google/jax | improve vmap docstring and tree prefix errors
fixes #795 |
260,335 | 28.10.2019 15:20:49 | 25,200 | cbadfd41cecc59c499bfbe8b86c7dcc2ad279255 | allow unmapped vmap args to be arbitrary objects
fixes | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/batching.py",
"new_path": "jax/interpreters/batching.py",
"diff": "@@ -52,7 +52,8 @@ def batch_fun(fun, in_vals, in_dims):\n@transformation_with_aux\ndef batch_subtrace(master, in_dims, *in_vals):\ntrace = BatchTrace(master, core.cur_sublevel(... | Python | Apache License 2.0 | google/jax | allow unmapped vmap args to be arbitrary objects
fixes #183 |
260,559 | 30.10.2019 19:29:56 | 25,200 | 39daf07de340bcfb021571b25a9451db31887bfa | Add trivial implementations of eigvals/eigvalsh
* Add trivial implementations of eigvals/eigvalsh
The implementations simply delegate to eig/eigh.
* Enable eigvalsh test on TPU/GPU | [
{
"change_type": "MODIFY",
"old_path": "jax/numpy/linalg.py",
"new_path": "jax/numpy/linalg.py",
"diff": "@@ -109,6 +109,12 @@ def eig(a):\nreturn w, vr\n+@_wraps(onp.linalg.eigvals)\n+def eigvals(a):\n+ w, _ = eig(a)\n+ return w\n+\n+\n@_wraps(onp.linalg.eigh)\ndef eigh(a, UPLO=None, symmetrize_inp... | Python | Apache License 2.0 | google/jax | Add trivial implementations of eigvals/eigvalsh (#1604)
* Add trivial implementations of eigvals/eigvalsh
The implementations simply delegate to eig/eigh.
* Enable eigvalsh test on TPU/GPU |
260,335 | 30.10.2019 17:31:37 | 25,200 | eae47b2330b445d07a79fb2173084d3f13d59ebb | improve vmap error messages
fixes | [
{
"change_type": "MODIFY",
"old_path": "jax/api.py",
"new_path": "jax/api.py",
"diff": "@@ -647,12 +647,43 @@ def vmap(fun, in_axes=0, out_axes=0):\n\"or a (nested) tuple of those types, got {} and {} respectively.\")\nraise TypeError(msg.format(type(in_axes), type(out_axes)))\n+ def _check_axis_siz... | Python | Apache License 2.0 | google/jax | improve vmap error messages
fixes #705 |
260,335 | 31.10.2019 11:22:23 | 25,200 | 9d94c423232d9e8c7305d56f399f60332f31537e | Update jax/api.py | [
{
"change_type": "MODIFY",
"old_path": "jax/api.py",
"new_path": "jax/api.py",
"diff": "@@ -573,7 +573,7 @@ def vmap(fun, in_axes=0, out_axes=0):\nor None indicates which array axis to map over for all arguments (with\nNone indicating not to map any axis), and a tuple indicates which axis to\nmap fo... | Python | Apache License 2.0 | google/jax | Update jax/api.py
Co-Authored-By: Stephan Hoyer <shoyer@google.com> |
260,335 | 31.10.2019 11:57:37 | 25,200 | 14acca7b519b3b7da89c563aee76b44254a78c42 | address reviewer comments, fix test error | [
{
"change_type": "MODIFY",
"old_path": "jax/api.py",
"new_path": "jax/api.py",
"diff": "@@ -572,12 +572,11 @@ def vmap(fun, in_axes=0, out_axes=0):\nlength equal to the number of positional arguments to ``fun``. An integer\nor None indicates which array axis to map over for all arguments (with\nNone... | Python | Apache License 2.0 | google/jax | address reviewer comments, fix test error |
260,335 | 31.10.2019 13:04:12 | 25,200 | 213b899ef18e3426d421327acadc523609f39fee | check full error message | [
{
"change_type": "MODIFY",
"old_path": "tests/api_test.py",
"new_path": "tests/api_test.py",
"diff": "@@ -1097,7 +1097,11 @@ class APITest(jtu.JaxTestCase):\n# https://github.com/google/jax/issues/795\njtu.check_raises_regexp(\nlambda: api.vmap(lambda x: x, in_axes=(0, 0))(np.ones(3)),\n- ValueError... | Python | Apache License 2.0 | google/jax | check full error message |
260,335 | 31.10.2019 13:20:32 | 25,200 | d09571ebceb8f6a04830a497727768260ddd0bb6 | add test case per reviewer comment | [
{
"change_type": "MODIFY",
"old_path": "tests/api_test.py",
"new_path": "tests/api_test.py",
"diff": "@@ -1117,6 +1117,7 @@ class APITest(jtu.JaxTestCase):\nX = onp.random.randn(10, 4)\nU = onp.random.randn(10, 2)\n+\nself.assertRaisesRegex(\nValueError,\n\"vmap got inconsistent sizes for array axes... | Python | Apache License 2.0 | google/jax | add test case per reviewer comment |
260,335 | 31.10.2019 14:09:12 | 25,200 | 979b38352f23ed2c822481900558867fe7c5baf4 | make vmap structured axes work for any pytree | [
{
"change_type": "MODIFY",
"old_path": "jax/api.py",
"new_path": "jax/api.py",
"diff": "@@ -47,7 +47,8 @@ from .core import eval_jaxpr\nfrom .api_util import (wraps, flatten_fun, apply_flat_fun, flatten_fun_nokwargs,\nflatten_fun_nokwargs2, apply_flat_fun_nokwargs)\nfrom .tree_util import (tree_map,... | Python | Apache License 2.0 | google/jax | make vmap structured axes work for any pytree |
260,335 | 31.10.2019 16:21:02 | 25,200 | d2156ea1c5a42bcf93f1ee068c9b29038fda1e87 | improve names, avoid double lookup (thanks | [
{
"change_type": "MODIFY",
"old_path": "jax/linear_util.py",
"new_path": "jax/linear_util.py",
"diff": "@@ -197,15 +197,16 @@ def wrap_init(f, params={}):\ndef cache(call):\n- caches = weakref.WeakKeyDictionary()\n- def memoized_fun(f, *args):\n- cache = caches.setdefault(f.f, {})\n- key = (f.transf... | Python | Apache License 2.0 | google/jax | improve names, avoid double lookup (thanks @hawkinsp) |
260,517 | 01.11.2019 09:28:48 | 0 | 6f6209838ae3deb2aa14d62bed7e597cec79295b | Import nn in jax/__init__.py. | [
{
"change_type": "MODIFY",
"old_path": "jax/__init__.py",
"new_path": "jax/__init__.py",
"diff": "@@ -17,5 +17,6 @@ os.environ.setdefault('TF_CPP_MIN_LOG_LEVEL', '1')\nfrom jax.version import __version__\nfrom jax.api import *\n+from jax import nn\nfrom jax import random\nimport jax.numpy as np # si... | Python | Apache License 2.0 | google/jax | Import nn in jax/__init__.py. |
260,379 | 01.11.2019 15:38:24 | 0 | a3a59a44509fdbabd1717c977e44f5f9dfe79203 | Add optix to experimental
optix is a composable gradient processing and optimization library | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "jax/experimental/optix.py",
"diff": "+# Copyright 2018 Google LLC\n+#\n+# Licensed under the Apache License, Version 2.0 (the \"License\");\n+# you may not use this file except in compliance with the License.\n+# You may obtain a copy of the Lic... | Python | Apache License 2.0 | google/jax | Add optix to experimental
optix is a composable gradient processing and optimization library |
260,379 | 01.11.2019 15:40:09 | 0 | 035540578674d0c731b2921fcf7081acfd2831b5 | Add tests checking equivalence to optimizers.py | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "tests/optix_test.py",
"diff": "+# Copyright 2018 Google LLC\n+#\n+# Licensed under the Apache License, Version 2.0 (the \"License\");\n+# you may not use this file except in compliance with the License.\n+# You may obtain a copy of the License a... | Python | Apache License 2.0 | google/jax | Add tests checking equivalence to optimizers.py |
260,335 | 01.11.2019 13:46:13 | 25,200 | 71b34116e5f887ad923c22bbfc4cbe053ab081f7 | avoid generating a trivial gather from numpy indexing
fixes | [
{
"change_type": "MODIFY",
"old_path": "jax/numpy/lax_numpy.py",
"new_path": "jax/numpy/lax_numpy.py",
"diff": "@@ -2548,8 +2548,10 @@ def _rewriting_take(arr, idx):\ndef _gather(arr, treedef, static_idx, dynamic_idx):\nidx = _merge_static_and_dynamic_indices(treedef, static_idx, dynamic_idx)\nindex... | Python | Apache License 2.0 | google/jax | avoid generating a trivial gather from numpy indexing
fixes #1621 |
260,379 | 04.11.2019 15:43:17 | 0 | 72eb6b33fedee78a943553ff1736e98c158f5da9 | Add gradient noise function | [
{
"change_type": "MODIFY",
"old_path": "jax/experimental/optix.py",
"new_path": "jax/experimental/optix.py",
"diff": "@@ -284,6 +284,42 @@ def scale_by_schedule(step_size_fn):\nreturn init_fn, update_fn\n+AddNoiseState = collections.namedtuple(\"AddNoiseState\", \"count rng_key\")\n+\n+\n+def add_no... | Python | Apache License 2.0 | google/jax | Add gradient noise function |
260,379 | 04.11.2019 15:55:14 | 0 | b77d2a61e041d4ae50d7dbd19b5782a4dbfabdf5 | create noisy_sgd variant | [
{
"change_type": "MODIFY",
"old_path": "jax/experimental/optix.py",
"new_path": "jax/experimental/optix.py",
"diff": "@@ -380,6 +380,13 @@ def sgd(learning_rate, momentum=0., nesterov=False):\nscale(-learning_rate))\n+def noisy_sgd(learning_rate, eta=0.01, gamma=0.55, seed=42):\n+ return chainer(\n+... | Python | Apache License 2.0 | google/jax | create noisy_sgd variant |
260,379 | 04.11.2019 16:21:09 | 0 | 8d1b58334eec051eeafe73b6cd48eae7f7cdd244 | missing imports for grad_noise | [
{
"change_type": "MODIFY",
"old_path": "jax/experimental/optix.py",
"new_path": "jax/experimental/optix.py",
"diff": "@@ -45,8 +45,12 @@ from __future__ import print_function\nimport collections\nfrom jax import numpy as jnp\n+from jax import random as jrandom\n+\nfrom jax.tree_util import tree_leav... | Python | Apache License 2.0 | google/jax | missing imports for grad_noise |
260,379 | 04.11.2019 17:00:26 | 0 | cf81c834d5a42baf1814c5d8c7860b38d97deed4 | fix indexing of next random key | [
{
"change_type": "MODIFY",
"old_path": "jax/experimental/optix.py",
"new_path": "jax/experimental/optix.py",
"diff": "@@ -313,13 +313,13 @@ def add_noise(eta, gamma, seed):\nnum_vars = len(tree_leaves(updates))\ntreedef = tree_structure(updates)\nvariance = eta / (1 + state.count) ** gamma\n- keys =... | Python | Apache License 2.0 | google/jax | fix indexing of next random key |
260,335 | 05.11.2019 16:52:46 | 28,800 | 67a9247ebe76a691690dba429b5352c7dcd2af1f | avoid staging out some trivial convert_element_types | [
{
"change_type": "MODIFY",
"old_path": "jax/lax/lax.py",
"new_path": "jax/lax/lax.py",
"diff": "@@ -349,7 +349,7 @@ def convert_element_type(operand, new_dtype):\nAn array with the same shape as `operand`, cast elementwise to `new_dtype`.\n\"\"\"\nnew_dtype = xla_bridge.canonicalize_dtype(new_dtype)... | Python | Apache License 2.0 | google/jax | avoid staging out some trivial convert_element_types |
260,335 | 07.11.2019 10:14:16 | 28,800 | bd851ee59f3424cf20a470f54de524b022b98255 | fix indexing error after involving empty result | [
{
"change_type": "MODIFY",
"old_path": "jax/numpy/lax_numpy.py",
"new_path": "jax/numpy/lax_numpy.py",
"diff": "@@ -2557,7 +2557,9 @@ def _gather(arr, treedef, static_idx, dynamic_idx):\nindexer = _index_to_gather(shape(arr), idx) # shared with _scatter_update\ny = arr\n- if indexer.gather_indices.s... | Python | Apache License 2.0 | google/jax | fix indexing error after #1622 involving empty result |
260,504 | 07.11.2019 17:03:03 | 18,000 | 4be1d1878d86f7ebaf06c08b2f9f6752659fff49 | Add missing parameter to make_tuple | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/xla.py",
"new_path": "jax/interpreters/xla.py",
"diff": "@@ -465,7 +465,7 @@ def _execute_replicated(compiled, backend, handlers, tuple_args, *args):\n[device_put(x, device, backend=backend) for x in args if x is not token]\nfor device in comp... | Python | Apache License 2.0 | google/jax | Add missing parameter to make_tuple (#1642) |
260,335 | 08.11.2019 10:15:17 | 28,800 | 1d8157810d7cdaa92dfaae7c00e5bf58dac4ca08 | typo: use _prod not prod | [
{
"change_type": "MODIFY",
"old_path": "jax/numpy/lax_numpy.py",
"new_path": "jax/numpy/lax_numpy.py",
"diff": "@@ -2559,7 +2559,7 @@ def _gather(arr, treedef, static_idx, dynamic_idx):\n# We avoid generating a gather when indexer.gather_indices.size is empty\n# unless indexer.slice_shape also corre... | Python | Apache License 2.0 | google/jax | typo: use _prod not prod |
260,510 | 08.11.2019 13:11:17 | 28,800 | 7bc2b0878ad868ea81a31c2fa638219bdd327f4a | Update description of eqn.parmas | [
{
"change_type": "MODIFY",
"old_path": "docs/notebooks/Writing_custom_interpreters_in_Jax.ipynb",
"new_path": "docs/notebooks/Writing_custom_interpreters_in_Jax.ipynb",
"diff": "\"* `jaxpr.outvars` - the `outvars` of a Jaxpr are the variables that are returned by the Jaxpr. Every Jaxpr has multiple ... | Python | Apache License 2.0 | google/jax | Update description of eqn.parmas |
260,510 | 08.11.2019 13:15:42 | 28,800 | 6fa4cc0240e5e20bb5d64e602ee4989c7682c784 | Fix np.clip broadcasting | [
{
"change_type": "MODIFY",
"old_path": "jax/numpy/lax_numpy.py",
"new_path": "jax/numpy/lax_numpy.py",
"diff": "@@ -986,11 +986,11 @@ def clip(a, a_min=None, a_max=None):\nif a_min is not None:\nif _dtype(a_min) != _dtype(a):\na_min = lax.convert_element_type(a_min, _dtype(a))\n- a = lax.max(a_min, ... | Python | Apache License 2.0 | google/jax | Fix np.clip broadcasting |
260,510 | 08.11.2019 14:12:28 | 28,800 | 6c305f3f481208562fc099e41ceba3bda45d16bd | Extend clip test to test broadcasting a_min and a_max | [
{
"change_type": "MODIFY",
"old_path": "tests/lax_numpy_test.py",
"new_path": "tests/lax_numpy_test.py",
"diff": "@@ -683,7 +683,10 @@ class LaxBackedNumpyTests(jtu.JaxTestCase):\n\"shape\": shape, \"dtype\": dtype, \"a_min\": a_min, \"a_max\": a_max,\n\"rng\": jtu.rand_default()}\nfor shape in all_... | Python | Apache License 2.0 | google/jax | Extend clip test to test broadcasting a_min and a_max |
260,335 | 11.11.2019 07:45:31 | 28,800 | 6434340d00d4b0a2b05c63fb48e68ee73ec0c27f | Hoist loop-invariant residuals out of scan in partial eval
Fixes | [
{
"change_type": "MODIFY",
"old_path": "jax/lax/lax_control_flow.py",
"new_path": "jax/lax/lax_control_flow.py",
"diff": "@@ -617,34 +617,81 @@ def _scan_partial_eval(trace, *tracers, **kwargs):\ncarry_uk = _map(operator.or_, carry_uk, carry_uk_out)\nelse:\nassert False, \"Fixpoint not reached\"\n+ ... | Python | Apache License 2.0 | google/jax | Hoist loop-invariant residuals out of scan in partial eval
Fixes #810
Co-authored-by: James Bradbury <jekbradbury@google.com> |
260,335 | 11.11.2019 13:04:36 | 28,800 | 0fa38eccc0e25deb782c7afd83b42dd9335dd6f7 | use np.matmul and not `@` for py27 | [
{
"change_type": "MODIFY",
"old_path": "tests/lax_control_flow_test.py",
"new_path": "tests/lax_control_flow_test.py",
"diff": "@@ -1368,7 +1368,7 @@ class LaxControlFlowTest(jtu.JaxTestCase):\ndef testIssue810(self):\ndef loss(A):\ndef step(x, i):\n- return A @ x, None\n+ return np.matmul(A, x), No... | Python | Apache License 2.0 | google/jax | use np.matmul and not `@` for py27 |
260,335 | 11.11.2019 13:24:24 | 28,800 | a73979f7989ea0c0791ddacdd70d7240225f7623 | use onp not lnp in module-level scope
fixes google import | [
{
"change_type": "MODIFY",
"old_path": "tests/lax_numpy_test.py",
"new_path": "tests/lax_numpy_test.py",
"diff": "@@ -696,9 +696,9 @@ class LaxBackedNumpyTests(jtu.JaxTestCase):\n\"rng_factory\": jtu.rand_default}\nfor shape in all_shapes for dtype in number_dtypes\nfor a_min, a_max in [(-1, None), ... | Python | Apache License 2.0 | google/jax | use onp not lnp in module-level scope
fixes google import |
260,335 | 09.11.2019 17:08:02 | 28,800 | 5ec07491a110de7c42da313b5623417e6aed0c7d | simplify xla op metadata, DeviceArray repr
Just minor cleanup. | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/xla.py",
"new_path": "jax/interpreters/xla.py",
"diff": "@@ -143,31 +143,23 @@ def xla_primitive_callable(prim, *abstract_args, **params):\n@cache()\ndef primitive_computation(prim, *xla_shapes, **params):\n- backend = params.get('backend', No... | Python | Apache License 2.0 | google/jax | simplify xla op metadata, DeviceArray repr
Just minor cleanup. |
260,335 | 09.11.2019 17:08:54 | 28,800 | 46db509b30fe1c3067aa6264526a5e2a3d7f6b9d | rename TestSpec -> CallSpec to avoid warning | [
{
"change_type": "MODIFY",
"old_path": "tests/core_test.py",
"new_path": "tests/core_test.py",
"diff": "@@ -106,19 +106,19 @@ def product_io_fun(x, y):\nR = onp.random.randn\n-TestSpec = namedtuple('TestSpec', ['fun', 'args'])\n+CallSpec = namedtuple('CallSpec', ['fun', 'args'])\ntest_specs_base = [... | Python | Apache License 2.0 | google/jax | rename TestSpec -> CallSpec to avoid warning |
260,335 | 11.11.2019 15:07:46 | 28,800 | 6f47ac007f9358bcea7ff1cde3c1ad457a55475c | fix xla.lower_fun and jax.xla_computation | [
{
"change_type": "MODIFY",
"old_path": "jax/api.py",
"new_path": "jax/api.py",
"diff": "@@ -51,8 +51,8 @@ from .tree_util import (tree_map, tree_flatten, tree_unflatten, tree_structure,\n_replace_nones)\nfrom .util import (unzip2, unzip3, curry, partial, safe_map, safe_zip,\nWrapHashably, Hashable, ... | Python | Apache License 2.0 | google/jax | fix xla.lower_fun and jax.xla_computation |
260,335 | 11.11.2019 15:17:11 | 28,800 | d77cf175a9cbcbed54cb1e63d049dbb42348cf0c | add missing attribute in optix (for google tests) | [
{
"change_type": "MODIFY",
"old_path": "jax/experimental/optix.py",
"new_path": "jax/experimental/optix.py",
"diff": "@@ -85,6 +85,7 @@ ClipByGlobalNormState = collections.namedtuple(\"ClipByGlobalNormState\", \"\")\ndef global_norm(items):\nreturn jnp.sqrt(jnp.sum([jnp.sum(x**2) for x in tree_leave... | Python | Apache License 2.0 | google/jax | add missing attribute in optix (for google tests) |
260,403 | 09.11.2019 00:16:18 | 28,800 | 032873047a2788fe30703e8ad86162b69e4e5490 | linspace, logspace, geomspace jittable and differentiable in start and stop args | [
{
"change_type": "MODIFY",
"old_path": "jax/numpy/lax_numpy.py",
"new_path": "jax/numpy/lax_numpy.py",
"diff": "@@ -1677,6 +1677,7 @@ def arange(start, stop=None, step=None, dtype=None):\n# Fall back to instantiating an ndarray in host memory\nreturn onp.arange(start, stop=stop, step=step, dtype=dty... | Python | Apache License 2.0 | google/jax | linspace, logspace, geomspace jittable and differentiable in start and stop args |
260,335 | 12.11.2019 06:18:43 | 28,800 | c4101c562739d87334632e1bd8d08f40e9c768f4 | fix DeviceArray repr (for google internal test) | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/xla.py",
"new_path": "jax/interpreters/xla.py",
"diff": "@@ -647,7 +647,10 @@ class DeviceArray(DeviceValue):\nself._npy_value = None\ndef __repr__(self):\n- return onp.array_repr(self._value)\n+ # TODO(mattjj): consider implementing array_rep... | Python | Apache License 2.0 | google/jax | fix DeviceArray repr (for google internal test) |
260,335 | 12.11.2019 06:55:01 | 28,800 | 938eb20ba11b48ec7a995e985492b0383fc35c65 | improve DeviceArray.__repr__ with onp.array2string | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/xla.py",
"new_path": "jax/interpreters/xla.py",
"diff": "@@ -647,10 +647,8 @@ class DeviceArray(DeviceValue):\nself._npy_value = None\ndef __repr__(self):\n- # TODO(mattjj): consider implementing array_repr ourselves\n- s = onp.array_repr(self... | Python | Apache License 2.0 | google/jax | improve DeviceArray.__repr__ with onp.array2string |
260,335 | 12.11.2019 07:44:53 | 28,800 | 0d053f0e5b477d965bcb091345fbdc895dc1fff6 | temporarily revert due to TFP test failures
This commit unfortunately un-fixes but only until we sort out why a TF
Probvability test started failing. | [
{
"change_type": "MODIFY",
"old_path": "jax/numpy/lax_numpy.py",
"new_path": "jax/numpy/lax_numpy.py",
"diff": "@@ -1689,56 +1689,76 @@ def _wrap_numpy_nullary_function(f):\nreturn wrapper\n-@_wraps(onp.linspace)\n+# TODO(mattjj,levskaya): use this version when we sort out test failure\n+# @_wraps(o... | Python | Apache License 2.0 | google/jax | temporarily revert #1658 due to TFP test failures
This commit unfortunately un-fixes #1571, but only until we sort out why a TF
Probvability test started failing. |
260,403 | 12.11.2019 16:40:29 | 28,800 | 350630fd1281844005c1f7eb066d839825861c9a | fix degenerate case behavior of linspace | [
{
"change_type": "MODIFY",
"old_path": "jax/numpy/lax_numpy.py",
"new_path": "jax/numpy/lax_numpy.py",
"diff": "@@ -1689,76 +1689,65 @@ def _wrap_numpy_nullary_function(f):\nreturn wrapper\n-# TODO(mattjj,levskaya): use this version when we sort out test failure\n-# @_wraps(onp.linspace)\n-# def lin... | Python | Apache License 2.0 | google/jax | fix degenerate case behavior of linspace |
260,405 | 12.11.2019 18:11:39 | 28,800 | ddbdcfb9c965d8c8b27f2114d0369e715d71380a | Add TPU Driver to jaxlib | [
{
"change_type": "MODIFY",
"old_path": "build/BUILD.bazel",
"new_path": "build/BUILD.bazel",
"diff": "@@ -28,6 +28,7 @@ sh_binary(\nsrcs = [\"install_xla_in_source_tree.sh\"],\ndata = [\n\"@org_tensorflow//tensorflow/compiler/xla/python:xla_client\",\n+ \"@org_tensorflow//tensorflow/compiler/xla/pyt... | Python | Apache License 2.0 | google/jax | Add TPU Driver to jaxlib (#1673) |
260,335 | 12.11.2019 18:38:07 | 28,800 | 6cd995e3ffe8c8fc87679ea3d23f57b488de0196 | allow tokens in op-by-op by calling into _xla_callable_args | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/xla.py",
"new_path": "jax/interpreters/xla.py",
"diff": "@@ -135,19 +135,18 @@ 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 | allow tokens in op-by-op by calling into _xla_callable_args |
260,335 | 13.11.2019 22:13:01 | 28,800 | 87774de3a267f37c8b3b79cec41ab73658c27fe9 | disable lax.axis_index because it's buggy | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/pxla.py",
"new_path": "jax/interpreters/pxla.py",
"diff": "@@ -227,6 +227,7 @@ parallel_pure_rules = {}\ndef axis_index(axis_name):\n+ raise NotImplementedError # TODO(mattjj): fix\ndynamic_axis_env = _thread_local_state.dynamic_axis_env\nfram... | Python | Apache License 2.0 | google/jax | disable lax.axis_index because it's buggy |
260,335 | 14.11.2019 00:22:25 | 28,800 | 483553ffd700362d4c475ccaab063e412673e4cc | patch lax.axis_index, add warning about soft_pmap | [
{
"change_type": "MODIFY",
"old_path": "jax/api.py",
"new_path": "jax/api.py",
"diff": "@@ -888,6 +888,7 @@ class _TempAxisName(object):\ndef soft_pmap(fun, axis_name=None, backend=None):\n+ warn(\"soft_pmap is an experimental feature and probably has bugs!\")\n_check_callable(fun)\naxis_name = _Tem... | Python | Apache License 2.0 | google/jax | patch lax.axis_index, add warning about soft_pmap |
260,405 | 14.11.2019 14:00:08 | 28,800 | 3f0c1cd9dd22a3b3c7abcf769a0eb46d2a009fb7 | Add TPU Driver as JAX backend for high-performance access to Google Cloud TPU hardware. | [
{
"change_type": "MODIFY",
"old_path": "jax/lib/__init__.py",
"new_path": "jax/lib/__init__.py",
"diff": "@@ -44,6 +44,10 @@ def _check_jaxlib_version():\n_check_jaxlib_version()\n+try:\n+ from jaxlib import tpu_client\n+except:\n+ tpu_client = None\nfrom jaxlib import xla_client\nfrom jaxlib import... | Python | Apache License 2.0 | google/jax | Add TPU Driver as JAX backend for high-performance access to Google Cloud TPU hardware. (#1675) |
260,335 | 14.11.2019 16:15:50 | 28,800 | c19e65b7abc0508599a9cf9175aa33d1e808217d | fix shard_args logic, closes | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/pxla.py",
"new_path": "jax/interpreters/pxla.py",
"diff": "@@ -16,7 +16,7 @@ from __future__ import absolute_import\nfrom __future__ import division\nfrom __future__ import print_function\n-from collections import namedtuple\n+from collections... | Python | Apache License 2.0 | google/jax | fix shard_args logic, closes #1688
Co-authored-by: Skye Wanderman-Milne <skyewm@google.com> |
260,335 | 14.11.2019 16:51:39 | 28,800 | be28700b8babb7e4951f21f7f0356864fcda64ea | skip some tests on tpu | [
{
"change_type": "MODIFY",
"old_path": "tests/lax_test.py",
"new_path": "tests/lax_test.py",
"diff": "@@ -1512,6 +1512,7 @@ class LaxTest(jtu.JaxTestCase):\n\"Shapes must be 1D sequences of concrete values of integer type.*\",\nlambda: lax.reshape(onp.ones(3,), (1.5, 2.0)))\n+ @jtu.skip_on_devices(\... | Python | Apache License 2.0 | google/jax | skip some tests on tpu |
260,335 | 14.11.2019 21:18:23 | 28,800 | 728cb7fba86843217a67e0b2b5ffd6c1411fec71 | improve grad error message without enough args
fixes | [
{
"change_type": "MODIFY",
"old_path": "jax/api.py",
"new_path": "jax/api.py",
"diff": "@@ -388,6 +388,13 @@ def value_and_grad(fun, argnums=0, has_aux=False, holomorphic=False):\n@wraps(fun, docstr=docstr, argnums=argnums)\ndef value_and_grad_f(*args, **kwargs):\n+ max_argnum = argnums if type(argn... | Python | Apache License 2.0 | google/jax | improve grad error message without enough args
fixes #1696 |
260,335 | 14.11.2019 21:37:28 | 28,800 | 3ac3271381dc2628f843ea0a6120a6f9664963f4 | improve docs on shape/dtype loop stability
also tweak how some error messages are printed, and corresponding tests
fixes | [
{
"change_type": "MODIFY",
"old_path": "jax/lax/lax_control_flow.py",
"new_path": "jax/lax/lax_control_flow.py",
"diff": "@@ -112,6 +112,14 @@ def fori_loop(lower, upper, body_fun, init_val):\nUnlike that Python version, ``fori_loop`` is implemented in terms of a call to\n``while_loop``. See the doc... | Python | Apache License 2.0 | google/jax | improve docs on shape/dtype loop stability
also tweak how some error messages are printed, and corresponding tests
fixes #1686 |
260,393 | 15.11.2019 14:33:39 | 28,800 | 979a8d30b77e2da9cd11e49cbdeaab29fac7c3d8 | Cast perm to tuple | [
{
"change_type": "MODIFY",
"old_path": "jax/lax/lax_parallel.py",
"new_path": "jax/lax/lax_parallel.py",
"diff": "@@ -114,7 +114,7 @@ def ppermute(x, axis_name, perm):\nAn array with the same shape as ``x`` with slices along the axis\n``axis_name`` gathered from ``x`` according to the permutation ``... | Python | Apache License 2.0 | google/jax | Cast perm to tuple |
260,393 | 15.11.2019 14:35:12 | 28,800 | 3978007be85186cb579af0b9d80d85fb7b85999b | Explict typing | [
{
"change_type": "MODIFY",
"old_path": "tests/pmap_test.py",
"new_path": "tests/pmap_test.py",
"diff": "@@ -337,7 +337,7 @@ class PmapTest(jtu.JaxTestCase):\nperm = [num_devices - 1] + list(range(num_devices - 1))\nf = pmap(\nlambda x: lax.ppermute(x, \"i\", zip(range(num_devices), perm)), \"i\")\n-... | Python | Apache License 2.0 | google/jax | Explict typing |
260,335 | 16.11.2019 14:40:25 | 28,800 | 063419ab5f6cbcad3df6b2e509b0f1c8cf6b37c3 | tweak test name (cf. | [
{
"change_type": "MODIFY",
"old_path": "tests/pmap_test.py",
"new_path": "tests/pmap_test.py",
"diff": "@@ -332,7 +332,8 @@ class PmapTest(jtu.JaxTestCase):\nself.assertAllClose(ans, expected, check_dtypes=False)\n@jtu.skip_on_devices(\"cpu\", \"gpu\")\n- def testIssue1703(self):\n+ def testPpermute... | Python | Apache License 2.0 | google/jax | tweak test name (cf. #1704) |
260,335 | 19.11.2019 14:20:49 | 28,800 | 5edda9e66c35cbf6c5398206a4d931e904fe0b3b | remove very old "what we're working on" | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -673,17 +673,6 @@ write unrestricted Python+Numpy and still make use of a hardware accelerator.\nBut when you want to maximize performance, you can often use `jit` in your own\ncode to compile and end-to-end opt... | Python | Apache License 2.0 | google/jax | remove very old "what we're working on" |
260,335 | 20.11.2019 07:49:13 | 28,800 | 68b7dc85c3d0ecc6893ca1bab46b0f18e40a0baf | fix multi-host pmap, disambiguate nrep
When inlined a function into its caller, it mixed up two distinct
values referred to as `nrep` in the two functions: num_global_replicas
vs num_local_replicas. The result caused errors on multi-host setups. | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/pxla.py",
"new_path": "jax/interpreters/pxla.py",
"diff": "@@ -464,8 +464,8 @@ def parallel_callable(fun, backend, axis_name, axis_size, devices, *avals):\njaxpr_replicas = xla.jaxpr_replicas(jaxpr)\nnum_local_replicas = axis_size * jaxpr_repl... | Python | Apache License 2.0 | google/jax | fix multi-host pmap, disambiguate nrep
When #1667 inlined a function into its caller, it mixed up two distinct
values referred to as `nrep` in the two functions: num_global_replicas
vs num_local_replicas. The result caused errors on multi-host setups.
Co-authored-by: Jonathan Heek <jheek@google.com> |
260,335 | 20.11.2019 09:12:15 | 28,800 | 2353345446486c542911a8b434802200a10d85b0 | only use one gensym in tracers_to_jaxpr
fixes a bug in revealed by additional internal testing | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/partial_eval.py",
"new_path": "jax/interpreters/partial_eval.py",
"diff": "@@ -376,43 +376,38 @@ def new_eqn_recipe(invars, outvars, primitive, bound_subjaxprs, params):\nreturn JaxprEqnRecipe(object(), invars, map(ref, outvars), primitive,\nb... | Python | Apache License 2.0 | google/jax | only use one gensym in tracers_to_jaxpr
fixes a bug in #1721 revealed by additional internal testing |
260,322 | 22.11.2019 02:51:57 | 0 | dc5a599a9c9cc7eca8a86a234debcc55f84c18a0 | Fix bug in jax repeat which caused a value error for repeat arguments containing 0. | [
{
"change_type": "MODIFY",
"old_path": "jax/numpy/lax_numpy.py",
"new_path": "jax/numpy/lax_numpy.py",
"diff": "@@ -1958,6 +1958,7 @@ def repeat(a, repeats, axis=None):\nfor i, repeat in enumerate(repeats_tiled):\nif not isinstance(repeat, int):\nrepeat = repeat.item()\n+ if repeat != 0:\nret = conc... | Python | Apache License 2.0 | google/jax | Fix bug in jax repeat which caused a value error for repeat arguments containing 0. (#1740) |
260,335 | 22.11.2019 10:54:03 | 28,800 | b358c27c92f614b6ab24e7c99ea5902a4da92e39 | replace x.shape with onp.shape(x) in random.py
fixes (thanks | [
{
"change_type": "MODIFY",
"old_path": "jax/random.py",
"new_path": "jax/random.py",
"diff": "@@ -324,7 +324,7 @@ def randint(key, shape, minval, maxval, dtype=onp.int64):\n@partial(jit, static_argnums=(1, 4))\ndef _randint(key, shape, minval, maxval, dtype):\n- _check_shape(\"randint\", shape, minv... | Python | Apache License 2.0 | google/jax | replace x.shape with onp.shape(x) in random.py
fixes #1748 (thanks @vitchyr) |
260,335 | 22.11.2019 18:06:10 | 28,800 | 8f2a050e1ed0817d368d3c38c92fa4e7b4f8301c | fix cov test tol | [
{
"change_type": "MODIFY",
"old_path": "tests/lax_numpy_test.py",
"new_path": "tests/lax_numpy_test.py",
"diff": "@@ -2079,7 +2079,7 @@ class LaxBackedNumpyTests(jtu.JaxTestCase):\nargs_maker = self._GetArgsMaker(rng, [shape], [dtype])\nonp_fun = partial(onp.cov, rowvar=rowvar, ddof=ddof, bias=bias)... | Python | Apache License 2.0 | google/jax | fix cov test tol
Co-authored-by: Skye Wanderman-Milne <skyewm@google.com> |
260,411 | 29.10.2019 08:56:39 | -3,600 | b12a8019c8711afaef9b4d1a9f437bf944575cee | Update docs/notebooks/JAX_pytrees.ipynb | [
{
"change_type": "MODIFY",
"old_path": "docs/notebooks/JAX_pytrees.ipynb",
"new_path": "docs/notebooks/JAX_pytrees.ipynb",
"diff": "\"colab_type\": \"text\"\n},\n\"source\": [\n- \"Pytrees containers can be lists, tuples, dicts, namedtuple. Leaves as numeric and ndarrays:\"\n+ \"Pytrees containers c... | Python | Apache License 2.0 | google/jax | Update docs/notebooks/JAX_pytrees.ipynb
Co-Authored-By: Stephan Hoyer <shoyer@google.com> |
260,335 | 25.11.2019 14:03:59 | 28,800 | 36c882ba469fc009dba1a29df640c72eec12b36b | raise an error on jit-of-multi-host-pmap | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/xla.py",
"new_path": "jax/interpreters/xla.py",
"diff": "@@ -352,6 +352,20 @@ def eqn_replicas(eqn):\nelse:\nreturn 1\n+def jaxpr_has_pmap(jaxpr):\n+ return any(eqn_has_pmap(eqn) for eqn in jaxpr.eqns)\n+\n+def eqn_has_pmap(eqn):\n+ if eqn.bou... | Python | Apache License 2.0 | google/jax | raise an error on jit-of-multi-host-pmap (#1761)
Co-authored-by: Skye Wanderman-Milne <skyewm@google.com> |
260,335 | 26.11.2019 07:56:48 | 28,800 | 2867e4be082237e2b184d7b533dfcbfa31b24f63 | fix grad of jit caching bug | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/ad.py",
"new_path": "jax/interpreters/ad.py",
"diff": "@@ -26,7 +26,8 @@ from ..ad_util import (add_jaxvals, add_jaxvals_p, zeros_like_jaxval, zeros_like\nfrom ..abstract_arrays import raise_to_shaped\nfrom ..util import unzip2, unzip3, safe_m... | Python | Apache License 2.0 | google/jax | fix grad of jit caching bug
Co-authored-by: Dougal Maclaurin <dougalm@google.com> |
260,335 | 26.11.2019 17:06:57 | 28,800 | b7579492690b1d94da89b7f1d1b6ddcfadbaacae | fix pulldown bugs | [
{
"change_type": "MODIFY",
"old_path": "jaxlib/BUILD",
"new_path": "jaxlib/BUILD",
"diff": "@@ -29,6 +29,7 @@ cc_library(\n\"-fexceptions\",\n\"-fno-strict-aliasing\",\n],\n+ features = [\"-use_header_modules\"],\ndeps = [\n\"@com_google_absl//absl/base\",\n\"@pybind11\",\n@@ -161,6 +162,7 @@ cuda_l... | Python | Apache License 2.0 | google/jax | fix pulldown bugs |
260,335 | 27.11.2019 15:25:49 | 28,800 | ac251046fcbe0a940ab79fe49d58227e61f7c675 | make remat_call partial-eval into one remat_call | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/ad.py",
"new_path": "jax/interpreters/ad.py",
"diff": "@@ -187,18 +187,21 @@ def backward_pass(jaxpr, consts, freevar_vals, args, cotangents_in):\nwrite_primal(eqn.outvars[0], ans)\nelse:\n(subjaxpr, const_vars, bound_vars), = eqn.bound_subjax... | Python | Apache License 2.0 | google/jax | make remat_call partial-eval into one remat_call |
260,335 | 27.11.2019 19:15:53 | 28,800 | 115d365a92ef038426b5d2777943948463c2725b | raise error if we do concrete aval FLOPs w/o remat | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/partial_eval.py",
"new_path": "jax/interpreters/partial_eval.py",
"diff": "@@ -18,6 +18,8 @@ from __future__ import print_function\nimport itertools as it\nfrom collections import namedtuple, Counter, defaultdict\n+import contextlib\n+import t... | Python | Apache License 2.0 | google/jax | raise error if we do concrete aval FLOPs w/o remat |
260,314 | 01.12.2019 09:44:45 | 18,000 | 7ec2ac58ca3fb2142dc1bf2b4eb5335f119273cc | not use custom transform for gamma sampler | [
{
"change_type": "MODIFY",
"old_path": "jax/random.py",
"new_path": "jax/random.py",
"diff": "@@ -41,7 +41,9 @@ from jax import core\nfrom jax import abstract_arrays\nfrom jax.scipy.special import logit\nfrom jax.scipy.linalg import cholesky\n+from jax.interpreters import ad\nfrom jax.interpreters i... | Python | Apache License 2.0 | google/jax | not use custom transform for gamma sampler |
260,551 | 02.12.2019 15:02:27 | 28,800 | 32b5d6e9db3758eba5c75b0103bc4b509dfcbef2 | Memoize TPU driver backend to be consistent with other XLA clients. | [
{
"change_type": "MODIFY",
"old_path": "jax/lib/xla_bridge.py",
"new_path": "jax/lib/xla_bridge.py",
"diff": "@@ -120,19 +120,27 @@ def _get_local_backend(platform=None):\nreturn backend\n+register_backend('xla', _get_local_backend)\n+\n+# memoize the TPU driver to be consistent with xla_client beha... | Python | Apache License 2.0 | google/jax | Memoize TPU driver backend to be consistent with other XLA clients. (#1798) |
260,647 | 02.12.2019 16:07:23 | 28,800 | 51686f43d390e209923b476d04d352bb2a340f01 | Make get_compile_options API accept 2D device assignment. | [
{
"change_type": "MODIFY",
"old_path": "jax/lib/xla_bridge.py",
"new_path": "jax/lib/xla_bridge.py",
"diff": "@@ -85,7 +85,9 @@ def get_compile_options(num_replicas=None, device_assignment=None):\nmsg = \"device_assignment does not match num_replicas: {} vs {}.\"\nraise ValueError(msg.format(device_... | Python | Apache License 2.0 | google/jax | Make get_compile_options API accept 2D device assignment. |
260,335 | 02.12.2019 17:44:58 | 28,800 | 09f94a1e3d6a4f43d82f43e85ed1dc74f5290b93 | add optional `length` argument to scan | [
{
"change_type": "MODIFY",
"old_path": "jax/lax/lax_control_flow.py",
"new_path": "jax/lax/lax_control_flow.py",
"diff": "@@ -438,7 +438,7 @@ xla.initial_style_translations[cond_p] = _cond_translation_rule\n### scan\n-def scan(f, init, xs):\n+def scan(f, init, xs, length=None):\n\"\"\"Scan a functio... | Python | Apache License 2.0 | google/jax | add optional `length` argument to scan |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.