Skip to content

Commit 345554d

Browse files
authored
Update array_api_compat/common/_helpers.py
1 parent 8e34ec4 commit 345554d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

array_api_compat/common/_helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@ def your_function(x, y):
670670
# Explanation: Dynamo does not know whether the underlying python object for
671671
# PythonModuleVariable(<module 'array_api_compat.torch' from ...) is hashable
672672
names = set(x.__name__ for x in namespaces)
673-
namespaces = [ns for ns in namespaces if ns.__name__ in names]
673+
namespaces = set(ns for ns in namespaces if ns.__name__ in names)
674674

675675
try:
676676
(xp,) = tuple(namespaces)

0 commit comments

Comments
 (0)