Github user ijokarumawak commented on a diff in the pull request:

    https://github.com/apache/nifi/pull/2686#discussion_r199692925
  
    --- Diff: 
nifi-nar-bundles/nifi-deeplearning4j-bundle/nifi-deeplearning4j-processors/pom.xml
 ---
    @@ -0,0 +1,114 @@
    +<?xml version="1.0" encoding="UTF-8"?>
    +<!--
    +  Licensed to the Apache Software Foundation (ASF) under one or more
    +  contributor license agreements. See the NOTICE file distributed with
    +  this work for additional information regarding copyright ownership.
    +  The ASF licenses this file to You under the Apache License, Version 2.0
    +  (the "License"); you may not use this file except in compliance with
    +  the License. You may obtain a copy of the License at
    +  http://www.apache.org/licenses/LICENSE-2.0
    +  Unless required by applicable law or agreed to in writing, software
    +  distributed under the License is distributed on an "AS IS" BASIS,
    +  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    +  See the License for the specific language governing permissions and
    +  limitations under the License.
    +-->
    +<project xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
    +    <modelVersion>4.0.0</modelVersion>
    +
    +    <parent>
    +        <groupId>org.apache.nifi</groupId>
    +        <artifactId>nifi-deeplearning4j-bundle</artifactId>
    +        <version>1.7.0-SNAPSHOT</version>
    +    </parent>
    +
    +    <artifactId>nifi-deeplearning4j-processors</artifactId>
    +    <packaging>jar</packaging>
    +
    +    <dependencies>
    +        <dependency>
    +            <groupId>org.nd4j</groupId>
    +            <artifactId>nd4j-api</artifactId>
    +            <version>1.0.0-alpha</version>
    +        </dependency>
    +        <dependency>
    +            <groupId>org.nd4j</groupId>
    +            <artifactId>nd4j-native-platform</artifactId>
    +            <version>1.0.0-alpha</version>
    +        </dependency>
    +         <dependency>
    +             <groupId>org.nd4j</groupId>
    +             <artifactId>nd4j-cuda-8.0-platform</artifactId>
    +            <version>1.0.0-alpha</version>
    +         </dependency>
    +         <dependency>
    +             <groupId>org.nd4j</groupId>
    +             <artifactId>nd4j-cuda-9.0-platform</artifactId>
    +            <version>1.0.0-alpha</version>
    +         </dependency>
    +         <dependency>
    +             <groupId>org.nd4j</groupId>
    +             <artifactId>nd4j-cuda-9.1-platform</artifactId>
    +            <version>1.0.0-alpha</version>
    +         </dependency>
    --- End diff --
    
    1.0.0-beta version is available now. After updating to beta, tests for 
regression start to fail with following error:
    ```
    15:25:02.648 [pool-1-thread-1] ERROR 
org.apache.nifi.processors.deeplearning4j.DeepLearning4JMultiLayerPredictor - 
    org.nd4j.linalg.exception.ND4JIllegalStateException: Unable to create a 1d 
array from a non vector!
        at 
org.nd4j.linalg.api.ndarray.BaseNDArray.toDoubleVector(BaseNDArray.java:3249)
        at 
org.apache.nifi.processors.deeplearning4j.DeepLearning4JMultiLayerPredictor.onTrigger(DeepLearning4JMultiLayerPredictor.java:180)
        at 
org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:27)
        at 
org.apache.nifi.util.StandardProcessorTestRunner$RunProcessor.call(StandardProcessorTestRunner.java:251)
        at 
org.apache.nifi.util.StandardProcessorTestRunner$RunProcessor.call(StandardProcessorTestRunner.java:245)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    ```
    
    I am fixing the error locally, and will send a PR to your branch.


---

Reply via email to