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,314 | 28.03.2019 17:59:42 | 14,400 | a0636eaedd3934e65f877c2159449d04d4b84a9d | implement cauchy pdf and random sampler | [
{
"change_type": "MODIFY",
"old_path": "jax/random.py",
"new_path": "jax/random.py",
"diff": "@@ -32,6 +32,7 @@ from . import lax\nfrom . import numpy as np\nfrom . import tree_util\nfrom .api import jit\n+from .numpy.lax_numpy import _constant_like\nfrom jax.lib import xla_bridge\nfrom jax import c... | Python | Apache License 2.0 | google/jax | implement cauchy pdf and random sampler |
260,314 | 28.03.2019 18:02:20 | 14,400 | 16be2262e333eaced41bca300a2d0d777932c9a2 | add cauchy to init file | [
{
"change_type": "MODIFY",
"old_path": "jax/scipy/stats/__init__.py",
"new_path": "jax/scipy/stats/__init__.py",
"diff": "from __future__ import absolute_import\nfrom . import beta\n+from . import cauchy\nfrom . import expon\nfrom . import gamma\nfrom . import laplace\n"
},
{
"change_type": ... | Python | Apache License 2.0 | google/jax | add cauchy to init file |
260,299 | 28.03.2019 22:06:27 | 0 | ce3953ebb34b2b59a9187b3aa2cfb32241b7cbb2 | Stabler expit and logit derivatives | [
{
"change_type": "MODIFY",
"old_path": "jax/scipy/special.py",
"new_path": "jax/scipy/special.py",
"diff": "@@ -20,6 +20,8 @@ import numpy as onp\nimport scipy.special as osp_special\nfrom .. import lax\n+from ..api import custom_transforms\n+from ..interpreters import ad\nfrom ..numpy import lax_nu... | Python | Apache License 2.0 | google/jax | Stabler expit and logit derivatives |
260,299 | 28.03.2019 22:18:04 | 0 | b2bd93c801b8d8fdb63fc97279ba50e18c62d755 | Setup batching for expit and logit | [
{
"change_type": "MODIFY",
"old_path": "jax/scipy/special.py",
"new_path": "jax/scipy/special.py",
"diff": "@@ -21,7 +21,7 @@ import scipy.special as osp_special\nfrom .. import lax\nfrom ..api import custom_transforms\n-from ..interpreters import ad\n+from ..interpreters import ad, batching\nfrom .... | Python | Apache License 2.0 | google/jax | Setup batching for expit and logit |
260,299 | 28.03.2019 22:27:37 | 0 | 13d1d7c4591e7f5f5f40c0ed9b92cbef3bce86c4 | Remove logit todo from lax_scipy_test | [
{
"change_type": "MODIFY",
"old_path": "tests/lax_scipy_test.py",
"new_path": "tests/lax_scipy_test.py",
"diff": "@@ -66,7 +66,6 @@ JAX_SPECIAL_FUNCTION_RECORDS = [\nop_record(\"expit\", 1, float_dtypes, jtu.rand_small_positive(), True),\n# TODO: gammaln has slightly high error.\nop_record(\"gammaln... | Python | Apache License 2.0 | google/jax | Remove logit todo from lax_scipy_test |
260,314 | 28.03.2019 23:57:00 | 14,400 | 890ba842a91b53faef77208df3f641aeea2bc428 | implement expon and laplace sampler | [
{
"change_type": "MODIFY",
"old_path": "jax/random.py",
"new_path": "jax/random.py",
"diff": "@@ -399,4 +399,39 @@ def cauchy(key, shape=(), dtype=onp.float32):\n\"\"\"\nu = uniform(key, shape, dtype)\npi = _constant_like(u, onp.pi)\n- return lax.tan(pi * lax.sub(u, _constant_like(u, 0.5)))\n+ retur... | Python | Apache License 2.0 | google/jax | implement expon and laplace sampler |
260,335 | 29.03.2019 08:03:58 | 25,200 | aa6cebff440519bddd611b0f6b9bc841bdec0b18 | fix typo in vmap (fixes | [
{
"change_type": "MODIFY",
"old_path": "jax/api.py",
"new_path": "jax/api.py",
"diff": "@@ -413,8 +413,7 @@ def vmap(fun, in_axes=0, out_axes=0):\n@wraps(fun, docstr=docstr)\ndef batched_fun(*args, **kwargs):\n- if not isinstance(fun, lu.WrappedFun):\n- f = lu.wrap_init(fun, kwargs)\n+ f = lu.wrap_i... | Python | Apache License 2.0 | google/jax | fix typo in vmap (fixes #536) |
260,314 | 30.03.2019 00:00:15 | 14,400 | 0bb657d646d4994407c4177642dc8892e7dea04b | add stats.t.pdf | [
{
"change_type": "MODIFY",
"old_path": "jax/scipy/stats/__init__.py",
"new_path": "jax/scipy/stats/__init__.py",
"diff": "@@ -20,4 +20,5 @@ from . import gamma\nfrom . import laplace\nfrom . import multivariate_normal\nfrom . import norm\n+from . import t\nfrom . import uniform\n"
},
{
"chan... | Python | Apache License 2.0 | google/jax | add stats.t.pdf |
260,660 | 30.03.2019 17:18:53 | -32,400 | eb4945c0112ebf5550b41929e78802c1a6139424 | DOC: Fix typo in `ops.index_update` | [
{
"change_type": "MODIFY",
"old_path": "jax/ops/scatter.py",
"new_path": "jax/ops/scatter.py",
"diff": "@@ -214,7 +214,7 @@ def index_update(x, idx, y):\nReturns the value of `x` that would result from the\nNumPy-style :mod:`indexed assignment <numpy.doc.indexing>`::\n- x[idx] += y\n+ x[idx] = y\nNo... | Python | Apache License 2.0 | google/jax | DOC: Fix typo in `ops.index_update` |
260,314 | 30.03.2019 16:34:20 | 14,400 | bb095d3df534a8f5d6c55cc449ee923160a90d6f | implement pareto logpdf and sampler | [
{
"change_type": "MODIFY",
"old_path": "jax/random.py",
"new_path": "jax/random.py",
"diff": "@@ -435,3 +435,26 @@ def laplace(key, shape=(), dtype=onp.float32):\n\"\"\"\nu = uniform(key, shape, dtype, minval=-1., maxval=1.)\nreturn lax.mul(lax.sign(u), lax.log1p(lax.neg(lax.abs(u))))\n+\n+\n+@parti... | Python | Apache License 2.0 | google/jax | implement pareto logpdf and sampler |
260,314 | 30.03.2019 16:45:17 | 14,400 | 096ba63ba6f5c8514c21f7390ce45b7734e2245e | correct TODO test name for bernoulli | [
{
"change_type": "MODIFY",
"old_path": "tests/random_test.py",
"new_path": "tests/random_test.py",
"diff": "@@ -151,7 +151,7 @@ class LaxRandomTest(jtu.JaxTestCase):\nself.assertFalse(onp.all(perm1 == x)) # seems unlikely!\nself.assertTrue(onp.all(onp.sort(perm1) == x))\n- # TODO: add Kolmogorov-Smi... | Python | Apache License 2.0 | google/jax | correct TODO test name for bernoulli |
260,314 | 30.03.2019 17:15:49 | 14,400 | 5309d53a3626dc14504c63a8742511158ae3dfa1 | change behaviour at distribution boundary | [
{
"change_type": "MODIFY",
"old_path": "jax/scipy/stats/beta.py",
"new_path": "jax/scipy/stats/beta.py",
"diff": "@@ -35,8 +35,8 @@ def logpdf(x, a, b, loc=0, scale=1):\nlog_linear_term = lax.add(lax.mul(lax.sub(a, one), lax.log(y)),\nlax.mul(lax.sub(b, one), lax.log(lax.sub(one, y))))\nlog_probs = ... | Python | Apache License 2.0 | google/jax | change behaviour at distribution boundary |
260,314 | 30.03.2019 18:07:34 | 14,400 | e0567b6d169c2a4598139d9b9e49670d0b744587 | add Gamma sampler | [
{
"change_type": "MODIFY",
"old_path": "jax/random.py",
"new_path": "jax/random.py",
"diff": "@@ -31,7 +31,7 @@ import numpy as onp\nfrom . import lax\nfrom . import numpy as np\nfrom . import tree_util\n-from .api import jit\n+from .api import jit, vmap\nfrom .numpy.lax_numpy import _constant_like\... | Python | Apache License 2.0 | google/jax | add Gamma sampler |
260,335 | 31.03.2019 13:26:10 | 25,200 | f7a696f55cbefee15adfef3f968cb41cbc3f8707 | add forward-over-reverse hvp, timings from | [
{
"change_type": "MODIFY",
"old_path": "notebooks/autodiff_cookbook.ipynb",
"new_path": "notebooks/autodiff_cookbook.ipynb",
"diff": "\"metadata\": {\n\"colab_type\": \"code\",\n\"id\": \"JTYyZkSO6vuy\",\n- \"outputId\": \"7e9004a9-135a-4376-dfc7-585c60d02508\",\n+ \"outputId\": \"a447ccef-4d24-47e9... | Python | Apache License 2.0 | google/jax | add forward-over-reverse hvp, timings from @alexbw |
260,314 | 31.03.2019 23:54:31 | 14,400 | cbf45282ee16f910c48b63ad027848787b174abf | convert gamma_one to lax api and move the inner while_loop to the outside | [
{
"change_type": "MODIFY",
"old_path": "jax/random.py",
"new_path": "jax/random.py",
"diff": "@@ -422,39 +422,52 @@ def exponential(key, shape=(), dtype=onp.float32):\ndef _gamma_one(key, alpha):\n# Ref: A simple method for generating gamma variables, George Marsaglia and Wai Wan Tsang\n+ # The algo... | Python | Apache License 2.0 | google/jax | convert gamma_one to lax api and move the inner while_loop to the outside |
260,314 | 01.04.2019 00:32:42 | 14,400 | 69c4e225241578b4b5ed25c64a39e4d4951bd503 | add dtype for samplers in gamma_one | [
{
"change_type": "MODIFY",
"old_path": "jax/random.py",
"new_path": "jax/random.py",
"diff": "@@ -429,13 +429,14 @@ def _gamma_one(key, alpha):\none_over_two = _constant_like(alpha, 0.5)\none_over_three = _constant_like(alpha, 1. / 3.)\nsqueeze_const = _constant_like(alpha, 0.0331)\n+ dtype = lax._d... | Python | Apache License 2.0 | google/jax | add dtype for samplers in gamma_one |
260,335 | 01.04.2019 17:21:50 | 25,200 | f17d31fdf21248eafb4f6cd0c197ec1af9c694b8 | rename xla_pcall -> xla_pmap | [
{
"change_type": "MODIFY",
"old_path": "jax/api.py",
"new_path": "jax/api.py",
"diff": "@@ -440,7 +440,7 @@ def pmap(fun, axis_name=None):\n_check_args(jaxtupletree_args)\nf = lu.wrap_init(fun, kwargs)\nf, out_tree = pytree_fun_to_jaxtupletree_fun(f, in_trees)\n- jaxtupletree_out = pxla.xla_pcall(f,... | Python | Apache License 2.0 | google/jax | rename xla_pcall -> xla_pmap |
260,335 | 01.04.2019 17:56:23 | 25,200 | 8ace5191b666cc7a497551c085e817a4afa4b25d | enable spmd collectives over multiple axes at once
e.g. lax.psum(x, (i, j)) | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/pxla.py",
"new_path": "jax/interpreters/pxla.py",
"diff": "@@ -108,7 +108,7 @@ def assign_shards_to_replicas(nrep, size):\nindices = onp.tile(onp.arange(size)[:, None], (1, groupsize))\nreturn tuple(indices.ravel())\n-def replica_groups(nrep, ... | Python | Apache License 2.0 | google/jax | enable spmd collectives over multiple axes at once
e.g. lax.psum(x, (i, j)) |
260,335 | 01.04.2019 21:19:55 | 25,200 | dfdfac55c0d8082cd6168e27ed452c84bb6ec632 | update tensorflow version for new xla | [
{
"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 = \"1db7390bd4c51be7526dc22d665b451109cdce56eb101f9e70996ed91dbdf746\",\n- strip_pref... | Python | Apache License 2.0 | google/jax | update tensorflow version for new xla |
260,299 | 02.04.2019 10:55:03 | -3,600 | 7b13ae4b41f616abe2328c11999ca837d002efce | Add Gumbel to jax.random, and test | [
{
"change_type": "MODIFY",
"old_path": "jax/random.py",
"new_path": "jax/random.py",
"diff": "@@ -458,3 +458,19 @@ def pareto(key, b, shape=(), dtype=onp.float32):\nb = np.broadcast_to(b, shape)\ne = exponential(key, shape, dtype)\nreturn lax.exp(lax.div(e, b))\n+\n+\n+@partial(jit, static_argnums=(... | Python | Apache License 2.0 | google/jax | Add Gumbel to jax.random, and test |
260,299 | 02.04.2019 10:56:44 | -3,600 | 996c62337c23f16ccb3d8c46b4d1eae0bde851eb | Rm unnecessary dtype arg name | [
{
"change_type": "MODIFY",
"old_path": "jax/random.py",
"new_path": "jax/random.py",
"diff": "@@ -473,4 +473,4 @@ def gumbel(key, shape=(), dtype=onp.float32):\nReturns:\nA random array with the specified shape and dtype.\n\"\"\"\n- return -np.log(-np.log(uniform(key, shape, dtype=dtype)))\n+ return... | Python | Apache License 2.0 | google/jax | Rm unnecessary dtype arg name |
260,335 | 02.04.2019 11:22:19 | 25,200 | 51d2722185edc3559a1732bcce7f086e714bcbc6 | add graphviz-dumping function | [
{
"change_type": "MODIFY",
"old_path": "jax/api.py",
"new_path": "jax/api.py",
"diff": "@@ -712,10 +712,9 @@ def make_jaxpr(fun):\naval = xla.abstractify(x)\nreturn pe.PartialVal((aval, core.unit))\n- wrapped = lu.wrap_init(fun)\n-\n@wraps(fun)\ndef jaxpr_maker(*args, **kwargs):\n+ wrapped = lu.wrap... | Python | Apache License 2.0 | google/jax | add graphviz-dumping function |
260,335 | 02.04.2019 21:17:24 | 25,200 | 61ce283f3efc571b108e245a15afff92c6af0483 | graphviz: concat strings only at the end | [
{
"change_type": "MODIFY",
"old_path": "jax/api.py",
"new_path": "jax/api.py",
"diff": "@@ -833,23 +833,23 @@ def make_graphviz(fun):\nid_names = (\"id{}\".format(i) for i in itertools.count())\ndef jaxpr_to_graphviz(jaxpr, consts):\n- fragment = ''\n+ fragment = []\n- fragment += ''.join(map(invar_... | Python | Apache License 2.0 | google/jax | graphviz: concat strings only at the end |
260,299 | 03.04.2019 12:54:02 | -3,600 | 1c9b9a57fd971abd5791c82492a7a0ece581878e | Use jax.random for stax initialization | [
{
"change_type": "MODIFY",
"old_path": "examples/mnist_classifier.py",
"new_path": "examples/mnist_classifier.py",
"diff": "@@ -27,7 +27,7 @@ import numpy.random as npr\nimport jax.numpy as np\nfrom jax.config import config\n-from jax import jit, grad\n+from jax import jit, grad, random\nfrom jax.ex... | Python | Apache License 2.0 | google/jax | Use jax.random for stax initialization |
260,299 | 03.04.2019 13:27:23 | -3,600 | 44c38391ccd9337aa7d29a76ad772f884f1775e6 | Cleaner stax.parallel init | [
{
"change_type": "MODIFY",
"old_path": "jax/experimental/stax.py",
"new_path": "jax/experimental/stax.py",
"diff": "@@ -304,7 +304,7 @@ def parallel(*layers):\nnlayers = len(layers)\ninit_funs, apply_funs = zip(*layers)\ndef init_fun(rng, input_shape):\n- rngs = random.split(rng, len(init_funs))\n+ ... | Python | Apache License 2.0 | google/jax | Cleaner stax.parallel init |
260,299 | 03.04.2019 13:32:14 | -3,600 | 70fc02504b63c25de7efbdb428223492cdfcbe92 | Fix examples_test.py | [
{
"change_type": "MODIFY",
"old_path": "examples/examples_test.py",
"new_path": "examples/examples_test.py",
"diff": "@@ -25,6 +25,7 @@ from absl.testing import parameterized\nimport numpy as onp\nfrom jax import test_util as jtu\n+from jax import random\nimport jax.numpy as np\nsys.path.append(os.p... | Python | Apache License 2.0 | google/jax | Fix examples_test.py |
260,299 | 03.04.2019 15:03:29 | -3,600 | ccb88c4eaab896854085f1d2154591524f0e6f1d | Fix stax x64 dtype issues | [
{
"change_type": "MODIFY",
"old_path": "jax/experimental/stax.py",
"new_path": "jax/experimental/stax.py",
"diff": "@@ -61,7 +61,7 @@ def fastvar(x, axis, keepdims):\ndef randn(stddev=1e-2):\n\"\"\"An initializer function for random normal coefficients.\"\"\"\ndef init(rng, shape):\n- return stddev ... | Python | Apache License 2.0 | google/jax | Fix stax x64 dtype issues |
260,335 | 03.04.2019 09:43:44 | 25,200 | f0e2ff0c95a89d7b6be077a8dcce64c20f1d8609 | make DeviceArray.__repr__ show it's not an ndarray
reverts 33bd02 | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/xla.py",
"new_path": "jax/interpreters/xla.py",
"diff": "@@ -302,6 +302,10 @@ class DeviceArray(DeviceValue):\n\"\"\"Returns an ndarray (backed by host memory, not device memory).\"\"\"\nreturn onp.asarray(self)\n+ def __repr__(self):\n+ shape... | Python | Apache License 2.0 | google/jax | make DeviceArray.__repr__ show it's not an ndarray
reverts 33bd02 |
260,268 | 03.04.2019 10:18:49 | 25,200 | 026a743000900a96bf8701b4a1aad712b93d63b5 | Change MNIST Data URL to CVDF mirror
Change the MNIST data download url to the CVDF mirror, as is done in the main tensorflow and tfds datasets. | [
{
"change_type": "MODIFY",
"old_path": "examples/datasets.py",
"new_path": "examples/datasets.py",
"diff": "@@ -53,7 +53,8 @@ def _one_hot(x, k, dtype=np.float32):\ndef mnist_raw():\n\"\"\"Download and parse the raw MNIST dataset.\"\"\"\n- base_url = \"http://yann.lecun.com/exdb/mnist/\"\n+ # CVDF m... | Python | Apache License 2.0 | google/jax | Change MNIST Data URL to CVDF mirror
Change the MNIST data download url to the CVDF mirror, as is done in the main tensorflow and tfds datasets. |
260,299 | 04.04.2019 09:12:27 | -3,600 | 49f3f991d4faae22fcd9d8248f3d36575b5004f6 | Use safe mul for exp jvp | [
{
"change_type": "MODIFY",
"old_path": "jax/lax.py",
"new_path": "jax/lax.py",
"diff": "@@ -1611,7 +1611,7 @@ is_finite_p = unop(_fixed_dtype(onp.bool_), _float, 'is_finite')\nad.defjvp_zero(is_finite_p)\nexp_p = standard_unop(_float | _complex, 'exp')\n-ad.defjvp2(exp_p, lambda g, ans, x: mul(g, an... | Python | Apache License 2.0 | google/jax | Use safe mul for exp jvp |
260,403 | 04.04.2019 02:09:35 | 25,200 | 116e329e10e22c04f2bcb591c49be83b54dd83c2 | correctly update jax config.values after absl flag parsing | [
{
"change_type": "MODIFY",
"old_path": "jax/config.py",
"new_path": "jax/config.py",
"diff": "@@ -73,6 +73,8 @@ class Config(object):\nflag_type, meta_args, meta_kwargs = self.meta[name]\nabsl_defs[flag_type](name, val, *meta_args, **meta_kwargs)\n+ app.call_after_init(lambda: self.complete_absl_con... | Python | Apache License 2.0 | google/jax | correctly update jax config.values after absl flag parsing |
260,335 | 04.04.2019 17:40:48 | 25,200 | 054d210a3210d950a8371e1687136701acfb5e1b | fix typo in xla_computation | [
{
"change_type": "MODIFY",
"old_path": "jax/api.py",
"new_path": "jax/api.py",
"diff": "@@ -157,15 +157,15 @@ def xla_computation(fun, static_argnums=()):\naval = xla.abstractify(x)\nreturn pe.PartialVal((aval, core.unit))\n- wrapped = lu.wrap_init(fun)\n@wraps(fun)\ndef computation_maker(*args, **k... | Python | Apache License 2.0 | google/jax | fix typo in xla_computation |
260,335 | 05.04.2019 12:59:52 | 25,200 | 027c94da4c04521ed037b5b6753165477b23d05a | update readme gotchas section | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -716,9 +716,10 @@ code to compile and end-to-end optimize much bigger functions.\nFor a survey of current gotchas, with examples and explanations, we highly recommend reading the [Gotchas Notebook](https://colab... | Python | Apache License 2.0 | google/jax | update readme gotchas section |
260,335 | 06.04.2019 10:33:18 | 25,200 | 1be9abd322d1879440f6c45fc94b0217d1c5d848 | add jax.numpy.einsum_path (fixes | [
{
"change_type": "MODIFY",
"old_path": "jax/numpy/lax_numpy.py",
"new_path": "jax/numpy/lax_numpy.py",
"diff": "@@ -1509,6 +1509,11 @@ def einsum(*operands):\ncontractions = tuple(data[:3] for data in contractions)\nreturn _einsum(operands, contractions)\n+@_wraps(onp.einsum_path)\n+def einsum_path(... | Python | Apache License 2.0 | google/jax | add jax.numpy.einsum_path (fixes #579) |
260,335 | 06.04.2019 12:52:47 | 25,200 | 6ec2eb72e5614bbc5e0f6bd8e8a96eca44cc5172 | make np.arange(N) create lazy const, arange tests | [
{
"change_type": "MODIFY",
"old_path": "jax/numpy/lax_numpy.py",
"new_path": "jax/numpy/lax_numpy.py",
"diff": "@@ -1260,16 +1260,18 @@ def identity(n, dtype=None):\n@_wraps(onp.arange)\ndef arange(*args, **kwargs):\n- # attempt to generate a lazy IotaConstant, otherwise fall back to raw numpy\n- # ... | Python | Apache License 2.0 | google/jax | make np.arange(N) create lazy const, arange tests |
260,335 | 06.04.2019 14:16:22 | 25,200 | 299977eeef300b46be40f42baf3929be742d2ff4 | exclude examples dir from setup.py find_packages
fixes | [
{
"change_type": "MODIFY",
"old_path": "setup.py",
"new_path": "setup.py",
"diff": "@@ -23,7 +23,7 @@ setup(\ndescription='Differentiate, compile, and transform Numpy code.',\nauthor='JAX team',\nauthor_email='jax-dev@google.com',\n- packages=find_packages(),\n+ packages=find_packages(exclude=[\"exa... | Python | Apache License 2.0 | google/jax | exclude examples dir from setup.py find_packages
fixes #582 |
260,335 | 06.04.2019 15:08:22 | 25,200 | 1feaf639893422bf45b72c4f001c7ffb204c1cef | comment out failing arange tests | [
{
"change_type": "MODIFY",
"old_path": "tests/lax_numpy_test.py",
"new_path": "tests/lax_numpy_test.py",
"diff": "@@ -1385,10 +1385,11 @@ class LaxBackedNumpyTests(jtu.JaxTestCase):\nonp.arange(4, 21, 9), check_dtypes=True)\nself.assertAllClose(lnp.arange(53, 5, -3),\nonp.arange(53, 5, -3), check_dt... | Python | Apache License 2.0 | google/jax | comment out failing arange tests |
260,335 | 06.04.2019 14:42:27 | 25,200 | f4e141d30e8768d09f69365f445d34e54cf16ee2 | add 'optimize' kwarg to jax.numpy.einsum | [
{
"change_type": "MODIFY",
"old_path": "jax/numpy/lax_numpy.py",
"new_path": "jax/numpy/lax_numpy.py",
"diff": "@@ -1504,10 +1504,15 @@ def tensordot(a, b, axes=2):\n@_wraps(onp.einsum)\n-def einsum(*operands):\n+def einsum(*operands, **kwargs):\n+ optimize = kwargs.pop('optimize', 'auto')\n+ optimi... | Python | Apache License 2.0 | google/jax | add 'optimize' kwarg to jax.numpy.einsum |
260,335 | 06.04.2019 15:02:53 | 25,200 | 46e26a790a46059ad27cf879183c812263f1bc4e | add a comment about kpmurphy einsum test | [
{
"change_type": "MODIFY",
"old_path": "tests/lax_numpy_einsum_test.py",
"new_path": "tests/lax_numpy_einsum_test.py",
"diff": "@@ -294,6 +294,7 @@ class EinsumTest(jtu.JaxTestCase):\nonp.einsum_path('ea,fb,abcd,gc,hd->efgh', C, C, I, C, C, optimize='greedy')\ndef test_einsum_kpmurphy_example(self):... | Python | Apache License 2.0 | google/jax | add a comment about kpmurphy einsum test |
260,335 | 08.04.2019 09:52:47 | 25,200 | 108a2dbb9cbc7ad2809f339cf7930525f254b7ad | tweak an einsum test | [
{
"change_type": "MODIFY",
"old_path": "tests/lax_numpy_einsum_test.py",
"new_path": "tests/lax_numpy_einsum_test.py",
"diff": "@@ -311,7 +311,8 @@ class EinsumTest(jtu.JaxTestCase):\nL[n,c] = s\npath = np.einsum_path('ntk,kd,dc->nc', S, W, V, optimize='optimal')[0]\n- assert np.allclose(L, np.einsu... | Python | Apache License 2.0 | google/jax | tweak an einsum test |
260,407 | 08.04.2019 19:15:47 | -7,200 | d42f515c65c8154caa55df32cebb9f6a40e16de8 | Fixed numpy.zeros shape generator error | [
{
"change_type": "MODIFY",
"old_path": "jax/numpy/lax_numpy.py",
"new_path": "jax/numpy/lax_numpy.py",
"diff": "@@ -21,6 +21,7 @@ import itertools\nimport re\nimport string\nimport warnings\n+import types\nimport numpy as onp\nimport opt_einsum\n@@ -1221,6 +1222,8 @@ def full_like(a, fill_value, dty... | Python | Apache License 2.0 | google/jax | Fixed numpy.zeros shape generator error |
260,403 | 09.04.2019 15:06:46 | 25,200 | 797d411eebd0f22dbdf5556a462072666251fe1a | initial tranpose conv implementation | [
{
"change_type": "MODIFY",
"old_path": "jax/lax.py",
"new_path": "jax/lax.py",
"diff": "@@ -1229,6 +1229,88 @@ def conv_with_general_padding(lhs, rhs, window_strides, padding,\nrhs_dilation=rhs_dilation)\n+def _conv_transpose_padding(k, s, padding):\n+ \"\"\"Calculate before and after padding for a ... | Python | Apache License 2.0 | google/jax | initial tranpose conv implementation |
260,335 | 09.04.2019 18:59:42 | 25,200 | d60cd4ec591c00e879e95988dc64872ca0299f72 | use SkipTest instead of
nose doesn't like DISABLED_ name prefixes, but dirctly running the
Python file doesn't like | [
{
"change_type": "MODIFY",
"old_path": "tests/lax_numpy_test.py",
"new_path": "tests/lax_numpy_test.py",
"diff": "@@ -21,7 +21,7 @@ import functools\nfrom functools import partial\nimport itertools\nimport unittest\n-from unittest import skip\n+from unittest import SkipTest\nfrom absl.testing import... | Python | Apache License 2.0 | google/jax | use SkipTest instead of @skip
nose doesn't like DISABLED_ name prefixes, but dirctly running the
Python file doesn't like @skip. |
260,403 | 09.04.2019 22:59:03 | 25,200 | cef4c94c13753f9531d780dd4146a6baa6d5413c | finish transposed convolution implementation and tests | [
{
"change_type": "MODIFY",
"old_path": "jax/experimental/stax.py",
"new_path": "jax/experimental/stax.py",
"diff": "@@ -123,6 +123,35 @@ def GeneralConv(dimension_numbers, out_chan, filter_shape,\nConv = functools.partial(GeneralConv, ('NHWC', 'HWIO', 'NHWC'))\n+def GeneralConvTranspose(dimension_nu... | Python | Apache License 2.0 | google/jax | finish transposed convolution implementation and tests |
260,403 | 10.04.2019 00:57:02 | 25,200 | aee66b5a24d1cdf352a00925ae65e3ba92f5431f | comment to trigger travis rebuild | [
{
"change_type": "MODIFY",
"old_path": "tests/stax_test.py",
"new_path": "tests/stax_test.py",
"diff": "@@ -96,7 +96,7 @@ class StaxTest(jtu.JaxTestCase):\nfor input_shape in [(2, 10, 11, 1)]))\ndef testConvTransposeShape(self, channels, filter_shape, padding, strides,\ninput_shape):\n- init_fun, ap... | Python | Apache License 2.0 | google/jax | comment to trigger travis rebuild |
260,335 | 10.04.2019 22:17:54 | 25,200 | 2582598294daf38cc7b8b243b31bc3fe2427500f | remove assert that fails on python3 map objects | [
{
"change_type": "MODIFY",
"old_path": "jax/linear_util.py",
"new_path": "jax/linear_util.py",
"diff": "@@ -141,7 +141,6 @@ class WrappedFun(object):\nfor gen, gen_args, out_store in self.transforms:\ngen = gen(*(gen_args + tuple(args)), **kwargs)\nargs, kwargs = next(gen)\n- assert type(args) in (t... | Python | Apache License 2.0 | google/jax | remove assert that fails on python3 map objects |
260,335 | 11.04.2019 06:58:09 | 25,200 | de2a5f725d1f476e037496833ef8e9bb929c7aca | add warning, fix typo in kwargs test and bug | [
{
"change_type": "MODIFY",
"old_path": "jax/api.py",
"new_path": "jax/api.py",
"diff": "@@ -27,6 +27,7 @@ from __future__ import print_function\nimport itertools\nimport operator as op\nimport os\n+from warnings import warn\nimport numpy as onp\nfrom contextlib import contextmanager\n@@ -101,9 +102,... | Python | Apache License 2.0 | google/jax | add warning, fix typo in kwargs test and bug |
260,335 | 11.04.2019 08:07:32 | 25,200 | 6de4b573966e9c8d4496c3a439b779745a770c81 | improve kwargs test | [
{
"change_type": "MODIFY",
"old_path": "tests/api_test.py",
"new_path": "tests/api_test.py",
"diff": "@@ -92,13 +92,18 @@ class APITest(jtu.JaxTestCase):\nside.append(None)\nreturn 100*x + 10*y + z\n- f1 = jit(f)\n- assert f1(1, 2, 3) == 123\n+ f = jit(f)\n+ assert f(1, 2, 3) == 123\nassert len(side... | Python | Apache License 2.0 | google/jax | improve kwargs test |
260,335 | 11.04.2019 21:26:06 | 25,200 | 7dab5e025ffb771e78733e6d51dd50ae1e6ce509 | remove the current lax.scan implementation
fixes | [
{
"change_type": "MODIFY",
"old_path": "jax/lax.py",
"new_path": "jax/lax.py",
"diff": "@@ -1000,94 +1000,6 @@ def _revise_cond_jaxpr(new_pval, old_pval, jaxpr, consts):\nreturn new_jaxpr, new_consts\n-def scan(f, a, bs):\n- \"\"\"Scans over the leading axis of an array.\n-\n- Arguments:\n- f: funct... | Python | Apache License 2.0 | google/jax | remove the current lax.scan implementation (#599)
fixes #598 |
260,335 | 12.04.2019 12:01:19 | 25,200 | 18671fa027214db32b0b60ee8dc39892e85a428d | add error checks so that isn't silent fail | [
{
"change_type": "MODIFY",
"old_path": "jax/api.py",
"new_path": "jax/api.py",
"diff": "@@ -271,7 +271,7 @@ def value_and_grad(fun, argnums=0, has_aux=False):\nans, vjp_py = vjp(f_partial, *dyn_args)\nelse:\nans, vjp_py, aux = vjp(f_partial, *dyn_args, has_aux=True)\n- _check_scalar(ans)\n+ _check_s... | Python | Apache License 2.0 | google/jax | add error checks so that #603 isn't silent fail |
260,335 | 12.04.2019 12:24:58 | 25,200 | aaf50c9f681d99695c9dbbed2a1c2a49189db7e8 | add complex64 to sin/cos tests in lax | [
{
"change_type": "MODIFY",
"old_path": "tests/lax_test.py",
"new_path": "tests/lax_test.py",
"diff": "@@ -1790,9 +1790,9 @@ LAX_GRAD_OPS = [\nGradTestSpec(lax.tanh, nargs=1, order=2, rng=jtu.rand_default(),\ndtypes=[onp.float64, onp.complex64]),\nGradTestSpec(lax.sin, nargs=1, order=2, rng=jtu.rand_... | Python | Apache License 2.0 | google/jax | add complex64 to sin/cos tests in lax |
260,335 | 12.04.2019 13:29:07 | 25,200 | 849ea87b33edd402158db0772ec1ed9709883aca | tree-map the real dtype check in api.py | [
{
"change_type": "MODIFY",
"old_path": "jax/api.py",
"new_path": "jax/api.py",
"diff": "@@ -309,7 +309,7 @@ def jacfwd(fun, argnums=0):\nf_partial, dyn_args = _argnums_partial(f, argnums, args)\npushfwd = partial(jvp, f_partial, dyn_args)\ny, jac = vmap(pushfwd, out_axes=(None, -1))(_std_basis(dyn_a... | Python | Apache License 2.0 | google/jax | tree-map the real dtype check in api.py |
260,335 | 13.04.2019 08:18:57 | 25,200 | f49ab50ec1de80e1f9966d90346654918ec25264 | expose lax._safe_mul again (c.f. | [
{
"change_type": "MODIFY",
"old_path": "jax/lax/__init__.py",
"new_path": "jax/lax/__init__.py",
"diff": "@@ -17,6 +17,6 @@ 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_wind... | Python | Apache License 2.0 | google/jax | expose lax._safe_mul again (c.f. #608) |
260,407 | 13.04.2019 18:53:59 | -7,200 | d7f623ca9d2df81ac6bd79c8ea72529634405f29 | Added np.array_equal
Added test for np.isrealobj, added np.array_equal | [
{
"change_type": "MODIFY",
"old_path": "jax/numpy/lax_numpy.py",
"new_path": "jax/numpy/lax_numpy.py",
"diff": "@@ -1238,6 +1238,17 @@ def ones(shape, dtype=onp.dtype(\"float64\")):\nreturn lax.full(shape, 1, dtype)\n+@_wraps(onp.array_equal)\n+def array_equal(a1, a2):\n+ try:\n+ a1, a2 = asarray(a1... | Python | Apache License 2.0 | google/jax | Added np.array_equal (#609)
Added test for np.isrealobj, added np.array_equal |
260,335 | 15.04.2019 07:07:58 | 25,200 | 3a633dbdb4d1e3fd1f53fd813808972ca86bac37 | mention lack of windows support in readme | [
{
"change_type": "MODIFY",
"old_path": "README.md",
"new_path": "README.md",
"diff": "@@ -91,9 +91,13 @@ And for a deeper dive into JAX:\n- [MAML Tutorial with JAX](https://colab.research.google.com/github/google/jax/blob/master/notebooks/maml.ipynb).\n## Installation\n-JAX is written in pure Python... | Python | Apache License 2.0 | google/jax | mention lack of windows support in readme (#612) |
260,335 | 15.04.2019 07:45:10 | 25,200 | aa5b036d6d69f10ce88d8745287c834054980d13 | misc python performance improvements | [
{
"change_type": "MODIFY",
"old_path": "jax/abstract_arrays.py",
"new_path": "jax/abstract_arrays.py",
"diff": "@@ -44,13 +44,16 @@ class UnshapedArray(core.AbstractValue):\narray_abstraction_level = 3\ndef __init__(self, dtype):\n- self.dtype = dtype\n+ self.dtype = onp.dtype(xla_bridge.canonicaliz... | Python | Apache License 2.0 | google/jax | misc python performance improvements |
260,335 | 15.04.2019 09:14:43 | 25,200 | c5a381ed4d5db7f5ae1abf2bec62837283113e01 | misc test skips | [
{
"change_type": "MODIFY",
"old_path": "tests/lax_numpy_indexing_test.py",
"new_path": "tests/lax_numpy_indexing_test.py",
"diff": "@@ -730,6 +730,10 @@ class IndexedUpdateTest(jtu.JaxTestCase):\n# TODO(b/127315062): this case causes an XLA crash on CPU/TPU. Reenable\n# when fixed.\nraise unittest.S... | Python | Apache License 2.0 | google/jax | misc test skips |
260,335 | 15.04.2019 12:06:21 | 25,200 | 782d6f3b6166d7ebae401b442497bb0877be3d55 | fix tuple/list typo | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/pxla.py",
"new_path": "jax/interpreters/pxla.py",
"diff": "@@ -225,7 +225,7 @@ def replicated_comp(jaxpr, ax_env, const_vals, freevar_shapes, *arg_shapes):\n_map(write, all_freevars, map(c.ParameterWithShape, freevar_shapes))\n_map(write, jaxp... | Python | Apache License 2.0 | google/jax | fix tuple/list typo |
260,656 | 17.04.2019 18:51:12 | 14,400 | 60539a2612e2c648d984076df8282e8283e4f33c | Implement jvp for atan2 | [
{
"change_type": "MODIFY",
"old_path": "jax/lax/lax.py",
"new_path": "jax/lax/lax.py",
"diff": "@@ -1441,6 +1441,7 @@ cos_p = standard_unop(_float | _complex, 'cos')\nad.defjvp(cos_p, lambda g, x: neg(mul(g, sin(x))))\natan2_p = standard_binop([_float, _float], 'atan2')\n+ad.defjvp(atan2_p, lambda g... | Python | Apache License 2.0 | google/jax | Implement jvp for atan2 |
260,656 | 17.04.2019 19:53:06 | 14,400 | 36e5ec21898b68de789dee4c858b91e80ac23ce9 | Add jax tests and fix style. | [
{
"change_type": "MODIFY",
"old_path": "jax/lax/lax.py",
"new_path": "jax/lax/lax.py",
"diff": "@@ -1441,7 +1441,9 @@ cos_p = standard_unop(_float | _complex, 'cos')\nad.defjvp(cos_p, lambda g, x: neg(mul(g, sin(x))))\natan2_p = standard_binop([_float, _float], 'atan2')\n-ad.defjvp(atan2_p, lambda g... | Python | Apache License 2.0 | google/jax | Add jax tests and fix style. |
260,656 | 17.04.2019 19:57:42 | 14,400 | dfd3d9335020011adc409f8ef5f4d2a5968c1439 | Fix bug in order of y,x in grad of atan2. | [
{
"change_type": "MODIFY",
"old_path": "jax/lax/lax.py",
"new_path": "jax/lax/lax.py",
"diff": "@@ -1442,8 +1442,8 @@ ad.defjvp(cos_p, lambda g, x: neg(mul(g, sin(x))))\natan2_p = standard_binop([_float, _float], 'atan2')\nad.defjvp(atan2_p,\n- lambda g, x, y: -(g*y)/(square(x)+square(y)),\n- lambda... | Python | Apache License 2.0 | google/jax | Fix bug in order of y,x in grad of atan2. |
260,656 | 17.04.2019 20:54:01 | 14,400 | bbf0d5c55eeab3029f86844d1775e2a586e86590 | Add brcast to deal with inconsistent shapes. | [
{
"change_type": "MODIFY",
"old_path": "jax/lax/lax.py",
"new_path": "jax/lax/lax.py",
"diff": "@@ -1442,8 +1442,8 @@ ad.defjvp(cos_p, lambda g, x: neg(mul(g, sin(x))))\natan2_p = standard_binop([_float, _float], 'atan2')\nad.defjvp(atan2_p,\n- lambda g, x, y: g * y / (square(x) + square(y)),\n- lam... | Python | Apache License 2.0 | google/jax | Add brcast to deal with inconsistent shapes. |
260,389 | 20.04.2019 17:06:35 | 25,200 | b940245730063ed16b65cdc0ac747f08c70f3a6c | add VJP for `lax._select_and_scatter_add` (2nd-order grad of maxpool) | [
{
"change_type": "MODIFY",
"old_path": "jax/lax/lax.py",
"new_path": "jax/lax/lax.py",
"diff": "@@ -3252,13 +3252,30 @@ def _select_and_scatter_add_translation(\nreturn c.SelectAndScatter(operand, select, window_dimensions, window_strides,\npadding, source, zero, scatter)\n+def _select_and_scatter_a... | Python | Apache License 2.0 | google/jax | add VJP for `lax._select_and_scatter_add` (2nd-order grad of maxpool) |
260,389 | 20.04.2019 17:06:56 | 25,200 | 55d74d862494a8c0a19f252088591bf14a738e83 | add VJP for `lax._select_and_gather_add` (3rd-order grad of maxpool) | [
{
"change_type": "MODIFY",
"old_path": "jax/lax/lax.py",
"new_path": "jax/lax/lax.py",
"diff": "@@ -3393,6 +3393,23 @@ def _select_and_gather_add_translation(\nout = c.ConvertElementType(out, uint_etype)\nreturn c.BitcastConvertType(out, etype)\n+def _select_and_gather_add_jvp(\n+ primals, tangents,... | Python | Apache License 2.0 | google/jax | add VJP for `lax._select_and_gather_add` (3rd-order grad of maxpool) |
260,314 | 21.04.2019 16:25:20 | 14,400 | e5ccf0534dd84e313a74f07e2ebac679bb0527e0 | add beta/t random samplers | [
{
"change_type": "MODIFY",
"old_path": "jax/random.py",
"new_path": "jax/random.py",
"diff": "@@ -405,6 +405,35 @@ def _bernoulli(key, mean, shape):\nreturn lax.lt(uniform(key, shape), mean)\n+def beta(key, a, b, shape=(), dtype=onp.float32):\n+ \"\"\"Sample Bernoulli random values with given shape ... | Python | Apache License 2.0 | google/jax | add beta/t random samplers |
260,314 | 21.04.2019 21:22:50 | 14,400 | 665e72a23adf1abab6553177807f9a63639411b7 | implement bernoulli pmf | [
{
"change_type": "MODIFY",
"old_path": "jax/random.py",
"new_path": "jax/random.py",
"diff": "@@ -380,12 +380,12 @@ def _normal(key, shape, dtype):\nreturn onp.array(onp.sqrt(2), dtype) * lax.erf_inv(u)\n-def bernoulli(key, mean=onp.float32(0.5), shape=()):\n+def bernoulli(key, p=onp.float32(0.5), s... | Python | Apache License 2.0 | google/jax | implement bernoulli pmf |
260,314 | 22.04.2019 10:24:11 | 14,400 | 36c4df6f24a1eb08e8d84319265cc9349aa682f0 | implement dirichlet pdf | [
{
"change_type": "MODIFY",
"old_path": "jax/scipy/special.py",
"new_path": "jax/scipy/special.py",
"diff": "@@ -23,7 +23,8 @@ from .. import lax\nfrom ..api import custom_transforms\nfrom ..interpreters import ad, batching\nfrom ..numpy import lax_numpy as np\n-from ..numpy.lax_numpy import _wraps, ... | Python | Apache License 2.0 | google/jax | implement dirichlet pdf |
260,314 | 22.04.2019 11:55:02 | 14,400 | a790436be404cea22f59ea1ffec1082a5a672e52 | add dirichlet sampler | [
{
"change_type": "MODIFY",
"old_path": "jax/random.py",
"new_path": "jax/random.py",
"diff": "@@ -32,7 +32,7 @@ from . import lax\nfrom . import numpy as np\nfrom . import tree_util\nfrom .api import jit, vmap\n-from .numpy.lax_numpy import _constant_like\n+from .numpy.lax_numpy import _constant_lik... | Python | Apache License 2.0 | google/jax | add dirichlet sampler |
260,314 | 22.04.2019 11:55:41 | 14,400 | 8874d7d8eb38d5a158aae0cfe91eeb7401679b26 | add missing stats.bernoulli file | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "jax/scipy/stats/bernoulli.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 ... | Python | Apache License 2.0 | google/jax | add missing stats.bernoulli file |
260,335 | 23.04.2019 11:09:38 | 25,200 | d5efe88d0c352e3742b9b9d4eb2c8058a6a66846 | add custom partial eval rules | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/partial_eval.py",
"new_path": "jax/interpreters/partial_eval.py",
"diff": "@@ -66,6 +66,10 @@ class JaxprTrace(Trace):\nraise TypeError(pv)\ndef process_primitive(self, primitive, tracers, params):\n+ if primitive in custom_partial_eval_rules:... | Python | Apache License 2.0 | google/jax | add custom partial eval rules |
260,335 | 23.04.2019 17:47:28 | 25,200 | 85755820bb1b45106e46fce1b45a06509be4ebf5 | add defvjp functions for custom VJPs
c.f. which won't be closed until we add documentation | [
{
"change_type": "MODIFY",
"old_path": "jax/abstract_arrays.py",
"new_path": "jax/abstract_arrays.py",
"diff": "@@ -178,3 +178,12 @@ array_types = [onp.ndarray, onp.float64, onp.float32, onp.float16,\nfor t in array_types:\ncore.pytype_aval_mappings[t] = ConcreteArray\nad_util.jaxval_zeros_likers[t]... | Python | Apache License 2.0 | google/jax | add defvjp functions for custom VJPs
c.f. #116, which won't be closed until we add documentation |
260,335 | 23.04.2019 18:21:33 | 25,200 | 0cc8d7c2b14d48ffa73e8811c5d438aaa34eb0ef | update docstrings to fix | [
{
"change_type": "MODIFY",
"old_path": "jax/api.py",
"new_path": "jax/api.py",
"diff": "@@ -91,11 +91,9 @@ def jit(fun, static_argnums=()):\n>>>\n>>> key = jax.random.PRNGKey(0)\n>>> x = jax.random.normal(key, (10,))\n- >>> selu(x)\n- array([-0.54485154, 0.27744263, -0.29255125, -0.91421586, -0.6245... | Python | Apache License 2.0 | google/jax | update docstrings to fix #637 |
260,335 | 23.04.2019 18:35:32 | 25,200 | 74fb30cd171473afec9b855a55dc9d7651eaff3e | make DeviceArray.__repr__ call onp.array_repr | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/xla.py",
"new_path": "jax/interpreters/xla.py",
"diff": "@@ -347,8 +347,7 @@ class DeviceArray(DeviceValue):\nreturn onp.asarray(self)\ndef __repr__(self):\n- shape_str = \",\".join(map(str, self.shape))\n- return \"DeviceArray{{{}[{}]}}\".for... | Python | Apache License 2.0 | google/jax | make DeviceArray.__repr__ call onp.array_repr |
260,609 | 25.04.2019 01:01:02 | 18,000 | 40e3056e655f824929c9071050b29617c530274a | Fix 'atleast_<n>d' for scalars | [
{
"change_type": "MODIFY",
"old_path": "jax/numpy/lax_numpy.py",
"new_path": "jax/numpy/lax_numpy.py",
"diff": "@@ -1180,7 +1180,7 @@ def column_stack(tup):\ndef atleast_1d(*arys):\nif len(arys) == 1:\narr = array(arys[0])\n- return arr if arr.ndim >= 1 else arr.reshape(-1)\n+ return arr if ndim(arr... | Python | Apache License 2.0 | google/jax | Fix 'atleast_<n>d' for scalars |
260,609 | 29.04.2019 02:57:02 | 18,000 | 801f0824d9f072b5b1382a9b3a25d3d4d97379ab | Added test for literals in 'atleast_<n>d' | [
{
"change_type": "MODIFY",
"old_path": "tests/lax_numpy_test.py",
"new_path": "tests/lax_numpy_test.py",
"diff": "@@ -1373,6 +1373,22 @@ class LaxBackedNumpyTests(jtu.JaxTestCase):\nexpected = onp.reshape(a, (3, 2), order='F')\nself.assertAllClose(ans, expected, check_dtypes=True)\n+\n+ @parameteriz... | Python | Apache License 2.0 | google/jax | Added test for literals in 'atleast_<n>d' |
260,328 | 29.04.2019 16:26:18 | 14,400 | 6d9f465b96d33f0db88847939efe7e527f45bce4 | Add Differentially Private SGD example | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "examples/differentially_private_sgd.py",
"diff": "+# Copyright 2019 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 co... | Python | Apache License 2.0 | google/jax | Add Differentially Private SGD example |
260,328 | 30.04.2019 09:26:16 | 14,400 | 948def817fd7cc2ee7a988b5142401a580b1bbd3 | docstring touchups | [
{
"change_type": "MODIFY",
"old_path": "examples/differentially_private_sgd.py",
"new_path": "examples/differentially_private_sgd.py",
"diff": "# See the License for the specific language governing permissions and\n# limitations under the License.\n-r\"\"\"JAX trains a differentially private conv ne... | Python | Apache License 2.0 | google/jax | docstring touchups |
260,335 | 30.04.2019 09:19:48 | 25,200 | 6c7dde59f59fb5be7e37ea820047364864eee32a | move isclose test behind numpy version check | [
{
"change_type": "MODIFY",
"old_path": ".travis.yml",
"new_path": ".travis.yml",
"diff": "@@ -24,4 +24,4 @@ install:\n- pip install jaxlib\n- pip install -v .\nscript:\n- - pytest -n 2 tests examples\n+ - pytest -n 2 tests examples -W ignore\n"
},
{
"change_type": "MODIFY",
"old_path": "... | Python | Apache License 2.0 | google/jax | move isclose test behind numpy version check |
260,335 | 30.04.2019 10:33:27 | 25,200 | 97b5fc982e68cf3983e7b8a414b86acaf1ac93d8 | fix incorrectly-pasted line | [
{
"change_type": "MODIFY",
"old_path": "tests/lax_numpy_test.py",
"new_path": "tests/lax_numpy_test.py",
"diff": "@@ -232,6 +232,7 @@ JAX_OPERATOR_OVERLOADS = [\nnumpy_version = tuple(map(int, onp.version.version.split('.')))\nif numpy_version >= (1, 15):\nJAX_COMPOUND_OP_RECORDS += [\n+ op_record(\... | Python | Apache License 2.0 | google/jax | fix incorrectly-pasted line |
260,335 | 30.04.2019 10:48:34 | 25,200 | 75ec03e22cc3dd45e6699a207c26dda3b4d89dce | instantiate consts when tracing while's body_fun
fixes
The instantiate-consts logic in partial_eval.py is originally by
in (on the differentiable-scan branch). | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/partial_eval.py",
"new_path": "jax/interpreters/partial_eval.py",
"diff": "@@ -169,7 +169,7 @@ def add_axis_to_aval(size, aval):\ndef partial_eval(f, trace, pvs):\n- f = trace_to_subjaxpr(f, trace.master)\n+ f = trace_to_subjaxpr(f, trace.mast... | Python | Apache License 2.0 | google/jax | instantiate consts when tracing while's body_fun
fixes #649
The instantiate-consts logic in partial_eval.py is originally by
@dougalm in 13fa383 (on the differentiable-scan branch). |
260,335 | 30.04.2019 11:52:33 | 25,200 | 64bcaa4cfe059be5a71693a7e80959c142644792 | fix up other trace_to_subjaxpr call sites | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/partial_eval.py",
"new_path": "jax/interpreters/partial_eval.py",
"diff": "@@ -477,7 +477,7 @@ def eval_jaxpr_raw(jaxpr, consts, freevar_vals, *args):\ndef compiled_call_impl(fun, *args):\nwith new_master(JaxprTrace, True) as master:\npvals = ... | Python | Apache License 2.0 | google/jax | fix up other trace_to_subjaxpr call sites |
260,510 | 30.04.2019 12:56:48 | 25,200 | d92fb06939bcf721764ea0b78ac41af869130650 | add lax numpy.tile implementation | [
{
"change_type": "MODIFY",
"old_path": "jax/numpy/lax_numpy.py",
"new_path": "jax/numpy/lax_numpy.py",
"diff": "@@ -1135,6 +1135,15 @@ def stack(arrays, axis=0):\nnew_arrays.append(reshape(a, new_shape))\nreturn concatenate(new_arrays, axis=axis)\n+@_wraps(onp.tile)\n+def tile(a, reps):\n+ if isinst... | Python | Apache License 2.0 | google/jax | add lax numpy.tile implementation |
260,335 | 24.04.2019 10:26:29 | 25,200 | 2f9ebf5ef5d54c549d9b60377109f08d351550d0 | add docstring to xla.device_put | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/xla.py",
"new_path": "jax/interpreters/xla.py",
"diff": "@@ -84,6 +84,21 @@ def execute_compiled_primitive(compiled, result_handler, *args):\nreturn result_handler(compiled.Execute(input_bufs, not core.skip_checks))\ndef device_put(x, device_n... | Python | Apache License 2.0 | google/jax | add docstring to xla.device_put |
260,335 | 24.04.2019 18:16:31 | 25,200 | ee9d148fc16e2b0e695ab2891ebfbcacc301b70d | avoid super-linear recursive behavior in batching | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/batching.py",
"new_path": "jax/interpreters/batching.py",
"diff": "@@ -284,12 +284,14 @@ def move_dim_to_front(x, dim):\nreturn moveaxis(None, 0, dim, x)\ndef dimsize(dim, x):\n- aval = get_aval(x)\n+ return _dimsize(dim, get_aval(x), x)\n+\n+... | Python | Apache License 2.0 | google/jax | avoid super-linear recursive behavior in batching |
260,335 | 24.04.2019 21:31:15 | 25,200 | 055521fa8e349b55d8044ef7d3b53a40ef93d929 | add DeviceTuples for device-persistent tuples | [
{
"change_type": "MODIFY",
"old_path": "jax/core.py",
"new_path": "jax/core.py",
"diff": "@@ -418,11 +418,7 @@ def lattice_join(x, y):\ndef valid_jaxtype(x):\n- try:\n- concrete_aval(x)\n- except TypeError:\n- return False\n- return True\n+ return type(x) in pytype_aval_mappings\ndef concrete_aval(x... | Python | Apache License 2.0 | google/jax | add DeviceTuples for device-persistent tuples |
260,335 | 01.05.2019 14:17:25 | 25,200 | a8d4db071e827a9bcd06387d0728fb30105d7e72 | improve xla.device_put on JaxTuples | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/xla.py",
"new_path": "jax/interpreters/xla.py",
"diff": "@@ -136,9 +136,8 @@ def device_put(x, device_num=0):\nelif hasattr(x, '__array__'):\nreturn xb.device_put(x, device_num) # handle arraylikes\nelif t is JaxTuple:\n- # TODO(mattjj, phawki... | Python | Apache License 2.0 | google/jax | improve xla.device_put on JaxTuples |
260,335 | 01.05.2019 14:30:08 | 25,200 | 1275370c9e0349e07e564c778f97ad9d6e1901a3 | fix JaxTuple branch of xla.device_put_many | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/xla.py",
"new_path": "jax/interpreters/xla.py",
"diff": "@@ -173,11 +173,13 @@ def device_put_many(xs_and_devices):\ntransfers.append((x.device_buffer.to_py(), device_num))\nelif isinstance(x, DeviceConstant):\noutputs[i] = instantiate_device_... | Python | Apache License 2.0 | google/jax | fix JaxTuple branch of xla.device_put_many |
260,335 | 01.05.2019 15:00:45 | 25,200 | cfb5345fd0c3e3d0c060260a30592965e5b82d2b | fix bugs in ShardedDeviceArray.__init__ | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/pxla.py",
"new_path": "jax/interpreters/pxla.py",
"diff": "@@ -343,8 +343,8 @@ class ShardedDeviceArray(xla.DeviceArray):\nxla_shape = device_buffers[0].shape()\nself.shape = (axis_size,) + tuple(xla_shape.dimensions())\nself.dtype = xla_shape... | Python | Apache License 2.0 | google/jax | fix bugs in ShardedDeviceArray.__init__ |
260,335 | 01.05.2019 19:32:48 | 25,200 | 3f638d3a40d0e1768ce004608017898164bdc32e | make JaxTuple not subclass tuple, add docstrings | [
{
"change_type": "MODIFY",
"old_path": "jax/core.py",
"new_path": "jax/core.py",
"diff": "@@ -440,18 +440,34 @@ pytype_aval_mappings = {}\n# ------------------- Products -------------------\n-class JaxTuple(tuple):\n- def __new__(cls, xs):\n+# We set up a registry of tuple types so that we can contr... | Python | Apache License 2.0 | google/jax | make JaxTuple not subclass tuple, add docstrings |
260,335 | 01.05.2019 19:36:32 | 25,200 | 00a43e721af1ce64ec9705e190a3a704ebca1bcb | comment that DeviceValues don't get canonicalized | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/xla.py",
"new_path": "jax/interpreters/xla.py",
"diff": "@@ -403,6 +403,8 @@ def abstractify_device_tuple(tup):\ncore.pytype_aval_mappings[DeviceTuple] = AbstractTuple\npytype_aval_mappings[DeviceTuple] = abstractify_device_tuple\n+# DeviceVal... | Python | Apache License 2.0 | google/jax | comment that DeviceValues don't get canonicalized |
260,335 | 01.05.2019 19:45:17 | 25,200 | 21118d0dff9b8b51c6333cd34e43a2b0a1f75e12 | make isinstance(sharded_device_tup, JaxTuple) true | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/pxla.py",
"new_path": "jax/interpreters/pxla.py",
"diff": "@@ -341,6 +341,7 @@ class ShardedDeviceTuple(xla.DeviceTuple):\nall_bufs = zip(*[buf.destructure() for buf in self.device_buffers])\nelts = [_tuple_elt_handler(self.axis_size, bufs) fo... | Python | Apache License 2.0 | google/jax | make isinstance(sharded_device_tup, JaxTuple) true |
260,335 | 02.05.2019 08:02:01 | 25,200 | 87a150e567a4c6e6ced207278cd72b3ee2d3d1c2 | add a tree_util.py module-level docstring | [
{
"change_type": "MODIFY",
"old_path": "jax/api.py",
"new_path": "jax/api.py",
"diff": "# limitations under the License.\n\"\"\"\n-User-facing transformations.\n+JAX user-facing transformations and utilities.\n-These mostly wrap internal transformations, providing convenience flags to\n-control beha... | Python | Apache License 2.0 | google/jax | add a tree_util.py module-level docstring |
260,335 | 02.05.2019 19:27:22 | 25,200 | ddd29e724eef6920a0e0c629f5e4cf916ca6c3a3 | fix DeviceArray.__repr__ for complex dtypes, test
c.f. | [
{
"change_type": "MODIFY",
"old_path": "jax/numpy/lax_numpy.py",
"new_path": "jax/numpy/lax_numpy.py",
"diff": "@@ -2333,6 +2333,8 @@ for method_name in _nondiff_methods + _diff_methods:\nsetattr(ShapedArray, \"reshape\", core.aval_method(_reshape))\nsetattr(ShapedArray, \"flatten\", core.aval_metho... | Python | Apache License 2.0 | google/jax | fix DeviceArray.__repr__ for complex dtypes, test
c.f. #666 |
260,335 | 02.05.2019 22:13:49 | 25,200 | 7c5d683915b6ca531776cbabc10b58c26a7c83e2 | revise sharded result handling, misc cleanup | [
{
"change_type": "MODIFY",
"old_path": "jax/api.py",
"new_path": "jax/api.py",
"diff": "@@ -496,13 +496,7 @@ def pmap(fun, axis_name=None):\n@wraps(fun)\ndef f_jitted(*args, **kwargs):\n- leaves, _ = tree_flatten(args)\n- axis_sizes = set(onp.shape(leaf)[0] for leaf in leaves)\n- if len(axis_sizes) ... | Python | Apache License 2.0 | google/jax | revise sharded result handling, misc cleanup |
260,335 | 03.05.2019 08:14:03 | 25,200 | 7fc3f3f7047029cc76bf2260047ad53138844e5e | fix legacy numpy issue with DeviceArray.__repr__ | [
{
"change_type": "MODIFY",
"old_path": "jax/interpreters/xla.py",
"new_path": "jax/interpreters/xla.py",
"diff": "@@ -442,6 +442,18 @@ class DeviceArray(DeviceValue):\ndef __repr__(self):\nreturn onp.array_repr(self)\n+ def item(self):\n+ if onp.issubdtype(self.dtype, onp.complexfloating):\n+ return... | Python | Apache License 2.0 | google/jax | fix legacy numpy issue with DeviceArray.__repr__ |
260,335 | 03.05.2019 08:24:24 | 25,200 | 8e96e2f6df8e687a5ba4c56b3c531b1be9e3fe46 | revert incorrect change to core.valid_jaxtype | [
{
"change_type": "MODIFY",
"old_path": "jax/core.py",
"new_path": "jax/core.py",
"diff": "@@ -418,7 +418,11 @@ def lattice_join(x, y):\ndef valid_jaxtype(x):\n- return type(x) in pytype_aval_mappings\n+ try:\n+ concrete_aval(x)\n+ except TypeError:\n+ return False\n+ return True\ndef concrete_aval(x... | Python | Apache License 2.0 | google/jax | revert incorrect change to core.valid_jaxtype |
260,335 | 03.05.2019 08:46:21 | 25,200 | 3d6d678c79eb538170399a6ced87599d516f9551 | xla_client.make_tuple gets backend | [
{
"change_type": "MODIFY",
"old_path": "jax/lib/xla_bridge.py",
"new_path": "jax/lib/xla_bridge.py",
"diff": "@@ -187,7 +187,8 @@ def device_put_many(pyvals_and_devices):\nreturn [device_put(pyval, device) for (pyval, device) in pyvals_and_devices]\ndef make_tuple(bufs, device_num=0):\n- return xla_... | Python | Apache License 2.0 | google/jax | xla_client.make_tuple gets backend |
260,335 | 03.05.2019 11:39:37 | 25,200 | 15a4554ffb0c00ca95df307ff32c9acad0c81a4e | flatten out pytrees in jit at the api.py level | [
{
"change_type": "MODIFY",
"old_path": "jax/api.py",
"new_path": "jax/api.py",
"diff": "@@ -41,7 +41,7 @@ from . import linear_util as lu\nfrom .core import pack, eval_jaxpr\nfrom .api_util import (pytree_fun_to_jaxtupletree_fun, pytree_to_jaxtupletree,\npytree_fun_to_flatjaxtuple_fun, apply_jaxtree... | Python | Apache License 2.0 | google/jax | flatten out pytrees in jit at the api.py level |
260,335 | 03.05.2019 12:01:12 | 25,200 | f95f1c8dda9f4eeabb64744e1d6be51a2f4c91cc | fix bugs, make tests pass with skip_checks = False | [
{
"change_type": "MODIFY",
"old_path": "jax/core.py",
"new_path": "jax/core.py",
"diff": "@@ -474,6 +474,12 @@ class JaxTuple(six.with_metaclass(_TupleMeta)):\nclass AbstractTuple(AbstractValue, tuple):\n+ def __new__(cls, xs=()):\n+ if not skip_checks:\n+ xs = tuple(xs)\n+ assert all(isinstance(x, ... | Python | Apache License 2.0 | google/jax | fix bugs, make tests pass with skip_checks = False |
260,335 | 03.05.2019 13:23:12 | 25,200 | f4a25cd61f408f17bfb92215028e5557e3d0913c | add some documentation to optimizers.py | [
{
"change_type": "MODIFY",
"old_path": "jax/experimental/optimizers.py",
"new_path": "jax/experimental/optimizers.py",
"diff": "This short module contains some convenient optimizer definitions, specifically\ninitialization and update functions, which can be used with ndarrays or\narbitrarily-nested ... | Python | Apache License 2.0 | google/jax | add some documentation to optimizers.py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.