[ 
https://issues.apache.org/jira/browse/MINIFICPP-301?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16251711#comment-16251711
 ] 

ASF GitHub Bot commented on MINIFICPP-301:
------------------------------------------

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

    https://github.com/apache/nifi-minifi-cpp/pull/183#discussion_r150893821
  
    --- Diff: extensions/tensorflow/TFApplyGraph.h ---
    @@ -0,0 +1,117 @@
    +/**
    + * 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.
    + */
    +
    +#ifndef NIFI_MINIFI_CPP_TFAPPLYGRAPH_H
    +#define NIFI_MINIFI_CPP_TFAPPLYGRAPH_H
    +
    +#include <atomic>
    +
    +#include <core/Resource.h>
    +#include <core/Processor.h>
    +#include <tensorflow/core/public/session.h>
    +#include <concurrentqueue.h>
    +
    +namespace org {
    +namespace apache {
    +namespace nifi {
    +namespace minifi {
    +namespace processors {
    +
    +class TFApplyGraph : public core::Processor {
    + public:
    +  explicit TFApplyGraph(const std::string &name, uuid_t uuid = nullptr)
    +      : Processor(name, uuid),
    +        logger_(logging::LoggerFactory<TFApplyGraph>::getLogger()) {
    +  }
    +
    +  static void hello();
    --- End diff --
    
    Good catch. Will fix.


> Create processor to apply arbitrary Tensor Flow graphs to tensors
> -----------------------------------------------------------------
>
>                 Key: MINIFICPP-301
>                 URL: https://issues.apache.org/jira/browse/MINIFICPP-301
>             Project: NiFi MiNiFi C++
>          Issue Type: Improvement
>            Reporter: Andrew Christianson
>            Assignee: Andrew Christianson
>
> In many cases, it may be desirable to interpret/preprocess raw signal inputs 
> on the edge, where MiNiFI runs, before sending semantic interpretations 
> upstream.
> Tensor Flow is a data flow system for processing tensors, and many graphs 
> exist or could be created which are well-suited to interpret signal inputs. 
> It would therefore be useful to have a processor in MiNiFi - C++ which takes 
> tensors (serialized as binary protocol buffers), feeds them into an input 
> node on a supplied graph, reads tensors from an output node, and finally 
> writes those output tensors as flow files containing binary protocol buffers.
> While there are many additional convenience utilities which would be helpful, 
> such as converting various standard sensor types into tensors, the initial 
> scope of this feature is a processor which processes arbitrary tensors 
> through arbitrary graphs.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to