We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e34ec4 commit 345554dCopy full SHA for 345554d
array_api_compat/common/_helpers.py
@@ -670,7 +670,7 @@ def your_function(x, y):
670
# Explanation: Dynamo does not know whether the underlying python object for
671
# PythonModuleVariable(<module 'array_api_compat.torch' from ...) is hashable
672
names = set(x.__name__ for x in namespaces)
673
- namespaces = [ns for ns in namespaces if ns.__name__ in names]
+ namespaces = set(ns for ns in namespaces if ns.__name__ in names)
674
675
try:
676
(xp,) = tuple(namespaces)
0 commit comments