Update handler.py
Browse files- handler.py +2 -2
handler.py
CHANGED
@@ -13,8 +13,8 @@ def prepare_tensor(tensor: torch.Tensor) -> Tuple[str, List[int], str]:
|
|
13 |
return tensor_data, shape, dtype
|
14 |
|
15 |
|
16 |
-
def unpack_tensor(tensor_data:
|
17 |
-
tensor =
|
18 |
DTYPE_MAP = {
|
19 |
"float16": torch.float16,
|
20 |
"float32": torch.float32,
|
|
|
13 |
return tensor_data, shape, dtype
|
14 |
|
15 |
|
16 |
+
def unpack_tensor(tensor_data: bytes, shape: List[int], dtype: str) -> torch.Tensor:
|
17 |
+
tensor = tensor_data
|
18 |
DTYPE_MAP = {
|
19 |
"float16": torch.float16,
|
20 |
"float32": torch.float32,
|