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
29.04.2022 16:36:57
25,200
65bff3c856ecb7b21c48ab254444dacf4f90e669
[remove-units] avoid unit-generating function in jax.linear_transpose
[ { "change_type": "MODIFY", "old_path": "jax/_src/api.py", "new_path": "jax/_src/api.py", "diff": "@@ -2515,7 +2515,7 @@ def linear_transpose(fun: Callable, *primals, reduce_axes=()) -> Callable:\nin_dtypes = map(dtypes.dtype, in_avals)\nin_pvals = map(pe.PartialVal.unknown, in_avals)\n- jaxpr, out_p...
Python
Apache License 2.0
google/jax
[remove-units] avoid unit-generating function in jax.linear_transpose
260,447
29.04.2022 16:42:08
25,200
020849076c9e927b3ee091015bddecc7d01bf71d
[linalg] Add tpu svd lowering rule.
[ { "change_type": "MODIFY", "old_path": "CHANGELOG.md", "new_path": "CHANGELOG.md", "diff": "@@ -13,6 +13,10 @@ PLEASE REMEMBER TO CHANGE THE '..main' WITH AN ACTUAL TAG in GITHUB LINK.\n* [GitHub\ncommits](https://github.com/google/jax/compare/jax-v0.3.7...main).\n* Changes\n+ * {func}`jax.numpy.lin...
Python
Apache License 2.0
google/jax
[linalg] Add tpu svd lowering rule. PiperOrigin-RevId: 445533767
260,335
29.04.2022 19:58:16
25,200
290c90d37a0e112022c75f190cb518aa54b13110
Trivial change for backward compatibility stub.
[ { "change_type": "MODIFY", "old_path": "jax/interpreters/partial_eval.py", "new_path": "jax/interpreters/partial_eval.py", "diff": "@@ -2135,3 +2135,5 @@ def trace_to_subjaxpr(main: core.MainTrace, instantiate: Union[bool, Sequence[bo\nout_pvals = [t.pval for t in out_tracers]\ndel trace, in_tracers...
Python
Apache License 2.0
google/jax
Trivial change for backward compatibility stub. PiperOrigin-RevId: 445564091
260,335
02.05.2022 10:02:02
25,200
11ad045dfd561882660861d0a3e2bae69fc8e7e4
[remove-units] remove units from partial_eval.py After last week's changes, units are no longer traced or introduced into jaxprs in any way, so we don't need to use them in partial evaluation. (Also there are some unrelated removals of dead code in maps.py.)
[ { "change_type": "MODIFY", "old_path": "jax/_src/api.py", "new_path": "jax/_src/api.py", "diff": "@@ -1512,7 +1512,7 @@ def _mapped_axis_size(tree, vals, dims, name, *, kws=False):\ntree, leaf = treedef_children(tree)\nassert treedef_is_leaf(leaf)\n# TODO(mattjj,phawkins): add a way to inspect pytre...
Python
Apache License 2.0
google/jax
[remove-units] remove units from partial_eval.py After last week's changes, units are no longer traced or introduced into jaxprs in any way, so we don't need to use them in partial evaluation. (Also there are some unrelated removals of dead code in maps.py.)
260,475
26.04.2022 18:03:14
-3,600
372371cec68d1d18df7ccfb7e5b7b27ae59f7236
Add jax.scipy.linalg.funm
[ { "change_type": "MODIFY", "old_path": "docs/jax.scipy.rst", "new_path": "docs/jax.scipy.rst", "diff": "@@ -29,6 +29,7 @@ jax.scipy.linalg\neigh_tridiagonal\nexpm\nexpm_frechet\n+ funm\ninv\nlu\nlu_factor\n" }, { "change_type": "ADD", "old_path": null, "new_path": "jax/_src/third_par...
Python
Apache License 2.0
google/jax
Add jax.scipy.linalg.funm
260,631
02.05.2022 23:24:19
25,200
c72154474f88e64d44086ab8fc152ff83d6dc5a7
better error message in mesh_utils.py
[ { "change_type": "MODIFY", "old_path": "jax/experimental/mesh_utils.py", "new_path": "jax/experimental/mesh_utils.py", "diff": "@@ -251,7 +251,8 @@ def create_device_mesh(\nif devices is None:\ndevices = jax.devices()\nif np.prod(mesh_shape) != len(devices):\n- raise ValueError('Number of devices mu...
Python
Apache License 2.0
google/jax
better error message in mesh_utils.py PiperOrigin-RevId: 446119369
260,447
02.05.2022 23:52:31
25,200
f7296a48e57f6006de679c0b2a3ac3d8350a90f1
[linalg] Update LU decomposition.
[ { "change_type": "MODIFY", "old_path": "jax/_src/lax/linalg.py", "new_path": "jax/_src/lax/linalg.py", "diff": "@@ -950,17 +950,12 @@ def _lu_blocked(a, block_size=128):\ndef _lu_python(x):\n\"\"\"Default LU decomposition in Python, where no better version exists.\"\"\"\n- m, n = x.shape[-2:]\nbatch...
Python
Apache License 2.0
google/jax
[linalg] Update LU decomposition. PiperOrigin-RevId: 446122667
260,510
14.04.2022 14:18:31
25,200
8031eee7ee9eede434e540dbb2d0076da88b2c25
Add in runtime tokens for effectful jaxprs
[ { "change_type": "MODIFY", "old_path": "jax/_src/api.py", "new_path": "jax/_src/api.py", "diff": "@@ -476,18 +476,21 @@ def _cpp_jit(\n# outputs that could be tracers (if f is capturing `Tracer` by closure).\nexecute: Optional[functools.partial] = (\ndispatch._xla_callable.most_recent_entry())\n+ # ...
Python
Apache License 2.0
google/jax
Add in runtime tokens for effectful jaxprs
260,510
14.04.2022 14:18:31
25,200
ef982cfa8c2b94273208828954f6afd50133ea7e
Attach keepalive to executable
[ { "change_type": "MODIFY", "old_path": "jax/_src/api.py", "new_path": "jax/_src/api.py", "diff": "@@ -815,7 +815,7 @@ def xla_computation(fun: Callable,\nout_parts_flat = tuple(flatten_axes(\n\"xla_computation out_parts\", out_tree(), out_parts))\neffects = list(jaxpr.effects)\n- m = mlir.lower_jaxp...
Python
Apache License 2.0
google/jax
Attach keepalive to executable
260,510
03.05.2022 16:50:11
25,200
7a641de7a7d96b5bc6da9875a47300c392294029
Add initial debug print implementation
[ { "change_type": "ADD", "old_path": null, "new_path": "jax/_src/debugging.py", "diff": "+# Copyright 2022 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...
Python
Apache License 2.0
google/jax
Add initial debug print implementation Co-authored-by: Matthew Johnson <mattjj@google.com>
260,510
03.05.2022 20:53:30
25,200
78a4e30651c676037bcf043435a07ab19845a577
Don't leak the keepalive in debug_callback lowering
[ { "change_type": "MODIFY", "old_path": "jax/_src/debugging.py", "new_path": "jax/_src/debugging.py", "diff": "@@ -69,10 +69,6 @@ def debug_callback_transpose_rule(*flat_args, callback: Callable[..., Any],\nraise NotImplementedError('Transpose not supported for `debug_callback`.')\nad.primitive_trans...
Python
Apache License 2.0
google/jax
Don't leak the keepalive in debug_callback lowering
260,335
04.05.2022 09:42:20
25,200
0c5864a2203c3f7249bff171355a9e70dc0f7ec2
add xla_client._version checks for mhlo.ConstOp signature fix break from
[ { "change_type": "MODIFY", "old_path": "jax/interpreters/mlir.py", "new_path": "jax/interpreters/mlir.py", "diff": "@@ -208,6 +208,7 @@ def _numpy_array_constant(x: np.ndarray, canonicalize_types\nif canonicalize_types:\nx = np.asarray(x, dtypes.canonicalize_dtype(x.dtype))\nelement_type = dtype_to_...
Python
Apache License 2.0
google/jax
add xla_client._version checks for mhlo.ConstOp signature fix break from 0cf08d0c6841332240cae873e4b4cf9a9b313373
260,510
04.05.2022 11:11:02
25,200
dc42d7bb8e60be2b44396a89dbc4f07174b6c721
Enable print in while loops/scan
[ { "change_type": "MODIFY", "old_path": "jax/_src/debugging.py", "new_path": "jax/_src/debugging.py", "diff": "@@ -23,12 +23,15 @@ from jax import tree_util\nfrom jax.interpreters import ad\nfrom jax.interpreters import batching\nfrom jax.interpreters import mlir\n+from jax._src.lax import control_fl...
Python
Apache License 2.0
google/jax
Enable print in while loops/scan
260,510
04.05.2022 15:46:05
25,200
4703766f61cfb310fafe3e22ce95d2ab4cd872b6
Enable effects for cond in while loop
[ { "change_type": "MODIFY", "old_path": "jax/_src/lax/control_flow.py", "new_path": "jax/_src/lax/control_flow.py", "diff": "@@ -577,10 +577,52 @@ def _while_lowering(ctx, *args, cond_jaxpr, body_jaxpr, cond_nconsts,\nbody_nconsts):\npred_aval = cond_jaxpr.out_avals[0]\nbatched = bool(pred_aval.shape...
Python
Apache License 2.0
google/jax
Enable effects for cond in while loop
260,510
04.05.2022 17:42:50
25,200
c1a8d7fb573fd57fb37c7b075839c00c06107544
Enable batching rule for debug_print
[ { "change_type": "MODIFY", "old_path": "jax/_src/debugging.py", "new_path": "jax/_src/debugging.py", "diff": "@@ -20,10 +20,13 @@ from typing import Callable, Any\nfrom jax import core\nfrom jax import tree_util\n+from jax import lax\n+from jax._src import util\nfrom jax.interpreters import ad\nfrom...
Python
Apache License 2.0
google/jax
Enable batching rule for debug_print Co-authored-by: Matthew Johnson <mattjj@google.com>
260,631
05.05.2022 07:11:42
25,200
ef18220158d50f85c8e22ff8e7a216f20db0eadd
Updated documentation for approx_*_k to specify when the top k is guaranteed to be ordered.
[ { "change_type": "MODIFY", "old_path": "jax/_src/lax/ann.py", "new_path": "jax/_src/lax/ann.py", "diff": "@@ -101,10 +101,10 @@ def approx_max_k(operand: Array,\nrecall. This option is useful when the given ``operand`` is only a subset\nof the overall computation in SPMD or distributed pipelines, wh...
Python
Apache License 2.0
google/jax
Updated documentation for approx_*_k to specify when the top k is guaranteed to be ordered. PiperOrigin-RevId: 446708610
260,510
04.05.2022 17:58:09
25,200
4296cb1c2bc1a109b2f4f815de46ac5d831c972f
Enable AD rules for `debug_print`
[ { "change_type": "MODIFY", "old_path": "jax/_src/debugging.py", "new_path": "jax/_src/debugging.py", "diff": "@@ -78,15 +78,16 @@ batching.primitive_batchers[debug_callback_p] = debug_callback_batching_rule\ndef debug_callback_jvp_rule(*flat_args, callback: Callable[..., Any],\neffect: DebugEffect, ...
Python
Apache License 2.0
google/jax
Enable AD rules for `debug_print`
260,335
05.05.2022 13:16:44
25,200
b92c6b1e4d3ec577761a886fd4daec863ce9f9d6
fix ad_checkpoint.checkpoint vmap rule
[ { "change_type": "MODIFY", "old_path": "jax/_src/ad_checkpoint.py", "new_path": "jax/_src/ad_checkpoint.py", "diff": "@@ -305,6 +305,7 @@ def remat_partial_eval(trace, *tracers, jaxpr, **params):\npolicy = params['policy'] or (lambda *_, **__: False)\n# unzip into jaxpr_known and jaxpr_unknown\nin_u...
Python
Apache License 2.0
google/jax
fix ad_checkpoint.checkpoint vmap rule
260,510
04.05.2022 14:37:40
25,200
3941e76f6c3c872034b3c337fe48c43f1881ea8a
Enable effects for cond
[ { "change_type": "MODIFY", "old_path": "jax/_src/lax/control_flow.py", "new_path": "jax/_src/lax/control_flow.py", "diff": "@@ -789,8 +789,11 @@ def switch(index, branches: Sequence[Callable], *operands,\n_check_tree_and_avals(f\"branch 0 and {i + 1} outputs\",\nout_trees[0], jaxprs[0].out_avals,\no...
Python
Apache License 2.0
google/jax
Enable effects for cond Co-authored-by: Matthew Johnson <mattjj@google.com>
260,447
05.05.2022 20:12:01
25,200
d57e36416f9ddba10f434e70123df22a3d38ac77
[linalg] Update qdwh to prevent underflow in norm estimation.
[ { "change_type": "MODIFY", "old_path": "jax/_src/lax/qdwh.py", "new_path": "jax/_src/lax/qdwh.py", "diff": "@@ -73,7 +73,8 @@ def _qdwh(x, is_symmetric, max_iterations):\n# norm(x, 2) such that `alpha >= norm(x, 2)` and `beta` is a lower bound for\n# the smallest singular value of x.\neps = jnp.finf...
Python
Apache License 2.0
google/jax
[linalg] Update qdwh to prevent underflow in norm estimation. PiperOrigin-RevId: 446887070
260,335
30.04.2022 21:50:18
25,200
d0863a1258d2fba11ce5885453b32f30f23bedbe
add scan dce rule tests, fix bugs
[ { "change_type": "MODIFY", "old_path": "jax/_src/lax/control_flow.py", "new_path": "jax/_src/lax/control_flow.py", "diff": "@@ -2037,30 +2037,36 @@ def _scan_padding_rule(in_avals, out_avals, *args, jaxpr, **params):\ndef _scan_dce_rule(used_outputs: List[bool], eqn: core.JaxprEqn\n) -> Tuple[List[b...
Python
Apache License 2.0
google/jax
add scan dce rule tests, fix bugs
260,335
05.05.2022 22:09:40
25,200
04e4ffdda737e42c691bc4f9d46186ff3be1ed65
gate scan dce rule on after_neurips flag
[ { "change_type": "MODIFY", "old_path": "jax/_src/config.py", "new_path": "jax/_src/config.py", "diff": "@@ -734,6 +734,12 @@ config.define_bool_state(\ndefault=(lib.version >= (0, 3, 6)),\nhelp=('Enables using optimization-barrier op for lowering remat.'))\n+# TODO(mattjj): remove after May 19 2022,...
Python
Apache License 2.0
google/jax
gate scan dce rule on after_neurips flag
260,447
06.05.2022 16:33:13
25,200
109355985664a23054b6a88b583c2465a8e101f6
[linalg] Add matmul precision scope for svd.
[ { "change_type": "MODIFY", "old_path": "jax/_src/lax/svd.py", "new_path": "jax/_src/lax/svd.py", "diff": "@@ -153,10 +153,11 @@ def svd(a: Any,\nreduce_to_square = True\nif not compute_uv:\n+ with jax.default_matmul_precision('float32'):\nreturn _svd(a, hermitian, compute_uv, max_iterations)\n+ with...
Python
Apache License 2.0
google/jax
[linalg] Add matmul precision scope for svd. PiperOrigin-RevId: 447095391
260,301
07.05.2022 13:38:55
-3,600
a11f15e3eccfb59d02ba42b714f5c36e9117c9ef
feat: officially support Python 3.10
[ { "change_type": "MODIFY", "old_path": ".github/workflows/ci-build.yaml", "new_path": ".github/workflows/ci-build.yaml", "diff": "name: CI\n+# We test all supported Python versions as follows:\n+# - 3.7 : Documentation build\n+# - 3.8 : Part of Matrix\n+# - 3.9 : Part of Matrix with NumPy dispatch\n...
Python
Apache License 2.0
google/jax
feat: officially support Python 3.10
260,411
09.05.2022 15:45:36
-10,800
137fdb4c88db1e8944da1f0bec99c0fa70df917a
[jax2tf] Update JAX limitations. JAX has made progress in coverage of primitives on TPU. This PR updates those limitations.
[ { "change_type": "MODIFY", "old_path": "jax/experimental/jax2tf/g3doc/jax_primitives_coverage.md", "new_path": "jax/experimental/jax2tf/g3doc/jax_primitives_coverage.md", "diff": "# Primitives with limited JAX support\n-*Last generated on: 2021-07-31* (YYYY-MM-DD)\n+*Last generated on: 2022-05-09* (...
Python
Apache License 2.0
google/jax
[jax2tf] Update JAX limitations. JAX has made progress in coverage of primitives on TPU. This PR updates those limitations.
260,411
09.05.2022 18:40:41
-10,800
91583f9c25a16d67574b28717895dc2546133948
[jax2tf] Update jax2tf limitations. It seems that TF has made progress and more JAX primitives can now be converted correctly to TF. This PR updates the limitations.
[ { "change_type": "MODIFY", "old_path": "jax/experimental/jax2tf/g3doc/primitives_with_limited_support.md", "new_path": "jax/experimental/jax2tf/g3doc/primitives_with_limited_support.md", "diff": "@@ -76,13 +76,11 @@ More detailed information can be found in the\n| eig | TF error: function not compil...
Python
Apache License 2.0
google/jax
[jax2tf] Update jax2tf limitations. It seems that TF has made progress and more JAX primitives can now be converted correctly to TF. This PR updates the limitations.
260,631
09.05.2022 10:45:40
25,200
96173913f0b5a5024ca006d335be1ab6c191afa3
Add retry logic to `cloud_tpu_init.py` when API response fails
[ { "change_type": "MODIFY", "old_path": "jax/_src/cloud_tpu_init.py", "new_path": "jax/_src/cloud_tpu_init.py", "diff": "@@ -60,6 +60,7 @@ def cloud_tpu_init():\n# pylint: disable=import-outside-toplevel\n# pytype: disable=import-error\nimport requests\n+ import time\n# pytype: enable=import-error\n#...
Python
Apache License 2.0
google/jax
Add retry logic to `cloud_tpu_init.py` when API response fails PiperOrigin-RevId: 447509510
260,447
09.05.2022 11:28:53
25,200
4bc1c1c00455ff2d07acb87dc03dcfd43b9c7014
[linalg] Add svd on zero matrix.
[ { "change_type": "MODIFY", "old_path": "tests/svd_test.py", "new_path": "tests/svd_test.py", "diff": "@@ -184,6 +184,25 @@ class SvdTest(jtu.JaxTestCase):\nactual_diff = jnp.diff(actual_s, append=0)\nnp.testing.assert_array_less(actual_diff, np.zeros_like(actual_diff))\n+ @parameterized.named_parame...
Python
Apache License 2.0
google/jax
[linalg] Add svd on zero matrix. PiperOrigin-RevId: 447521398
260,403
10.05.2022 09:43:36
25,200
882a2d5dd3abc301226657e20819a7550f8d8d9f
Rollback of PR "Improve performance of array integer indexing" This PR has broken some user models so needs to be investigated further before merging.
[ { "change_type": "MODIFY", "old_path": "jax/_src/numpy/lax_numpy.py", "new_path": "jax/_src/numpy/lax_numpy.py", "diff": "@@ -3416,12 +3416,6 @@ def _take(a, indices, axis: Optional[int] = None, out=None, mode=None):\ndef _normalize_index(index, axis_size):\n\"\"\"Normalizes an index value in the ra...
Python
Apache License 2.0
google/jax
Rollback of PR #10393 "Improve performance of array integer indexing" This PR has broken some user models so needs to be investigated further before merging. PiperOrigin-RevId: 447756000
260,447
10.05.2022 13:02:18
25,200
48f47c36c4f671e9cdd068a7ab67f0dc19d0a6f9
[linalg] Fix a bug in computing derivatives of scipy.special.lpmn.
[ { "change_type": "MODIFY", "old_path": "jax/_src/scipy/special.py", "new_path": "jax/_src/scipy/special.py", "diff": "@@ -769,7 +769,7 @@ def _gen_derivatives(p: jnp.ndarray,\nif num_l > 2:\nl_vec = jnp.arange(2, num_l - 1)\np_p2 = p[2, 2:num_l - 1, :]\n- coeff = 1.0 / ((l_vec + 2) * (l_vec + 1) * l...
Python
Apache License 2.0
google/jax
[linalg] Fix a bug in computing derivatives of scipy.special.lpmn. PiperOrigin-RevId: 447807140
260,510
10.05.2022 13:13:55
25,200
7d27343506d58b35f1f103651b72e83d0c6893df
Attach keepalive to pmap executable
[ { "change_type": "MODIFY", "old_path": "jax/interpreters/pxla.py", "new_path": "jax/interpreters/pxla.py", "diff": "@@ -1048,16 +1048,17 @@ def lower_parallel_callable(\ntuple_args = should_tuple_args(shards)\nmodule_name = f\"pmap_{fun.__name__}\"\nwith maybe_extend_axis_env(axis_name, global_axis_...
Python
Apache License 2.0
google/jax
Attach keepalive to pmap executable PiperOrigin-RevId: 447810195
260,447
11.05.2022 09:59:17
25,200
52ad3e6682ef85c1f6724ce2e194da5f2423613b
[linalg] Extend svd test coverage to input of zero and near-zero elements.
[ { "change_type": "MODIFY", "old_path": "tests/svd_test.py", "new_path": "tests/svd_test.py", "diff": "@@ -201,5 +201,32 @@ class SvdTest(jtu.JaxTestCase):\nself._CheckAgainstNumpy(osp_fun, lax_fun, args_maker_svd)\nself._CompileAndCheck(lax_fun, args_maker_svd)\n+\n+ @parameterized.named_parameters(...
Python
Apache License 2.0
google/jax
[linalg] Extend svd test coverage to input of zero and near-zero elements. PiperOrigin-RevId: 448019846
260,510
11.05.2022 11:07:00
25,200
aca9dc6c6f40eb99886568dbf1b70cc4d56a4e0f
Update custom interpreter tutorial
[ { "change_type": "MODIFY", "old_path": "docs/notebooks/Writing_custom_interpreters_in_Jax.ipynb", "new_path": "docs/notebooks/Writing_custom_interpreters_in_Jax.ipynb", "diff": "\"source\": [\n\"To get a first look at Jaxprs, consider the `make_jaxpr` transformation. `make_jaxpr` is essentially a \\...
Python
Apache License 2.0
google/jax
Update custom interpreter tutorial
260,335
11.05.2022 11:18:25
25,200
28672970bb07686c79e9b4e18cf420df420211f2
fix grad(..., argnums=-1), regressed in
[ { "change_type": "MODIFY", "old_path": "jax/_src/api_util.py", "new_path": "jax/_src/api_util.py", "diff": "import operator\nfrom functools import partial\n-from typing import Any, Dict, Iterable, Tuple, Union, Optional\n+from typing import Any, Dict, Iterable, Tuple, Sequence, Union, Optional\nimpo...
Python
Apache License 2.0
google/jax
fix grad(..., argnums=-1), regressed in #10453
260,510
10.05.2022 10:43:03
25,200
2bce098f1526ebc27115aceed9c2865f33e7d6e0
Add sequencing effects design note
[ { "change_type": "MODIFY", "old_path": "docs/design_notes/index.rst", "new_path": "docs/design_notes/index.rst", "diff": "@@ -9,3 +9,4 @@ Design Notes\nomnistaging\nprng\ntype_promotion\n+ sequencing_effects\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs/design_not...
Python
Apache License 2.0
google/jax
Add sequencing effects design note
260,532
11.05.2022 21:19:28
0
4a631886c67e36368f8e76dc28099d8777d3cbc8
Fixed a typo in `cloud_tpu_init.py`
[ { "change_type": "MODIFY", "old_path": "jax/_src/cloud_tpu_init.py", "new_path": "jax/_src/cloud_tpu_init.py", "diff": "@@ -77,7 +77,7 @@ def cloud_tpu_init():\napi_resp = requests.get(\nf'{gce_metadata_endpoint}/computeMetadata/v1/instance/attributes/{key}',\nheaders={'Metadata-Flavor': 'Google'})\...
Python
Apache License 2.0
google/jax
Fixed a typo in `cloud_tpu_init.py`
260,335
05.05.2022 15:18:57
25,200
0b841cf35bf05b46504f575c727afac2ab368359
make core_test.py pass with core.call
[ { "change_type": "MODIFY", "old_path": "jax/interpreters/ad.py", "new_path": "jax/interpreters/ad.py", "diff": "@@ -593,7 +593,7 @@ def call_transpose(primitive, params, call_jaxpr, args, ct, _, reduce_axes):\nfun = lu.hashable_partial(lu.wrap_init(backward_pass), call_jaxpr,\nreduce_axes, False)\nf...
Python
Apache License 2.0
google/jax
make core_test.py pass with core.call
260,301
12.05.2022 19:45:41
-3,600
e422441a65872eb698f51509eb9a3c726ea8c420
fix: mypy warning
[ { "change_type": "MODIFY", "old_path": "jax/experimental/jax2tf/shape_poly.py", "new_path": "jax/experimental/jax2tf/shape_poly.py", "diff": "@@ -823,7 +823,7 @@ def _solve_dim_equations(eqns: List[DimEquation]) -> ShapeEnv:\n# TODO(necula): check even in graph mode, by embedding the checks in\n# th...
Python
Apache License 2.0
google/jax
fix: mypy warning
260,335
12.05.2022 16:55:50
25,200
d719e5a55fb1bc1614da75036902f4d39bb05796
tweak mlir shape_tensor helper, fewer MHLO ops
[ { "change_type": "MODIFY", "old_path": "jax/interpreters/mlir.py", "new_path": "jax/interpreters/mlir.py", "diff": "@@ -79,11 +79,13 @@ def i64_attr(i): return ir.IntegerAttr.get(ir.IntegerType.get_signless(64), i)\ndef shape_tensor(sizes: Sequence[Union[int, ir.RankedTensorType]]\n) -> ir.RankedTen...
Python
Apache License 2.0
google/jax
tweak mlir shape_tensor helper, fewer MHLO ops
260,573
14.05.2022 16:13:38
-3,600
8579e28570e3db99a4dfa3dd7b85537a3123082f
tests: add lax.scatter to tests
[ { "change_type": "MODIFY", "old_path": "jax/experimental/jax2tf/tests/jax2tf_limitations.py", "new_path": "jax/experimental/jax2tf/tests/jax2tf_limitations.py", "diff": "@@ -949,6 +949,10 @@ class Jax2TfLimitation(primitive_harness.Limitation):\ndef scatter_mul(cls, harness):\nreturn []\n+ @classmet...
Python
Apache License 2.0
google/jax
tests: add lax.scatter to tests
260,573
14.05.2022 16:21:05
-3,600
17f8638fd451e46fc387ef6f32a8db13b2a92e5a
feat: support subset of scatters with no XLA Supports: Scatters with unique indices e.g..at[:, ((3,4),(5,5)), 3].add Contiguous scatters with non-unique indices of single depth e.g..at[:, ((2,2,2),)].add
[ { "change_type": "MODIFY", "old_path": "jax/experimental/jax2tf/g3doc/no_xla_limitations.md", "new_path": "jax/experimental/jax2tf/g3doc/no_xla_limitations.md", "diff": "@@ -33,7 +33,7 @@ For a detailed description of these XLA ops, please see the\n| XlaConv | `lax.conv_general_dilated` | [Partial](...
Python
Apache License 2.0
google/jax
feat: support subset of scatters with no XLA Supports: - Scatters with unique indices e.g..at[:, ((3,4),(5,5)), 3].add - Contiguous scatters with non-unique indices of single depth e.g..at[:, ((2,2,2),)].add
260,335
04.05.2022 22:59:06
25,200
c0d6a04b7666ff58fc92d5fee78772bf11012a8a
remove jnp.array case for handling buffers w/ aval=None This functionality was added in but was superceded by later changes which ensured that we never produce DeviceArrays with their 'aval' property set to None (even when indexing ShardedDeviceArrays with integers, which used to be a problem case).
[ { "change_type": "MODIFY", "old_path": "jax/_src/numpy/lax_numpy.py", "new_path": "jax/_src/numpy/lax_numpy.py", "diff": "@@ -1806,15 +1806,16 @@ def array(object, dtype=None, copy=True, order=\"K\", ndmin=0):\nlax_internal._check_user_dtype_supported(dtype, \"array\")\n# Here we make a judgment cal...
Python
Apache License 2.0
google/jax
remove jnp.array case for handling buffers w/ aval=None This functionality was added in #8134, but was superceded by later changes which ensured that we never produce DeviceArrays with their 'aval' property set to None (even when indexing ShardedDeviceArrays with integers, which used to be a problem case).
260,335
14.05.2022 11:03:50
25,200
05dda560195fa2f6bf26ab75472c2c6a3c99a79a
add core.closed_call_p
[ { "change_type": "MODIFY", "old_path": "jax/core.py", "new_path": "jax/core.py", "diff": "@@ -17,7 +17,7 @@ import collections\nfrom collections import namedtuple\nfrom contextlib import contextmanager\nimport functools\n-from functools import partialmethod, total_ordering\n+from functools import pa...
Python
Apache License 2.0
google/jax
add core.closed_call_p
260,510
12.05.2022 22:22:52
25,200
b8a523f977a9b4e63b568a7af83621fdb1c755be
Enable colors when we are using a terminal or IPython
[ { "change_type": "MODIFY", "old_path": "jax/_src/config.py", "new_path": "jax/_src/config.py", "diff": "@@ -476,7 +476,7 @@ flags.DEFINE_integer(\nflags.DEFINE_bool(\n'jax_pprint_use_color',\n- bool_env('JAX_PPRINT_USE_COLOR', False),\n+ bool_env('JAX_PPRINT_USE_COLOR', True),\nhelp='Enable jaxpr pr...
Python
Apache License 2.0
google/jax
Enable colors when we are using a terminal or IPython
260,411
09.05.2022 15:41:38
-10,800
e65dd91b670148d62abc8ba0410ac375602bc85f
[jax2tf] Document the handling of custom JAX pytrees Add a test also.
[ { "change_type": "MODIFY", "old_path": "jax/experimental/jax2tf/README.md", "new_path": "jax/experimental/jax2tf/README.md", "diff": "@@ -708,6 +708,82 @@ g_jaxx2tf_0 = tape.gradient(res, xs,\n# In this case we get the same result as for TF native.\n```\n+### Functions whose arguments and results ar...
Python
Apache License 2.0
google/jax
[jax2tf] Document the handling of custom JAX pytrees Add a test also.
260,510
16.05.2022 18:55:52
25,200
268b4be21b7f3b9a92c45e4b77adda749f6e18cc
Add output token for unordered effects Currently we can't block on *unordered* effectful computations because there are no runtime tokens for them. This change adds a per-device token that is returned by effectful computations. This enables us to block on them if we want. See the design note added in
[ { "change_type": "MODIFY", "old_path": "jax/__init__.py", "new_path": "jax/__init__.py", "diff": "@@ -57,6 +57,7 @@ from jax._src.config import (\nfrom .core import eval_context as ensure_compile_time_eval\nfrom jax._src.api import (\nad, # TODO(phawkins): update users to avoid this.\n+ effects_barr...
Python
Apache License 2.0
google/jax
Add output token for unordered effects Currently we can't block on *unordered* effectful computations because there are no runtime tokens for them. This change adds a per-device token that is returned by effectful computations. This enables us to block on them if we want. See the design note added in https://github.com/google/jax/pull/10657. PiperOrigin-RevId: 449106281
260,301
06.05.2022 16:28:24
-3,600
838a05329df5c039eff95a484eb059e0b46a0da5
feat: validate jit args
[ { "change_type": "MODIFY", "old_path": "jax/_src/api.py", "new_path": "jax/_src/api.py", "diff": "@@ -32,6 +32,7 @@ import types\nfrom typing import (Any, Callable, Iterable, NamedTuple, Mapping, Optional,\nSequence, Tuple, TypeVar, Union, overload, Dict, Hashable,\nList)\n+from typing_extensions im...
Python
Apache License 2.0
google/jax
feat: validate jit args
260,335
18.05.2022 14:11:10
25,200
052a9183f065de0d62596b41f47701b9e377e6a9
quick fix for add checks and todo
[ { "change_type": "MODIFY", "old_path": "jax/_src/custom_derivatives.py", "new_path": "jax/_src/custom_derivatives.py", "diff": "@@ -360,6 +360,8 @@ def _custom_jvp_call_jaxpr_jvp(\nouts = core.eval_jaxpr(jvp_jaxpr, jvp_consts, *args, *args_dot)\nprimals_out, tangents_out = split_list(outs, [len(outs...
Python
Apache License 2.0
google/jax
quick fix for #10750, add checks and todo
260,510
18.05.2022 16:53:52
25,200
1bf51797e452da26445aef78d5a4c1740381221d
add TODO for removing output tokens
[ { "change_type": "MODIFY", "old_path": "jax/_src/dispatch.py", "new_path": "jax/_src/dispatch.py", "diff": "@@ -138,6 +138,8 @@ class RuntimeTokenSet(threading.local):\ndef block_until_ready(self):\nfor t, _ in self.tokens.values():\nt[0].block_until_ready()\n+ # TODO(sharadmv): use a runtime mechan...
Python
Apache License 2.0
google/jax
add TODO for removing output tokens
260,335
18.05.2022 17:26:10
25,200
bea66b1b1a3cae03bf70d346332a3b875fabfdbd
add support for lambda-bound dynamic shape output (iree only)
[ { "change_type": "MODIFY", "old_path": "jax/_src/dispatch.py", "new_path": "jax/_src/dispatch.py", "diff": "@@ -209,7 +209,8 @@ def _xla_call_impl(fun: lu.WrappedFun, *args, device, backend, name,\n# is intentional here, to avoid \"Store occupied\" errors we clone the\n# WrappedFun with empty stores...
Python
Apache License 2.0
google/jax
add support for lambda-bound dynamic shape output (iree only) Co-authored-by: Dougal Maclaurin <dougalm@google.com>
260,510
19.05.2022 10:15:15
25,200
94e719935bd96e6417817c32c004e15d7e58a37d
Make `Effect` a hashable type
[ { "change_type": "MODIFY", "old_path": "jax/core.py", "new_path": "jax/core.py", "diff": "@@ -54,7 +54,7 @@ map, unsafe_map = safe_map, map\n# -------------------- jaxprs --------------------\n-Effect = Any\n+Effect = Hashable\nEffects = Set[Effect]\nno_effects: Effects = set()\n@@ -114,7 +114,7 @@ ...
Python
Apache License 2.0
google/jax
Make `Effect` a hashable type
260,625
19.05.2022 16:35:07
14,400
c128876b34b45683bbbecb88fd3f2d9c38e7e521
incorrect link in dpsgd example
[ { "change_type": "MODIFY", "old_path": "examples/differentially_private_sgd.py", "new_path": "examples/differentially_private_sgd.py", "diff": "@@ -30,7 +30,7 @@ This code depends on tensorflow_privacy (https://github.com/tensorflow/privacy)\n$ pip install .\nThe results match those in the reference...
Python
Apache License 2.0
google/jax
incorrect link in dpsgd example
260,447
19.05.2022 14:28:29
25,200
1656b33ca93d73eb90cde3f9f0ad217f941821be
[sparse] Track `indices_sorted` in sparsify transform.
[ { "change_type": "MODIFY", "old_path": "jax/experimental/sparse/bcoo.py", "new_path": "jax/experimental/sparse/bcoo.py", "diff": "@@ -100,7 +100,7 @@ def _bcoo_set_nse(mat, nse):\nindices = jnp.zeros_like(mat.indices, shape=(*mat.indices.shape[:-2], nse, mat.indices.shape[-1]))\nindices = indices.at...
Python
Apache License 2.0
google/jax
[sparse] Track `indices_sorted` in sparsify transform. PiperOrigin-RevId: 449833669
260,335
24.05.2022 15:01:00
25,200
762f359772994af5aaa0bf50d190e79d062b32b5
remove old pjit comment
[ { "change_type": "MODIFY", "old_path": "jax/experimental/pjit.py", "new_path": "jax/experimental/pjit.py", "diff": "@@ -818,8 +818,6 @@ def _pjit_partial_eval(trace, *in_tracers,\njaxpr, in_axis_resources, out_axis_resources,\nresource_env, donated_invars, name, in_positional_semantics,\nout_positio...
Python
Apache License 2.0
google/jax
remove old pjit comment
260,424
25.05.2022 15:01:35
-3,600
f8f5a5dca34a817ca25938b578c7ff01997c959b
Add notes in buffer donation FAQ about key-word args limitation.
[ { "change_type": "MODIFY", "old_path": "docs/faq.rst", "new_path": "docs/faq.rst", "diff": "@@ -578,12 +578,22 @@ Buffer donation\n(This feature is implemented only for TPU and GPU.)\n-When JAX executes a computation it reserves buffers on the device for all inputs and outputs.\n+When JAX executes a...
Python
Apache License 2.0
google/jax
Add notes in buffer donation FAQ about key-word args limitation.
260,447
25.05.2022 21:06:52
25,200
b6d4c59e64976216b427ee53dd72bff5052445ac
[sparse] Trace BCOO `indices_sorted` in sparsifying zero_preserving_unary_ops.
[ { "change_type": "MODIFY", "old_path": "jax/experimental/sparse/transform.py", "new_path": "jax/experimental/sparse/transform.py", "diff": "@@ -453,7 +453,12 @@ def _zero_preserving_unary_op(prim):\nassert len(spvalues) == 1\nbuf = spenv.data(spvalues[0])\nbuf_out = prim.bind(buf, **kwargs)\n- out_s...
Python
Apache License 2.0
google/jax
[sparse] Trace BCOO `indices_sorted` in sparsifying zero_preserving_unary_ops. PiperOrigin-RevId: 451081409
260,335
19.05.2022 16:23:06
25,200
9b724647d169a73ffae08610741676cb9b182d26
[djax] add support for dynamic-shape outputs
[ { "change_type": "MODIFY", "old_path": "jax/_src/api.py", "new_path": "jax/_src/api.py", "diff": "@@ -529,7 +529,9 @@ def _cpp_jit(\n# Not supported: ShardedDeviceArray\nall(device_array.type_is_device_array(x) for x in out_flat) and\n# Not supported: dynamic shapes\n- not jax.config.jax_dynamic_sha...
Python
Apache License 2.0
google/jax
[djax] add support for dynamic-shape outputs
260,447
26.05.2022 22:22:20
25,200
ae9f9f77eea1e1aba2009f2270ce69770af5f25d
[sparse] Set `jax_bcoo_cusparse_lowering` default to true.
[ { "change_type": "MODIFY", "old_path": "jax/_src/config.py", "new_path": "jax/_src/config.py", "diff": "@@ -725,11 +725,11 @@ traceback_filtering = config.define_enum_state(\n\" * \\\"remove_frames\\\": removes hidden frames from tracebacks, and adds \"\n\" the unfiltered traceback as a __cause__ of...
Python
Apache License 2.0
google/jax
[sparse] Set `jax_bcoo_cusparse_lowering` default to true. PiperOrigin-RevId: 451314487
260,520
27.05.2022 02:56:51
25,200
ae908b875306e774899a12a6f361b8cc2b5806fc
Remove local positional semantics assertion in `make_xmap_callable`.
[ { "change_type": "MODIFY", "old_path": "jax/experimental/maps.py", "new_path": "jax/experimental/maps.py", "diff": "@@ -661,7 +661,6 @@ def make_xmap_callable(fun: lu.WrappedFun,\nglobal_axis_sizes, axis_resources, resource_env, backend,\nspmd_in_axes, spmd_out_axes_thunk, in_positional_semantics,\n...
Python
Apache License 2.0
google/jax
Remove local positional semantics assertion in `make_xmap_callable`. PiperOrigin-RevId: 451347782
260,268
27.05.2022 12:19:47
14,400
6c7542e4a3b549e1d311a19a0ad9b84f8ab7145f
adding notification workflows.
[ { "change_type": "ADD", "old_path": null, "new_path": ".github/workflows/broken-main-notify.yml", "diff": "+name: Google Chat Broken Main Notification\n+on:\n+ check_suite:\n+ types:\n+ - completed\n+ branches:\n+ - main\n+ conclusion:\n+ - failure\n+\n+jobs:\n+ build:\n+ runs-on: ubuntu-latest\n+\n...
Python
Apache License 2.0
google/jax
adding notification workflows.
260,570
27.05.2022 11:03:24
25,200
3e766c76fb9f78b6a468faa279a13e5fc2dfc09a
fix incorrect f-string format in xmap
[ { "change_type": "MODIFY", "old_path": "jax/experimental/maps.py", "new_path": "jax/experimental/maps.py", "diff": "@@ -254,7 +254,7 @@ def _parse_entry(arg_name, entry):\nraise TypeError(f\"\"\"\\\nValue mapping specification in xmap {arg_name} pytree can be either:\n- lists of axis names (possibly...
Python
Apache License 2.0
google/jax
fix incorrect f-string format in xmap
260,268
27.05.2022 14:07:21
14,400
8e34061739593bba72405b0dd44e156c1046a7af
Fixing the interpolation errors and yaml syntax errors.
[ { "change_type": "MODIFY", "old_path": ".github/workflows/broken-main-notify.yml", "new_path": ".github/workflows/broken-main-notify.yml", "diff": "@@ -18,5 +18,5 @@ jobs:\ncurl --location --request POST '${{ secrets.RELEASES_WEBHOOK }}' \\\n--header 'Content-Type: application/json' \\\n--data-raw '...
Python
Apache License 2.0
google/jax
Fixing the interpolation errors and yaml syntax errors.
260,268
27.05.2022 16:13:19
14,400
57da8d941b14c0093d98fbb1cf2bfb6055d79125
Attempting again to fix the yaml syntax issues in the pull request notifier and trying to fix the trigger for the broken main.
[ { "change_type": "MODIFY", "old_path": ".github/workflows/broken-main-notify.yml", "new_path": ".github/workflows/broken-main-notify.yml", "diff": "@@ -5,8 +5,6 @@ on:\n- completed\nbranches:\n- main\n- conclusion:\n- - failure\njobs:\nbuild:\n@@ -14,9 +12,10 @@ jobs:\nsteps:\n- name: Google Chat No...
Python
Apache License 2.0
google/jax
Attempting again to fix the yaml syntax issues in the pull request notifier and trying to fix the trigger for the broken main.
260,268
31.05.2022 09:38:43
25,200
e8a92f33b01038291cd8740d5a0f7f5e8f980ae1
Remove bodies from the notification messages as they tend to break bash syntax.
[ { "change_type": "MODIFY", "old_path": ".github/workflows/pull-request-notify.yml", "new_path": ".github/workflows/pull-request-notify.yml", "diff": "@@ -15,5 +15,5 @@ jobs:\ncurl --location --request POST '${{ secrets.RELEASES_WEBHOOK }}' \\\n--header 'Content-Type: application/json' \\\n--data-raw...
Python
Apache License 2.0
google/jax
Remove bodies from the notification messages as they tend to break bash syntax. PiperOrigin-RevId: 452068897
260,268
01.06.2022 06:19:23
25,200
4ca92edaecfc7b7d52cee02e93d7f77b95f3c2b9
Remove pull request notification.
[ { "change_type": "DELETE", "old_path": ".github/workflows/pull-request-notify.yml", "new_path": null, "diff": "-# Testing out a google chat notification workflow.\n-name: Google Chat Pull Request Notifier\n-on:\n- pull_request:\n- types:\n- - opened\n-\n-jobs:\n- build:\n- runs-on: ubuntu-latest\n-\...
Python
Apache License 2.0
google/jax
Remove pull request notification. PiperOrigin-RevId: 452280419
260,510
01.06.2022 12:14:36
25,200
b80d7195f695b728a91f63ab2d2b6b09692f2064
Enable python callback on GPU
[ { "change_type": "MODIFY", "old_path": "jax/_src/debugging.py", "new_path": "jax/_src/debugging.py", "diff": "@@ -21,6 +21,7 @@ from typing import Callable, Any\nfrom jax import core\nfrom jax import tree_util\nfrom jax import lax\n+from jax._src import lib as jaxlib\nfrom jax._src import util\nfrom...
Python
Apache License 2.0
google/jax
Enable python callback on GPU PiperOrigin-RevId: 452354891
260,510
25.05.2022 16:01:16
25,200
76669835baf64b30bbf6a7b2c1853a80a7e34bae
Add an option to create a perfetto link in the JAX profiler
[ { "change_type": "MODIFY", "old_path": "CHANGELOG.md", "new_path": "CHANGELOG.md", "diff": "@@ -32,6 +32,9 @@ PLEASE REMEMBER TO CHANGE THE '..main' WITH AN ACTUAL TAG in GITHUB LINK.\n* {func}`jax.numpy.ldexp` no longer silently promotes all inputs to float64,\ninstead it promotes to float32 for in...
Python
Apache License 2.0
google/jax
Add an option to create a perfetto link in the JAX profiler
260,510
31.05.2022 15:42:46
25,200
449da304b3665b90fd10c6203deec7863fd99928
Store profiler server as a global variable and add a `stop_server` function
[ { "change_type": "MODIFY", "old_path": "CHANGELOG.md", "new_path": "CHANGELOG.md", "diff": "@@ -35,6 +35,9 @@ PLEASE REMEMBER TO CHANGE THE '..main' WITH AN ACTUAL TAG in GITHUB LINK.\n* Add a `create_perfetto_link` option to {func}`jax.profiler.start_trace` and\n{func}`jax.profiler.start_trace`. Wh...
Python
Apache License 2.0
google/jax
Store profiler server as a global variable and add a `stop_server` function
260,411
02.06.2022 16:41:55
-7,200
064ba6e58f75fea40f07fb066fd44444b001d5d3
[jax2tf] Added a test for SavedModel with pytrees This was in response to an external user running into problems with converting and saving a SavedModel for a function where one of the arguments is a dict. This test demonstrates that this works, both for the conversion, and for the saving/restoring.
[ { "change_type": "MODIFY", "old_path": "jax/experimental/jax2tf/tests/savedmodel_test.py", "new_path": "jax/experimental/jax2tf/tests/savedmodel_test.py", "diff": "@@ -241,6 +241,41 @@ class SavedModelTest(tf_test_util.JaxToTfTestCase):\nres_restored = restored_f(*args)\nself.assertAllClose(res, res...
Python
Apache License 2.0
google/jax
[jax2tf] Added a test for SavedModel with pytrees This was in response to an external user running into problems with converting and saving a SavedModel for a function where one of the arguments is a dict. This test demonstrates that this works, both for the conversion, and for the saving/restoring.
260,510
02.06.2022 11:54:58
25,200
426c7356fb326262de6424fcfade546e30a50f72
Guard `has_explicit_device` with xla_client version
[ { "change_type": "MODIFY", "old_path": "jax/_src/api.py", "new_path": "jax/_src/api.py", "diff": "@@ -63,6 +63,7 @@ from jax._src.lib import jax_jit\nfrom jax._src.lib import xla_bridge as xb\nfrom jax._src.lib import xla_client as xc\nfrom jax._src.lib import pmap_lib\n+from jax._src.lib import xla...
Python
Apache License 2.0
google/jax
Guard `has_explicit_device` with xla_client version
260,314
03.06.2022 17:11:09
-25,200
3ca0d3f149ac8802eccbf04fd500543c80f96da1
Rename mesh into Mesh in xmap tutorial and doc
[ { "change_type": "MODIFY", "old_path": "docs/notebooks/xmap_tutorial.ipynb", "new_path": "docs/notebooks/xmap_tutorial.ipynb", "diff": "\"source\": [\n\"import jax\\n\",\n\"import numpy as np\\n\",\n- \"from jax.experimental.maps import mesh\\n\",\n+ \"from jax.experimental.maps import Mesh\\n\",\n\...
Python
Apache License 2.0
google/jax
Rename mesh into Mesh in xmap tutorial and doc
260,447
03.06.2022 10:33:40
25,200
7ab70338af7d57a99a7591ac9ca1523351cd7e17
[sparse] Add `unique_indices` to BCOO.
[ { "change_type": "MODIFY", "old_path": "jax/experimental/sparse/bcoo.py", "new_path": "jax/experimental/sparse/bcoo.py", "diff": "@@ -100,7 +100,9 @@ def _bcoo_set_nse(mat, nse):\nindices = jnp.zeros_like(mat.indices, shape=(*mat.indices.shape[:-2], nse, mat.indices.shape[-1]))\nindices = indices.at...
Python
Apache License 2.0
google/jax
[sparse] Add `unique_indices` to BCOO. PiperOrigin-RevId: 452794860
260,453
03.06.2022 15:11:29
14,400
ca83a80f9596263a5639ccfc6ce82e77e72de458
Added random.generalized_normal and random.ball.
[ { "change_type": "MODIFY", "old_path": "CHANGELOG.md", "new_path": "CHANGELOG.md", "diff": "@@ -38,6 +38,8 @@ PLEASE REMEMBER TO CHANGE THE '..main' WITH AN ACTUAL TAG in GITHUB LINK.\n* Changed the semantics of {func}`jax.profiler.start_server(...)` to store the\nkeepalive globally, rather than req...
Python
Apache License 2.0
google/jax
Added random.generalized_normal and random.ball.
260,447
03.06.2022 14:50:44
25,200
cc4f2ade632d2985cd470ab30e1f2cfe3b01105f
[sparse] Track `unique_indices` in sparse transform.
[ { "change_type": "MODIFY", "old_path": "jax/experimental/sparse/transform.py", "new_path": "jax/experimental/sparse/transform.py", "diff": "@@ -154,7 +154,8 @@ class SparsifyEnv:\nreturn SparsifyValue(np.shape(data), self._push(data), None)\ndef sparse(self, shape, data=None, indices=None,\n- *, dat...
Python
Apache License 2.0
google/jax
[sparse] Track `unique_indices` in sparse transform. PiperOrigin-RevId: 452848200
260,510
02.06.2022 22:15:53
25,200
143ed40a7814ca78d4b8f9e3370254d562cff1e8
Add collect_profile script
[ { "change_type": "MODIFY", "old_path": ".github/workflows/ci-build.yaml", "new_path": ".github/workflows/ci-build.yaml", "diff": "@@ -147,4 +147,4 @@ jobs:\nXLA_FLAGS: \"--xla_force_host_platform_device_count=8\"\nrun: |\npytest -n 1 --tb=short docs\n- pytest -n 1 --tb=short --doctest-modules jax --...
Python
Apache License 2.0
google/jax
Add collect_profile script
260,580
06.06.2022 15:24:41
-32,400
d71581d2cb42ab09885c5e86c7a71809e4dd479f
correct spelling on comment
[ { "change_type": "MODIFY", "old_path": "docs/design_notes/sequencing_effects.md", "new_path": "docs/design_notes/sequencing_effects.md", "diff": "@@ -82,7 +82,7 @@ def f(x):\njax.print(\"world\")\nreturn x\n```\n-Even though in Python, we've written the the `\"hello\"` print before the `\"world\"` p...
Python
Apache License 2.0
google/jax
correct spelling on comment
260,631
06.06.2022 10:08:02
25,200
24ad82685c8fc17df62207e04e4418bd6c078818
Fix reference to jax_coordination_service flag.
[ { "change_type": "MODIFY", "old_path": "jax/_src/distributed.py", "new_path": "jax/_src/distributed.py", "diff": "@@ -19,7 +19,7 @@ from typing import Optional\nfrom absl import logging\nfrom jax._src import cloud_tpu_init\n-from jax._src import config\n+from jax._src.config import config\nfrom jax....
Python
Apache License 2.0
google/jax
Fix reference to jax_coordination_service flag. PiperOrigin-RevId: 453224722
260,510
07.06.2022 14:02:28
25,200
c3aa9719483d6d8adcd159744856b7d02ee26e1b
Enable debug print in xmap
[ { "change_type": "MODIFY", "old_path": "jax/experimental/maps.py", "new_path": "jax/experimental/maps.py", "diff": "@@ -1012,8 +1012,6 @@ def _dynamic_jaxpr_process_xmap(self, primitive, f, tracers, params):\nwith core.extend_axis_env_nd(global_axis_sizes.items()):\njaxpr, mapped_out_avals, consts =...
Python
Apache License 2.0
google/jax
Enable debug print in xmap
260,350
08.06.2022 16:03:31
25,200
c083821a21752be409074f1e9e6cda0c7531e87c
fix pjit doc
[ { "change_type": "MODIFY", "old_path": "jax/experimental/pjit.py", "new_path": "jax/experimental/pjit.py", "diff": "@@ -209,7 +209,7 @@ def pjit(fun: Callable,\nautomaticly partitioned by the mesh available at each call site.\nFor example, a convolution operator can be automatically partitioned over...
Python
Apache License 2.0
google/jax
fix pjit doc
260,510
25.05.2022 12:02:35
25,200
289610eb025e6d8fc11867997e74eed1f22f578c
Add a public facing `named_scope` function to allow adding to the name stack.
[ { "change_type": "MODIFY", "old_path": "jax/__init__.py", "new_path": "jax/__init__.py", "diff": "@@ -96,6 +96,7 @@ from jax._src.api import (\nmake_jaxpr as make_jaxpr,\nmask as mask,\nnamed_call as named_call,\n+ named_scope as named_scope,\npmap as pmap,\nprocess_count as process_count,\nprocess_...
Python
Apache License 2.0
google/jax
Add a public facing `named_scope` function to allow adding to the name stack.
260,681
09.06.2022 17:56:03
0
4f8881539d6692a6e287aa34628a178fb1890bf6
Make the transfer guard documentation easier to find Move the main documentation of the transfer guard from "Notes" to "Reference documentation" section for better visibility. Add a link to the main documentation to the docstring of jax.transfer_guard(), which currently shows up as the top result when searching for "jax transfer_guard".
[ { "change_type": "MODIFY", "old_path": "docs/index.rst", "new_path": "docs/index.rst", "diff": "@@ -30,6 +30,7 @@ parallelize, Just-In-Time compile to GPU/TPU, and more.\npytrees\ntype_promotion\nerrors\n+ transfer_guard\nglossary\nchangelog\n@@ -59,7 +60,6 @@ parallelize, Just-In-Time compile to GP...
Python
Apache License 2.0
google/jax
Make the transfer guard documentation easier to find Move the main documentation of the transfer guard from "Notes" to "Reference documentation" section for better visibility. Add a link to the main documentation to the docstring of jax.transfer_guard(), which currently shows up as the top result when searching for "jax transfer_guard".
260,510
09.06.2022 10:34:25
25,200
c0b47fdf2c9fff1d79efd8a65b0442ae6bb27ace
Update changelog for `named_scope` and adds it to the docs
[ { "change_type": "MODIFY", "old_path": "CHANGELOG.md", "new_path": "CHANGELOG.md", "diff": "@@ -43,6 +43,8 @@ PLEASE REMEMBER TO CHANGE THE '..main' WITH AN ACTUAL TAG in GITHUB LINK.\n* Added {func}`jax.default_device`.\n* Added a `python -m jax.collect_profile` script to manually capture program\n...
Python
Apache License 2.0
google/jax
Update changelog for `named_scope` and adds it to the docs
260,336
09.06.2022 15:03:53
25,200
4723603967662c06d6e963c21e026e03e62968c0
Update lax.py Use the accurate mathematical description to avoid confusion. We may want to say the dimension of the array rather than the rank of the tensor array.
[ { "change_type": "MODIFY", "old_path": "jax/_src/lax/lax.py", "new_path": "jax/_src/lax/lax.py", "diff": "@@ -635,8 +635,8 @@ def dot(lhs: Array, rhs: Array, precision: PrecisionLike = None,\nFor more general contraction, see the `dot_general` operator.\nArgs:\n- lhs: an array of rank 1 or 2.\n- rhs...
Python
Apache License 2.0
google/jax
Update lax.py Use the accurate mathematical description to avoid confusion. We may want to say the dimension of the array rather than the rank of the tensor array.
260,624
19.05.2022 21:06:25
0
498ee6007d345b05566aad9c854e4eb04fb60fbb
Using etils(gfile) to support gcs buckets and file system for persistent compilation caching
[ { "change_type": "MODIFY", "old_path": "CHANGELOG.md", "new_path": "CHANGELOG.md", "diff": "@@ -10,6 +10,8 @@ PLEASE REMEMBER TO CHANGE THE '..main' WITH AN ACTUAL TAG in GITHUB LINK.\n## jax 0.3.14 (Unreleased)\n* [GitHub commits](https://github.com/google/jax/compare/jax-v0.3.13...main).\n+* Break...
Python
Apache License 2.0
google/jax
Using etils(gfile) to support gcs buckets and file system for persistent compilation caching
260,424
10.06.2022 03:49:58
25,200
58f9ea07cd9f27b5a7c995ddda9815778f257c6a
Only wrap one level of the name-stack with transform names.
[ { "change_type": "MODIFY", "old_path": "jax/_src/source_info_util.py", "new_path": "jax/_src/source_info_util.py", "diff": "@@ -51,7 +51,10 @@ class Transform(NamedTuple):\nname: str\ndef wrap(self, stack: Tuple[str, ...]) -> Tuple[str, ...]:\n- return tuple(map(lambda x: f'{self.name}({x})', stack)...
Python
Apache License 2.0
google/jax
Only wrap one level of the name-stack with transform names. PiperOrigin-RevId: 454125970
260,655
12.06.2022 00:51:10
0
e8903d4b4786a26ccb3fc4dc6c40f0a11363118e
Bump version of Tensorflow repository to fix build errors in the building of the MLIR compiler where cpp files have been renamed to cc files.
[ { "change_type": "MODIFY", "old_path": "WORKSPACE", "new_path": "WORKSPACE", "diff": "@@ -7,10 +7,10 @@ load(\"@bazel_tools//tools/build_defs/repo:http.bzl\", \"http_archive\")\n# and update the sha256 with the result.\nhttp_archive(\nname = \"org_tensorflow\",\n- sha256 = \"4110a688a764c8d10734337d...
Python
Apache License 2.0
google/jax
Bump version of Tensorflow repository to fix build errors in the building of the MLIR compiler where cpp files have been renamed to cc files.
260,390
12.06.2022 16:51:25
25,200
0935b2986515e60efc7a33d7433e9a62dd980e39
added dtmax arg and test verifying correct behaviour - errors now with differentation
[ { "change_type": "MODIFY", "old_path": "jax/experimental/ode.py", "new_path": "jax/experimental/ode.py", "diff": "@@ -142,7 +142,7 @@ def optimal_step_size(last_step, mean_error_ratio, safety=0.9, ifactor=10.0,\njnp.maximum(mean_error_ratio**(-1.0 / order) * safety, dfactor))\nreturn jnp.where(mean_...
Python
Apache License 2.0
google/jax
added dtmax arg and test verifying correct behaviour - errors now with differentation
260,390
12.06.2022 17:11:46
25,200
4d7a1d1382b424bfaf69895ff37d4c39e87562cf
fixing nondiff and static argnums for _odeint_wrapper and _odeint
[ { "change_type": "MODIFY", "old_path": "jax/experimental/ode.py", "new_path": "jax/experimental/ode.py", "diff": "@@ -174,14 +174,14 @@ def odeint(func, y0, t, *args, rtol=1.4e-8, atol=1.4e-8, mxstep=jnp.inf, dtmax=j\nconverted, consts = custom_derivatives.closure_convert(func, y0, t[0], *args)\nret...
Python
Apache License 2.0
google/jax
fixing nondiff and static argnums for _odeint_wrapper and _odeint
260,390
12.06.2022 17:27:05
25,200
85dfca26fe2a19e9fe66480dcbc7335342171214
slight test changes
[ { "change_type": "MODIFY", "old_path": "tests/ode_test.py", "new_path": "tests/ode_test.py", "diff": "@@ -251,7 +251,7 @@ class ODETest(jtu.JaxTestCase):\njtu.check_grads(f, (y0, ts, alpha), modes=[\"rev\"], order=2, atol=tol, rtol=tol)\n@jtu.skip_on_devices(\"tpu\", \"gpu\")\n- def test_max_dt(self...
Python
Apache License 2.0
google/jax
slight test changes
260,390
13.06.2022 06:38:34
25,200
f8357160853435efb7cc28e2747a94815eb7335c
changing dtmax to hmax
[ { "change_type": "MODIFY", "old_path": "jax/experimental/ode.py", "new_path": "jax/experimental/ode.py", "diff": "@@ -142,7 +142,7 @@ def optimal_step_size(last_step, mean_error_ratio, safety=0.9, ifactor=10.0,\njnp.maximum(mean_error_ratio**(-1.0 / order) * safety, dfactor))\nreturn jnp.where(mean_...
Python
Apache License 2.0
google/jax
changing dtmax to hmax
260,453
11.06.2022 14:24:19
14,400
57b89ba7cb735c11e7a3710c3f817e5dfcf02251
Added scipy.stats.gennorm.
[ { "change_type": "MODIFY", "old_path": "CHANGELOG.md", "new_path": "CHANGELOG.md", "diff": "@@ -55,6 +55,7 @@ PLEASE REMEMBER TO CHANGE THE '..main' WITH AN ACTUAL TAG in GITHUB LINK.\nsilently truncated to `1`.\n* {func}`jax.experimental.compilation_cache.initialize_cache` now supports gcs\nbucket ...
Python
Apache License 2.0
google/jax
Added scipy.stats.gennorm.
260,624
14.06.2022 21:21:34
0
88f1b9fae70a4437ce45e769d0341bdabd691c59
adding os env to track JAX platform
[ { "change_type": "MODIFY", "old_path": "jax/_src/cloud_tpu_init.py", "new_path": "jax/_src/cloud_tpu_init.py", "diff": "@@ -48,6 +48,7 @@ def cloud_tpu_init():\nlibtpu.configure_library_path()\nos.environ.setdefault('GRPC_VERBOSITY', 'ERROR')\n+ os.environ['TPU_ML_PLATFORM'] = 'JAX'\n# If the user h...
Python
Apache License 2.0
google/jax
adding os env to track JAX platform
260,445
06.06.2022 21:27:43
0
ff637e12f1452b20cf7027f405be6ef78b1f9bbd
Allow doing reductions on empty arrays in some cases. Namely, when the reduction axis is not over the zero-sized dimension.
[ { "change_type": "MODIFY", "old_path": "jax/_src/numpy/reductions.py", "new_path": "jax/_src/numpy/reductions.py", "diff": "@@ -73,16 +73,19 @@ def _reduction(a, name, np_fun, op, init_val, has_identity=True,\nlax_internal._check_user_dtype_supported(dtype, name)\naxis = core.concrete_or_error(None,...
Python
Apache License 2.0
google/jax
Allow doing reductions on empty arrays in some cases. Namely, when the reduction axis is not over the zero-sized dimension.
260,563
09.06.2022 20:38:53
-7,200
311e6a92f9738f74c45c3aff75ebfbbc7b09afcd
Add bitwise XOR reducer to `lax.reduce` This commit adds handling for the `lax.bitwise_xor` operation to `lax.reduce`. It also includes a new standard reduce primitive, modeled after the existing `and`/ `or` reducer primitives.
[ { "change_type": "MODIFY", "old_path": "jax/_src/lax/lax.py", "new_path": "jax/_src/lax/lax.py", "diff": "@@ -983,6 +983,8 @@ def _get_monoid_reducer(monoid_op: Callable,\nreturn np.equal(aval.val, _get_max_identity(dtype)) and _reduce_or\nelif monoid_op is bitwise_and and dtype == np.bool_:\nreturn...
Python
Apache License 2.0
google/jax
Add bitwise XOR reducer to `lax.reduce` This commit adds handling for the `lax.bitwise_xor` operation to `lax.reduce`. It also includes a new standard reduce primitive, modeled after the existing `and`/ `or` reducer primitives.
260,510
02.06.2022 11:50:03
25,200
5d3f48204d4d0a7f571452bda21a2d9a38380e28
Add stateful for loop primitives Adds a `get/swap/addupdate` primitive, along with impl, abstract_eval and jvp rules.
[ { "change_type": "MODIFY", "old_path": "jax/_src/ad_util.py", "new_path": "jax/_src/ad_util.py", "diff": "# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n+from __futur...
Python
Apache License 2.0
google/jax
Add stateful for loop primitives (#10982) Adds a `get/swap/addupdate` primitive, along with impl, abstract_eval and jvp rules. Co-authored-by: Matthew Johnson <mattjj@google.com>
260,510
16.06.2022 13:01:57
25,200
e705462e79ea54eb517653a074b83bebae61f73a
Add `discharge_state` to convert stateful jaxprs into pure jaxprs
[ { "change_type": "MODIFY", "old_path": "jax/_src/lax/control_flow/for_loop.py", "new_path": "jax/_src/lax/control_flow/for_loop.py", "diff": "\"\"\"Module for the `for_loop` primitive.\"\"\"\nfrom functools import partial\n-from typing import Any, List, Tuple\n+from typing import Any, Dict, List, Se...
Python
Apache License 2.0
google/jax
Add `discharge_state` to convert stateful jaxprs into pure jaxprs Co-authored-by: Matthew Johnson <mattjj@google.com>
260,510
16.06.2022 13:02:20
25,200
f84230e6e4dc07f2e5d7259e70c1bb4a191f1ffb
Add tests for discharging state
[ { "change_type": "MODIFY", "old_path": "tests/lax_control_flow_test.py", "new_path": "tests/lax_control_flow_test.py", "diff": "@@ -2549,6 +2549,38 @@ class ForLoopTest(jtu.JaxTestCase):\nself.assertListEqual(out_avals, [core.ShapedArray((), jnp.int32)])\nself.assertEqual(jaxpr.eqns[0].primitive, fo...
Python
Apache License 2.0
google/jax
Add tests for discharging state
260,510
16.06.2022 13:03:35
25,200
f0595323955ddfad01e59e2a534034b8ea1ae50b
fixup! Add `discharge_state` to convert stateful jaxprs into pure jaxprs
[ { "change_type": "MODIFY", "old_path": "jax/_src/lax/control_flow/for_loop.py", "new_path": "jax/_src/lax/control_flow/for_loop.py", "diff": "@@ -359,7 +359,6 @@ def _eval_jaxpr_discharge_state(jaxpr: core.Jaxpr, consts: Sequence[Any],\n# Default primitive rule, similar to `core.eval_jaxpr`. Note th...
Python
Apache License 2.0
google/jax
fixup! Add `discharge_state` to convert stateful jaxprs into pure jaxprs
260,335
17.06.2022 11:11:00
25,200
72a67906bf0b0553d18c9b05d9937de249c759bc
optimize grad-of-jit not to pass input-residuals as intermediate-residuals
[ { "change_type": "MODIFY", "old_path": "jax/interpreters/partial_eval.py", "new_path": "jax/interpreters/partial_eval.py", "diff": "@@ -204,7 +204,7 @@ class JaxprTrace(Trace):\n# which were unknown to the first call (corresponding to in_avals).\n# Wrap f to perform the partial evaluation and plumb ...
Python
Apache License 2.0
google/jax
optimize grad-of-jit not to pass input-residuals as intermediate-residuals Co-authored-by: Dougal Maclaurin <dougalm@google.com> Co-authored-by: Peter Hawkins <phawkins@google.com>
260,565
17.06.2022 16:39:21
25,200
f2a85f36f5e47d25edab205cb43654c7dd69abee
Remove spurious single quote in profiler.py Before: ``` 127.0.0.1 - - [17/Jun/2022 16:08:18] "GET /perfetto_trace.json.gz' HTTP/1.1" 404 - ``` After: ``` 127.0.0.1 - - [17/Jun/2022 16:35:54] "GET /perfetto_trace.json.gz HTTP/1.1" 200 - ```
[ { "change_type": "MODIFY", "old_path": "jax/_src/profiler.py", "new_path": "jax/_src/profiler.py", "diff": "@@ -163,7 +163,7 @@ def _host_perfetto_trace_file(log_dir):\nos.chdir(directory)\nsocketserver.TCPServer.allow_reuse_address = True\nwith socketserver.TCPServer(('127.0.0.1', port), _PerfettoS...
Python
Apache License 2.0
google/jax
Remove spurious single quote in profiler.py Before: ``` 127.0.0.1 - - [17/Jun/2022 16:08:18] "GET /perfetto_trace.json.gz' HTTP/1.1" 404 - ``` After: ``` 127.0.0.1 - - [17/Jun/2022 16:35:54] "GET /perfetto_trace.json.gz HTTP/1.1" 200 - ```