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
12.10.2020 14:30:32
25,200
dbebc9ad04556824d75c6bc64b4f6d156e3bfc55
remove double warning with asarray dtype='int'
[ { "change_type": "MODIFY", "old_path": "jax/numpy/lax_numpy.py", "new_path": "jax/numpy/lax_numpy.py", "diff": "@@ -2500,6 +2500,7 @@ def _can_call_numpy_array(x):\n@_wraps(np.asarray)\ndef asarray(a, dtype=None, order=None):\nlax._check_user_dtype_supported(dtype, \"asarray\")\n+ dtype = dtypes.can...
Python
Apache License 2.0
google/jax
remove double warning with asarray dtype='int'
260,335
14.10.2020 14:30:09
25,200
b99e350aed0e2c59cdcc5a1fc69d8dd8a7932f9f
add iota_p support to jax2tf
[ { "change_type": "MODIFY", "old_path": "jax/experimental/jax2tf/jax2tf.py", "new_path": "jax/experimental/jax2tf/jax2tf.py", "diff": "@@ -24,7 +24,6 @@ from jax import config\nfrom jax import core\nfrom jax import custom_derivatives\nfrom jax import dtypes\n-from jax import lax\nfrom jax import lax_...
Python
Apache License 2.0
google/jax
add iota_p support to jax2tf
260,335
14.10.2020 14:40:29
25,200
a5f906a9f69acff76203db82a6262fac7d5708c6
jax2tf import fix
[ { "change_type": "MODIFY", "old_path": "jax/experimental/jax2tf/jax2tf.py", "new_path": "jax/experimental/jax2tf/jax2tf.py", "diff": "@@ -465,7 +465,7 @@ tf_not_yet_impl = [\n]\ntry:\n- tf_impl[lax.lax.tie_in_p] = lambda x, y: y\n+ tf_impl[lax.tie_in_p] = lambda x, y: y\nexcept AttributeError:\npass...
Python
Apache License 2.0
google/jax
jax2tf import fix
260,335
14.10.2020 18:51:42
25,200
f553ed24e16f0877bbaecc2d8b920ec8ae160d9c
Temporary rollback of pending a possible XLA bug it exposed in an internal test.
[ { "change_type": "MODIFY", "old_path": "jax/experimental/jax2tf/jax2tf.py", "new_path": "jax/experimental/jax2tf/jax2tf.py", "diff": "@@ -25,6 +25,7 @@ from jax import config\nfrom jax import core\nfrom jax import custom_derivatives\nfrom jax import dtypes\n+from jax import lax\nfrom jax import lax_...
Python
Apache License 2.0
google/jax
Temporary rollback of #4535 pending a possible XLA bug it exposed in an internal test. PiperOrigin-RevId: 337219426
260,268
15.10.2020 11:06:18
14,400
f7d4063e555bf1c4f653fc104529b48e75267332
Remove expit, add logsumexp to docs
[ { "change_type": "MODIFY", "old_path": "docs/jax.nn.rst", "new_path": "docs/jax.nn.rst", "diff": "@@ -47,3 +47,4 @@ Other functions\nlog_softmax\nnormalize\none_hot\n+ logsumexp\n" }, { "change_type": "MODIFY", "old_path": "jax/nn/__init__.py", "new_path": "jax/nn/__init__.py", "...
Python
Apache License 2.0
google/jax
Remove expit, add logsumexp to docs
260,335
15.10.2020 10:53:16
25,200
3a75145fd2a269531e8f13cca97f6020803f0653
allow custom_vjp bwd to return Nones for zeros This change sets up some internal users so that we can then land
[ { "change_type": "MODIFY", "old_path": "jax/custom_derivatives.py", "new_path": "jax/custom_derivatives.py", "diff": "@@ -23,7 +23,7 @@ from .tree_util import tree_flatten, tree_unflatten, tree_map, tree_multimap\nfrom .util import safe_zip, safe_map, split_list\nfrom .api_util import flatten_fun_no...
Python
Apache License 2.0
google/jax
allow custom_vjp bwd to return Nones for zeros This change sets up some internal users so that we can then land #4008.
260,335
15.10.2020 16:18:43
25,200
867828764454ce27c3d6511af6a21ed365b6f2be
remove an extraneous replace_float0s This caused a test failure when trying to land
[ { "change_type": "MODIFY", "old_path": "jax/interpreters/ad.py", "new_path": "jax/interpreters/ad.py", "diff": "@@ -323,9 +323,6 @@ class JVPTrace(Trace):\ndef process_custom_vjp_call(self, _, __, fwd, bwd, tracers, *, out_trees):\nprimals_in, tangents_in = unzip2((t.primal, t.tangent) for t in trac...
Python
Apache License 2.0
google/jax
remove an extraneous replace_float0s This caused a test failure when trying to land #4008.
260,335
15.10.2020 21:58:27
25,200
f3b4f43c2036df1fe885127154eb75573d95bc2c
temporarily work around a bug that will fix
[ { "change_type": "MODIFY", "old_path": "jax/custom_derivatives.py", "new_path": "jax/custom_derivatives.py", "diff": "@@ -608,6 +608,7 @@ def _custom_vjp_call_jaxpr_vmap(args, in_dims, *, fun_jaxpr, fwd_jaxpr_thunk,\nfwd_jaxpr_thunk=batched_fwd_jaxpr_thunk, bwd=batched_bwd,\nout_trees=out_trees)\nou...
Python
Apache License 2.0
google/jax
temporarily work around a bug that #4008 will fix
260,411
16.10.2020 10:52:56
-10,800
5efdaa4d85a3075f6f1f466671bfb3963ef05508
[host_callback] Added support for remat.
[ { "change_type": "MODIFY", "old_path": "jax/experimental/host_callback.py", "new_path": "jax/experimental/host_callback.py", "diff": "@@ -613,6 +613,7 @@ def _rewrite_eqn(eqn: core.JaxprEqn, eqns: List[core.JaxprEqn],\nmk_new_var: Callable[[core.AbstractValue], core.Var]):\n\"\"\"Rewrite an `eqn` an...
Python
Apache License 2.0
google/jax
[host_callback] Added support for remat.
260,273
15.10.2020 13:53:03
0
807e7a4a457feca4d40cc2757ddadad1796ec2b9
Do not promote literal dims to Poly
[ { "change_type": "MODIFY", "old_path": "jax/interpreters/masking.py", "new_path": "jax/interpreters/masking.py", "diff": "@@ -338,7 +338,7 @@ _identifiers = frozenset(string.ascii_lowercase)\ndef _parse_id(name): return Poly({Mon({name: 1}): 1})\n-def _parse_lit(val_str): return Poly({Mon(): int(val...
Python
Apache License 2.0
google/jax
Do not promote literal dims to Poly
260,335
16.10.2020 12:41:23
25,200
3bf58ddebb765061dbe6803181acddb6952c8f02
demote polys to ints eagerly after each shape rule
[ { "change_type": "MODIFY", "old_path": "jax/interpreters/masking.py", "new_path": "jax/interpreters/masking.py", "diff": "@@ -110,9 +110,12 @@ def eval_poly(poly, values_dict):\ndef _ensure_poly(p):\nif type(p) is Poly:\nreturn p\n-\nreturn Poly({Mon(): p})\n+def _polys_to_ints(shape):\n+ return tup...
Python
Apache License 2.0
google/jax
demote polys to ints eagerly after each shape rule
260,335
16.10.2020 13:11:56
25,200
e51163af32f229fd36b74589f923215daf4a0504
only pass hashable values as static args
[ { "change_type": "MODIFY", "old_path": "docs/notebooks/vmapped_log_probs.ipynb", "new_path": "docs/notebooks/vmapped_log_probs.ipynb", "diff": "\" beta_sample = beta_loc + jnp.exp(beta_log_scale) * epsilon\\n\",\n\" return jnp.mean(batched_log_joint(beta_sample), 0) + jnp.sum(beta_log_scale - 0.5 * ...
Python
Apache License 2.0
google/jax
only pass hashable values as static args
260,510
16.10.2020 14:53:23
25,200
e8901d51af2ef95a13fe0826e52c4fa68c05a14b
Add default implementation of process_custom_jvp_call and process_custom_vjp_call to `jax.experimental.callback`
[ { "change_type": "MODIFY", "old_path": "jax/experimental/callback.py", "new_path": "jax/experimental/callback.py", "diff": "@@ -156,3 +156,16 @@ class CallbackTrace(Trace):\nf = callback_subtrace(f, self.main)\nvals_out = call_primitive.bind(f, *vals_in, **params)\nreturn [CallbackTracer(self, val) ...
Python
Apache License 2.0
google/jax
Add default implementation of process_custom_jvp_call and process_custom_vjp_call to `jax.experimental.callback`
260,335
16.10.2020 15:07:02
25,200
c8a1a8ded4dd1fc49a3445ad108500bb4346f38b
remove extraneous test tol change
[ { "change_type": "MODIFY", "old_path": "tests/lax_scipy_test.py", "new_path": "tests/lax_scipy_test.py", "diff": "@@ -136,7 +136,7 @@ class LaxBackedScipyTests(jtu.JaxTestCase):\nreturn_sign=return_sign)\nargs_maker = lambda: [rng(shapes[0], dtype)]\n- self._CheckAgainstNumpy(scipy_fun, lax_fun, arg...
Python
Apache License 2.0
google/jax
remove extraneous test tol change
260,335
16.10.2020 17:57:59
25,200
1ab0c3d31e1d0715335bb765ed7f9165771167cb
refine linearize aval checks
[ { "change_type": "MODIFY", "old_path": "jax/api.py", "new_path": "jax/api.py", "diff": "@@ -1762,10 +1762,11 @@ def _lift_linearized(jaxpr, primal_avals, consts, io_tree, out_pvals, *py_args):\ntangent_avals = list(map(core.get_aval, tangents))\nfor primal_aval, tangent_aval in zip(primal_avals, tan...
Python
Apache License 2.0
google/jax
refine linearize aval checks
260,335
16.10.2020 18:21:01
25,200
a493a0f43d29ad04d34ba2b4265e312be23a41a9
ensure ConcreteArray equality stays in Python
[ { "change_type": "MODIFY", "old_path": "jax/core.py", "new_path": "jax/core.py", "diff": "@@ -1025,9 +1025,12 @@ class ConcreteArray(ShapedArray):\nassert self.dtype != np.dtype('O'), val\ndef __eq__(self, other):\n- return (type(self) is type(other) and self.dtype == other.dtype\n- and self.shape =...
Python
Apache License 2.0
google/jax
ensure ConcreteArray equality stays in Python
260,631
17.10.2020 10:36:09
25,200
e9909ce008ec9953c1e8805606aedda76e4ef217
Copybara import of the project: by Peter Hawkins Move jax.nn implementation into jax._src.nn.
[ { "change_type": "DELETE", "old_path": "jax/_src/nn/__init__.py", "new_path": null, "diff": "-# Copyright 2020 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 Li...
Python
Apache License 2.0
google/jax
Copybara import of the project: -- a396cfbbd414f6f21f0c7e8a68e6e89d202c0e84 by Peter Hawkins <phawkins@google.com>: Move jax.nn implementation into jax._src.nn. PiperOrigin-RevId: 337671917
260,335
20.10.2020 15:35:03
25,200
4a19de60695037281af970d657f6c94600ce5a40
added test skips based on jaxlib version (o/w these were failing at HEAD for me)
[ { "change_type": "MODIFY", "old_path": "tests/array_interoperability_test.py", "new_path": "tests/array_interoperability_test.py", "diff": "@@ -116,6 +116,8 @@ class DLPackTest(jtu.JaxTestCase):\nfor dtype in dlpack_dtypes))\n@unittest.skipIf(not tf, \"Test requires TensorFlow\")\ndef testJaxToTenso...
Python
Apache License 2.0
google/jax
added test skips based on jaxlib version (o/w these were failing at HEAD for me)
260,335
20.10.2020 16:10:56
25,200
ac6cd23b67a04e1efeaf4a0550fe5888b8acd211
improve an escaped tracer error
[ { "change_type": "MODIFY", "old_path": "jax/interpreters/partial_eval.py", "new_path": "jax/interpreters/partial_eval.py", "diff": "@@ -942,7 +942,7 @@ class JaxprStackFrame:\ndef find_progenitors(self, tracer):\nvar = self.tracer_to_var.get(id(tracer))\nif not var:\n- return []\n+ return None, None...
Python
Apache License 2.0
google/jax
improve an escaped tracer error
260,335
20.10.2020 17:51:51
25,200
79e3db550897972e0eee071b69aa923785bd5f85
fixes on (thanks
[ { "change_type": "MODIFY", "old_path": "docs/custom_vjp_update.md", "new_path": "docs/custom_vjp_update.md", "diff": "@@ -70,7 +70,7 @@ Here's a case where we actually need `nondiff_argnums` with `custom_vjp`:\nfrom functools import partial\nimport jax\n-@partial(jax.custom_vjp, nondiff_argnums)\n+@...
Python
Apache License 2.0
google/jax
fixes on #4008 (thanks @apaszke)
260,335
20.10.2020 19:10:41
25,200
2b62a44736d6818195e244760f46569008973280
only run test with omnistaging on
[ { "change_type": "MODIFY", "old_path": "tests/api_test.py", "new_path": "tests/api_test.py", "diff": "@@ -2384,6 +2384,9 @@ class RematTest(jtu.JaxTestCase):\ndef test_escaped_tracer_remat(self):\n# b/169779185\n+ if not config.omnistaging_enabled:\n+ raise unittest.SkipTest(\"test only works with o...
Python
Apache License 2.0
google/jax
only run test with omnistaging on
260,335
20.10.2020 21:08:59
25,200
a46d0028ccc6f4639a733fca542b97e121f754d4
fix a custom_jvp vmap bug from
[ { "change_type": "MODIFY", "old_path": "jax/custom_derivatives.py", "new_path": "jax/custom_derivatives.py", "diff": "@@ -332,12 +332,13 @@ def _custom_jvp_call_jaxpr_vmap(\n@pe._memoize\ndef batched_jvp_jaxpr_thunk():\njvp_jaxpr = core.ClosedJaxpr(*jvp_jaxpr_thunk()) # consts can be tracers\n- _, a...
Python
Apache License 2.0
google/jax
fix a custom_jvp vmap bug from @dpfau
260,296
20.10.2020 22:58:53
25,200
da0bff2fa8e8335d5c90e22413ed4a5e8ccab674
Add `lax.conv_general_dilated_patches`
[ { "change_type": "MODIFY", "old_path": "docs/jax.lax.rst", "new_path": "docs/jax.lax.rst", "diff": "@@ -53,6 +53,7 @@ Operators\nconv\nconvert_element_type\nconv_general_dilated\n+ conv_general_dilated_patches\nconv_with_general_padding\nconv_transpose\ncos\n" }, { "change_type": "MODIFY", ...
Python
Apache License 2.0
google/jax
Add `lax.conv_general_dilated_patches`
260,651
17.10.2020 23:48:39
-10,800
b7fee456e6334ec2aaf275719b5c463b1d1332a9
[impl] Add support for setdiff1d
[ { "change_type": "MODIFY", "old_path": "docs/jax.numpy.rst", "new_path": "docs/jax.numpy.rst", "diff": "@@ -316,6 +316,7 @@ Not every function in NumPy is implemented; contributions are welcome!\nsearchsorted\nselect\nset_printoptions\n+ setdiff1d\nshape\nsign\nsignbit\n" }, { "change_type":...
Python
Apache License 2.0
google/jax
[impl] Add support for setdiff1d
260,335
22.10.2020 15:31:43
25,200
f40ac067178652e1eb9804ce298ad9e1b60a0392
make lax.dynamic_slice transpose handle symb zeros
[ { "change_type": "MODIFY", "old_path": "jax/_src/lax/lax.py", "new_path": "jax/_src/lax/lax.py", "diff": "@@ -3756,11 +3756,14 @@ def _dynamic_slice_jvp(primals, tangents, *, slice_sizes):\ndef _dynamic_slice_transpose_rule(t, operand, *start_indices, slice_sizes):\nassert ad.is_undefined_primal(ope...
Python
Apache License 2.0
google/jax
make lax.dynamic_slice transpose handle symb zeros
260,335
22.10.2020 16:37:08
25,200
ced333d1d4aec2825e9afd81c2ca9721b7e3cc67
redo lazy simplification
[ { "change_type": "MODIFY", "old_path": "jax/_src/lax/lax.py", "new_path": "jax/_src/lax/lax.py", "diff": "@@ -1411,6 +1411,11 @@ def iota(dtype: DType, size: int) -> Array:\n<https://www.tensorflow.org/xla/operation_semantics#iota>`_\noperator.\n\"\"\"\n+ if config.omnistaging_enabled:\n+ dtype = dt...
Python
Apache License 2.0
google/jax
redo #4535 lazy simplification
260,287
26.10.2020 10:11:13
0
6348a99fb4829df1bda0f9ac84437f836769ab66
Add support for vmap collectives in control flow primitives All initial style primitives currently use `batch_jaxpr` in their batching rules, but that function hasn't been updated to support axis_name when I added support for vmap collectives.
[ { "change_type": "MODIFY", "old_path": "jax/_src/lax/control_flow.py", "new_path": "jax/_src/lax/control_flow.py", "diff": "@@ -363,7 +363,8 @@ def _pred_bcast_select(c, pred, x, y, x_y_aval: core.AbstractValue):\nbcast_pred = xops.BroadcastInDim(pred, x_shape, list(range(len(pred_shape))))\nreturn ...
Python
Apache License 2.0
google/jax
Add support for vmap collectives in control flow primitives All initial style primitives currently use `batch_jaxpr` in their batching rules, but that function hasn't been updated to support axis_name when I added support for vmap collectives.
260,621
26.10.2020 23:58:09
-3,600
231168d4806c6d18b2153ce8c1c9add0c563096a
all changes plus test verifcation on TPU squashed
[ { "change_type": "MODIFY", "old_path": "jax/_src/scipy/optimize/line_search.py", "new_path": "jax/_src/scipy/optimize/line_search.py", "diff": "@@ -112,7 +112,7 @@ def _zoom(restricted_func_and_grad, wolfe_one, wolfe_two, a_lo, phi_lo,\n# This will cause the line search to stop, and since the Wolfe ...
Python
Apache License 2.0
google/jax
all changes plus test verifcation on TPU squashed
260,335
26.10.2020 15:32:31
25,200
7a73e99e1462165a76249ead2cda30dd2665978a
simplify select jvp also remove some coverage of broadcast_p, which jax never generates now
[ { "change_type": "MODIFY", "old_path": "jax/_src/lax/lax.py", "new_path": "jax/_src/lax/lax.py", "diff": "@@ -3624,11 +3624,20 @@ def _select_masking_rule(padded_vals, logical_shapes):\nassert np.array_equal(pred_shape, false_shape)\nreturn select(*padded_vals)\n+def _select_jvp(primals, tangents):\...
Python
Apache License 2.0
google/jax
simplify select jvp also remove some coverage of broadcast_p, which jax never generates now
260,335
27.10.2020 13:26:38
25,200
1da36943c868d3a996bd53da3dc88908422ece1f
mention static_argnum values should be immutable
[ { "change_type": "MODIFY", "old_path": "jax/api.py", "new_path": "jax/api.py", "diff": "@@ -134,12 +134,13 @@ def jit(fun: Callable[..., T],\narguments to treat as static (compile-time constant). Operations that only\ndepend on static arguments will be constant-folded in Python (during\ntracing), an...
Python
Apache License 2.0
google/jax
mention static_argnum values should be immutable
260,335
29.10.2020 22:22:15
25,200
bbc85f4aca3184a5cfbd9fd5a7d7fe74a901cd88
revise pytree docs to remove contradiction
[ { "change_type": "MODIFY", "old_path": "docs/pytrees.rst", "new_path": "docs/pytrees.rst", "diff": "@@ -4,13 +4,15 @@ Pytrees\nWhat is a pytree?\n^^^^^^^^^^^^^^^^^\n-In JAX, a pytree is **a container of leaf elements and/or more pytrees**.\n-Containers include lists, tuples, and dicts (JAX can be ex...
Python
Apache License 2.0
google/jax
revise pytree docs to remove contradiction
260,335
29.10.2020 22:26:23
25,200
95687753dd1f0df1892e27ec5dba9e874a4de0f7
add another brief para about the registry
[ { "change_type": "MODIFY", "old_path": "docs/pytrees.rst", "new_path": "docs/pytrees.rst", "diff": "@@ -14,6 +14,12 @@ That is:\n2. any object whose type is in the pytree container registry, and which\ncontains pytrees, is considered a pytree.\n+For each entry in the pytree container registry, a con...
Python
Apache License 2.0
google/jax
add another brief para about the registry
260,335
12.06.2020 10:35:59
25,200
a4ce2813c876326643c49a8032b1e0fb69641fba
link to nn libraries in readme
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "[**Quickstart**](#quickstart-colab-in-the-cloud)\n| [**Transformations**](#transformations)\n| [**Install guide**](#installation)\n+| [**Neural net libraries**](#neural-network-libraries)\n| [**Change logs**](https...
Python
Apache License 2.0
google/jax
link to nn libraries in readme Co-authored-by: Skye Wanderman-Milne <skyewm@google.com> Co-authored-by: James Bradbury <jekbradbury@google.com>
260,335
30.10.2020 08:42:04
25,200
a7d1963bc84a3321e9d2f47c9e0f8de050553d12
update neural network libraries text
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -447,9 +447,21 @@ source](https://jax.readthedocs.io/en/latest/developer.html#building-from-source\n## Neural network libraries\n-There are lots of great deep learning libraries built on top of JAX!\n-\n-If you ...
Python
Apache License 2.0
google/jax
update neural network libraries text Co-authored-by: George Necula <necula@google.com>
260,285
02.11.2020 19:07:50
-3,600
d29b69a3f89f008fbafcd767cd84d90be1397df9
Support polynomial division for mask Add support for multivariate polynomial division on polymorphic sizes without remainder, allowing `mask` of `jnp.reshape` with -1 size and `lax.slice` for polymorphic stride for sizes `poly * stride`, i. e. `(n^2+2n)//n = n+2` Also clean up `Poly` class, improve error messages.
[ { "change_type": "MODIFY", "old_path": "jax/_src/lax/lax.py", "new_path": "jax/_src/lax/lax.py", "diff": "@@ -3681,9 +3681,9 @@ def _slice_shape_rule(operand, *, start_indices, limit_indices, strides):\nmsg = \"slice strides must be positive, got {}\"\nraise TypeError(msg.format(strides))\n- result_...
Python
Apache License 2.0
google/jax
Support polynomial division for mask Add support for multivariate polynomial division on polymorphic sizes without remainder, allowing `mask` of - `jnp.reshape` with -1 size and - `lax.slice` for polymorphic stride for sizes `poly * stride`, i. e. `(n^2+2n)//n = n+2` Also clean up `Poly` class, improve error messages.
260,411
03.11.2020 09:31:10
-7,200
4ee7a296c3dafe74578a779950e62086b0b52b63
[jax2tf] Expanded the SavedModel library to allow the compilation of models. This is important for use with TensorFlow serving. Also removed the servo_main.py (only applies to OSS TF Serving, which does not yet support XLA)
[ { "change_type": "MODIFY", "old_path": "jax/experimental/jax2tf/examples/README.md", "new_path": "jax/experimental/jax2tf/examples/README.md", "diff": "+Getting started with jax2tf\n+===========================\nThis directory contains a number of examples of using the jax2tf converter to:\n* save S...
Python
Apache License 2.0
google/jax
[jax2tf] Expanded the SavedModel library to allow the compilation of models. This is important for use with TensorFlow serving. Also removed the servo_main.py (only applies to OSS TF Serving, which does not yet support XLA) Co-authored-by: Benjamin Chetioui <3920784+bchetioui@users.noreply.github.com>
260,287
03.11.2020 12:11:03
0
b85e605ff1a9c5e6fed3d3dea6dd0c94074a66c1
Add support for collectives in xmap
[ { "change_type": "MODIFY", "old_path": "jax/core.py", "new_path": "jax/core.py", "diff": "@@ -128,6 +128,9 @@ class ClosedJaxpr:\ndef literals(self):\nreturn self.consts # backwards compatible alias\n+ def map_jaxpr(self, f):\n+ return ClosedJaxpr(f(self.jaxpr), self.consts)\n+\ndef __str__(self): r...
Python
Apache License 2.0
google/jax
Add support for collectives in xmap
260,411
04.11.2020 14:43:23
-7,200
ee707de44e85a6e652ec13e3ff1bdcda42656627
[jax2tf] Small fixes to the documentation
[ { "change_type": "MODIFY", "old_path": "jax/experimental/jax2tf/README.md", "new_path": "jax/experimental/jax2tf/README.md", "diff": "@@ -421,21 +421,21 @@ There are several drawbacks of using TFXLA ops:\nWe use the following such TFXLA:\n- * ``XlaPad`` (wraps XLA Pad operator). We use this instead ...
Python
Apache License 2.0
google/jax
[jax2tf] Small fixes to the documentation
260,680
05.11.2020 18:13:44
-7,200
3bc34e4f5a106ceef24163a025b3a0733a77806c
Update scatter.py Looks like the documentation was not up to date
[ { "change_type": "MODIFY", "old_path": "jax/_src/ops/scatter.py", "new_path": "jax/_src/ops/scatter.py", "diff": "@@ -207,8 +207,8 @@ def index_min(x, idx, y, indices_are_sorted=False, unique_indices=False):\n:data:`jax.ops.index` object.\ny: the array of updates. `y` must be broadcastable to the sh...
Python
Apache License 2.0
google/jax
Update scatter.py Looks like the documentation was not up to date
260,299
06.11.2020 11:37:15
0
931b2ddbcb07959ce9d85731b59d61578cdd587c
Improve docs for custom_jvp and custom_vjp Correct the custom_jvp docstring to include the defjvps instance method. Add the defjvp/defvjp instance methods to the sphinx doc.
[ { "change_type": "MODIFY", "old_path": "docs/jax.rst", "new_path": "docs/jax.rst", "diff": "@@ -18,7 +18,6 @@ Subpackages\njax.ops\njax.random\njax.tree_util\n- jax.flatten_util\njax.dlpack\njax.profiler\n@@ -91,8 +90,15 @@ Parallelization (:code:`pmap`)\n.. autofunction:: jvp\n.. autofunction:: lin...
Python
Apache License 2.0
google/jax
Improve docs for custom_jvp and custom_vjp Correct the custom_jvp docstring to include the defjvps instance method. Add the defjvp/defvjp instance methods to the sphinx doc.
260,299
06.11.2020 13:43:18
0
62683959b15eaaedc8b641a7d88b45d8dc348e4b
[DOCS] Add JAX favicon to sphinx
[ { "change_type": "ADD", "old_path": "docs/_static/favicon.png", "new_path": "docs/_static/favicon.png", "diff": "Binary files /dev/null and b/docs/_static/favicon.png differ\n" }, { "change_type": "MODIFY", "old_path": "docs/conf.py", "new_path": "docs/conf.py", "diff": "@@ -210,...
Python
Apache License 2.0
google/jax
[DOCS] Add JAX favicon to sphinx
260,287
08.11.2020 18:45:24
-3,600
5c6a588528c5d5aad47878917602dca7587b335b
Pass around the flattened args and outputs in invertible_ad The previous version worked fine when the argument list was already flat, but would fail when it was a more complicated pytree. This should fix it.
[ { "change_type": "MODIFY", "old_path": "jax/interpreters/invertible_ad.py", "new_path": "jax/interpreters/invertible_ad.py", "diff": "@@ -66,14 +66,14 @@ def invertible(fun):\n\"gradients computed correctly (their uses inside this function will be ignored)!\")\n# TODO: This requires the body to be j...
Python
Apache License 2.0
google/jax
Pass around the flattened args and outputs in invertible_ad The previous version worked fine when the argument list was already flat, but would fail when it was a more complicated pytree. This should fix it.
260,299
08.11.2020 22:22:36
0
a0a2c973e6a8a1c60de336f1b6b17134f73658e4
Fixes to jax.api docs
[ { "change_type": "MODIFY", "old_path": "docs/jax.rst", "new_path": "docs/jax.rst", "diff": "@@ -90,6 +90,7 @@ Parallelization (:code:`pmap`)\n.. autofunction:: hessian\n.. autofunction:: jvp\n.. autofunction:: linearize\n+.. autofunction:: linear_transpose\n.. autofunction:: vjp\n.. autofunction:: c...
Python
Apache License 2.0
google/jax
Fixes to jax.api docs
260,335
08.11.2020 14:48:14
28,800
0b76854be07973ed14b6192016265f0f23499abe
fix skip logic for test that requires portpicker
[ { "change_type": "MODIFY", "old_path": "tests/profiler_test.py", "new_path": "tests/profiler_test.py", "diff": "@@ -87,7 +87,7 @@ class ProfilerTest(unittest.TestCase):\nself.assertEqual(1, len(glob.glob(path)),\n'Expected one path match: ' + path)\n- @unittest.skipIf(not (portpicker or profiler_cli...
Python
Apache License 2.0
google/jax
fix skip logic for test that requires portpicker
260,519
07.11.2020 18:32:28
-19,080
a3c729b97a445911d41a4a2b4375e7888c380a73
Fix + additional fixes
[ { "change_type": "MODIFY", "old_path": "jax/_src/scipy/signal.py", "new_path": "jax/_src/scipy/signal.py", "diff": "@@ -68,8 +68,6 @@ def convolve(in1, in2, mode='full', method='auto',\nwarnings.warn(\"convolve() ignores method argument\")\nif jnp.issubdtype(in1.dtype, jnp.complexfloating) or jnp.is...
Python
Apache License 2.0
google/jax
Fix #4775 + additional fixes
260,411
06.11.2020 16:50:50
-7,200
f5294e6f5768984043d011f00ce4e6a505f1b90c
[jax2tf] Add the convert_and_save_model to the jax2tf API. Expanded the documentation, including with a discussion for various options for creating SavedModel from Flax or Haiku models.
[ { "change_type": "MODIFY", "old_path": "jax/experimental/jax2tf/README.md", "new_path": "jax/experimental/jax2tf/README.md", "diff": "@@ -16,7 +16,7 @@ Flax models and their use with TensorFlow Hub and Keras, are described in the\nSee also some internal ongoing design discussions at `go/jax2tf-doc`....
Python
Apache License 2.0
google/jax
[jax2tf] Add the convert_and_save_model to the jax2tf API. Expanded the documentation, including with a discussion for various options for creating SavedModel from Flax or Haiku models.
260,287
05.11.2020 11:54:05
0
f637263059b97baed5f38070e85c4aa917553324
Add some type annotations in parallel_callable
[ { "change_type": "MODIFY", "old_path": "jax/interpreters/pxla.py", "new_path": "jax/interpreters/pxla.py", "diff": "@@ -511,8 +511,16 @@ def xla_pmap_impl(fun: lu.WrappedFun, *args, backend, axis_name, axis_size,\nreturn compiled_fun(*args)\n@lu.cache\n-def parallel_callable(fun, backend, axis_name,...
Python
Apache License 2.0
google/jax
Add some type annotations in parallel_callable
260,299
10.11.2020 11:10:06
0
b8920a11c36b2b263c7c80bee8b48d4688b327d0
Rm old attribute annotations from TraceStack
[ { "change_type": "MODIFY", "old_path": "jax/core.py", "new_path": "jax/core.py", "diff": "@@ -618,9 +618,6 @@ class MainTrace:\nclass TraceStack:\n# See comments in https://github.com/google/jax/pull/3370\n- upward: List[MainTrace]\n- downward: List[MainTrace]\n-\ndef __init__(self):\neval_trace = M...
Python
Apache License 2.0
google/jax
Rm old attribute annotations from TraceStack
260,349
10.11.2020 15:14:58
-3,600
06ab965ad17ea42b290649a896d98ee07fc6bcec
Add description how to view pytree definition
[ { "change_type": "MODIFY", "old_path": "docs/pytrees.rst", "new_path": "docs/pytrees.rst", "diff": "@@ -78,6 +78,12 @@ This happens to be the default ``in_axes`` value for ``vmap``!\nThe same logic applies to other optional parameters that refer to specific input\nor output values of a transformed f...
Python
Apache License 2.0
google/jax
Add description how to view pytree definition
260,335
13.11.2020 07:23:02
28,800
8b006f6a906c2c6c1abc95aafaf445649e963268
add correct annotations to core.TraceStack
[ { "change_type": "MODIFY", "old_path": "jax/core.py", "new_path": "jax/core.py", "diff": "@@ -618,6 +618,9 @@ class MainTrace:\nclass TraceStack:\n# See comments in https://github.com/google/jax/pull/3370\n+ stack: List[MainTrace]\n+ dynamic: MainTrace\n+\ndef __init__(self):\neval_trace = MainTrace...
Python
Apache License 2.0
google/jax
add correct annotations to core.TraceStack
260,424
13.11.2020 17:07:15
-3,600
91777c331c797b22743ee95e6bc4c46a32aa5e0c
Fix select_and_gather_add_transpose rule. Fixes a 'jax.ad_util.Zero' is not a valid JAX type error.
[ { "change_type": "MODIFY", "old_path": "jax/_src/lax/lax.py", "new_path": "jax/_src/lax/lax.py", "diff": "@@ -5387,6 +5387,8 @@ def _select_and_gather_add_transpose(\nmsg = (\"VJP not implemented for select_and_gather (MaxPool) with window \"\n\"dilation, got window_dilation={}.\")\nraise NotImpleme...
Python
Apache License 2.0
google/jax
Fix select_and_gather_add_transpose rule. Fixes a 'jax.ad_util.Zero' is not a valid JAX type error.
260,335
13.11.2020 14:22:17
28,800
df081393ebded602c9007361f5d988945ea2e95d
update concatenate shape rule for sound mask test
[ { "change_type": "MODIFY", "old_path": "jax/_src/lax/lax.py", "new_path": "jax/_src/lax/lax.py", "diff": "@@ -3224,11 +3224,12 @@ def _concatenate_shape_rule(*operands, **kwargs):\nif len({operand.ndim for operand in operands}) != 1:\nmsg = \"Cannot concatenate arrays with different ranks, got {}.\"...
Python
Apache License 2.0
google/jax
update concatenate shape rule for sound mask test
260,335
13.11.2020 14:55:04
28,800
799325bbba352842a56ca225f02b6eb970f45712
revise lax broadcasting to work with sound masking
[ { "change_type": "MODIFY", "old_path": "jax/_src/lax/lax.py", "new_path": "jax/_src/lax/lax.py", "diff": "@@ -63,13 +63,21 @@ DType = Any\nShape = Sequence[int]\ndef _try_broadcast_shapes(shapes):\n- for sizes in zip(*shapes):\n+ assert shapes\n+ if len(shapes) == 1: return shapes[0]\n+ rank, *other...
Python
Apache License 2.0
google/jax
revise lax broadcasting to work with sound masking
260,335
13.11.2020 15:02:55
28,800
8bd74a245a878dbd1aff4d5de491fcdd3f889dd3
adapt broadcast_in_dim shape rule mask soundness
[ { "change_type": "MODIFY", "old_path": "jax/_src/lax/lax.py", "new_path": "jax/_src/lax/lax.py", "diff": "@@ -3158,8 +3158,8 @@ def _broadcast_in_dim_shape_rule(operand, *, shape, broadcast_dimensions):\nmsg = ('broadcast_in_dim broadcast_dimensions must be a subset of output '\n'dimensions, got {} ...
Python
Apache License 2.0
google/jax
adapt broadcast_in_dim shape rule mask soundness
260,335
13.11.2020 15:21:59
28,800
9a0207ab30d3b08476edd032f945984e2a3b8381
adapt masking rev tests for soundness
[ { "change_type": "MODIFY", "old_path": "jax/_src/lax/lax.py", "new_path": "jax/_src/lax/lax.py", "diff": "@@ -746,11 +746,6 @@ def slice(operand: Array, start_indices: Sequence[int],\n<https://www.tensorflow.org/xla/operation_semantics#slice>`_\noperator.\n\"\"\"\n- if (np.all(np.equal(start_indices...
Python
Apache License 2.0
google/jax
adapt masking rev tests for soundness
260,335
16.11.2020 19:01:00
28,800
c2a98c18206c0308c85869101a6a3fc2151a9028
update jax repository citation Add all full-time JAX team members.
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -469,7 +469,7 @@ To cite this repository:\n```\n@software{jax2018github,\n- author = {James Bradbury and Roy Frostig and Peter Hawkins and Matthew James Johnson and Chris Leary and Dougal Maclaurin and Skye Wand...
Python
Apache License 2.0
google/jax
update jax repository citation Add all full-time JAX team members.
260,411
17.11.2020 06:08:09
28,800
3bf3e352bc45cd6d61bc322501502595b42b3da5
Disable the remaining failing tests, remove jax2tf documentation
[ { "change_type": "MODIFY", "old_path": "jax/experimental/jax2tf/examples/README.md", "new_path": "jax/experimental/jax2tf/examples/README.md", "diff": "@@ -136,12 +136,7 @@ The default saving location is `/tmp/jax2tf/saved_models/1`.\nBy default, this example will convert the inference function for ...
Python
Apache License 2.0
google/jax
Disable the remaining failing tests, remove jax2tf documentation
260,411
17.11.2020 06:57:47
28,800
64022922bd18eacfcd9befd2e1810a80512f85ef
Fix float indices in lax.slice
[ { "change_type": "MODIFY", "old_path": "jax/_src/numpy/lax_numpy.py", "new_path": "jax/_src/numpy/lax_numpy.py", "diff": "@@ -1650,6 +1650,7 @@ def _split(op, ary, indices_or_sections, axis=0):\n+ ((r + 1) * (part_size + 1) - 1)])\nelse:\nraise ValueError(\"array split does not result in an equal di...
Python
Apache License 2.0
google/jax
Fix float indices in lax.slice
260,510
10.11.2020 15:57:19
28,800
590e629f10c0c5c1fe88930a19289c766d0517af
Add support for XLA variadic reduce
[ { "change_type": "MODIFY", "old_path": "jax/_src/lax/lax.py", "new_path": "jax/_src/lax/lax.py", "diff": "@@ -28,9 +28,11 @@ import jax\nfrom jax import core\nfrom jax import ad_util\nfrom jax import api\n+from jax import api_util\nfrom jax import linear_util as lu\nfrom jax import dtypes\nfrom jax ...
Python
Apache License 2.0
google/jax
Add support for XLA variadic reduce
260,684
18.11.2020 16:18:43
28,800
f54e531cc40c4314156bfa02cb10f2635dbc9010
Add vector-valued gradient example.
[ { "change_type": "MODIFY", "old_path": "docs/notebooks/quickstart.ipynb", "new_path": "docs/notebooks/quickstart.ipynb", "diff": "\"from jax import grad, jit, vmap\\n\",\n\"from jax import random\"\n],\n- \"execution_count\": 0,\n+ \"execution_count\": 5,\n\"outputs\": []\n},\n{\n\"execution_count\"...
Python
Apache License 2.0
google/jax
Add vector-valued gradient example.
260,287
19.11.2020 11:36:35
0
b55b44d39414b3650aff31ce2f61e35da6bfb9bd
Remove devices from xla.AxisEnv In most cases they were not even filled in, and they are not used anywhere.
[ { "change_type": "MODIFY", "old_path": "jax/_src/lax/lax.py", "new_path": "jax/_src/lax/lax.py", "diff": "@@ -4809,7 +4809,7 @@ def _reduction_computation(c, jaxpr, consts, init_values, singleton=True):\nif singleton:\ninit_values = [init_values]\nshapes = safe_map(c.get_shape, init_values + init_va...
Python
Apache License 2.0
google/jax
Remove devices from xla.AxisEnv In most cases they were not even filled in, and they are not used anywhere.
260,287
20.11.2020 13:51:17
0
94fcd7f2ab3af8eeb881bb2b3d446a9fbc1a8ae1
Use taggedtuple instead of namedtuple when defining ShardingSpecs Because namedtuples don't take the class into account when comparing for equality!
[ { "change_type": "MODIFY", "old_path": "jax/interpreters/pxla.py", "new_path": "jax/interpreters/pxla.py", "diff": "@@ -34,7 +34,7 @@ import itertools as it\nimport operator as op\nimport threading\nfrom typing import (Any, Callable, Dict, List, Optional, Sequence, Set, Tuple,\n- Type, Union, Iterab...
Python
Apache License 2.0
google/jax
Use taggedtuple instead of namedtuple when defining ShardingSpecs Because namedtuples don't take the class into account when comparing for equality!
260,677
24.11.2020 16:57:35
0
8d1daba901468093ce41850501c4805ba7a17f5f
Add complex types to gradient of slogdet
[ { "change_type": "MODIFY", "old_path": "jax/_src/numpy/linalg.py", "new_path": "jax/_src/numpy/linalg.py", "diff": "@@ -139,10 +139,13 @@ def slogdet(a):\ndef _slogdet_jvp(primals, tangents):\nx, = primals\ng, = tangents\n- if jnp.issubdtype(jnp._dtype(x), jnp.complexfloating):\n- raise NotImplement...
Python
Apache License 2.0
google/jax
Add complex types to gradient of slogdet
260,287
19.11.2020 18:22:35
0
c5433b0e4ec806fbad11a728d6b12502240ec3f1
Make xmap into a primitive Add a compilation cache. Also make sure that it raises a clear error when you try to use it with other transforms. Also, add a bunch of checks to make sure that the arguments are valid.
[ { "change_type": "MODIFY", "old_path": "jax/experimental/general_map.py", "new_path": "jax/experimental/general_map.py", "diff": "@@ -16,6 +16,7 @@ import enum\nimport threading\nimport contextlib\nimport numpy as np\n+import itertools as it\nfrom collections import namedtuple, OrderedDict\nfrom typ...
Python
Apache License 2.0
google/jax
Make xmap into a primitive Add a compilation cache. Also make sure that it raises a clear error when you try to use it with other transforms. Also, add a bunch of checks to make sure that the arguments are valid.
260,287
20.11.2020 11:43:11
0
5ee2de167503b2e22e3531ed3d5d76e2f32071e0
Forbid pmap/soft_pmap/sharded_jit inside xmap
[ { "change_type": "MODIFY", "old_path": "jax/core.py", "new_path": "jax/core.py", "diff": "@@ -312,6 +312,13 @@ def extract_call_jaxpr(\nreturn (params[\"call_jaxpr\"], new_params)\n+def traverse_jaxpr_params(f, params):\n+ \"\"\"Applies f to each jaxpr parameter and returns a tuple of returned value...
Python
Apache License 2.0
google/jax
Forbid pmap/soft_pmap/sharded_jit inside xmap
260,335
24.11.2020 10:45:03
28,800
50cb604f2e9797c36a14d93a08068581427e201d
fix doc test failure
[ { "change_type": "MODIFY", "old_path": "docs/jaxpr.rst", "new_path": "docs/jaxpr.rst", "diff": "@@ -448,7 +448,7 @@ captured using the ``xla_pmap`` primitive. Consider this example\nshape=(1,) ] 1.0\ne = add c d\nf = psum[ axis_index_groups=None\n- axis_name=rows ] b\n+ axis_name=('rows',) ] b\ng = ...
Python
Apache License 2.0
google/jax
fix doc test failure
260,335
24.11.2020 15:07:22
28,800
809731859bf0a5ed6d10562bd3e91b7615ce7b0e
cleanup: unify pmin/pmax implementations with psum
[ { "change_type": "MODIFY", "old_path": "jax/_src/lax/parallel.py", "new_path": "jax/_src/lax/parallel.py", "diff": "@@ -139,8 +139,10 @@ def pmax(x, axis_name, *, axis_index_groups=None):\nif not isinstance(axis_name, (tuple, list)):\naxis_name = (axis_name,)\n_validate_axis_index_groups(axis_index_...
Python
Apache License 2.0
google/jax
cleanup: unify pmin/pmax implementations with psum
260,335
25.11.2020 10:16:40
28,800
3053f4bc1ee51ece49f091ec26fb02a95fb6bd79
add link to XLA bug about complex dtype allreduce
[ { "change_type": "MODIFY", "old_path": "jax/_src/lax/parallel.py", "new_path": "jax/_src/lax/parallel.py", "diff": "@@ -401,7 +401,8 @@ def _allreduce_translation_rule(prim, c, *args, axis_name, axis_index_groups,\nis_complex = dtypes.issubdtype(dtype, np.complexfloating)\nn = len(dtype_args)\nif is...
Python
Apache License 2.0
google/jax
add link to XLA bug about complex dtype allreduce
260,335
25.11.2020 10:25:22
28,800
7266fcbdc5846001ea692b9cabc5f1a6cf97ec40
when resetting stores in nan debugging, check None
[ { "change_type": "MODIFY", "old_path": "jax/interpreters/xla.py", "new_path": "jax/interpreters/xla.py", "diff": "@@ -582,7 +582,7 @@ def _xla_call_impl(fun: lu.WrappedFun, *args, device, backend, name, donated_inv\n# by any transformation_with_aux's applied to fun. Since this is\n# intentional here...
Python
Apache License 2.0
google/jax
when resetting stores in nan debugging, check None
260,335
25.11.2020 14:17:27
28,800
8d884e24802347b3f45ad6c144d7a7c0114cf1e1
silence weird type error
[ { "change_type": "MODIFY", "old_path": "jax/_src/lax/parallel.py", "new_path": "jax/_src/lax/parallel.py", "diff": "@@ -450,7 +450,7 @@ psum_p.multiple_results = True\npsum_p.def_abstract_eval(lambda *args, **params: map(raise_to_shaped, args))\npxla.soft_pmap_rules[psum_p] = \\\npartial(_allreduce_...
Python
Apache License 2.0
google/jax
silence weird type error
260,287
27.11.2020 16:32:03
0
ed86ae4950259a8955d68856d601f08f20ea17db
Add proper support for out_axes in xmap
[ { "change_type": "MODIFY", "old_path": "jax/experimental/general_map.py", "new_path": "jax/experimental/general_map.py", "diff": "@@ -36,7 +36,7 @@ from ..interpreters import pxla\nfrom ..interpreters import xla\nfrom ..lib import xla_bridge as xb\nfrom ..lib import xla_client as xc\n-from ..util im...
Python
Apache License 2.0
google/jax
Add proper support for out_axes in xmap
260,335
25.11.2020 15:23:00
28,800
58e441bed78a0661f081e93ccfe9cf4370c5f5d5
add experimental pdot primitive, basic tests
[ { "change_type": "MODIFY", "old_path": "jax/_src/lax/lax.py", "new_path": "jax/_src/lax/lax.py", "diff": "@@ -3032,14 +3032,23 @@ def _dot_general_transpose_rhs(g, x, *, dimension_numbers, precision):\ndef _dot_general_batch_rule(batched_args, batch_dims, *, dimension_numbers,\nprecision):\n+ lhs, r...
Python
Apache License 2.0
google/jax
add experimental pdot primitive, basic tests
260,335
27.11.2020 11:28:49
28,800
29648fa50b364c7814c967812e13de4545f850bd
remove DynamicJaxprTrace.process_xmap
[ { "change_type": "MODIFY", "old_path": "jax/experimental/general_map.py", "new_path": "jax/experimental/general_map.py", "diff": "@@ -801,27 +801,3 @@ def subst_eqn_axis_names(eqn, axis_subst: Dict[AxisName, Tuple[AxisName]]):\naxis_names = (axis_names,)\nnew_axis_names = sum((axis_subst.get(name, (...
Python
Apache License 2.0
google/jax
remove DynamicJaxprTrace.process_xmap
260,424
30.11.2020 14:23:52
-3,600
d7743140a350bec479eeeea89d18dc403cb43e4a
Add named_call autofunction description to docs
[ { "change_type": "MODIFY", "old_path": "docs/jax.rst", "new_path": "docs/jax.rst", "diff": "@@ -82,6 +82,7 @@ Parallelization (:code:`pmap`)\n.. autofunction:: make_jaxpr\n.. autofunction:: eval_shape\n.. autofunction:: device_put\n+.. autofunction:: named_call\n.. autofunction:: grad\n.. autofuncti...
Python
Apache License 2.0
google/jax
Add named_call autofunction description to docs
260,287
26.11.2020 17:11:01
0
34965839abbffcd747faf7fb9873c2e054099503
Add an experimental xmap lowering via the SPMD partitioner As suggested by The SPMD partitioner might allow us to avoid writing partitioning formulas on the JAX level and can result in better performance by giving the compiler more flexibility.
[ { "change_type": "MODIFY", "old_path": "jax/experimental/general_map.py", "new_path": "jax/experimental/general_map.py", "diff": "@@ -31,12 +31,11 @@ from ..api import _mapped_axis_size, _check_callable, _check_arg\nfrom ..tree_util import tree_flatten, tree_unflatten, tree_leaves\nfrom ..api_util i...
Python
Apache License 2.0
google/jax
Add an experimental xmap lowering via the SPMD partitioner As suggested by @jekbradbury. The SPMD partitioner might allow us to avoid writing partitioning formulas on the JAX level and can result in better performance by giving the compiler more flexibility.
260,335
30.11.2020 08:55:55
28,800
ac0f07139eda6679cf2c829736a933dce7f780eb
add pdot_p to unsupported jax2tf primitives
[ { "change_type": "MODIFY", "old_path": "jax/experimental/jax2tf/jax2tf.py", "new_path": "jax/experimental/jax2tf/jax2tf.py", "diff": "@@ -837,7 +837,7 @@ tf_not_yet_impl = [\nlax.after_all_p, lax_parallel.all_to_all_p, lax.create_token_p,\nlax.infeed_p, lax.outfeed_p, lax_parallel.pmax_p,\nlax_paral...
Python
Apache License 2.0
google/jax
add pdot_p to unsupported jax2tf primitives
260,519
13.11.2020 13:17:16
-19,080
2c822203dfc89f81f7632572e7385d58f3939104
More stable implementation of np.hypot
[ { "change_type": "MODIFY", "old_path": "jax/_src/numpy/lax_numpy.py", "new_path": "jax/_src/numpy/lax_numpy.py", "diff": "@@ -986,7 +986,10 @@ def heaviside(x1, x2):\ndef hypot(x1, x2):\n_check_arraylike(\"hypot\", x1, x2)\nx1, x2 = _promote_dtypes_inexact(x1, x2)\n- return lax.sqrt(x1*x1 + x2*x2)\n...
Python
Apache License 2.0
google/jax
More stable implementation of np.hypot
260,335
02.12.2020 00:36:39
28,800
8cd855507179e21bfdc0e518025bf8957fc8e342
improve sinc jvp at zero, fixes
[ { "change_type": "MODIFY", "old_path": "jax/_src/numpy/lax_numpy.py", "new_path": "jax/_src/numpy/lax_numpy.py", "diff": "@@ -1005,10 +1005,24 @@ def sinc(x):\n_check_arraylike(\"sinc\", x)\nx, = _promote_dtypes_inexact(x)\neq_zero = lax.eq(x, lax._const(x, 0))\n- safe_x = where(eq_zero, lax._const(...
Python
Apache License 2.0
google/jax
improve sinc jvp at zero, fixes #5054
260,287
27.11.2020 16:44:08
0
d3136b44c85705eec6ed4d13e8c1bfd283ac4009
Remove fake xmap resources, remove gmap xmap can now handle real devices, so there's no point in maintaining the simulated codepaths. Also, remove single-dimensional gmap as it will have to be superseeded by a more xmap-friendly alternative.
[ { "change_type": "MODIFY", "old_path": "jax/BUILD", "new_path": "jax/BUILD", "diff": "@@ -86,8 +86,8 @@ pytype_library(\n)\npytype_library(\n- name = \"general_map\",\n- srcs = [\"experimental/general_map.py\"],\n+ name = \"maps\",\n+ srcs = [\"experimental/maps.py\"],\nsrcs_version = \"PY3\",\ndeps...
Python
Apache License 2.0
google/jax
Remove fake xmap resources, remove gmap xmap can now handle real devices, so there's no point in maintaining the simulated codepaths. Also, remove single-dimensional gmap as it will have to be superseeded by a more xmap-friendly alternative.
260,287
02.12.2020 14:13:05
0
ca8028950ecfd3118f7801e7e85a111fba4e4fc0
Fix pmap compilation cache regressions from AD didn't use `HashableFunction` enough, tripping up the compilation cache. I've also used the occasion to make function hashing a little safer by including the Python bytecode of the wrapped function as part of the key.
[ { "change_type": "MODIFY", "old_path": "jax/api.py", "new_path": "jax/api.py", "diff": "@@ -1516,11 +1516,11 @@ def pmap(fun: Callable[..., T],\n# out_axes == 0 path working as we look for a better solution.\nout_axes_thunk = HashableFunction(\nlambda: (0,) * out_tree().num_leaves,\n- key=out_axes)\...
Python
Apache License 2.0
google/jax
Fix pmap compilation cache regressions from #4904. AD didn't use `HashableFunction` enough, tripping up the compilation cache. I've also used the occasion to make function hashing a little safer by including the Python bytecode of the wrapped function as part of the key.
260,335
02.12.2020 08:55:14
28,800
e6c01aeacd70064bd3e6a160892ee51a713c1cda
fix broadcasting bug in sinc jvp rule
[ { "change_type": "MODIFY", "old_path": "jax/_src/numpy/lax_numpy.py", "new_path": "jax/_src/numpy/lax_numpy.py", "diff": "@@ -1015,9 +1015,9 @@ def _sinc_maclaurin(k, x):\n# compute the kth derivative of x -> sin(x)/x evaluated at zero (since we\n# compute the monomial term in the jvp rule)\nif k % ...
Python
Apache License 2.0
google/jax
fix broadcasting bug in sinc jvp rule
260,449
04.12.2020 11:23:32
-19,080
42780cf2776630bc3c03f4a63143419fd5a27364
added prepend and append to diff
[ { "change_type": "MODIFY", "old_path": "jax/_src/numpy/lax_numpy.py", "new_path": "jax/_src/numpy/lax_numpy.py", "diff": "@@ -1115,7 +1115,7 @@ def angle(z):\n@_wraps(np.diff)\n-def diff(a, n=1, axis=-1):\n+def diff(a, n=1, axis=-1, prepend=None, append=None):\n_check_arraylike(\"diff\", a)\nif n ==...
Python
Apache License 2.0
google/jax
added prepend and append to diff
260,335
04.12.2020 12:53:36
28,800
dc610e45167b928e372d1cd56ee76c9144f57856
add jax.device_put_replicated Also move tests for device_put_sharded into pmap_test.py, since that file tests with multiple devices even in our OSS CI. Add both device_put_replicated and device_put_sharded to jax/__init__.py.
[ { "change_type": "MODIFY", "old_path": "jax/__init__.py", "new_path": "jax/__init__.py", "diff": "@@ -36,6 +36,8 @@ from .api import (\ndevice_count,\ndevice_get,\ndevice_put,\n+ device_put_sharded,\n+ device_put_replicated,\ndevices,\ndisable_jit,\neval_shape,\n" }, { "change_type": "MODIFY...
Python
Apache License 2.0
google/jax
add jax.device_put_replicated Also move tests for device_put_sharded into pmap_test.py, since that file tests with multiple devices even in our OSS CI. Add both device_put_replicated and device_put_sharded to jax/__init__.py.
260,335
04.12.2020 13:34:07
28,800
5f4f08feef36bcd390c4e86b01edb6e3f491a9a2
update jax2tf convert_element_type, remove test
[ { "change_type": "MODIFY", "old_path": "jax/experimental/jax2tf/jax2tf.py", "new_path": "jax/experimental/jax2tf/jax2tf.py", "diff": "@@ -1094,8 +1094,7 @@ tf_impl[lax.lt_p] = tf.math.less\ntf_impl[lax_linalg.cholesky_p] = tf.linalg.cholesky\n-def _convert_element_type(operand, new_dtype, old_dtype)...
Python
Apache License 2.0
google/jax
update jax2tf convert_element_type, remove test
260,335
04.12.2020 16:42:49
28,800
6992ae182c5c8bf78494fb692f40651613acbc73
switch assertions per reviewer comment
[ { "change_type": "MODIFY", "old_path": "tests/pmap_test.py", "new_path": "tests/pmap_test.py", "diff": "@@ -2051,7 +2051,7 @@ class ShardedDeviceArrayTest(jtu.JaxTestCase):\nself.assertIsInstance(y, pxla.ShardedDeviceArray)\nself.assertEqual(len(y.device_buffers), len(devices))\nself.assertTrue(all(...
Python
Apache License 2.0
google/jax
switch assertions per reviewer comment
260,335
04.12.2020 21:25:51
28,800
8b64c3c679566990e46be5e8155f9a7dc2e9fe77
fix inherited repr method for ShardedDeviceArray fixes
[ { "change_type": "MODIFY", "old_path": "jax/interpreters/xla.py", "new_path": "jax/interpreters/xla.py", "diff": "@@ -1167,8 +1167,7 @@ for device_array in [_DeviceArray, _CppDeviceArray]:\ndef __repr__(self):\nline_width = np.get_printoptions()[\"linewidth\"]\n- # TODO(jblespia): Should we put back...
Python
Apache License 2.0
google/jax
fix inherited repr method for ShardedDeviceArray fixes #5102
260,411
06.12.2020 15:39:30
-7,200
f51db5cd756bf90720c72432b65f596ec106b6d1
Update lax_test.py
[ { "change_type": "MODIFY", "old_path": "tests/lax_test.py", "new_path": "tests/lax_test.py", "diff": "@@ -2127,7 +2127,7 @@ class LaxTest(jtu.JaxTestCase):\ndef test_window_strides_dimension_shape_rule(self):\n# https://github.com/google/jax/issues/5087\nmsg = (\"conv_general_dilated window and wind...
Python
Apache License 2.0
google/jax
Update lax_test.py
260,411
06.12.2020 15:41:02
-7,200
2cd21885e2eb2065ae62798c6259d5e2e963eefc
Update docs/profiling.md
[ { "change_type": "MODIFY", "old_path": "docs/profiling.md", "new_path": "docs/profiling.md", "diff": "@@ -12,6 +12,7 @@ GPU and TPU. The end result looks something like this:\n### Installation\n+Install specific nightly versions of TensorBoard, TensorBoard profiler, TensorFlow, as well as the What-I...
Python
Apache License 2.0
google/jax
Update docs/profiling.md Co-authored-by: 8bitmp3 <19637339+8bitmp3@users.noreply.github.com>
260,308
01.12.2020 02:06:15
0
85fbc6d790dd44af4e3182620ee10cf2813da9dd
Add axis_index_groups argument to all_to_all.
[ { "change_type": "MODIFY", "old_path": "jax/_src/lax/parallel.py", "new_path": "jax/_src/lax/parallel.py", "diff": "@@ -233,14 +233,16 @@ def pshuffle(x, axis_name, perm):\nreturn ppermute(x, axis_name, list(zip(perm, range(len(perm)))))\n-def pswapaxes(x, axis_name, axis):\n+def pswapaxes(x, axis_n...
Python
Apache License 2.0
google/jax
Add axis_index_groups argument to all_to_all.
260,684
07.12.2020 10:06:08
28,800
df411ff49b09bcafedc04bd6236e119dc86183e4
Update autodiff_cookbook.ipynb
[ { "change_type": "MODIFY", "old_path": "docs/notebooks/autodiff_cookbook.ipynb", "new_path": "docs/notebooks/autodiff_cookbook.ipynb", "diff": "\"name\": \"python\",\n\"nbconvert_exporter\": \"python\",\n\"pygments_lexer\": \"ipython3\",\n- \"version\": \"3.7.4-final\"\n+ \"version\": \"3.7.3\"\n},\...
Python
Apache License 2.0
google/jax
Update autodiff_cookbook.ipynb
260,287
09.12.2020 12:38:39
0
f3bfdf8968b7f591b00bd8fde8f03bb2d371d082
Expose `is_leaf` predicate for `pytree.flatten` and add tests for it. The change has already been landed in the TF code, where the C++ pytree components live. This is why I needed to bump the commit.
[ { "change_type": "MODIFY", "old_path": "WORKSPACE", "new_path": "WORKSPACE", "diff": "@@ -37,10 +37,10 @@ http_archive(\n# and update the sha256 with the result.\nhttp_archive(\nname = \"org_tensorflow\",\n- sha256 = \"8bee4fec72ed5eebd1ab022514741ae9033f8b7da99d25a0958f6f7b9fa560cf\",\n- strip_pref...
Python
Apache License 2.0
google/jax
Expose `is_leaf` predicate for `pytree.flatten` and add tests for it. The change has already been landed in the TF code, where the C++ pytree components live. This is why I needed to bump the commit.
260,287
30.11.2020 14:32:28
0
8fcacd645cf7c25888323eef8c8c883e02019dee
Support mapping a single logical axis to multiple mesh axes in xmap
[ { "change_type": "MODIFY", "old_path": "jax/experimental/maps.py", "new_path": "jax/experimental/maps.py", "diff": "@@ -224,6 +224,11 @@ def xmap(fun: Callable,\nf\"in_axes, but the following are missing: \"\nf\"{out_axes_names - in_axes_names}\")\n+ for axis, resources in frozen_axis_resources.item...
Python
Apache License 2.0
google/jax
Support mapping a single logical axis to multiple mesh axes in xmap
260,634
13.12.2020 17:03:07
-3,600
269676ee4e6753b63da4846ef63100e9140a0af4
Typo ? I removed "-e" option from "pip install -e dist/*.whl # installs jaxlib (includes XLA)" line 58. It is now coherent with lines 69-70. When I tried the command with the "-e" it threw an error, without "-e" it worked fine.
[ { "change_type": "MODIFY", "old_path": "docs/developer.rst", "new_path": "docs/developer.rst", "diff": "@@ -55,7 +55,7 @@ You can install the necessary Python dependencies using ``pip``::\nTo build ``jaxlib`` with CUDA support, you can run::\npython build/build.py --enable_cuda\n- pip install -e dis...
Python
Apache License 2.0
google/jax
Typo ? I removed "-e" option from "pip install -e dist/*.whl # installs jaxlib (includes XLA)" line 58. It is now coherent with lines 69-70. When I tried the command with the "-e" it threw an error, without "-e" it worked fine.
260,335
14.12.2020 17:09:25
28,800
7342318774c6f1195f0e238f1209425109ea8944
check for __jax_array__ method for conversion
[ { "change_type": "MODIFY", "old_path": "jax/_src/lax/lax.py", "new_path": "jax/_src/lax/lax.py", "diff": "@@ -437,6 +437,9 @@ def convert_element_type(operand: Array, new_dtype: DType = None,\nmsg = \"Casting complex values to real discards the imaginary part\"\nwarnings.warn(msg, np.ComplexWarning,...
Python
Apache License 2.0
google/jax
check for __jax_array__ method for conversion
260,335
15.12.2020 20:46:09
28,800
5eb36855e53d8d4e81e281d08dc9264d2671f21f
ensure some jnp funs duck-type with __jax_array__
[ { "change_type": "MODIFY", "old_path": "jax/dtypes.py", "new_path": "jax/dtypes.py", "diff": "@@ -280,6 +280,9 @@ def is_python_scalar(x):\ntry:\nreturn x.aval.weak_type and np.ndim(x) == 0\nexcept AttributeError:\n+ if hasattr(x, '__jax_array__'):\n+ return is_python_scalar(x.__jax_array__())\n+ el...
Python
Apache License 2.0
google/jax
ensure some jnp funs duck-type with __jax_array__
260,631
15.12.2020 23:13:03
28,800
7c294e62f4a5134e9e747760caf5cafb62fdbb92
Copybara import of the project: by Matthew Johnson check for __jax_array__ method for conversion by Matthew Johnson fix typo by Matthew Johnson ensure some jnp funs duck-type with __jax_array__
[ { "change_type": "MODIFY", "old_path": "jax/_src/lax/lax.py", "new_path": "jax/_src/lax/lax.py", "diff": "@@ -437,9 +437,6 @@ def convert_element_type(operand: Array, new_dtype: DType = None,\nmsg = \"Casting complex values to real discards the imaginary part\"\nwarnings.warn(msg, np.ComplexWarning,...
Python
Apache License 2.0
google/jax
Copybara import of the project: -- 7342318774c6f1195f0e238f1209425109ea8944 by Matthew Johnson <mattjj@google.com>: check for __jax_array__ method for conversion -- 6742016382b0511f5ac9ec21f67d2122a9f37cb7 by Matthew Johnson <mattjj@google.com>: fix typo -- 5eb36855e53d8d4e81e281d08dc9264d2671f21f by Matthew Johnson <mattjj@google.com>: ensure some jnp funs duck-type with __jax_array__ PiperOrigin-RevId: 347763582
260,411
16.12.2020 09:29:50
-7,200
24d850815fa3ae828b16dc15e1c10f521bd37f30
[host_callback] Remove deprecated outfeed_receiver context manager
[ { "change_type": "MODIFY", "old_path": "docs/CHANGELOG.rst", "new_path": "docs/CHANGELOG.rst", "diff": "@@ -21,6 +21,8 @@ jax 0.2.8 (Unreleased)\noptional parameter for ``id_tap`` and ``id_print`` to request that the\ndevice from which the value is tapped be passed as a keyword argument\nto the tap ...
Python
Apache License 2.0
google/jax
[host_callback] Remove deprecated outfeed_receiver context manager
260,335
17.12.2020 12:10:04
28,800
d7b5e3b5d493fbc21ea399c2ec9fc5acc0607aed
add add_any to jet rules table fixes
[ { "change_type": "MODIFY", "old_path": "jax/experimental/jet.py", "new_path": "jax/experimental/jet.py", "diff": "@@ -229,6 +229,7 @@ deflinear(lax.complex_p)\ndeflinear(lax.conj_p)\ndeflinear(lax.imag_p)\ndeflinear(lax.add_p)\n+deflinear(ad_util.add_jaxvals_p)\ndeflinear(lax.sub_p)\ndeflinear(lax.c...
Python
Apache License 2.0
google/jax
add add_any to jet rules table fixes #5217
260,613
18.12.2020 16:26:31
0
c89f3810762458ccb56160a25dd7db653766aec9
add flag for inf checking
[ { "change_type": "MODIFY", "old_path": "jax/interpreters/xla.py", "new_path": "jax/interpreters/xla.py", "diff": "@@ -62,6 +62,9 @@ FLAGS = flags.FLAGS\nflags.DEFINE_bool('jax_debug_nans',\nbool_env('JAX_DEBUG_NANS', False),\n'Add nan checks to every operation.')\n+flags.DEFINE_bool('jax_debug_infs'...
Python
Apache License 2.0
google/jax
add flag for inf checking
260,424
17.12.2020 18:16:12
-3,600
d1cdd7756ca6cfb8bebcd3e5a902135b94a9c087
Fix UnexpectedTracer omnistaging error.
[ { "change_type": "MODIFY", "old_path": "jax/core.py", "new_path": "jax/core.py", "diff": "@@ -779,8 +779,13 @@ def full_lower(val):\nreturn val\ndef find_top_trace(xs) -> Trace:\n- top_main = max((x._trace.main for x in xs if isinstance(x, Tracer)),\n- default=None, key=attrgetter('level'))\n+ top_t...
Python
Apache License 2.0
google/jax
Fix UnexpectedTracer omnistaging error.