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
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