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
03.05.2019 14:43:10
25,200
8b3baf25c0cbbd2758a86e03af9bf215ad3dd61f
add sm3 (PAIR w/ and rohananil@)
[ { "change_type": "MODIFY", "old_path": "jax/experimental/optimizers.py", "new_path": "jax/experimental/optimizers.py", "diff": "@@ -51,13 +51,13 @@ functions, where the component functions have these signatures:\nArgs:\nstep: integer representing the step index.\n- grads: a pytree with the same stru...
Python
Apache License 2.0
google/jax
add sm3 (PAIR w/ @lukaszkaiser and rohananil@)
260,335
03.05.2019 17:57:17
25,200
f3264f5705c643a3aae32eb71ae79b4aa7980362
reviewer-suggested edits (thanks
[ { "change_type": "MODIFY", "old_path": "jax/experimental/optimizers.py", "new_path": "jax/experimental/optimizers.py", "diff": "\"\"\"Optimizers for use with JAX.\n-This short module contains some convenient optimizer definitions, specifically\n+This module contains some convenient optimizer definit...
Python
Apache License 2.0
google/jax
reviewer-suggested edits (thanks @skye)
260,335
04.05.2019 08:58:35
25,200
dffc0b76d00a222adbee56d774e03109a44b6d02
skip a linalg test on gpu/tpu
[ { "change_type": "MODIFY", "old_path": "tests/linalg_test.py", "new_path": "tests/linalg_test.py", "diff": "@@ -396,6 +396,7 @@ class NumpyLinalgTest(jtu.JaxTestCase):\nself._CompileAndCheck(np.linalg.inv, args_maker, check_dtypes=True)\n# Regression test for incorrect type for eigenvalues of a comp...
Python
Apache License 2.0
google/jax
skip a linalg test on gpu/tpu
260,335
04.05.2019 10:45:56
25,200
21e020e89c38d310dbff1fce2f6b973b36cfa581
fix pxla.py _slice to handle ShardedDeviceTuples
[ { "change_type": "MODIFY", "old_path": "jax/interpreters/pxla.py", "new_path": "jax/interpreters/pxla.py", "diff": "@@ -77,8 +77,7 @@ def shard_arg(device_ordinals, axis_size, arg):\ndef _slice(x, i):\n\"\"\"Return the ith slice of a JaxType (tuple or array).\"\"\"\n- t = type(x)\n- if t is core.Jax...
Python
Apache License 2.0
google/jax
fix pxla.py _slice to handle ShardedDeviceTuples
260,510
02.05.2019 17:47:34
25,200
e742a2605a08f310afafeb29ba6c1281d086f142
add low-rank svd jvp; fixes one case for
[ { "change_type": "MODIFY", "old_path": "jax/lax_linalg.py", "new_path": "jax/lax_linalg.py", "diff": "@@ -468,6 +468,31 @@ def svd_abstract_eval(operand, full_matrices, compute_uv):\nvt = operand\nreturn core.AbstractTuple((s, u, vt))\n+def svd_jvp_rule(primals, tangents, full_matrices, compute_uv):...
Python
Apache License 2.0
google/jax
add low-rank svd jvp; fixes one case for #508
260,510
02.05.2019 20:08:08
25,200
f259e913b42f797018747fd049941c887eaeb006
fixes tests for complex numbers
[ { "change_type": "MODIFY", "old_path": "jax/lax_linalg.py", "new_path": "jax/lax_linalg.py", "diff": "@@ -476,7 +476,7 @@ def svd_jvp_rule(primals, tangents, full_matrices, compute_uv):\ns, U, Vt = svd_p.bind(A, full_matrices=False, compute_uv=True)\nk = s.shape[-1]\n- Ut, V = U.T, Vt.T\n+ Ut, V = n...
Python
Apache License 2.0
google/jax
fixes tests for complex numbers
260,510
02.05.2019 20:24:19
25,200
92e07cceab255ba9f0436faac0c32be285fc2bf9
adds TODO for full matrix case
[ { "change_type": "MODIFY", "old_path": "jax/lax_linalg.py", "new_path": "jax/lax_linalg.py", "diff": "@@ -470,6 +470,7 @@ def svd_abstract_eval(operand, full_matrices, compute_uv):\ndef svd_jvp_rule(primals, tangents, full_matrices, compute_uv):\nif full_matrices:\n+ #TODO: implement full matrices c...
Python
Apache License 2.0
google/jax
adds TODO for full matrix case
260,510
04.05.2019 15:05:11
25,200
4c8355a54d3fcf0ecd0e8ddee58b1503d66a257b
remove unnecessary hermetian; change ATOL for svd jvp x64 tests
[ { "change_type": "MODIFY", "old_path": "jax/lax_linalg.py", "new_path": "jax/lax_linalg.py", "diff": "@@ -491,7 +491,7 @@ def svd_jvp_rule(primals, tangents, full_matrices, compute_uv):\nif m > n:\ndU = dU + (np.eye(m) - U.dot(Ut)).dot(dA).dot(V) / s_dim\nif n > m:\n- dV = dV + (np.eye(n) - V.dot(Vt...
Python
Apache License 2.0
google/jax
remove unnecessary hermetian; change ATOL for svd jvp x64 tests
260,510
04.05.2019 15:43:28
25,200
2b35b1b524785d2dd787adf21c6dedf6b9e0e146
replace .dot with np.dot in svd jvp
[ { "change_type": "MODIFY", "old_path": "jax/lax_linalg.py", "new_path": "jax/lax_linalg.py", "diff": "@@ -479,19 +479,19 @@ def svd_jvp_rule(primals, tangents, full_matrices, compute_uv):\nk = s.shape[-1]\nUt, V = np.conj(U).T, np.conj(Vt).T\ns_dim = s[..., None, :]\n- dS = Ut.dot(dA).dot(V)\n+ dS =...
Python
Apache License 2.0
google/jax
replace .dot with np.dot in svd jvp
260,510
04.05.2019 15:48:48
25,200
10fa1f99407b62fc6729c893f97c0e4ecd490f0f
tests pass with ATOL=1e-1
[ { "change_type": "MODIFY", "old_path": "tests/linalg_test.py", "new_path": "tests/linalg_test.py", "diff": "@@ -286,7 +286,7 @@ class NumpyLinalgTest(jtu.JaxTestCase):\nargs_maker, check_dtypes=True)\nif not full_matrices:\nsvd = partial(np.linalg.svd, full_matrices=False)\n- jtu.check_jvp(svd, part...
Python
Apache License 2.0
google/jax
tests pass with ATOL=1e-1
260,335
06.05.2019 06:50:15
25,200
bf6c15b59afceddf395127edc421244ecc1322c9
update pmap to flatten correctly (was a perf bug) also temporarily avoid DeviceTuples in optimizer states
[ { "change_type": "MODIFY", "old_path": "jax/api.py", "new_path": "jax/api.py", "diff": "@@ -492,13 +492,12 @@ def pmap(fun, axis_name=None):\ndef f_jitted(*args, **kwargs):\naxis_size = _pmap_axis_size(args)\nf = lu.wrap_init(fun)\n- jaxtuple_kwargs, kwargs_tree = pytree_to_jaxtupletree(kwargs)\n- j...
Python
Apache License 2.0
google/jax
update pmap to flatten correctly (was a perf bug) also temporarily avoid DeviceTuples in optimizer states
260,335
06.05.2019 12:30:22
25,200
b5d95f8b84a435aba511665b6f2f02e561b71c7a
skip a test on tpu
[ { "change_type": "MODIFY", "old_path": "tests/lax_test.py", "new_path": "tests/lax_test.py", "diff": "@@ -389,7 +389,7 @@ class LaxTest(jtu.JaxTestCase):\nself, lhs_shape, rhs_shape, dtype, strides, padding, lhs_dilation,\nrhs_dilation, rng):\n# TODO(mattjj): make this test pass\n- return SkipTest(\...
Python
Apache License 2.0
google/jax
skip a test on tpu
260,335
03.05.2019 17:47:40
25,200
9adfb806253baeda9efcb1cac862c32b1c006ee9
add advanced indexing support to jax index ops fixes This commit adds advanced indexing support to jax index operations, namely index_update and index_add, but does *not* add support for mixed advanced indexing and slicing. That's left as a NotImplementedError. This commit also added a segment_sum convenience wrapper.
[ { "change_type": "MODIFY", "old_path": "jax/numpy/lax_numpy.py", "new_path": "jax/numpy/lax_numpy.py", "diff": "@@ -2153,9 +2153,7 @@ def _is_slice_none(idx):\ndef _is_advanced_int_indexer(idx):\n\"\"\"Returns True if idx should trigger int array indexing, False otherwise.\"\"\"\n# https://docs.scip...
Python
Apache License 2.0
google/jax
add advanced indexing support to jax index ops fixes #658 This commit adds advanced indexing support to jax index operations, namely index_update and index_add, but does *not* add support for mixed advanced indexing and slicing. That's left as a NotImplementedError. This commit also added a segment_sum convenience wrapper.
260,335
04.05.2019 16:39:39
25,200
41a7a9448d58ec5f8900355eb6dc8963e3e1a990
fix up the is_advanced_int_indexer logic
[ { "change_type": "MODIFY", "old_path": "jax/ops/scatter.py", "new_path": "jax/ops/scatter.py", "diff": "@@ -26,6 +26,19 @@ from .. import lax\nfrom ..numpy import lax_numpy as np\n+# TODO(mattjj): clean up this logic\n+def _is_advanced_int_indexer(idx):\n+ _int = lambda aval: not aval.shape and onp....
Python
Apache License 2.0
google/jax
fix up the is_advanced_int_indexer logic
260,335
06.05.2019 14:37:41
25,200
3ab52646f230c204be76ba4eb1c36ac3bb04857e
reviewer-suggested fixes
[ { "change_type": "MODIFY", "old_path": "jax/ops/scatter.py", "new_path": "jax/ops/scatter.py", "diff": "@@ -142,7 +142,6 @@ def _scatter_update(x, idx, y, scatter_op):\ni = lax.convert_element_type(i, np.int32)\ni = np.broadcast_to(i, tuple(scatter_indices.shape[:-1]) + (1,))\nscatter_indices = np.c...
Python
Apache License 2.0
google/jax
reviewer-suggested fixes
260,335
06.05.2019 16:04:48
25,200
e75118936689524ad08d8e40406dd4ef5cdd9e22
add optimizer utilities (fixes and
[ { "change_type": "MODIFY", "old_path": "jax/experimental/optimizers.py", "new_path": "jax/experimental/optimizers.py", "diff": "@@ -79,7 +79,8 @@ from six.moves import reduce\nimport jax.numpy as np\nfrom jax.util import partial, safe_zip, safe_map, unzip2\nfrom jax import tree_util\n-from jax.tree_...
Python
Apache License 2.0
google/jax
add optimizer utilities (fixes #244 and #681)
260,335
06.05.2019 16:18:34
25,200
690301357d85474fdd683252c04e26452026d591
improve pmap error messages
[ { "change_type": "MODIFY", "old_path": "jax/api.py", "new_path": "jax/api.py", "diff": "@@ -507,10 +507,10 @@ def _pmap_axis_size(args):\nleaves, _ = tree_flatten(args)\naxis_sizes = reduce(set.union, map(_jaxtype_axis_size, leaves), set())\nif len(axis_sizes) == 0:\n- raise TypeError(\"pmap require...
Python
Apache License 2.0
google/jax
improve pmap error messages
260,335
06.05.2019 18:21:13
25,200
535773fe89f56b30bf94ab79e36d39ee07b5a8f7
avoid destructuring on len(sharded_device_tuple)
[ { "change_type": "MODIFY", "old_path": "jax/interpreters/pxla.py", "new_path": "jax/interpreters/pxla.py", "diff": "@@ -355,7 +355,7 @@ class ShardedDeviceTuple(xla.DeviceTuple):\nreturn iter(elts)\ndef __len__(self):\n- return len(self.device_buffers[0].destructure())\n+ return len(self.aval)\ndef ...
Python
Apache License 2.0
google/jax
avoid destructuring on len(sharded_device_tuple)
260,335
06.05.2019 22:43:31
25,200
19e0f8de45141c5eeee6a7f17ab7cff58c7e3537
fix tuple unpacking problems
[ { "change_type": "MODIFY", "old_path": "jax/api.py", "new_path": "jax/api.py", "diff": "@@ -505,7 +505,7 @@ def pmap(fun, axis_name=None):\ndef _pmap_axis_size(args):\nleaves, _ = tree_flatten(args)\n- axis_sizes = reduce(set.union, map(_jaxtype_axis_size, leaves), set())\n+ axis_sizes = reduce(set....
Python
Apache License 2.0
google/jax
fix tuple unpacking problems
260,335
06.05.2019 22:43:46
25,200
9fc47e51f57d1be35539b824ba390e9860a932af
use DeviceTuples in optimizer states again
[ { "change_type": "MODIFY", "old_path": "jax/experimental/optimizers.py", "new_path": "jax/experimental/optimizers.py", "diff": "@@ -77,6 +77,7 @@ import operator\nfrom six.moves import reduce\nimport jax.numpy as np\n+from jax.core import pack\nfrom jax.util import partial, safe_zip, safe_map, unzip...
Python
Apache License 2.0
google/jax
use DeviceTuples in optimizer states again
260,335
07.05.2019 15:50:22
25,200
9788a3584a458750792cd91e550bf2b8f802a4b6
bump version for pypi, leave DeviceTuples off
[ { "change_type": "MODIFY", "old_path": "jax/experimental/optimizers.py", "new_path": "jax/experimental/optimizers.py", "diff": "@@ -77,7 +77,6 @@ import operator\nfrom six.moves import reduce\nimport jax.numpy as np\n-from jax.core import pack\nfrom jax.util import partial, safe_zip, safe_map, unzip...
Python
Apache License 2.0
google/jax
bump version for pypi, leave DeviceTuples off
260,609
25.04.2019 00:56:45
18,000
725a4695389f09777642a5c8d67d4b7d1d0f3b35
Started work on np.average
[ { "change_type": "MODIFY", "old_path": "jax/numpy/lax_numpy.py", "new_path": "jax/numpy/lax_numpy.py", "diff": "@@ -978,6 +978,50 @@ def mean(a, axis=None, dtype=None, out=None, keepdims=False):\nsum(a, axis, dtype=dtype, keepdims=keepdims),\nlax.convert_element_type(normalizer, dtype))\n+@_wraps(on...
Python
Apache License 2.0
google/jax
Started work on np.average
260,609
28.04.2019 15:00:11
18,000
3468e87f02808d497c7c396e6cb76cb60c269178
Average fixes. Doesn't work for non-empty shapes
[ { "change_type": "MODIFY", "old_path": "jax/numpy/lax_numpy.py", "new_path": "jax/numpy/lax_numpy.py", "diff": "@@ -987,11 +987,11 @@ def average(a, axis=None, weights=None, returned=False):\nif axis is None:\nweights_sum = full((), size(a), dtype=avg.dtype)\nelse:\n- weights_sum = full_like(avg, av...
Python
Apache License 2.0
google/jax
Average fixes. Doesn't work for non-empty shapes
260,609
07.05.2019 02:17:42
18,000
4ef154a3afea1541e57e3a84cf20b06eccd306c8
Fixes, and skip test if ZeroDivisionError
[ { "change_type": "MODIFY", "old_path": "jax/numpy/lax_numpy.py", "new_path": "jax/numpy/lax_numpy.py", "diff": "@@ -991,12 +991,17 @@ def average(a, axis=None, weights=None, returned=False):\nelse:\nweights = asarray(weights)\n- out_dtype = _result_dtype(onp.average, a, axis, weights)\n+ if issubdty...
Python
Apache License 2.0
google/jax
Fixes, and skip test if ZeroDivisionError
260,335
26.03.2019 15:27:16
25,200
14d0c8ed4663155da0f33d070a4aeb91e36ea8f9
one more zip* needed on _scan_jvp
[ { "change_type": "MODIFY", "old_path": "jax/scan.py", "new_path": "jax/scan.py", "diff": "@@ -149,8 +149,10 @@ def _scan_jvp(primals, tangents, avals, jaxpr):\n# TODO: plumb symbolic zeros in and out of jvp transformation so we can test\n# that they're the same as the inputs and re-run if not\n- ret...
Python
Apache License 2.0
google/jax
one more zip* needed on _scan_jvp Co-authored-by: Dougal Maclaurin <dougalm@google.com>
260,335
26.03.2019 15:32:45
25,200
7c86d60b019af8194adfb2a8f0491100f24b8223
do some zip* on scan_reference for consistency
[ { "change_type": "MODIFY", "old_path": "jax/scan.py", "new_path": "jax/scan.py", "diff": "@@ -50,7 +50,8 @@ def scan_reference(f, init, xs):\n(y, carry) = f(x, carry)\nys.append(y)\n- return ys, carry\n+ ys = core.pack(map(np.stack, zip(*ys)))\n+ return ys, np.array(carry)\ndef demote_aval_rank(xs):...
Python
Apache License 2.0
google/jax
do some zip* on scan_reference for consistency Co-authored-by: Dougal Maclaurin <dougalm@google.com>
260,335
26.03.2019 15:33:47
25,200
4be3e07769f74e7c719873acdc595d0093a378c2
un-comment scan_test.py
[ { "change_type": "MODIFY", "old_path": "tests/scan_test.py", "new_path": "tests/scan_test.py", "diff": "@@ -13,21 +13,22 @@ def f(x, carry):\nprint scan(f, 0.0, np.arange(4))\nprint scan_reference(f, 0.0, np.arange(4))\n+print\n-# def cumsum(xs):\n-# def f(x, carry):\n-# carry = carry + x\n-# return...
Python
Apache License 2.0
google/jax
un-comment scan_test.py Co-authored-by: Dougal Maclaurin <dougalm@google.com>
260,335
26.03.2019 15:42:52
25,200
42d8415869b4b305fe72777c186a15c737c9e871
add harder scan test case
[ { "change_type": "MODIFY", "old_path": "tests/scan_test.py", "new_path": "tests/scan_test.py", "diff": "+from functools import partial\n+\nfrom jax.scan import scan, scan_reference\nfrom jax.core import pack\nimport jax.core as core\n@@ -7,12 +9,14 @@ from jax import jvp\n# scan :: (a -> c -> (b,c))...
Python
Apache License 2.0
google/jax
add harder scan test case Co-authored-by: Dougal Maclaurin <dougalm@google.com>
260,474
27.03.2019 17:16:54
14,400
39f181872d63bac13587e9fcc914780bab79fbc7
Progress on scan partial eval
[ { "change_type": "MODIFY", "old_path": "jax/interpreters/partial_eval.py", "new_path": "jax/interpreters/partial_eval.py", "diff": "@@ -66,6 +66,10 @@ class JaxprTrace(Trace):\nraise TypeError(pv)\ndef process_primitive(self, primitive, tracers, params):\n+ from jax.scan import scan_p\n+ if primitiv...
Python
Apache License 2.0
google/jax
Progress on scan partial eval Co-authored-by: Dougal Maclaurin <dougalm@google.com>
260,474
01.04.2019 16:03:56
14,400
1d54d37f75fe8233f09bbf5b916f151d55609a21
Started building jaxpr-to-jaxpr "initial-style" versions of each transformation (that internally wrap the final style versions).
[ { "change_type": "ADD", "old_path": null, "new_path": "jax/initial_style.py", "diff": "+from functools import partial\n+\n+import jax.core as core\n+import jax.linear_util as lu\n+import jax.numpy as np\n+import jax.lax as lax\n+\n+from jax.util import curry, unzip2\n+from jax.lax import _abstractif...
Python
Apache License 2.0
google/jax
Started building jaxpr-to-jaxpr "initial-style" versions of each transformation (that internally wrap the final style versions). Co-authored-by: Dougal Maclaurin <dougalm@google.com>
260,335
05.04.2019 12:02:24
25,200
2be64eb563c7bfe41345f02436741a1895e12d96
scan pairing w/ dougalm
[ { "change_type": "MODIFY", "old_path": "jax/interpreters/partial_eval.py", "new_path": "jax/interpreters/partial_eval.py", "diff": "@@ -217,7 +217,7 @@ def partial_eval(f, trace, pvs):\n@transformation_with_aux\n-def partial_eval_wrapper(avals, *consts, **kwargs):\n+def partial_eval_wrapper(avals, *...
Python
Apache License 2.0
google/jax
scan pairing w/ dougalm Co-authored-by: Dougal Maclaurin <dougalm@google.com>
260,335
05.04.2019 19:44:38
25,200
b60eb29b319d10c17f77ff4de58c61c58c499b07
call_initial_test passes!
[ { "change_type": "MODIFY", "old_path": "jax/initial_style.py", "new_path": "jax/initial_style.py", "diff": "@@ -18,7 +18,8 @@ def pvals_with_zeros(zero_components, aval):\nreturn pe.PartialVal((aval, core.unit))\nelif isinstance(zero_components, ZeroTuple):\navals, consts = unzip(map, pvals_with_zer...
Python
Apache License 2.0
google/jax
call_initial_test passes! Co-authored-by: Dougal Maclaurin <dougalm@google.com>
260,335
08.04.2019 07:42:54
25,200
97628d144f6d2bfd1a5907c20669e822992f9383
scan impl works, about to change jvp_jaxpr
[ { "change_type": "MODIFY", "old_path": "jax/initial_style.py", "new_path": "jax/initial_style.py", "diff": "@@ -24,6 +24,8 @@ def pvals_with_zeros(zero_components, aval):\ndef transpose_jaxpr(jaxpr, avals, tangent_components):\nassert False\n+strip_zeros = partial(ad.strip_zeros, core.unit, core.pac...
Python
Apache License 2.0
google/jax
scan impl works, about to change jvp_jaxpr Co-authored-by: Dougal Maclaurin <dougalm@google.com>
260,335
08.04.2019 08:04:06
25,200
b208c49cd7b46e3fe43104a3e5a7eab192638b13
minor fixes, will revise jvp_jaxpr
[ { "change_type": "MODIFY", "old_path": "jax/initial_style.py", "new_path": "jax/initial_style.py", "diff": "@@ -149,7 +149,7 @@ def scan_initial(f, init, xs):\nlu.wrap_init(f), (carry_pval, x_pval), instantiate=True)\n(y_aval, carry_aval_out), _ = pval_out\nassert carry_aval == carry_aval_out\n- con...
Python
Apache License 2.0
google/jax
minor fixes, will revise jvp_jaxpr Co-authored-by: Dougal Maclaurin <dougalm@google.com>
260,335
08.04.2019 09:17:45
25,200
27dede72598eb7ba2badbc952ecd92d14153cd37
fixed point!!!!
[ { "change_type": "MODIFY", "old_path": "jax/initial_style.py", "new_path": "jax/initial_style.py", "diff": "@@ -188,14 +188,26 @@ def _scan_initial_jvp(primals, tangents, avals, jaxpr):\nwhere_xs_zeros = ad.get_zeros(xs_dot) # same as where_x_zeros b/c arrays\nnonzero_xs_dot = strip_zeros(where_xs_z...
Python
Apache License 2.0
google/jax
fixed point!!!! Co-authored-by: Dougal Maclaurin <dougalm@google.com>
260,335
09.04.2019 08:45:34
25,200
836a71ef7342e7117b1f3023c3405667eacdc9b8
improved initial transforms, call!
[ { "change_type": "MODIFY", "old_path": "jax/initial_style.py", "new_path": "jax/initial_style.py", "diff": "@@ -6,7 +6,7 @@ import jax.numpy as np\nimport jax.lax as lax\nfrom jax.util import curry, unzip2\n-from jax.lax import _abstractify\n+from jax.lax import _abstractify, _unpack_eqn\nfrom jax.a...
Python
Apache License 2.0
google/jax
improved initial transforms, call! Co-authored-by: Dougal Maclaurin <dougalm@google.com>
260,335
10.04.2019 08:26:27
25,200
9a22d2ebe12547ce48267f5e8b1d903ee62a3a30
about to embark on scan jvp for the last time
[ { "change_type": "MODIFY", "old_path": "jax/initial_style.py", "new_path": "jax/initial_style.py", "diff": "@@ -144,6 +144,7 @@ def update_arrays(i, aval, xs, x):\nelse:\nreturn lax.dynamic_update_index_in_dim(xs, x[None, ...], i, axis=0)\n+_scan_const = pe.gensym('_consts')\n# scan :: (a -> c -> (b...
Python
Apache License 2.0
google/jax
about to embark on scan jvp for the last time Co-authored-by: Dougal Maclaurin <dougalm@google.com>
260,335
10.04.2019 09:42:17
25,200
4e2edb5a5fa2eca1b6823b276092cd6a972ff69a
wow that went well
[ { "change_type": "MODIFY", "old_path": "jax/initial_style.py", "new_path": "jax/initial_style.py", "diff": "@@ -25,7 +25,18 @@ def transpose_jaxpr(jaxpr, avals, tangent_components):\nassert False\nstrip_zeros = partial(ad.strip_zeros, core.unit, core.pack)\n+strip_zeros_aval = partial(ad.strip_zeros...
Python
Apache License 2.0
google/jax
wow that went well Co-authored-by: Dougal Maclaurin <dougalm@google.com>
260,335
11.04.2019 14:50:58
25,200
0a20a9f7743c85a7e51288195d011b2302e673de
progress on scan partial_eval
[ { "change_type": "MODIFY", "old_path": "jax/initial_style.py", "new_path": "jax/initial_style.py", "diff": "@@ -99,12 +99,12 @@ def _call_initial_partial_eval(trace, *tracers, **kwargs):\navals = map(as_aval, in_pvs, in_consts)\n(jaxpr_1, consts_1), (jaxpr_2, consts_2), out_pv, first_components_out ...
Python
Apache License 2.0
google/jax
progress on scan partial_eval Co-authored-by: Dougal Maclaurin <dougalm@google.com>
260,335
18.04.2019 07:19:04
25,200
d03cdc63975d8d16be2ae57d80c051826fd1ad75
introduce typedjaxpr to carry around literals etc
[ { "change_type": "MODIFY", "old_path": "jax/core.py", "new_path": "jax/core.py", "diff": "@@ -56,6 +56,13 @@ class Jaxpr(object):\nreturn Jaxpr(self.constvars[:], self.freevars[:], self.invars[:],\nself.outvar, self.eqns[:])\n+class TypedJaxpr(namedtuple('TypedJaxpr', ['jaxpr', 'literals', 'in_avals...
Python
Apache License 2.0
google/jax
introduce typedjaxpr to carry around literals etc Co-authored-by: Dougal Maclaurin <dougalm@google.com>
260,335
18.04.2019 09:00:11
25,200
63ebb9a2465b927e7bbad7666e1649dd44f26783
refactored partial_eval_jaxpr2
[ { "change_type": "MODIFY", "old_path": "jax/initial_style.py", "new_path": "jax/initial_style.py", "diff": "@@ -264,23 +264,21 @@ def binary_lattice_join(a, b):\ndef _scan_initial_partial_eval(trace, *tracers, **kwargs):\njaxpr = kwargs.pop('jaxpr')\n- true_consts = kwargs.pop('true_consts')\nin_pvs...
Python
Apache License 2.0
google/jax
refactored partial_eval_jaxpr2 Co-authored-by: Dougal Maclaurin <dougalm@google.com>
260,335
23.04.2019 09:15:16
25,200
673682302142de32b8913dd41864e29dd3b5ccfe
victory! patial eval of scan (+ linearize!)
[ { "change_type": "MODIFY", "old_path": "jax/abstract_arrays.py", "new_path": "jax/abstract_arrays.py", "diff": "@@ -49,6 +49,9 @@ class UnshapedArray(core.AbstractValue):\ndef __eq__(self, other):\nreturn type(self) is type(other) and self.dtype == other.dtype\n+ def __ne__(self, other):\n+ return n...
Python
Apache License 2.0
google/jax
victory! patial eval of scan (+ linearize!) Co-authored-by: Dougal Maclaurin <dougalm@google.com>
260,335
24.04.2019 16:40:29
25,200
1c9035efca61dcddc5c8cd976ba47bb50f55b62e
start scan transpose, but "nonlinear pack"!!
[ { "change_type": "MODIFY", "old_path": "jax/core.py", "new_path": "jax/core.py", "diff": "@@ -61,6 +61,7 @@ class TypedJaxpr(namedtuple('TypedJaxpr', ['jaxpr', 'literals', 'in_avals', 'out\nassert type(jaxpr) is Jaxpr\nassert len(literals) == len(jaxpr.constvars)\nassert len(in_avals) == len(jaxpr.i...
Python
Apache License 2.0
google/jax
start scan transpose, but "nonlinear pack"!! Co-authored-by: Dougal Maclaurin <dougalm@google.com>
260,335
25.04.2019 10:43:50
25,200
a17f8e4ca87b818bf0740ed2db5d740f3e18e491
add jaxpr eqn structured input, transpose progress
[ { "change_type": "MODIFY", "old_path": "jax/abstract_arrays.py", "new_path": "jax/abstract_arrays.py", "diff": "@@ -176,3 +176,10 @@ array_types = [onp.ndarray, onp.float64, onp.float32, onp.float16,\nfor t in array_types:\ncore.pytype_aval_mappings[t] = ConcreteArray\nad_util.jaxval_zeros_likers[t]...
Python
Apache License 2.0
google/jax
add jaxpr eqn structured input, transpose progress Co-authored-by: Dougal Maclaurin <dougalm@google.com>
260,335
01.05.2019 15:47:01
25,200
0988f6d8d5f6cb293e0caed09500669c11c0e59d
pattern unpacking at jaxpr top-level (pair w/ next step is to handle that new complexity in our jaxpr munging...
[ { "change_type": "MODIFY", "old_path": "jax/core.py", "new_path": "jax/core.py", "diff": "@@ -134,9 +134,9 @@ def eval_jaxpr(jaxpr, consts, freevar_vals, *args):\nenv = {}\nwrite(unitvar, unit)\n- map(write, jaxpr.constvars, consts)\n- map(write, jaxpr.invars, args)\n- map(write, jaxpr.freevars, fre...
Python
Apache License 2.0
google/jax
pattern unpacking at jaxpr top-level (pair w/ @dougalm) next step is to handle that new complexity in our jaxpr munging... Co-authored-by: Dougal Maclaurin <dougalm@google.com>
260,335
07.05.2019 08:52:08
25,200
4c2ec3e4427badcf3fb5f0ee03ca09e41c71d15b
ship it
[ { "change_type": "MODIFY", "old_path": "jax/ad_util.py", "new_path": "jax/ad_util.py", "diff": "@@ -57,7 +57,7 @@ def zeros_like_aval(aval):\naval_zeros_likers = {}\ndef zeros_like_abstract_tuple(tup):\n- return AbstractTuple(map(zeros_like_aval, tup))\n+ return JaxTuple(map(zeros_like_aval, tup))\n...
Python
Apache License 2.0
google/jax
ship it Co-authored-by: Dougal Maclaurin <dougalm@google.com>
260,335
08.05.2019 07:50:38
25,200
e736a0a9a11b3a513b145834496da0cd8c74219c
cleanup: remove call_initial, add xla pat_fmap
[ { "change_type": "MODIFY", "old_path": "jax/core.py", "new_path": "jax/core.py", "diff": "@@ -142,8 +142,8 @@ def eval_jaxpr(jaxpr, consts, freevar_vals, *args):\nif not eqn.restructure:\nin_vals = map(read, eqn.invars)\nelse:\n- in_vals = [pack(map(read, invars)) if type(invars) is tuple else read(...
Python
Apache License 2.0
google/jax
cleanup: remove call_initial, add xla pat_fmap
260,335
08.05.2019 08:57:51
25,200
444cda493a38181cf93fec94e591e6dd06041d65
add underscores, rename scan_initial -> scan
[ { "change_type": "MODIFY", "old_path": "jax/core.py", "new_path": "jax/core.py", "diff": "@@ -155,7 +155,6 @@ def eval_jaxpr(jaxpr, consts, freevar_vals, *args):\nreturn read(jaxpr.outvar)\n-# TODO enforce a specific set of types for jaxpr vars\ndef pat_fmap(f, v, *xs):\nif type(v) in (tuple, list):...
Python
Apache License 2.0
google/jax
add underscores, rename scan_initial -> scan
260,335
08.05.2019 11:25:03
25,200
e19faa7cda24badffd69322fad0056e74d06cb41
add scan docstring
[ { "change_type": "MODIFY", "old_path": "jax/lax/lax_control_flow.py", "new_path": "jax/lax/lax_control_flow.py", "diff": "@@ -42,18 +42,15 @@ from jax import ad_util\n### fori_loop and while_loop\ndef fori_loop(lower, upper, body_fun, init_val):\n- \"\"\"Loop from `lower` to `upper` by reduction to ...
Python
Apache License 2.0
google/jax
add scan docstring
260,335
08.05.2019 11:37:27
25,200
cdedf452586c04fd75ab9eff17fd6308bebbc99e
move scan tests into tests/lax_control_flow_test.py
[ { "change_type": "MODIFY", "old_path": "jax/lax/lax_control_flow.py", "new_path": "jax/lax/lax_control_flow.py", "diff": "@@ -809,4 +809,3 @@ scan_p.def_impl(_scan_impl)\nad.primitive_jvps[scan_p] = _scan_jvp\nad.primitive_transposes[scan_p] = _scan_transpose\npe.custom_partial_eval_rules[scan_p] = ...
Python
Apache License 2.0
google/jax
move scan tests into tests/lax_control_flow_test.py
260,335
08.05.2019 13:08:05
25,200
a8ebc249a382f33ab0c3325325ceadbe053dc381
tweaks to scan docstring
[ { "change_type": "MODIFY", "old_path": "jax/lax/lax_control_flow.py", "new_path": "jax/lax/lax_control_flow.py", "diff": "@@ -482,12 +482,11 @@ def _update_arrays(i, aval, xs, x):\nelse:\nreturn lax.dynamic_update_index_in_dim(xs, x[None, ...], i, axis=0)\n-# scan :: (c -> a -> (c, b)) -> c -> [a] -...
Python
Apache License 2.0
google/jax
tweaks to scan docstring
260,335
08.05.2019 13:15:21
25,200
54585743a3f646f96bc961d44f1a03a1f1b00ea4
tweak scan docstring
[ { "change_type": "MODIFY", "old_path": "jax/lax/lax_control_flow.py", "new_path": "jax/lax/lax_control_flow.py", "diff": "@@ -510,7 +510,8 @@ def scan(f, init, xs):\nreturn carry, np.stack(ys)\nUnlike that Python version, both ``a`` and ``b`` may be arbitrary pytree\n- types, and so multiple arrays ...
Python
Apache License 2.0
google/jax
tweak scan docstring
260,335
08.05.2019 16:27:23
25,200
25ac1987986831dc12aee5a5db9f8bcf9b9c13e0
must handle literals + closure conversion better..
[ { "change_type": "MODIFY", "old_path": "jax/interpreters/ad.py", "new_path": "jax/interpreters/ad.py", "diff": "@@ -64,7 +64,7 @@ def jvp_subtrace(master, primals, tangents):\nyield (out_primal, out_tangent)\n@transformation_with_aux\n-def jvp_subtrace_aux(master, primals, tangents):\n+def jvp_subtr...
Python
Apache License 2.0
google/jax
must handle literals + closure conversion better..
260,335
08.05.2019 17:41:36
25,200
c08b9fee47f5c49a8ab6708f83488c7dc1a92910
remove const_env from check_jaxpr, add scan trans
[ { "change_type": "MODIFY", "old_path": "jax/core.py", "new_path": "jax/core.py", "diff": "@@ -642,11 +642,6 @@ def check_jaxpr(jaxpr):\nread = partial(read_env, env)\nwrite = partial(write_env, env)\n- const_env = set()\n- read_const = partial(read_env, const_env)\n- write_const= partial(write_env, ...
Python
Apache License 2.0
google/jax
remove const_env from check_jaxpr, add scan trans
260,335
09.05.2019 11:40:19
25,200
ea8e414a8399ec3bb12e6cbcc561e09cb7c80d99
improve jax.random shape error messages
[ { "change_type": "MODIFY", "old_path": "jax/random.py", "new_path": "jax/random.py", "diff": "@@ -218,6 +218,14 @@ def _random_bits(key, bit_width, shape):\n### random samplers\n+def _check_shape(name, shape):\n+ try:\n+ shape = tuple(map(int, shape))\n+ except TypeError:\n+ msg = \"{} requires a co...
Python
Apache License 2.0
google/jax
improve jax.random shape error messages
260,335
09.05.2019 15:46:34
25,200
37f9c26858c241316ee607e1b08f1847703837ed
add collectives: allreduce min/max, permute
[ { "change_type": "MODIFY", "old_path": "jax/lax/lax_parallel.py", "new_path": "jax/lax/lax_parallel.py", "diff": "@@ -20,8 +20,10 @@ from jax.abstract_arrays import ShapedArray\nfrom jax.core import Primitive\nfrom jax.interpreters import ad\nfrom jax.interpreters import parallel\n+from jax.interpre...
Python
Apache License 2.0
google/jax
add collectives: allreduce min/max, permute Co-authored-by: Peter Hawkins <phawkins@google.com>
260,335
09.05.2019 20:00:24
25,200
5aea10c7b39b74a95a1bd7576d26b159503aa9ce
make static_argnums cache on value when possible fixes
[ { "change_type": "MODIFY", "old_path": "jax/api.py", "new_path": "jax/api.py", "diff": "@@ -46,7 +46,7 @@ from .tree_util import (process_pytree, node_types, build_tree, PyTreeDef,\ntree_map, tree_flatten, tree_unflatten, tree_structure,\ntree_transpose, leaf)\nfrom .util import (unzip2, unzip3, cur...
Python
Apache License 2.0
google/jax
make static_argnums cache on value when possible fixes #691
260,335
09.05.2019 07:23:39
25,200
085f06e4b61adc012da1590d55e7aabcb07230ae
add some PartialVal invariants
[ { "change_type": "MODIFY", "old_path": "jax/core.py", "new_path": "jax/core.py", "diff": "@@ -72,11 +72,13 @@ def jaxpr_as_fun(typed_jaxpr, *args):\nfor arg, in_aval, varname in zip(args, typed_jaxpr.in_avals, invars):\narg_aval, _ = _abstractify(arg)\nif arg_aval != in_aval:\n- raise TypeError(\"in...
Python
Apache License 2.0
google/jax
add some PartialVal invariants Co-authored-by: Dougal Maclaurin <dougalm@google.com>
260,335
09.05.2019 07:55:19
25,200
360e39756f19a530830046919336b8a1e34e82f3
must guarantee progress on lattice...
[ { "change_type": "MODIFY", "old_path": "jax/core.py", "new_path": "jax/core.py", "diff": "@@ -30,7 +30,7 @@ from .pprint_util import pp, vcat, hcat, pp_kv_pairs\n# TODO(dougalm): the trace cache breaks the leak detector. Consisder solving.\ncheck_leaks = False\n# TODO(dougalm): put this behind a fla...
Python
Apache License 2.0
google/jax
must guarantee progress on lattice... Co-authored-by: Dougal Maclaurin <dougalm@google.com>
260,335
10.05.2019 08:20:40
25,200
643c26fd77c665befc45bdada81ea00fea331095
flip lattice conventions to confuse our enemies
[ { "change_type": "MODIFY", "old_path": "jax/interpreters/ad.py", "new_path": "jax/interpreters/ad.py", "diff": "@@ -533,60 +533,60 @@ def map_transpose(primitive, params, jaxpr, consts, freevar_vals, args, ct):\ndef jaxpr_as_fun(jaxpr, consts, *args):\nreturn core.eval_jaxpr(jaxpr, consts, (), *args...
Python
Apache License 2.0
google/jax
flip lattice conventions to confuse our enemies Co-authored-by: Dougal Maclaurin <dougalm@google.com>
260,335
10.05.2019 08:58:05
25,200
a300319fd5df24ce2cc8a939a96faea498276e74
add lattice instantiate-at logic, scan works!
[ { "change_type": "MODIFY", "old_path": "jax/interpreters/ad.py", "new_path": "jax/interpreters/ad.py", "diff": "@@ -47,8 +47,7 @@ def jvpfun(instantiate, primals, tangents):\nwith new_master(JVPTrace) as master:\nout_primal, out_tangent = yield (master, primals, tangents), {}\ndel master\n- if insta...
Python
Apache License 2.0
google/jax
add lattice instantiate-at logic, scan works! Co-authored-by: Dougal Maclaurin <dougalm@google.com>
260,335
10.05.2019 09:48:51
25,200
48811fbb0e567cbde94c1eab0fe48c1eee0bac6b
fix join_pvals bug from cond
[ { "change_type": "MODIFY", "old_path": "jax/interpreters/partial_eval.py", "new_path": "jax/interpreters/partial_eval.py", "diff": "@@ -360,8 +360,17 @@ def join_pvals(pval1, pval2):\nelse:\n# the pvals are tuples with some mixtures of known/unknown\nassert isinstance(pv1, JaxprTracerTuple) or isins...
Python
Apache License 2.0
google/jax
fix join_pvals bug from cond Co-authored-by: Dougal Maclaurin <dougalm@google.com>
260,335
10.05.2019 10:18:37
25,200
840c6607732e47540efeb7325c61c065ce4df19d
refine scan test granularity
[ { "change_type": "MODIFY", "old_path": "tests/lax_control_flow_test.py", "new_path": "tests/lax_control_flow_test.py", "diff": "@@ -19,6 +19,7 @@ from __future__ import print_function\nfrom functools import partial\nfrom absl.testing import absltest\n+from absl.testing import parameterized\nimport n...
Python
Apache License 2.0
google/jax
refine scan test granularity
260,335
10.05.2019 12:27:14
25,200
c1f01222b7c8fa9877999baf895c714e2f55ee6b
generalize pmap collective-permute tests
[ { "change_type": "MODIFY", "old_path": "tests/pmap_test.py", "new_path": "tests/pmap_test.py", "diff": "@@ -283,25 +283,32 @@ class PmapTest(jtu.JaxTestCase):\n@jtu.skip_on_devices(\"cpu\", \"gpu\")\ndef testCollectivePermute(self):\ndevice_count = xla_bridge.device_count()\n- if device_count != 2:\...
Python
Apache License 2.0
google/jax
generalize pmap collective-permute tests
260,335
10.05.2019 12:27:15
25,200
07bf50967b46909023d58eed14737d570920a569
make jtu.skip_on_devices read jax_platform_name fixes
[ { "change_type": "MODIFY", "old_path": "jax/lib/xla_bridge.py", "new_path": "jax/lib/xla_bridge.py", "diff": "@@ -65,7 +65,7 @@ except ImportError:\nFLAGS = flags.FLAGS\nflags.DEFINE_bool('jax_enable_x64',\n- strtobool(os.getenv('JAX_ENABLE_X64', \"False\")),\n+ strtobool(os.getenv('JAX_ENABLE_X64',...
Python
Apache License 2.0
google/jax
make jtu.skip_on_devices read jax_platform_name fixes #696
260,335
10.05.2019 13:26:51
25,200
134ce27fe9a696ab4fa954073670fc49b22d27b6
sketch out ppermute transpose rule, untested
[ { "change_type": "MODIFY", "old_path": "jax/lax/lax_parallel.py", "new_path": "jax/lax/lax_parallel.py", "diff": "@@ -105,7 +105,6 @@ parallel.serial_pmap_primitive_rules[psum_p] = \\\n# partial(_allreduce_translation_rule, lax.add_p)\npxla.parallel_translation_rules[psum_p] = \\\nlambda c, val, dev...
Python
Apache License 2.0
google/jax
sketch out ppermute transpose rule, untested
260,335
10.05.2019 14:00:21
25,200
5cfa18015c148e31bf25ce35fda7d11b3a9441bb
fix things we broke on the path to scan
[ { "change_type": "MODIFY", "old_path": "jax/core.py", "new_path": "jax/core.py", "diff": "@@ -56,13 +56,20 @@ class Jaxpr(object):\nreturn Jaxpr(self.constvars[:], self.freevars[:], self.invars[:],\nself.outvar, self.eqns[:])\n-class TypedJaxpr(namedtuple('TypedJaxpr', ['jaxpr', 'literals', 'in_aval...
Python
Apache License 2.0
google/jax
fix things we broke on the path to scan
260,335
10.05.2019 14:24:15
25,200
78c804772e47f98721acd31a7e0953504aa504a8
fix typo in pmap test
[ { "change_type": "MODIFY", "old_path": "tests/pmap_test.py", "new_path": "tests/pmap_test.py", "diff": "@@ -283,7 +283,7 @@ class PmapTest(jtu.JaxTestCase):\n@jtu.skip_on_devices(\"cpu\", \"gpu\")\ndef testCollectivePermute(self):\ndevice_count = xla_bridge.device_count()\n- rotation = [(i, i + 1 % ...
Python
Apache License 2.0
google/jax
fix typo in pmap test
260,335
10.05.2019 15:52:12
25,200
29e67f011905adf97660167fef69ec80fa6d9a67
scan bug fixed, other cleanup
[ { "change_type": "MODIFY", "old_path": "jax/core.py", "new_path": "jax/core.py", "diff": "@@ -30,7 +30,7 @@ from .pprint_util import pp, vcat, hcat, pp_kv_pairs\n# TODO(dougalm): the trace cache breaks the leak detector. Consisder solving.\ncheck_leaks = False\n# TODO(dougalm): put this behind a fla...
Python
Apache License 2.0
google/jax
scan bug fixed, other cleanup
260,335
10.05.2019 22:07:54
25,200
4fcd96f926b079f9bab2b0d1105f88a81067dd55
make tests pass with skip_checks = False
[ { "change_type": "MODIFY", "old_path": "jax/core.py", "new_path": "jax/core.py", "diff": "@@ -30,7 +30,7 @@ from .pprint_util import pp, vcat, hcat, pp_kv_pairs\n# TODO(dougalm): the trace cache breaks the leak detector. Consisder solving.\ncheck_leaks = False\n# TODO(dougalm): put this behind a fla...
Python
Apache License 2.0
google/jax
make tests pass with skip_checks = False
260,335
11.05.2019 09:29:12
25,200
98ed8731a5e7fa7d2a8b0f518d54817cdc3fb76a
remove unneeded packs from scan tests
[ { "change_type": "MODIFY", "old_path": "tests/lax_control_flow_test.py", "new_path": "tests/lax_control_flow_test.py", "diff": "@@ -37,7 +37,7 @@ def scan_reference(f, init, xs):\n(carry, y) = f(carry, x)\nys.append(lax.reshape(y, (1,) + onp.shape(y)))\nys = lax.concatenate(ys, 0)\n- return core.pac...
Python
Apache License 2.0
google/jax
remove unneeded packs from scan tests
260,335
11.05.2019 10:45:14
25,200
65202821df7dc73a5fd7c6191c473854cf658fe9
improve core.typed_jaxpr arg typechecks
[ { "change_type": "MODIFY", "old_path": "jax/api.py", "new_path": "jax/api.py", "diff": "@@ -901,7 +901,8 @@ def jarrett(fun):\nreturn new_fun\n-def make_graphviz(fun):\n+# This function mostly exists for making slides about JAX.\n+def _make_graphviz(fun):\n\"\"\"Adapts `fun` to return a graphviz dot...
Python
Apache License 2.0
google/jax
improve core.typed_jaxpr arg typechecks
260,335
11.05.2019 13:28:47
25,200
6e9718a229d6c73e8102f5c731db7230affe0985
add pretty-printing to TypedJaxpr
[ { "change_type": "MODIFY", "old_path": "jax/core.py", "new_path": "jax/core.py", "diff": "@@ -71,6 +71,13 @@ class TypedJaxpr(object):\ndef __iter__(self):\nreturn iter((self.jaxpr, self.literals, self.in_avals, self.out_aval))\n+ def __str__(self):\n+ # TODO(mattjj): improve this with type annotati...
Python
Apache License 2.0
google/jax
add pretty-printing to TypedJaxpr
260,335
13.05.2019 08:48:13
25,200
d27bc0a12975c222cce81dc2f5dedd54db106cbf
add literals to jaxprs
[ { "change_type": "MODIFY", "old_path": "jax/core.py", "new_path": "jax/core.py", "diff": "@@ -100,6 +100,7 @@ def jaxpr_as_fun(typed_jaxpr, *args):\nJaxprEqn = namedtuple('JaxprEqn', ['invars', 'outvars', 'primitive',\n'bound_subjaxprs', 'restructure',\n'destructure', 'params'])\n+Literal = namedtup...
Python
Apache License 2.0
google/jax
add literals to jaxprs Co-authored-by: Dougal Maclaurin <dougalm@google.com>
260,335
13.05.2019 09:10:11
25,200
3c04dedcad2d707e5f5c01c741617f63c75f80fc
scan cleanup
[ { "change_type": "MODIFY", "old_path": "jax/interpreters/partial_eval.py", "new_path": "jax/interpreters/partial_eval.py", "diff": "@@ -155,47 +155,6 @@ class JaxprTrace(Trace):\nmap_primitives = set()\n-def unzip_scan_jaxpr(jaxpr, consts, init, xs, avals):\n- f = lu.wrap_init(partial(core.eval_jaxp...
Python
Apache License 2.0
google/jax
scan cleanup Co-authored-by: Dougal Maclaurin <dougalm@google.com>
260,335
13.05.2019 10:39:34
25,200
dff8e60f5c78ef49cdf5430c14e55a902ebcd27c
fix typo unkown -> unknown
[ { "change_type": "MODIFY", "old_path": "jax/lax/lax_control_flow.py", "new_path": "jax/lax/lax_control_flow.py", "diff": "@@ -677,16 +677,16 @@ def _scan_partial_eval(trace, *tracers, **kwargs):\ndict(forward=forward, length=length, jaxpr=jaxpr_2))\nreturn pe.JaxprTracer(trace, pe.PartialVal((out_pv...
Python
Apache License 2.0
google/jax
fix typo unkown -> unknown
260,295
13.05.2019 20:36:45
25,200
a08f7ad5fa64c726d3e4f19e038063a97d3c23dc
Adagrad optimizer
[ { "change_type": "MODIFY", "old_path": "jax/experimental/optimizers.py", "new_path": "jax/experimental/optimizers.py", "diff": "@@ -229,6 +229,44 @@ def momentum(step_size, mass):\nreturn x\nreturn init, update, get_params\n+\n+@optimizer\n+def adagrad(step_size, momentum=0.9):\n+ \"\"\"Construct op...
Python
Apache License 2.0
google/jax
Adagrad optimizer
260,335
15.05.2019 08:13:30
25,200
38c6a8e89929e546a0cc2785e70e282ddf1f5ea1
add pmap docstring
[ { "change_type": "MODIFY", "old_path": "jax/api.py", "new_path": "jax/api.py", "diff": "@@ -438,7 +438,7 @@ def _dtype(x):\ndef vmap(fun, in_axes=0, out_axes=0):\n- \"\"\"Vectorizing map. Creates a function which maps `fun` over additional axes.\n+ \"\"\"Vectorizing map. Creates a function which map...
Python
Apache License 2.0
google/jax
add pmap docstring Co-authored-by: Peter Hawkins <phawkins@google.com>
260,335
15.05.2019 08:21:12
25,200
d19947169689dc7c1d1f77440a9feca863ef8de1
add pmap to sphinx docs
[ { "change_type": "MODIFY", "old_path": "docs/jax.rst", "new_path": "docs/jax.rst", "diff": "@@ -19,6 +19,6 @@ Module contents\n---------------\n.. automodule:: jax\n- :members: jit, disable_jit, grad, value_and_grad, vmap, jacfwd, jacrev, hessian, jvp, linearize, vjp, make_jaxpr\n+ :members: jit, di...
Python
Apache License 2.0
google/jax
add pmap to sphinx docs Co-authored-by: Peter Hawkins <phawkins@google.com>
260,335
15.05.2019 08:24:47
25,200
52a2fb3280dcf31c61804aa871e7d8e5f66fe2a7
typo fixes in pmap docstring
[ { "change_type": "MODIFY", "old_path": "jax/api.py", "new_path": "jax/api.py", "diff": "@@ -506,7 +506,7 @@ def pmap(fun, axis_name=None):\nArgs:\nfun: Function to be mapped over argument axes.\naxis_name: Optional, a hashable Python object used to identify the mapped\n- axis so that parallel collec...
Python
Apache License 2.0
google/jax
typo fixes in pmap docstring Co-authored-by: Peter Hawkins <phawkins@google.com>
260,335
15.05.2019 21:30:39
25,200
c779e495c718f47f7d1f8cebd3561bc0052e4311
fix typo in build_jaxlib_wheels_macos.sh
[ { "change_type": "MODIFY", "old_path": "build/build_jaxlib_wheels_macos.sh", "new_path": "build/build_jaxlib_wheels_macos.sh", "diff": "# Script that builds wheels for a JAX release on Mac OS X.\n# Builds wheels for multiple Python versions, using pyenv instead of Docker.\n# Usage: run from root of ...
Python
Apache License 2.0
google/jax
fix typo in build_jaxlib_wheels_macos.sh
260,335
16.05.2019 10:20:37
25,200
fc226dab406643a6e26df51891388eed0ff3b154
update jaxlib references to 0.1.15
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -164,7 +164,7 @@ PYTHON_VERSION=cp27 # alternatives: cp27, cp35, cp36, cp37\nCUDA_VERSION=cuda92 # alternatives: cuda90, cuda92, cuda100\nPLATFORM=linux_x86_64 # alternatives: linux_x86_64\nBASE_URL='https://sto...
Python
Apache License 2.0
google/jax
update jaxlib references to 0.1.15
260,335
16.05.2019 10:32:28
25,200
b68ed2787ab3838b64ff8ebdc57bf97528a7c344
fix randint docstring
[ { "change_type": "MODIFY", "old_path": "jax/random.py", "new_path": "jax/random.py", "diff": "@@ -277,8 +277,10 @@ def randint(key, shape, minval, maxval, dtype=onp.int32):\nArgs:\nkey: a PRNGKey used as the random key.\nshape: a tuple of nonnegative integers representing the shape.\n- minval: optio...
Python
Apache License 2.0
google/jax
fix randint docstring
260,335
17.05.2019 07:36:52
25,200
b6031ffdd752f6ae6b08b47018a04906a4abd9c8
avoid packing leaf outputs for jit/pmap funs
[ { "change_type": "MODIFY", "old_path": "jax/api.py", "new_path": "jax/api.py", "diff": "@@ -41,7 +41,7 @@ from . import linear_util as lu\nfrom .core import pack, eval_jaxpr\nfrom .api_util import (pytree_fun_to_jaxtupletree_fun, pytree_to_jaxtupletree,\npytree_fun_to_flatjaxtuple_fun, apply_jaxtree...
Python
Apache License 2.0
google/jax
avoid packing leaf outputs for jit/pmap funs
260,335
17.05.2019 09:08:08
25,200
dad9193397e326cfeced8e141172e7a8077d4019
make pmap catch device-count errors (+ tests)
[ { "change_type": "MODIFY", "old_path": "jax/interpreters/pxla.py", "new_path": "jax/interpreters/pxla.py", "diff": "@@ -479,6 +479,10 @@ def merged_aval(pval):\ndef execute_replicated(compiled, pval, nrep, handle_in,\nhandle_replica_result, handle_full_result, *args):\n+ if not nrep < xb.device_coun...
Python
Apache License 2.0
google/jax
make pmap catch device-count errors (+ tests)
260,335
17.05.2019 10:25:26
25,200
f864edf777aee195156d2e7c5d9024009c17e52e
revise nested pmap gather to CRS-based impl
[ { "change_type": "MODIFY", "old_path": "jax/interpreters/pxla.py", "new_path": "jax/interpreters/pxla.py", "diff": "@@ -182,6 +182,7 @@ def replica_groups(nrep, mesh_spec, mesh_axes):\ndef xla_shard(c, sizes, x):\n\"\"\"Analog of shard_arg that performs sharding within an XLA computation.\"\"\"\n+\n...
Python
Apache License 2.0
google/jax
revise nested pmap gather to CRS-based impl
260,335
17.05.2019 12:27:09
25,200
9b1af47a590f3d3b7ece9ada88fdad8bab4b753e
improve documetnation of lax parallel operators
[ { "change_type": "MODIFY", "old_path": "docs/jax.lax.rst", "new_path": "docs/jax.lax.rst", "diff": "@@ -139,9 +139,8 @@ Parallelism support is experimental.\n.. autosummary::\n:toctree: _autosummary\n- pcollect\n- pmax\n- psplit\n- psplit_like\npsum\n+ pmax\n+ pmin\npswapaxes\n+ ppermute\n" }, {...
Python
Apache License 2.0
google/jax
improve documetnation of lax parallel operators
260,335
17.05.2019 12:38:45
25,200
b1fd8e6eb60ba6f5cf219242ec6172167cadc33e
add test for DeviceConstant repr
[ { "change_type": "MODIFY", "old_path": "jax/lax/lax.py", "new_path": "jax/lax/lax.py", "diff": "@@ -3646,7 +3646,7 @@ class _IotaConstant(xla.DeviceConstant):\ndef __init__(self, dtype, shape, axis):\nself.shape = shape\n- self.dtype = dtype\n+ self.dtype = onp.dtype(dtype)\nself.ndim = len(shape)\n...
Python
Apache License 2.0
google/jax
add test for DeviceConstant repr
260,335
17.05.2019 12:46:11
25,200
8f9e4b12606abd89c5b44125dc75bafdad375721
BroadcastedIota needs integer type (fixes
[ { "change_type": "MODIFY", "old_path": "jax/lax/lax.py", "new_path": "jax/lax/lax.py", "diff": "@@ -3700,7 +3700,7 @@ class _EyeConstant(xla.DeviceConstant):\nelse:\netype = xla_bridge.dtype_to_etype_exact(diag_const.dtype)\netype = xla_bridge.dtype_to_etype(diag_const.dtype)\n- iotas = [c.Broadcast...
Python
Apache License 2.0
google/jax
BroadcastedIota needs integer type (fixes #728)
260,335
17.05.2019 13:01:45
25,200
3b66c7eae79cdb2a2e1d8893cebfd32b827168e4
add more tests that would have caught
[ { "change_type": "MODIFY", "old_path": "tests/lax_test.py", "new_path": "tests/lax_test.py", "diff": "@@ -1352,7 +1352,7 @@ class DeviceConstantTest(jtu.JaxTestCase):\nfill_value),\n\"shape\": shape, \"dtype\": dtype, \"fill_value\": fill_value}\nfor dtype in itertools.chain(default_dtypes, [None])\...
Python
Apache License 2.0
google/jax
add more tests that would have caught #728
260,474
17.05.2019 16:54:27
14,400
7c348588d0baaabc2fd61a4aa05403422026e471
Fix typo in BatchTrace.post_process_call
[ { "change_type": "MODIFY", "old_path": "jax/interpreters/batching.py", "new_path": "jax/interpreters/batching.py", "diff": "@@ -136,7 +136,7 @@ class BatchTrace(Trace):\nmaster = self.master\ndef todo(x):\ntrace = BatchTrace(master, core.cur_sublevel())\n- return BatchTracer(trace, val, dim)\n+ retu...
Python
Apache License 2.0
google/jax
Fix typo in BatchTrace.post_process_call
260,335
17.05.2019 13:56:39
25,200
bb5cbaabaab033a78107987309161041cfa1780b
catch pmap num_devices errors at compile time too
[ { "change_type": "MODIFY", "old_path": "jax/interpreters/pxla.py", "new_path": "jax/interpreters/pxla.py", "diff": "@@ -246,6 +246,10 @@ def axis_groups(axis_env, name):\ndef compile_replicated(jaxpr, axis_name, axis_size, consts, *abstract_args):\nnum_replicas = axis_size * jaxpr_replicas(jaxpr)\n+...
Python
Apache License 2.0
google/jax
catch pmap num_devices errors at compile time too
260,335
20.05.2019 06:59:20
25,200
560b0ba97bc5bdc8ecba09d81172afce74eab408
mention numpy promotion differences in README
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -726,14 +726,24 @@ code to compile and end-to-end optimize much bigger functions.\n## Current gotchas\n-For a survey of current gotchas, with examples and explanations, we highly recommend reading the [Gotchas N...
Python
Apache License 2.0
google/jax
mention numpy promotion differences in README
260,335
20.05.2019 07:06:43
25,200
0ac4e4b0ac3c8d4f2d2ee530ac23777cfc3778f9
test cleanup per review
[ { "change_type": "MODIFY", "old_path": "tests/lax_numpy_test.py", "new_path": "tests/lax_numpy_test.py", "diff": "@@ -219,13 +219,9 @@ JAX_OPERATOR_OVERLOADS = [\nop_record(\"__invert__\", 1, int_dtypes, all_shapes, jtu.rand_default(), []),\n# TODO(mattjj): investigate these failures\n# op_record(\"...
Python
Apache License 2.0
google/jax
test cleanup per review
260,335
20.05.2019 09:09:32
25,200
4ab26774369deba4ac9b95ce54e627a1f55a0648
fix bug in scan utility _convert_zeros also add some additional checks to catch errors sooner fixes
[ { "change_type": "MODIFY", "old_path": "jax/lax/lax_control_flow.py", "new_path": "jax/lax/lax_control_flow.py", "diff": "@@ -428,16 +428,25 @@ def _maybe_tracer_tuple_to_abstract_tuple(tup):\n### scan\n-def _convert_zeros(convert_symbolic, example, tangent):\n- if tangent is ad.zero:\n- if not conv...
Python
Apache License 2.0
google/jax
fix bug in scan utility _convert_zeros also add some additional checks to catch errors sooner fixes #711 Co-authored-by: Dougal Maclaurin <dougalm@google.com>
260,335
20.05.2019 10:08:33
25,200
88f691f89663236427483db3707521de7e893b62
make namedtuples transparent (act as pytree nodes)
[ { "change_type": "MODIFY", "old_path": "jax/tree_util.py", "new_path": "jax/tree_util.py", "diff": "@@ -56,7 +56,7 @@ def tree_map(f, tree):\nleaf given by `f(x)` where `x` is the value at the corresponding leaf in\n`tree`.\n\"\"\"\n- node_type = node_types.get(type(tree))\n+ node_type = _get_node_t...
Python
Apache License 2.0
google/jax
make namedtuples transparent (act as pytree nodes)
260,335
20.05.2019 10:15:20
25,200
ca66c7693e74aa9f78e514fed3c40cbeef2694bf
add test for namedtuple transparency
[ { "change_type": "MODIFY", "old_path": "tests/api_test.py", "new_path": "tests/api_test.py", "diff": "@@ -16,11 +16,11 @@ from __future__ import absolute_import\nfrom __future__ import division\nfrom __future__ import print_function\n-import six\n+import collections\n-import numpy as onp\nfrom absl....
Python
Apache License 2.0
google/jax
add test for namedtuple transparency
260,335
20.05.2019 11:13:42
25,200
adb15b7f4f53f7977d42f81514475328b8d8d46b
revise optimizers.py docstrings (no JaxTuples)
[ { "change_type": "MODIFY", "old_path": "jax/experimental/optimizers.py", "new_path": "jax/experimental/optimizers.py", "diff": "@@ -91,14 +91,9 @@ zip = safe_zip\n# as defining an \"outer pytree\", and a pytree produced by applying init_fun to\n# each leaf of the params pytree, which we can think of...
Python
Apache License 2.0
google/jax
revise optimizers.py docstrings (no JaxTuples)
260,335
20.05.2019 11:49:09
25,200
f8aa563db1fe91fecea0cbfcba4ca49690d10141
make jax.numpy.array(3) give 0D array, not scalar the mechanism is to use lax.reshape (which was already there) and avoid the optimization that skipped actually calling reshape_p.bind fixes
[ { "change_type": "MODIFY", "old_path": "jax/lax/lax.py", "new_path": "jax/lax/lax.py", "diff": "@@ -514,7 +514,7 @@ def reshape(operand, new_sizes, dimensions=None):\n\"\"\"\nsame_shape = onp.shape(operand) == tuple(new_sizes)\nsame_dims = dimensions is None or tuple(dimensions) == tuple(range(onp.n...
Python
Apache License 2.0
google/jax
make jax.numpy.array(3) give 0D array, not scalar the mechanism is to use lax.reshape (which was already there) and avoid the optimization that skipped actually calling reshape_p.bind fixes #121
260,335
20.05.2019 17:11:18
25,200
d0e1b7be350bc4d705dd5a7193eea2b1b2984197
wrap np.trace axes (fixes
[ { "change_type": "MODIFY", "old_path": "jax/numpy/lax_numpy.py", "new_path": "jax/numpy/lax_numpy.py", "diff": "@@ -1444,6 +1444,9 @@ def trace(a, offset=0, axis1=0, axis2=1, dtype=None, out=None):\nif out:\nraise NotImplementedError(\"The 'out' argument to trace is not supported.\")\n+ axis1 = axis...
Python
Apache License 2.0
google/jax
wrap np.trace axes (fixes #738)