Skip to content
#

autograd

Here are 94 public repositories matching this topic...

Pangoraw
Pangoraw commented Apr 26, 2021

🐛 Bug

The builtin getattr function has a third optional parameter called default, returned if the key fetched does not exist. However, the IR emitter does not support this third parameter and supports only the 2 arguments version:

https://github.com/pytorch/pytorch/blob/master/torch/csrc/jit/frontend/ir_emitter.cpp#L2858-L285

pennylane
norse
qml
josh146
josh146 commented Apr 23, 2021

The init module has been deprecated, and the recommend approach for generating initial weights is to use the Template.shape method:

>>> from pennylane.templates import StronglyEntanglingLayers
>>> qml.init.strong_ent_layers_normal(n_layers=3, n_wires=2) # deprecated
>>> np.random.random(StronglyEntanglingLayers.shape(n_layers=3, n_wires=2))  # new approach

We should upd

Improve this page

Add a description, image, and links to the autograd topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the autograd topic, visit your repo's landing page and select "manage topics."

Learn more