Skip to content

Commit aa2c30c

Browse files
committed
ggml-cpu : fix padding in timestep embedding function
This commit removes the zeroing out of the last dimension now that we are not adding the extra padding dimension.
1 parent cb6b133 commit aa2c30c

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

ggml/src/ggml-cpu/ops.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8599,7 +8599,6 @@ static void ggml_compute_forward_timestep_embedding_f32(
85998599
}
86008600
if (dim % 2 != 0 && ith == 0) {
86018601
embed_data[2 * half] = 0.f;
8602-
embed_data[dim] = 0.f;
86038602
}
86048603
}
86058604
}

0 commit comments

Comments
 (0)