Remove an unused variable in SoftmaxWithLossOp (#56321)

Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/56321

Reviewed By: heitorschueroff

Differential Revision: D27854332

Pulled By: bdhirsh

fbshipit-source-id: 1a9dcfdc63412069cee4444a595c3460815d3c6c
This commit is contained in:
Hong Xu
2021-04-20 09:12:55 -07:00
committed by Facebook GitHub Bot
parent 4e0760f41a
commit 0e0a5471ef

View File

@ -209,7 +209,6 @@ bool SoftmaxWithLossOp<float, CPUContext>::RunOnDevice() {
float weight_sum = 0.0;
if (!label_prob_mode_) {
const int* label_data = T.data<int>();
const float* Xdata = X.data<float>();
for (int i = 0; i < N; ++i) {
CAFFE_ENFORCE(