We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 48f7609 + 9aad906 commit fe4a1aaCopy full SHA for fe4a1aa
art/estimators/classification/pytorch.py
@@ -322,7 +322,7 @@ def predict( # pylint: disable=W0221
322
output = model_outputs[-1]
323
output = output.detach().cpu().numpy().astype(np.float32)
324
if len(output.shape) == 1:
325
- output = np.expand_dims(output.detach().cpu().numpy(), axis=1).astype(np.float32)
+ output = np.expand_dims(output, axis=1).astype(np.float32)
326
327
results_list.append(output)
328
0 commit comments