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 | 01.02.2019 14:46:58 | 28,800 | 75849f2b48fbbf1edcd102de700754e69c1feb07 | pjit tests working again | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/pxla.py",
"new_path": "jax/interpreters/pxla.py",
"diff": "@@ -37,7 +37,7 @@ from ..lib import xla_bridge as xb\nfrom .xla import (xla_shape, xla_destructure, translation_rule, abstractify,\nxla_shape_to_result_shape, jaxpr_computation)\nfrom ... | Python | Apache License 2.0 | google/jax | pjit tests working again |
260,335 | 01.02.2019 16:30:17 | 28,800 | f2f23c5d8c7703b71d2e42db0af37f167e06c59c | did somebody say grad of pjit? | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/ad.py",
"new_path": "jax/interpreters/ad.py",
"diff": "@@ -186,12 +186,10 @@ class JVPTrace(Trace):\nnonzero_tangents, in_tree_def = tree_to_jaxtuples(tangents)\nf, out_tree_def = traceable(jvp_subtrace(f, self.master), in_tree_def)\nif call_p... | Python | Apache License 2.0 | google/jax | did somebody say grad of pjit? |
260,335 | 01.02.2019 16:59:28 | 28,800 | 092712fdb0d6ee1997de92e9b8893ccdd51a8eed | move basic pjit+autodiff tests | [
{
"change_type": "DELETE",
"old_path": "pjit_nesting.py",
"new_path": null,
"diff": "-import numpy as onp\n-\n-import jax.numpy as np\n-from jax import jvp, grad, pjit, pmap, make_jaxpr\n-from jax.lax import psum\n-\n-\n-def f(x, y):\n- return psum(psum(x, 'i'), 'j')\n-f = pjit(f, 'i')\n-f = pjit(f,... | Python | Apache License 2.0 | google/jax | move basic pjit+autodiff tests |
260,335 | 01.02.2019 17:06:26 | 28,800 | 9a251efdc11959ebc3ae343bf2a8afcfd05c9110 | remove stale OutAxesThunk class | [
{
"change_type": "MODIFY",
"old_path": "jax/api.py",
"new_path": "jax/api.py",
"diff": "@@ -277,20 +277,6 @@ def pjit(fun, axis_name, in_axes=0, out_axes=0, mesh_axis=0):\nf_jitted.__name__ = \"pjit({})\".format(f_jitted.__name__)\nreturn f_jitted\n-class OutAxesThunk(object):\n- # This class is jus... | Python | Apache License 2.0 | google/jax | remove stale OutAxesThunk class |
260,335 | 02.02.2019 09:22:37 | 28,800 | 9f3060a0e6286e60dc87057e3526d827b5fc972a | index_take in terms of gather, delete index_untake
(c.f. | [
{
"change_type": "MODIFY",
"old_path": "jax/lax.py",
"new_path": "jax/lax.py",
"diff": "@@ -255,54 +255,19 @@ def scatter_add(operand, scatter_indices, updates, dimension_numbers=None):\nupdate_consts=consts, dimension_numbers=dimension_numbers,\nupdates_shape=updates.shape)\n-\ndef index_take(src, ... | Python | Apache License 2.0 | google/jax | index_take in terms of gather, delete index_untake
(c.f. #304) |
260,335 | 02.02.2019 12:17:11 | 28,800 | f5cffd722a618bb556aecf8dd63d3875e2b8851e | delete more dead index_take code | [
{
"change_type": "MODIFY",
"old_path": "jax/lax.py",
"new_path": "jax/lax.py",
"diff": "@@ -2144,74 +2144,6 @@ ad.primitive_jvps[scatter_p] = _scatter_jvp\nad.primitive_transposes[scatter_p] = _scatter_transpose_rule\n-\n-def _index_take_shape_rule(src, *idxs, **kwargs):\n- axes = kwargs['axes']\n- ... | Python | Apache License 2.0 | google/jax | delete more dead index_take code |
260,335 | 02.02.2019 15:37:04 | 28,800 | a8c2768176e270fd343f5d18f88ca760cbe464f4 | make pjit out_axes=None work | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/pxla.py",
"new_path": "jax/interpreters/pxla.py",
"diff": "@@ -114,8 +114,13 @@ def shard_arg(mesh_spec, mesh_axis, axis, arg):\ndef unshard_output(mesh_spec, mesh_axis, out_axis, out_shards):\n\"\"\"Collect and concatenate sharded device resu... | Python | Apache License 2.0 | google/jax | make pjit out_axes=None work |
260,335 | 02.02.2019 16:18:43 | 28,800 | b16b4ddf4bf775cb0aeff4469f1496ec6c2b6d5e | the many ways to pjit a cat | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/pxla.py",
"new_path": "jax/interpreters/pxla.py",
"diff": "@@ -37,7 +37,7 @@ from ..lib import xla_bridge as xb\nfrom .xla import (xla_shape, xla_destructure, translation_rule, abstractify,\nxla_shape_to_result_shape, jaxpr_computation)\nfrom ... | Python | Apache License 2.0 | google/jax | the many ways to pjit a cat |
260,335 | 02.02.2019 17:00:52 | 28,800 | 7d1527b4d6e874ce06ed2bc329c3c0f5555cd2a4 | revise parallel model file | [
{
"change_type": "MODIFY",
"old_path": "pjit_model.py",
"new_path": "pjit_model.py",
"diff": "@@ -4,7 +4,7 @@ import numpy.random as npr\nimport jax.numpy as np\nfrom jax import lax\n-from jax import pjit, grad\n+from jax import grad, pjit, papply\n### set up some synthetic data\n@@ -41,12 +41,6 @@ ... | Python | Apache License 2.0 | google/jax | revise parallel model file |
260,335 | 02.02.2019 17:03:07 | 28,800 | 729991725b5cfb2d19ca64839c097969f027ac68 | remove pjit_model.py for merge | [
{
"change_type": "DELETE",
"old_path": "pjit_model.py",
"new_path": null,
"diff": "-from functools import partial\n-\n-import numpy.random as npr\n-\n-import jax.numpy as np\n-from jax import lax\n-from jax import grad, pjit, papply\n-\n-\n-### set up some synthetic data\n-\n-rng = npr.RandomState(0... | Python | Apache License 2.0 | google/jax | remove pjit_model.py for merge |
260,335 | 02.02.2019 21:41:06 | 28,800 | 0afb6202c90043ba0cf90fc3adcdd97c94708340 | improve error messages for lax.slice/index funs
c.f. | [
{
"change_type": "MODIFY",
"old_path": "jax/lax.py",
"new_path": "jax/lax.py",
"diff": "@@ -540,15 +540,17 @@ def slice_in_dim(operand, start_index, limit_index, stride=1, axis=0):\nlimit_indices = list(operand.shape)\nstrides = [1] * operand.ndim\n- start_indices[axis] = start_index\n- limit_indice... | Python | Apache License 2.0 | google/jax | improve error messages for lax.slice/index funs
c.f. #292 |
260,335 | 03.02.2019 09:27:03 | 28,800 | fe96c15d495907686dcc46160c9d9caf999a5ca7 | generalize select batch rule (fixes | [
{
"change_type": "MODIFY",
"old_path": "jax/lax.py",
"new_path": "jax/lax.py",
"diff": "@@ -1755,17 +1755,15 @@ def _select_transpose_rule(t, pred, on_true, on_false):\nselect(pred, zeros, t) if on_false is None else None]\ndef _select_batch_rule(batched_args, batch_dims, **unused_kwargs):\n- oprand... | Python | Apache License 2.0 | google/jax | generalize select batch rule (fixes #311) |
260,335 | 03.02.2019 09:52:33 | 28,800 | 5344e7aea0bbb4e0902b0f178b84c8439616f9a5 | add lax.select broadcasting tests, improve rule | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/batching.py",
"new_path": "jax/interpreters/batching.py",
"diff": "@@ -265,9 +265,9 @@ primitive_batchers[zeros_like_p] = zeros_like_batched\n# method. To handle that case, the `broadcast` function uses a try/except.\n-def bdim_at_front(x, bdi... | Python | Apache License 2.0 | google/jax | add lax.select broadcasting tests, improve rule |
260,335 | 03.02.2019 10:01:06 | 28,800 | 583b6547692cb6b790bbec71f5e068baeb06fdb2 | add an efficient special case to select batch rule | [
{
"change_type": "MODIFY",
"old_path": "jax/lax.py",
"new_path": "jax/lax.py",
"diff": "@@ -1760,13 +1760,23 @@ def _select_batch_rule(batched_args, batch_dims, **unused_kwargs):\nsize = next(x.shape[i] for x, i in zip(batched_args, batch_dims)\nif i is not None)\n- # TODO(mattjj): could avoid broad... | Python | Apache License 2.0 | google/jax | add an efficient special case to select batch rule |
260,335 | 03.02.2019 14:00:51 | 28,800 | bf7a438c94bd46e4fffa743a41af041e13dbc57f | add more special cases of select batching rule | [
{
"change_type": "MODIFY",
"old_path": "jax/lax.py",
"new_path": "jax/lax.py",
"diff": "@@ -1774,6 +1774,13 @@ def _select_batch_rule(batched_args, batch_dims, **unused_kwargs):\nassert onp.ndim(pred) == 1\npred = broadcast_in_dim(pred, on_true.shape, [pred_bdim])\nreturn select(pred, on_true, on_fa... | Python | Apache License 2.0 | google/jax | add more special cases of select batching rule |
260,335 | 03.02.2019 14:37:55 | 28,800 | 9846c9c7e177ce0ec85c733667642d854ac83263 | skip some cases to satisfy internal tests | [
{
"change_type": "MODIFY",
"old_path": "tests/lax_numpy_test.py",
"new_path": "tests/lax_numpy_test.py",
"diff": "@@ -101,8 +101,8 @@ JAX_ONE_TO_ONE_OP_RECORDS = [\nop_record(\"arccos\", 1, float_dtypes, all_shapes, jtu.rand_small(), [\"rev\"]),\nop_record(\"arctan\", 1, float_dtypes, all_shapes, jt... | Python | Apache License 2.0 | google/jax | skip some cases to satisfy internal tests |
260,335 | 03.02.2019 15:03:22 | 28,800 | 76decd2ade4665dae5e8eb5e527d571bc4b0e320 | version bump for pypi | [
{
"change_type": "MODIFY",
"old_path": "setup.py",
"new_path": "setup.py",
"diff": "@@ -16,7 +16,7 @@ from setuptools import setup, find_packages\nsetup(\nname='jax',\n- version='0.1.16',\n+ version='0.1.17',\ndescription='Differentiate, compile, and transform Numpy code.',\nauthor='JAX team',\nauth... | Python | Apache License 2.0 | google/jax | version bump for pypi |
260,403 | 04.02.2019 03:52:23 | 28,800 | 723e3c46e466aae927fffb81b95d3f97534c43cb | make einsum deterministic, correct.
Fixes a nondeterministic batch-dimension reordering error that was caused by using a python set collection ordering to fix the final output permutations | [
{
"change_type": "MODIFY",
"old_path": "jax/numpy/lax_numpy.py",
"new_path": "jax/numpy/lax_numpy.py",
"diff": "@@ -1399,8 +1399,8 @@ def _einsum(operands, contractions):\ncontracted_names = contracted_names & (set(lhs_names) | set(rhs_names))\nbatch_names = (set(lhs_names) & set(rhs_names)) - contr... | Python | Apache License 2.0 | google/jax | make einsum deterministic, correct.
Fixes a nondeterministic batch-dimension reordering error that was caused by using a python set collection ordering to fix the final output permutations |
260,403 | 04.02.2019 16:22:39 | 28,800 | 893cf82898cf61bb67d806b2e983b22fdaf94f8c | actually fix the nondeterminism error in einsum batchdims
In the case where front batch_dims are already ordered correctly, fix the batch_names ordering to be correct. | [
{
"change_type": "MODIFY",
"old_path": "jax/numpy/lax_numpy.py",
"new_path": "jax/numpy/lax_numpy.py",
"diff": "@@ -1399,8 +1399,8 @@ def _einsum(operands, contractions):\ncontracted_names = contracted_names & (set(lhs_names) | set(rhs_names))\nbatch_names = (set(lhs_names) & set(rhs_names)) - contr... | Python | Apache License 2.0 | google/jax | actually fix the nondeterminism error in einsum batchdims
In the case where front batch_dims are already ordered correctly, fix the batch_names ordering to be correct. |
260,403 | 04.02.2019 16:30:22 | 28,800 | 1d26c6bfa1b2d0227f92c9c33e2344393802d23a | add test-case for nondeterminism in front batch dim equal case in einsum
This is a test for the observed (and hopefully fixed) nondeterminism in the case of already-front, already-ordered batch_dims. | [
{
"change_type": "MODIFY",
"old_path": "tests/lax_numpy_einsum_test.py",
"new_path": "tests/lax_numpy_einsum_test.py",
"diff": "@@ -276,6 +276,11 @@ class EinsumTest(jtu.JaxTestCase):\ncheck(einstr, *operands)\n+ def test_ordered_front_batch_dim_case(self):\n+ x = onp.ones((1,8,20,4))\n+ y = onp.one... | Python | Apache License 2.0 | google/jax | add test-case for nondeterminism in front batch dim equal case in einsum
This is a test for the observed (and hopefully fixed) nondeterminism in the case of already-front, already-ordered batch_dims. |
260,335 | 05.02.2019 07:52:56 | 28,800 | 52254d760280d94142c1f55fa1c15026f1591cc7 | tweaks so einsum and spstats tests run internally | [
{
"change_type": "MODIFY",
"old_path": "tests/lax_numpy_einsum_test.py",
"new_path": "tests/lax_numpy_einsum_test.py",
"diff": "@@ -34,21 +34,21 @@ config.parse_flags_with_absl()\ndef rng():\nreturn onp.random.RandomState(0)\n-def check(s, *ops):\n- a = onp.einsum(s, *ops)\n- b = np.einsum(s, *ops)\... | Python | Apache License 2.0 | google/jax | tweaks so einsum and spstats tests run internally |
260,335 | 05.02.2019 08:39:03 | 28,800 | ceda6026b818c8a11bb6708c20bf11cdc2967849 | add batching rule for cholesky PAIR=phawkins | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/batching.py",
"new_path": "jax/interpreters/batching.py",
"diff": "@@ -117,6 +117,7 @@ class BatchTrace(Trace):\nif all(bdim is None for bdim in dims_in):\nreturn primitive.bind(*vals_in, **params)\nelse:\n+ # TODO(mattjj,phawkins): if no rule... | Python | Apache License 2.0 | google/jax | add batching rule for cholesky PAIR=phawkins |
260,335 | 05.02.2019 10:53:45 | 28,800 | 2f5d809456b0d296f4b7f1fa6abccaa2c495f04c | parse options with absl in scipy_stats_test | [
{
"change_type": "MODIFY",
"old_path": "tests/scipy_stats_test.py",
"new_path": "tests/scipy_stats_test.py",
"diff": "@@ -27,6 +27,9 @@ import scipy.stats as osp_stats\nfrom jax import test_util as jtu\nfrom jax.scipy import stats as lsp_stats\n+from jax.config import config\n+config.parse_flags_wit... | Python | Apache License 2.0 | google/jax | parse options with absl in scipy_stats_test |
260,335 | 05.02.2019 13:47:09 | 28,800 | b0c9fb803a1e91f7b95a1e02745d7d8f18e8db9d | gate np.ptp tests by numpy version check >= 1.15 | [
{
"change_type": "MODIFY",
"old_path": "tests/lax_numpy_test.py",
"new_path": "tests/lax_numpy_test.py",
"diff": "@@ -168,9 +168,15 @@ JAX_REDUCER_NO_DTYPE_RECORDS = [\nop_record(\"any\", 1, all_dtypes, all_shapes, jtu.rand_some_zero(), []),\nop_record(\"max\", 1, all_dtypes, nonempty_shapes, jtu.ra... | Python | Apache License 2.0 | google/jax | gate np.ptp tests by numpy version check >= 1.15 |
260,335 | 06.02.2019 09:23:34 | 28,800 | 1636d058dfd80d5212e6f1d6650bb202341955b4 | fix lax.full handling of DeviceConstant scalars
fixes | [
{
"change_type": "MODIFY",
"old_path": "jax/lax.py",
"new_path": "jax/lax.py",
"diff": "@@ -462,7 +462,8 @@ def full(shape, fill_value, dtype):\nif onp.isscalar(fill_value) or type(fill_value) is onp.ndarray:\nreturn FilledConstant(onp.asarray(fill_value, dtype), shape)\nelif isinstance(fill_value, ... | Python | Apache License 2.0 | google/jax | fix lax.full handling of DeviceConstant scalars
fixes #330 |
260,474 | 06.02.2019 11:49:21 | 18,000 | ce74bc55ce057c8d91b446ecfe7b199b46cd1a49 | Handle closed-over tracers in while loop cond and body functions | [
{
"change_type": "MODIFY",
"old_path": "jax/core.py",
"new_path": "jax/core.py",
"diff": "@@ -52,6 +52,10 @@ class Jaxpr(object):\ndef __repr__(self):\nreturn self.__str__()\n+ def copy(self):\n+ return Jaxpr(self.constvars[:], self.freevars[:], self.invars[:],\n+ self.outvar, self.eqns[:])\n+\nJaxp... | Python | Apache License 2.0 | google/jax | Handle closed-over tracers in while loop cond and body functions |
260,335 | 06.02.2019 11:02:16 | 28,800 | 5847d9616810c20a38d8290131bc0d6a0839f014 | rename "minmax" -> "optimizers" | [
{
"change_type": "MODIFY",
"old_path": "docs/jax.experimental.minmax.rst",
"new_path": "docs/jax.experimental.minmax.rst",
"diff": "-jax.experimental.minmax module\n+jax.experimental.optimizers module\n==============================\n-.. automodule:: jax.experimental.minmax\n+.. automodule:: jax.exp... | Python | Apache License 2.0 | google/jax | rename "minmax" -> "optimizers" |
260,335 | 06.02.2019 19:20:39 | 28,800 | 75a2745da019aa9dd05a74746eb1c1eedf0c953b | add flag to disable jit globally (fixes | [
{
"change_type": "MODIFY",
"old_path": "jax/api.py",
"new_path": "jax/api.py",
"diff": "@@ -26,8 +26,10 @@ from __future__ import print_function\nimport itertools\nimport operator as op\n+import os\nimport numpy as onp\n+from distutils.util import strtobool\nfrom . import core\nfrom . import linear_... | Python | Apache License 2.0 | google/jax | add flag to disable jit globally (fixes #252) |
260,335 | 06.02.2019 19:44:12 | 28,800 | a36812da301bd01d39f82f75f4294a31c9ec5319 | add context manager for disabling jit | [
{
"change_type": "MODIFY",
"old_path": "jax/api.py",
"new_path": "jax/api.py",
"diff": "@@ -29,6 +29,7 @@ import operator as op\nimport os\nimport numpy as onp\n+from contextlib import contextmanager\nfrom distutils.util import strtobool\nfrom . import core\n@@ -49,7 +50,7 @@ from .interpreters impo... | Python | Apache License 2.0 | google/jax | add context manager for disabling jit |
260,291 | 07.02.2019 11:09:10 | 10,800 | d319f5805b555dc7dfc0eac66fb50a56e62f26e9 | Fix toy example negative log-likelihood loss | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -243,8 +243,8 @@ def logistic_predictions(weights, inputs):\n# Training loss is the negative log-likelihood of the training labels.\ndef loss(weights, inputs, targets):\npreds = logistic_predictions(weights, inp... | Python | Apache License 2.0 | google/jax | Fix toy example negative log-likelihood loss |
260,291 | 08.02.2019 15:28:19 | 10,800 | 80bbdbbb75a87f721df89cb1efe7f1ae4ebb602f | Rename `label_probs` -> `label_logprobs` in README | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -243,7 +243,7 @@ def logistic_predictions(weights, inputs):\n# Training loss is the negative log-likelihood of the training labels.\ndef loss(weights, inputs, targets):\npreds = logistic_predictions(weights, inp... | Python | Apache License 2.0 | google/jax | Rename `label_probs` -> `label_logprobs` in README |
260,291 | 08.02.2019 16:24:43 | 10,800 | 197755b066dda15adcc2fde0e23691c4c4aa8e62 | Fix README toy example incomplete var renaming
Rename of `label_probs` into `label_logprobs` in the toy example was
incomplete and, as a consequence, the toy example no longer worked. This
renames `label_probs` completely and fixes the toy example. | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -244,7 +244,7 @@ def logistic_predictions(weights, inputs):\ndef loss(weights, inputs, targets):\npreds = logistic_predictions(weights, inputs)\nlabel_logprobs = np.log(preds) * targets + np.log(1 - preds) * (1 ... | Python | Apache License 2.0 | google/jax | Fix README toy example incomplete var renaming
Rename of `label_probs` into `label_logprobs` in the toy example was
incomplete and, as a consequence, the toy example no longer worked. This
renames `label_probs` completely and fixes the toy example. |
260,335 | 03.02.2019 09:00:16 | 28,800 | cde5c925fd66ea5d8d883c7abc6ba2fefd3fc30f | start to sketch out gather batching rule (WIP) | [
{
"change_type": "MODIFY",
"old_path": "jax/lax.py",
"new_path": "jax/lax.py",
"diff": "@@ -2079,12 +2079,40 @@ def _gather_transpose_rule(t, operand, start_indices, dimension_numbers,\nindex_vector_dim=dimension_numbers.index_vector_dim)\nreturn [scatter_add(zeros, start_indices, t, scatter_dnums),... | Python | Apache License 2.0 | google/jax | start to sketch out gather batching rule (WIP) |
260,335 | 05.02.2019 09:29:47 | 28,800 | b6cb3509cd0047e159e4ee269014c7dbacf0d473 | progress on a gather vmap rule, PAIR=hawkinsp | [
{
"change_type": "MODIFY",
"old_path": "jax/lax.py",
"new_path": "jax/lax.py",
"diff": "@@ -2085,24 +2085,38 @@ def _gather_batching_rule(batched_args, batch_dims, dimension_numbers,\noperand_bdim, start_indices_bdim = batch_dims\nif operand_bdim is not None and start_indices_bdim is None:\n+ collap... | Python | Apache License 2.0 | google/jax | progress on a gather vmap rule, PAIR=hawkinsp |
260,335 | 11.02.2019 09:28:21 | 28,800 | cccc0304fd2f72b99425c541058f40c0304abb7e | finish gather batching rule, pair w/ | [
{
"change_type": "MODIFY",
"old_path": "jax/lax.py",
"new_path": "jax/lax.py",
"diff": "@@ -2111,19 +2111,34 @@ def _gather_batching_rule(batched_args, batch_dims, dimension_numbers,\nslice_sizes=slice_sizes), 0\nelse:\n- # TODO(mattjj,phawkins): this code is wrong\n+ # get rid of scalar index case ... | Python | Apache License 2.0 | google/jax | finish gather batching rule, pair w/ @hawkinsp |
260,335 | 11.02.2019 11:21:29 | 28,800 | d5ee720aeac945e1517f8985a0d34ee44084b4e3 | more testing of gather batching rule | [
{
"change_type": "MODIFY",
"old_path": "jax/lax.py",
"new_path": "jax/lax.py",
"diff": "@@ -2142,7 +2142,6 @@ def _gather_batching_rule(batched_args, batch_dims, dimension_numbers,\nreturn gather(operand, start_indices, dimension_numbers=dnums,\nslice_sizes=slice_sizes), 0\n-\ngather_p = standard_pr... | Python | Apache License 2.0 | google/jax | more testing of gather batching rule |
260,335 | 11.02.2019 11:30:44 | 28,800 | 90d92a5a5cd1ad59b2123358a01126b5e3c28a7d | fix gather batching rule bug | [
{
"change_type": "MODIFY",
"old_path": "jax/lax.py",
"new_path": "jax/lax.py",
"diff": "@@ -2126,7 +2126,9 @@ def _gather_batching_rule(batched_args, batch_dims, dimension_numbers,\n# (7, 3, 4, 6) where we concatenated an iota that counts along our batch\n# dimension to the front of the ndindex.\nin... | Python | Apache License 2.0 | google/jax | fix gather batching rule bug |
260,335 | 11.02.2019 10:24:21 | 28,800 | 65c023d2316a075fadfa39ac7ed7752961e8f32d | start adding scatter batching rule | [
{
"change_type": "MODIFY",
"old_path": "jax/lax.py",
"new_path": "jax/lax.py",
"diff": "@@ -2206,7 +2206,6 @@ def _scatter_jvp(primals, tangents, update_jaxpr, update_consts,\nupdates_shape=updates_shape)\nreturn val_out, tangent_out\n-\ndef _scatter_transpose_rule(t, operand, scatter_indices, updat... | Python | Apache License 2.0 | google/jax | start adding scatter batching rule |
260,335 | 11.02.2019 11:40:08 | 28,800 | e3b9df14a8ce47482ecc3e1dcb7492c11c017eb4 | complete scatter batching rule | [
{
"change_type": "MODIFY",
"old_path": "jax/lax.py",
"new_path": "jax/lax.py",
"diff": "@@ -2267,7 +2267,9 @@ def _scatter_batching_rule(batched_args, batch_dims, update_jaxpr,\nupdates = batching.move_dim_to_front(updates, updates_bdim)\nindex_vector_dim = dimension_numbers.index_vector_dim + 1\n- ... | Python | Apache License 2.0 | google/jax | complete scatter batching rule |
260,335 | 11.02.2019 12:46:17 | 28,800 | f8b48cb1c4d26f63c6ac7123377907e84879764b | add comment explaining scatter batching rule logic | [
{
"change_type": "MODIFY",
"old_path": "jax/lax.py",
"new_path": "jax/lax.py",
"diff": "@@ -2238,6 +2238,8 @@ def _scatter_batching_rule(batched_args, batch_dims, update_jaxpr,\noperand_bdim, scatter_indices_bdim, updates_bdim = batch_dims\ndel update_jaxpr, update_consts, updates_shape # Unused.\n+... | Python | Apache License 2.0 | google/jax | add comment explaining scatter batching rule logic |
260,335 | 11.02.2019 13:32:22 | 28,800 | 0c2cd5f8589f4c3fec79efa52b1fa5ed399a56c8 | tweaks to make internal tests pass | [
{
"change_type": "MODIFY",
"old_path": "examples/examples_test.py",
"new_path": "examples/examples_test.py",
"diff": "@@ -82,7 +82,7 @@ class ExamplesTest(jtu.JaxTestCase):\nxs = rng.randn(n, d)\nys = np.dot(xs, truth)\nkernel = lambda x, y: np.dot(x, y)\n- assert np.all(kernel_lsq.gram(kernel, xs) ... | Python | Apache License 2.0 | google/jax | tweaks to make internal tests pass |
260,335 | 11.02.2019 13:38:04 | 28,800 | a26fa984609a47b4bfb39acd56e48f45e6d13459 | fix examples_test | [
{
"change_type": "MODIFY",
"old_path": "examples/examples_test.py",
"new_path": "examples/examples_test.py",
"diff": "@@ -82,7 +82,8 @@ class ExamplesTest(jtu.JaxTestCase):\nxs = rng.randn(n, d)\nys = np.dot(xs, truth)\nkernel = lambda x, y: np.dot(x, y)\n- self.assertAllClose(kernel_lsq.gram(kernel... | Python | Apache License 2.0 | google/jax | fix examples_test |
260,409 | 11.02.2019 16:41:51 | 18,000 | 130694affa787675b2d291b5dc5fa87c6c508766 | Adding a Gaussian process example | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "examples/gaussian_process_regression.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 c... | Python | Apache License 2.0 | google/jax | Adding a Gaussian process example |
260,335 | 11.02.2019 14:19:22 | 28,800 | 0c15bdbcffe37b2d7d2a46a3d04afba224c0cfa9 | todo in multivariate_normal.logpdf dtype promotion | [
{
"change_type": "MODIFY",
"old_path": "jax/scipy/stats/multivariate_normal.py",
"new_path": "jax/scipy/stats/multivariate_normal.py",
"diff": "@@ -27,6 +27,9 @@ from ...numpy.linalg import det, inv\n@_wraps(osp_stats.multivariate_normal.logpdf)\ndef logpdf(x, mean, cov):\n+ # TODO(mattjj): osp_stat... | Python | Apache License 2.0 | google/jax | todo in multivariate_normal.logpdf dtype promotion |
260,335 | 12.02.2019 07:26:32 | 28,800 | adaea811fc8ea32e7992cdf9d4483b3bc95c0768 | fix transpose batching rule bug, add tests | [
{
"change_type": "MODIFY",
"old_path": "jax/lax.py",
"new_path": "jax/lax.py",
"diff": "@@ -1722,7 +1722,7 @@ def _transpose_shape_rule(operand, permutation):\ndef _transpose_batch_rule(batched_args, batch_dims, permutation):\noperand, = batched_args\nbdim, = batch_dims\n- perm = tuple(onp.insert(on... | Python | Apache License 2.0 | google/jax | fix transpose batching rule bug, add tests |
260,335 | 12.02.2019 11:32:25 | 28,800 | 34b07d0ea4e17033dbb2ca7dd65a97121929372d | handle jit-in-while (const handling in xla.py) | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/xla.py",
"new_path": "jax/interpreters/xla.py",
"diff": "@@ -135,19 +135,22 @@ def jaxpr_computation(jaxpr, const_vals, freevar_shapes, *arg_shapes):\nenv = {}\nconsts_env = dict(zip(jaxpr.constvars, const_vals))\nwrite(core.unitvar, c.Tuple()... | Python | Apache License 2.0 | google/jax | handle jit-in-while (const handling in xla.py) |
260,335 | 12.02.2019 12:03:58 | 28,800 | 2d6b0fca706dbd0e387fcf7585b5c420fc36d604 | fix list comprehension bug (py3 caught it!) | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/xla.py",
"new_path": "jax/interpreters/xla.py",
"diff": "@@ -151,7 +151,7 @@ def jaxpr_computation(jaxpr, const_vals, freevar_shapes, *arg_shapes):\nfor subjaxpr, const_bindings, freevar_bindings\nin eqn.bound_subjaxprs]\nsubfuns = [(subc, tup... | Python | Apache License 2.0 | google/jax | fix list comprehension bug (py3 caught it!) |
260,335 | 12.02.2019 12:47:14 | 28,800 | 63f757c9692eb9f5844216ca0bdaf0bc8f731ae3 | skip scipy.stats.multivariate_normal test gpu/tpu | [
{
"change_type": "MODIFY",
"old_path": "tests/scipy_stats_test.py",
"new_path": "tests/scipy_stats_test.py",
"diff": "@@ -102,6 +102,8 @@ class LaxBackedScipyStatsTests(jtu.JaxTestCase):\n# TODO: currently it ignores the argument \"shapes\" and only tests dim=4\n@genNamedParametersNArgs(3, jtu.rand_... | Python | Apache License 2.0 | google/jax | skip scipy.stats.multivariate_normal test gpu/tpu |
260,335 | 12.02.2019 15:42:06 | 28,800 | 573f04752574890dc8a5f5e79a907bddaddf6191 | tweak linearize user-level api: *args not args | [
{
"change_type": "MODIFY",
"old_path": "jax/api.py",
"new_path": "jax/api.py",
"diff": "@@ -362,7 +362,7 @@ def linearize(traceable, *primals):\nlifted_jvp = partial(lift_linearized, jaxpr, consts, (in_trees, out_tree), out_pval)\nreturn out_primal_py, lifted_jvp\n-def lift_linearized(jaxpr, consts,... | Python | Apache License 2.0 | google/jax | tweak linearize user-level api: *args not args |
260,335 | 12.02.2019 19:56:00 | 28,800 | 0aae62c7c45cbafbe8a6547530eeb20bb97d4532 | add test for dtype promotion against scalars | [
{
"change_type": "MODIFY",
"old_path": "tests/lax_numpy_test.py",
"new_path": "tests/lax_numpy_test.py",
"diff": "@@ -1210,6 +1210,11 @@ class LaxBackedNumpyTests(jtu.JaxTestCase):\nx = lnp.full((1, 1), lnp.array([1])[0]) # doesn't crash\nself.assertEqual(x[0, 0], 1)\n+ def testScalarDtypePromotion(... | Python | Apache License 2.0 | google/jax | add test for dtype promotion against scalars |
260,335 | 13.02.2019 08:06:37 | 28,800 | cad7db762ba0aeb87ad42a115b9fde7cfcfd5bed | improve numpy dtype promo logic on Python scalars | [
{
"change_type": "MODIFY",
"old_path": "jax/lax.py",
"new_path": "jax/lax.py",
"diff": "@@ -571,7 +571,8 @@ def dynamic_slice_in_dim(operand, start_index, slice_size, axis=0):\nslice_sizes = list(operand.shape)\naxis = int(axis)\n- start_indices[axis] = reshape(rem(start_index, operand.shape[axis]),... | Python | Apache License 2.0 | google/jax | improve numpy dtype promo logic on Python scalars |
260,335 | 13.02.2019 08:14:32 | 28,800 | 9425fa812aa6a8e7f927855396299868c74c5f56 | add 'long' and 'complex' to pyval promotion logic | [
{
"change_type": "MODIFY",
"old_path": "jax/numpy/lax_numpy.py",
"new_path": "jax/numpy/lax_numpy.py",
"diff": "@@ -146,7 +146,8 @@ def _promote_dtypes(*args):\nif len(args) < 2:\nreturn args\nelse:\n- from_dtypes = (x if type(x) in (int, float) else _dtype(x) for x in args)\n+ from_dtypes = (x if t... | Python | Apache License 2.0 | google/jax | add 'long' and 'complex' to pyval promotion logic |
260,335 | 13.02.2019 08:15:48 | 28,800 | ea9c31134988fc05a7fe289ef587c4ffa9a6172c | remove 'long' because it's not in py3 | [
{
"change_type": "MODIFY",
"old_path": "jax/numpy/lax_numpy.py",
"new_path": "jax/numpy/lax_numpy.py",
"diff": "@@ -146,7 +146,7 @@ def _promote_dtypes(*args):\nif len(args) < 2:\nreturn args\nelse:\n- from_dtypes = (x if type(x) in (int, float, long, complex) else _dtype(x)\n+ from_dtypes = (x if t... | Python | Apache License 2.0 | google/jax | remove 'long' because it's not in py3 |
260,335 | 13.02.2019 08:25:11 | 28,800 | 8df660e9ea29ec3a23abdd80362af17962326a7d | use more _const and _constant_like helpers | [
{
"change_type": "MODIFY",
"old_path": "jax/lax.py",
"new_path": "jax/lax.py",
"diff": "@@ -571,7 +571,7 @@ def dynamic_slice_in_dim(operand, start_index, slice_size, axis=0):\nslice_sizes = list(operand.shape)\naxis = int(axis)\n- axis_size = onp.array(operand.shape[axis], start_index.dtype)\n+ axi... | Python | Apache License 2.0 | google/jax | use more _const and _constant_like helpers |
260,335 | 13.02.2019 08:31:48 | 28,800 | bbf33709a6f431747c888878917b315c15c83c99 | switch builtin numeric types on six.PY3 | [
{
"change_type": "MODIFY",
"old_path": "jax/numpy/lax_numpy.py",
"new_path": "jax/numpy/lax_numpy.py",
"diff": "@@ -146,12 +146,17 @@ def _promote_dtypes(*args):\nif len(args) < 2:\nreturn args\nelse:\n- from_dtypes = (x if type(x) in (int, float, complex) else _dtype(x)\n+ from_dtypes = (x if type(... | Python | Apache License 2.0 | google/jax | switch builtin numeric types on six.PY3 |
260,335 | 13.02.2019 08:52:42 | 28,800 | fcdf225183f651f9cdacdeb4c4efc330975ea200 | another dtype promotion issue | [
{
"change_type": "MODIFY",
"old_path": "tests/lax_numpy_test.py",
"new_path": "tests/lax_numpy_test.py",
"diff": "@@ -1215,6 +1215,14 @@ class LaxBackedNumpyTests(jtu.JaxTestCase):\njax_numpy_result = (1 + lnp.eye(1, dtype=lnp.float32)).dtype\nself.assertEqual(orig_numpy_result, jax_numpy_result)\n+... | Python | Apache License 2.0 | google/jax | another dtype promotion issue |
260,335 | 13.02.2019 08:59:21 | 28,800 | 2865cfac075aebf162b7ae20d8d19a05f5c1aff7 | fix shape/dtype promotion order in some numpy funs | [
{
"change_type": "MODIFY",
"old_path": "jax/numpy/lax_numpy.py",
"new_path": "jax/numpy/lax_numpy.py",
"diff": "@@ -326,8 +326,8 @@ logical_xor = _logical_op(onp.logical_xor, lax.bitwise_xor)\n@_wraps(onp.true_divide)\ndef true_divide(x1, x2):\n- x1, x2 = _promote_shapes(x1, x2)\nresult_dtype = _res... | Python | Apache License 2.0 | google/jax | fix shape/dtype promotion order in some numpy funs |
260,335 | 11.02.2019 16:18:13 | 28,800 | 78fd9e1a10b14be6e55801f791b79cb4360199d7 | debug cholesky grad, remove stale dot_general check | [
{
"change_type": "MODIFY",
"old_path": "jax/lax.py",
"new_path": "jax/lax.py",
"diff": "@@ -831,10 +831,12 @@ standard_binop = partial(binop, _input_dtype)\n# a broadcast). but saving the shape info with the primitives isn't great either\n# because then we can't trace these ops without shape data.\n... | Python | Apache License 2.0 | google/jax | debug cholesky grad, remove stale dot_general check |
260,335 | 13.02.2019 09:23:42 | 28,800 | 25169ef7fc2a4605f1fc508ad1a2184193c1d4f0 | remove duplicate tests from a bad merge | [
{
"change_type": "MODIFY",
"old_path": "tests/batching_test.py",
"new_path": "tests/batching_test.py",
"diff": "@@ -810,28 +810,6 @@ class BatchingTest(jtu.JaxTestCase):\nexpected = onp.stack([grad(f)(scale) for scale in scales])\nself.assertAllClose(ans, expected, check_dtypes=False)\n- def testTra... | Python | Apache License 2.0 | google/jax | remove duplicate tests from a bad merge |
260,335 | 13.02.2019 09:55:36 | 28,800 | 0ff98a74eb6ccfb6f567f9639cd515fadab2aa5b | add random.fold_in, update mnist_vae.py loops | [
{
"change_type": "MODIFY",
"old_path": "examples/mnist_vae.py",
"new_path": "examples/mnist_vae.py",
"diff": "@@ -89,7 +89,6 @@ if __name__ == \"__main__\":\nnum_epochs = 100\nbatch_size = 32\nnrow, ncol = 10, 10 # sampled image grid size\n- rng = random.PRNGKey(0)\ntest_rng = random.PRNGKey(1) # fi... | Python | Apache License 2.0 | google/jax | add random.fold_in, update mnist_vae.py loops |
260,335 | 13.02.2019 09:56:53 | 28,800 | 89dc3eb88eeb7dfe92d68ae4ee0a7c986e7945e5 | rename lax._while_loop -> lax.while_loop | [
{
"change_type": "MODIFY",
"old_path": "jax/lax.py",
"new_path": "jax/lax.py",
"diff": "@@ -415,7 +415,7 @@ def sort_key_val(keys, values, dimension=-1):\nsorted_keys, sorted_values = result\nreturn sorted_keys, sorted_values\n-def _while_loop(cond_fun, body_fun, init_val):\n+def while_loop(cond_fun... | Python | Apache License 2.0 | google/jax | rename lax._while_loop -> lax.while_loop |
260,335 | 13.02.2019 19:42:47 | 28,800 | 11122bc8e3562e4964e4c090e4bcd7cfb17ba8be | improve jax.random docs | [
{
"change_type": "MODIFY",
"old_path": "jax/random.py",
"new_path": "jax/random.py",
"diff": "# See the License for the specific language governing permissions and\n# limitations under the License.\n-\"\"\"LAX-based pseudo-random number generators (PRNGs).\"\"\"\n+\"\"\"JAX pseudo-random number gene... | Python | Apache License 2.0 | google/jax | improve jax.random docs |
260,335 | 13.02.2019 20:02:14 | 28,800 | 9a9c304644e0bb2a8e3a7bde04a3b6f81d8cf3b9 | add version attribute
following idea 3 here: | [
{
"change_type": "MODIFY",
"old_path": "jax/__init__.py",
"new_path": "jax/__init__.py",
"diff": "import os\nos.environ.setdefault('TF_CPP_MIN_LOG_LEVEL', '1')\n+version_file = os.path.join(os.path.abspath(os.path.dirname(__file__)),\n+ \"version.py\")\n+with open(version_file) as f:\n+ exec(f.read(... | Python | Apache License 2.0 | google/jax | add version attribute
following idea 3 here:
https://packaging.python.org/guides/single-sourcing-package-version/ |
260,335 | 13.02.2019 20:05:15 | 28,800 | 910848afe1db366bbb8bdafe0047cc8dd3d6f69d | fix typo in random.py docstring | [
{
"change_type": "MODIFY",
"old_path": "jax/random.py",
"new_path": "jax/random.py",
"diff": "@@ -40,7 +40,7 @@ def PRNGKey(seed):\n\"\"\"Create a psuedo-random number generator (PRNG) key given an integer seed.\nArgs:\n- seed: a 64- or 32-bit integer type used as the value of the key.\n+ seed: a 64... | Python | Apache License 2.0 | google/jax | fix typo in random.py docstring |
260,403 | 11.02.2019 23:26:26 | 28,800 | 8a84ae8d2a535630883648fb1596c65dd6729495 | added jvp rule for eigh, tests | [
{
"change_type": "MODIFY",
"old_path": "jax/lax_linalg.py",
"new_path": "jax/lax_linalg.py",
"diff": "@@ -39,7 +39,10 @@ def cholesky(x, symmetrize_input=True):\nx = symmetrize(x)\nreturn cholesky_p.bind(x)\n-def eigh(x, lower=True): return eigh_p.bind(x, lower=lower)\n+def eigh(x, lower=True, symme... | Python | Apache License 2.0 | google/jax | added jvp rule for eigh, tests |
260,403 | 13.02.2019 23:23:39 | 28,800 | ed437b409d28cdb5bbfd62233899d956b41b0da0 | fix testing of eigh jvp rule | [
{
"change_type": "MODIFY",
"old_path": "jax/lax_linalg.py",
"new_path": "jax/lax_linalg.py",
"diff": "@@ -39,9 +39,9 @@ def cholesky(x, symmetrize_input=True):\nx = symmetrize(x)\nreturn cholesky_p.bind(x)\n-def eigh(x, lower=True, symmetrize=True):\n- if symmetrize:\n- x = (x + _H(x)) / 2 # orthogo... | Python | Apache License 2.0 | google/jax | fix testing of eigh jvp rule |
260,403 | 13.02.2019 23:44:41 | 28,800 | 8cd3f448d5d2e723fb2c0d96cc0226102d8a8308 | fix missing symmetrize_input arg | [
{
"change_type": "MODIFY",
"old_path": "jax/lax_linalg.py",
"new_path": "jax/lax_linalg.py",
"diff": "@@ -160,7 +160,7 @@ def eigh_jvp_rule(primals, tangents, lower):\n# https://people.orie.cornell.edu/aslewis/publications/99-clarke.pdf\na, = primals\na_dot, = tangents\n- v, w = eigh_p.bind((a + _H(... | Python | Apache License 2.0 | google/jax | fix missing symmetrize_input arg |
260,403 | 14.02.2019 02:28:00 | 28,800 | cd2205043541e87425d2f769ecf37c1c1c77e74a | actually test relative error | [
{
"change_type": "MODIFY",
"old_path": "jax/lax_linalg.py",
"new_path": "jax/lax_linalg.py",
"diff": "@@ -170,7 +170,7 @@ def eigh_jvp_rule(primals, tangents, lower):\ndot = lax.dot if a.ndim == 2 else lax.batch_matmul\nvdag_adot_v = dot(dot(_H(v), a_dot), v)\ndv = dot(v, np.multiply(Fmat, vdag_adot... | Python | Apache License 2.0 | google/jax | actually test relative error |
260,335 | 15.02.2019 07:04:57 | 28,800 | 98dcf264e92428338d9b5025640c39b5cf723734 | fix nan handling in pow jvp (fixes | [
{
"change_type": "MODIFY",
"old_path": "jax/lax.py",
"new_path": "jax/lax.py",
"diff": "@@ -957,11 +957,16 @@ _maybe_real = lambda x: real(x) if _iscomplex(x) else x\n# TODO handle broadcasting\npow_p = standard_binop([_float | _complex, _float | _complex], 'pow')\n-ad.defjvp(pow_p,\n- lambda g, x, ... | Python | Apache License 2.0 | google/jax | fix nan handling in pow jvp (fixes #347) |
260,268 | 15.02.2019 14:09:06 | 28,800 | d8b3694bfb3b2b471fe42de8a04d748a780ab449 | __invert__ doesn't take an argument. | [
{
"change_type": "MODIFY",
"old_path": "jax/core.py",
"new_path": "jax/core.py",
"diff": "@@ -236,7 +236,7 @@ class Tracer(object):\ndef __ror__(self, other): return self.aval._ror(self, other)\ndef __xor__(self, other): return self.aval._xor(self, other)\ndef __rxor__(self, other): return self.aval... | Python | Apache License 2.0 | google/jax | __invert__ doesn't take an argument. |
260,335 | 15.02.2019 18:32:50 | 28,800 | 58749c0a13049a9113478bdbb5d83f5df72fda7e | add lax._safe_mul with 0*inf=0, used in pow jvp | [
{
"change_type": "MODIFY",
"old_path": "jax/lax.py",
"new_path": "jax/lax.py",
"diff": "@@ -493,6 +493,9 @@ def stop_gradient(x):\nreturn stop_gradient_p.bind(x)\n+def _safe_mul(x, y): return safe_mul_p.bind(x, y)\n+\n+\ndef psum(x, axis_name):\nreturn psum_p.bind(x, axis_name=axis_name)\n@@ -959,13... | Python | Apache License 2.0 | google/jax | add lax._safe_mul with 0*inf=0, used in pow jvp |
260,335 | 15.02.2019 20:56:10 | 28,800 | 635d1ad1b99d02a3f6c9ae6d94d7c787c0746528 | force broadcasting in add_jaxvals_p batching rule | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/batching.py",
"new_path": "jax/interpreters/batching.py",
"diff": "@@ -245,7 +245,8 @@ def add_batched(batched_args, batch_dims):\nxs, ys = batched_args\nreturn add_jaxvals_p.bind(xs, ys), bdx\nelse:\n- xs, ys = map(bdim_at_front, batched_args... | Python | Apache License 2.0 | google/jax | force broadcasting in add_jaxvals_p batching rule |
260,335 | 15.02.2019 21:14:11 | 28,800 | f113e1135267c87a48a933d8b4a0acadc8626d5d | add test for issue387 | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/batching.py",
"new_path": "jax/interpreters/batching.py",
"diff": "@@ -241,11 +241,12 @@ def reducer_batcher(prim, batched_args, batch_dims, axes, **params):\ndef add_batched(batched_args, batch_dims):\nbdx, bdy = batch_dims\n- if bdx == bdy:\... | Python | Apache License 2.0 | google/jax | add test for issue387 |
260,335 | 15.02.2019 22:21:30 | 28,800 | 639f61352c57ca5ee6878e727d0543d8fc27f9ee | tests for numpy operator overloading (some fail!) | [
{
"change_type": "MODIFY",
"old_path": "jax/core.py",
"new_path": "jax/core.py",
"diff": "@@ -240,7 +240,7 @@ class Tracer(object):\ndef __ror__(self, other): return self.aval._ror(self, other)\ndef __xor__(self, other): return self.aval._xor(self, other)\ndef __rxor__(self, other): return self.aval... | Python | Apache License 2.0 | google/jax | tests for numpy operator overloading (some fail!) |
260,648 | 16.02.2019 23:31:27 | -32,400 | d3acbc1c73f924ae68f8924bae0d8c5901fca5c4 | Fix typo in PRNGKey docstring | [
{
"change_type": "MODIFY",
"old_path": "jax/random.py",
"new_path": "jax/random.py",
"diff": "@@ -37,7 +37,7 @@ from jax import core\ndef PRNGKey(seed):\n- \"\"\"Create a psuedo-random number generator (PRNG) key given an integer seed.\n+ \"\"\"Create a pseudo-random number generator (PRNG) key give... | Python | Apache License 2.0 | google/jax | Fix typo in PRNGKey docstring |
260,335 | 16.02.2019 08:04:19 | 28,800 | 9bf830e1c8cd2300e6ef9736925456b10d52bb3c | only test __div__ / __rdiv__ on python2 | [
{
"change_type": "MODIFY",
"old_path": "tests/lax_numpy_test.py",
"new_path": "tests/lax_numpy_test.py",
"diff": "@@ -24,6 +24,7 @@ from unittest import skip\nfrom absl.testing import absltest\nfrom absl.testing import parameterized\n+import six\nimport numpy as onp\n@@ -195,8 +196,6 @@ JAX_OPERATOR... | Python | Apache License 2.0 | google/jax | only test __div__ / __rdiv__ on python2 |
260,335 | 16.02.2019 08:08:04 | 28,800 | 6a9b741ebcf6fa202dc38f7e5c338f9cf9b4df32 | add comment in pow_jvp_lhs about calling _safe_mul | [
{
"change_type": "MODIFY",
"old_path": "jax/lax.py",
"new_path": "jax/lax.py",
"diff": "@@ -962,6 +962,9 @@ _maybe_real = lambda x: real(x) if _iscomplex(x) else x\npow_p = standard_binop([_float | _complex, _float | _complex], 'pow')\ndef pow_jvp_lhs(g, x, y):\n+ # we call _safe_mul here so that we... | Python | Apache License 2.0 | google/jax | add comment in pow_jvp_lhs about calling _safe_mul |
260,331 | 17.02.2019 09:23:46 | 18,000 | 606351fc70a7d263b0128c4f10484d74e739fae7 | Fix bad merge/edit in gufuncs.ipynb. | [
{
"change_type": "MODIFY",
"old_path": "notebooks/gufuncs.ipynb",
"new_path": "notebooks/gufuncs.ipynb",
"diff": "\"\\n\",\n\"## What is a gufunc?\\n\",\n\"\\n\",\n- \"[Generalized universal functions](https://docs.scipy.org/doc/numpy-1.15.0/reference/c-api.generalized-ufuncs.html) (\\\"gufuncs\\\")... | Python | Apache License 2.0 | google/jax | Fix bad merge/edit in gufuncs.ipynb. |
260,331 | 17.02.2019 09:25:18 | 18,000 | e6f6810b67f21d431f4d5813a8582f0772422f23 | Remove my name from the XLA colab
Team effort! | [
{
"change_type": "MODIFY",
"old_path": "notebooks/XLA_in_Python.ipynb",
"new_path": "notebooks/XLA_in_Python.ipynb",
"diff": "\"id\": \"AiyR1e2NubKa\"\n},\n\"source\": [\n- \"Let's exploit Peter Hawkin's XLA QR implementation to solve some eigenvalues for symmetric matrices. \\n\",\n+ \"Let's exploi... | Python | Apache License 2.0 | google/jax | Remove my name from the XLA colab
Team effort! |
260,335 | 17.02.2019 09:34:49 | 28,800 | 60865a5bb566e7677c0bd1ffa56b2a97ac1f77d9 | fix broken dot batch rule case | [
{
"change_type": "MODIFY",
"old_path": "jax/lax.py",
"new_path": "jax/lax.py",
"diff": "@@ -1326,11 +1326,9 @@ def _dot_batch_rule(batched_args, batch_dims):\nassert lbd is not None and rbd is not None\nassert lhs.ndim == rhs.ndim == 2 # dot only supports rank 1 and above\n- if lbd != 0:\n- batching... | Python | Apache License 2.0 | google/jax | fix broken dot batch rule case |
260,335 | 17.02.2019 09:36:18 | 28,800 | 793e055f75db207030614c12d2ce28eacde0f28d | enable an old test case (xla bug fixed) | [
{
"change_type": "MODIFY",
"old_path": "tests/batching_test.py",
"new_path": "tests/batching_test.py",
"diff": "@@ -271,8 +271,7 @@ class BatchingTest(jtu.JaxTestCase):\nassert vecvec(np.zeros((3,)), np.zeros((3,))).shape == ()\nassert vecvec(np.zeros((2, 3)), np.zeros((3,))).shape == (2,)\n- # TODO... | Python | Apache License 2.0 | google/jax | enable an old test case (xla bug fixed) |
260,335 | 18.02.2019 12:41:07 | 28,800 | 042a20d2da36bffc2d9665422a9fc6c0ae814acd | improve loop construct docs, remove foreach_loop | [
{
"change_type": "MODIFY",
"old_path": "jax/lax.py",
"new_path": "jax/lax.py",
"diff": "@@ -416,6 +416,35 @@ def sort_key_val(keys, values, dimension=-1):\nreturn sorted_keys, sorted_values\ndef while_loop(cond_fun, body_fun, init_val):\n+ \"\"\"Call `body_fun` repeatedly in a loop while `cond_fun` ... | Python | Apache License 2.0 | google/jax | improve loop construct docs, remove foreach_loop |
260,335 | 18.02.2019 12:58:35 | 28,800 | 13834ee4f579febcc4fc8bde2e6f8892bc6eef99 | add "yet" to while_loop rev-autodiff statement | [
{
"change_type": "MODIFY",
"old_path": "jax/lax.py",
"new_path": "jax/lax.py",
"diff": "@@ -442,7 +442,7 @@ def while_loop(cond_fun, body_fun, init_val):\ncomputations.\nAnother difference from using Python-native loop constructs is that\n- `while_loop` is not reverse-mode differentiable because XLA... | Python | Apache License 2.0 | google/jax | add "yet" to while_loop rev-autodiff statement |
260,335 | 19.02.2019 17:28:43 | 28,800 | bf4ea4c099a845a8f97d1de8d4f86bf7de003bf8 | guard against onp.lcm and onp.gcd not existing | [
{
"change_type": "MODIFY",
"old_path": "jax/numpy/lax_numpy.py",
"new_path": "jax/numpy/lax_numpy.py",
"diff": "@@ -2058,7 +2058,7 @@ hanning = onp.hanning\nkaiser = onp.kaiser # TODO: lower via lax to allow non-constant beta.\n-@_wraps(onp.gcd)\n+@_wraps(getattr(onp, \"gcd\", None))\ndef gcd(x1, x2... | Python | Apache License 2.0 | google/jax | guard against onp.lcm and onp.gcd not existing |
260,335 | 19.02.2019 17:32:09 | 28,800 | 34d3d8138736f24bc2a4df988fbe7ee1ca09ef08 | guard lcm and gcd tests against numpy version | [
{
"change_type": "MODIFY",
"old_path": "tests/lax_numpy_test.py",
"new_path": "tests/lax_numpy_test.py",
"diff": "@@ -126,7 +126,6 @@ JAX_COMPOUND_OP_RECORDS = [\ntest_name=\"expm1_large\"),\nop_record(\"expm1\", 1, number_dtypes, all_shapes, jtu.rand_small_positive(), []),\nop_record(\"floor_divide... | Python | Apache License 2.0 | google/jax | guard lcm and gcd tests against numpy version |
260,335 | 19.02.2019 19:35:02 | 28,800 | 509e034dd7e65b49afa95e7ce6b735335749e574 | put gcd and lcm tests back in correct list | [
{
"change_type": "MODIFY",
"old_path": "tests/lax_numpy_test.py",
"new_path": "tests/lax_numpy_test.py",
"diff": "@@ -182,15 +182,6 @@ JAX_REDUCER_NO_DTYPE_RECORDS = [\nop_record(\"min\", 1, all_dtypes, nonempty_shapes, jtu.rand_default(), []),\n]\n-numpy_version = tuple(map(int, onp.version.version... | Python | Apache License 2.0 | google/jax | put gcd and lcm tests back in correct list |
260,335 | 13.02.2019 14:28:30 | 28,800 | 4a863b92cd4e5e3c1e93b7906fe02ec3f0e7e5a5 | sketch out custom primitive wrapper
Most of this code is copied from an old branch that
and I triple-programmed together. | [
{
"change_type": "MODIFY",
"old_path": "jax/api.py",
"new_path": "jax/api.py",
"diff": "@@ -664,3 +664,23 @@ def check_scalar(x):\nraise TypeError(msg(x))\nexcept TypeError:\nraise TypeError(msg(x))\n+\n+\n+def primitive(fun):\n+ name = getattr(fun, '__name__', '<unnamed user primitive>')\n+ fun_p =... | Python | Apache License 2.0 | google/jax | sketch out custom primitive wrapper
Most of this code is copied from an old branch that @dougalm, @duvenaud,
and I triple-programmed together. |
260,335 | 20.02.2019 08:04:48 | 28,800 | 1ca1e5c468cf65d73676b496f76e88f640779c87 | add some underscores to names | [
{
"change_type": "MODIFY",
"old_path": "jax/api.py",
"new_path": "jax/api.py",
"diff": "@@ -99,9 +99,9 @@ def jit(fun, static_argnums=()):\nreturn fun(*args, **kwargs)\nf = lu.wrap_init(fun, kwargs)\ndyn_argnums = [i for i in range(len(args)) if i not in static_argnums]\n- f, dyn_args = argnums_part... | Python | Apache License 2.0 | google/jax | add some underscores to names |
260,335 | 20.02.2019 09:03:30 | 28,800 | dc7eab94c12c2117ca6b0c4a45eadf2f71dfcd78 | add jax.xla_computation to retrieve Computation
pair w/ | [
{
"change_type": "MODIFY",
"old_path": "jax/api.py",
"new_path": "jax/api.py",
"diff": "@@ -151,6 +151,23 @@ def disable_jit():\n_jit_is_disabled = False\n+def xla_computation(fun, static_argnums=()):\n+ def pv_like(x):\n+ aval = xla.abstractify(x)\n+ return pe.PartialVal((aval, core.unit))\n+\n+ wr... | Python | Apache License 2.0 | google/jax | add jax.xla_computation to retrieve Computation
pair w/ @hawkinsp |
260,335 | 20.02.2019 17:03:31 | 28,800 | 4ba7d517df80bdc4f31f30f96475d302f7c54f54 | bump jaxlib version number for building new wheels | [
{
"change_type": "MODIFY",
"old_path": "build/setup.py",
"new_path": "build/setup.py",
"diff": "@@ -20,7 +20,7 @@ binary_libs = [os.path.basename(f) for f in glob('jaxlib/*.so*')]\nsetup(\nname='jaxlib',\n- version='0.1.8',\n+ version='0.1.9',\ndescription='XLA library for JAX',\nauthor='JAX team',\... | Python | Apache License 2.0 | google/jax | bump jaxlib version number for building new wheels |
260,335 | 21.02.2019 07:34:27 | 28,800 | 9815914d74908c663b93ebaff8c25a6c899ecd7b | remove unused jax.numpy.array case (was typo) | [
{
"change_type": "MODIFY",
"old_path": "jax/numpy/lax_numpy.py",
"new_path": "jax/numpy/lax_numpy.py",
"diff": "@@ -1148,24 +1148,22 @@ def atleast_3d(*arys):\nreturn [atleast_3d(arr) for arr in arys]\n-# TODO(mattjj): can this be simplified?\n@_wraps(onp.array)\ndef array(object, dtype=None, copy=T... | Python | Apache License 2.0 | google/jax | remove unused jax.numpy.array case (was typo) |
260,335 | 18.02.2019 11:37:30 | 28,800 | ae0b56800ecd044f1bb11e11a91c555c1afbc964 | conceptual progress! need to rewrite jaxpr | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "peval.py",
"diff": "+from functools import partial\n+import numpy as onp\n+import jax.numpy as np\n+from jax import jit, pjit, grad, linearize, jvp, make_jaxpr\n+from jax.lax import psum\n+\n+@partial(pjit, axis_name='i')\n+def f(x):\n+ return n... | Python | Apache License 2.0 | google/jax | conceptual progress! need to rewrite jaxpr |
260,335 | 20.02.2019 12:36:18 | 28,800 | 12c5bdff9e0698daa5f6cf09b9ac9bc09ccb1003 | sketched out new stuff | [
{
"change_type": "MODIFY",
"old_path": "jax/api.py",
"new_path": "jax/api.py",
"diff": "@@ -405,20 +405,15 @@ def vmap(fun, in_axes=0, out_axes=0):\nreturn batched_fun\n-def pjit(fun, axis_name, in_axes=0, out_axes=0, mesh_axis=0):\n+def pjit(fun, axis_name):\n\"\"\"Set up SPMD function for JIT comp... | Python | Apache License 2.0 | google/jax | sketched out new stuff |
260,335 | 21.02.2019 11:47:26 | 28,800 | 4c1fc9cfbd0df112ddaec8b4663f025fda7350f9 | peval.py works again (some paired w/ | [
{
"change_type": "MODIFY",
"old_path": "jax/ad_util.py",
"new_path": "jax/ad_util.py",
"diff": "@@ -16,8 +16,7 @@ from __future__ import absolute_import\nfrom __future__ import division\nfrom __future__ import print_function\n-from .core import JaxTuple, lattice_join\n-from .interpreters.partial_eva... | Python | Apache License 2.0 | google/jax | peval.py works again (some paired w/ @dougalm) |
260,335 | 21.02.2019 13:42:51 | 28,800 | 8211e433a90e5333b70527abd07f50f91fa6a952 | let's get this grad of pjit goin | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/pxla.py",
"new_path": "jax/interpreters/pxla.py",
"diff": "@@ -203,6 +203,7 @@ xla_pcall_p = core.Primitive('xla_pcall')\nxla_pcall = partial(core.call_bind, xla_pcall_p)\nxla_pcall_p.def_custom_bind(xla_pcall)\nxla_pcall_p.def_impl(xla_pcall_... | Python | Apache License 2.0 | google/jax | let's get this grad of pjit goin |
260,335 | 21.02.2019 18:37:51 | 28,800 | 2817c4ded81c80d773c88bcf6fcbdd89ab4ca854 | grad of pjit! | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/ad.py",
"new_path": "jax/interpreters/ad.py",
"diff": "@@ -75,7 +75,8 @@ def vjp(traceable, primals):\ndef vjp_(ct):\nct = ignore_consts(ct, pval)\ndummy_primal_and_ct = pack((core.unit, ct))\n- _, arg_cts = backward_pass(jaxpr, consts, (), du... | Python | Apache License 2.0 | google/jax | grad of pjit! |
260,335 | 21.02.2019 21:41:55 | 28,800 | 72e2e5da0661eea8313f8a8452523fb413c01c85 | remove old pjit tests | [
{
"change_type": "MODIFY",
"old_path": "tests/pjit_test.py",
"new_path": "tests/pjit_test.py",
"diff": "@@ -29,84 +29,8 @@ from jax.config import config\nconfig.parse_flags_with_absl()\n-class PmapTest(jtu.JaxTestCase):\n-\n- @jtu.skip_on_devices(\"gpu\")\n- def testBasic(self):\n- f = lambda x: x -... | Python | Apache License 2.0 | google/jax | remove old pjit tests |
260,335 | 22.02.2019 07:56:13 | 28,800 | 121e74f5cc509ada4ccaafda8bd480e6416dcb78 | fix import in api_test.py | [
{
"change_type": "MODIFY",
"old_path": "tests/api_test.py",
"new_path": "tests/api_test.py",
"diff": "@@ -26,7 +26,6 @@ import jax.numpy as np\nfrom jax import jit, grad, device_get, device_put, jacfwd, jacrev, hessian\nfrom jax import api\nfrom jax.core import Primitive\n-from jax.interpreters.part... | Python | Apache License 2.0 | google/jax | fix import in api_test.py |
260,335 | 22.02.2019 08:13:46 | 28,800 | 45c41d9e5876e6fc5e71d9b56e6edbeb46bb1323 | fix typo in abstract_eval NotImplementedError | [
{
"change_type": "MODIFY",
"old_path": "jax/core.py",
"new_path": "jax/core.py",
"diff": "@@ -96,7 +96,7 @@ class Primitive(object):\ndef abstract_eval(self, *args, **kwargs):\nraise NotImplementedError(\"Abstract evaluation for '{}' not implemented\"\n- .format(primitive.name))\n+ .format(self.name... | Python | Apache License 2.0 | google/jax | fix typo in abstract_eval NotImplementedError |
260,335 | 22.02.2019 09:18:48 | 28,800 | 1c648477a953025870c0f8fc8fbd35f5df5f2cf6 | fix typo in pjit | [
{
"change_type": "MODIFY",
"old_path": "jax/api.py",
"new_path": "jax/api.py",
"diff": "@@ -418,7 +418,7 @@ def pjit(fun, axis_name):\naxis_size = axis_sizes.pop()\njaxtupletree_args, in_trees = unzip2(map(pytree_to_jaxtupletree, args))\n- check_args(jaxtupletree_args)\n+ _check_args(jaxtupletree_ar... | Python | Apache License 2.0 | google/jax | fix typo in pjit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.