charleselena commited on
Commit
b891004
1 Parent(s): 4fb1dc1

change device type

Browse files
Files changed (1) hide show
  1. 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="cpu").manual_seed(3)
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
  """