Skip to content

Lesson 7. Trusted Aggregator issue: set_storage is not allowed on Tensor created from .data or .detach() #13

Description

@RansSelected

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions