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
27.02.2020 08:00:34
28,800
7adf9fe84f5b522ee9120a7ff7763ea0708fc394
add more jet rules!
[ { "change_type": "MODIFY", "old_path": "jax/lax/lax.py", "new_path": "jax/lax/lax.py", "diff": "@@ -1870,20 +1870,6 @@ ad.primitive_transposes[sub_p] = _sub_transpose\nmul_p = standard_naryop([_num, _num], 'mul')\nad.defbilinear_broadcasting(_brcast, mul_p, mul, mul)\n-def _mul_taylor(primals_in, se...
Python
Apache License 2.0
google/jax
add more jet rules! Co-authored-by: Jesse Bettencourt <jessebett@cs.toronto.edu> Co-authored-by: Jacob Kelly <jacob.jin.kelly@gmail.com> Co-authored-by: David Duvenaud <duvenaud@cs.toronto.edu>
260,700
28.02.2020 13:18:11
18,000
ddd52c47301d48cb65b6c7098a164b99362efa3a
adding div and linear prims
[ { "change_type": "MODIFY", "old_path": "jax/interpreters/xla.py", "new_path": "jax/interpreters/xla.py", "diff": "@@ -37,6 +37,7 @@ from ..lib import xla_bridge as xb\nfrom ..lib import xla_client as xc\nfrom . import partial_eval as pe\nfrom . import ad\n+from . import taylor\nfrom . import masking...
Python
Apache License 2.0
google/jax
adding div and linear prims Co-authored-by: Jesse Bettencourt <jessebett@cs.toronto.edu>
260,700
28.02.2020 20:50:03
18,000
3bcf02a191fdb3239cdd8125b4617efc4420d8e0
Add gather rule
[ { "change_type": "MODIFY", "old_path": "jax/lax/lax.py", "new_path": "jax/lax/lax.py", "diff": "@@ -3185,6 +3185,14 @@ gather_p = standard_primitive(\n_gather_translation_rule)\nad.defjvp(gather_p, _gather_jvp_rule, None)\n+def _gather_taylor_rule(primals_in, series_in, **params):\n+ operand, start_...
Python
Apache License 2.0
google/jax
Add gather rule Co-authored-by: Matthew Johnson <mattjj@csail.mit.edu> Co-authored-by: Jesse Bettencourt <jessebett@cs.toronto.edu> Co-authored-by: David Duvenaud <duvenaud@cs.toronto.edu>
260,700
29.02.2020 13:23:38
18,000
dcebe5056215c9de8527ce5ec1e54ae4154c34d6
jet for reduce_max
[ { "change_type": "MODIFY", "old_path": "jax/lax/lax.py", "new_path": "jax/lax/lax.py", "diff": "@@ -3619,6 +3619,22 @@ _reduce_max_translation_rule = partial(_reduce_chooser_translation_rule, max_p,\nreduce_max_p = standard_primitive(_reduce_op_shape_rule, _input_dtype,\n'reduce_max', _reduce_max_tr...
Python
Apache License 2.0
google/jax
jet for reduce_max Co-authored-by: Matthew Johnson <mattjj@csail.mit.edu> Co-authored-by: Jesse Bettencourt <jessebett@cs.toronto.edu> Co-authored-by: David Duvenaud <duvenaud@cs.toronto.edu>
260,700
29.02.2020 13:30:14
18,000
30830dfc251a1d55e7bd48f2894fe3b03084d69f
linear rule for sub
[ { "change_type": "MODIFY", "old_path": "jax/lax/lax.py", "new_path": "jax/lax/lax.py", "diff": "@@ -1867,6 +1867,7 @@ sub_p = standard_naryop([_num, _num], 'sub')\nad.defjvp(sub_p,\nlambda g, x, y: _brcast(g, y),\nlambda g, x, y: _brcast(neg(g), x))\n+taylor.deflinear(sub_p)\nad.primitive_transposes...
Python
Apache License 2.0
google/jax
linear rule for sub Co-authored-by: Jesse Bettencourt <jessebett@cs.toronto.edu>
260,700
29.02.2020 14:02:16
18,000
b4d003d460ee512821ee7a6bc8b64a04d6aee6f9
jet rule for log
[ { "change_type": "MODIFY", "old_path": "jax/lax/lax.py", "new_path": "jax/lax/lax.py", "diff": "@@ -1689,6 +1689,19 @@ taylor.prop_rules[exp_p] = _exp_taylor\nlog_p = standard_unop(_float | _complex, 'log')\nad.defjvp(log_p, lambda g, x: div(g, x))\n+def _log_taylor(primals_in, series_in):\n+ x, = p...
Python
Apache License 2.0
google/jax
jet rule for log Co-authored-by: Jesse Bettencourt <jessebett@cs.toronto.edu> Co-authored-by: Matthew Johnson <mattjj@csail.mit.edu> Co-authored-by: David Duvenaud <duvenaud@cs.toronto.edu>
260,700
29.02.2020 14:37:20
18,000
840797d4a17f6870a076f6173b5ecadd5c07277e
refactor reduce_max jet rule
[ { "change_type": "MODIFY", "old_path": "jax/lax/lax.py", "new_path": "jax/lax/lax.py", "diff": "@@ -3638,14 +3638,15 @@ def _reduce_max_taylor_rule(primals_in, series_in, **params):\noperand, = primals_in\ngs, = series_in\nprimal_out = reduce_max_p.bind(operand, **params)\n- def _reduce_chooser_tayl...
Python
Apache License 2.0
google/jax
refactor reduce_max jet rule
260,335
14.03.2020 21:21:27
25,200
668a1703bc8e4a4f289b25ab9867bcbe1a6167fe
add jet tests, remove top-level files
[ { "change_type": "MODIFY", "old_path": "jax/interpreters/taylor.py", "new_path": "jax/interpreters/taylor.py", "diff": "@@ -55,18 +55,18 @@ class JetTrace(core.Trace):\nseries_in = [[onp.zeros(onp.shape(x), dtype=onp.result_type(x))\nif t is zero_term else t for t in series]\nfor x, series in zip(pr...
Python
Apache License 2.0
google/jax
add jet tests, remove top-level files
260,335
15.03.2020 09:58:54
25,200
92a0b3d40a271f931626865a5a0d90a34698d48a
add basic pytree support to jet
[ { "change_type": "MODIFY", "old_path": "jax/api.py", "new_path": "jax/api.py", "diff": "@@ -43,7 +43,7 @@ from .api_util import (wraps, flatten_fun, apply_flat_fun, flatten_fun_nokwargs,\nflatten_fun_nokwargs2)\nfrom .tree_util import (tree_map, tree_flatten, tree_unflatten, tree_structure,\ntree_tr...
Python
Apache License 2.0
google/jax
add basic pytree support to jet
260,335
15.03.2020 10:49:48
25,200
a7b3be71e89e1c49efb91e9f3fe5ce42b2ae18a1
move jet into jax.experimental
[ { "change_type": "MODIFY", "old_path": "jax/api.py", "new_path": "jax/api.py", "diff": "@@ -57,7 +57,6 @@ from .interpreters import ad\nfrom .interpreters import batching\nfrom .interpreters import parallel\nfrom .interpreters import masking\n-from .interpreters import taylor\nfrom .interpreters.mas...
Python
Apache License 2.0
google/jax
move jet into jax.experimental
260,335
15.03.2020 11:39:44
25,200
8d402d83da8ca68d7937ee01726fec74d5abb4f7
add copyright notice to jet.py
[ { "change_type": "MODIFY", "old_path": "jax/experimental/jet.py", "new_path": "jax/experimental/jet.py", "diff": "+# Copyright 2020 Google LLC\n+#\n+# Licensed under the Apache License, Version 2.0 (the \"License\");\n+# you may not use this file except in compliance with the License.\n+# You may ob...
Python
Apache License 2.0
google/jax
add copyright notice to jet.py
260,335
15.03.2020 12:00:44
25,200
a00e3986d4c2c73e49f4517a8518cf1b7b424535
remove scipy dep, fix dtype issue
[ { "change_type": "MODIFY", "old_path": "jax/experimental/jet.py", "new_path": "jax/experimental/jet.py", "diff": "@@ -17,7 +17,6 @@ from functools import partial\nfrom collections import Counter\nimport numpy as onp\n-from scipy.special import factorial as fact\nfrom jax import core\nfrom jax.util i...
Python
Apache License 2.0
google/jax
remove scipy dep, fix dtype issue
260,335
15.03.2020 21:32:56
25,200
7666c254f99717081283d3c9d0859f5ed451f127
fix buggy broadcast_in_dim shapecheck test
[ { "change_type": "MODIFY", "old_path": "tests/masking_test.py", "new_path": "tests/masking_test.py", "diff": "@@ -149,11 +149,17 @@ class MaskingTest(jtu.JaxTestCase):\nreturn api.device_put(x)\ndef test_shapecheck_broadcast_in_dim(self):\n+ x = np.zeros(7)\n+\n+ @shapecheck(['(n,)'], '(3, n, 4)')\n...
Python
Apache License 2.0
google/jax
fix buggy broadcast_in_dim shapecheck test
260,335
16.03.2020 09:20:34
25,200
1c202ac3c4d83b889c54765752470a5589278f19
fix typo, unbreak pmap (from
[ { "change_type": "MODIFY", "old_path": "jax/interpreters/xla.py", "new_path": "jax/interpreters/xla.py", "diff": "@@ -55,7 +55,7 @@ def identity(x): return x\ndef _make_unit(c): return c.Constant(onp.zeros((), dtype=onp.dtype('bool')))\ndef _make_abstract_unit(_): return xc.Shape.array_shape(onp.dty...
Python
Apache License 2.0
google/jax
fix typo, unbreak pmap (from #2416)
260,335
16.03.2020 10:23:24
25,200
5280793191f391bfb3f97617796ddfda4a3d4e48
fix custom_transforms + jit bug from
[ { "change_type": "MODIFY", "old_path": "jax/api.py", "new_path": "jax/api.py", "diff": "@@ -1559,8 +1559,8 @@ def custom_transforms(fun):\nfun_p.def_abstract_eval(fun_abstract_eval)\ndef fun_translation(c, *xla_args, **params):\n- return xla.lower_fun(fun_impl)(c, *xla_args, **params)\n- xla.transla...
Python
Apache License 2.0
google/jax
fix custom_transforms + jit bug from #2416
260,335
16.03.2020 12:17:09
25,200
ed8dbd254deee8f11f77e50ad6e70e2696fead51
temporarily switch off changes
[ { "change_type": "MODIFY", "old_path": "jax/lax/lax_control_flow.py", "new_path": "jax/lax/lax_control_flow.py", "diff": "@@ -154,7 +154,7 @@ def fori_loop(lower, upper, body_fun, init_val):\nexcept TypeError:\nuse_scan = False\nelse:\n- use_scan = True\n+ use_scan = False # TODO(mattjj): re-enable ...
Python
Apache License 2.0
google/jax
temporarily switch off #2414 changes
260,411
17.03.2020 09:07:14
-3,600
e66e5699474bd1fbffe1f7ded1a95a78d2727d6a
Minor update to docsl trigger readthedocs
[ { "change_type": "MODIFY", "old_path": "docs/CHANGELOG.rst", "new_path": "docs/CHANGELOG.rst", "diff": "@@ -26,10 +26,10 @@ jax 0.1.60 (unreleased)\nhigher-order automatic differentiation.\n* Added more sanity checking to arguments of :py:func:`jax.lax.broadcast_in_dim`.\n-* The minimum jaxlib versi...
Python
Apache License 2.0
google/jax
Minor update to docsl trigger readthedocs (#2433)
260,411
17.03.2020 09:24:17
-3,600
c4c770b7fc3b8d8f199e2b037d02a5b79e944175
Minor update to docs; trigger readthedocs
[ { "change_type": "MODIFY", "old_path": "docs/CHANGELOG.rst", "new_path": "docs/CHANGELOG.rst", "diff": "@@ -29,7 +29,7 @@ jax 0.1.60 (unreleased)\n* The minimum jaxlib version is now 0.1.41.\njaxlib 0.1.40 (March 4, 2020)\n-------------------------------\n+-------------------------------\n* Adds exp...
Python
Apache License 2.0
google/jax
Minor update to docs; trigger readthedocs (#2434)
260,335
17.03.2020 22:07:53
25,200
f1d9130f2511be29b8c53a0b5f4f685009771af7
remove safe_mul (undo also cf.
[ { "change_type": "MODIFY", "old_path": "jax/lax/__init__.py", "new_path": "jax/lax/__init__.py", "diff": "@@ -16,11 +16,11 @@ from .lax import *\nfrom .lax import (_reduce_sum, _reduce_max, _reduce_min, _reduce_or,\n_reduce_and, _reduce_window_sum, _reduce_window_max,\n_reduce_window_min, _reduce_wi...
Python
Apache License 2.0
google/jax
remove safe_mul (undo #383, also cf. #1052)
260,411
19.03.2020 06:56:59
-3,600
cd7ab0a9e0476043f1a3f4a029d6e088a63c3e29
Changed to pmap_benchmark to make it runnable in Google
[ { "change_type": "MODIFY", "old_path": "benchmarks/pmap_benchmark.py", "new_path": "benchmarks/pmap_benchmark.py", "diff": "@@ -18,12 +18,15 @@ python3 pmap_benchmark.py\nTo make it run faster, set env var TARGET_TOTAL_SECS to a low number (e.g. 2).\n\"\"\"\n-import numpy as onp\n+from absl import a...
Python
Apache License 2.0
google/jax
Changed to pmap_benchmark to make it runnable in Google (#2448)
260,411
19.03.2020 08:54:37
-3,600
78c1f6b08d60f3f6c8252a2b6dd05fcef5ad8afb
Increased tolerance for testScipySpecialFun Prevent failures on TPU
[ { "change_type": "MODIFY", "old_path": "jax/test_util.py", "new_path": "jax/test_util.py", "diff": "@@ -18,7 +18,7 @@ import functools\nimport re\nimport itertools as it\nimport os\n-from typing import Dict, Sequence\n+from typing import Dict, Sequence, Union\nfrom unittest import SkipTest\nfrom abs...
Python
Apache License 2.0
google/jax
Increased tolerance for testScipySpecialFun (#2454) Prevent failures on TPU
260,335
19.03.2020 11:26:29
25,200
1d0b7e2b5c7c4fc1c46a8065f12ce1e56378d9a8
make jaxpr pretty-print show multiple outputs
[ { "change_type": "MODIFY", "old_path": "jax/core.py", "new_path": "jax/core.py", "diff": "@@ -968,11 +968,7 @@ def pp_eqn(eqn):\n>> pp(' ') >> pp(pp_vars(eqn.invars))) + pp_subexpr\ndef pp_jaxpr(jaxpr):\n- if len(jaxpr.outvars) > 1:\npp_outvars = str(tuple(jaxpr.outvars))\n- else:\n- pp_outvars = st...
Python
Apache License 2.0
google/jax
make jaxpr pretty-print show multiple outputs
260,335
19.03.2020 11:28:35
25,200
7f8ce8ff3c927d4d2a251af71c2ee4388cf6da26
fix test errors from previous commit
[ { "change_type": "MODIFY", "old_path": "docs/notebooks/Writing_custom_interpreters_in_Jax.ipynb", "new_path": "docs/notebooks/Writing_custom_interpreters_in_Jax.ipynb", "diff": "\"\\n\",\n\"jaxpr: { lambda ; ; a.\\n\",\n\" let b = add a 1\\n\",\n- \" in [b] }\\n\",\n+ \" in (b,) }\\n\",\n\"\\n\",\n\...
Python
Apache License 2.0
google/jax
fix test errors from previous commit
260,411
21.03.2020 13:53:35
-3,600
9331fc5b428c573461c070d81b6582904462b932
Added pytype checking to Travis
[ { "change_type": "MODIFY", "old_path": ".travis.yml", "new_path": ".travis.yml", "diff": "@@ -6,7 +6,7 @@ language: python\nmatrix:\ninclude:\n- python: \"3.6\"\n- env: JAX_CHECK_TYPES=true\n+ env: JAX_ONLY_CHECK_TYPES=true\n- python: \"3.6\"\nenv: JAX_ENABLE_X64=0 JAX_NUM_GENERATED_CASES=25\n- pyth...
Python
Apache License 2.0
google/jax
Added pytype checking to Travis (#2475)
260,335
21.03.2020 10:46:07
25,200
93d3e347211405d3b8cf10fd1e671cdc7bf6b835
make lax_linalg.solve_triangular allow vector rhs also add tests for jax.scipy.linalg.cho_solve
[ { "change_type": "MODIFY", "old_path": "jax/lax_linalg.py", "new_path": "jax/lax_linalg.py", "diff": "@@ -70,9 +70,15 @@ def svd(x, full_matrices=True, compute_uv=True):\ndef triangular_solve(a, b, left_side=False, lower=False, transpose_a=False,\nconjugate_a=False, unit_diagonal=False):\nconjugate_...
Python
Apache License 2.0
google/jax
make lax_linalg.solve_triangular allow vector rhs also add tests for jax.scipy.linalg.cho_solve
260,335
21.03.2020 21:20:12
25,200
6876271bac7d4ce68118190f06e003e004b070a9
bump tolerance for mvn logpdf x64 test
[ { "change_type": "MODIFY", "old_path": "tests/scipy_stats_test.py", "new_path": "tests/scipy_stats_test.py", "diff": "@@ -441,7 +441,7 @@ class LaxBackedScipyStatsTests(jtu.JaxTestCase):\nlsp_stats.multivariate_normal.logpdf,\nargs_maker, check_dtypes=True, tol=1e-3)\nself._CompileAndCheck(lsp_stats...
Python
Apache License 2.0
google/jax
bump tolerance for mvn logpdf x64 test
260,335
23.03.2020 12:18:59
25,200
c76f32b1be7a6e22a23948fc8265a5351b54007f
remove jarrett and _make_graphviz, bitrot might want to revive jarrett later!
[ { "change_type": "MODIFY", "old_path": "jax/api.py", "new_path": "jax/api.py", "diff": "@@ -1906,94 +1906,6 @@ def custom_gradient(fun):\nreturn primal_fun\n-def jarrett(fun):\n- new_fun = custom_transforms(fun)\n-\n- def elementwise_jvp(primals, tangents):\n- pushfwd = partial(jvp, fun, primals)\n-...
Python
Apache License 2.0
google/jax
remove jarrett and _make_graphviz, bitrot might want to revive jarrett later!
260,335
23.03.2020 18:43:02
25,200
0cf84f925b049264ca2f18d95d87b7305ab36bac
fix custom_transforms bug
[ { "change_type": "MODIFY", "old_path": "jax/api.py", "new_path": "jax/api.py", "diff": "@@ -1609,7 +1609,8 @@ def custom_transforms(fun):\nad.primitive_jvps[fun_p] = fun_jvp\ndef fun_batch(args, dims, **params):\n- return batching.batch_fun(lu.wrap_init(fun_impl, params), args, dims)\n+ batched, out...
Python
Apache License 2.0
google/jax
fix custom_transforms bug
260,499
25.03.2020 02:10:06
0
b05ac57938e942b9b011ebe9991126bf7245dbca
Making isclose handle correctly infinite and NaN values.
[ { "change_type": "MODIFY", "old_path": "jax/numpy/lax_numpy.py", "new_path": "jax/numpy/lax_numpy.py", "diff": "@@ -974,7 +974,7 @@ def moveaxis(a, source, destination):\n@_wraps(onp.isclose)\n-def isclose(a, b, rtol=1e-05, atol=1e-08):\n+def isclose(a, b, rtol=1e-05, atol=1e-08, equal_nan=False):\n...
Python
Apache License 2.0
google/jax
Making isclose handle correctly infinite and NaN values.
260,335
24.03.2020 20:43:33
25,200
74c20509ebcf9d467fafbcb5e655475a0e4bdc77
improve custom_jvp error messages, fixes
[ { "change_type": "MODIFY", "old_path": "jax/core.py", "new_path": "jax/core.py", "diff": "@@ -708,6 +708,13 @@ class UnshapedArray(AbstractValue):\n\"\"\"Returns a copy of the aval with weak_type=False.\"\"\"\nreturn UnshapedArray(self.dtype) if self.weak_type else self\n+ @property\n+ def shape(sel...
Python
Apache License 2.0
google/jax
improve custom_jvp error messages, fixes #2502
260,411
25.03.2020 11:07:50
-7,200
d1e8f43abe5c369ee5405e423c5ba601d2cc631c
Better error message for indexing with floats Now the error message is 'Indexer must have integer or boolean type'. Before it was 'len() of unsized object'
[ { "change_type": "MODIFY", "old_path": "jax/numpy/lax_numpy.py", "new_path": "jax/numpy/lax_numpy.py", "diff": "@@ -3032,8 +3032,8 @@ def _index_to_gather(x_shape, idx):\ny_axis += 1\nx_axis += 1\nelse:\n- if abstract_i and not (issubdtype(abstract_i.dtype, integer) or\n- issubdtype(abstract_i.dtype...
Python
Apache License 2.0
google/jax
Better error message for indexing with floats (#2496) Now the error message is 'Indexer must have integer or boolean type'. Before it was 'len() of unsized object'
260,411
19.03.2020 14:55:16
-3,600
6f2f779a3d0ab831e1715347324a1810551c9aca
Started a FAQ for JAX
[ { "change_type": "ADD", "old_path": null, "new_path": "docs/faq.rst", "diff": "+JAX Frequently Asked Questions\n+==============================\n+\n+We are collecting here answers to frequently asked questions.\n+Contributions welcome!\n+\n+Gradients contain `NaN` where using ``where``\n+-----------...
Python
Apache License 2.0
google/jax
Started a FAQ for JAX
260,411
22.03.2020 06:47:14
-3,600
86e3046e21d0b5374824656e4e8eeca1e20fea2a
Added a FAQ for impure functions
[ { "change_type": "MODIFY", "old_path": "docs/faq.rst", "new_path": "docs/faq.rst", "diff": "@@ -4,6 +4,48 @@ JAX Frequently Asked Questions\nWe are collecting here answers to frequently asked questions.\nContributions welcome!\n+`jit` changes the behavior of my function\n+---------------------------...
Python
Apache License 2.0
google/jax
Added a FAQ for impure functions
260,411
24.03.2020 10:22:49
-3,600
f88d49b43ce2a111cacbeb8028741005cea34b57
Added FAQ entry about creating JAX arrays
[ { "change_type": "MODIFY", "old_path": "docs/faq.rst", "new_path": "docs/faq.rst", "diff": "@@ -4,6 +4,26 @@ JAX Frequently Asked Questions\nWe are collecting here answers to frequently asked questions.\nContributions welcome!\n+Creating arrays with `jax.numpy.array` is slower than with `numpy.array...
Python
Apache License 2.0
google/jax
Added FAQ entry about creating JAX arrays
260,499
25.03.2020 09:59:43
0
9ec0ac6e20ff83d9bb7807bc0b3017a3714039e5
Added test for isclose.
[ { "change_type": "MODIFY", "old_path": "tests/lax_numpy_test.py", "new_path": "tests/lax_numpy_test.py", "diff": "@@ -1579,6 +1579,31 @@ class LaxBackedNumpyTests(jtu.JaxTestCase):\nonp.array([0x2a], dtype=onp.uint8),\ncheck_dtypes=True)\n+ def testIsClose(self):\n+ c_isclose = api.jit(jnp.isclose)\...
Python
Apache License 2.0
google/jax
Added test for isclose.
260,335
25.03.2020 14:53:23
25,200
da9b52324af6c73b94cf7fe70d301cccf9c85c7e
remove incorrect sentence in notebook
[ { "change_type": "MODIFY", "old_path": "docs/notebooks/How_JAX_primitives_work.ipynb", "new_path": "docs/notebooks/How_JAX_primitives_work.ipynb", "diff": "\"\\n\",\n\"\\n\",\n\"For example, the abstraction of a vector with 3 elements may be `ShapedArray(float32[3])`, or `ConcreteArray([1., 2., 3.])...
Python
Apache License 2.0
google/jax
remove incorrect sentence in notebook
260,335
25.03.2020 17:05:57
25,200
fc0f875b02edc0f48edbe2f2b91158f415ae5fe8
improve ref to Tao's 3rd edition of Analysis I
[ { "change_type": "MODIFY", "old_path": "docs/notebooks/Custom_derivative_rules_for_Python_code.ipynb", "new_path": "docs/notebooks/Custom_derivative_rules_for_Python_code.ipynb", "diff": "\"colab_type\": \"text\"\n},\n\"source\": [\n- \"But mathematically if we think of $f$ as a function on $\\\\mat...
Python
Apache License 2.0
google/jax
improve ref to Tao's 3rd edition of Analysis I
260,335
25.03.2020 18:17:55
25,200
32747476874fcd32f6feaa42128369b2973220bb
fix derivatives reference (wrong Rudin!)
[ { "change_type": "MODIFY", "old_path": "docs/notebooks/Custom_derivative_rules_for_Python_code.ipynb", "new_path": "docs/notebooks/Custom_derivative_rules_for_Python_code.ipynb", "diff": "\"colab_type\": \"text\"\n},\n\"source\": [\n- \"But mathematically if we think of $f$ as a function on $\\\\mat...
Python
Apache License 2.0
google/jax
fix derivatives reference (wrong Rudin!)
260,335
25.03.2020 20:19:49
25,200
c3e3d4807edc0dac4ba9ac71ff4c0397d8f44770
temporarily revert parts of pending bug fix
[ { "change_type": "MODIFY", "old_path": "jax/nn/functions.py", "new_path": "jax/nn/functions.py", "diff": "import numpy as onp\n-from jax import custom_jvp\n+from jax import custom_transforms, defjvp\nfrom jax import dtypes\nfrom jax import lax\nfrom jax.scipy.special import expit\n@@ -25,7 +25,7 @@ ...
Python
Apache License 2.0
google/jax
temporarily revert parts of #2026 pending bug fix
260,335
26.03.2020 16:52:29
25,200
42dbfd43d4b219dd31a102d63b6fb241acbb2426
attempt to fix link formatting with nbsphinx
[ { "change_type": "MODIFY", "old_path": "docs/notebooks/Custom_derivative_rules_for_Python_code.ipynb", "new_path": "docs/notebooks/Custom_derivative_rules_for_Python_code.ipynb", "diff": "\"\\n\",\n\"This notebook is about #1. To read instead about #2, see the [notebook on adding primitives](https:/...
Python
Apache License 2.0
google/jax
attempt to fix link formatting with nbsphinx
260,510
26.03.2020 19:07:48
25,200
0499b8457fce77dbb773c8e8ea599ba544650878
Instantiate zeros in _custom_vjp_call_jaxpr_jvp
[ { "change_type": "MODIFY", "old_path": "jax/custom_derivatives.py", "new_path": "jax/custom_derivatives.py", "diff": "@@ -518,6 +518,7 @@ def _custom_vjp_call_jaxpr_jvp(primals, tangents, jaxpr, fwd, bwd, out_trees,\n_, primals = split_list(primals, [num_consts])\nzero_tangents, tangents = split_lis...
Python
Apache License 2.0
google/jax
Instantiate zeros in _custom_vjp_call_jaxpr_jvp
260,346
28.03.2020 12:32:44
-3,600
415cde5b18299aa8aa7dd35908c42dcaf4ea121e
Make it more explicit that default JVP assumes |R It's just an attempt to make this implicit assumption, as it only became clear to me after our discussion in chat, not after reading this.
[ { "change_type": "MODIFY", "old_path": "docs/notebooks/Custom_derivative_rules_for_Python_code.ipynb", "new_path": "docs/notebooks/Custom_derivative_rules_for_Python_code.ipynb", "diff": "\"colab_type\": \"text\"\n},\n\"source\": [\n- \"But mathematically if we think of $f$ as a function on $\\\\mat...
Python
Apache License 2.0
google/jax
Make it more explicit that default JVP assumes |R It's just an attempt to make this implicit assumption, as it only became clear to me after our discussion in chat, not after reading this.
260,335
28.03.2020 11:56:12
25,200
1b5978953b01d34f07f252e193a963f9b9a1ebf5
add ShardedDeviceArray to ad vspace op handlers fixes (thanks, !)
[ { "change_type": "MODIFY", "old_path": "jax/lax/lax.py", "new_path": "jax/lax/lax.py", "diff": "@@ -1498,9 +1498,10 @@ def zeros_like_array(x):\nreturn full_like(x, 0)\nfor t in itertools.chain(dtypes.python_scalar_dtypes.keys(), array_types,\n- [xla.DeviceArray]):\n+ [xla.DeviceArray, pxla.ShardedD...
Python
Apache License 2.0
google/jax
add ShardedDeviceArray to ad vspace op handlers fixes #2529 (thanks, @dpfau !)
260,335
28.03.2020 14:55:58
25,200
f99720b70ab615c966ba321fb1a35503be33fca6
add type annotations to core.py tracing machinery also add .copy() method to core.trace_state global trace state
[ { "change_type": "MODIFY", "old_path": "jax/core.py", "new_path": "jax/core.py", "diff": "@@ -274,33 +274,20 @@ def eval_jaxpr(jaxpr, consts, *args):\nreturn map(read, jaxpr.outvars)\n-def full_lower(val):\n- if isinstance(val, Tracer):\n- return val.full_lower()\n- else:\n- return val\n-\n-\n-def f...
Python
Apache License 2.0
google/jax
add type annotations to core.py tracing machinery also add .copy() method to core.trace_state global trace state
260,335
28.03.2020 13:52:40
25,200
67283a08ecdd3eab03b35355fb819d1dc9c3fcb0
add new custom_jvp tests from
[ { "change_type": "MODIFY", "old_path": "tests/api_test.py", "new_path": "tests/api_test.py", "diff": "@@ -2289,6 +2289,76 @@ class CustomJVPTest(jtu.JaxTestCase):\n\"respectively.\"),\nlambda: api.jvp(f, (np.float32(2.),), (np.float32(1.),)))\n+ def test_multiple_rule_invocations(self):\n+ @jax.cust...
Python
Apache License 2.0
google/jax
add new custom_jvp tests from #2500 Co-authored-by: Dougal Maclaurin <dougalm@google.com>
260,316
29.03.2020 16:28:17
14,400
ead80118377579aea33f26e85be6ef2f20063b6f
Added lots of trivial jet rules.
[ { "change_type": "MODIFY", "old_path": "jax/experimental/jet.py", "new_path": "jax/experimental/jet.py", "diff": "from functools import partial\n-from collections import Counter\nimport numpy as onp\nfrom jax import core\n-from jax.util import unzip2, prod\n+from jax.util import unzip2\nfrom jax.tre...
Python
Apache License 2.0
google/jax
Added lots of trivial jet rules. Co-Authored-By: jessebett <jessebett@gmail.com> Co-Authored-By: Jacob Kelly <jacob.kelly@mail.utoronto.ca>
260,335
29.03.2020 13:56:26
25,200
fcc1e76c5adda49e7027b901c0e3443a648a0332
add docstring / reference doc link for axis_index fixes
[ { "change_type": "MODIFY", "old_path": "docs/jax.lax.rst", "new_path": "docs/jax.lax.rst", "diff": "@@ -163,3 +163,4 @@ Parallelism support is experimental.\npmin\nppermute\npswapaxes\n+ axis_index\n" }, { "change_type": "MODIFY", "old_path": "jax/interpreters/pxla.py", "new_path": "...
Python
Apache License 2.0
google/jax
add docstring / reference doc link for axis_index fixes #2534
260,335
29.03.2020 14:45:17
25,200
1762a8653137e29825c45afbcea39d8188a5a6a4
workaround for pmap output PRED arrays on cpu/gpu
[ { "change_type": "MODIFY", "old_path": "jax/api.py", "new_path": "jax/api.py", "diff": "@@ -1640,6 +1640,7 @@ def defjvp_all(fun, custom_jvp):\nmsg = (\"Detected differentiation with respect to closed-over values with \"\n\"custom JVP rule, which isn't supported.\")\nraise ValueError(msg)\n+ args_do...
Python
Apache License 2.0
google/jax
workaround for pmap output PRED arrays on cpu/gpu
260,335
29.03.2020 20:48:08
25,200
7a4c4d555c125052ad4204ce4ab7b2b3553c1078
use custom_jvp for internal functions
[ { "change_type": "MODIFY", "old_path": "jax/custom_derivatives.py", "new_path": "jax/custom_derivatives.py", "diff": "# See the License for the specific language governing permissions and\n# limitations under the License.\n-from functools import partial, update_wrapper\n+from functools import partia...
Python
Apache License 2.0
google/jax
use custom_jvp for internal functions
260,335
29.03.2020 23:00:40
25,200
74d358d0362e9bf3cc42de425758e874e5466377
skip ode test on import error (internal)
[ { "change_type": "MODIFY", "old_path": "tests/api_test.py", "new_path": "tests/api_test.py", "diff": "@@ -2720,7 +2720,11 @@ class CustomVJPTest(jtu.JaxTestCase):\ndef test_odeint_vmap_grad(self):\n# https://github.com/google/jax/issues/2531\n+ # TODO(mattjj): factor out an ode tests file\n+ try:\nf...
Python
Apache License 2.0
google/jax
skip ode test on import error (internal)
260,335
29.03.2020 23:29:55
25,200
bdc0c3bf43f2c76bd475180904799c62e2ae1dc3
remove remat context check, add initial staging
[ { "change_type": "MODIFY", "old_path": "jax/interpreters/partial_eval.py", "new_path": "jax/interpreters/partial_eval.py", "diff": "@@ -566,11 +566,7 @@ def _remat_partial_eval(trace, _, f, tracers, params):\n# Using the instantiated tracers, run call_bind like JaxprTrace.process_call.\nin_pvs, in_c...
Python
Apache License 2.0
google/jax
remove remat context check, add initial staging
260,335
30.03.2020 00:35:45
25,200
a6a837a65ef175a7222a3517b87c19627aa13371
add some stage_out=True indicators
[ { "change_type": "MODIFY", "old_path": "jax/api.py", "new_path": "jax/api.py", "diff": "@@ -311,7 +311,8 @@ def xla_computation(fun: Callable,\navals = map(xla.abstractify, jax_args)\npvals = [pe.PartialVal((aval, core.unit)) for aval in avals]\njaxpr, _, consts = pe.trace_to_jaxpr(jaxtree_fun, pval...
Python
Apache License 2.0
google/jax
add some stage_out=True indicators
260,335
30.03.2020 00:41:04
25,200
9d8823c912977949eb15198c07d9a38b4b56f890
add initial_style_staging to custom_transforms
[ { "change_type": "MODIFY", "old_path": "jax/api.py", "new_path": "jax/api.py", "diff": "@@ -1586,6 +1586,7 @@ class CustomTransformsFunction(object):\nflat_fun, out_tree = flatten_fun_nokwargs(lu.wrap_init(self.fun), in_tree)\nin_pvals = [pe.PartialVal((raise_to_shaped(core.get_aval(x)), core.unit))...
Python
Apache License 2.0
google/jax
add initial_style_staging to custom_transforms
260,335
30.03.2020 11:31:29
25,200
f766c5e7b58c0b42bab4d8d75ee33aa78a3944cc
allow duck-typing in xla_computation arguments
[ { "change_type": "MODIFY", "old_path": "jax/api.py", "new_path": "jax/api.py", "diff": "@@ -303,12 +303,15 @@ def xla_computation(fun: Callable,\nnames, sizes = zip(*axis_env)\nreturn xla.AxisEnv(nreps, names, sizes)\n+ def abstractify(x):\n+ return ShapedArray(onp.shape(x), dtypes.result_type(x))\n...
Python
Apache License 2.0
google/jax
allow duck-typing in xla_computation arguments
260,335
30.03.2020 11:57:03
25,200
70a3f47bed6caba8c944e4d5b724c81fccb1bdae
comments/defaults for process_custom_{jv,vj}p_call
[ { "change_type": "MODIFY", "old_path": "jax/core.py", "new_path": "jax/core.py", "diff": "@@ -328,6 +328,22 @@ class Trace:\nreturn '{}(level={}/{})'.format(\nself.__class__.__name__, self.level, self.sublevel)\n+ def procecss_call(self, call_primitive, f, tracers, params):\n+ raise NotImplementedEr...
Python
Apache License 2.0
google/jax
comments/defaults for process_custom_{jv,vj}p_call
260,335
30.03.2020 13:49:56
25,200
b43051e488f345b85f8b6e98b98ebef15b1eb37e
minor fix to custom_transforms
[ { "change_type": "MODIFY", "old_path": "jax/interpreters/ad.py", "new_path": "jax/interpreters/ad.py", "diff": "@@ -622,7 +622,9 @@ def defvjp_all(prim, custom_vjp):\nprimals_out = [primals_out]\nout_avals = [raise_to_shaped(get_aval(x)) for x in primals_out]\nct_pvals = [pe.PartialVal((aval, core.u...
Python
Apache License 2.0
google/jax
minor fix to custom_transforms
260,335
30.03.2020 17:48:07
25,200
df3b5fe42df0d1668f1b9b7c4f4e7ad126c84aff
fix a while-loop-of-pmap bug (thanks
[ { "change_type": "MODIFY", "old_path": "jax/interpreters/xla.py", "new_path": "jax/interpreters/xla.py", "diff": "@@ -188,7 +188,7 @@ def xla_primitive_callable(prim, *arg_specs, **params):\nbuilt_c = primitive_computation(prim, AxisEnv(nreps), backend, tuple_args,\n*avals, **params)\noptions = xb.g...
Python
Apache License 2.0
google/jax
fix a while-loop-of-pmap bug (thanks @jaspersnoek)
260,335
30.03.2020 17:53:47
25,200
375575a5e599ed056756fc9da43e50525390b997
skip new test on cpu unless num_devices > 1
[ { "change_type": "MODIFY", "old_path": "tests/lax_control_flow_test.py", "new_path": "tests/lax_control_flow_test.py", "diff": "@@ -1817,6 +1817,9 @@ class LaxControlFlowTest(jtu.JaxTestCase):\nself.assertAllClose(ans, expected, check_dtypes=False)\ndef test_while_loop_of_pmap(self):\n+ if api.devic...
Python
Apache License 2.0
google/jax
skip new test on cpu unless num_devices > 1
260,335
30.03.2020 19:45:45
25,200
15009c9014f0729d6198ea0140e27f2066ac6584
add docstring for defjvps, fix sphinx docs
[ { "change_type": "MODIFY", "old_path": "jax/custom_derivatives.py", "new_path": "jax/custom_derivatives.py", "diff": "@@ -96,7 +96,7 @@ class custom_jvp:\ndifferentiation of the underlying function's implementation. There is a single\ninstance method, ``defjvp``, which defines the custom JVP rule.\n...
Python
Apache License 2.0
google/jax
add docstring for defjvps, fix sphinx docs
260,335
30.03.2020 20:10:39
25,200
1f03d48c836227a9fe39022ba4cc4212fbdba9e9
try resetting global tracer state in loops_test.py attempting to address
[ { "change_type": "MODIFY", "old_path": "tests/loops_test.py", "new_path": "tests/loops_test.py", "diff": "@@ -27,6 +27,15 @@ from jax.experimental import loops\nfrom jax.config import config\nconfig.parse_flags_with_absl()\n+# Attempted fix for https://github.com/google/jax/issues/2507 based on rese...
Python
Apache License 2.0
google/jax
try resetting global tracer state in loops_test.py attempting to address #2507
260,335
30.03.2020 20:12:33
25,200
b015e5716999b80e1bdb15749e5f040dec8955c0
try re-enabling control tests that trigger
[ { "change_type": "MODIFY", "old_path": "examples/control_test.py", "new_path": "examples/control_test.py", "diff": "@@ -215,7 +215,6 @@ class ControlExampleTest(jtu.JaxTestCase):\nself.assertAllClose(U[1:], np.zeros((T - 1, 2)), check_dtypes=True)\n- @jtu.skip_on_devices(\"cpu\") # TODO(mattjj,froys...
Python
Apache License 2.0
google/jax
try re-enabling control tests that trigger #2507
260,335
30.03.2020 20:22:04
25,200
909fee6a2d4b0cdb70bb3c85d5cb9a317996c596
try adding sphinx-autodoc-typehints
[ { "change_type": "MODIFY", "old_path": "docs/conf.py", "new_path": "docs/conf.py", "diff": "@@ -60,6 +60,7 @@ extensions = [\n'sphinx.ext.napoleon',\n'sphinx.ext.viewcode',\n'nbsphinx',\n+ 'sphinx_autodoc_typehints',\n]\nintersphinx_mapping = {\n" }, { "change_type": "MODIFY", "old_path"...
Python
Apache License 2.0
google/jax
try adding sphinx-autodoc-typehints
260,335
30.03.2020 21:09:12
25,200
e7be43da8a6b03b109a5c280a21924b8a2294ee5
update api.py docstrings for sphinx highlighting
[ { "change_type": "MODIFY", "old_path": "jax/api.py", "new_path": "jax/api.py", "diff": "@@ -85,23 +85,22 @@ _thread_local_state = _ThreadLocalState()\ndef jit(fun: Callable, static_argnums: Union[int, Iterable[int]] = (),\ndevice=None, backend: Optional[str] = None) -> Callable:\n- \"\"\"Sets up `fu...
Python
Apache License 2.0
google/jax
update api.py docstrings for sphinx highlighting
260,335
30.03.2020 21:30:47
25,200
7a9c550ed143b01f97ec4e2a15f4937994918326
add sphinx-autodoc-typehints to travis install
[ { "change_type": "MODIFY", "old_path": ".travis.yml", "new_path": ".travis.yml", "diff": "@@ -37,7 +37,7 @@ install:\n# The following are needed to test the Colab notebooks and the documentation building\n- if [ \"$JAX_ONLY_DOCUMENTATION\" = true ]; then\nconda install --yes -c conda-forge pandoc ip...
Python
Apache License 2.0
google/jax
add sphinx-autodoc-typehints to travis install
260,335
30.03.2020 22:12:38
25,200
a4ceae1c001967a1fdedaa054b4ee8f05ca2ca1b
fix link in custom derivatives tutorial notebook
[ { "change_type": "MODIFY", "old_path": "docs/notebooks/Custom_derivative_rules_for_Python_code.ipynb", "new_path": "docs/notebooks/Custom_derivative_rules_for_Python_code.ipynb", "diff": "\"source\": [\n\"In words, we again start with a a primal function `f` that takes inputs of type `a` and produce...
Python
Apache License 2.0
google/jax
fix link in custom derivatives tutorial notebook
260,411
31.03.2020 11:11:47
-7,200
59ed4aeaed4637f2c6e14f925ee873e2e1dcad92
Disable test_while_loop_of_pmap on all platforms Issue: Disable the test so that we can continue the google3 tests
[ { "change_type": "MODIFY", "old_path": "tests/lax_control_flow_test.py", "new_path": "tests/lax_control_flow_test.py", "diff": "@@ -1816,10 +1816,9 @@ class LaxControlFlowTest(jtu.JaxTestCase):\nexpected = onp.arange(10)\nself.assertAllClose(ans, expected, check_dtypes=False)\n+ @jtu.skip_on_devices...
Python
Apache License 2.0
google/jax
Disable test_while_loop_of_pmap on all platforms Issue: #2554 Disable the test so that we can continue the google3 tests
260,335
31.03.2020 11:54:57
25,200
29c581bdb40d43cfe89f7b62ad0e2b68847e7e6f
don't hardcode array size in test Fixes
[ { "change_type": "MODIFY", "old_path": "tests/lax_control_flow_test.py", "new_path": "tests/lax_control_flow_test.py", "diff": "@@ -1816,22 +1816,21 @@ class LaxControlFlowTest(jtu.JaxTestCase):\nexpected = onp.arange(10)\nself.assertAllClose(ans, expected, check_dtypes=False)\n- @jtu.skip_on_device...
Python
Apache License 2.0
google/jax
don't hardcode array size in test Fixes #2554
260,469
31.03.2020 19:59:57
14,400
4fa153439e3dee41dd1469a55729b72fee383580
FIX: batch norm w/ no scale, center
[ { "change_type": "MODIFY", "old_path": "jax/experimental/stax.py", "new_path": "jax/experimental/stax.py", "diff": "@@ -134,12 +134,10 @@ def BatchNorm(axis=(0, 1, 2), epsilon=1e-5, center=True, scale=True,\n# TODO(phawkins): np.expand_dims should accept an axis tuple.\n# (https://github.com/numpy/n...
Python
Apache License 2.0
google/jax
FIX: batch norm w/ no scale, center
260,335
31.03.2020 18:46:15
25,200
83b9575145c4d59bb6bf318be8bb659fa05e3f8c
add callable typechecks to more api.py functions
[ { "change_type": "MODIFY", "old_path": "jax/api.py", "new_path": "jax/api.py", "diff": "@@ -480,6 +480,7 @@ def jacfwd(fun: Callable, argnums: Union[int, Sequence[int]] = 0,\n[ 0. , 16. , -2. ],\n[ 1.6209068 , 0. , 0.84147096]]\n\"\"\"\n+ _check_callable(fun)\ndef jacfun(*args, **kwargs):\nf = lu.wr...
Python
Apache License 2.0
google/jax
add callable typechecks to more api.py functions
260,411
31.03.2020 10:01:19
-7,200
d2a827a08a87a85c2ba62fcadbc4d28cf5a4c092
Ensure the global trace_state is restored on errors in loops This is an attempted fix for
[ { "change_type": "MODIFY", "old_path": "jax/experimental/loops.py", "new_path": "jax/experimental/loops.py", "diff": "@@ -136,6 +136,7 @@ class Scope(object):\ndef __init__(self):\nself._mutable_state = {} # state to be functionalized, indexed by name.\nself._active_ranges = [] # stack of active ran...
Python
Apache License 2.0
google/jax
Ensure the global trace_state is restored on errors in loops This is an attempted fix for https://github.com/google/jax/issues/2507
260,335
01.04.2020 08:25:32
25,200
86a4073a756126bb659c7027b85eb309aed98d60
enable beta test on float64 values * enable beta test on float64 values cf. * Enable beta test on all platforms. It seems sufficiently fast now.
[ { "change_type": "MODIFY", "old_path": "tests/random_test.py", "new_path": "tests/random_test.py", "diff": "@@ -226,11 +226,10 @@ class LaxRandomTest(jtu.JaxTestCase):\n\"a\": a, \"b\": b, \"dtype\": onp.dtype(dtype).name}\nfor a in [0.2, 5.]\nfor b in [0.2, 5.]\n- for dtype in [onp.float32, onp.flo...
Python
Apache License 2.0
google/jax
enable beta test on float64 values (#1177) * enable beta test on float64 values cf. #1123 * Enable beta test on all platforms. It seems sufficiently fast now. Co-authored-by: Peter Hawkins <phawkins@google.com>
260,411
02.04.2020 11:13:40
-7,200
0c53ce9def83699f107f3b5a3f683d0b2a50986a
Disable test with float16 on TPU
[ { "change_type": "MODIFY", "old_path": "jax/test_util.py", "new_path": "jax/test_util.py", "diff": "@@ -314,6 +314,10 @@ def supported_dtypes():\ndtypes.bfloat16, onp.float16, onp.float32, onp.float64,\nonp.complex64, onp.complex128}\n+def skip_if_unsupported_type(dtype):\n+ if dtype not in supporte...
Python
Apache License 2.0
google/jax
Disable test with float16 on TPU
260,411
02.04.2020 13:10:50
-7,200
32c45fbb42e716291c56060109c77e8f1e8adeea
Another attempt to disable new failing test on TPU
[ { "change_type": "MODIFY", "old_path": "tests/lax_numpy_test.py", "new_path": "tests/lax_numpy_test.py", "diff": "@@ -1228,6 +1228,7 @@ class LaxBackedNumpyTests(jtu.JaxTestCase):\nfor x1_shape, x2_shape in filter(_shapes_are_broadcast_compatible,\nCombosWithReplacement(array_shapes, 2))\nfor x1_dty...
Python
Apache License 2.0
google/jax
Another attempt to disable new failing test on TPU
260,335
02.04.2020 07:52:17
25,200
84dc6cc1c4661afaa6cb0c1d61514131f31bab2c
post process call of jet! Also included David's jet rule for lax.select.
[ { "change_type": "MODIFY", "old_path": "jax/experimental/jet.py", "new_path": "jax/experimental/jet.py", "diff": "@@ -49,12 +49,18 @@ def jet(fun, primals, series):\nyield tree_flatten(ans)\nf, out_tree = flatten_fun_output(lu.wrap_init(fun))\n- out_primals, out_terms = jet_transform(f).call_wrapped...
Python
Apache License 2.0
google/jax
post process call of jet! Also included David's jet rule for lax.select. Co-authored-by: Jesse Bettencourt <jessebett@cs.toronto.edu> Co-authored-by: Jacob Kelly <jacob.jin.kelly@gmail.com> Co-authored-by: David Duvenaud <duvenaud@cs.toronto.edu>
260,335
02.04.2020 15:52:01
25,200
c72abf6dab27fb9f43178808f9357dfa795c5b7d
re-enable travis mypy testing (typo broke it)
[ { "change_type": "MODIFY", "old_path": ".travis.yml", "new_path": ".travis.yml", "diff": "@@ -44,7 +44,7 @@ script:\n- if [ \"$JAX_ONLY_DOCUMENTATION\" = true ]; then\nsphinx-build -b html -D nbsphinx_execute=always docs docs/build/html ;\nelif [ \"$JAX_ONLY_CHECK_TYPES\" = true ]; then\n- echo \"==...
Python
Apache License 2.0
google/jax
re-enable travis mypy testing (typo broke it)
260,335
02.04.2020 17:18:47
25,200
ab0a005452d04cae33164e88b616e45f6e5c19f5
check sublevel is reset in loops_test.py
[ { "change_type": "MODIFY", "old_path": "tests/api_test.py", "new_path": "tests/api_test.py", "diff": "@@ -46,6 +46,13 @@ FLAGS = config.FLAGS\nclass APITest(jtu.JaxTestCase):\n+ def tearDown(self) -> None:\n+ if (core.trace_state.substack != [core.Sublevel(0)] or\n+ core.trace_state.trace_stack.down...
Python
Apache License 2.0
google/jax
check sublevel is reset in loops_test.py
260,335
02.04.2020 18:03:58
25,200
b78b7a03090aa4a7146ec32eb29b068f68bbf0ec
add global trace state checks to more tests
[ { "change_type": "MODIFY", "old_path": "jax/core.py", "new_path": "jax/core.py", "diff": "@@ -542,6 +542,17 @@ class TraceState(threading.local):\nreturn new\ntrace_state = TraceState()\n+def reset_trace_state() -> bool:\n+ \"Reset the global trace state and return True if it was already clean.\"\n+...
Python
Apache License 2.0
google/jax
add global trace state checks to more tests
260,335
02.04.2020 18:19:44
25,200
6d4987cc04e47d338e6d37bd9a75c84f1664809c
make core.trace_state resetting be thread-local
[ { "change_type": "MODIFY", "old_path": "jax/core.py", "new_path": "jax/core.py", "diff": "@@ -544,11 +544,10 @@ trace_state = TraceState()\ndef reset_trace_state() -> bool:\n\"Reset the global trace state and return True if it was already clean.\"\n- global trace_state\nif (trace_state.substack != [...
Python
Apache License 2.0
google/jax
make core.trace_state resetting be thread-local
260,335
02.04.2020 20:14:12
25,200
5d3f1bdf4c140db29c15d4dfca594ddfae27f577
tell mypy: using __init__ to reinitialize is OK
[ { "change_type": "MODIFY", "old_path": "jax/core.py", "new_path": "jax/core.py", "diff": "@@ -547,7 +547,7 @@ def reset_trace_state() -> bool:\nif (trace_state.substack != [Sublevel(0)] or\ntrace_state.trace_stack.downward or\ntrace_state.trace_stack.upward):\n- trace_state.__init__()\n+ trace_state...
Python
Apache License 2.0
google/jax
tell mypy: using __init__ to reinitialize is OK
260,335
02.04.2020 21:04:12
25,200
297c90246d22dccfa8d280097a5fa653e992643c
make tracers tree-pretty-print their contents
[ { "change_type": "MODIFY", "old_path": "jax/core.py", "new_path": "jax/core.py", "diff": "@@ -449,7 +449,18 @@ class Tracer(object):\nreturn attr\ndef __repr__(self):\n- return 'Traced<{}>with<{}>'.format(self.aval, self._trace)\n+ base = pp('Traced<{}>with<{}>'.format(self.aval, self._trace))\n+ co...
Python
Apache License 2.0
google/jax
make tracers tree-pretty-print their contents
260,335
02.04.2020 22:01:43
25,200
f2de1bf3457b7cece346c8e8762f1bd67bfdcc32
add trace state check tearDown to JaxTestCase
[ { "change_type": "MODIFY", "old_path": "jax/test_util.py", "new_path": "jax/test_util.py", "diff": "@@ -668,6 +668,9 @@ def cases_from_gens(*gens):\nclass JaxTestCase(parameterized.TestCase):\n\"\"\"Base class for JAX tests including numerical checks and boilerplate.\"\"\"\n+ def tearDown(self) -> N...
Python
Apache License 2.0
google/jax
add trace state check tearDown to JaxTestCase
260,335
02.04.2020 22:52:07
25,200
0e49133e12c2a318e02e5c9dd3d664d730e0be45
add full lower to custom_jvp/vjp call bind fixes
[ { "change_type": "MODIFY", "old_path": "jax/custom_derivatives.py", "new_path": "jax/custom_derivatives.py", "diff": "@@ -252,6 +252,7 @@ def _flatten_jvp(in_tree, *args):\nyield primals_out + tangents_out, out_tree\ndef _custom_jvp_call_bind(prim, fun, jvp, *args):\n+ args = map(core.full_lower, ar...
Python
Apache License 2.0
google/jax
add full lower to custom_jvp/vjp call bind fixes #2578
260,335
02.04.2020 23:11:55
25,200
ba8225f394b0e4aa5a9e09476cce8e917ebda527
skip all parallelize tests (abandonware right now)
[ { "change_type": "MODIFY", "old_path": "tests/parallel_test.py", "new_path": "tests/parallel_test.py", "diff": "import itertools\nimport unittest\n-from unittest import SkipTest\n+from unittest import SkipTest, skip\nimport numpy as onp\nfrom absl.testing import absltest\n@@ -130,6 +130,7 @@ class P...
Python
Apache License 2.0
google/jax
skip all parallelize tests (abandonware right now)
260,510
03.04.2020 13:27:02
25,200
72783bb71b1848442549ad9c6b699e88cd07d0cb
Fix grad(logit) to use defjvps and enable it in tests
[ { "change_type": "MODIFY", "old_path": "jax/scipy/special.py", "new_path": "jax/scipy/special.py", "diff": "@@ -84,7 +84,7 @@ def erfinv(x):\ndef logit(x):\nx = asarray(x)\nreturn lax.log(lax.div(x, lax.sub(lax._const(x, 1), x)))\n-logit.defjvp(lambda g, ans, x: g / (x * (1 - x)))\n+logit.defjvps(la...
Python
Apache License 2.0
google/jax
Fix grad(logit) to use defjvps and enable it in tests
260,411
02.04.2020 14:44:36
-7,200
f5f35c5c3b9087aa4f122d934437c7f0ff36ba76
Adapted vmap out_axes check to sum_match
[ { "change_type": "MODIFY", "old_path": "jax/interpreters/batching.py", "new_path": "jax/interpreters/batching.py", "diff": "@@ -59,7 +59,7 @@ def _batch_fun(sum_match, in_dims, out_dims_thunk, out_dim_dests, *in_vals, **pa\nout_dim_dests = out_dim_dests() if callable(out_dim_dests) else out_dim_dest...
Python
Apache License 2.0
google/jax
Adapted vmap out_axes check to sum_match
260,313
06.04.2020 19:48:42
-3,600
fc23e071bcb73d2181c890d240f94cdcec47a058
Also enable nan checking for complex numbers
[ { "change_type": "MODIFY", "old_path": "jax/interpreters/xla.py", "new_path": "jax/interpreters/xla.py", "diff": "@@ -279,7 +279,7 @@ def check_nans(prim, bufs):\ndef _check_nans(name, xla_shape, buf):\nassert not xla_shape.is_tuple()\n- if dtypes.issubdtype(xla_shape.element_type(), onp.floating):\...
Python
Apache License 2.0
google/jax
Also enable nan checking for complex numbers (#2616)
260,700
07.04.2020 17:55:07
14,400
4d7b63c5ecb92419319fa1f5809d595ebce43fa7
add expm1 and log1p
[ { "change_type": "MODIFY", "old_path": "jax/experimental/jet.py", "new_path": "jax/experimental/jet.py", "diff": "@@ -228,6 +228,17 @@ def _exp_taylor(primals_in, series_in):\nreturn primal_out, series_out\njet_rules[lax.exp_p] = _exp_taylor\n+def _expm1_taylor(primals_in, series_in):\n+ x, = primal...
Python
Apache License 2.0
google/jax
add expm1 and log1p
260,700
08.04.2020 21:51:44
14,400
1fa0e8a67df65a4c941d4970f1961d5cb5e4d450
jet of pow using comp with exp, mul, log
[ { "change_type": "MODIFY", "old_path": "jax/experimental/jet.py", "new_path": "jax/experimental/jet.py", "diff": "@@ -239,6 +239,22 @@ def _expm1_taylor(primals_in, series_in):\nreturn lax.expm1(x), series_out\njet_rules[lax.expm1_p] = _expm1_taylor\n+def _pow_taylor(primals_in, series_in):\n+ u_, r...
Python
Apache License 2.0
google/jax
jet of pow using comp with exp, mul, log Co-authored-by: Jesse Bettencourt <jessebett@cs.toronto.edu> Co-authored-by: David Duvenaud <duvenaud@cs.toronto.edu>
260,335
03.04.2020 21:33:32
25,200
7ab67756c804adf33f832a525eb8975e6ddc995f
make float and complex builtins error on Tracers cf.
[ { "change_type": "MODIFY", "old_path": "jax/core.py", "new_path": "jax/core.py", "diff": "@@ -419,13 +419,19 @@ class Tracer(object):\ndef __getitem__(self, idx): return self.aval._getitem(self, idx)\ndef __nonzero__(self): return self.aval._nonzero(self)\ndef __bool__(self): return self.aval._bool(...
Python
Apache License 2.0
google/jax
make float and complex builtins error on Tracers cf. #2508
260,411
09.04.2020 14:10:52
-7,200
5965225011292dd126a06e8eb2b2a4ace0f99248
Fix type hints for pytype * We have to be careful for return types to specify that we return Tuple[T, ...] instead of Sequence[T], at least in those places where the caller assumes that the result is a tuple.
[ { "change_type": "MODIFY", "old_path": "jax/interpreters/partial_eval.py", "new_path": "jax/interpreters/partial_eval.py", "diff": "@@ -370,8 +370,9 @@ class JaxprTracer(Tracer):\n# TODO(necula): this should return a TypedJaxpr\ndef trace_to_jaxpr(fun: lu.WrappedFun, pvals: Sequence[PartialVal],\n- ...
Python
Apache License 2.0
google/jax
Fix type hints for pytype * We have to be careful for return types to specify that we return Tuple[T, ...] instead of Sequence[T], at least in those places where the caller assumes that the result is a tuple.
260,284
09.04.2020 20:36:09
-3,600
1694a56fa344bd677bbb36e5da818dd24f8659e1
Fixes a fallthrough in the tensordot axes verification logic
[ { "change_type": "MODIFY", "old_path": "jax/numpy/lax_numpy.py", "new_path": "jax/numpy/lax_numpy.py", "diff": "@@ -2455,6 +2455,9 @@ def tensordot(a, b, axes=2, precision=None):\nraise TypeError(msg.format(ax1, ax2))\ncontracting_dims = (tuple(_canonicalize_axis(i, a_ndim) for i in ax1),\ntuple(_ca...
Python
Apache License 2.0
google/jax
Fixes a fallthrough in the tensordot axes verification logic (#2658)
260,554
09.04.2020 13:27:16
25,200
25d797b1d9236a76c681a7e9061a4bc87339ee35
Added callback_transform, examples, and tests.
[ { "change_type": "ADD", "old_path": null, "new_path": "jax/experimental/.#callback.py", "diff": "+schsam@schsam-macbookpro2.roam.corp.google.com.3400\n\\ No newline at end of file\n" }, { "change_type": "ADD", "old_path": null, "new_path": "jax/experimental/callback.py", "diff": ...
Python
Apache License 2.0
google/jax
Added callback_transform, examples, and tests.
260,554
09.04.2020 13:52:14
25,200
940640d8d26711cef72f6c46240e6ee9ae599760
Added tests of callback_transform(jit(fn)).
[ { "change_type": "MODIFY", "old_path": "tests/callback_test.py", "new_path": "tests/callback_test.py", "diff": "@@ -22,6 +22,7 @@ from jax.experimental.callback import (\ncallback_transform, find_by_value, rewrite, FoundValue)\nimport jax.numpy as np\nfrom jax import lax\n+from jax import jit\nfrom ...
Python
Apache License 2.0
google/jax
Added tests of callback_transform(jit(fn)).
260,370
09.04.2020 18:10:49
14,400
60d856ab9f6d82cdb370b2d6d0eba1ada6a22253
remove from __future__ code
[ { "change_type": "MODIFY", "old_path": "examples/control.py", "new_path": "examples/control.py", "diff": "Model-predictive non-linear control example.\n\"\"\"\n-from __future__ import absolute_import\n-from __future__ import division\n-from __future__ import print_function\n-\nimport collections\nfr...
Python
Apache License 2.0
google/jax
remove from __future__ code
260,554
09.04.2020 15:20:41
25,200
f5908cb5ee78b550110f6262275d64538ab5bf01
Fixed copyright, added type annotations, disabled mypy on one line.
[ { "change_type": "MODIFY", "old_path": "jax/experimental/callback.py", "new_path": "jax/experimental/callback.py", "diff": "-# Copyright 2018 Google LLC\n+# Copyright 2020 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compli...
Python
Apache License 2.0
google/jax
Fixed copyright, added type annotations, disabled mypy on one line.
260,700
09.04.2020 10:27:01
14,400
8a65e9da6038a3cc269598a5cf4eb9b4670316f7
call jet and manually propagate through exp
[ { "change_type": "MODIFY", "old_path": "jax/experimental/jet.py", "new_path": "jax/experimental/jet.py", "diff": "@@ -241,17 +241,16 @@ jet_rules[lax.expm1_p] = _expm1_taylor\ndef _pow_taylor(primals_in, series_in):\nu_, r_ = primals_in\n- u_terms, r_terms = series_in\n- u = [u_] + u_terms\n- r = [r...
Python
Apache License 2.0
google/jax
call jet and manually propagate through exp Co-authored-by: Stephan Hoyer <shoyer@google.com>
260,700
09.04.2020 11:16:00
14,400
8503656ea87eb990d3a7428203e6a703ce59e0a3
add finite test, add sep lims for binary_check
[ { "change_type": "MODIFY", "old_path": "tests/jet_test.py", "new_path": "tests/jet_test.py", "diff": "@@ -56,6 +56,32 @@ class JetTest(jtu.JaxTestCase):\ncheck_dtypes=True):\ny, terms = jet(fun, primals, series)\nexpected_y, expected_terms = jvp_taylor(fun, primals, series)\n+\n+ self.assertAllClose...
Python
Apache License 2.0
google/jax
add finite test, add sep lims for binary_check
260,335
10.04.2020 11:41:35
25,200
61abdc1e108002918ecdb075e9a7a071c43f97fa
add missing instantiate_zeros in custom_jvp fixes
[ { "change_type": "MODIFY", "old_path": "jax/custom_derivatives.py", "new_path": "jax/custom_derivatives.py", "diff": "@@ -294,7 +294,8 @@ custom_jvp_call_jaxpr_p.def_abstract_eval(_custom_jvp_call_jaxpr_abstract_eval)\ndef _custom_jvp_call_jaxpr_jvp(primals, tangents, *, fun_jaxpr, jvp_jaxpr_thunk):...
Python
Apache License 2.0
google/jax
add missing instantiate_zeros in custom_jvp fixes #2657
260,380
10.04.2020 20:30:01
-3,600
656c3a95041884e612173d683a7f5c7226421848
fix a typo in docs notebook
[ { "change_type": "MODIFY", "old_path": "docs/notebooks/How_JAX_primitives_work.ipynb", "new_path": "docs/notebooks/How_JAX_primitives_work.ipynb", "diff": "\"\\n\",\n\" This function does not need to be JAX traceable.\\n\",\n\" Args:\\n\",\n- \" x, y, z: the concrete arguments of the primitive. Will...
Python
Apache License 2.0
google/jax
fix a typo in docs notebook (#2672)
260,411
11.04.2020 12:09:05
-7,200
ee2cd44918d28ace85fce627370120d6cc7fb688
Added missing import warnings Also fixed a couple of unnecessary f-strings (Cider was flagging them)
[ { "change_type": "MODIFY", "old_path": "jax/scipy/signal.py", "new_path": "jax/scipy/signal.py", "diff": "# limitations under the License.\nimport scipy.signal as osp_signal\n+import warnings\nfrom .. import lax\nfrom ..numpy import lax_numpy as jnp\n@@ -60,7 +61,7 @@ def convolve(in1, in2, mode='fu...
Python
Apache License 2.0
google/jax
Added missing import warnings Also fixed a couple of unnecessary f-strings (Cider was flagging them)