mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-02-12 15:45:27 -05:00
Add error code to type: ignore (#2451)
Co-authored-by: Paul Gustafson <paul.gustafson@theambrusgroup.com>
This commit is contained in:
@@ -750,8 +750,8 @@ class Tensor:
|
||||
def __gt__(self, x) -> Tensor: return mlops.Less.apply(*self._broadcasted(x, True))
|
||||
def __ge__(self, x) -> Tensor: return 1.0-(self<x)
|
||||
def __le__(self, x) -> Tensor: return 1.0-(self>x)
|
||||
def __ne__(self, x) -> Tensor: return (self<x) + (self>x) # type: ignore
|
||||
def __eq__(self, x) -> Tensor: return 1.0-(self != x) # type: ignore
|
||||
def __ne__(self, x) -> Tensor: return (self<x) + (self>x) # type: ignore[override]
|
||||
def __eq__(self, x) -> Tensor: return 1.0-(self != x) # type: ignore[override]
|
||||
|
||||
# ***** functional nn ops *****
|
||||
|
||||
|
||||
Reference in New Issue
Block a user