mirror of
https://github.com/pytorch/pytorch.git
synced 2025-11-14 06:07:55 +08:00
Update
[ghstack-poisoned]
This commit is contained in:
@ -1606,7 +1606,8 @@ class NumpyVariable(VariableTracker):
|
||||
|
||||
def as_proxy(self):
|
||||
if config.trace_numpy:
|
||||
if isinstance(self.value, enum.EnumType):
|
||||
# Can replace with EnumType once we drop 3.10 support
|
||||
if isinstance(self.value, enum.EnumMeta):
|
||||
# This is mostly for np._CopyMode
|
||||
return self.value
|
||||
if isinstance(self.value, type):
|
||||
|
||||
Reference in New Issue
Block a user