change device type
Browse files- handler.py +1 -1
handler.py
CHANGED
|
@@ -92,7 +92,7 @@ class EndpointHandler():
|
|
| 92 |
|
| 93 |
|
| 94 |
# Define Generator with seed
|
| 95 |
-
self.generator = torch.Generator(device=
|
| 96 |
|
| 97 |
def __call__(self, data: Any) -> List[List[Dict[str, float]]]:
|
| 98 |
"""
|
|
|
|
| 92 |
|
| 93 |
|
| 94 |
# Define Generator with seed
|
| 95 |
+
self.generator = torch.Generator(device=device.type).manual_seed(3)
|
| 96 |
|
| 97 |
def __call__(self, data: Any) -> List[List[Dict[str, float]]]:
|
| 98 |
"""
|