* Remove unnecessary dup in MKLDNNSubsamplingHelper

Signed-off-by: AlexDBlack <blacka101@gmail.com>

* gson dep fix

Signed-off-by: AlexDBlack <blacka101@gmail.com>
master
Alex Black 2019-08-30 16:36:14 +10:00 committed by GitHub
parent dcc2baa676
commit 130c9aa536
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 3 deletions

View File

@ -69,9 +69,6 @@ public class MKLDNNSubsamplingHelper implements SubsamplingHelper {
pad = ConvolutionUtils.getSameModeTopLeftPadding(new int[]{(int)epsilon.size(2), (int)epsilon.size(3)}, new int[] {(int)input.size(2), (int)input.size(3)}, kernel, strides, dilation);
}
input = input.dup();
epsilon = epsilon.dup();
Pooling2DConfig conf = Pooling2DConfig.builder()
.isSameMode(convolutionMode == ConvolutionMode.Same)
.kH(kernel[0]).kW(kernel[1])

View File

@ -123,6 +123,13 @@
<artifactId>activation</artifactId>
<version>1.1</version>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>${gson.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>