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);
|
||||
INDArray features = Nd4j.rand(fShape);
|
||||
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<>();
|
||||
|
||||
|
@ -256,7 +256,7 @@ public class ValidateCuDNN extends BaseDL4JTest {
|
|||
for (int i = 0; i < 6; i++) {
|
||||
INDArray f = Nd4j.rand(fShape);
|
||||
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));
|
||||
}
|
||||
DataSetIterator iter = new ExistingDataSetIterator(dataSets);
|
||||
|
|
|
@ -70,6 +70,13 @@
|
|||
<artifactId>deeplearning4j-play_2.11</artifactId>
|
||||
<version>${deeplearning4j.version}</version>
|
||||
<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>
|
||||
|
|
Loading…
Reference in New Issue