Skip to content

Commit 1bb1a40

Browse files
authored
Remove unused cpp variable, breaking style checks (#2909)
Introduced recently in #2686
1 parent 083d0c3 commit 1bb1a40

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

torchao/csrc/cpu/scaled_embedding_bag.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,6 @@ at::Tensor _scaled_embedding_bag_impl(const at::Tensor &qweight,
143143
int64_t emb_dim = qweight.size(1);
144144

145145
auto index_type = indices.scalar_type();
146-
auto qtype = qweight.scalar_type();
147146
float w_scale = w_scales.data_ptr<float>()[0];
148147

149148
TORCH_CHECK(indices.is_contiguous() && offsets.is_contiguous(),
@@ -180,4 +179,4 @@ TORCH_LIBRARY_IMPL(torchao, CPU, m) {
180179
m.impl("torchao::_scaled_embedding_bag", &_scaled_embedding_bag_impl);
181180
}
182181

183-
} // namespace torchao
182+
} // namespace torchao

0 commit comments

Comments
 (0)