Git Product home page Git Product logo

flink-tensorflow's Introduction

flink-tensorflow

Build Status Gitter

Welcome! flink-tensorflow is a library for machine intelligence in Apache Flink™, using the TensorFlow library and associated models.

Want to learn more? See the wiki.

Help wanted! See the project board and the issues section for specifics. Feel free to join the chat channel.

Disclaimer

Apache®, Apache Flink™, Flink™, and the Apache feather logo are trademarks of The Apache Software Foundation.

TensorFlow, the TensorFlow logo and any related marks are trademarks of Google Inc.

flink-tensorflow's People

Contributors

eronwright avatar maocorte avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

flink-tensorflow's Issues

Use TensorFlow in FlinkML pipelines

Make it possible to use TensorFlow models as elements of a FlinkML pipeline (as described here). Possible features include:

  • Use TF models as FlinkML transformers and predictors
  • Support FlinkML datatypes
  • Train new models to be used for inference and/or exported

Stateful Computation

  • Integrate graph state into Flink operator state
  • Support checkpointing
  • Support keyed streams

problem of running Johnny model example

Hi, I am a new Flink learner. These days I encounter a problem in your project. after successfully testing the building by "mvn surefire:test", I try to run the Johnny model example. When I try to run the example in cluster by flink run -c org.apache.flink.contrib.tensorflow.examples.inception.Johnny flink-tensorflow-examples/target/flink-tensorflow-examples_2.11-0.1-SNAPSHOT.jar /path/to/inception5h /path/to/photos, the execution job failed with the following error:

java.lang.NoSuchMethodError: scala.Predef$.ArrowAssoc(Ljava/lang/Object;)Ljava/lang/Object;

If you have spare time, It would be very nice of you to give me some tips.
Thanks.

How to install

I can't find any flink-tensorflow-related jar in maven repo。
I'd like to use tensorflow-trained model in flink. Could help me to install this?

ps: The doc should be enhanced

Provide a Graph DSL

Make it possible to define TF graphs from scratch, in addition to existing support for using externally-developed models.

Because the object model of TensorFlow graphs is extensive and ever-growing, we should hesitate to introduce a Flink-specific DSL. We should consider creating or incorporating a pure Scala TensorFlow library where such a DSL could be developed.

Refactor to reduce dependencies

The library today has numerous layers of functionality that could benefit from refactoring, to reduce dependencies and clarify concepts. The conceptual layering (from bottom up):

  1. Scala language bindings
    a. focus on using the TensorFlow library in Scala (not Flink specific)
  2. Core Flink integration code
    a. graph/model loaders
    b. tensors in the Flink type system (e.g. TensorValue, type tags)
    c. core lifecycle classes (e.g. ModelAwareFunction)
    d. (future) integration of graph state with Flink managed state
  3. ML specializations
    a. representations of specific ML signatures ('classify', 'regress', 'predict')
    b. TF Serving interoperability
    c. FlinkML integration
    d. converters for specific datatypes (e.g. LabeledVector, Example)

Ideally the core module (2) would shed its dependency on 'twitter-bijection', though it may still be useful in (3).

The import org.tensorflow.framework cannot be resolved

I compiled FTF lib and examples,and imported lib into examples project.However , eclipse showed “The import org.tensorflow.framework cannot be resolved.object framework is not a member of package org.tensorflow.” exp:

import org.tensorflow.framework.{SignatureDef, TensorInfo}

and I also could not find org.tensorflow.framework

                                                                                 Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.