ebetica / autogradpp

Direct C++ Interface to PyTorch
MIT License
80 stars 12 forks source link

Call reset_parameters when changing backends #20

Closed jgehring closed 6 years ago

jgehring commented 6 years ago

Otherwise, they'll get initialized to random default values.

ebetica commented 6 years ago

Don't we copy over the random default values with the old parameter values anyway in the next few lines?

jgehring commented 6 years ago

Oh, right! I missed these lines.