google-deepmind / acme

A library of reinforcement learning components and agents
Apache License 2.0
3.52k stars 426 forks source link

rewritten jnp.squeeze(self._value_layer(inputs), axis=-1) #296

Open skywalker0803r opened 1 year ago

skywalker0803r commented 1 year ago

jnp.squeeze(self._value_layer(inputs), axis=-1) can be rewritten as self._value_layer(inputs)[..., 0] to make the code look more concise.

google-cla[bot] commented 1 year ago

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.