Added .copy() for serialization of msgpack
@@ -163,7 +163,7 @@ class MSGPackSerializer( BittensorSerializerBase ):
"""
dtype = serialization_utils.torch_dtype_to_bittensor_dtype(torch_tensor.dtype)
shape = list(torch_tensor.shape)
- torch_numpy = torch_tensor.cpu().numpy()
+ torch_numpy = torch_tensor.cpu().numpy().copy()
data_buffer = msgpack.packb(torch_numpy, default=msgpack_numpy.encode)
torch_proto = bittensor_pb2.Tensor(version = bittensor.__version__,
buffer = data_buffer,
