_create_child converts prev to a tuple (line 44), but several methods pass {self} (a set) instead of (self,) (a tuple).
This works by accident but is inconsistent:
exp, log, sigmoid, softmax, relu, tanh, leaky_relu, and gelu all use sets, while __add__, __sub__, __mul__, __truediv__, __pow__, __matmul__, and __neg__ use tuples.
_create_childconvertsprevto a tuple (line 44), but several methods pass{self}(a set) instead of(self,)(a tuple).This works by accident but is inconsistent:
exp,log,sigmoid,softmax,relu,tanh,leaky_relu, andgeluall use sets, while__add__,__sub__,__mul__,__truediv__,__pow__,__matmul__, and__neg__use tuples.