Skip to content

Commit

Permalink
nug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
drunkenlegend committed Dec 7, 2023
1 parent fc2f88d commit 2f25f9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sytorch/include/sytorch/tensor.h
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ class Tensor {
u64 curr_rest = i % rest_size;
u64 new_idx = curr_batch * (num_channel * rest_size) + curr_rest * num_channel + curr_channel;
#ifdef Do_Masking
data[new_idx] = type_cast<T> d;
data[new_idx] = type_cast<T>(d);
#else
data[new_idx] = type_cast<T>(d * (1LL << scale));
#endif
Expand Down

0 comments on commit 2f25f9e

Please sign in to comment.