Unverified Commit 1d1e0649 authored by thatPepe's avatar thatPepe Committed by GitHub
Browse files

issue/365 - fixing an interface mismatch

parent adbda4c4
......@@ -608,6 +608,6 @@ def get_sync_func(device):
if device == InfiniDeviceEnum.CPU or device == InfiniDeviceEnum.CAMBRICON:
sync = None
else:
sync = getattr(torch, infiniDeviceEnum_str_map[device]).synchronize
sync = getattr(torch, torch_device_map[device]).synchronize
return sync
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment