Skip to content

Commit

Permalink
fixed key error loading device detector
Browse files Browse the repository at this point in the history
  • Loading branch information
hahahannes committed Apr 24, 2024
1 parent 990c294 commit 402543d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion algo/operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def init(self, *args, **kwargs):
self.device_detectors = {}

def get_device_detectors(self, input_ids):
device_detector = self.device_detectors[input_ids]
device_detector = self.device_detectors.get(input_ids)
if device_detector:
return device_detector

Expand Down

0 comments on commit 402543d

Please sign in to comment.