Peter Hawkins f6da52cb38 [JAX] Replace uses of deprecated jax.ops.index_update(x, idx, y) APIs with their up-to-date, more succinct equivalent x.at[idx].set(y).
The JAX operators:
jax.ops.index_update(x, jax.ops.index[idx], y)
jax.ops.index_add(x, jax.ops.index[idx], y)
...

have long been deprecated in lieu of their more succinct counterparts:
x.at[idx].set(y)
x.at[idx].add(y)
...

This change updates users of the deprecated APIs to use the current APIs, in preparation for removing the deprecated forms from JAX.

The main subtlety is that if `x` is not a JAX array, we must cast it to one using `jnp.asarray(x)` before using the new form, since `.at[...]` is only defined on JAX arrays.

PiperOrigin-RevId: 401233414
2021-10-26 18:22:43 +01:00
2021-05-18 07:20:58 +00:00
2021-03-26 09:53:08 +00:00
2021-06-15 23:52:48 +01:00
2021-07-28 14:02:50 +00:00
2021-04-13 21:05:00 +01:00
2021-05-18 07:20:58 +00:00
2021-07-26 13:36:42 +00:00

DeepMind Research

This repository contains implementations and illustrative code to accompany DeepMind publications. Along with publishing papers to accompany research conducted at DeepMind, we release open-source environments, data sets, and code to enable the broader research community to engage with our work and build upon it, with the ultimate goal of accelerating scientific progress to benefit society. For example, you can build on our implementations of the Deep Q-Network or Differential Neural Computer, or experiment in the same environments we use for our research, such as DeepMind Lab or StarCraft II.

If you enjoy building tools, environments, software libraries, and other infrastructure of the kind listed below, you can view open positions to work in related areas on our careers page.

For a full list of our publications, please see https://deepmind.com/research/publications/

Projects

Disclaimer

This is not an official Google product.

S
Description
This repository contains implementations and illustrative code to accompany DeepMind publications
Readme Apache-2.0 129 MiB
Languages
Jupyter Notebook 73.8%
Python 20.5%
PureBasic 3.2%
Racket 1.4%
Shell 0.5%
Other 0.4%