!7324 fix warpctc accuracy

Merge pull request !7324 from baihuawei/warpctc1.0
This commit is contained in:
mindspore-ci-bot 2020-10-15 14:28:30 +08:00 committed by Gitee
commit a3a5e1e4eb
1 changed files with 0 additions and 3 deletions

View File

@ -39,9 +39,6 @@ class WarpCTCAccuracy(nn.Metric):
y_pred = self._convert_data(inputs[0])
y = self._convert_data(inputs[1])
if self.device_target == 'GPU':
y = y[:, :-1]
self._count += 1
pred_lbls = self._get_prediction(y_pred)