Avoid double printing of start/stop test in a few cases (#210)

Signed-off-by: AlexDBlack <blacka101@gmail.com>
master
Alex Black 2020-02-03 22:18:01 +11:00 committed by GitHub
parent 9bb5798cac
commit ddf70ac450
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 1 additions and 9 deletions

View File

@ -81,10 +81,8 @@ public abstract class BaseNd4jTest extends BaseND4JTest {
return ret;
}
@Override
@Before
public void beforeTest(){
super.beforeTest();
public void beforeTest2(){
Nd4j.factory().setOrder(ordering());
}

View File

@ -138,7 +138,6 @@ public class Nd4jTestsC extends BaseNd4jTest {
@Before
public void before() throws Exception {
super.beforeTest();
Nd4j.setDataType(DataType.DOUBLE);
Nd4j.getRandom().setSeed(123);
Nd4j.getExecutioner().enableDebugMode(false);
@ -147,7 +146,6 @@ public class Nd4jTestsC extends BaseNd4jTest {
@After
public void after() throws Exception {
super.afterTest();
Nd4j.setDataType(initialType);
}

View File

@ -57,13 +57,11 @@ public class Nd4jTestsComparisonC extends BaseNd4jTest {
@Before
public void before() throws Exception {
super.beforeTest();
DataTypeUtil.setDTypeForContext(DataType.DOUBLE);
}
@After
public void after() throws Exception {
super.afterTest();
DataTypeUtil.setDTypeForContext(initialType);
}

View File

@ -58,7 +58,6 @@ public class Nd4jTestsComparisonFortran extends BaseNd4jTest {
@Before
public void before() throws Exception {
super.beforeTest();
DataTypeUtil.setDTypeForContext(DataType.DOUBLE);
Nd4j.getRandom().setSeed(SEED);
@ -66,7 +65,6 @@ public class Nd4jTestsComparisonFortran extends BaseNd4jTest {
@After
public void after() throws Exception {
super.afterTest();
DataTypeUtil.setDTypeForContext(initialType);
}