syft.core.plan.translation.torchscript.plan¶
Classes
|
Represents Syft Plan translated to TorchScript |
- class syft.core.plan.translation.torchscript.plan.PlanTorchscript(torchscript=None)[source]¶
Bases:
syft.core.common.serde.serializable.Serializable
Represents Syft Plan translated to TorchScript
- static get_protobuf_schema()[source]¶
Return the type of protobuf object which stores a class of this type
As a part of serialization and deserialization, we need the ability to lookup the protobuf object type directly from the object type. This static method allows us to do this.
Importantly, this method is also used to create the reverse lookup ability within the metaclass of Serializable. In the metaclass, it calls this method and then it takes whatever type is returned from this method and adds an attribute to it with the type of this class attached to it. See the MetaSerializable class for details.
- Returns
The type of protobuf object which corresponds to this class.