Skip to content

Commit d23535c

Browse files
committed
fix: remove chinese comment
1 parent 49cb34b commit d23535c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

infini_train/src/kernels/cpu/embedding.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ std::shared_ptr<Tensor> EmbeddingBackward(const std::shared_ptr<Tensor> &input,
4646
for (int i = 0; i < input->NumElements(); ++i) {
4747
int idx = static_cast<int>(static_cast<const int64_t *>(input->DataPtr())[i]);
4848
for (int j = 0; j < embedding_dim; ++j) {
49-
static_cast<float *>(grad_weight->DataPtr())[idx * embedding_dim + j] // <-- 修复这里
49+
static_cast<float *>(grad_weight->DataPtr())[idx * embedding_dim + j]
5050
+= static_cast<const float *>(grad_output->DataPtr())[i * embedding_dim + j];
5151
}
5252
}

0 commit comments

Comments
 (0)