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 | 30.04.2022 21:50:18 | 25,200 | 83a8dc4e7f69f09c19f9afe9755ca647f566393c | [new-remat] add _scan_partial_eval_custom rule for new remat
Also enable scan-of-remat tests which weren't passing before. | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/ad_checkpoint.py",
"new_path": "jax/_src/ad_checkpoint.py",
"diff": "@@ -388,6 +388,22 @@ def remat_vmap(axis_size, axis_name, main_type, args, dims, *, jaxpr, **params):\nreturn remat_p.bind(*consts, *args, jaxpr=jaxpr_batched, **params), out_dims\nb... | Python | Apache License 2.0 | google/jax | [new-remat] add _scan_partial_eval_custom rule for new remat
Also enable scan-of-remat tests which weren't passing before.
Co-authored-by: Sharad Vikram <sharadmv@google.com> |
260,335 | 17.06.2022 15:53:53 | 25,200 | a001c52f878824cd1c0a67c73d9d318ed30286c9 | [dynamic-shapes] basic jvp working, including with broadcast | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/lax/lax.py",
"new_path": "jax/_src/lax/lax.py",
"diff": "@@ -2660,7 +2660,10 @@ def _broadcast_in_dim_typecheck_rule(\noperand.aval.weak_type)\nreturn [out_aval], core.no_effects\n-def _broadcast_in_dim_transpose_rule(ct, operand, *, shape, broadcast_... | Python | Apache License 2.0 | google/jax | [dynamic-shapes] basic jvp working, including with broadcast |
260,411 | 20.06.2022 10:48:15 | -7,200 | 4b03ebf4f5e774bad9865278f9f0f8b75948e647 | Fix overflow of large prng computation
Fixes: | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/prng.py",
"new_path": "jax/_src/prng.py",
"diff": "@@ -542,7 +542,7 @@ def threefry_random_bits(key: jnp.ndarray, bit_width, shape):\n)\n)\n)\n- bits = lax.reshape(bits, (np.uint32(max_count * 32 // bit_width),), (1, 0))\n+ bits = lax.reshape(bits, ((... | Python | Apache License 2.0 | google/jax | Fix overflow of large prng computation
Fixes: #11010 |
260,424 | 19.04.2022 16:08:09 | -3,600 | 9167f7248a5551d2a03626629bf026bf1fa17675 | Checkify: support discharging checks from control-flow through effects.
Currently supports scan and while-loop. | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/checkify.py",
"new_path": "jax/_src/checkify.py",
"diff": "@@ -25,9 +25,11 @@ import jax.numpy as jnp\nfrom jax import core\nfrom jax import linear_util as lu\nfrom jax.api_util import flatten_fun\n+from jax.interpreters import mlir\nfrom jax.interpre... | Python | Apache License 2.0 | google/jax | Checkify: support discharging checks from control-flow through effects.
Currently supports scan and while-loop. |
260,657 | 21.06.2022 11:15:14 | -7,200 | 4e057c9f2312c6ee86af88f3121565a13b7fbb37 | DOC: update pprof install instructions | [
{
"change_type": "MODIFY",
"old_path": "docs/device_memory_profiling.md",
"new_path": "docs/device_memory_profiling.md",
"diff": "@@ -13,11 +13,11 @@ pprof (<https://github.com/google/pprof>). Start by installing `pprof`,\nby following its\n[installation instructions](https://github.com/google/pprof... | Python | Apache License 2.0 | google/jax | DOC: update pprof install instructions |
260,510 | 21.06.2022 12:41:26 | 25,200 | 9bd1bd67e0052d3b030a61aba01e32454bd61efa | Update versions for jax/jaxlib release | [
{
"change_type": "MODIFY",
"old_path": "CHANGELOG.md",
"new_path": "CHANGELOG.md",
"diff": "@@ -8,7 +8,11 @@ Remember to align the itemized text with the first line of an item within a list\nPLEASE REMEMBER TO CHANGE THE '..main' WITH AN ACTUAL TAG in GITHUB LINK.\n-->\n-## jax 0.3.14 (Unreleased)\n... | Python | Apache License 2.0 | google/jax | Update versions for jax/jaxlib release |
260,510 | 21.06.2022 14:34:22 | 25,200 | 217d89812420ada8130b851b5656539a89658156 | Update TF version for jaxlib build | [
{
"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 = \"bb0770fab82bdb243e011867... | Python | Apache License 2.0 | google/jax | Update TF version for jaxlib build |
260,411 | 23.06.2022 16:49:47 | -10,800 | 391aaf417787410f41b0401592df0d9e372de88c | [jax2tf] Fix the documentation for handling dimension polynomials. | [
{
"change_type": "MODIFY",
"old_path": "jax/experimental/jax2tf/README.md",
"new_path": "jax/experimental/jax2tf/README.md",
"diff": "@@ -419,6 +419,30 @@ The dimension polynomials have the following behavior for arithmetic operations:\nare overloaded, such that `+`, `*`, `np.sum`, `np.prod` work di... | Python | Apache License 2.0 | google/jax | [jax2tf] Fix the documentation for handling dimension polynomials. |
260,424 | 23.06.2022 17:23:43 | -3,600 | 8efeb3e297617f3bfa47062de906868121773188 | Fix getting aval of BatchTracers that are not mapped. | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/batching.py",
"new_path": "jax/interpreters/batching.py",
"diff": "@@ -138,6 +138,8 @@ class BatchTracer(Tracer):\n@property\ndef aval(self):\naval = raise_to_shaped(core.get_aval(self.val))\n+ if self.batch_dim is not_mapped:\n+ return aval\n... | Python | Apache License 2.0 | google/jax | Fix getting aval of BatchTracers that are not mapped. |
260,631 | 23.06.2022 11:31:47 | 25,200 | e4d1e1beb3c9e2f4d9a2ece4be2e41a23ece9d65 | Copybara import of the project:
by Matthew Johnson
[dynamic-shapes] basic jvp working, including with broadcast | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/lax/lax.py",
"new_path": "jax/_src/lax/lax.py",
"diff": "@@ -2660,10 +2660,7 @@ def _broadcast_in_dim_typecheck_rule(\noperand.aval.weak_type)\nreturn [out_aval], core.no_effects\n-def _broadcast_in_dim_transpose_rule(ct, operand, *dyn_shape,\n- shape... | Python | Apache License 2.0 | google/jax | Copybara import of the project:
--
a001c52f878824cd1c0a67c73d9d318ed30286c9 by Matthew Johnson <mattjj@google.com>:
[dynamic-shapes] basic jvp working, including with broadcast
PiperOrigin-RevId: 456822732 |
260,335 | 23.06.2022 15:29:46 | 25,200 | 5f97dc8954529791ddd789b86a53efa2d90e3ef5 | Roll forward with simple fix: handle Zero cotangents in _broadcast_in_dim
transpose rule (previously handled by the deflinear2 wrapper, which it's no
longer using). | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/lax/lax.py",
"new_path": "jax/_src/lax/lax.py",
"diff": "@@ -2660,12 +2660,17 @@ def _broadcast_in_dim_typecheck_rule(\noperand.aval.weak_type)\nreturn [out_aval], core.no_effects\n-def _broadcast_in_dim_transpose_rule(ct, operand, *, shape, broadcast... | Python | Apache License 2.0 | google/jax | Roll forward with simple fix: handle Zero cotangents in _broadcast_in_dim
transpose rule (previously handled by the deflinear2 wrapper, which it's no
longer using).
PiperOrigin-RevId: 456874635 |
260,335 | 23.06.2022 20:53:45 | 25,200 | 8c5632123bd7357b7e6f644c4eb28aff618694d4 | fix ad_util.Zero handling in broadcast_in_dim_jvp_rule | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/lax/lax.py",
"new_path": "jax/_src/lax/lax.py",
"diff": "@@ -2731,6 +2731,9 @@ def _broadcast_in_dim_jvp_rule(primals, tangents, *, shape, broadcast_dimensions\noperand_dot, *_ = tangents\ny = broadcast_in_dim_p.bind(operand, *dyn_shape, shape=shape,\... | Python | Apache License 2.0 | google/jax | fix ad_util.Zero handling in broadcast_in_dim_jvp_rule
PiperOrigin-RevId: 456922766 |
260,399 | 24.06.2022 12:18:11 | 25,200 | 0cc2ada432ab8449d66a02f86a50947f46306cdb | Fix broken links for moved design_notes folder | [
{
"change_type": "MODIFY",
"old_path": "CHANGELOG.md",
"new_path": "CHANGELOG.md",
"diff": "@@ -723,7 +723,7 @@ PLEASE REMEMBER TO CHANGE THE '..main' WITH AN ACTUAL TAG in GITHUB LINK.\n* `TraceContext` --> {func}`~jax.profiler.TraceAnnotation`\n* `StepTraceContext` --> {func}`~jax.profiler.StepTra... | Python | Apache License 2.0 | google/jax | Fix broken links for moved design_notes folder |
260,624 | 17.06.2022 16:38:56 | 0 | df8c6263de122853f33669970f416a531b10aadb | Change JAX_PLATFORMS to raise an exception when platform initialization fails | [
{
"change_type": "MODIFY",
"old_path": "CHANGELOG.md",
"new_path": "CHANGELOG.md",
"diff": "@@ -21,6 +21,7 @@ PLEASE REMEMBER TO CHANGE THE '..main' WITH AN ACTUAL TAG in GITHUB LINK.\n* Breaking changes\n* {func}`jax.experimental.compilation_cache.initialize_cache` does not support\n`max_cache_size... | Python | Apache License 2.0 | google/jax | Change JAX_PLATFORMS to raise an exception when platform initialization fails |
260,424 | 23.06.2022 17:23:43 | -3,600 | 740fe6926a9ba7192c7ddfac9a95febbc10958d1 | Checkify: add (checkify-of-)vmap-of-check. | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/checkify.py",
"new_path": "jax/_src/checkify.py",
"diff": "@@ -25,6 +25,7 @@ import jax.numpy as jnp\nfrom jax import core\nfrom jax import linear_util as lu\nfrom jax.api_util import flatten_fun\n+from jax.interpreters import batching\nfrom jax.inter... | Python | Apache License 2.0 | google/jax | Checkify: add (checkify-of-)vmap-of-check. |
260,510 | 22.06.2022 12:36:13 | 25,200 | 236a445b49ec7ec3dc6937a1958c60ed831af77f | Add `for_loop` primitive and impl rule | [
{
"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, Dict, List, Sequence, Tuple\n+from typing import Any... | Python | Apache License 2.0 | google/jax | Add `for_loop` primitive and impl rule
Co-authored-by: Matthew Johnson <mattjj@google.com> |
260,310 | 27.06.2022 16:49:54 | 25,200 | de464fcf22c8bf7a2931182f8095bc01530df9fe | update jax2tf README: add walkaround about tf.Module magic conversion.
Here we will use tree_util.flatten and unflatten to provide a general walkwaround
for tfModule Dict->_DictWrapper conversion. It will works for List and Tuple. | [
{
"change_type": "MODIFY",
"old_path": "jax/experimental/jax2tf/README.md",
"new_path": "jax/experimental/jax2tf/README.md",
"diff": "@@ -997,6 +997,33 @@ possibly behave differently, performance-wise or even numerically,\nthan either the TensorFlow native or JAX native batch normalization.\nA simil... | Python | Apache License 2.0 | google/jax | update jax2tf README: add walkaround about tf.Module magic conversion.
Here we will use tree_util.flatten and unflatten to provide a general walkwaround
for tfModule Dict->_DictWrapper conversion. It will works for List and Tuple.
PiperOrigin-RevId: 457597147 |
260,510 | 27.06.2022 18:20:13 | 25,200 | c4b938ffbea68b4d7407da37f77c35126ddc99ad | Add `jvp` rule for `for_loop` | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/lax/control_flow/for_loop.py",
"new_path": "jax/_src/lax/control_flow/for_loop.py",
"diff": "# limitations under the License.\n\"\"\"Module for the `for_loop` primitive.\"\"\"\nfrom functools import partial\n+import operator\nfrom typing import Any, C... | Python | Apache License 2.0 | google/jax | Add `jvp` rule for `for_loop`
Co-authored-by: Matthew Johnson <mattjj@google.com> |
260,510 | 27.06.2022 18:20:32 | 25,200 | e1ba52bb256fdcfd6b9ba08c265c82cd91efc876 | Add tests for `jvp(for_loop)` | [
{
"change_type": "MODIFY",
"old_path": "tests/lax_control_flow_test.py",
"new_path": "tests/lax_control_flow_test.py",
"diff": "@@ -2882,5 +2882,98 @@ class ForLoopTest(jtu.JaxTestCase):\nx = jax.random.normal(key, (8,))\nnp.testing.assert_allclose(cumsum(x), jnp.cumsum(x))\n+def for_body_swap(i, re... | Python | Apache License 2.0 | google/jax | Add tests for `jvp(for_loop)` |
260,523 | 28.06.2022 13:11:23 | 18,000 | cc8e30293367837cf1b4636ae90159b81381b5c5 | Update ci-build.yaml
Update ci-build.yaml | [
{
"change_type": "MODIFY",
"old_path": ".github/workflows/ci-build.yaml",
"new_path": ".github/workflows/ci-build.yaml",
"diff": "@@ -31,7 +31,7 @@ jobs:\nuses: actions/setup-python@v4\nwith:\npython-version: 3.8\n- - uses: pre-commit/action@v2.0.3\n+ - uses: pre-commit/action@v3.0.0\nbuild:\nname: ... | Python | Apache License 2.0 | google/jax | Update ci-build.yaml
Update ci-build.yaml |
260,510 | 28.06.2022 13:01:27 | 25,200 | 1daea700f299567c46d151623c2444db902f644f | Bump JAX/Jaxlib versions | [
{
"change_type": "MODIFY",
"old_path": "docs/jax.lib.rst",
"new_path": "docs/jax.lib.rst",
"diff": "@@ -35,5 +35,4 @@ jax.lib.xla_extension\n:toctree: _autosummary\nDevice\n- GpuDevice\nTpuDevice\n"
},
{
"change_type": "MODIFY",
"old_path": "jax/version.py",
"new_path": "jax/version.... | Python | Apache License 2.0 | google/jax | Bump JAX/Jaxlib versions |
260,510 | 28.06.2022 15:13:10 | 25,200 | fcf65ac64eff9435920d36f7695ac6b0908ce49e | Bump minimum jaxlib version to 0.3.10 | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/lax/lax.py",
"new_path": "jax/_src/lax/lax.py",
"diff": "@@ -1653,11 +1653,7 @@ def _tan_impl(x):\ntan_p = standard_unop(_float | _complex, 'tan')\nad.defjvp2(tan_p, lambda g, ans, x: mul(g, _const(x, 1) + square(ans)))\n-if jax._src.lib.mlir_api_vers... | Python | Apache License 2.0 | google/jax | Bump minimum jaxlib version to 0.3.10 |
260,510 | 28.06.2022 10:28:45 | 25,200 | e8bd71b31cb354a52eda390ed45a830a0adf7912 | Add JAX debugger | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "jax/_src/debugger/__init__.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... | Python | Apache License 2.0 | google/jax | Add JAX debugger |
260,510 | 28.06.2022 16:29:38 | 25,200 | 790135989da61b1240dbd2e8126ef0d97b753ce6 | Add scan implementation using `for` and tests | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/lax/control_flow/for_loop.py",
"new_path": "jax/_src/lax/control_flow/for_loop.py",
"diff": "from functools import partial\nimport operator\n-from typing import Any, Callable, Dict, Generic, List, Sequence, Tuple, TypeVar\n+from typing import Any, Cal... | Python | Apache License 2.0 | google/jax | Add scan implementation using `for` and tests |
260,579 | 29.06.2022 15:47:12 | 25,200 | fa1a93195a39ee50ede1511485c3e02bc26c0c81 | Create `AsyncManager`, which factors out thread management functionality from `GlobalAsyncCheckpointManager` and makes it available for use (such as in Orbax) by classes supporting async read/write. | [
{
"change_type": "MODIFY",
"old_path": "jax/experimental/gda_serialization/serialization.py",
"new_path": "jax/experimental/gda_serialization/serialization.py",
"diff": "@@ -17,8 +17,7 @@ import abc\nimport asyncio\nimport re\nimport threading\n-import time\n-from typing import Callable\n+from typin... | Python | Apache License 2.0 | google/jax | Create `AsyncManager`, which factors out thread management functionality from `GlobalAsyncCheckpointManager` and makes it available for use (such as in Orbax) by classes supporting async read/write.
PiperOrigin-RevId: 458081905 |
260,368 | 30.06.2022 10:28:45 | 25,200 | 61b3dc5801640234987aca7434274f07c7d98beb | [JAX] Update approx_top_k doc with arxiv link. | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/lax/ann.py",
"new_path": "jax/_src/lax/ann.py",
"diff": "@@ -91,6 +91,8 @@ def approx_max_k(operand: Array,\naggregate_to_topk: bool = True) -> Tuple[Array, Array]:\n\"\"\"Returns max ``k`` values and their indices of the ``operand`` in an approximate... | Python | Apache License 2.0 | google/jax | [JAX] Update approx_top_k doc with arxiv link.
PiperOrigin-RevId: 458258457 |
260,631 | 30.06.2022 11:02:07 | 25,200 | 4e224bcfb99c3bd9b6a32b8ad7836d12517e788f | [jax2tf] Add support for common audio convolutions (1D variants, dilated depthwise, transpose with SAME padding). | [
{
"change_type": "MODIFY",
"old_path": "jax/experimental/jax2tf/impl_no_xla.py",
"new_path": "jax/experimental/jax2tf/impl_no_xla.py",
"diff": "@@ -50,6 +50,12 @@ def _xla_disabled_error(primitive_name: str,\nreturn NotImplementedError(msg)\n+def _conv_error(msg):\n+ suffix = (\"See source code for ... | Python | Apache License 2.0 | google/jax | [jax2tf] Add support for common audio convolutions (1D variants, dilated depthwise, transpose with SAME padding).
PiperOrigin-RevId: 458266485 |
260,461 | 30.06.2022 15:24:10 | 25,200 | 4bfb26c7090800dd2acb79c00a482384ac7af760 | Skip F64 tests on GPU.
I had erroneously assumed that GPU would be as-high accuracy for f64 (both in numerics and eigh) when submitting so I did not disable f64 tests on that platform. This is of course not the case, so those tests should be disabled. | [
{
"change_type": "MODIFY",
"old_path": "tests/lobpcg_test.py",
"new_path": "tests/lobpcg_test.py",
"diff": "@@ -382,16 +382,16 @@ class F32LobpcgTest(LobpcgTest):\nclass F64LobpcgTest(LobpcgTest):\n@parameterized.named_parameters(_make_concrete_cases(f64=True))\n- @jtu.skip_on_devices(\"tpu\", \"ire... | Python | Apache License 2.0 | google/jax | Skip F64 tests on GPU.
I had erroneously assumed that GPU would be as-high accuracy for f64 (both in numerics and eigh) when submitting #3112, so I did not disable f64 tests on that platform. This is of course not the case, so those tests should be disabled. |
260,510 | 30.06.2022 23:09:50 | 25,200 | 7b59bd02ae28be71e26f718fb738fbc62f8477e4 | Deflake debugger_test | [
{
"change_type": "MODIFY",
"old_path": "tests/debugger_test.py",
"new_path": "tests/debugger_test.py",
"diff": "@@ -274,6 +274,7 @@ class CliDebuggerTest(jtu.JaxTestCase):\n\\(jaxdb\\) array\\(.*, dtype=float32\\)\n\\(jaxdb\\) \"\"\")\ng(jnp.arange(2., dtype=jnp.float32))\n+ jax.effects_barrier()\ns... | Python | Apache License 2.0 | google/jax | Deflake debugger_test
PiperOrigin-RevId: 458392106 |
260,510 | 29.06.2022 11:32:52 | 25,200 | a82047dd4a786fc82808f88e732f5aabcdece795 | Add partial_eval rule for `for` | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/lax/control_flow/for_loop.py",
"new_path": "jax/_src/lax/control_flow/for_loop.py",
"diff": "@@ -31,7 +31,9 @@ from jax.tree_util import (tree_flatten, tree_structure, tree_unflatten,\nfrom jax._src import ad_util\nfrom jax._src import dtypes\nfrom ja... | Python | Apache License 2.0 | google/jax | Add partial_eval rule for `for`
Co-authored-by: Matthew Johnson <mattjj@google.com> |
260,637 | 03.07.2022 19:02:30 | 0 | 2d063d3f85afb3e44824f0cb27c4b8f499cef6e1 | Fix typos in omnistaging.md | [
{
"change_type": "MODIFY",
"old_path": "docs/design_notes/omnistaging.md",
"new_path": "docs/design_notes/omnistaging.md",
"diff": "@@ -41,7 +41,7 @@ disabled in JAX versions 0.2.12 and higher*\nIt is temporarily possible to disable omnistaging by\n1. setting the shell environment variable `JAX_OMNI... | Python | Apache License 2.0 | google/jax | Fix typos in omnistaging.md |
260,411 | 16.11.2021 11:17:42 | -7,200 | 5983d385dab539caeb445f89fb414fab35c5726f | [dynamic-shapes] Expand the handling of dynamic shapes for reshape and iota.
Also add more tests. | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/config.py",
"new_path": "jax/_src/config.py",
"diff": "@@ -840,7 +840,7 @@ bcoo_cusparse_lowering = config.define_bool_state(\n# if the intended backend can handle lowering the result\nconfig.define_bool_state(\nname='jax_dynamic_shapes',\n- default=F... | Python | Apache License 2.0 | google/jax | [dynamic-shapes] Expand the handling of dynamic shapes for reshape and iota.
Also add more tests. |
260,287 | 05.07.2022 11:15:39 | 0 | 7439e1b1f84d093c078c6c86bfcd4eed51b00a14 | Properly count sublevels when tracing xmap body
Otherwise it can lead to tracer leak errors. I'm not a 100% sure how
this works out, because the sublevel counting has changed since I read
it previously. This replicates the changes applied to
DynamicJaxprTrace.process_map since I last looked at it. | [
{
"change_type": "MODIFY",
"old_path": "jax/experimental/maps.py",
"new_path": "jax/experimental/maps.py",
"diff": "@@ -1015,6 +1015,7 @@ def _dynamic_jaxpr_process_xmap(self, primitive, f, tracers, params):\nmapped_in_avals = [_delete_aval_axes(a, a_in_axes, global_axis_sizes)\nfor a, a_in_axes in ... | Python | Apache License 2.0 | google/jax | Properly count sublevels when tracing xmap body
Otherwise it can lead to tracer leak errors. I'm not a 100% sure how
this works out, because the sublevel counting has changed since I read
it previously. This replicates the changes applied to
DynamicJaxprTrace.process_map since I last looked at it. |
260,411 | 05.07.2022 14:01:19 | -7,200 | dc3d7763119ff8171def4c07f62834574a73f5ef | [shape_poly] Refactor tests to separate the vmap tests
Introduce ShapePolyVmapPrimitivesTest to contain all the tests
that vmap results in batch polymprphic code.
Also fix some warnings about eig, eigh, and qr taking only kwarg
arguments. | [
{
"change_type": "MODIFY",
"old_path": "jax/experimental/jax2tf/tests/primitive_harness.py",
"new_path": "jax/experimental/jax2tf/tests/primitive_harness.py",
"diff": "@@ -1648,9 +1648,8 @@ for dtype in jtu.dtypes.all_floating + jtu.dtypes.complex:\ndefine(\nlax.linalg.qr_p,\nf\"multi_array_shape={j... | Python | Apache License 2.0 | google/jax | [shape_poly] Refactor tests to separate the vmap tests
Introduce ShapePolyVmapPrimitivesTest to contain all the tests
that vmap results in batch polymprphic code.
Also fix some warnings about eig, eigh, and qr taking only kwarg
arguments. |
260,287 | 05.07.2022 12:06:47 | 25,200 | 5777c1eac26fe96e4039c343de3b2b8f04ea7339 | Add support for post_process of xmap in BatchTrace | [
{
"change_type": "MODIFY",
"old_path": "jax/experimental/maps.py",
"new_path": "jax/experimental/maps.py",
"diff": "@@ -49,7 +49,7 @@ from jax.interpreters import batching\nfrom jax.interpreters import ad\nfrom jax._src.lib import xla_bridge as xb\nfrom jax._src.lib import xla_client as xc\n-from ja... | Python | Apache License 2.0 | google/jax | Add support for post_process of xmap in BatchTrace
PiperOrigin-RevId: 459108183 |
260,718 | 06.07.2022 10:59:02 | 14,400 | de08344cb73b168220cfec77d3d3304339c88849 | Avoid casting input to _fft_helper. | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/scipy/signal.py",
"new_path": "jax/_src/scipy/signal.py",
"diff": "@@ -26,8 +26,7 @@ from jax._src import dtypes\nfrom jax._src.numpy.lax_numpy import _check_arraylike\nfrom jax._src.numpy import lax_numpy as jnp\nfrom jax._src.numpy import linalg\n-f... | Python | Apache License 2.0 | google/jax | Avoid casting input to _fft_helper. |
260,631 | 06.07.2022 12:35:50 | 25,200 | 354c684873373e16265d12816eddfa1872eba02d | [jax2tf] Update docs for supported convolution types. | [
{
"change_type": "MODIFY",
"old_path": "jax/experimental/jax2tf/g3doc/no_xla_limitations.md",
"new_path": "jax/experimental/jax2tf/g3doc/no_xla_limitations.md",
"diff": "@@ -59,23 +59,24 @@ lax.conv_general_dilated(\nWe provide support for convolutions as follows:\n-* Only 2D convolutions, i.e. `lhs... | Python | Apache License 2.0 | google/jax | [jax2tf] Update docs for supported convolution types.
PiperOrigin-RevId: 459316769 |
260,335 | 29.06.2022 13:55:30 | 25,200 | 6bb90fde9e074d4bb38a9a111383bc8ac720c81c | [dynamic shapes] revive iree | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/dispatch.py",
"new_path": "jax/_src/dispatch.py",
"diff": "@@ -192,7 +192,10 @@ def _device_from_arg_devices(devices: Sequence[Optional[Device]]) -> Optional[De\ndef _xla_call_impl(fun: lu.WrappedFun, *args, device, backend, name,\ndonated_invars, inl... | Python | Apache License 2.0 | google/jax | [dynamic shapes] revive iree |
260,510 | 06.07.2022 20:52:08 | 25,200 | 6274b9ed39425b25af580ce2cf4f20e9575a0043 | Enable Python callbacks on TFRT TPU backend | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/api.py",
"new_path": "jax/_src/api.py",
"diff": "@@ -891,7 +891,7 @@ def xla_computation(fun: Callable,\nif eff not in core.ordered_effects]\nordered_effects = [eff for eff in jaxpr.effects\nif eff in core.ordered_effects]\n- m, _ = mlir.lower_jaxpr_t... | Python | Apache License 2.0 | google/jax | Enable Python callbacks on TFRT TPU backend
PiperOrigin-RevId: 459415455 |
260,335 | 29.06.2022 13:55:30 | 25,200 | 98e71fe31de8f6ea26be76488d41fb471fef56eb | [dynamic-shapes] revive basic bounded int machinery, add tests | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/dispatch.py",
"new_path": "jax/_src/dispatch.py",
"diff": "@@ -299,6 +299,7 @@ def lower_xla_callable(fun: lu.WrappedFun, device, backend, name,\nif config.jax_dynamic_shapes:\nkeep_unused = True\nhas_outfeed = False\n+ donated_invars = [False] * len(... | Python | Apache License 2.0 | google/jax | [dynamic-shapes] revive basic bounded int machinery, add tests |
260,335 | 07.07.2022 10:30:41 | 25,200 | 12a56c3064ca2e6bb7d7cd48478bbcb1db8b9642 | [dynamic-shapes] add basic abstracted_axes support to jit(f, ...).lower(...) | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/api.py",
"new_path": "jax/_src/api.py",
"diff": "@@ -382,11 +382,13 @@ def _jit(\ndonate_argnums = rebase_donate_argnums(donate_argnums, static_argnums)\nif use_cpp_jit:\n- return _cpp_jit(fun, static_argnums=static_argnums, static_argnames=static_arg... | Python | Apache License 2.0 | google/jax | [dynamic-shapes] add basic abstracted_axes support to jit(f, ...).lower(...) |
260,430 | 07.07.2022 00:37:10 | -28,800 | 7c707832aa3c750443d8a34385bc94dfadcc0c72 | Enable CustomCall implementation on GPU | [
{
"change_type": "MODIFY",
"old_path": "jax/experimental/host_callback.py",
"new_path": "jax/experimental/host_callback.py",
"diff": "@@ -537,6 +537,8 @@ def _inline_host_callback() -> bool:\ndef _use_outfeed(platform: str) -> bool:\n+ if jaxlib.version >= (0, 3, 15):\n+ return platform == \"tpu\" o... | Python | Apache License 2.0 | google/jax | Enable CustomCall implementation on GPU |
260,631 | 08.07.2022 13:33:14 | 25,200 | 1bb1fe0658cbce1de055826f800ffd78cf80f6e7 | Remove workaround for rank-0 zarr chunk layout bug in TensorStore
This has now been fixed in TensorStore. | [
{
"change_type": "MODIFY",
"old_path": "jax/experimental/gda_serialization/serialization.py",
"new_path": "jax/experimental/gda_serialization/serialization.py",
"diff": "@@ -171,8 +171,6 @@ def run_serialization(gdas, tensorstore_specs):\ndef estimate_read_memory_footprint(t: ts.TensorStore) -> int:... | Python | Apache License 2.0 | google/jax | Remove workaround for rank-0 zarr chunk layout bug in TensorStore
This has now been fixed in TensorStore.
PiperOrigin-RevId: 459824051 |
260,510 | 07.07.2022 19:37:05 | 25,200 | bff71b2c4f166da8605b84b53016d0c6ef38cb31 | Add loop-invariant residual optimization for `for` | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/lax/control_flow/for_loop.py",
"new_path": "jax/_src/lax/control_flow/for_loop.py",
"diff": "@@ -673,9 +673,39 @@ def _for_partial_eval(trace: pe.JaxprTrace, *tracers: pe.JaxprTracer,\n# to output residual values (none of them should be `Ref`s). We'll... | Python | Apache License 2.0 | google/jax | Add loop-invariant residual optimization for `for` |
260,335 | 07.07.2022 16:44:00 | 25,200 | 5b82ba787c5750260ec831561c4083d11123bc08 | [dynamic-shapes] start basic vmap compatibility | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/api.py",
"new_path": "jax/_src/api.py",
"diff": "@@ -1575,24 +1575,25 @@ def _mapped_axis_size(tree, vals, dims, name, *, kws=False):\nf\"containing an array, got empty *args={args} and **kwargs={kwargs}\"\n)\n- def _get_axis_size(name: str, shape: Tu... | Python | Apache License 2.0 | google/jax | [dynamic-shapes] start basic vmap compatibility |
260,510 | 10.07.2022 13:04:44 | 25,200 | b666f665ece2b91e7c07c65d27cf485a779638b6 | Rollback of HCB GPU custom call due to internal failures | [
{
"change_type": "MODIFY",
"old_path": "jax/experimental/host_callback.py",
"new_path": "jax/experimental/host_callback.py",
"diff": "@@ -537,8 +537,6 @@ def _inline_host_callback() -> bool:\ndef _use_outfeed(platform: str) -> bool:\n- if jaxlib.version >= (0, 3, 15):\n- return platform == \"tpu\" o... | Python | Apache License 2.0 | google/jax | Rollback of HCB GPU custom call due to internal failures
PiperOrigin-RevId: 460079787 |
260,510 | 09.07.2022 11:20:16 | 25,200 | 9d610e2de6891f134ddfdc2bb65d3b19ac0b6ffe | Add loop invariant residual fixpoint test | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/lax/control_flow/for_loop.py",
"new_path": "jax/_src/lax/control_flow/for_loop.py",
"diff": "@@ -216,7 +216,7 @@ pp_ref = partial(pp.color, intensity=pp.Intensity.NORMAL,\nforeground=pp.Color.GREEN)\ndef _get_pp_rule(eqn, context, settings):\n- # Pret... | Python | Apache License 2.0 | google/jax | Add loop invariant residual fixpoint test |
260,310 | 11.07.2022 17:11:24 | 25,200 | 153b6aeb78c86d3ce55cfb71f1af93ee1ef26c85 | Fix limitations-of-call_tf github link typo.
call_tf misspell as "call-tf" on multiple places. | [
{
"change_type": "MODIFY",
"old_path": "jax/experimental/jax2tf/call_tf.py",
"new_path": "jax/experimental/jax2tf/call_tf.py",
"diff": "@@ -104,7 +104,7 @@ def call_tf(callable_tf: Callable) -> Callable:\nif any(not core.is_constant_dim(d) for d in a_jax.shape):\nmsg = (\"call_tf cannot be applied t... | Python | Apache License 2.0 | google/jax | Fix limitations-of-call_tf github link typo.
call_tf misspell as "call-tf" on multiple places.
PiperOrigin-RevId: 460335218 |
260,411 | 12.07.2022 12:40:55 | -10,800 | 3d9c8fbe6f06821a55bfcc1364c6ba27aeb3f68a | [dynamic-shapes] Ensure that the axis_size_env is passed to sub lowering contexts | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/lax/lax.py",
"new_path": "jax/_src/lax/lax.py",
"diff": "@@ -3977,13 +3977,9 @@ def _sort_lower(ctx, *operands, dimension, is_stable, num_keys):\nwith ir.InsertionPoint(comparator):\nlower_comparator = mlir.lower_fun(partial(_sort_lt_comparator),\nmul... | Python | Apache License 2.0 | google/jax | [dynamic-shapes] Ensure that the axis_size_env is passed to sub lowering contexts |
260,510 | 12.07.2022 17:44:37 | 25,200 | 7f8378e0dbcbf8c154944bec7a0527861bc6dee7 | Refactor debugger to have a registry | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/debugger/__init__.py",
"new_path": "jax/_src/debugger/__init__.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 Lic... | Python | Apache License 2.0 | google/jax | Refactor debugger to have a registry |
260,411 | 10.07.2022 18:44:18 | -7,200 | 78028441999b5a9b6c4bea0f1ecc37dbbb8ab673 | [dynamic_shapes] Fix the lowering of shapes in x64 mode.
The mhlo.reshape op has the constraint that the operand and the result
must have the same element type. Cast the dimension size to int32 to
meet this constraint even in 64-bit mode. | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/mlir.py",
"new_path": "jax/interpreters/mlir.py",
"diff": "@@ -81,9 +81,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.RankedTens... | Python | Apache License 2.0 | google/jax | [dynamic_shapes] Fix the lowering of shapes in x64 mode.
The mhlo.reshape op has the constraint that the operand and the result
must have the same element type. Cast the dimension size to int32 to
meet this constraint even in 64-bit mode. |
260,411 | 13.07.2022 17:08:51 | -10,800 | e6f93bcdc0cdbffd40846bb44980a9e7ca48ce74 | [shape-poly] Improve the error reporting for division
Added a section to README to explain the division errors
and to show a workaround. Changed the division errors
to include more detail as to what the error is,
and to include a link to the new section in the README | [
{
"change_type": "MODIFY",
"old_path": "jax/experimental/jax2tf/README.md",
"new_path": "jax/experimental/jax2tf/README.md",
"diff": "@@ -448,6 +448,7 @@ More operations are partially supported for dimension polynomials:\nin which case there may be a constant remainder. The need for division in JAX ... | Python | Apache License 2.0 | google/jax | [shape-poly] Improve the error reporting for division
Added a section to README to explain the division errors
and to show a workaround. Changed the division errors
to include more detail as to what the error is,
and to include a link to the new section in the README |
260,447 | 14.07.2022 20:34:40 | 25,200 | b421e24bb064c9a09926484b340628498df1d996 | [sparse] Update `_validate_coo_mhlo` in gpu_sparse. | [
{
"change_type": "MODIFY",
"old_path": "jaxlib/gpu_sparse.py",
"new_path": "jaxlib/gpu_sparse.py",
"diff": "@@ -57,7 +57,7 @@ def _validate_csr_mhlo(data, indices, indptr, shape):\nassert indptr_type.shape == [shape[0] + 1]\nreturn data_type.element_type, indices_type.element_type, nnz\n-def _valida... | Python | Apache License 2.0 | google/jax | [sparse] Update `_validate_coo_mhlo` in gpu_sparse.
PiperOrigin-RevId: 461111317 |
260,631 | 15.07.2022 01:23:27 | 25,200 | 023e6f5955e28734b9c5d1524710e85cd7bffd33 | Copybara import of the project:
by Roy Frostig
maintain an alias to `jax.tree_util.tree_map` in the top level `jax` module | [
{
"change_type": "MODIFY",
"old_path": "CHANGELOG.md",
"new_path": "CHANGELOG.md",
"diff": "@@ -17,12 +17,12 @@ PLEASE REMEMBER TO CHANGE THE '..main' WITH AN ACTUAL TAG in GITHUB LINK.\n* Binary operations between JAX arrays and built-in collections (`dict`, `list`, `set`, `tuple`)\nnow raise a `Ty... | Python | Apache License 2.0 | google/jax | Copybara import of the project:
--
e1f1e93e0c8b53e62a064b06b56c84a2bfedb911 by Roy Frostig <frostig@google.com>:
maintain an alias to `jax.tree_util.tree_map` in the top level `jax` module
PiperOrigin-RevId: 461146464 |
260,631 | 18.07.2022 01:27:43 | 25,200 | ae4aee762a6ab18b17d61b68d8ee32d2c4e3b957 | [jax2tf] Fix conv1d padding; it's already normalized before the _pad_spatial_dims call. Enable non-XLA tests of conv1d. | [
{
"change_type": "MODIFY",
"old_path": "jax/experimental/jax2tf/impl_no_xla.py",
"new_path": "jax/experimental/jax2tf/impl_no_xla.py",
"diff": "@@ -118,16 +118,11 @@ def pads_to_padtype(in_shape, window_shape, window_strides, padding) -> str:\nreturn \"EXPLICIT\"\n-def _pad_spatial_dims(x, x_shape, ... | Python | Apache License 2.0 | google/jax | [jax2tf] Fix conv1d padding; it's already normalized before the _pad_spatial_dims call. Enable non-XLA tests of conv1d.
PiperOrigin-RevId: 461556553 |
260,707 | 18.07.2022 16:39:52 | -3,600 | 4808c4f11397b611ba9f3f6ecff1462854f98562 | Update docs: div/rev | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/lax/lax.py",
"new_path": "jax/_src/lax/lax.py",
"diff": "@@ -453,11 +453,25 @@ def mul(x: Array, y: Array) -> Array:\nreturn mul_p.bind(x, y)\ndef div(x: Array, y: Array) -> Array:\n- r\"\"\"Elementwise division: :math:`x \\over y`.\"\"\"\n+ r\"\"\"El... | Python | Apache License 2.0 | google/jax | Update docs: div/rev |
260,631 | 18.07.2022 10:04:59 | 25,200 | d98d5ddce5c883b6db2f02e3a087291ebb869d67 | [JAX] Add `jax_unique_mhlo_module_names` flag to control if MHLO should be made unique.
Some clients of JAX expect module names to not be altered so that they can cache XLA compilations. | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/config.py",
"new_path": "jax/_src/config.py",
"diff": "@@ -853,6 +853,12 @@ config.define_bool_state(\ndefault=True,\nhelp='Enable using the context manager-based name stack.')\n+config.define_bool_state(\n+ name='jax_unique_mhlo_module_names',\n+ def... | Python | Apache License 2.0 | google/jax | [JAX] Add `jax_unique_mhlo_module_names` flag to control if MHLO should be made unique.
Some clients of JAX expect module names to not be altered so that they can cache XLA compilations.
PiperOrigin-RevId: 461648129 |
260,510 | 12.07.2022 18:30:40 | 25,200 | 09fd173a3e24d9a12e81b9d893a982a62d37c071 | Add colab debugger | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/debugger/__init__.py",
"new_path": "jax/_src/debugger/__init__.py",
"diff": "# limitations under the License.\nfrom jax._src.debugger.core import breakpoint\nfrom jax._src.debugger import cli_debugger\n+from jax._src.debugger import colab_debugger\nde... | Python | Apache License 2.0 | google/jax | Add colab debugger |
260,411 | 19.07.2022 08:19:22 | -7,200 | c45fe49821961d3025614b0917b5c0010c245a65 | [dynamic-shapes] Add typechecking rule for reshape | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/lax/lax.py",
"new_path": "jax/_src/lax/lax.py",
"diff": "@@ -3187,6 +3187,20 @@ def _reshape_shape_rule(operand, *, new_sizes, dimensions):\nraise TypeError(msg.format(dimensions, np.shape(operand)))\nreturn tuple(new_sizes)\n+def _reshape_typecheck_r... | Python | Apache License 2.0 | google/jax | [dynamic-shapes] Add typechecking rule for reshape |
260,419 | 19.07.2022 11:13:32 | 18,000 | 7589c6d7f0e67767e6a0e2b20da75f28bfb8ff35 | Fix MultiProcessGpuTest test
Since MultiProcessGpuTest was using 'shell=True', only the first element
of the args was executed (i.e. python). Therefore the spawn processes
never executed jax code.
Fix the test and make sure 'jax.distributed' initialize by checking
jax.device_count(). | [
{
"change_type": "MODIFY",
"old_path": "tests/distributed_test.py",
"new_path": "tests/distributed_test.py",
"diff": "@@ -93,16 +93,20 @@ class MultiProcessGpuTest(jtu.JaxTestCase):\nargs = [\nsys.executable,\n\"-c\",\n- ('\"import jax, os; '\n+ ('import jax, os; '\n'jax.distributed.initialize('\n- ... | Python | Apache License 2.0 | google/jax | Fix MultiProcessGpuTest test
Since MultiProcessGpuTest was using 'shell=True', only the first element
of the args was executed (i.e. python). Therefore the spawn processes
never executed jax code.
Fix the test and make sure 'jax.distributed' initialize by checking
jax.device_count(). |
260,335 | 19.07.2022 08:54:28 | 25,200 | e35089437127654fa0fb5ad42f1e095e580f8b2e | remove resnet50 example | [
{
"change_type": "MODIFY",
"old_path": "examples/examples_test.py",
"new_path": "examples/examples_test.py",
"diff": "import os\nimport sys\n-import unittest\nimport zlib\nfrom absl.testing import absltest\n@@ -23,14 +22,12 @@ from absl.testing import parameterized\nimport numpy as np\n-import jax\n... | Python | Apache License 2.0 | google/jax | remove resnet50 example |
260,411 | 19.07.2022 15:05:22 | -7,200 | 2106d65561d42db84943406ff26e7d6a3a463e18 | [dynamic-shapes] Add check that --jax_dynamic_shapes is set when using abstracted_axes.
abstracted_axes has no effect without the --jax_dynamic_shapes. Make this and
explicit error. | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/api.py",
"new_path": "jax/_src/api.py",
"diff": "@@ -334,6 +334,8 @@ def jit(\n>>> g(jnp.arange(4), 3)\nDeviceArray([ 0, 1, 256, 6561], dtype=int32)\n\"\"\"\n+ if abstracted_axes and not config.jax_dynamic_shapes:\n+ raise ValueError(\"abstracted_axes... | Python | Apache License 2.0 | google/jax | [dynamic-shapes] Add check that --jax_dynamic_shapes is set when using abstracted_axes.
abstracted_axes has no effect without the --jax_dynamic_shapes. Make this and
explicit error. |
260,335 | 19.07.2022 16:36:38 | 25,200 | 7cb5c2447ed698a4dbdc7b46246279794ec1f041 | [dynamic-shapes] fix minor bint bugs | [
{
"change_type": "MODIFY",
"old_path": "jax/core.py",
"new_path": "jax/core.py",
"diff": "@@ -1561,7 +1561,9 @@ raise_to_shaped_mappings : Dict[type, Callable] = {\nBot: lambda aval, _: aval,\nUnshapedArray: lambda aval, _: aval,\nShapedArray: lambda aval, weak_type: ShapedArray(\n- aval.shape, aval... | Python | Apache License 2.0 | google/jax | [dynamic-shapes] fix minor bint bugs
Co-authored-by: Eugene Burmako <burmako@google.com> |
260,569 | 20.07.2022 18:57:12 | -32,400 | 9f770425ac8afce354ce7201cb5aaafede6526a7 | Correct spelling on word | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/numpy/lax_numpy.py",
"new_path": "jax/_src/numpy/lax_numpy.py",
"diff": "@@ -1051,7 +1051,7 @@ def bincount(x, weights=None, minlength=0, *, length=None):\n\"The error occurred because of argument 'minlength' of jnp.bincount.\")\nif length is None:\nx... | Python | Apache License 2.0 | google/jax | Correct spelling on word |
260,406 | 20.07.2022 11:49:52 | 25,200 | 38f74ad66692c779a07c56a067148457a56bbccb | Add wait_until_finished to GDA deserialization | [
{
"change_type": "MODIFY",
"old_path": "jax/experimental/gda_serialization/serialization.py",
"new_path": "jax/experimental/gda_serialization/serialization.py",
"diff": "@@ -439,5 +439,6 @@ class GlobalAsyncCheckpointManager(AsyncManager, GlobalAsyncCheckpointManagerBas\ndef deserialize(self, global... | Python | Apache License 2.0 | google/jax | Add wait_until_finished to GDA deserialization |
260,411 | 21.07.2022 17:01:20 | -7,200 | 6c9d2a0b543f3aef8a8422b18c4fe4112d82787a | [jax2tf] Raise errors for experimental_native_lowering and custom_call
Raise explicit error when the experimental_native_lowering encounters
a mhlo.custom_call. This would lead to failure when trying to run in TF. | [
{
"change_type": "MODIFY",
"old_path": "jax/experimental/jax2tf/jax2tf.py",
"new_path": "jax/experimental/jax2tf/jax2tf.py",
"diff": "@@ -52,6 +52,7 @@ from jax._src.lax import lax as lax_internal\nfrom jax._src.lax import linalg as lax_linalg\nfrom jax._src.lax import slicing as lax_slicing\nfrom j... | Python | Apache License 2.0 | google/jax | [jax2tf] Raise errors for experimental_native_lowering and custom_call
Raise explicit error when the experimental_native_lowering encounters
a mhlo.custom_call. This would lead to failure when trying to run in TF. |
260,510 | 21.07.2022 11:22:54 | 25,200 | d6c172d53e06483d24dba767edf667a93d89757e | Fix PE not allowing double JIT-ted effectful functions | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/ad_checkpoint.py",
"new_path": "jax/_src/ad_checkpoint.py",
"diff": "@@ -280,8 +280,6 @@ def remat_impl(*args, jaxpr, prevent_cse, differentiated, policy):\n@remat_p.def_effectful_abstract_eval\ndef remat_abstract_eval(*args, jaxpr, prevent_cse, diffe... | Python | Apache License 2.0 | google/jax | Fix PE not allowing double JIT-ted effectful functions |
260,510 | 21.07.2022 20:21:38 | 25,200 | 4870710891dc6f03b18f019eee6f41956f6b91d5 | Enable debugging callbacks with pjit on TPU | [
{
"change_type": "MODIFY",
"old_path": "jax/experimental/maps.py",
"new_path": "jax/experimental/maps.py",
"diff": "@@ -1393,8 +1393,8 @@ def _xmap_lowering_rule_replica(ctx, *in_nodes,\nsub_ctx = ctx.module_context.replace(\nname_stack=xla.extend_name_stack(ctx.module_context.name_stack,\nwrap_name... | Python | Apache License 2.0 | google/jax | Enable debugging callbacks with pjit on TPU
PiperOrigin-RevId: 462527181 |
260,510 | 22.07.2022 15:30:22 | 25,200 | fc1fa134c815a79f4abcfa63b0ec626b7384d76a | Adjust debug_callback JVP rule to only call on primals | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/debugging.py",
"new_path": "jax/_src/debugging.py",
"diff": "@@ -76,13 +76,8 @@ def debug_callback_batching_rule(args, dims, **params):\nreturn outs, (0,) * len(outs)\nbatching.primitive_batchers[debug_callback_p] = debug_callback_batching_rule\n-def ... | Python | Apache License 2.0 | google/jax | Adjust debug_callback JVP rule to only call on primals |
260,411 | 24.07.2022 11:59:32 | -10,800 | ab7d03627154d49ae718018ef644dbd408c725d2 | Remove dependencies on masking.py | [
{
"change_type": "MODIFY",
"old_path": "jax/__init__.py",
"new_path": "jax/__init__.py",
"diff": "@@ -95,7 +95,6 @@ from jax._src.api import (\nlinearize as linearize,\nlinear_transpose as linear_transpose,\nmake_jaxpr as make_jaxpr,\n-\nnamed_call as named_call,\nnamed_scope as named_scope,\npmap a... | Python | Apache License 2.0 | google/jax | Remove dependencies on masking.py |
260,411 | 24.07.2022 12:03:34 | -10,800 | 2fd46d13cdce0d418389475944af9f86c92a2804 | Delete the masking.py | [
{
"change_type": "MODIFY",
"old_path": "docs/faq.rst",
"new_path": "docs/faq.rst",
"diff": "@@ -215,7 +215,7 @@ subsequent method call may return an incorrect result::\nWhat's happening here? The issue is that ``static_argnums`` relies on the hash of the object\nto determine whether it has changed b... | Python | Apache License 2.0 | google/jax | Delete the masking.py |
260,424 | 25.07.2022 15:23:01 | 25,200 | 48a2abcb7203a00966abcd75b6b163e80c8c3f65 | Fix linear_jvp for multiple_results primitives with Zero tangents. | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/ad.py",
"new_path": "jax/interpreters/ad.py",
"diff": "@@ -490,6 +490,8 @@ def deflinear(primitive, transpose_rule):\ndef linear_jvp(primitive, primals, tangents, **params):\nval_out = primitive.bind(*primals, **params)\nif all(type(tangent) i... | Python | Apache License 2.0 | google/jax | Fix linear_jvp for multiple_results primitives with Zero tangents.
PiperOrigin-RevId: 463190431 |
260,411 | 26.07.2022 12:41:40 | -10,800 | 5b0b8ac58aa43b55de32eedd65c47e20e43db52b | [jax2tf] Improved documentation and tests for pjit | [
{
"change_type": "MODIFY",
"old_path": "jax/experimental/jax2tf/README.md",
"new_path": "jax/experimental/jax2tf/README.md",
"diff": "@@ -254,6 +254,16 @@ You have two options, either pass `enable_gradients=False` to `jax2tf.convert`,\nset `tf.saved_model.SaveOption(experimental_custom_gradients=Fal... | Python | Apache License 2.0 | google/jax | [jax2tf] Improved documentation and tests for pjit |
260,411 | 25.07.2022 11:31:16 | -10,800 | a4f312d9c36510b858d98bbfc455ad0535d71809 | [loops] Remove jax.experimental.loops.
Has been deprecated since April 2022.
See issue for an alternative API. | [
{
"change_type": "DELETE",
"old_path": "jax/experimental/loops.py",
"new_path": null,
"diff": "-# Copyright 2019 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 ... | Python | Apache License 2.0 | google/jax | [loops] Remove jax.experimental.loops.
Has been deprecated since April 2022.
See issue #10278 for an alternative API. |
260,510 | 25.07.2022 17:01:20 | 25,200 | 436e9dd09b9ed8ab4ed7a50cc6b4456d11de2f68 | Add help docstrings for debugger
Refactor colab debugger to use more from base class | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/debugger/cli_debugger.py",
"new_path": "jax/_src/debugger/cli_debugger.py",
"diff": "from __future__ import annotations\nimport cmd\n+import pprint\nimport sys\nimport traceback\n@@ -46,62 +47,108 @@ class CliDebugger(cmd.Cmd):\nenv.update(curr_frame.... | Python | Apache License 2.0 | google/jax | Add help docstrings for debugger
Refactor colab debugger to use more from base class |
260,510 | 25.07.2022 14:48:02 | 25,200 | 80ec269223b6ddfb2cbb76649d9426dba491b9f2 | Fix debugger linenumbers | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/debugger/core.py",
"new_path": "jax/_src/debugger/core.py",
"diff": "@@ -63,8 +63,15 @@ class DebuggerFrame:\ndef from_frameinfo(cls, frame_info) -> DebuggerFrame:\ntry:\n_, start = inspect.getsourcelines(frame_info.frame)\n- source = inspect.getsourc... | Python | Apache License 2.0 | google/jax | Fix debugger linenumbers |
260,268 | 26.07.2022 14:29:31 | 14,400 | 31d2a74aebae7390f8ca75eeed9ca3353603e497 | remove broken-main-notify | [
{
"change_type": "DELETE",
"old_path": ".github/workflows/broken-main-notify.yml",
"new_path": null,
"diff": "-name: Google Chat Broken Main Notification\n-on:\n- check_suite:\n- types:\n- - completed\n- branches:\n- - main\n-\n-jobs:\n- build:\n- runs-on: ubuntu-latest\n-\n- steps:\n- - name: Googl... | Python | Apache License 2.0 | google/jax | remove broken-main-notify |
260,424 | 06.07.2022 13:58:16 | -3,600 | 53dfe35f34e270e3346639fffe935bb9fe02fba5 | Fix ConcretizationError in nested calls. | [
{
"change_type": "MODIFY",
"old_path": "jax/core.py",
"new_path": "jax/core.py",
"diff": "@@ -503,7 +503,7 @@ def escaped_tracer_error(tracer, detail=None):\nf'with shape {tracer.shape} and dtype {tracer.dtype} to escape.\\n'\n'JAX transformations require that functions explicitly return their '\n'o... | Python | Apache License 2.0 | google/jax | Fix ConcretizationError in nested calls. |
260,335 | 26.07.2022 01:02:00 | 25,200 | c44dfce571f2445bcfa381d2356bbc2a96340d50 | fix bug noticed by | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/lax/control_flow/loops.py",
"new_path": "jax/_src/lax/control_flow/loops.py",
"diff": "@@ -857,7 +857,7 @@ def _scan_partial_eval_custom(saveable, unks_in, inst_in, eqn):\nnum_const_known = len(const_uk) - sum(const_uk)\nnum_carry_known = len(carry_uk... | Python | Apache License 2.0 | google/jax | fix bug noticed by @levskaya |
260,510 | 12.07.2022 13:52:14 | 25,200 | d57d6fcee503e02ef6acf45383cf1a88bec7aac9 | Add webpdb option | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/debugger/__init__.py",
"new_path": "jax/_src/debugger/__init__.py",
"diff": "from jax._src.debugger.core import breakpoint\nfrom jax._src.debugger import cli_debugger\nfrom jax._src.debugger import colab_debugger\n+from jax._src.debugger import web_de... | Python | Apache License 2.0 | google/jax | Add webpdb option |
260,335 | 27.07.2022 10:54:54 | 25,200 | 148173630f47c2e4a3aea8bade08eb6e6ea96bae | add an optional fastpath for api_util.shaped_abstractify
also add a benchmark for it, 8.7ms -> 0.2ms on my machine | [
{
"change_type": "MODIFY",
"old_path": "benchmarks/api_benchmark.py",
"new_path": "benchmarks/api_benchmark.py",
"diff": "@@ -20,6 +20,7 @@ import google_benchmark\nimport jax\nfrom jax import lax\nfrom jax.experimental import sparse\n+from jax._src.api_util import shaped_abstractify # technically n... | Python | Apache License 2.0 | google/jax | add an optional fastpath for api_util.shaped_abstractify
also add a benchmark for it, 8.7ms -> 0.2ms on my machine
Co-authored-by: Yash Katariya <yashkatariya@google.com> |
260,510 | 27.07.2022 18:01:34 | 25,200 | 547d021157e44e2b5ef724977244a2e24c332c68 | Enable compatibility with older versions of web_pdb | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/debugger/cli_debugger.py",
"new_path": "jax/_src/debugger/cli_debugger.py",
"diff": "@@ -56,26 +56,30 @@ class CliDebugger(cmd.Cmd):\nself._error_message()\ndef print_backtrace(self):\n- print('Traceback:', file=self.stdout)\n+ backtrace = []\n+ backt... | Python | Apache License 2.0 | google/jax | Enable compatibility with older versions of web_pdb |
260,335 | 27.07.2022 19:38:27 | 25,200 | f56ce8a01cd395440f3edd3b4f01f0fc2c8505db | update cond partial eval to so eqn effects match branch jaxprs'
Also add some new tests, including some skipped ones, for how effects should
interact with jax.linearize (I think...). | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/lax/control_flow/conditionals.py",
"new_path": "jax/_src/lax/control_flow/conditionals.py",
"diff": "@@ -429,7 +429,7 @@ def _cond_partial_eval(trace, *tracers, branches, linear):\nsource = source_info_util.current().replace(name_stack=name_stack)\neq... | Python | Apache License 2.0 | google/jax | update cond partial eval to so eqn effects match branch jaxprs'
Also add some new tests, including some skipped ones, for how effects should
interact with jax.linearize (I think...). |
260,424 | 28.07.2022 11:33:01 | 25,200 | 8ca5ecc7f33e1b9057118b1cdc1b576ff7fa1b6e | Re-land after internal fixes.
maintain an alias to `jax.tree_util.tree_map` in the top level `jax` module | [
{
"change_type": "MODIFY",
"old_path": "CHANGELOG.md",
"new_path": "CHANGELOG.md",
"diff": "@@ -31,12 +31,12 @@ PLEASE REMEMBER TO CHANGE THE '..main' WITH AN ACTUAL TAG in GITHUB LINK.\n* Binary operations between JAX arrays and built-in collections (`dict`, `list`, `set`, `tuple`)\nnow raise a `Ty... | Python | Apache License 2.0 | google/jax | Re-land #11498 after internal fixes.
maintain an alias to `jax.tree_util.tree_map` in the top level `jax` module
PiperOrigin-RevId: 463885774 |
260,335 | 28.07.2022 18:04:49 | 25,200 | 7f3aa12142546a06aca87b3c33da1b64a42a2bf0 | add while_loop custom-policy partial eval rule | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/lax/control_flow/conditionals.py",
"new_path": "jax/_src/lax/control_flow/conditionals.py",
"diff": "@@ -446,7 +446,7 @@ def _cond_partial_eval_custom(saveable, unks_in, inst_in, eqn):\nunks_out: List[bool] = [False] * len(eqn.outvars)\nfor jaxpr in b... | Python | Apache License 2.0 | google/jax | add while_loop custom-policy partial eval rule |
260,335 | 28.07.2022 20:47:26 | 25,200 | e0c1e6c2ffacb7ae3a4bd98df94d8afda84b3c12 | add custom-policy partial eval and dce rules for pmap
Also add a failing test for xmap. | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/lax/lax.py",
"new_path": "jax/_src/lax/lax.py",
"diff": "@@ -1428,7 +1428,8 @@ def zeros_like_array(x: Array) -> Array:\nfor t in itertools.chain(\ndtypes.python_scalar_dtypes.keys(), array_types,\ndevice_array.device_array_types,\n- [pxla.ShardedDevi... | Python | Apache License 2.0 | google/jax | add custom-policy partial eval and dce rules for pmap
Also add a failing test for xmap. |
260,335 | 28.07.2022 21:37:23 | 25,200 | aa043a60b626bdfd025c7abe726068391a10a906 | add test for custom_linear_solve + new remat | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/lax/control_flow/solves.py",
"new_path": "jax/_src/lax/control_flow/solves.py",
"diff": "@@ -466,5 +466,3 @@ mlir.register_lowering(\nmultiple_results=True))\nad.primitive_transposes[linear_solve_p] = _linear_solve_transpose_rule\nbatching.axis_primit... | Python | Apache License 2.0 | google/jax | add test for custom_linear_solve + new remat |
260,510 | 28.07.2022 21:47:25 | 25,200 | fb0cf668b8165eb66832d7d32c8f6621f35f2ffa | Update debugging docs to mention pjit | [
{
"change_type": "MODIFY",
"old_path": "docs/debugging/index.md",
"new_path": "docs/debugging/index.md",
"diff": "@@ -4,7 +4,7 @@ Do you have exploding gradients? Are nans making you gnash your teeth? Just want\n## [Interactive inspection with `jax.debug`](print_breakpoint)\n- **TL;DR** Use {func}`j... | Python | Apache License 2.0 | google/jax | Update debugging docs to mention pjit |
260,424 | 29.07.2022 17:27:40 | -3,600 | 1ace5d351b3e42acc1ec4d2e805224ec9d810e63 | Checkify: support checkify-of-pjit. | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/checkify.py",
"new_path": "jax/_src/checkify.py",
"diff": "@@ -16,7 +16,7 @@ import enum\nfrom dataclasses import dataclass\nfrom functools import partial\nimport itertools as it\n-from typing import Union, Optional, Callable, Dict, Tuple, TypeVar, Fr... | Python | Apache License 2.0 | google/jax | Checkify: support checkify-of-pjit. |
260,510 | 29.07.2022 12:00:26 | 25,200 | decdca60c84c9b136eba246e7a6bbcb1d5daa4aa | Change jaxdb->jdb and add option to force a backend | [
{
"change_type": "MODIFY",
"old_path": "docs/debugging/flags.md",
"new_path": "docs/debugging/flags.md",
"diff": "# JAX debugging flags\n-JAX offers flags and context managers.\n+JAX offers flags and context managers that enable catching errors more easily.\n## `jax_debug_nans` configuration option ... | Python | Apache License 2.0 | google/jax | Change jaxdb->jdb and add option to force a backend |
260,335 | 29.07.2022 15:23:29 | 25,200 | cbcfe95e800e3bcc6165484b0f46c78764cd2296 | fix ad_checkpoint.checkpoint caching issue
Also add a config option to switch to the new checkpoint implementation
globally (default False for now), as the first step in replacing and then
deleting old remat. | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/ad_checkpoint.py",
"new_path": "jax/_src/ad_checkpoint.py",
"diff": "from functools import partial\nimport operator as op\n-from typing import Callable, Optional, List, Tuple\n+from typing import Callable, Optional, List, Tuple, Sequence, Union\nimpor... | Python | Apache License 2.0 | google/jax | fix ad_checkpoint.checkpoint caching issue
Also add a config option to switch to the new checkpoint implementation
globally (default False for now), as the first step in replacing and then
deleting old remat. |
260,510 | 29.07.2022 20:10:01 | 25,200 | 11b206a18ac3c118602b815bd19a8aca93031849 | Enable debugging primitives in `pjit` on CPU/GPU | [
{
"change_type": "MODIFY",
"old_path": "docs/debugging/print_breakpoint.md",
"new_path": "docs/debugging/print_breakpoint.md",
"diff": "@@ -128,8 +128,7 @@ jax.grad(f)(1.)\n#### Printing in other transformations\n-`jax.debug.print` also works in other transformations like `xmap` and `pjit`\n-(but `p... | Python | Apache License 2.0 | google/jax | Enable debugging primitives in `pjit` on CPU/GPU
PiperOrigin-RevId: 464208326 |
260,510 | 31.07.2022 21:22:53 | 25,200 | c08b4ee6d9a13787c16bcf867d04e04d81fca063 | Add jaxlib guards for debugging_primitives_test | [
{
"change_type": "MODIFY",
"old_path": "tests/debugging_primitives_test.py",
"new_path": "tests/debugging_primitives_test.py",
"diff": "@@ -505,6 +505,9 @@ class DebugPrintParallelTest(jtu.JaxTestCase):\n@jtu.skip_on_devices(*disabled_backends)\ndef test_unordered_print_with_pjit(self):\n+ if jax.de... | Python | Apache License 2.0 | google/jax | Add jaxlib guards for debugging_primitives_test
PiperOrigin-RevId: 464453175 |
260,443 | 01.08.2022 15:48:40 | 25,200 | 1987ca73894d6d4c534a02fb4ef56c4c2adfb434 | Add dtype arg to jnp.concatenate and update tests | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/numpy/lax_numpy.py",
"new_path": "jax/_src/numpy/lax_numpy.py",
"diff": "@@ -1650,9 +1650,9 @@ def tile(A, reps):\n[k for pair in zip(reps, A_shape) for k in pair])\nreturn reshape(result, tuple(np.multiply(A_shape, reps)))\n-def _concatenate_array(ar... | Python | Apache License 2.0 | google/jax | Add dtype arg to jnp.concatenate and update tests |
260,510 | 02.08.2022 10:24:26 | 25,200 | 9a989573fca14ec05ceda8b1fb78d4cba7dc56ae | Fix debugger scope issue | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/debugger/cli_debugger.py",
"new_path": "jax/_src/debugger/cli_debugger.py",
"diff": "@@ -44,8 +44,8 @@ class CliDebugger(cmd.Cmd):\ndef evaluate(self, expr):\nenv = {}\ncurr_frame = self.frames[self.frame_index]\n- env.update(curr_frame.locals)\nenv.u... | Python | Apache License 2.0 | google/jax | Fix debugger scope issue |
260,510 | 03.08.2022 10:51:29 | 25,200 | 8fa4f7f2666185138994c94aa26f2239554b8059 | Fix issue where input/output tokens did not play nicely with donate_argnums | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/mlir.py",
"new_path": "jax/interpreters/mlir.py",
"diff": "@@ -779,6 +779,9 @@ def lower_jaxpr_to_fun(\nif input_output_aliases:\ntoken_input_output_aliases = [None] * num_tokens\ninput_output_aliases = [*token_input_output_aliases, *input_out... | Python | Apache License 2.0 | google/jax | Fix issue where input/output tokens did not play nicely with donate_argnums
PiperOrigin-RevId: 465094684 |
260,510 | 03.08.2022 11:02:32 | 25,200 | 375ef0bc63d6ca5c1a189a2650468e3ecf1f6aa4 | Making sharding an arg to MHLO callback lowering | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/debugging.py",
"new_path": "jax/_src/debugging.py",
"diff": "@@ -27,6 +27,7 @@ from jax.interpreters import ad\nfrom jax.interpreters import batching\nfrom jax.interpreters import mlir\nfrom jax._src.lax import control_flow as lcf\n+from jax._src.lib ... | Python | Apache License 2.0 | google/jax | Making sharding an arg to MHLO callback lowering |
260,510 | 03.08.2022 19:03:41 | 25,200 | 5f618e706dccc5bb3869d2618c023eedf6eb273b | Throw error earlier for misformatted string in jax.debug.print | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/debugging.py",
"new_path": "jax/_src/debugging.py",
"diff": "@@ -156,5 +156,6 @@ def debug_print(fmt: str, *args, ordered: bool = False, **kwargs) -> None:\nw.r.t. other ordered ``debug_print`` calls.\n**kwargs: Additional keyword arguments to be form... | Python | Apache License 2.0 | google/jax | Throw error earlier for misformatted string in jax.debug.print |
260,335 | 04.08.2022 08:22:20 | 25,200 | 7ed4fa550e8a1e6187070d4b4893c486ff1bdf63 | in sharp bits notebook, add back iaml blog post link | [
{
"change_type": "MODIFY",
"old_path": "docs/notebooks/Common_Gotchas_in_JAX.ipynb",
"new_path": "docs/notebooks/Common_Gotchas_in_JAX.ipynb",
"diff": "\"source\": [\n\"*levskaya@ mattjj@*\\n\",\n\"\\n\",\n- \"When walking about the countryside of Italy, the people will not hesitate to tell you that... | Python | Apache License 2.0 | google/jax | in sharp bits notebook, add back iaml blog post link |
260,510 | 04.08.2022 13:23:02 | 25,200 | c5d4eb54519d949ecbdbfc3c3c742426e22de064 | Use XLA extension tokens instead of output tokens | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/dispatch.py",
"new_path": "jax/_src/dispatch.py",
"diff": "@@ -50,6 +50,7 @@ from jax._src.config import config, flags\nfrom jax._src.lib.mlir import ir\nfrom jax._src.lib import xla_bridge as xb\nfrom jax._src.lib import xla_client as xc\n+from jax._... | Python | Apache License 2.0 | google/jax | Use XLA extension tokens instead of output tokens
PiperOrigin-RevId: 465389589 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.