Skip to content

Commit 7a54d87

Browse files
committed
Update EmbeddingBag.cpp
1 parent f43ff27 commit 7a54d87

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aten/src/ATen/native/EmbeddingBag.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1241,9 +1241,9 @@ embedding_bag(const Tensor &weight, const Tensor &indices,
12411241
padding_idx = maybe_wrap_dim(padding_idx, weight.size(0));
12421242
}
12431243
std::tuple<Tensor, Tensor, Tensor, Tensor> out;
1244-
bool needs_grad_path = weight.requires_grad() ||
1244+
bool needs_grad_path = weight.requires_grad() ||
12451245
weight._fw_grad(/*level=*/0).defined() ||
1246-
(per_sample_weights_opt.has_value() &&
1246+
(per_sample_weights_opt.has_value() &&
12471247
per_sample_weights_opt.value().defined() &&
12481248
per_sample_weights_opt.value().requires_grad());
12491249

0 commit comments

Comments
 (0)