def __matmul__(self, other): if not isinstance(other, Variable): return NotImplemented return self.matmul(other)