Small fix (#233)

Signed-off-by: Alex Black <blacka101@gmail.com>
master
Alex Black 2019-09-04 19:11:17 +10:00 committed by GitHub
parent e9454b8882
commit d41018751b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 5 deletions

View File

@ -87,11 +87,7 @@ public class MKLDNNSubsamplingHelper implements SubsamplingHelper {
break;
}
Pooling2DDerivative d = Pooling2DDerivative.derivativeBuilder()
.config(conf)
.arrayInputs(new INDArray[]{input, epsilon})
.arrayOutputs(new INDArray[]{gradAtInput})
.build();
Pooling2DDerivative d = new Pooling2DDerivative(input, epsilon, gradAtInput, conf);
Nd4j.exec(d);
return new Pair<Gradient,INDArray>(new DefaultGradient(), gradAtInput);