Skip to content

Commit

Permalink
add back final check?
Browse files Browse the repository at this point in the history
  • Loading branch information
Tzepesh committed May 25, 2024
1 parent 7535ea8 commit 92f990c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tinygrad/function.py
Original file line number Diff line number Diff line change
Expand Up @@ -828,9 +828,9 @@ def forward(self, x: LazyBuffer) -> LazyBuffer:
TernaryOps.WHERE, computed, computed.const(float("inf"))
)
computed = isnotnan.e(TernaryOps.WHERE, computed, x.const(float("nan")))
# computed = initial_x.e(BinaryOps.CMPLT, ninf_t).e(
# TernaryOps.WHERE, computed.const(0), computed
# )
computed = initial_x.e(BinaryOps.CMPLT, ninf_t).e(
TernaryOps.WHERE, computed.const(0), computed
)

# print("COMPUTED: ")
# print(__import__('tinygrad').Tensor(computed).numpy()[0])
Expand Down

0 comments on commit 92f990c

Please sign in to comment.