mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
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:
committed by
Facebook GitHub Bot
parent
4e0760f41a
commit
0e0a5471ef
@ -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(
|
||||
|
Reference in New Issue
Block a user