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 | 22.02.2019 20:42:07 | 28,800 | 1171626b99ab070befe52cc1d3d69f77177b0546 | fix symbolic zero handling in sub transpose
fixes | [
{
"change_type": "MODIFY",
"old_path": "jax/lax.py",
"new_path": "jax/lax.py",
"diff": "@@ -1363,7 +1363,7 @@ ad.primitive_transposes[add_p] = _add_transpose\ndef _sub_transpose(t, x, y):\nassert x is None and y is None # computation must be linear, not affine\n- return [t, neg(t)]\n+ return [t, neg... | Python | Apache License 2.0 | google/jax | fix symbolic zero handling in sub transpose
fixes #433 |
260,335 | 22.02.2019 21:34:41 | 28,800 | eacf0650a59ec770d509bace35e9116da6c949d3 | nested pjit split/join (internal tests pass) | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/pxla.py",
"new_path": "jax/interpreters/pxla.py",
"diff": "@@ -73,8 +73,8 @@ def replica_groups(mesh_spec, mesh_axis):\nAxisEnv = namedtuple(\"AxisEnv\", [\"names\", \"sizes\"])\n-def extend_env(axis_env, name, size):\n- return AxisEnv(axis_en... | Python | Apache License 2.0 | google/jax | nested pjit split/join (internal tests pass) |
260,335 | 23.02.2019 08:09:36 | 28,800 | 8a2fd90b164b1eece5f6f01ad3a5e7718af2f935 | fix typo in pxla | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/pxla.py",
"new_path": "jax/interpreters/pxla.py",
"diff": "@@ -150,7 +150,7 @@ def replicated_comp(jaxpr, axis_env, const_vals, freevar_shapes, *arg_shapes):\ndef xla_split(c, axis_sizes, x):\ndef _xla_split(shape, x):\nif shape.is_tuple():\n-... | Python | Apache License 2.0 | google/jax | fix typo in pxla |
260,335 | 23.02.2019 12:33:56 | 28,800 | 12ed52eab5bb3c570d326a0bd6faa85f12e5d577 | fix typo in a lax error message | [
{
"change_type": "MODIFY",
"old_path": "jax/lax.py",
"new_path": "jax/lax.py",
"diff": "@@ -1860,7 +1860,7 @@ def _broadcast_in_dim_shape_rule(operand, shape, broadcast_dimensions):\nbroadcast_dimensions)\nif operand.ndim != len(broadcast_dimensions):\nmsg = ('broadcast_in_dim broadcast_dimensions m... | Python | Apache License 2.0 | google/jax | fix typo in a lax error message |
260,335 | 23.02.2019 20:34:14 | 28,800 | bdd54d660ef66410c83e2d24fec096710129dc8b | fix up transpose-of-pjit | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/ad.py",
"new_path": "jax/interpreters/ad.py",
"diff": "@@ -16,13 +16,15 @@ from __future__ import absolute_import\nfrom __future__ import division\nfrom __future__ import print_function\n+import itertools as it\n+\nfrom . import partial_eval a... | Python | Apache License 2.0 | google/jax | fix up transpose-of-pjit |
260,335 | 23.02.2019 20:38:35 | 28,800 | dd75c564d35e8159cc985620d749e504a6b92d13 | todo note cleanup | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/pxla.py",
"new_path": "jax/interpreters/pxla.py",
"diff": "@@ -153,7 +153,8 @@ def replicated_comp(jaxpr, axis_env, const_vals, freevar_shapes, *arg_shapes):\ndef xla_split(c, axis_sizes, x):\ndef split_array(shape, x):\nif xb.get_replica_coun... | Python | Apache License 2.0 | google/jax | todo note cleanup |
260,335 | 24.02.2019 09:00:21 | 28,800 | 6ee3c4a8fe5efab054acdc2ae8546712cd2dbbe6 | simplify map_transpose summing | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/ad.py",
"new_path": "jax/interpreters/ad.py",
"diff": "@@ -411,15 +411,9 @@ def map_transpose(primitive, params, jaxpr, consts, freevar_vals, args, ct):\nall_args = pack((pack(args), pack(consts), ct))\nans = primitive.bind(fun, all_args, **pa... | Python | Apache License 2.0 | google/jax | simplify map_transpose summing |
260,335 | 24.02.2019 10:58:38 | 28,800 | b61b6e11200a67cab087e3b1bdb5c473ec46a644 | replace global replica count with per-comp config | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/pxla.py",
"new_path": "jax/interpreters/pxla.py",
"diff": "@@ -45,25 +45,28 @@ map = safe_map\n### util\n-def shard_arg(arg):\n+def shard_arg(nrep, arg):\nsz = arg.shape[0]\nshards = [arg[i] for i in range(sz)]\n- return [xb.device_put(shards[... | Python | Apache License 2.0 | google/jax | replace global replica count with per-comp config |
260,335 | 24.02.2019 12:02:17 | 28,800 | ffdee451606a00be2d5a0cde8dc95463a60d588e | tweak todo comment | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/pxla.py",
"new_path": "jax/interpreters/pxla.py",
"diff": "@@ -257,7 +257,7 @@ xla_pcall_p.def_custom_bind(xla_pcall)\nxla_pcall_p.def_impl(xla_pcall_impl)\nad.primitive_transposes[xla_pcall_p] = partial(ad.map_transpose, xla_pcall_p)\npe.map_... | Python | Apache License 2.0 | google/jax | tweak todo comment |
260,335 | 24.02.2019 15:21:00 | 28,800 | 2361f08eb45ab1fcf12bc65cbf1b724fbe388c64 | sketch basic sharded device persistence (no tests) | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/pxla.py",
"new_path": "jax/interpreters/pxla.py",
"diff": "@@ -27,7 +27,7 @@ from .. import core\nfrom .. import ad_util\nfrom .. import tree_util\nfrom .. import linear_util as lu\n-from ..abstract_arrays import ShapedArray\n+from ..abstract_... | Python | Apache License 2.0 | google/jax | sketch basic sharded device persistence (no tests) |
260,335 | 24.02.2019 15:25:10 | 28,800 | 7e93bff2b95e6f49be7e2cd310e8953bbbdcdc9d | fix batchnorm square vs sqrt error (fixes | [
{
"change_type": "MODIFY",
"old_path": "jax/experimental/stax.py",
"new_path": "jax/experimental/stax.py",
"diff": "@@ -137,7 +137,7 @@ def BatchNorm(axis=(0, 1, 2), epsilon=1e-5, center=True, scale=True,\ndef apply_fun(params, x, rng=None):\nbeta, gamma = params\nmean, var = np.mean(x, axis, keepdi... | Python | Apache License 2.0 | google/jax | fix batchnorm square vs sqrt error (fixes #442) |
260,335 | 24.02.2019 15:36:20 | 28,800 | caac8c82a7100ab9dec26a3077dab3b55a48fc1b | minor cleanup of sharded device-persistent values | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/pxla.py",
"new_path": "jax/interpreters/pxla.py",
"diff": "@@ -47,22 +47,16 @@ map = safe_map\ndef shard_arg(nrep, arg):\nif type(arg) is ShardedDeviceArray and arg.nrep == nrep:\n- return arg.device_buffer\n+ return arg.device_buffers\nelse:\... | Python | Apache License 2.0 | google/jax | minor cleanup of sharded device-persistent values |
260,335 | 24.02.2019 18:33:59 | 28,800 | b667ac19dc975a7ccefd0b11d5c7e3bc4fa8fae9 | add constant handler for ShardedDeviceArray | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/pxla.py",
"new_path": "jax/interpreters/pxla.py",
"diff": "@@ -240,6 +240,9 @@ xla.pytype_aval_mappings[ShardedDeviceArray] = \\\nxla.canonicalize_dtype_handlers[ShardedDeviceArray] = \\\nxla.canonicalize_dtype_handlers[xla.DeviceArray]\n+xb.r... | Python | Apache License 2.0 | google/jax | add constant handler for ShardedDeviceArray |
260,335 | 24.02.2019 18:49:48 | 28,800 | b90f5d80cdf9b2e820f08879d569e5dd832ea847 | use 'device_num' not 'replica_num', leave a todo | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/pxla.py",
"new_path": "jax/interpreters/pxla.py",
"diff": "@@ -44,7 +44,6 @@ map = safe_map\n### util\n-\ndef shard_arg(nrep, arg):\nif type(arg) is ShardedDeviceArray and arg.nrep == nrep:\nreturn arg.device_buffers\n@@ -61,6 +60,7 @@ def uns... | Python | Apache License 2.0 | google/jax | use 'device_num' not 'replica_num', leave a todo |
260,477 | 25.02.2019 09:53:08 | 28,800 | 0b60efb6ce81fbfb0a38853c638a20686aa6d0d0 | Add maml tutorial notebook. | [
{
"change_type": "MODIFY",
"old_path": "notebooks/maml.ipynb",
"new_path": "notebooks/maml.ipynb",
"diff": "\"- how to fit a sinusoid function with a neural network (and do auto-batching with vmap)\\n\",\n\"- how to implement MAML and check its numerics\\n\",\n\"- how to implement MAML for sinusoid ... | Python | Apache License 2.0 | google/jax | Add maml tutorial notebook. |
260,335 | 25.02.2019 10:14:47 | 28,800 | 3dc3f4dc7df502b05fcec1c325a217bf48e75f8d | fix some ShardedDeviceArray logic | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/pxla.py",
"new_path": "jax/interpreters/pxla.py",
"diff": "@@ -44,24 +44,64 @@ map = safe_map\n### util\n-def shard_arg(nrep, arg):\n+def shard_arg(device_ordinals, nrep, arg):\n+ \"\"\"Shard an argument data array arg along its leading axis.\... | Python | Apache License 2.0 | google/jax | fix some ShardedDeviceArray logic |
260,335 | 25.02.2019 13:40:17 | 28,800 | 8c5e41042b82b5dc6bc0506422d00720e7d7afa0 | fix bug in instantiate_device_constant | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/xla.py",
"new_path": "jax/interpreters/xla.py",
"diff": "@@ -359,11 +359,12 @@ class DeviceConstant(DeviceArray):\ndef instantiate_device_constant(const, cutoff=1e6, device_num=0):\n# dispatch an XLA Computation to build the constant on the de... | Python | Apache License 2.0 | google/jax | fix bug in instantiate_device_constant |
260,335 | 25.02.2019 13:48:01 | 28,800 | a37703552faa536152009bebaa4bc800d5318c92 | add test for device constant compile options bug | [
{
"change_type": "MODIFY",
"old_path": "tests/api_test.py",
"new_path": "tests/api_test.py",
"diff": "@@ -337,6 +337,9 @@ class APITest(jtu.JaxTestCase):\nf(2)\nassert len(effects) == 3\n+ def test_large_device_constant(self):\n+ jit(lambda x: x)(np.zeros(int(2e6))) # doesn't crash\n+\nif __name__ =... | Python | Apache License 2.0 | google/jax | add test for device constant compile options bug |
260,335 | 25.02.2019 13:49:40 | 28,800 | 7701feb66c68d0be6970f31495a652463f48be52 | revise large device constant test | [
{
"change_type": "MODIFY",
"old_path": "tests/api_test.py",
"new_path": "tests/api_test.py",
"diff": "@@ -338,7 +338,8 @@ class APITest(jtu.JaxTestCase):\nassert len(effects) == 3\ndef test_large_device_constant(self):\n- jit(lambda x: x)(np.zeros(int(2e6))) # doesn't crash\n+ ans = jit(lambda x: 2 ... | Python | Apache License 2.0 | google/jax | revise large device constant test |
260,335 | 27.02.2019 07:42:26 | 28,800 | 02124e31bf00f650bb1cbf66114244a005acf881 | fix bug in transpose with order='F' (fixes | [
{
"change_type": "MODIFY",
"old_path": "jax/numpy/lax_numpy.py",
"new_path": "jax/numpy/lax_numpy.py",
"diff": "@@ -597,19 +597,18 @@ def angle(x):\n@_wraps(onp.reshape)\ndef reshape(a, newshape, order=\"C\"): # pylint: disable=missing-docstring\n- if order == \"C\" or order is None:\n- dims = None\... | Python | Apache License 2.0 | google/jax | fix bug in transpose with order='F' (fixes #453) |
260,335 | 27.02.2019 07:50:19 | 28,800 | c8b9fe23d65555a9bd5329f7024b6bcccfc9879c | fix in full, more exhaustive tests | [
{
"change_type": "MODIFY",
"old_path": "jax/numpy/lax_numpy.py",
"new_path": "jax/numpy/lax_numpy.py",
"diff": "@@ -603,7 +603,8 @@ def reshape(a, newshape, order=\"C\"): # pylint: disable=missing-docstring\nif order == \"C\":\nreturn lax.reshape(a, computed_newshape, None)\nelif order == \"F\":\n- ... | Python | Apache License 2.0 | google/jax | fix #453 in full, more exhaustive tests |
260,335 | 28.02.2019 20:25:09 | 28,800 | 0927b667744bccaa496e21ff893ae957f99c5ef1 | update XLA and jaxlib | [
{
"change_type": "MODIFY",
"old_path": "WORKSPACE",
"new_path": "WORKSPACE",
"diff": "@@ -17,10 +17,10 @@ http_archive(\n# and update the sha256 with the result.\nhttp_archive(\nname = \"org_tensorflow\",\n- sha256 = \"ba253da211d3d22255ca6afa204eedd8348cae4a1e3a726684eb76e18de90df6\",\n- strip_pref... | Python | Apache License 2.0 | google/jax | update XLA and jaxlib |
260,403 | 01.03.2019 13:12:47 | 28,800 | c3cbf4a20aef44c63a0d76e9539481d266bfd4e1 | allow apply_fns to take general kwargs, not just rng | [
{
"change_type": "MODIFY",
"old_path": "jax/experimental/stax.py",
"new_path": "jax/experimental/stax.py",
"diff": "@@ -91,7 +91,7 @@ def Dense(out_dim, W_init=glorot(), b_init=randn()):\noutput_shape = input_shape[:-1] + (out_dim,)\nW, b = W_init((input_shape[-1], out_dim)), b_init((out_dim,))\nret... | Python | Apache License 2.0 | google/jax | allow apply_fns to take general kwargs, not just rng |
260,314 | 02.03.2019 19:11:16 | 18,000 | f05d0bcbd80f7e4468464bcf10d35c9be8e39621 | fix bernoulli shape bug | [
{
"change_type": "MODIFY",
"old_path": "jax/random.py",
"new_path": "jax/random.py",
"diff": "@@ -379,5 +379,5 @@ def bernoulli(key, mean=onp.float32(0.5), shape=()):\nif not onp.issubdtype(lax._dtype(mean), onp.float32):\nmean = lax.convert_element_type(mean, onp.float32)\nif onp.shape(mean) != sha... | Python | Apache License 2.0 | google/jax | fix bernoulli shape bug |
260,335 | 02.03.2019 17:52:28 | 28,800 | 234f48769f648e80007e415cc1a9bf664a606df3 | get rid of lax's OpaqueParams class
That class was once used for smuggling consts into primitives for
lax.while_loop and lax.cond, but it's no longer needed because those
bind rules take constants as positional arguments now (and hence handle
closed-over tracers). | [
{
"change_type": "MODIFY",
"old_path": "jax/lax.py",
"new_path": "jax/lax.py",
"diff": "@@ -872,25 +872,16 @@ def while_loop(cond_fun, body_fun, init_val):\npval_flat = _abstractify(init_val_flat)\ncond_jaxpr, _, cond_consts = pe.trace_to_jaxpr(flat_cond_fun, (pval_flat,))\nbody_jaxpr, pvout, body_c... | Python | Apache License 2.0 | google/jax | get rid of lax's OpaqueParams class
That class was once used for smuggling consts into primitives for
lax.while_loop and lax.cond, but it's no longer needed because those
bind rules take constants as positional arguments now (and hence handle
closed-over tracers). |
260,335 | 02.03.2019 18:08:34 | 28,800 | 65b6f19cf8a18e8cae43f60de14d5e5d8bb2caa4 | add a better error message on cond pval join error | [
{
"change_type": "MODIFY",
"old_path": "jax/abstract_arrays.py",
"new_path": "jax/abstract_arrays.py",
"diff": "@@ -68,7 +68,10 @@ class UnshapedArray(core.AbstractValue):\nreturn self\ndef join(self, other):\n+ if self.dtype == other.dtype:\nreturn self\n+ else:\n+ raise TypeError(other)\ndef str_s... | Python | Apache License 2.0 | google/jax | add a better error message on cond pval join error |
260,335 | 28.02.2019 12:07:33 | 28,800 | b94c3fea0d1532484dc3407495f468bc95fb1b86 | fix abstract_eval_fun kwarg handling | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/partial_eval.py",
"new_path": "jax/interpreters/partial_eval.py",
"diff": "@@ -179,7 +179,7 @@ def partial_eval_wrapper(avals, *consts, **kwargs):\ndef abstract_eval_fun(fun, *avals, **params):\npvs_in = [PartialVal((a, unit)) for a in avals]\... | Python | Apache License 2.0 | google/jax | fix abstract_eval_fun kwarg handling |
260,335 | 01.03.2019 09:46:32 | 28,800 | 71d8bdc46c17bf49c993c1beecdf7ff3a2ed2852 | wip w/ phawkins | [
{
"change_type": "MODIFY",
"old_path": "jax/lax.py",
"new_path": "jax/lax.py",
"diff": "@@ -958,9 +958,19 @@ def _revise_cond_jaxpr(new_pval, old_pval, jaxpr, consts):\ndef scan(f, a, bs):\n- return scan_p.bind(a, bs, f=f)\n+ assert type(bs) is tuple\n+ assert type(a) is tuple\n-def _scan_impl(a, bs... | Python | Apache License 2.0 | google/jax | wip w/ phawkins |
260,335 | 01.03.2019 13:16:44 | 28,800 | a20e8982fa22c8e265fcff374c21ca9d8b2a3d53 | completed scan (PAIR=hawkinsp@) | [
{
"change_type": "MODIFY",
"old_path": "jax/core.py",
"new_path": "jax/core.py",
"diff": "@@ -475,6 +475,8 @@ class AbstractTuple(AbstractValue, tuple):\ndef __repr__(self):\nreturn '({})'.format(','.join(map(repr, self)))\n+ # TODO(mattjj,phawkins): bool, maybe getitem\n+\nunit = JaxTuple(())\nunit... | Python | Apache License 2.0 | google/jax | completed scan (PAIR=hawkinsp@) |
260,335 | 01.03.2019 13:37:49 | 28,800 | abfb7e330a2c2e555fd4850c02669eddb8c73274 | progress on scan jvp (pair w/ | [
{
"change_type": "MODIFY",
"old_path": "jax/lax.py",
"new_path": "jax/lax.py",
"diff": "@@ -964,7 +964,7 @@ def scan(f, a, bs):\nif not len(bs):\nraise TypeError(\"bs argument to scan does not contain any arrays\")\n- if any(b.ndim == 0 for b in bs):\n+ if any([b.ndim == 0 for b in bs]):\nmsg = \"bs... | Python | Apache License 2.0 | google/jax | progress on scan jvp (pair w/ @hawkinsp) |
260,335 | 02.03.2019 21:24:23 | 28,800 | ddd18dfebd53f3de1e153ef6287f49ca994ec5b1 | update scan docstring, comment-out scan jvp | [
{
"change_type": "MODIFY",
"old_path": "jax/lax.py",
"new_path": "jax/lax.py",
"diff": "@@ -958,6 +958,19 @@ def _revise_cond_jaxpr(new_pval, old_pval, jaxpr, consts):\ndef scan(f, a, bs):\n+ \"\"\"Scans over the leading axis of an array.\n+\n+ Arguments:\n+ f: function with signature `a -> b -> a`\... | Python | Apache License 2.0 | google/jax | update scan docstring, comment-out scan jvp |
260,335 | 02.03.2019 21:30:20 | 28,800 | 1a704f50b52d0757bf768ea7e43be508ae25777b | comment out scan jvp tests (wip) | [
{
"change_type": "MODIFY",
"old_path": "tests/lax_test.py",
"new_path": "tests/lax_test.py",
"diff": "@@ -1432,7 +1432,7 @@ class LaxTest(jtu.JaxTestCase):\nself.assertAllClose(out, onp.array([9, 13, 11, 17], onp.float32),\ncheck_dtypes=True)\n- jtu.check_jvp(g, partial(api.jvp, g), (a, bs))\n+ # jt... | Python | Apache License 2.0 | google/jax | comment out scan jvp tests (wip) |
260,335 | 02.03.2019 21:39:21 | 28,800 | 66624ef51f644b1a2ff80b0b2f3f03a1be01d52d | add a test for scan-of-jit | [
{
"change_type": "MODIFY",
"old_path": "tests/lax_test.py",
"new_path": "tests/lax_test.py",
"diff": "@@ -1447,6 +1447,19 @@ class LaxTest(jtu.JaxTestCase):\n# jtu.check_jvp(g, partial(api.jvp, g), (a, bs))\n+ def testScanJit(self):\n+ @api.jit\n+ def f(x, yz):\n+ y, z = yz\n+ return 5. * lax.exp(la... | Python | Apache License 2.0 | google/jax | add a test for scan-of-jit |
260,335 | 02.03.2019 21:43:40 | 28,800 | acd9276f0dbf8a083a0b91b447577517ca8f5115 | add __bool__ to jaxtuples / abstracttuples | [
{
"change_type": "MODIFY",
"old_path": "jax/core.py",
"new_path": "jax/core.py",
"diff": "@@ -475,7 +475,9 @@ class AbstractTuple(AbstractValue, tuple):\ndef __repr__(self):\nreturn '({})'.format(','.join(map(repr, self)))\n- # TODO(mattjj,phawkins): bool, maybe getitem\n+ def __bool__(self, ignored... | Python | Apache License 2.0 | google/jax | add __bool__ to jaxtuples / abstracttuples |
260,335 | 02.03.2019 21:44:35 | 28,800 | 1e0d04a3d7b23a64188b0a64d8de4dd5d6dd87cf | fix pxla.py typo | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/pxla.py",
"new_path": "jax/interpreters/pxla.py",
"diff": "@@ -305,7 +305,7 @@ def abstractify(axis_size, x):\nreturn _shard_aval(axis_size, xla.abstractify(x))\ndef _shard_aval(axis_size, aval):\n- if type(aval) is AbstractTuple:\n+ if type(a... | Python | Apache License 2.0 | google/jax | fix pxla.py typo |
260,335 | 02.03.2019 21:49:03 | 28,800 | 4acd793f7453ae19b0c1b7c5fcc535a762301b9b | remove temporary scanplan.py brainstorm file | [
{
"change_type": "DELETE",
"old_path": "scanplan.py",
"new_path": null,
"diff": "-from functools import partial\n-import numpy as onp\n-\n-import jax.numpy as np\n-from jax import core\n-from jax import make_jaxpr, vjp, jvp\n-from jax import lax\n-\n-\n-def f(x, y):\n- return x * y\n-\n-g = partial(... | Python | Apache License 2.0 | google/jax | remove temporary scanplan.py brainstorm file |
260,335 | 06.03.2019 23:19:41 | 28,800 | 28b718fe33a716364b585d89015246a97e931e25 | add jax_debug_nans flag, time-travel debugging | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/xla.py",
"new_path": "jax/interpreters/xla.py",
"diff": "@@ -42,6 +42,9 @@ FLAGS = flags.FLAGS\nflags.DEFINE_bool('jax_device_values',\nstrtobool(os.getenv('JAX_DEVICE_VALUES', \"True\")),\n'Enable device-persistent values.')\n+flags.DEFINE_bo... | Python | Apache License 2.0 | google/jax | add jax_debug_nans flag, time-travel debugging |
260,335 | 07.03.2019 14:08:02 | 28,800 | e35d5f62b27e919ea0e85f2f4d022f6dfdf9e3d3 | add support for returning aux data from grad
fixes | [
{
"change_type": "MODIFY",
"old_path": "jax/api.py",
"new_path": "jax/api.py",
"diff": "@@ -169,7 +169,7 @@ def xla_computation(fun, static_argnums=()):\nreturn computation_maker\n-def grad(fun, argnums=0):\n+def grad(fun, argnums=0, has_aux=False):\n\"\"\"Creates a function which evaluates the grad... | Python | Apache License 2.0 | google/jax | add support for returning aux data from grad
fixes #366 |
260,335 | 07.03.2019 14:48:05 | 28,800 | caa2ed1a40c1481173e72ee52140a48d097b33e9 | fix grad-and-aux handling of constant aux data | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/ad.py",
"new_path": "jax/interpreters/ad.py",
"diff": "@@ -66,8 +66,8 @@ def jvp_subtrace_aux(master, primals, tangents):\nfor x in list(primals) + list(tangents):\nif isinstance(x, Tracer):\nassert x.trace.level < trace.level\n- ans_and_aux =... | Python | Apache License 2.0 | google/jax | fix grad-and-aux handling of constant aux data |
260,335 | 07.03.2019 14:49:29 | 28,800 | 04081a4faa4c1b10a86f4ca5669b8008c02bbefe | improve a test for grad-and-aux | [
{
"change_type": "MODIFY",
"old_path": "tests/api_test.py",
"new_path": "tests/api_test.py",
"diff": "@@ -372,6 +372,10 @@ class APITest(jtu.JaxTestCase):\nself.assertEqual(g, grad(lambda x: x**3)(4.))\nself.assertEqual(aux, [4.])\n+ g, aux = grad(lambda x: (x**3, [x**2, 4.]), has_aux=True)(4.)\n+ s... | Python | Apache License 2.0 | google/jax | improve a test for grad-and-aux |
260,335 | 07.03.2019 17:20:26 | 28,800 | 8980da1a5c1102b3385e3974e6fa40f13e35a22c | add batching rule for lax.while_loop (fixes | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/batching.py",
"new_path": "jax/interpreters/batching.py",
"diff": "@@ -35,28 +35,27 @@ from ..util import unzip2, partial, safe_map\nmap = safe_map\n-def batch(fun, in_vals, in_dims, out_dim_target):\n+def batch(fun, in_vals, in_dims, out_dim_... | Python | Apache License 2.0 | google/jax | add batching rule for lax.while_loop (fixes #441) |
260,335 | 07.03.2019 17:32:16 | 28,800 | b42d3177be4cbd58624081e71bedb83d7941e777 | add comment to _while_loop_batching_rule | [
{
"change_type": "MODIFY",
"old_path": "jax/lax.py",
"new_path": "jax/lax.py",
"diff": "@@ -3667,6 +3667,15 @@ def _while_loop_translation_rule(c, init_val, cond_consts, body_consts,\ndef _while_loop_batching_rule(batched_args, batch_dims, aval_out, cond_jaxpr,\nbody_jaxpr):\n+ # See https://github.... | Python | Apache License 2.0 | google/jax | add comment to _while_loop_batching_rule |
260,335 | 07.03.2019 18:29:59 | 28,800 | f8d0fcf0f721300b3e7e42c4fa1acefeb8bef761 | add better while_loop batching tests | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/batching.py",
"new_path": "jax/interpreters/batching.py",
"diff": "@@ -307,8 +307,16 @@ def move_dim_to_front(x, dim):\ndef dimsize(dim, x):\naval = get_aval(x)\nif type(aval) is AbstractTuple:\n- return reduce(set.union, map(partial(dimsize, ... | Python | Apache License 2.0 | google/jax | add better while_loop batching tests |
260,335 | 03.03.2019 11:26:04 | 28,800 | e2296423056a163d2ad64d2f55eabb74d563b85b | fix parallel device persistence re-placement
pair w/ | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/pxla.py",
"new_path": "jax/interpreters/pxla.py",
"diff": "@@ -44,32 +44,32 @@ map = safe_map\n### util\n-def shard_arg(device_ordinals, nrep, arg):\n+def shard_arg(device_ordinals, arg):\n\"\"\"Shard an argument data array arg along its leadi... | Python | Apache License 2.0 | google/jax | fix parallel device persistence re-placement
pair w/ @hawkinsp |
260,335 | 03.03.2019 12:44:26 | 28,800 | 1ffdfb1b52294d1ee4ed716bab9bed382e3ab279 | clean up compiled shard/unshard logic | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/pxla.py",
"new_path": "jax/interpreters/pxla.py",
"diff": "@@ -44,6 +44,7 @@ map = safe_map\n### util\n+\ndef shard_arg(device_ordinals, arg):\n\"\"\"Shard an argument data array arg along its leading axis.\n@@ -125,17 +126,9 @@ def xla_shard(... | Python | Apache License 2.0 | google/jax | clean up compiled shard/unshard logic |
260,335 | 06.03.2019 14:03:47 | 28,800 | ca802586a547d4557b8dd90b8db0288ffd2213f8 | make pjit axis name optional (for pure maps) | [
{
"change_type": "MODIFY",
"old_path": "jax/api.py",
"new_path": "jax/api.py",
"diff": "@@ -423,8 +423,10 @@ def vmap(fun, in_axes=0, out_axes=0):\nreturn batched_fun\n-def pjit(fun, axis_name):\n+def pjit(fun, axis_name=None):\n\"\"\"Set up SPMD function for JIT compilation and parallel execution w... | Python | Apache License 2.0 | google/jax | make pjit axis name optional (for pure maps) |
260,335 | 06.03.2019 14:36:47 | 28,800 | ae4dc078875950f1626c2f388dc51e9efa0040e4 | rename pmap -> serial_pmap, pjit -> pmap | [
{
"change_type": "MODIFY",
"old_path": "jax/api.py",
"new_path": "jax/api.py",
"diff": "@@ -423,7 +423,7 @@ def vmap(fun, in_axes=0, out_axes=0):\nreturn batched_fun\n-def pjit(fun, axis_name=None):\n+def pmap(fun, axis_name=None):\n\"\"\"Set up SPMD function for JIT compilation and parallel executi... | Python | Apache License 2.0 | google/jax | rename pmap -> serial_pmap, pjit -> pmap |
260,335 | 06.03.2019 15:20:43 | 28,800 | ab0c0585daca96c1e6c869c4bf056fec3d9613d7 | update build file to work with cuda nccl | [
{
"change_type": "MODIFY",
"old_path": "build/build.py",
"new_path": "build/build.py",
"diff": "@@ -176,6 +176,9 @@ build --define=no_gcp_support=true\nbuild --define=no_hdfs_support=true\nbuild --define=no_kafka_support=true\nbuild --define=no_ignite_support=true\n+\n+build:cuda --crosstool_top=@lo... | Python | Apache License 2.0 | google/jax | update build file to work with cuda nccl |
260,335 | 06.03.2019 17:28:28 | 28,800 | 07d74c7c8416b28cea5986909ce278c8cddde746 | add device_count() function to xla_bridge | [
{
"change_type": "MODIFY",
"old_path": "jax/lib/xla_bridge.py",
"new_path": "jax/lib/xla_bridge.py",
"diff": "@@ -164,6 +164,10 @@ def _get_backend():\nreturn backend()\n+def device_count():\n+ return _get_backend().device_count()\n+\n+\ndef device_put(pyval, device_num=0):\nclient = get_xla_client(... | Python | Apache License 2.0 | google/jax | add device_count() function to xla_bridge |
260,335 | 06.03.2019 17:49:16 | 28,800 | 895169d84d5eea85fbe6419f0f8e6aa9578960c1 | add spmd toy | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "spmd_toy.py",
"diff": "+from functools import partial\n+import operator as op\n+\n+import numpy as onp\n+\n+import jax.numpy as np\n+from jax import pmap, grad\n+from jax import lax\n+from jax.tree_util import tree_map\n+from jax.lib.xla_bridge ... | Python | Apache License 2.0 | google/jax | add spmd toy |
260,335 | 08.03.2019 09:59:03 | 28,800 | 15da530b033819b2bc2ef762f71a7cb6e56c7867 | add spmd mnist example | [
{
"change_type": "MODIFY",
"old_path": "examples/mnist_classifier_fromscratch.py",
"new_path": "examples/mnist_classifier_fromscratch.py",
"diff": "@@ -59,7 +59,7 @@ def accuracy(params, batch):\nif __name__ == \"__main__\":\n- layer_sizes = [784, 1024, 1024, 10] # TODO(mattjj): revise to standard a... | Python | Apache License 2.0 | google/jax | add spmd mnist example |
260,335 | 08.03.2019 16:09:22 | 28,800 | 9361d617293bc9ce4a3674e3542331ef4038c5d0 | generalize while_loop vmap rule to handle tuples | [
{
"change_type": "MODIFY",
"old_path": "jax/lax.py",
"new_path": "jax/lax.py",
"diff": "@@ -3703,13 +3703,22 @@ def _while_loop_batching_rule(batched_args, batch_dims, aval_out, cond_jaxpr,\ndef lifted(loop_carry, cond_consts, body_consts):\npred = core.eval_jaxpr(cond_jaxpr, cond_consts, (), loop_c... | Python | Apache License 2.0 | google/jax | generalize while_loop vmap rule to handle tuples |
260,335 | 08.03.2019 16:16:39 | 28,800 | 58659182949761b0bd7e3fcccc3fd651444be1f6 | add fori_loop batching test | [
{
"change_type": "MODIFY",
"old_path": "tests/batching_test.py",
"new_path": "tests/batching_test.py",
"diff": "@@ -879,6 +879,20 @@ class BatchingTest(jtu.JaxTestCase):\nexpected = (onp.array([4, 3]), onp.array([1, 2]))\nself.assertAllClose(ans, expected, check_dtypes=False)\n+ def testForiLoop(sel... | Python | Apache License 2.0 | google/jax | add fori_loop batching test |
260,403 | 09.03.2019 17:31:07 | 28,800 | 4e02a607e0a13a1ab244964c5cda38682dae3162 | fix the broken gufuncs.ipynb notebook | [
{
"change_type": "MODIFY",
"old_path": "notebooks/gufuncs.ipynb",
"new_path": "notebooks/gufuncs.ipynb",
"diff": "\"\\n\",\n\"## What is a gufunc?\\n\",\n\"\\n\",\n- \"[Generalized universal functions](https://docs.scipy.org/doc/numpy-1.15.0/reference/c-api.generalized-ufuncs.html) (\\\"gufuncs\\\")... | Python | Apache License 2.0 | google/jax | fix the broken gufuncs.ipynb notebook |
260,403 | 09.03.2019 18:04:45 | 28,800 | e07d557e173e86868990f1a22b57b2cf3370e873 | fix notebooks that did not install jax/jaxlib for interactive colab use | [
{
"change_type": "MODIFY",
"old_path": "notebooks/maml.ipynb",
"new_path": "notebooks/maml.ipynb",
"diff": "\"- extending MAML to handle batching at the task-level\\n\"\n]\n},\n+ {\n+ \"metadata\": {\n+ \"colab_type\": \"code\",\n+ \"id\": \"PaW85yP_BrCF\",\n+ \"colab\": {}\n+ },\n+ \"cell_type\": \... | Python | Apache License 2.0 | google/jax | fix notebooks that did not install jax/jaxlib for interactive colab use |
260,335 | 11.03.2019 15:59:09 | 25,200 | 6881252fb57b33b952768f3f220002c7e87593b4 | fix dtype issue in new test | [
{
"change_type": "MODIFY",
"old_path": "tests/batching_test.py",
"new_path": "tests/batching_test.py",
"diff": "@@ -917,7 +917,7 @@ class BatchingTest(jtu.JaxTestCase):\ndef f(key):\ndef body_fn(uk):\nkey = uk[1]\n- u = random.uniform(key, ())\n+ u = random.uniform(key, (), dtype=np.float64)\nkey, _... | Python | Apache License 2.0 | google/jax | fix dtype issue in new test |
260,314 | 14.03.2019 10:08:09 | 14,400 | 82938b9b5a4557ed4443e02a51d0b58025708de2 | fix logpdf shape of uniform dist | [
{
"change_type": "MODIFY",
"old_path": "jax/scipy/stats/uniform.py",
"new_path": "jax/scipy/stats/uniform.py",
"diff": "@@ -20,14 +20,14 @@ import numpy as onp\nimport scipy.stats as osp_stats\nfrom ... import lax\n-from ...numpy.lax_numpy import _promote_args_like, _wraps, where, inf, logical_or\n+... | Python | Apache License 2.0 | google/jax | fix logpdf shape of uniform dist |
260,314 | 14.03.2019 11:49:07 | 14,400 | cf9564ca374b56223b21b3cf89cdb23fda0ef84c | add test for uniform shape | [
{
"change_type": "MODIFY",
"old_path": "jax/scipy/stats/uniform.py",
"new_path": "jax/scipy/stats/uniform.py",
"diff": "@@ -27,7 +27,8 @@ from ...numpy.lax_numpy import _promote_args_like, _wraps, where, inf, logical_o\ndef logpdf(x, loc=0, scale=1):\nx, loc, scale = _promote_args_like(osp_stats.uni... | Python | Apache License 2.0 | google/jax | add test for uniform shape |
260,285 | 14.03.2019 16:35:23 | 0 | 2ca77821642a280e11e0ec5fb29d16dcd3db56c7 | Allow negative padding in pad gradient | [
{
"change_type": "MODIFY",
"old_path": "jax/lax.py",
"new_path": "jax/lax.py",
"diff": "@@ -2356,20 +2356,16 @@ def _pad_shape_rule(operand, padding_value, padding_config):\ndef _pad_transpose(t, operand, padding_value, padding_config):\nlo, hi, interior = zip(*padding_config)\n- if onp.any(onp.less... | Python | Apache License 2.0 | google/jax | Allow negative padding in pad gradient |
260,314 | 14.03.2019 23:11:00 | 14,400 | 5e6d48852eea01c33c5b2df03a30382c15c3f032 | use simpler fix | [
{
"change_type": "MODIFY",
"old_path": "jax/scipy/stats/uniform.py",
"new_path": "jax/scipy/stats/uniform.py",
"diff": "@@ -26,9 +26,7 @@ from ...numpy.lax_numpy import _promote_args_like, _wraps, where, inf, logical_o\n@_wraps(osp_stats.uniform.logpdf)\ndef logpdf(x, loc=0, scale=1):\nx, loc, scale... | Python | Apache License 2.0 | google/jax | use simpler fix |
260,314 | 14.03.2019 23:12:07 | 14,400 | ab2de951a013a24474778b5ab1e598c449a377ea | no need broadcast_to | [
{
"change_type": "MODIFY",
"old_path": "jax/scipy/stats/uniform.py",
"new_path": "jax/scipy/stats/uniform.py",
"diff": "@@ -20,7 +20,7 @@ import numpy as onp\nimport scipy.stats as osp_stats\nfrom ... import lax\n-from ...numpy.lax_numpy import _promote_args_like, _wraps, where, inf, logical_or, bro... | Python | Apache License 2.0 | google/jax | no need broadcast_to |
260,314 | 14.03.2019 23:14:35 | 14,400 | 5bc452a698d74040385c4049ddd2b9db246c839d | revert lax import in scipy_stats_test | [
{
"change_type": "MODIFY",
"old_path": "tests/scipy_stats_test.py",
"new_path": "tests/scipy_stats_test.py",
"diff": "@@ -25,7 +25,6 @@ import numpy as onp\nimport scipy.stats as osp_stats\nfrom scipy.stats import random_correlation\n-from jax import lax\nfrom jax import test_util as jtu\nfrom jax.s... | Python | Apache License 2.0 | google/jax | revert lax import in scipy_stats_test |
260,335 | 19.03.2019 08:32:45 | 25,200 | 518dba3e5af816bb38c2c3617432a3b6a3d695f7 | fix typo in partial_eval.join_pvals (fixes | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/partial_eval.py",
"new_path": "jax/interpreters/partial_eval.py",
"diff": "@@ -296,7 +296,7 @@ def join_pvals(pval1, pval2):\npvals1, pvals2 = zip(pv1, const1), zip(pv2, const2)\njoin_pvs, join_consts = unzip2(map(join_pvals, pvals1, pvals2))\... | Python | Apache License 2.0 | google/jax | fix typo in partial_eval.join_pvals (fixes #514) |
260,335 | 19.03.2019 16:38:42 | 25,200 | 0e749f29efdfbeeb56914cc9e93b5b983dc54f7b | use unittest.SkipTest to skip tests properly | [
{
"change_type": "MODIFY",
"old_path": "tests/lax_scipy_test.py",
"new_path": "tests/lax_scipy_test.py",
"diff": "@@ -19,6 +19,7 @@ from __future__ import print_function\nimport collections\nimport functools\nimport itertools\n+from unittest import SkipTest\nfrom absl.testing import absltest\nfrom a... | Python | Apache License 2.0 | google/jax | use unittest.SkipTest to skip tests properly |
260,335 | 19.03.2019 16:54:55 | 25,200 | 54abf1e77ae8198b1981ab8fd313e4be812a92fe | add back in pmap tests | [
{
"change_type": "MODIFY",
"old_path": "tests/pmap_test.py",
"new_path": "tests/pmap_test.py",
"diff": "@@ -17,6 +17,7 @@ from __future__ import division\nfrom __future__ import print_function\nfrom functools import partial\n+from unittest import SkipTest\nimport numpy as onp\nfrom absl.testing impo... | Python | Apache License 2.0 | google/jax | add back in pmap tests |
260,335 | 19.03.2019 17:13:44 | 25,200 | 5e52abed18ffd5ae38ff362afea76b0f2f35172e | fix typo (missing super()) | [
{
"change_type": "MODIFY",
"old_path": "jax/lib/xla_bridge.py",
"new_path": "jax/lib/xla_bridge.py",
"diff": "@@ -313,7 +313,8 @@ class _JaxComputationBuilderBase(object):\nif split_dimension == concat_dimension and len(replica_groups[0]) == 1:\nreturn operand\nelse:\n- return self.AllToAll(operand,... | Python | Apache License 2.0 | google/jax | fix typo (missing super()) |
260,335 | 19.03.2019 17:25:18 | 25,200 | 8cfe3a38b031a64b8b3972dcd7d09e77843393c3 | remove old jax_replica_count option | [
{
"change_type": "MODIFY",
"old_path": "jax/lib/xla_bridge.py",
"new_path": "jax/lib/xla_bridge.py",
"diff": "@@ -55,7 +55,6 @@ FLAGS = flags.FLAGS\nflags.DEFINE_bool('jax_enable_x64',\nstrtobool(os.getenv('JAX_ENABLE_X64', \"False\")),\n'Enable 64-bit types to be used.')\n-flags.DEFINE_integer('jax... | Python | Apache License 2.0 | google/jax | remove old jax_replica_count option |
260,335 | 20.03.2019 17:46:16 | 25,200 | 7129d2a01eb6cb567e89a6b4e72155745e0dae63 | fix bug in nested pmap test code | [
{
"change_type": "MODIFY",
"old_path": "tests/pmap_test.py",
"new_path": "tests/pmap_test.py",
"diff": "@@ -52,11 +52,14 @@ class PmapTest(jtu.JaxTestCase):\nf = lambda x: lax.psum(lax.psum(x, 'i'), 'j')\nf = pmap(pmap(f, 'i'), 'j')\n+ def sum_and_broadcast(x, axis):\n+ return onp.repeat(onp.sum(x, ... | Python | Apache License 2.0 | google/jax | fix bug in nested pmap test code |
260,335 | 20.03.2019 18:45:46 | 25,200 | cb02507e2cac7961e7d2dc4ae014df7062728863 | add some docstrings in pxla.py | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/pxla.py",
"new_path": "jax/interpreters/pxla.py",
"diff": "@@ -109,6 +109,21 @@ def assign_shards_to_replicas(nrep, size):\nreturn tuple(indices.ravel())\ndef replica_groups(nrep, mesh_spec, mesh_axis):\n+ \"\"\"Compute XLA replica groups from... | Python | Apache License 2.0 | google/jax | add some docstrings in pxla.py |
260,335 | 21.03.2019 07:27:08 | 25,200 | b4e83ee7516d4d43ebd90041e3ac2ffbb745c5fb | avoid generating trivial lax.slice operations | [
{
"change_type": "MODIFY",
"old_path": "jax/lax.py",
"new_path": "jax/lax.py",
"diff": "@@ -556,6 +556,11 @@ def slice(operand, start_indices, limit_indices, strides=None):\n<https://www.tensorflow.org/xla/operation_semantics#slice>`_\noperator.\n\"\"\"\n+ if (onp.all(onp.equal(start_indices, 0))\n+... | Python | Apache License 2.0 | google/jax | avoid generating trivial lax.slice operations |
260,335 | 21.03.2019 07:37:43 | 25,200 | e12a3cd58d8c19ed2581607fbf43666e1845c346 | improve pmap device_num compatibility check | [
{
"change_type": "MODIFY",
"old_path": "tests/pmap_test.py",
"new_path": "tests/pmap_test.py",
"diff": "@@ -38,6 +38,21 @@ config.parse_flags_with_absl()\nclass PmapTest(jtu.JaxTestCase):\n+ def _getMeshShape(self, device_mesh_shape):\n+ device_count = xla_bridge.device_count()\n+ if any(size == -1 ... | Python | Apache License 2.0 | google/jax | improve pmap device_num compatibility check |
260,335 | 21.03.2019 09:29:33 | 25,200 | 540eb32ca8b24e88906558dc58c1a1853c474517 | fix typos caught by review | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/pxla.py",
"new_path": "jax/interpreters/pxla.py",
"diff": "@@ -96,7 +96,7 @@ def assign_shards_to_replicas(nrep, size):\n\"\"\"Produce a mapping from replica id to shard index.\nArgs:\n- nrep: int, number of relpicas (a computation-dependent v... | Python | Apache License 2.0 | google/jax | fix typos caught by review |
260,335 | 21.03.2019 15:50:06 | 25,200 | 55a28b3a8aaaccbe1f725ab012a0ad459b0b3ddc | remove JaxTuples from optimizer states | [
{
"change_type": "MODIFY",
"old_path": "jax/experimental/optimizers.py",
"new_path": "jax/experimental/optimizers.py",
"diff": "@@ -27,7 +27,8 @@ import functools\nimport jax.numpy as np\nfrom jax.core import pack\n-from jax.tree_util import tree_map, tree_multimap\n+from jax.util import partial\n+f... | Python | Apache License 2.0 | google/jax | remove JaxTuples from optimizer states |
260,335 | 21.03.2019 16:37:04 | 25,200 | ce9f8bacc9063de0ebd1dd3c6e18682b8ab4bfd2 | optimizer update must zip* the updated result too | [
{
"change_type": "MODIFY",
"old_path": "jax/experimental/optimizers.py",
"new_path": "jax/experimental/optimizers.py",
"diff": "@@ -27,9 +27,11 @@ import functools\nimport jax.numpy as np\nfrom jax.core import pack\n-from jax.util import partial\n+from jax.util import partial, safe_zip, safe_map, un... | Python | Apache License 2.0 | google/jax | optimizer update must zip* the updated result too |
260,335 | 21.03.2019 16:46:09 | 25,200 | 7be3649744afb582909d8fb4f31233ecd159baf5 | make optimizer update_fun signatures consistent | [
{
"change_type": "MODIFY",
"old_path": "jax/experimental/optimizers.py",
"new_path": "jax/experimental/optimizers.py",
"diff": "@@ -40,7 +40,7 @@ def optimizer(opt_maker):\ninit_fun, update_fun = opt_maker(*args, **kwargs)\n@functools.wraps(init_fun)\n- def fmapped_init_fun(x0_tree):\n+ def treemapp... | Python | Apache License 2.0 | google/jax | make optimizer update_fun signatures consistent |
260,335 | 21.03.2019 19:08:19 | 25,200 | 04cfa11ebe472ab8a4e1e5ef58cd2961c379e3dc | almost done with a prefix_multimap solution | [
{
"change_type": "MODIFY",
"old_path": "jax/experimental/optimizers.py",
"new_path": "jax/experimental/optimizers.py",
"diff": "@@ -28,7 +28,7 @@ import functools\nimport jax.numpy as np\nfrom jax.core import pack\nfrom jax.util import partial, safe_zip, safe_map, unzip2\n-from jax.tree_util import ... | Python | Apache License 2.0 | google/jax | almost done with a prefix_multimap solution |
260,335 | 21.03.2019 19:23:00 | 25,200 | 6fdf64d7ee5480674ba4a8dd98e3169d3f0d9bad | add back an OptState that is a proper pytree | [
{
"change_type": "MODIFY",
"old_path": "jax/experimental/optimizers.py",
"new_path": "jax/experimental/optimizers.py",
"diff": "@@ -22,13 +22,15 @@ from __future__ import absolute_import\nfrom __future__ import division\nfrom __future__ import print_function\n-import operator\n+import collections\ni... | Python | Apache License 2.0 | google/jax | add back an OptState that is a proper pytree |
260,335 | 22.03.2019 07:12:25 | 25,200 | f94c20633a58ec2f324c8d706b1ea9be10e21ac3 | back to original tree_mimomap optimizers solution | [
{
"change_type": "MODIFY",
"old_path": "jax/experimental/optimizers.py",
"new_path": "jax/experimental/optimizers.py",
"diff": "@@ -29,7 +29,7 @@ import operator\nimport jax.numpy as np\nfrom jax.core import pack\nfrom jax.util import partial, safe_zip, safe_map, unzip2\n-from jax.tree_util import (... | Python | Apache License 2.0 | google/jax | back to original tree_mimomap optimizers solution |
260,335 | 22.03.2019 07:38:40 | 25,200 | 50f52070fc2d1acb49ee60cc2ac18115ed9bff3d | comment-out new pytree check with a TODO | [
{
"change_type": "MODIFY",
"old_path": "jax/tree_util.py",
"new_path": "jax/tree_util.py",
"diff": "@@ -67,8 +67,9 @@ def tree_multimap(f, tree, *rest):\nall_children = [children]\nfor other_tree in rest:\nother_node_type = node_types.get(type(other_tree))\n- if node_type != other_node_type:\n- rais... | Python | Apache License 2.0 | google/jax | comment-out new pytree check with a TODO |
260,335 | 22.03.2019 16:55:15 | 25,200 | 629c573fd3babd46e2f2eb19942d69eeab6bf7b6 | handle numpy < 1.14 behavior of isclose | [
{
"change_type": "MODIFY",
"old_path": "jax/numpy/lax_numpy.py",
"new_path": "jax/numpy/lax_numpy.py",
"diff": "@@ -667,12 +667,25 @@ def isclose(a, b, rtol=1e-05, atol=1e-08):\ndtype = _result_dtype(real, a)\nrtol = lax.convert_element_type(rtol, dtype)\natol = lax.convert_element_type(atol, dtype)... | Python | Apache License 2.0 | google/jax | handle numpy < 1.14 behavior of isclose |
260,335 | 22.03.2019 17:09:35 | 25,200 | a2778b245c51fe0858219d2b6d6974bc1f942163 | reconcile _CheckAgainstNumpy arg order common use | [
{
"change_type": "MODIFY",
"old_path": "jax/test_util.py",
"new_path": "jax/test_util.py",
"diff": "@@ -488,7 +488,7 @@ class JaxTestCase(parameterized.TestCase):\nself.assertAllClose(python_ans, compiled_ans, check_dtypes, rtol, atol)\n- def _CheckAgainstNumpy(self, lax_op, numpy_reference_op, args... | Python | Apache License 2.0 | google/jax | reconcile _CheckAgainstNumpy arg order common use |
260,335 | 23.03.2019 14:08:15 | 25,200 | c9f9676147c585be3ce3e5688e646c838c8a3e22 | implement manual jarrett jvps | [
{
"change_type": "MODIFY",
"old_path": "jax/api.py",
"new_path": "jax/api.py",
"diff": "@@ -353,6 +353,7 @@ def hessian(fun, argnums=0):\ndef _std_basis(pytree):\nleaves, _ = tree_flatten(pytree)\nndim = sum(map(onp.size, leaves))\n+ # TODO(mattjj): use a symbolic identity matrix here\nreturn _unrav... | Python | Apache License 2.0 | google/jax | implement manual jarrett jvps |
260,335 | 23.03.2019 14:58:00 | 25,200 | 122c2df261e8b84d77061711e6f044c33ca73759 | handle pytrees in jarrett tangents | [
{
"change_type": "MODIFY",
"old_path": "jax/api.py",
"new_path": "jax/api.py",
"diff": "@@ -753,7 +753,8 @@ def jarrett(fun):\ndef elementwise_jvp(primals, tangents):\npushfwd = partial(jvp, fun, primals)\ny, jacs = vmap(pushfwd, out_axes=(None, 0))(_elementwise_std_basis(tangents))\n- out_tangent =... | Python | Apache License 2.0 | google/jax | handle pytrees in jarrett tangents |
260,335 | 23.03.2019 15:11:21 | 25,200 | 87143d8e0a0cba8b237c311929aa43697ce64f20 | add some simple tests for jarrett jvps | [
{
"change_type": "MODIFY",
"old_path": "jax/api.py",
"new_path": "jax/api.py",
"diff": "@@ -717,7 +717,7 @@ def _check_scalar(x):\nraise TypeError(msg(x))\n-def _primitive(fun):\n+def custom_transforms(fun):\nname = getattr(fun, '__name__', '<unnamed user primitive>')\nfun_p = core.Primitive(name)\n... | Python | Apache License 2.0 | google/jax | add some simple tests for jarrett jvps |
260,335 | 23.03.2019 17:10:01 | 25,200 | b041435f29a205329118a31d830920c63402fb6d | fix scalar broadcast bug in safe_mul translation | [
{
"change_type": "MODIFY",
"old_path": "jax/lax.py",
"new_path": "jax/lax.py",
"diff": "@@ -1732,8 +1732,8 @@ ad.defbilinear_broadcasting(_brcast, mul_p, mul, mul) # TODO\ndef _safe_mul_translation_rule(c, x, y):\ndtype = c.GetShape(x).numpy_dtype()\nzero = c.Constant(onp.array(0, dtype=dtype))\n- o... | Python | Apache License 2.0 | google/jax | fix scalar broadcast bug in safe_mul translation |
260,335 | 24.03.2019 07:59:50 | 25,200 | a848d0c0fecbeff685a03a256de52a70736cd24c | update readme, link gotchas notebook | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -33,7 +33,8 @@ are instances of such transformations. Another is [`vmap`](#auto-vectorization-w\nfor automatic vectorization, with more to come.\nThis is a research project, not an official Google product. Expec... | Python | Apache License 2.0 | google/jax | update readme, link gotchas notebook |
260,335 | 24.03.2019 08:50:56 | 25,200 | cefbea6a4220d0d1c074f1ed70b12808827fac3f | README should point to hosted colab for gotchas | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -33,7 +33,7 @@ are instances of such transformations. Another is [`vmap`](#auto-vectorization-w\nfor automatic vectorization, with more to come.\nThis is a research project, not an official Google product. Expec... | Python | Apache License 2.0 | google/jax | README should point to hosted colab for gotchas |
260,335 | 25.03.2019 10:37:24 | 25,200 | a169e534a81e90ac44b8e26d7721208ff22339b3 | add docstring for `jax.linearize` (fixes | [
{
"change_type": "MODIFY",
"old_path": "jax/api.py",
"new_path": "jax/api.py",
"diff": "@@ -523,10 +523,50 @@ def jvp(fun, primals, tangents):\nout_primal, out_tangent = ad.jvp(jaxtree_fun).call_wrapped(ps_flat, ts_flat)\nreturn (build_tree(out_tree(), out_primal), build_tree(out_tree(), out_tangent... | Python | Apache License 2.0 | google/jax | add docstring for `jax.linearize` (fixes #526) |
260,335 | 25.03.2019 11:03:03 | 25,200 | 54ac87957c86d0fb4800c4236ee569a2e4e5c885 | add clarification about linearize vs jvp+vmap | [
{
"change_type": "MODIFY",
"old_path": "jax/api.py",
"new_path": "jax/api.py",
"diff": "@@ -552,7 +552,17 @@ def linearize(fun, *primals):\nmeans the memory usage scales with the size of the computation, much like in\nreverse-mode. (Indeed, `linearize` has a similar signature to `vjp`!)\n- Here's a ... | Python | Apache License 2.0 | google/jax | add clarification about linearize vs jvp+vmap |
260,335 | 25.03.2019 11:27:29 | 25,200 | f5b4391f38edec765551aa0f67a670dae95fc5d3 | add jax.linearize to jax.readthedocs.io | [
{
"change_type": "MODIFY",
"old_path": "docs/jax.rst",
"new_path": "docs/jax.rst",
"diff": "@@ -18,6 +18,6 @@ Module contents\n---------------\n.. automodule:: jax\n- :members: jit, disable_jit, grad, value_and_grad, vmap, jacfwd, jacrev, hessian, jvp, vjp, make_jaxpr\n+ :members: jit, disable_jit, ... | Python | Apache License 2.0 | google/jax | add jax.linearize to jax.readthedocs.io |
260,335 | 25.03.2019 11:29:44 | 25,200 | 5704624cf9647091cf431408e0b7a60270c3a3b7 | attempt to fix readtheddocs.io formatting | [
{
"change_type": "MODIFY",
"old_path": "jax/api.py",
"new_path": "jax/api.py",
"diff": "@@ -541,7 +541,8 @@ def linearize(fun, *primals):\nproduct of `fun` evaluated at `primals` without re-doing the linearization\nwork.\n- In terms of values computed, `linearize` behaves much like a curried `jvp`::... | Python | Apache License 2.0 | google/jax | attempt to fix readtheddocs.io formatting |
260,335 | 25.03.2019 11:31:44 | 25,200 | 850e8a756a78388605745d241a7f25daa371a23b | fix typo in linearize docstring | [
{
"change_type": "MODIFY",
"old_path": "jax/api.py",
"new_path": "jax/api.py",
"diff": "@@ -575,7 +575,7 @@ def linearize(fun, *primals):\n>>> f_jvp(3.)\narray(-5.007528, dtype=float32)\n>>> f_jvp(4.)\n- array(-5.007528, dtype=float32)\n+ array(-6.676704, dtype=float32)\n\"\"\"\nf = lu.wrap_init(fun... | Python | Apache License 2.0 | google/jax | fix typo in linearize docstring |
260,609 | 25.03.2019 17:42:08 | 18,000 | 48934dc9d1ebd884781a13cb783d7db97acfa37e | Implement cross product and test cases | [
{
"change_type": "MODIFY",
"old_path": "docs/jax.numpy.rst",
"new_path": "docs/jax.numpy.rst",
"diff": "@@ -56,6 +56,7 @@ jax.numpy package\ncos\ncosh\ncount_nonzero\n+ cross\ncumsum\ncumprod\ncumproduct\n"
},
{
"change_type": "MODIFY",
"old_path": "jax/numpy/lax_numpy.py",
"new_path... | Python | Apache License 2.0 | google/jax | Implement cross product and test cases |
260,609 | 25.03.2019 19:29:49 | 18,000 | 0a5a633d2027d86e09f6e6b29bbe4890cc425a02 | Fix dtypes in cross product | [
{
"change_type": "MODIFY",
"old_path": "jax/numpy/lax_numpy.py",
"new_path": "jax/numpy/lax_numpy.py",
"diff": "@@ -1710,9 +1710,9 @@ def cross(a, b, axisa=-1, axisb=-1, axisc=-1, axis=None):\nreturn a[..., 0] * b[..., 1] - a[..., 1] * b[..., 0]\nif a_shape[-1] == 2:\n- a = concatenate((a, zeros(a_s... | Python | Apache License 2.0 | google/jax | Fix dtypes in cross product |
260,609 | 25.03.2019 20:28:21 | 18,000 | 2b7d2df79824074af2ea42dd211aae9b385b4cfe | Comment out test case (need to change tolerance) | [
{
"change_type": "MODIFY",
"old_path": "tests/lax_scipy_test.py",
"new_path": "tests/lax_scipy_test.py",
"diff": "@@ -68,7 +68,8 @@ JAX_SPECIAL_FUNCTION_RECORDS = [\nop_record(\"gammaln\", 1, float_dtypes, jtu.rand_positive(), False),\n# TODO: NaNs in gradient for logit.\nop_record(\"logit\", 1, flo... | Python | Apache License 2.0 | google/jax | Comment out test case (need to change tolerance) |
260,335 | 26.03.2019 08:35:34 | 25,200 | 25479c3518a5bf3a2f02f02c85ca2c05ddee383b | fix pmap performance bug, dont always copy to host | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/pxla.py",
"new_path": "jax/interpreters/pxla.py",
"diff": "@@ -28,7 +28,7 @@ from .. import ad_util\nfrom .. import tree_util\nfrom .. import linear_util as lu\nfrom ..abstract_arrays import ConcreteArray, ShapedArray\n-from ..util import part... | Python | Apache License 2.0 | google/jax | fix pmap performance bug, dont always copy to host |
260,335 | 26.03.2019 08:43:02 | 25,200 | 482c1ce8b8198a8c1bc315ec7f083e1fd49a874f | change scipy.special.log_ndtr test rng for numerics | [
{
"change_type": "MODIFY",
"old_path": "tests/lax_scipy_test.py",
"new_path": "tests/lax_scipy_test.py",
"diff": "@@ -68,8 +68,7 @@ JAX_SPECIAL_FUNCTION_RECORDS = [\nop_record(\"gammaln\", 1, float_dtypes, jtu.rand_positive(), False),\n# TODO: NaNs in gradient for logit.\nop_record(\"logit\", 1, flo... | Python | Apache License 2.0 | google/jax | change scipy.special.log_ndtr test rng for numerics |
260,474 | 26.03.2019 15:35:31 | 14,400 | 273a9a858a1b05075ad47409aee072675e924c77 | Scan impl and broken jvp | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "jax/scan.py",
"diff": "+# Copyright 2018 Google LLC\n+#\n+# Licensed under the Apache License, Version 2.0 (the \"License\");\n+# you may not use this file except in compliance with the License.\n+# You may obtain a copy of the License at\n+#\n+... | Python | Apache License 2.0 | google/jax | Scan impl and broken jvp |
260,335 | 26.03.2019 13:50:27 | 25,200 | 8ad4f8c87234b794f87a267a6030a0feb8d56e80 | plumbing fixes (or maybe more breaking!) | [
{
"change_type": "MODIFY",
"old_path": "jax/scan.py",
"new_path": "jax/scan.py",
"diff": "@@ -65,7 +65,7 @@ def promote_aval_rank(n, xs):\nreturn ShapedArray((n,) + xs.shape, xs.dtype)\ndef leading_dim_size(xs):\n- if isinstance(xs, core.AbstractTuple):\n+ if isinstance(xs, core.JaxTuple):\nreturn l... | Python | Apache License 2.0 | google/jax | plumbing fixes (or maybe more breaking!) |
260,403 | 27.03.2019 13:12:07 | 25,200 | dad8157d7ce276ca97de4547e8493709e77977de | gotchas updates and README.md colab link fixes | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -87,8 +87,8 @@ Jump right in using a notebook in your browser, connected to a Google Cloud GPU.\nAnd for a deeper dive into JAX:\n- [Common gotchas and sharp edges](https://colab.research.google.com/github/googl... | Python | Apache License 2.0 | google/jax | gotchas updates and README.md colab link fixes |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.