Skip to content

Commit

Permalink
Fix typo in comment
Browse files Browse the repository at this point in the history
  • Loading branch information
hubertdelajonquieresonos committed Dec 11, 2024
1 parent c22bb42 commit 1c85939
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metal/src/kernels/nn/nn_ops.metal
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ template<typename F>
size_t mask_base_idx = tgpig.y * mask_strides[1]
+ tgpig.z * mask_strides[0];

// Get max value on softmax reduce_dim after apply
// Get max value on softmax reduce_dim after applying scale and mask
float partial_max = -INFINITY;
for (size_t i = tiisg; i < reduce_dim; i += tpsg) {
auto idx = base_idx + i * strides[2];
Expand Down

0 comments on commit 1c85939

Please sign in to comment.