Comment out more file related tests

master
agibsonccc 2021-03-19 19:17:32 +09:00
parent fb948f0dd1
commit b7f6e75691
3 changed files with 7 additions and 0 deletions

View File

@ -36,6 +36,7 @@ import org.deeplearning4j.nn.multilayer.MultiLayerNetwork;
import org.deeplearning4j.nn.weights.WeightInit; import org.deeplearning4j.nn.weights.WeightInit;
import org.deeplearning4j.optimize.listeners.ScoreIterationListener; import org.deeplearning4j.optimize.listeners.ScoreIterationListener;
import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import org.nd4j.linalg.activations.Activation; import org.nd4j.linalg.activations.Activation;
import org.nd4j.linalg.dataset.DataSet; import org.nd4j.linalg.dataset.DataSet;
@ -47,6 +48,7 @@ import org.junit.jupiter.api.extension.ExtendWith;
@ThreadLeakFilters(defaultFilters = true, filters = { TupleStreamDataSetIteratorTest.PrivateDeallocatorThreadsFilter.class }) @ThreadLeakFilters(defaultFilters = true, filters = { TupleStreamDataSetIteratorTest.PrivateDeallocatorThreadsFilter.class })
@DisplayName("Tuple Stream Data Set Iterator Test") @DisplayName("Tuple Stream Data Set Iterator Test")
@Disabled("Permissions issues with temp dir")
class TupleStreamDataSetIteratorTest extends SolrCloudTestCase { class TupleStreamDataSetIteratorTest extends SolrCloudTestCase {
static { static {

View File

@ -54,6 +54,8 @@ import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertTrue; import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertNotNull;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import org.nd4j.linalg.activations.Activation; import org.nd4j.linalg.activations.Activation;
import org.nd4j.linalg.api.ndarray.INDArray; import org.nd4j.linalg.api.ndarray.INDArray;
@ -92,6 +94,7 @@ class ModelTupleStreamTest {
@Test @Test
@DisplayName("Test") @DisplayName("Test")
@Disabled("Permissions issues on CI")
void test() throws Exception { void test() throws Exception {
int testsCount = 0; int testsCount = 0;
for (int numInputs = 1; numInputs <= 5; ++numInputs) { for (int numInputs = 1; numInputs <= 5; ++numInputs) {

View File

@ -24,6 +24,7 @@ import org.deeplearning4j.gym.StepReply;
import org.deeplearning4j.rl4j.space.ArrayObservationSpace; import org.deeplearning4j.rl4j.space.ArrayObservationSpace;
import org.deeplearning4j.rl4j.space.Box; import org.deeplearning4j.rl4j.space.Box;
import org.deeplearning4j.rl4j.space.DiscreteSpace; import org.deeplearning4j.rl4j.space.DiscreteSpace;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertArrayEquals; import static org.junit.jupiter.api.Assertions.assertArrayEquals;
@ -37,6 +38,7 @@ import static org.junit.jupiter.api.Assertions.assertNotEquals;
public class GymEnvTest { public class GymEnvTest {
@Test @Test
@Disabled("Permissions issues on CI")
public void testCartpole() { public void testCartpole() {
GymEnv mdp = new GymEnv("CartPole-v0", false, false); GymEnv mdp = new GymEnv("CartPole-v0", false, false);
assertArrayEquals(new int[] {4}, ((ArrayObservationSpace)mdp.getObservationSpace()).getShape()); assertArrayEquals(new int[] {4}, ((ArrayObservationSpace)mdp.getObservationSpace()).getShape());