Skip to content

Commit e42aacc

Browse files
author
ggosline
committed
_dynamo checks variables to see if a function during variable wrapping during compilation.
Somehow gets called with a TensorBase value where self type is L.
1 parent 940923e commit e42aacc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fastcore/foundation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def __setitem__(self, idx, o):
130130
def __eq__(self,b):
131131
if b is None: return False
132132
if risinstance('ndarray', b): return array_equal(b, self)
133-
if isinstance(b, (str,dict)): return False
133+
if isinstance(b, (str,dict)) or callable(b): return False
134134
return all_equal(b,self)
135135

136136
def sorted(self, key=None, reverse=False): return self._new(sorted_ex(self, key=key, reverse=reverse))

0 commit comments

Comments
 (0)