mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-23 16:44:22 +08:00
fix typos (#3684)
This commit is contained in:
@@ -50,7 +50,7 @@ class XpuWorker(WorkerBase):
|
||||
def init_device(self):
|
||||
"""Initialize device and Construct model runner"""
|
||||
if paddle.is_compiled_with_xpu():
|
||||
# Set evironment variable
|
||||
# Set environment variable
|
||||
self.device = f"xpu:{self.local_rank}"
|
||||
paddle.device.set_device(self.device)
|
||||
paddle.set_default_dtype(self.parallel_config.dtype)
|
||||
|
Reference in New Issue
Block a user