mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-04-29 03:00:14 -04:00
remove unused LtNode.__floordiv__ (#3445)
This commit is contained in:
@@ -167,7 +167,6 @@ class OpNode(Node):
|
||||
def get_bounds(self) -> Tuple[int, int]: raise NotImplementedError("must be implemented")
|
||||
|
||||
class LtNode(OpNode):
|
||||
def __floordiv__(self, b: Union[Node, int], _=False): return (self.a//b) < (self.b//b)
|
||||
def get_bounds(self) -> Tuple[int, int]:
|
||||
if isinstance(self.b, int): return (1, 1) if self.a.max < self.b else (0, 0) if self.a.min >= self.b else (0, 1)
|
||||
return (1, 1) if self.a.max < self.b.min else (0, 0) if self.a.min >= self.b.max else (0, 1)
|
||||
|
||||
Reference in New Issue
Block a user