Skip to content

Commit 180e4fc

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 f7fea25 commit 180e4fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nbs/02_foundation.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@
587587
" def __eq__(self,b):\n",
588588
" if b is None: return False\n",
589589
" if risinstance('ndarray', b): return array_equal(b, self)\n",
590-
" if isinstance(b, (str,dict)): return False\n",
590+
" if isinstance(b, (str,dict)) or callable(b): return False\n",
591591
" return all_equal(b,self)\n",
592592
"\n",
593593
" def sorted(self, key=None, reverse=False): return self._new(sorted_ex(self, key=key, reverse=reverse))\n",

0 commit comments

Comments
 (0)