Closed adekusar-drl closed 3 years ago
mind if I take a look at this one?
to confirm:
NeuralNetwork
and all classes that inherit from it should have a new parameter input_gradients
NeuralNetwork
be deprecated?I don't mind, any help is appreciated.
Things to do:
input_gradient
as a constructor parameter to NeuralNetwork
with a default value of False
. So, yes, this is the answer on the first question.TorchConnector
where input_gradients
is set to True
since this should be done explicitly by a user. Probably this should be mentioned in the documentation(docstrings).input_gradients
to True
in the torch connector tests.reno
file with the changes.Also take a look at https://github.com/Qiskit/qiskit-machine-learning/blob/main/CONTRIBUTING.md Probably that's it. Let me know if you have questions.
cool thanks, i also have permission from my employer now, so I'll get started
What is the expected behavior?
As a feedback from #44, we should add a parameter
input_gradients
to NeuralNetwork to expose it explicitly to users. By default it should be turned off. Also, we should not turn on input gradients explicitly inTorchConnector
every time, turning on/off gradients is up a user via this new parameter.