Small fix for clashing dependency (test scope only) (#214)
Signed-off-by: AlexDBlack <blacka101@gmail.com>master
parent
12d14efcf2
commit
f00a7bb3f2
|
@ -248,7 +248,7 @@ public class ValidateCuDNN extends BaseDL4JTest {
|
||||||
Nd4j.getRandom().setSeed(12345);
|
Nd4j.getRandom().setSeed(12345);
|
||||||
INDArray features = Nd4j.rand(fShape);
|
INDArray features = Nd4j.rand(fShape);
|
||||||
INDArray labels = Nd4j.rand(lShape);
|
INDArray labels = Nd4j.rand(lShape);
|
||||||
labels = Nd4j.exec(new IsMax(labels, 1));
|
labels = Nd4j.exec(new IsMax(labels, 1))[0].castTo(features.dataType());
|
||||||
|
|
||||||
List<CuDNNValidationUtil.TestCase> testCaseList = new ArrayList<>();
|
List<CuDNNValidationUtil.TestCase> testCaseList = new ArrayList<>();
|
||||||
|
|
||||||
|
@ -256,7 +256,7 @@ public class ValidateCuDNN extends BaseDL4JTest {
|
||||||
for (int i = 0; i < 6; i++) {
|
for (int i = 0; i < 6; i++) {
|
||||||
INDArray f = Nd4j.rand(fShape);
|
INDArray f = Nd4j.rand(fShape);
|
||||||
INDArray l = Nd4j.rand(lShape);
|
INDArray l = Nd4j.rand(lShape);
|
||||||
Nd4j.exec(new IsMax(l, 1))[0];
|
l = Nd4j.exec(new IsMax(l, 1))[0].castTo(features.dataType());
|
||||||
dataSets.add(new DataSet(f, l));
|
dataSets.add(new DataSet(f, l));
|
||||||
}
|
}
|
||||||
DataSetIterator iter = new ExistingDataSetIterator(dataSets);
|
DataSetIterator iter = new ExistingDataSetIterator(dataSets);
|
||||||
|
|
|
@ -70,6 +70,13 @@
|
||||||
<artifactId>deeplearning4j-play_2.11</artifactId>
|
<artifactId>deeplearning4j-play_2.11</artifactId>
|
||||||
<version>${deeplearning4j.version}</version>
|
<version>${deeplearning4j.version}</version>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
|
<exclusions>
|
||||||
|
<!-- To avoid clashing net.jpountz.lz4:lz4:1.3.0 and org.lz4:lz4-java:jar:1.4.0 - -->
|
||||||
|
<exclusion>
|
||||||
|
<groupId>net.jpountz.lz4</groupId>
|
||||||
|
<artifactId>lz4</artifactId>
|
||||||
|
</exclusion>
|
||||||
|
</exclusions>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
|
|
Loading…
Reference in New Issue