You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi!
I followed the "Project Demo Federated Learning with Trusted Aggregator" video in Lesson 7. It appears to be a problem with this part of the code model.weight.data.set_(((alices_model.weight.data + bobs_model.weight.data) / 2).get()) cause it reise an error: RuntimeError: set_storage is not allowed on Tensor created from .data or .detach()
At the same time ((alices_model.weight.data + bobs_model.weight.data) / 2).get() provide a normal tensor as an output.
How is it possible to solve this issue?
Characteristics of my environment:
Python 3.7.3
Torch 1.1.0.post2
Syft 0.1.21a1
Jupyter notebook
MacOS Mojave 10.14.5
The text was updated successfully, but these errors were encountered:
I've seen that this is due to an update in pytorch:
here a post on the update pytorch/pytorch#15070
here a similar issue with in-place op microsoft/NeuronBlocks#13
I personally had the same problem, and I think I solved by assigning to model.weight.data the weigths like this: model.weight.data = ((alices_model.weight.data + bobs_model.weight.data) / 2).get()
Hi!
I followed the "Project Demo Federated Learning with Trusted Aggregator" video in Lesson 7. It appears to be a problem with this part of the code
model.weight.data.set_(((alices_model.weight.data + bobs_model.weight.data) / 2).get())
cause it reise an error:RuntimeError: set_storage is not allowed on Tensor created from .data or .detach()
At the same time
((alices_model.weight.data + bobs_model.weight.data) / 2).get()
provide a normal tensor as an output.How is it possible to solve this issue?
Characteristics of my environment:
Python 3.7.3
Torch 1.1.0.post2
Syft 0.1.21a1
Jupyter notebook
MacOS Mojave 10.14.5
The text was updated successfully, but these errors were encountered: