@@ -0,0 +1,1245 @@
+package org.deeplearning4j.nn.modelimport.keras.layers.pooling;%0A%0Aimport org.deeplearning4j.BaseDL4JTest;%0Aimport org.deeplearning4j.nn.graph.ComputationGraph;%0Aimport org.deeplearning4j.nn.modelimport.keras.KerasModelImport;%0Aimport org.junit.jupiter.api.DisplayName;%0Aimport org.junit.jupiter.api.Tag;%0Aimport org.junit.jupiter.api.Test;%0Aimport org.nd4j.common.resources.Resources;%0Aimport org.nd4j.common.tests.tags.NativeTag;%0Aimport org.nd4j.common.tests.tags.TagNames;%0Aimport org.nd4j.linalg.api.ndarray.INDArray;%0Aimport org.nd4j.linalg.factory.Nd4j;%0A%0Aimport static org.junit.jupiter.api.Assertions.assertArrayEquals;%0A%0A@DisplayName(%22Keras Global Pooling Tests%22)%0A@Tag(TagNames.FILE_IO)%0A@Tag(TagNames.KERAS)%0A@NativeTag%0Apublic class KerasGlobalPoolingTest extends BaseDL4JTest %7B%0A%0A    @Test%0A    public void testPoolingNWHC() throws Exception %7B%0A        String absolutePath = Resources.asFile(%22modelimport/keras/tfkeras/GAPError.h5%22).getAbsolutePath();%0A        ComputationGraph computationGraph = KerasModelImport.importKerasModelAndWeights(absolutePath);%0A        INDArray sampleInput = Nd4j.ones(1,400,128);%0A        INDArray%5B%5D output = computationGraph.output(sampleInput);%0A        assertArrayEquals(new long%5B%5D%7B1,400,512%7D,output%5B0%5D.shape());%0A%0A    %7D%0A%0A%7D%0A

Create KerasGlobalPoolingTest.java