Fixes (#202)
* Remove unnecessary dup in MKLDNNSubsamplingHelper Signed-off-by: AlexDBlack <blacka101@gmail.com> * gson dep fix Signed-off-by: AlexDBlack <blacka101@gmail.com>master
parent
dcc2baa676
commit
130c9aa536
|
@ -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);
|
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()
|
Pooling2DConfig conf = Pooling2DConfig.builder()
|
||||||
.isSameMode(convolutionMode == ConvolutionMode.Same)
|
.isSameMode(convolutionMode == ConvolutionMode.Same)
|
||||||
.kH(kernel[0]).kW(kernel[1])
|
.kH(kernel[0]).kW(kernel[1])
|
||||||
|
|
|
@ -123,6 +123,13 @@
|
||||||
<artifactId>activation</artifactId>
|
<artifactId>activation</artifactId>
|
||||||
<version>1.1</version>
|
<version>1.1</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.google.code.gson</groupId>
|
||||||
|
<artifactId>gson</artifactId>
|
||||||
|
<version>${gson.version}</version>
|
||||||
|
<scope>test</scope>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
|
Loading…
Reference in New Issue