TorchServe: How to convert bytes output to tensors