Avoid double printing of start/stop test in a few cases (#210)
Signed-off-by: AlexDBlack <blacka101@gmail.com>master
parent
9bb5798cac
commit
ddf70ac450
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue