a35bc3be6bc0643a49bae001967fdeb54992c49a,src/syft/lib/torch/uppercase_tensor.py,TorchTensorWrapper,_data_proto2object,#Any#,49
Before Change
// proto -> original numpy type
data = tensor_to_numpy_array(proto)
return th.tensor(data)
@staticmethod
def get_data_protobuf_schema() -> Optional[Type]:
return TensorProto
After Change
@staticmethod
def _data_proto2object(proto: TensorProto) -> th.Tensor:
tensor = protobuf_tensor_deserializer(proto.tensor)
if proto.HasField("grad"):
tensor.grad = protobuf_tensor_deserializer(proto.grad)
return tensor
@staticmethod
def get_data_protobuf_schema() -> Optional[Type]:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: OpenMined/PySyft
Commit Name: a35bc3be6bc0643a49bae001967fdeb54992c49a
Time: 2020-08-12
Author: 12518480+vvmnnnkv@users.noreply.github.com
File Name: src/syft/lib/torch/uppercase_tensor.py
Class Name: TorchTensorWrapper
Method Name: _data_proto2object
Project Name: OpenMined/PySyft
Commit Name: 5efaf25f5499c7065f1c37bfd4288159714406d8
Time: 2020-08-12
Author: vova@promail.spb.ru
File Name: src/syft/lib/torch/uppercase_tensor.py
Class Name: TorchTensorWrapper
Method Name: _data_proto2object
Project Name: tensorflow/models
Commit Name: 8b31db60e284a411856e9c05eb14d23b16be1966
Time: 2017-10-27
Author: rathodv@google.com
File Name: research/object_detection/builders/input_reader_builder.py
Class Name:
Method Name: build