Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update
[ghstack-poisoned]
  • Loading branch information
swolchok committed Feb 27, 2025
commit da58a574e995aa1c8bfbae081ba30118e0396a89
4 changes: 2 additions & 2 deletions kernels/portable/cpu/op_argmin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ Tensor& argmin_out(
for (size_t out_ix = 0; out_ix < out.numel(); ++out_ix) {
std::tuple<CTYPE, long> acc = reduce_over_dim<CTYPE>(
[](CTYPE v, long ix, CTYPE acc_val, long acc_ix) {
// the below condition as written is equivalent to !isnan(accval) && (isnan(v) || v < acc_val).
// cases:
// the below condition as written is equivalent to !isnan(accval) &&
// (isnan(v) || v < acc_val). cases:
// - if neither acc_val nor v is NaN, !(v >= acc_val) is
// trivially equivalent to v < acc_val.
// - if acc_val is NaN, the whole thing is trivially false.
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.