author int64 658 755k | date stringlengths 19 19 | timezone int64 -46,800 43.2k | hash stringlengths 40 40 | message stringlengths 5 490 | mods list | language stringclasses 20
values | license stringclasses 3
values | repo stringlengths 5 68 | original_message stringlengths 12 491 |
|---|---|---|---|---|---|---|---|---|---|
260,430 | 15.03.2022 01:57:53 | -28,800 | 37e96de1eef6d85b58b8dc8828ad083e02f5fcf6 | Fix _lax_max_taylor_rule for broadcastable inputs
`lax.max(x, y)` allows x, y have different shape if they are mutually broadcastable. But `lax.select(p, x, y)` does not. | [
{
"change_type": "MODIFY",
"old_path": "jax/experimental/jet.py",
"new_path": "jax/experimental/jet.py",
"diff": "@@ -649,7 +649,7 @@ def _select_n_taylor_rule(primal_in, series_in, **params):\njet_rules[lax.select_n_p] = _select_n_taylor_rule\ndef _lax_max_taylor_rule(primal_in, series_in):\n- x, y... | Python | Apache License 2.0 | google/jax | Fix _lax_max_taylor_rule for broadcastable inputs
`lax.max(x, y)` allows x, y have different shape if they are mutually broadcastable. But `lax.select(p, x, y)` does not. |
260,631 | 15.03.2022 07:50:17 | 25,200 | 4fba0e787f464cc3e68358154f88b1ac13453667 | [JAX] Update ann to use XLA based fallback ApproxTopK.
Other small changes:
* Restricts the operand type to float.
* Add more format annotations to the docstring. | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/lax/ann.py",
"new_path": "jax/_src/lax/ann.py",
"diff": "@@ -92,15 +92,15 @@ def approx_max_k(operand: Array,\n\"\"\"Returns max ``k`` values and their indices of the ``operand`` in an approximate manner.\nArgs:\n- operand : Array to search for max-k.... | Python | Apache License 2.0 | google/jax | [JAX] Update ann to use XLA based fallback ApproxTopK.
Other small changes:
* Restricts the operand type to float.
* Add more format annotations to the docstring.
PiperOrigin-RevId: 434749705 |
260,411 | 15.03.2022 13:14:34 | -3,600 | eb81d9e11cd87c60fecd9f4cccc2e8abbcbd32a8 | [shape_poly] Improve error message and docs for shape polynomials used as JAX values | [
{
"change_type": "MODIFY",
"old_path": "jax/experimental/jax2tf/README.md",
"new_path": "jax/experimental/jax2tf/README.md",
"diff": "@@ -446,6 +446,19 @@ as `False` and produce a converted function that returns `1` just because the di\nare not identical: there are some concrete input shapes for whi... | Python | Apache License 2.0 | google/jax | [shape_poly] Improve error message and docs for shape polynomials used as JAX values |
260,335 | 15.03.2022 20:06:37 | 25,200 | 43036e13164be4760932793220328c903ab743cb | improvements to autodidax reduce_sum
* generalize reduce_sum to handle multiple axes
* add reduce_sum transpose rule
also fix bug in AD jaxpr formation related to deduplicating consts | [
{
"change_type": "MODIFY",
"old_path": "docs/autodidax.ipynb",
"new_path": "docs/autodidax.ipynb",
"diff": "\"def neg(x): return bind1(neg_p, x)\\n\",\n\"def sin(x): return bind1(sin_p, x)\\n\",\n\"def cos(x): return bind1(cos_p, x)\\n\",\n- \"def reduce_sum(x, axis=None): return bind1(reduce_sum_p,... | Python | Apache License 2.0 | google/jax | improvements to autodidax reduce_sum
* generalize reduce_sum to handle multiple axes
* add reduce_sum transpose rule
also fix bug in AD jaxpr formation related to deduplicating consts |
260,424 | 17.03.2022 09:59:52 | 25,200 | 1d5833d2f15fe81d8866f4b5481e364262a6cb04 | Reshape top_k operand to 2D by collapsing the batch dimensions when lowering. | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/lax/lax.py",
"new_path": "jax/_src/lax/lax.py",
"diff": "@@ -4043,7 +4043,14 @@ def _top_k_batch_rule(batched_args, batch_dims, *, k):\nreturn top_k(operand, k=k), (bdim, bdim)\ndef _top_k_translation_rule(ctx, avals_in, avals_out, x, *, k):\n- return... | Python | Apache License 2.0 | google/jax | Reshape top_k operand to 2D by collapsing the batch dimensions when lowering.
PiperOrigin-RevId: 435374934 |
260,442 | 17.03.2022 23:10:46 | 25,200 | 6cd9804163203e4da13b33171c5889b6d17e5f43 | Replace (deprecated) StrEnumAttr with EnumAttr.
ref: | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/lax/lax.py",
"new_path": "jax/_src/lax/lax.py",
"diff": "@@ -1579,13 +1579,23 @@ ad.defjvp_zero(sign_p)\ndef _sign_lower_mhlo(ctx, x):\nx_aval, = ctx.avals_in\nif dtypes.issubdtype(x_aval.dtype, np.unsignedinteger):\n+ if jax._src.lib.mlir_api_version... | Python | Apache License 2.0 | google/jax | Replace (deprecated) StrEnumAttr with EnumAttr.
ref: https://reviews.llvm.org/D120834
PiperOrigin-RevId: 435550738 |
260,430 | 20.03.2022 13:55:03 | -28,800 | e5b3f0b537ae10ca9acceccc849b76254838156b | Fix
Fix hessian with options and add regression test | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/api.py",
"new_path": "jax/_src/api.py",
"diff": "@@ -1158,7 +1158,7 @@ _check_output_dtype_jacrev = partial(_check_output_dtype_revderiv, \"jacrev\")\ndef hessian(fun: Callable, argnums: Union[int, Sequence[int]] = 0,\n- holomorphic: bool = False) -> ... | Python | Apache License 2.0 | google/jax | Fix #9969
Fix hessian with options and add regression test |
260,341 | 23.03.2022 20:39:39 | 0 | 7915c6ce27772ac21419a95dfaefaad7ccb2125f | Rename jax.nn.normalize to standardize. Add normalize alias with DeprecationWarning. | [
{
"change_type": "MODIFY",
"old_path": "CHANGELOG.md",
"new_path": "CHANGELOG.md",
"diff": "@@ -13,8 +13,9 @@ PLEASE REMEMBER TO CHANGE THE '..main' WITH AN ACTUAL TAG in GITHUB LINK.\ncommits](https://github.com/google/jax/compare/jax-v0.3.4...main).\n* Changes:\n* added {func}`jax.random.loggamma`... | Python | Apache License 2.0 | google/jax | Rename jax.nn.normalize to standardize. Add normalize alias with DeprecationWarning. |
260,456 | 17.03.2022 05:04:02 | 0 | 8cd02946b5e729a9ee1980566b53e92153475486 | Fix for hipsparse in ROCm. | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/lax/linalg.py",
"new_path": "jax/_src/lax/linalg.py",
"diff": "@@ -37,10 +37,9 @@ from jax._src.lib import lapack\nfrom jax._src.lib import cuda_linalg\nfrom jax._src.lib import cusolver\n-from jax._src.lib import cusparse\nfrom jax._src.lib import hi... | Python | Apache License 2.0 | google/jax | Fix for hipsparse in ROCm. |
260,681 | 23.03.2022 21:37:52 | 0 | 87671f4d85954c821dc671ded172662b9c6381aa | Add a documentation for the JAX transfer guard | [
{
"change_type": "MODIFY",
"old_path": "docs/index.rst",
"new_path": "docs/index.rst",
"diff": "@@ -58,6 +58,7 @@ parallelize, Just-In-Time compile to GPU/TPU, and more.\ndevice_memory_profiling\nrank_promotion_warning\ncustom_vjp_update\n+ transfer_guard\n.. toctree::\n:maxdepth: 2\n"
},
{
... | Python | Apache License 2.0 | google/jax | Add a documentation for the JAX transfer guard |
260,335 | 25.03.2022 12:55:40 | 25,200 | bd765fecb59c57fcf202c0280834ff34dc6b67d1 | improve caching of jax.remat
See for discussion | [
{
"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 partial, partialmethod, total_ordering\n+from functools ... | Python | Apache License 2.0 | google/jax | improve caching of jax.remat
See #9661 for discussion |
260,335 | 25.03.2022 16:28:35 | 25,200 | 78cf4df21b61486fdc1c314c8da1d52b849deeca | improve remat transpose caching (cf. | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/ad.py",
"new_path": "jax/interpreters/ad.py",
"diff": "@@ -28,7 +28,7 @@ from jax.core import (Trace, Tracer, get_aval, call_p, Primitive, Literal,\nfrom jax._src.ad_util import (add_jaxvals, add_jaxvals_p, zeros_like_jaxval,\nzeros_like_aval,... | Python | Apache License 2.0 | google/jax | improve remat transpose caching (cf. #9661) |
260,710 | 28.03.2022 14:51:54 | -32,400 | 2e70177385bd7b3bbf74b29f95b4ba62d82cdeef | Fix a bug in fft helper appears when nperseg=1. | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/scipy/signal.py",
"new_path": "jax/_src/scipy/signal.py",
"diff": "@@ -160,12 +160,12 @@ def _fft_helper(x, win, detrend_func, nperseg, noverlap, nfft, sides):\nif x.dtype.kind == 'i':\nx = x.astype(win.dtype)\n+ *batch_shape, signal_length = x.shape\... | Python | Apache License 2.0 | google/jax | Fix a bug in fft helper appears when nperseg=1. |
260,424 | 08.03.2022 14:41:18 | 0 | d72687c9909d8d06485d78278e085f6b06861fbe | Checkify: add way to embed runtime info in error messages. | [
{
"change_type": "MODIFY",
"old_path": "jax/experimental/checkify/checkify_impl.py",
"new_path": "jax/experimental/checkify/checkify_impl.py",
"diff": "@@ -56,23 +56,31 @@ def setnewattr(obj, name, val):\nBool = Union[bool, core.Tracer]\nInt = Union[int, core.Tracer]\n+Payload = Union[np.ndarray, jn... | Python | Apache License 2.0 | google/jax | Checkify: add way to embed runtime info in error messages. |
260,335 | 28.03.2022 15:40:49 | 25,200 | 65d05984f00fbf0e171b445723a19ac091ebad6c | remove unused arg in call param jvp updater | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/ad.py",
"new_path": "jax/interpreters/ad.py",
"diff": "@@ -328,8 +328,7 @@ class JVPTrace(Trace):\nout_axes_thunk=new_out_axes_thunk)\nf_jvp, out_tree_def = traceable(f_jvp, len(primals), tangent_tree_def)\nupdate_params = call_param_updaters.... | Python | Apache License 2.0 | google/jax | remove unused arg in call param jvp updater |
260,688 | 29.03.2022 17:13:45 | 25,200 | 8884ce5b985f28c5e4e5d5d0e2de19fa83fe1124 | Migrate 'jaxlib' CPU custom-calls to the status-returning API | [
{
"change_type": "MODIFY",
"old_path": "jaxlib/BUILD",
"new_path": "jaxlib/BUILD",
"diff": "@@ -145,6 +145,7 @@ cc_library(\nsrcs = [\"lapack_kernels.cc\"],\nhdrs = [\"lapack_kernels.h\"],\ndeps = [\n+ \"@org_tensorflow//tensorflow/compiler/xla/service:custom_call_status\",\n\"@com_google_absl//absl... | Python | Apache License 2.0 | google/jax | Migrate 'jaxlib' CPU custom-calls to the status-returning API
PiperOrigin-RevId: 438165260 |
260,631 | 30.03.2022 08:26:48 | 25,200 | 1555ba147c54a7bb0d507aed87512f604f836fc6 | Copybara import of the project:
by Jake VanderPlas
make device_array.copy() return a device array | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/api.py",
"new_path": "jax/_src/api.py",
"diff": "@@ -2784,11 +2784,11 @@ def _device_get(x):\nif isinstance(x, core.Tracer):\nreturn x\ntry:\n- toarray = x.__array__\n+ copy = x.copy\nexcept AttributeError:\nreturn x\nelse:\n- return toarray()\n+ retu... | Python | Apache License 2.0 | google/jax | Copybara import of the project:
--
de9a948d1ce407056de545b5717c3441298e2f36 by Jake VanderPlas <jakevdp@google.com>:
make device_array.copy() return a device array
PiperOrigin-RevId: 438308145 |
260,440 | 30.03.2022 15:31:59 | 0 | b3152126433921d17c1e632b368e0271308d43ed | Fixed a typo in the return type of _array_ir_types
There could be other typing issues in that module, but I will address them separately. | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/mlir.py",
"new_path": "jax/interpreters/mlir.py",
"diff": "@@ -115,7 +115,7 @@ def dtype_to_ir_type(dtype: Union[np.dtype, np.generic]) -> ir.Type:\nf\"No dtype_to_ir_type handler for dtype: {dtype}\") from err\nreturn ir_type_factory()\n-def ... | Python | Apache License 2.0 | google/jax | Fixed a typo in the return type of _array_ir_types
There could be other typing issues in that module, but I will address them separately. |
260,510 | 30.03.2022 11:18:56 | 25,200 | c233a97b095c191d30702d660e878956a400441a | Remove redundant name-stack setting in `DynamicJaxprTrace` | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/partial_eval.py",
"new_path": "jax/interpreters/partial_eval.py",
"diff": "@@ -1499,12 +1499,10 @@ class DynamicJaxprTrace(core.Trace):\ndim_tracers = _get_tracers_only_in_shapes(tracers)\nin_avals = _tracers_to_avals(dim_tracers + tracers)\nk... | Python | Apache License 2.0 | google/jax | Remove redundant name-stack setting in `DynamicJaxprTrace` |
260,510 | 30.03.2022 11:22:26 | 25,200 | fb977176c1f882c9bdd5475972fc2dbc6a29e559 | Fix link to buffer-donation docs | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/mlir.py",
"new_path": "jax/interpreters/mlir.py",
"diff": "@@ -483,7 +483,7 @@ def lower_jaxpr_to_module(\n# TODO(tomhennigan): At call time we should mark these buffers as deleted.\nunused_donations = [str(a) for a, d in zip(in_avals, donated... | Python | Apache License 2.0 | google/jax | Fix link to buffer-donation docs |
260,447 | 30.03.2022 16:09:48 | 25,200 | 19e359221af2fdf8c26dfcee8a8a36db736f3ce4 | [jax2tf] Updates `custom_assert` for jax2tf SVD (primitive) limitations. | [
{
"change_type": "MODIFY",
"old_path": "jax/experimental/jax2tf/tests/jax2tf_limitations.py",
"new_path": "jax/experimental/jax2tf/tests/jax2tf_limitations.py",
"diff": "@@ -972,26 +972,145 @@ class Jax2TfLimitation(primitive_harness.Limitation):\n# TODO: slow test\ncompute_uv = harness.params[\"com... | Python | Apache License 2.0 | google/jax | [jax2tf] Updates `custom_assert` for jax2tf SVD (primitive) limitations.
PiperOrigin-RevId: 438421090 |
260,424 | 30.03.2022 17:19:15 | -3,600 | 15d2ccaeba368b3fa22794cf923c31fe1e8abafe | Checkify: add axis and axis size to OOB error message. | [
{
"change_type": "MODIFY",
"old_path": "jax/experimental/checkify/checkify_impl.py",
"new_path": "jax/experimental/checkify/checkify_impl.py",
"diff": "@@ -58,9 +58,18 @@ Bool = Union[bool, core.Tracer]\nInt = Union[int, core.Tracer]\nPayload = Union[np.ndarray, jnp.ndarray, core.Tracer]\n-# For now... | Python | Apache License 2.0 | google/jax | Checkify: add axis and axis size to OOB error message. |
260,710 | 28.03.2022 21:33:40 | -32,400 | a7fd751acf760024412a8a6417c5db43fa2d269a | Add istft to jax.scipy.signal. | [
{
"change_type": "MODIFY",
"old_path": "docs/jax.scipy.rst",
"new_path": "docs/jax.scipy.rst",
"diff": "@@ -79,6 +79,7 @@ jax.scipy.signal\ncorrelate\ncorrelate2d\ncsd\n+ istft\nstft\nwelch\n"
},
{
"change_type": "MODIFY",
"old_path": "jax/_src/scipy/signal.py",
"new_path": "jax/_src... | Python | Apache License 2.0 | google/jax | Add istft to jax.scipy.signal. |
260,510 | 01.04.2022 12:39:56 | 25,200 | aac8ec8649be69b7bbbe925c23985f74b6d1355f | Fixes `jax2tf`'s `test_name_scope` to use graph introspection instead of
side-effect | [
{
"change_type": "MODIFY",
"old_path": "jax/experimental/jax2tf/tests/jax2tf_test.py",
"new_path": "jax/experimental/jax2tf/tests/jax2tf_test.py",
"diff": "@@ -786,19 +786,24 @@ class Jax2TfTest(tf_test_util.JaxToTfTestCase):\nself.TransformConvertAndCompare(outer, np.ones((4,)), transform)\ndef tes... | Python | Apache License 2.0 | google/jax | Fixes `jax2tf`'s `test_name_scope` to use graph introspection instead of
side-effect |
260,335 | 03.04.2022 11:17:57 | 25,200 | c72d8f6b09a5a50978c71289c964f27d1cffa270 | remove string annotations from core.py | [
{
"change_type": "MODIFY",
"old_path": "jax/core.py",
"new_path": "jax/core.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-\n+from __future__ import an... | Python | Apache License 2.0 | google/jax | remove string annotations from core.py |
260,346 | 04.04.2022 23:38:51 | -7,200 | f7b749c99c07fe958f7d22cd8a02ff7aeaaa0eee | Explicit doc note about device_put* async | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/api.py",
"new_path": "jax/_src/api.py",
"diff": "@@ -2657,6 +2657,8 @@ def device_put(x, device: Optional[xc.Device] = None):\nFor more details on data placement see the\n:ref:`FAQ on data placement <faq-data-placement>`.\n+ This function is always as... | Python | Apache License 2.0 | google/jax | Explicit doc note about device_put* async |
260,510 | 05.04.2022 12:42:43 | 25,200 | d72a7b405419a8b05ba1d00c749f689dc9bba4ed | Add version int tuple `__version_info__` to JAX | [
{
"change_type": "MODIFY",
"old_path": "jax/__init__.py",
"new_path": "jax/__init__.py",
"diff": "@@ -123,6 +123,7 @@ from jax._src.api import (\n)\nfrom jax.experimental.maps import soft_pmap as soft_pmap\nfrom jax.version import __version__ as __version__\n+from jax.version import __version_info__... | Python | Apache License 2.0 | google/jax | Add version int tuple `__version_info__` to JAX |
260,475 | 27.03.2022 12:31:12 | -3,600 | 869596fc2c249807504f9dae61b472a755f536c6 | Add jax.scipy.linalg.rsf2csf | [
{
"change_type": "MODIFY",
"old_path": "CHANGELOG.md",
"new_path": "CHANGELOG.md",
"diff": "@@ -18,6 +18,7 @@ PLEASE REMEMBER TO CHANGE THE '..main' WITH AN ACTUAL TAG in GITHUB LINK.\n* added array creation routines {func}`jax.numpy.frombuffer`, {func}`jax.numpy.fromfunction`,\nand {func}`jax.numpy... | Python | Apache License 2.0 | google/jax | Add jax.scipy.linalg.rsf2csf |
260,631 | 07.04.2022 08:33:10 | 25,200 | b713d3ce4b58e3cf62e43a0d09ee4bda736ecb54 | Minor change to lax to support jax2tf shape polymorphic concatenation. | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/lax/lax.py",
"new_path": "jax/_src/lax/lax.py",
"diff": "@@ -2860,11 +2860,15 @@ def _concatenate_transpose_rule(t, *operands, dimension):\nreturn [ad_util.Zero(o.aval) if ad.is_undefined_primal(o) else None\nfor o in operands]\nelse:\n- limit_points ... | Python | Apache License 2.0 | google/jax | Minor change to lax to support jax2tf shape polymorphic concatenation.
PiperOrigin-RevId: 440113799 |
260,631 | 07.04.2022 09:03:05 | 25,200 | 02fd8752bdac5271c7c5c8d9861ad093a6ddfdfb | Add __init__ to PolyShape. | [
{
"change_type": "MODIFY",
"old_path": "jax/experimental/jax2tf/shape_poly.py",
"new_path": "jax/experimental/jax2tf/shape_poly.py",
"diff": "@@ -518,8 +518,12 @@ class PolyShape(tuple):\nSee docstring of :func:`jax2tf.convert`.\n\"\"\"\n+\n+ def __init__(self, *dim_specs):\n+ tuple.__init__(dim_spe... | Python | Apache License 2.0 | google/jax | Add __init__ to PolyShape.
PiperOrigin-RevId: 440120323 |
260,424 | 07.04.2022 09:18:48 | 25,200 | 5522ed1702de3e806ecb41b7adc00f9841e27a62 | jax2tf: Support uint32 keys in rng_bit_generator.
This follows the rng_bit_generator_translation rule in JAX, which allows for
both uint32 and uint64 keys and casts between them. The default rbg prng
implementation in JAX uses a (4,) uint32 key. | [
{
"change_type": "MODIFY",
"old_path": "jax/experimental/jax2tf/jax2tf.py",
"new_path": "jax/experimental/jax2tf/jax2tf.py",
"diff": "@@ -2078,6 +2078,10 @@ tf_impl_with_avals[random.random_gamma_p] = _convert_jax_impl(\ndef _rng_bit_generator(key: TfVal, *, shape, dtype, algorithm) -> Sequence[TfVa... | Python | Apache License 2.0 | google/jax | jax2tf: Support uint32 keys in rng_bit_generator.
This follows the rng_bit_generator_translation rule in JAX, which allows for
both uint32 and uint64 keys and casts between them. The default rbg prng
implementation in JAX uses a (4,) uint32 key.
PiperOrigin-RevId: 440124048 |
260,308 | 08.04.2022 01:08:24 | 25,200 | 0c02f7935aa90d1d895f34882186e889e2b8923e | Enable tests related to the Gamma distribution for non-default PRNG implementations only when jax_enable_custom_prng is enabled, for consistency with other tests. | [
{
"change_type": "MODIFY",
"old_path": "tests/random_test.py",
"new_path": "tests/random_test.py",
"diff": "@@ -869,14 +869,12 @@ class LaxRandomTest(jtu.JaxTestCase):\nself._CheckKolmogorovSmirnovCDF(samples, scipy.stats.expon().cdf)\n@parameterized.named_parameters(jtu.cases_from_list(\n- {\"testc... | Python | Apache License 2.0 | google/jax | Enable tests related to the Gamma distribution for non-default PRNG implementations only when jax_enable_custom_prng is enabled, for consistency with other tests.
PiperOrigin-RevId: 440300882 |
260,631 | 08.04.2022 13:50:04 | 25,200 | 0bfb3efcd758ce5b8b404169aac74e86c0274820 | [JAX] Fix batch logic for approx_min/max_k
Previous logic was copied from lax.sort and was incorrect.
Since approx_top_k can handle multi-rank tensors, the only mapping we need
is to set the reduction_dim correctly. | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/lax/ann.py",
"new_path": "jax/_src/lax/ann.py",
"diff": "@@ -312,28 +312,23 @@ def _approx_top_k_fallback_translation(ctx, avals_in, avals_out, operand, *, k,\nreturn sliced_vals, sliced_args\n-def _approx_top_k_batch_rule(batched_args, batch_dims, *,... | Python | Apache License 2.0 | google/jax | [JAX] Fix batch logic for approx_min/max_k
Previous logic was copied from lax.sort and was incorrect.
Since approx_top_k can handle multi-rank tensors, the only mapping we need
is to set the reduction_dim correctly.
PiperOrigin-RevId: 440445041 |
260,447 | 09.04.2022 08:33:20 | 25,200 | a11b41f5810d98d65a4e1e2ab3ba4a5e1e1a0687 | [sparse] Use sorted indices instead of sorted rows only. | [
{
"change_type": "MODIFY",
"old_path": "jax/experimental/sparse/coo.py",
"new_path": "jax/experimental/sparse/coo.py",
"diff": "@@ -57,7 +57,8 @@ class COO(JAXSparse):\nnse = property(lambda self: self.data.size)\ndtype = property(lambda self: self.data.dtype)\n_info = property(lambda self: COOInfo(... | Python | Apache License 2.0 | google/jax | [sparse] Use sorted indices instead of sorted rows only.
PiperOrigin-RevId: 440579642 |
260,335 | 09.04.2022 10:56:14 | 25,200 | 9f1fab251935d98d4ba45d3a48f1944136520841 | dispatch.py: type annotations, other minor tweaks | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/dispatch.py",
"new_path": "jax/_src/dispatch.py",
"diff": "# limitations under the License.\n# Primitive dispatch and jit dispatch.\n+from __future__ import annotations\nimport contextlib\nfrom functools import partial\n@@ -48,6 +49,7 @@ from jax._src... | Python | Apache License 2.0 | google/jax | dispatch.py: type annotations, other minor tweaks |
260,335 | 11.04.2022 07:56:18 | 25,200 | 902fc0c3d2b3ec9b6034c66074984386ec35606f | Remove invertible_ad since it's not in use. | [
{
"change_type": "MODIFY",
"old_path": "jax/__init__.py",
"new_path": "jax/__init__.py",
"diff": "@@ -64,7 +64,6 @@ from jax._src.api import (\ncheckpoint_policies as checkpoint_policies,\nclosure_convert as closure_convert,\ncurry, # TODO(phawkins): update users to avoid this.\n- custom_ivjp as cus... | Python | Apache License 2.0 | google/jax | Remove invertible_ad since it's not in use.
PiperOrigin-RevId: 440890949 |
260,681 | 11.04.2022 14:59:04 | 0 | 36df8619d74672b0072e7880bcdd257c4a83e9f1 | Bump minimum jaxlib version to 0.3.2 and remove transfer guard compatibility code | [
{
"change_type": "MODIFY",
"old_path": "build/build_wheel.py",
"new_path": "build/build_wheel.py",
"diff": "@@ -99,7 +99,6 @@ _XLA_EXTENSION_STUBS = [\n\"transfer_guard_lib.pyi\",\n]\n_OPTIONAL_XLA_EXTENSION_STUBS = [\n- \"transfer_guard_lib.pyi\", # Will be required on xla_extension_version >= 58.\... | Python | Apache License 2.0 | google/jax | Bump minimum jaxlib version to 0.3.2 and remove transfer guard compatibility code |
260,631 | 12.04.2022 06:51:29 | 25,200 | a2c2d9af9133df73758ea060a21940fd6a4aa47d | [JAX] Adds the approx_top_k_p bridge. | [
{
"change_type": "MODIFY",
"old_path": "jax/experimental/jax2tf/jax2tf.py",
"new_path": "jax/experimental/jax2tf/jax2tf.py",
"diff": "@@ -983,7 +983,6 @@ tf_not_yet_impl = [\n# Not high priority?\n\"after_all\",\n\"all_to_all\",\n- \"approx_top_k\",\n\"create_token\",\n\"custom_transpose_call\",\n\"... | Python | Apache License 2.0 | google/jax | [JAX] Adds the approx_top_k_p bridge.
PiperOrigin-RevId: 441172779 |
260,335 | 12.04.2022 14:40:19 | 25,200 | 8bc8e40e72f7b8acb10f4a9c4116a50fcce21fd1 | debug_nans: don't return results of successfully running de-optimized function | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/dispatch.py",
"new_path": "jax/_src/dispatch.py",
"diff": "@@ -149,24 +149,45 @@ def _xla_call_impl(fun: lu.WrappedFun, *args, device, backend, name,\ncompiled_fun = _xla_callable(fun, device, backend, name, donated_invars,\n*arg_specs)\ntry:\n- out =... | Python | Apache License 2.0 | google/jax | debug_nans: don't return results of successfully running de-optimized function |
260,335 | 12.04.2022 15:05:53 | 25,200 | 2a46c5e0d816771c58989315b162a586d94c94ae | add default values to config context managers | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/config.py",
"new_path": "jax/_src/config.py",
"diff": "@@ -257,7 +257,8 @@ class Config:\nsetattr(Config, name, property(get_state))\nreturn _StateContextManager(name, help, update_thread_local_hook,\n- extra_description=extra_description)\n+ extra_de... | Python | Apache License 2.0 | google/jax | add default values to config context managers |
260,510 | 12.04.2022 13:32:43 | 25,200 | 4392b0702259c006a22688b45fd64884e22a8004 | Add tests for higher order primitives | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/ad_checkpoint.py",
"new_path": "jax/_src/ad_checkpoint.py",
"diff": "@@ -276,10 +276,12 @@ def remat_impl(*args, jaxpr, prevent_cse, differentiated, policy):\ndel prevent_cse, differentiated, policy # Unused.\nreturn core.eval_jaxpr(jaxpr, (), *args)\... | Python | Apache License 2.0 | google/jax | Add tests for higher order primitives |
260,591 | 11.04.2022 13:53:44 | 0 | 128e51c6386be1af5acee294c146956a16b38c5f | Add polydiv to jax.numpy
Fix code style, fix tests
Add warning when use polydiv with trim_leading_zeros
Update warning for polydiv
Enable type check in _CompileAndCheck
Fix cutoff
Fix cut-off in polydiv
Add trim_zeros_tol, remove redundant code in polydiv
Remove unused import
Fix trim_zero_tol usage in polydiv | [
{
"change_type": "MODIFY",
"old_path": "docs/jax.numpy.rst",
"new_path": "docs/jax.numpy.rst",
"diff": "@@ -305,6 +305,7 @@ namespace; they are listed below.\npoly\npolyadd\npolyder\n+ polydiv\npolyfit\npolyint\npolymul\n"
},
{
"change_type": "MODIFY",
"old_path": "jax/_src/numpy/lax_num... | Python | Apache License 2.0 | google/jax | Add polydiv to jax.numpy
Fix code style, fix tests
Add warning when use polydiv with trim_leading_zeros
Update warning for polydiv
Co-authored-by: Jake Vanderplas <jakevdp@gmail.com>
Enable type check in _CompileAndCheck
Fix cutoff
Fix cut-off in polydiv
Add trim_zeros_tol, remove redundant code in polydiv
Rem... |
260,510 | 06.04.2022 17:52:56 | 25,200 | 1b60e353a220c6f93ed6e5f1cef6e7aaae8aa763 | Enable context manager name stack with `jax2tf` | [
{
"change_type": "MODIFY",
"old_path": "jax/experimental/jax2tf/jax2tf.py",
"new_path": "jax/experimental/jax2tf/jax2tf.py",
"diff": "@@ -66,6 +66,7 @@ from tensorflow.compiler.xla.experimental.xla_sharding import xla_sharding # ty\nfrom tensorflow.python.framework import ops as tf_ops # type: ignor... | Python | Apache License 2.0 | google/jax | Enable context manager name stack with `jax2tf` |
260,424 | 14.04.2022 04:31:55 | 25,200 | e187428a54d65114598807f92f12dd2efda0952b | Restructure checkify files. | [
{
"change_type": "RENAME",
"old_path": "jax/experimental/checkify/checkify_impl.py",
"new_path": "jax/_src/checkify.py",
"diff": ""
},
{
"change_type": "RENAME",
"old_path": "jax/experimental/checkify/__init__.py",
"new_path": "jax/experimental/checkify.py",
"diff": "# limitation... | Python | Apache License 2.0 | google/jax | Restructure checkify files.
PiperOrigin-RevId: 441726310 |
260,335 | 13.04.2022 13:44:42 | 25,200 | d21b958f30ea6f87c85ecc1c423061bd4f17ce1d | add some simple iree tests
This passes, though two of the interesting tests fail with what might be IREE
bugs (and so are currently skipped):
```shell
JAX_PLATFORMS='iree' pytest -n auto tests/core_test.py tests/api_test.py -k Dynamic
``` | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/dispatch.py",
"new_path": "jax/_src/dispatch.py",
"diff": "@@ -228,7 +228,7 @@ def lower_xla_callable(fun: lu.WrappedFun, device, backend, name,\nbackend = xb.get_device_backend(device) if device else xb.get_backend(backend)\nif (config.jax_dynamic_sh... | Python | Apache License 2.0 | google/jax | add some simple iree tests
This passes, though two of the interesting tests fail with what might be IREE
bugs (and so are currently skipped):
```shell
JAX_PLATFORMS='iree' pytest -n auto tests/core_test.py tests/api_test.py -k Dynamic
``` |
260,430 | 15.04.2022 04:06:01 | -28,800 | f0b8d70d1558dded4fbf2d51f63b45611c7948b4 | simplify _IndexGrid | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/numpy/index_tricks.py",
"new_path": "jax/_src/numpy/index_tricks.py",
"diff": "@@ -43,14 +43,9 @@ class _IndexGrid(abc.ABC):\nop_name: str\ndef __getitem__(self, key):\n- single_slice = isinstance(key, slice)\n- if single_slice:\n- key = (key,)\n- out... | Python | Apache License 2.0 | google/jax | simplify _IndexGrid |
260,430 | 15.04.2022 04:09:42 | -28,800 | 4ff6b1fbca5a970a60146c17e34c3cea88b51b17 | Fix PRNGKeyArray.broadcast_to with scalar shape | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/prng.py",
"new_path": "jax/_src/prng.py",
"diff": "@@ -210,6 +210,8 @@ class PRNGKeyArray:\nreturn PRNGKeyArray(self.impl, jnp.concatenate(arrs, axis))\ndef broadcast_to(self, shape):\n+ if jnp.ndim(shape) == 0:\n+ shape = (shape,)\nnew_shape = (*shap... | Python | Apache License 2.0 | google/jax | Fix PRNGKeyArray.broadcast_to with scalar shape |
260,578 | 15.04.2022 13:46:59 | 25,200 | 9719cc89d3989733950d363f140a33d3b5ba7d9d | Add a docstring for maps.Mesh | [
{
"change_type": "MODIFY",
"old_path": "docs/jax.experimental.maps.rst",
"new_path": "docs/jax.experimental.maps.rst",
"diff": "@@ -9,5 +9,5 @@ API\n.. autosummary::\n:toctree: _autosummary\n- mesh\n+ Mesh\nxmap\n"
},
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/pxla.py",
... | Python | Apache License 2.0 | google/jax | Add a docstring for maps.Mesh |
260,534 | 18.04.2022 16:39:01 | 25,200 | 59d8b8d6b25cff8a5d794cac997c1605a5a5bf95 | Remove flags set for all v4 TPUs. Topology flags will now be set in libTPU.
Remove deprecated fields `TPU_MESH_CONTROLLER_ADDRESS` and `TPU_MESH_CONTROLLER_PORT`. | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/cloud_tpu_init.py",
"new_path": "jax/_src/cloud_tpu_init.py",
"diff": "import os\n+\ndef cloud_tpu_init():\n\"\"\"Automatically sets Cloud TPU topology and other env vars.\n@@ -63,16 +64,18 @@ def cloud_tpu_init():\n# pylint: enable=import-outside-top... | Python | Apache License 2.0 | google/jax | Remove flags set for all v4 TPUs. Topology flags will now be set in libTPU.
Remove deprecated fields `TPU_MESH_CONTROLLER_ADDRESS` and `TPU_MESH_CONTROLLER_PORT`.
PiperOrigin-RevId: 442663216 |
260,631 | 18.04.2022 19:34:06 | 25,200 | fc2a12c47843bc84ac1191b29ce86646ca92107f | Temporarily revert by Lukas Geiger
Prefer `jnp.tile` over `concatenate` | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/numpy/lax_numpy.py",
"new_path": "jax/_src/numpy/lax_numpy.py",
"diff": "@@ -3267,9 +3267,7 @@ def _roll(a, shift, axis):\nnp.broadcast_to(axis, b_shape)):\ni = _canonicalize_axis(i, a_ndim)\nx = remainder(x, (a_shape[i] or 1))\n- reps = [1] * a_ndim\... | Python | Apache License 2.0 | google/jax | Temporarily revert fff370d78d107ed81431becf9dfe97eba77863fb by Lukas Geiger <lukas.geiger94@gmail.com>:
Prefer `jnp.tile` over `concatenate`
PiperOrigin-RevId: 442693096 |
260,424 | 19.04.2022 13:48:20 | -3,600 | e4836f5663b2cbaadcdbb06f4c89f1093b0f43eb | Checkify: support checks on data-independent values.
You can now check values which do not depend on checkified args. | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/checkify.py",
"new_path": "jax/_src/checkify.py",
"diff": "@@ -445,6 +445,8 @@ def check_error(error: Error) -> None:\nerr, code, payload = _reduce_any_error(error.err, error.code, error.payload)\nelse:\nerr, code, payload = error.err, error.code, err... | Python | Apache License 2.0 | google/jax | Checkify: support checks on data-independent values.
You can now check values which do not depend on checkified args.
Co-authored-by: Matthew Johnson <mattjj@google.com> |
260,631 | 19.04.2022 07:12:00 | 25,200 | b8971b9f28fb92e5395b117f9673e50cce8d9aa9 | Reapply: by Lukas Geiger
Prefer `jnp.tile` over `concatenate` | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/numpy/lax_numpy.py",
"new_path": "jax/_src/numpy/lax_numpy.py",
"diff": "@@ -3267,7 +3267,9 @@ def _roll(a, shift, axis):\nnp.broadcast_to(axis, b_shape)):\ni = _canonicalize_axis(i, a_ndim)\nx = remainder(x, (a_shape[i] or 1))\n- a = lax.concatenate(... | Python | Apache License 2.0 | google/jax | Reapply: fff370d78d107ed81431becf9dfe97eba77863fb by Lukas Geiger <lukas.geiger94@gmail.com>:
Prefer `jnp.tile` over `concatenate`
PiperOrigin-RevId: 442803459 |
260,301 | 19.04.2022 17:54:32 | -3,600 | 342923335ada3776f28a9517e0a11267da49e71e | fix: explicit reexport
Explicitly reexports PRNGKeyArray as KeyArray in accordance with PEP 484
See also: | [
{
"change_type": "MODIFY",
"old_path": "jax/random.py",
"new_path": "jax/random.py",
"diff": "@@ -122,7 +122,8 @@ Here is a short summary:\n# TODO(frostig): replace with KeyArray from jax._src.random once we\n# always enable_custom_prng\n-from jax._src.prng import PRNGKeyArray as KeyArray\n+from jax... | Python | Apache License 2.0 | google/jax | fix: explicit reexport
Explicitly reexports PRNGKeyArray as KeyArray in accordance with PEP 484
See also: https://github.com/python/mypy/issues/11706 |
260,522 | 19.04.2022 12:23:52 | 18,000 | 554b02e97872c29795460e016813cf805ce4e5f0 | Add quotes to install commands in README | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -463,10 +463,10 @@ version for jaxlib explicitly:\npip install --upgrade pip\n# Installs the wheel compatible with Cuda >= 11.4 and cudnn >= 8.2\n-pip install jax[cuda11_cudnn82] -f https://storage.googleapis.co... | Python | Apache License 2.0 | google/jax | Add quotes to install commands in README |
260,510 | 14.04.2022 15:22:58 | 25,200 | 5ff2e8eb4cc8613415defbfb9c08d47a3ca6a840 | Fix name stack bugs | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/dispatch.py",
"new_path": "jax/_src/dispatch.py",
"diff": "@@ -290,7 +290,7 @@ def lower_xla_callable(fun: lu.WrappedFun, device, backend, name,\n# pass long arg lists as tuple for TPU\ntuple_args = len(abstract_args) > 100\naxis_env = xla.AxisEnv(nre... | Python | Apache License 2.0 | google/jax | Fix name stack bugs |
260,447 | 19.04.2022 11:28:04 | 25,200 | 5a1c5ba1141024e08d8ddafa0f7e0fb1368839c1 | [linalg] Adds `compute_uv` to TPU SVD. | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/lax/svd.py",
"new_path": "jax/_src/lax/svd.py",
"diff": "@@ -35,7 +35,7 @@ https://epubs.siam.org/doi/abs/10.1137/090774999\nimport functools\n-from typing import Sequence\n+from typing import Sequence, Union\nimport jax\nfrom jax import core\n@@ -43,... | Python | Apache License 2.0 | google/jax | [linalg] Adds `compute_uv` to TPU SVD.
PiperOrigin-RevId: 442864883 |
260,430 | 20.04.2022 16:23:16 | -28,800 | f6ca60ec292829ed9c1f97b31c46dc2a741aaa89 | DOC: lax.linalg.eigh
Fix the inconsistency of variable name between docstring and source code.
Add description of eigenvalues | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/lax/linalg.py",
"new_path": "jax/_src/lax/linalg.py",
"diff": "@@ -106,13 +106,14 @@ def eigh(x, lower: bool = True, symmetrize_input: bool = True):\neigendecomposition by computing :math:`\\\\frac{1}{2}(x + x^H)`.\nReturns:\n- A tuple ``(w, v)``.\n+ ... | Python | Apache License 2.0 | google/jax | DOC: lax.linalg.eigh
Fix the inconsistency of variable name between docstring and source code.
Add description of eigenvalues |
260,430 | 20.04.2022 21:54:58 | -28,800 | bb2682db6df5b9388ce0b161e3f449624238718b | remove numpy.linalg._promote_arg_dtypes
in favor of numpy.util._promote_dtypes_inexact | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/numpy/linalg.py",
"new_path": "jax/_src/numpy/linalg.py",
"diff": "@@ -23,35 +23,20 @@ from typing import Tuple, Union, cast\nfrom jax import jit, custom_jvp\nfrom jax import lax\n-from jax._src import dtypes\nfrom jax._src.lax import lax as lax_inter... | Python | Apache License 2.0 | google/jax | remove numpy.linalg._promote_arg_dtypes
in favor of numpy.util._promote_dtypes_inexact |
260,430 | 21.04.2022 02:17:09 | -28,800 | af7b94b1103a07d66f0ecd5e3dea76ceaafe3a6f | Fix typo of
and add a basic regression test | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/scipy/linalg.py",
"new_path": "jax/_src/scipy/linalg.py",
"diff": "@@ -63,7 +63,7 @@ def cho_solve(c_and_lower, b, overwrite_b=False, check_finite=True):\n@partial(jit, static_argnames=('full_matrices', 'compute_uv'))\ndef _svd(a, *, full_matrices, co... | Python | Apache License 2.0 | google/jax | Fix typo of #10381
and add a basic regression test |
260,447 | 20.04.2022 12:31:30 | 25,200 | 455c9f823e204ebc9586392bd8714687233696c8 | [linalg] Adds `full_matrices` option to TPU SVD. | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/lax/svd.py",
"new_path": "jax/_src/lax/svd.py",
"diff": "@@ -45,14 +45,14 @@ import jax.numpy as jnp\n@functools.partial(jax.jit, static_argnums=(1, 2, 3))\ndef _svd(a: jnp.ndarray,\n- is_hermitian: bool,\n+ hermitian: bool,\ncompute_uv: bool,\nmax_it... | Python | Apache License 2.0 | google/jax | [linalg] Adds `full_matrices` option to TPU SVD.
PiperOrigin-RevId: 443163571 |
260,335 | 20.04.2022 14:47:15 | 25,200 | e313428f2e72a9aa4a0e0f78fac69403b8a3a42d | remove lax._device_put_raw | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/lax/control_flow.py",
"new_path": "jax/_src/lax/control_flow.py",
"diff": "@@ -1823,7 +1823,7 @@ def _scan_partial_eval(trace, *tracers, reverse, length, num_consts, num_carry,\ndef _maybe_device_put(x):\nif isinstance(x, np.ndarray):\n- return lax._d... | Python | Apache License 2.0 | google/jax | remove lax._device_put_raw |
260,510 | 19.04.2022 10:45:09 | 25,200 | f17c09eb8d96a8b77bfad92684a06e6467fdece6 | add in mlir lowering for tokens | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/dispatch.py",
"new_path": "jax/_src/dispatch.py",
"diff": "@@ -227,8 +227,6 @@ def lower_xla_callable(fun: lu.WrappedFun, device, backend, name,\n\"for jit in {elapsed_time} sec\"):\njaxpr, out_avals, consts = pe.trace_to_jaxpr_final(\nfun, abstract_a... | Python | Apache License 2.0 | google/jax | add in mlir lowering for tokens |
260,430 | 22.04.2022 23:15:44 | -28,800 | 75e990bbc39c7613bb83aee85b04767c54460eed | Fix typo in _scatter_add_lower_gpu
doesn't notice `_scatter_add_lower_gpu` using `mlir.lower_fun` instead of `xla.lower_fun`.
I follow the change done in that commit for _scatter_lower. | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/lax/slicing.py",
"new_path": "jax/_src/lax/slicing.py",
"diff": "@@ -1965,7 +1965,7 @@ def _scatter_add_lower_gpu(ctx, operand, indices, updates,\nif mode == GatherScatterMode.CLIP:\nclip_fn = mlir.lower_fun(_clamp_scatter_indices, multiple_results=Fa... | Python | Apache License 2.0 | google/jax | Fix typo in _scatter_add_lower_gpu
https://github.com/google/jax/commit/a87b21148c6d7eb9b46c751dde40b17ca0e7b03e doesn't notice `_scatter_add_lower_gpu` using `mlir.lower_fun` instead of `xla.lower_fun`.
I follow the change done in that commit for _scatter_lower. |
260,430 | 21.04.2022 13:15:03 | -28,800 | 667d63aa2d4fbf7c9da73aab0e24c5c4c33cb5ba | replace int with operator.index part2
This change align the behavior of `ravel_multi_index`, `split` and `indices` to their `numpy` counterparts.
Also ensure size argument of `nonzero` should be integer.
The changes with `*space` are only simplification | [
{
"change_type": "MODIFY",
"old_path": "CHANGELOG.md",
"new_path": "CHANGELOG.md",
"diff": "@@ -25,6 +25,22 @@ PLEASE REMEMBER TO CHANGE THE '..main' WITH AN ACTUAL TAG in GITHUB LINK.\nare not of an integer type, matching the behavior of\n{func}`numpy.take_along_axis`. Previously non-integer indice... | Python | Apache License 2.0 | google/jax | replace int with operator.index part2
This change align the behavior of `ravel_multi_index`, `split` and `indices` to their `numpy` counterparts.
Also ensure size argument of `nonzero` should be integer.
The changes with `*space` are only simplification |
260,430 | 20.04.2022 22:38:50 | -28,800 | b485b8e5ce927a07d1b9377ffe3850239cff89e8 | implement scipy.cluster.vq.vq
also add no check_finite and overwrite_* docstring for some scipy.linalg functions | [
{
"change_type": "MODIFY",
"old_path": "CHANGELOG.md",
"new_path": "CHANGELOG.md",
"diff": "@@ -13,6 +13,7 @@ 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.scipy.clus... | Python | Apache License 2.0 | google/jax | implement scipy.cluster.vq.vq
also add no check_finite and overwrite_* docstring for some scipy.linalg functions |
260,335 | 22.04.2022 22:23:35 | 25,200 | 221680fed58c23f7ee16228e4a15f106e5df751f | remove old cond todos | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/lax/control_flow.py",
"new_path": "jax/_src/lax/control_flow.py",
"diff": "@@ -994,9 +994,8 @@ def _cond_partial_eval(trace, *tracers, branches, linear):\nmove = [False] * len(ops_uk) + [True] * branch_num_res\nbranch_jaxpr_2 = pe.move_binders_to_fron... | Python | Apache License 2.0 | google/jax | remove old cond todos |
260,335 | 23.04.2022 12:08:57 | 25,200 | 6a432fade1c1c023b518a3d4adc3ca921f94a6a6 | add partial_eval_jaxpr_nounits
No callers yet, but this is to be used for initial-style higher-order
primitives (HOPs, like in lax/control_flow.py) to remove units. Follow-up PRs
will switch the HOPs one-by-one to use this new function. | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/partial_eval.py",
"new_path": "jax/interpreters/partial_eval.py",
"diff": "@@ -609,6 +609,19 @@ def trace_to_jaxpr(\nreturn jaxpr, out_pvals, consts\n+@profiler.annotate_function\n+def trace_to_jaxpr_nounits(\n+ fun: lu.WrappedFun, pvals: Sequ... | Python | Apache License 2.0 | google/jax | add partial_eval_jaxpr_nounits
No callers yet, but this is to be used for initial-style higher-order
primitives (HOPs, like in lax/control_flow.py) to remove units. Follow-up PRs
will switch the HOPs one-by-one to use this new function. |
260,335 | 23.04.2022 15:05:26 | 25,200 | bf64f1843fd5a969d404f7a4509b3324169f64fe | [remove-units] prevent cond partial eval from introducing units | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/abstract_arrays.py",
"new_path": "jax/_src/abstract_arrays.py",
"diff": "@@ -65,9 +65,8 @@ def _zeros_like_python_scalar(t, x):\nreturn ad_util.zeros_like_aval(aval)\ndef _make_concrete_python_scalar(t, x):\n- return canonical_concrete_aval(\n- np.arr... | Python | Apache License 2.0 | google/jax | [remove-units] prevent cond partial eval from introducing units |
260,335 | 24.04.2022 21:04:06 | 25,200 | fde63050126fd2b0d773ef0c0af8ab3ffe833a6b | refine const folding | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/lax/lax.py",
"new_path": "jax/_src/lax/lax.py",
"diff": "@@ -2210,14 +2210,24 @@ def _convert_element_type_jvp_rule(tangent, operand , *, new_dtype, weak_type):\nweak_type=weak_type)\ndef _convert_elt_type_folding_rule(consts, eqn):\n+ # We constant-f... | Python | Apache License 2.0 | google/jax | refine const folding |
260,335 | 23.04.2022 15:32:30 | 25,200 | 9359cc3e53e9fe160d9391d36922c41a279681e9 | [remove-units] remove units from while partial eval | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/lax/control_flow.py",
"new_path": "jax/_src/lax/control_flow.py",
"diff": "@@ -470,30 +470,29 @@ def _while_loop_jvp(primals, tangents, cond_nconsts, cond_jaxpr, body_nconsts,\ndef _while_partial_eval(trace: pe.JaxprTrace, *tracers: pe.Tracer, cond_nc... | Python | Apache License 2.0 | google/jax | [remove-units] remove units from while partial eval |
260,440 | 25.04.2022 17:44:56 | -3,600 | 0483483f143df64c3089ee816fa68234504059a8 | compile_or_get_cached() is now more type-checker friendly
Prior to this change compile_or_get_cached() could end up calling
.as_hlo_text() on an ir.Module. That error is opaque to the type checker unless
it has access to the MLIR Python bindings. | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/dispatch.py",
"new_path": "jax/_src/dispatch.py",
"diff": "@@ -692,8 +692,13 @@ def compile_or_get_cached(backend, computation, compile_options):\nreturn compiled\nif FLAGS.jax_dump_ir_to:\n- ir_str = (computation if isinstance(computation, str)\n- el... | Python | Apache License 2.0 | google/jax | compile_or_get_cached() is now more type-checker friendly
Prior to this change compile_or_get_cached() could end up calling
.as_hlo_text() on an ir.Module. That error is opaque to the type checker unless
it has access to the MLIR Python bindings. |
260,447 | 25.04.2022 18:44:44 | 25,200 | 84d84abd1c5d87ae75a17d2fdb0df68b4b26eb87 | [sparse] Change the outer call to ir.RankedTensorType to make it call .get(). | [
{
"change_type": "MODIFY",
"old_path": "jax/experimental/sparse/bcoo.py",
"new_path": "jax/experimental/sparse/bcoo.py",
"diff": "@@ -758,7 +758,7 @@ def _bcoo_dot_general_cuda_lowering(\nif rhs_ndim == 1:\n# Transforms a single-element array to a scalar.\nreturn [mhlo.ReshapeOp(\n- ir.RankedTensorT... | Python | Apache License 2.0 | google/jax | [sparse] Change the outer call to ir.RankedTensorType to make it call .get().
PiperOrigin-RevId: 444426777 |
260,510 | 25.04.2022 19:38:03 | 25,200 | 098f2126aeb415a7d9d22818dcc2f22d85d50953 | Add CustomCall MLIR lowering for HCB `outside_call` primitive | [
{
"change_type": "MODIFY",
"old_path": "jax/experimental/host_callback.py",
"new_path": "jax/experimental/host_callback.py",
"diff": "@@ -514,14 +514,18 @@ from jax import lax\nfrom jax.experimental import pjit\nfrom jax.interpreters import ad, xla, batching, masking, pxla\nfrom jax.interpreters imp... | Python | Apache License 2.0 | google/jax | Add CustomCall MLIR lowering for HCB `outside_call` primitive
PiperOrigin-RevId: 444436860 |
260,430 | 23.04.2022 01:26:02 | -28,800 | ecab8e00e87a22df794528bc08f6f5ed72ad0f1a | try to improve docs for scipy.linalg with unused parameters | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/scipy/linalg.py",
"new_path": "jax/_src/scipy/linalg.py",
"diff": "@@ -28,6 +28,11 @@ from jax._src.numpy import lax_numpy as jnp\nfrom jax._src.numpy import linalg as np_linalg\n_T = lambda x: jnp.swapaxes(x, -1, -2)\n+_no_chkfinite_doc = textwrap.de... | Python | Apache License 2.0 | google/jax | try to improve docs for scipy.linalg with unused parameters |
260,335 | 22.04.2022 22:23:35 | 25,200 | 4680b86ff7f468429a0820b4f8c7f64ffd1a1cad | [remove-units] prevent scan partial eval from introducing units | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/lax/control_flow.py",
"new_path": "jax/_src/lax/control_flow.py",
"diff": "@@ -1681,119 +1681,143 @@ def _prune_zeros(ts):\ndef _scan_partial_eval(trace, *tracers, reverse, length, num_consts, num_carry,\njaxpr, linear, unroll):\nnum_ys = len(jaxpr.ou... | Python | Apache License 2.0 | google/jax | [remove-units] prevent scan partial eval from introducing units |
260,510 | 26.04.2022 12:19:15 | 25,200 | 5d68280e58ae82af36fd18718e27d46f07b719c7 | Add an `emit_python_callback` helper function | [
{
"change_type": "MODIFY",
"old_path": "jax/experimental/host_callback.py",
"new_path": "jax/experimental/host_callback.py",
"diff": "@@ -524,7 +524,6 @@ from jax._src.lib import pytree\nfrom jax._src.lib import xla_bridge as xb\nfrom jax._src.lib import xla_client\nfrom jax._src.lib import xla_exte... | Python | Apache License 2.0 | google/jax | Add an `emit_python_callback` helper function
PiperOrigin-RevId: 444633097 |
260,335 | 26.04.2022 12:31:08 | 25,200 | e7acb82b145dc2d5397cda85565c2d4e6a32648c | [remove-units] remove units from api_util.py | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/ad_util.py",
"new_path": "jax/_src/ad_util.py",
"diff": "from typing import Any, Callable, Dict, Type\nfrom jax import core\n-from jax.core import (lattice_join, Primitive, Unit, unit, AbstractUnit,\n- valid_jaxtype, raise_to_shaped, get_aval)\n+from ... | Python | Apache License 2.0 | google/jax | [remove-units] remove units from api_util.py |
260,335 | 26.04.2022 13:01:01 | 25,200 | 9fd53bc6f74796af6383d371d0eb0f98f98986d2 | [remove-units] prevent ad.py from introducing units | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/api.py",
"new_path": "jax/_src/api.py",
"diff": "@@ -2320,8 +2320,11 @@ def _lift_linearized(jaxpr, primal_avals, io_tree, out_pvals, consts, *py_args):\n\"the original primal values: \"\nf\"got {tangent_aval} for primal aval {primal_aval}\")\ntangent... | Python | Apache License 2.0 | google/jax | [remove-units] prevent ad.py from introducing units |
260,335 | 26.04.2022 13:38:53 | 25,200 | 291899b34f037cb9953e0241a58f43cdabf11e83 | fix jax2tf test | [
{
"change_type": "MODIFY",
"old_path": "jax/experimental/jax2tf/tests/jax2tf_test.py",
"new_path": "jax/experimental/jax2tf/tests/jax2tf_test.py",
"diff": "@@ -401,7 +401,7 @@ class Jax2TfTest(tf_test_util.JaxToTfTestCase):\nreturn 2 * x + y\ndef g(x): # x: i32\n- return jnp.sum(2. * f(3 * x, 4. * x... | Python | Apache License 2.0 | google/jax | fix jax2tf test |
260,447 | 26.04.2022 13:58:27 | 25,200 | bcfa290c26e7ae0d237965e22c4d12564998ce63 | [sparse] Add BCOO attribute `_indices_sorted`. | [
{
"change_type": "MODIFY",
"old_path": "jax/experimental/sparse/bcoo.py",
"new_path": "jax/experimental/sparse/bcoo.py",
"diff": "@@ -116,7 +116,7 @@ class BCOOProperties(NamedTuple):\nclass BCOOInfo(NamedTuple):\nshape: Shape\n-\n+ indices_sorted: bool = False\ndef _validate_bcoo(data: jnp.ndarray,... | Python | Apache License 2.0 | google/jax | [sparse] Add BCOO attribute `_indices_sorted`.
PiperOrigin-RevId: 444659603 |
260,335 | 26.04.2022 16:29:23 | 25,200 | 823ad552d687335b1f0af436f631260ee1826599 | Copybara import of the project:
by Matthew Johnson
[remove-units] prevent scan partial eval from introducing units | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/lax/control_flow.py",
"new_path": "jax/_src/lax/control_flow.py",
"diff": "@@ -1681,143 +1681,119 @@ def _prune_zeros(ts):\ndef _scan_partial_eval(trace, *tracers, reverse, length, num_consts, num_carry,\njaxpr, linear, unroll):\nnum_ys = len(jaxpr.ou... | Python | Apache License 2.0 | google/jax | Copybara import of the project:
--
4680b86ff7f468429a0820b4f8c7f64ffd1a1cad by Matthew Johnson <mattjj@google.com>:
[remove-units] prevent scan partial eval from introducing units
PiperOrigin-RevId: 444698613 |
260,335 | 26.04.2022 20:34:14 | 25,200 | ebbad07ce7e2918729c720060b9558b7a7a6a780 | [remove-units] roll forward fix dce bug | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/lax/control_flow.py",
"new_path": "jax/_src/lax/control_flow.py",
"diff": "@@ -1681,119 +1681,141 @@ def _prune_zeros(ts):\ndef _scan_partial_eval(trace, *tracers, reverse, length, num_consts, num_carry,\njaxpr, linear, unroll):\nnum_ys = len(jaxpr.ou... | Python | Apache License 2.0 | google/jax | [remove-units] roll forward #10448, fix dce bug |
260,335 | 26.04.2022 21:33:15 | 25,200 | bd00926b63641a0ad9448bb6215d87ef66bca6fa | don't bind scan on jaxpr_known if no outputs | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/lax/control_flow.py",
"new_path": "jax/_src/lax/control_flow.py",
"diff": "@@ -1766,21 +1766,25 @@ def _scan_partial_eval(trace, *tracers, reverse, length, num_consts, num_carry,\ndel jaxpr_known_\n# We use `fwds_known` below when forming the output o... | Python | Apache License 2.0 | google/jax | don't bind scan on jaxpr_known if no outputs |
260,335 | 26.04.2022 23:25:47 | 25,200 | ccfa6731f5e51e9c0d7b137e911efc5be074fc71 | Weaken some newly-added assertions, which are catching some weak type
inconsistencies. Hopefully temporary. | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/partial_eval.py",
"new_path": "jax/interpreters/partial_eval.py",
"diff": "@@ -891,9 +891,10 @@ def _partial_eval_jaxpr_nounits(jaxpr, in_unknowns, instantiate):\nassert ([v.aval for v in jaxpr_known.invars] ==\n[a for a, uk in zip(jaxpr.in_av... | Python | Apache License 2.0 | google/jax | Weaken some newly-added assertions, which are catching some weak type
inconsistencies. Hopefully temporary.
PiperOrigin-RevId: 444770310 |
260,335 | 27.04.2022 19:58:33 | 25,200 | 7a5a6880f6d1cd56bf9bdcb3b89b194316a42d61 | [remove-units] prevent pjit partial eval from dealing with units | [
{
"change_type": "MODIFY",
"old_path": "jax/experimental/pjit.py",
"new_path": "jax/experimental/pjit.py",
"diff": "@@ -49,7 +49,8 @@ from jax._src.tree_util import prefix_errors\nfrom jax._src import util\nfrom jax._src.util import (\nHashableFunction, safe_map, safe_zip, wrap_name, wraps,\n- distr... | Python | Apache License 2.0 | google/jax | [remove-units] prevent pjit partial eval from dealing with units |
260,335 | 15.11.2021 22:36:39 | 28,800 | 4608d36340af6f7bdfd21a445d2fea8b3659bd47 | add scan dce rule | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/lax/control_flow.py",
"new_path": "jax/_src/lax/control_flow.py",
"diff": "@@ -24,7 +24,7 @@ import inspect\nimport itertools\nimport operator\nimport os\n-from typing import Any, Callable, Optional, Sequence, Tuple, TypeVar\n+from typing import Any, ... | Python | Apache License 2.0 | google/jax | add scan dce rule |
260,598 | 28.04.2022 14:22:17 | 0 | 5d742fc0c3313798ba01b45bc13f973ef950e2e7 | Compatible with RngBitGeneratorOp builder modifications | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/lax/lax.py",
"new_path": "jax/_src/lax/lax.py",
"diff": "@@ -4087,6 +4087,19 @@ def _rng_bit_generator_weak_type_rule(key, *, shape, dtype, algorithm):\ndel shape, dtype, algorithm\nreturn (key.weak_type, False)\n+RandomAlgorithm = xops.RandomAlgorith... | Python | Apache License 2.0 | google/jax | Compatible with RngBitGeneratorOp builder modifications |
260,335 | 28.04.2022 12:44:19 | 25,200 | 891539144343af2a63906653996d6fde72bd4f7b | fix redundant (harmless) axis env extension in pmap partial eval | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/partial_eval.py",
"new_path": "jax/interpreters/partial_eval.py",
"diff": "@@ -265,7 +265,6 @@ class JaxprTrace(Trace):\nout_axes_thunk=const_out_axes_thunk)\n# Run the map, getting known out vals and aux data used for staged-out map.\n- with ... | Python | Apache License 2.0 | google/jax | fix redundant (harmless) axis env extension in pmap partial eval |
260,335 | 27.04.2022 22:04:34 | 25,200 | ca112da8b9103334df85419fd42015154d77509e | [remove-units] avoid making xmap partial eval deal with units | [
{
"change_type": "MODIFY",
"old_path": "jax/experimental/maps.py",
"new_path": "jax/experimental/maps.py",
"diff": "@@ -48,9 +48,10 @@ 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 j... | Python | Apache License 2.0 | google/jax | [remove-units] avoid making xmap partial eval deal with units |
260,447 | 28.04.2022 14:41:29 | 25,200 | 4d41111a8706fead18cdbd07080577ffe05e995d | [linalg] Update svd test on reconstructed operands and unitary singular vectors. | [
{
"change_type": "MODIFY",
"old_path": "tests/linalg_test.py",
"new_path": "tests/linalg_test.py",
"diff": "@@ -544,16 +544,27 @@ class NumpyLinalgTest(jtu.JaxTestCase):\nfor hermitian in ([False, True] if m == n else [False])))\n@jtu.skip_on_devices(\"rocm\") # will be fixed in ROCm-5.1\ndef testSV... | Python | Apache License 2.0 | google/jax | [linalg] Update svd test on reconstructed operands and unitary singular vectors.
PiperOrigin-RevId: 445252682 |
260,447 | 28.04.2022 14:46:08 | 25,200 | cdd11670959b930e01d23199fadb32b183f03ca5 | [signal] Update signal detrend test. | [
{
"change_type": "MODIFY",
"old_path": "tests/scipy_signal_test.py",
"new_path": "tests/scipy_signal_test.py",
"diff": "@@ -122,11 +122,34 @@ class LaxBackedScipySignalTests(jtu.JaxTestCase):\nfor bp in [0, [0, 2]]))\n@jtu.skip_on_devices(\"rocm\") # will be fixed in rocm-5.1\ndef testDetrend(self, ... | Python | Apache License 2.0 | google/jax | [signal] Update signal detrend test.
PiperOrigin-RevId: 445253797 |
260,335 | 28.04.2022 22:51:41 | 25,200 | 477dfa6e469bb0aa463b5bdbc04bd9f17a903dde | [remove-units] don't use abstract_unit for dropvar avals | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/partial_eval.py",
"new_path": "jax/interpreters/partial_eval.py",
"diff": "@@ -554,7 +554,7 @@ class JaxprTracer(Tracer):\n@property\ndef parents(self) -> Sequence[JaxprTracer]:\nif isinstance(self.recipe, JaxprEqnRecipe):\n- return self.recip... | Python | Apache License 2.0 | google/jax | [remove-units] don't use abstract_unit for dropvar avals |
260,335 | 29.04.2022 10:56:03 | 25,200 | ec8252fce265e638bd7f9ba9542414a54f0d5b86 | broken remat test! | [
{
"change_type": "MODIFY",
"old_path": "tests/api_test.py",
"new_path": "tests/api_test.py",
"diff": "@@ -4344,6 +4344,15 @@ class RematTest(jtu.JaxTestCase):\nf_vjp(1.)[0].block_until_ready()\nself.assertEqual(count[0], 1) # fwd execute_trivial, backward_pass on bwd\n+ def test_remat_of_scan(self):... | Python | Apache License 2.0 | google/jax | broken remat test! |
260,335 | 29.04.2022 11:01:32 | 25,200 | 36b0506b4d23b109fac40cd8b82440b66c473c2d | fix scan dce rule | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/lax/control_flow.py",
"new_path": "jax/_src/lax/control_flow.py",
"diff": "@@ -1807,6 +1807,7 @@ def _scan_partial_eval(trace, *tracers, reverse, length, num_consts, num_carry,\n[False] * len(extensive_res))\nname_stack = source_info_util.current_name... | Python | Apache License 2.0 | google/jax | fix scan dce rule
Co-authored-by: Roy Frostig <frostig@google.com> |
260,453 | 29.04.2022 14:20:50 | 14,400 | b276c31b75f25bcfbbc75f85f80489bd4a507906 | Added random.orthogonal. | [
{
"change_type": "MODIFY",
"old_path": "CHANGELOG.md",
"new_path": "CHANGELOG.md",
"diff": "@@ -44,6 +44,7 @@ PLEASE REMEMBER TO CHANGE THE '..main' WITH AN ACTUAL TAG in GITHUB LINK.\nis not of an integer type, matching the behavior of\n{func}`numpy.diag`. Previously non-integer `k` was silently\nc... | Python | Apache License 2.0 | google/jax | Added random.orthogonal. |
260,335 | 29.04.2022 14:54:07 | 25,200 | 5a3d2e3eeae20d0aca2d24019eb5628fe8d4969d | [remove-units] remove partial_eval_jaxpr (no callers!) | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/partial_eval.py",
"new_path": "jax/interpreters/partial_eval.py",
"diff": "@@ -2146,52 +2146,3 @@ def partial_eval_wrapper(pvs: Sequence[Optional[AbstractValue]], *consts):\nout_pvs, out_consts = unzip2(out_pvals)\nout = tuple(out_consts) + tu... | Python | Apache License 2.0 | google/jax | [remove-units] remove partial_eval_jaxpr (no callers!) |
260,335 | 29.04.2022 15:37:27 | 25,200 | 85dcad397adaa4d1bc8f912447c529778dab28b7 | [remove-units] remove units from custom_jvp/vjp | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/partial_eval.py",
"new_path": "jax/interpreters/partial_eval.py",
"diff": "@@ -376,42 +376,45 @@ class JaxprTrace(Trace):\ndef _current_truncated_name_stack(self):\nreturn source_info_util.current_name_stack()[len(self.name_stack):]\n- def pro... | Python | Apache License 2.0 | google/jax | [remove-units] remove units from custom_jvp/vjp |
260,335 | 29.04.2022 16:16:08 | 25,200 | 58a2f47af9f4fa0c943c3e4ae5c1db9930ca9817 | [remove-units] avoid units in new remat
The new remat implementation called a unit-generating function in its transpose
rule. But there's no need for that! | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/ad_checkpoint.py",
"new_path": "jax/_src/ad_checkpoint.py",
"diff": "@@ -353,11 +353,15 @@ def remat_transpose(reduce_axes, out_cts, *in_primals, jaxpr, **params):\nin_pvals = [pe.PartialVal.unknown(x.aval) if ad.is_undefined_primal(x) else\npe.Partia... | Python | Apache License 2.0 | google/jax | [remove-units] avoid units in new remat
The new remat implementation called a unit-generating function in its transpose
rule. But there's no need for that! |
260,335 | 29.04.2022 15:50:25 | 25,200 | 0bf3241e93acf734afc0ba0875f83ba505984057 | [remove-units] remove now-dead flax helper function | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/partial_eval.py",
"new_path": "jax/interpreters/partial_eval.py",
"diff": "@@ -1856,14 +1856,6 @@ def trace_to_jaxpr_final(fun: lu.WrappedFun,\ndel fun, main\nreturn jaxpr, out_avals, consts\n-def partial_eval_to_jaxpr_dynamic(fun: lu.WrappedF... | Python | Apache License 2.0 | google/jax | [remove-units] remove now-dead flax helper function |
260,335 | 29.04.2022 16:28:08 | 25,200 | f970f5885764d6f9d594f0af7e43eadefcc17d54 | [remove-units] avoid unit-generating function in lax.reduce | [
{
"change_type": "MODIFY",
"old_path": "jax/_src/lax/lax.py",
"new_path": "jax/_src/lax/lax.py",
"diff": "@@ -938,7 +938,6 @@ def reduce(operands: Any,\n@cache()\ndef _reduction_jaxpr(computation, aval):\n- pval = pe.PartialVal.unknown(aval)\n@lu.wrap_init\ndef comp(x, y):\nresult = computation(x, y... | Python | Apache License 2.0 | google/jax | [remove-units] avoid unit-generating function in lax.reduce |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.