Coder Social home page Coder Social logo

Node.js (JavaScript) Wrapper API about tensorflow HOT 246 CLOSED

keon avatar keon commented on December 10, 2024 962
Node.js (JavaScript) Wrapper API

from tensorflow.

Comments (246)

ZECTBynmo avatar ZECTBynmo commented on December 10, 2024 60

+1!

from tensorflow.

dhritzkiv avatar dhritzkiv commented on December 10, 2024 26

+1

from tensorflow.

fiws avatar fiws commented on December 10, 2024 25

πŸ‘

from tensorflow.

mikealche avatar mikealche commented on December 10, 2024 25

+1

from tensorflow.

ripper2hl avatar ripper2hl commented on December 10, 2024 20

please try use reactions button --> http://www.geekwire.com/2016/github-adds-reactions-keep-comments-track/ no more +1 comments xD

from tensorflow.

nikhildaga avatar nikhildaga commented on December 10, 2024 17

Happy Anniversary TensorFlow !

https://research.googleblog.com/2016/11/celebrating-tensorflows-first-year.html

I notice TensorFlow is now accessible from Go, Rust and Haskell. Why ignore JavaScript ?

Really waiting for a machine library in JavaScript.

from tensorflow.

jagandecapri avatar jagandecapri commented on December 10, 2024 15

Just what I was searching for. πŸ‘

As quoted from the offical website http://www.tensorflow.org/

we’re hoping to entice you to contribute SWIG interfaces to your favorite language -- be it Go, Java, Lua, Javascript, or R.

I am new to this whole SWIG thing but searched around and found this. http://www.swig.org/Doc3.0/Javascript.html

Not really sure how this works. Do we need to write swig interface file specifically for Javascript or is it auto-generated when running some commands or is somebody already working on this (this would be awesome) ?

from tensorflow.

imgntn avatar imgntn commented on December 10, 2024 13

+1 πŸ‘

from tensorflow.

mattkosoy avatar mattkosoy commented on December 10, 2024 12

πŸ‘

from tensorflow.

chenzxcvb avatar chenzxcvb commented on December 10, 2024 11

+1

from tensorflow.

prathamesh7pute avatar prathamesh7pute commented on December 10, 2024 10

+1

from tensorflow.

dmitriykharchenko avatar dmitriykharchenko commented on December 10, 2024 10

+1

from tensorflow.

marcbaetica avatar marcbaetica commented on December 10, 2024 10

+1

from tensorflow.

lowe0292 avatar lowe0292 commented on December 10, 2024 10

πŸ‘

from tensorflow.

nikhilk avatar nikhilk commented on December 10, 2024 10

+1!

Just starting out on one, but new to writing a nodejs addon. Checking out the swig interface files to see if they're going to be helpful, or if I should just use the c++ API.

from tensorflow.

vnglst avatar vnglst commented on December 10, 2024 10

+1

from tensorflow.

peterbraden avatar peterbraden commented on December 10, 2024 10

@martinwicke thanks for the encouragement. I made an initial stab at it here: #2206 - this is just a proof of concept that gets the version string into nodejs. I'll start work on adding the swig interfaces for the graph running stuff.

from tensorflow.

jonchenn avatar jonchenn commented on December 10, 2024 10

+10000

from tensorflow.

martinwicke avatar martinwicke commented on December 10, 2024 9

@peterbraden sorry for the prolonged silence. We are building out the C++ API, and it will grow over time. I expect the most useful bits to be the parts that are needed to run an existing graph. The C++ graph building API is being redone right now, so it's not particularly useful to spend much time on it.

I'd love it if you prepared a PR to put these bindings into contrib/nodejs.

from tensorflow.

jalona avatar jalona commented on December 10, 2024 8

+1

from tensorflow.

Foorack avatar Foorack commented on December 10, 2024 8

+1

from tensorflow.

tngan avatar tngan commented on December 10, 2024 8

+1

from tensorflow.

vincentvanhoucke avatar vincentvanhoucke commented on December 10, 2024 8

This is something the core TensorFlow team is unlikely to tackle in the near future, so if you want to contribute it, please go ahead! I would recommend circulating a proposed implementation on the discuss mailing list early on, so that a consensus about where such API might live (in repo / off repo / in 'contrib' directory) can be reached ahead of time.

from tensorflow.

dmcmorris avatar dmcmorris commented on December 10, 2024 7

Found this while looking into wether or not bindings existed already. Going to learn some tensor flow via the current python API before researching more, but I have built nodejs bindings for C++ libs before and can tell you from experience that swig is the wrong way.

If you simply use the swig bindings then you will have synchronous blocking code in an async environment. The swig bindings do not run things on IO threads, they execute on the main event loop from what I understand/experienced.

Once I have some basic tensor flow experience under my belt I'll likely be interested in building out proper bindings. So if anyone is serious about that and/or wants more details on working with v8 modules, let me know.

from tensorflow.

qrpike avatar qrpike commented on December 10, 2024 6

+1

from tensorflow.

marcbaetica avatar marcbaetica commented on December 10, 2024 5

@dmcmorris I am seriously interested in lending a hand! What resources do you recommend for working with v8 modules? We can assemble a team here and start diving into materials asap as this project is way overdue :)

from tensorflow.

himanshurobo avatar himanshurobo commented on December 10, 2024 4

Is there any update ??

On 31-Oct-2016 12:06 pm, "willshion" [email protected] wrote:

+1s

β€”
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#37 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ANrvwrbmShC9c0_wsNpTudKSCb0-8qt8ks5q5Yx3gaJpZM4Ge5NV
.

from tensorflow.

bertolo1988 avatar bertolo1988 commented on December 10, 2024 3

+1

from tensorflow.

tngan avatar tngan commented on December 10, 2024 2

We hope more developers to discuss and contribute. Now we have a slack channel named as nodejs (see #31), and a Github repository node-tensorflow is reserved. Thanks @Foorack !

from tensorflow.

peterbraden avatar peterbraden commented on December 10, 2024 2

I have a working prototype using SWIG here: node-tensorflow/node-tensorflow#13

The next steps would be to define the areas that the bindings would initially cover (must be within the C++ API ) and start implementing the SWIG interface files for these.

If anyone has experience with SWIG, I'd love to collaborate, as it seems like a huge amount of the python SWIG interfaces are custom overrides etc. and I'm keen not to reproduce their work. Additionally, would be great to get some clarity from the tensorflow team on what API's would be good to initially cover as I'm sure their roadmap has many changes on the way, and I wouldn't want to conflict. (cc @martinwicke ? )

from tensorflow.

teckays avatar teckays commented on December 10, 2024 2

+1

from tensorflow.

lucked avatar lucked commented on December 10, 2024 1

+1

from tensorflow.

mredmundto avatar mredmundto commented on December 10, 2024 1

+1

from tensorflow.

Foorack avatar Foorack commented on December 10, 2024

Anyone up to write a NodeJS library? πŸ‘
I think it would be better with a official NodeJS API however a community one will be as (if not more) interesting in my opinion. I know there are multiple ways of approaching this however I strongly recommend node-gyp for performance. I will gladly contribute in any way I can, however, this is something I will not be able to do alone. Would be best if a few other people is interested as well, specially someone with C++ knowledge.

from tensorflow.

augbog avatar augbog commented on December 10, 2024

πŸ‘

from tensorflow.

tngan avatar tngan commented on December 10, 2024

@Foorack I am willing to contribute it if some people are interested as well. Is it possible to move the discussion to a slack channel ? (see #31)

from tensorflow.

Foorack avatar Foorack commented on December 10, 2024

@tngan The slack channel is private, however I was able to join with the herokuapp link. πŸ‘

from tensorflow.

marcbaetica avatar marcbaetica commented on December 10, 2024

I am willing to contribute. Thanks for the initiative guys!

from tensorflow.

Foorack avatar Foorack commented on December 10, 2024

@miguelalche Glad to see you're interested! Please join the slack channel and someone will add you to the repository. ^^

from tensorflow.

cauerego avatar cauerego commented on December 10, 2024

I look forward for contributing ( specially along with #132 ) !!

from tensorflow.

gpresland avatar gpresland commented on December 10, 2024

+1

from tensorflow.

mpj avatar mpj commented on December 10, 2024

Hooray for node! Let's do this.

from tensorflow.

miql avatar miql commented on December 10, 2024

+1

from tensorflow.

g3ortega avatar g3ortega commented on December 10, 2024

+1

from tensorflow.

jimfleming avatar jimfleming commented on December 10, 2024

Here's a writeup on how to load and execute TensorFlow graphs using the C API: https://medium.com/jim-fleming/loading-tensorflow-graphs-via-host-languages-be10fd81876f (source code included)

from tensorflow.

tngan avatar tngan commented on December 10, 2024

The proposal will be released in the next week. Keep tracking on https://github.com/node-tensorflow/node-tensorflow.

from tensorflow.

duyet avatar duyet commented on December 10, 2024

+1

from tensorflow.

nikhilk avatar nikhilk commented on December 10, 2024

I have published my starting point -- https://github.com/nikhilk/node-tensorflow that will be published to npm later.

@jimfleming - like your approach (we're both using ffi ... I did it to get started quickly). Are you going to take on building higher level framework-style APIs to replicate the python experience? Thats my next step.

from tensorflow.

jimfleming avatar jimfleming commented on December 10, 2024

@nikhilk Thanks. Something like new tf.Tensor() instead of tf.NewTensor() might be a nice addition but I'm not planning on expanding it at the moment. I'm only interested in loading graphs created in python and I think I like the minimalism.

from tensorflow.

robbinhan avatar robbinhan commented on December 10, 2024

+1

from tensorflow.

tngan avatar tngan commented on December 10, 2024

The proposal is released here with current progress.
https://github.com/node-tensorflow/node-tensorflow/tree/1.0.0

There is an open issue for the discussion.
node-tensorflow/node-tensorflow#2

from tensorflow.

alexzaporozhets avatar alexzaporozhets commented on December 10, 2024

+1

from tensorflow.

gmosx avatar gmosx commented on December 10, 2024

+1

from tensorflow.

please-wait avatar please-wait commented on December 10, 2024

+1

from tensorflow.

haduythuan avatar haduythuan commented on December 10, 2024

+1

from tensorflow.

qrpike avatar qrpike commented on December 10, 2024

+1

from tensorflow.

ken-okabe avatar ken-okabe commented on December 10, 2024

+1

from tensorflow.

buholzer avatar buholzer commented on December 10, 2024

+1

from tensorflow.

ovrmrw avatar ovrmrw commented on December 10, 2024

+1

from tensorflow.

Konard avatar Konard commented on December 10, 2024

+1

from tensorflow.

pavelchristof avatar pavelchristof commented on December 10, 2024

+1

It'd be great to be able to easily run tensorflow networks in node.js based servers.

from tensorflow.

nikhildaga avatar nikhildaga commented on December 10, 2024

+1

from tensorflow.

taveras avatar taveras commented on December 10, 2024

+1

from tensorflow.

alexahdp avatar alexahdp commented on December 10, 2024

+1

from tensorflow.

pavel-kudinov avatar pavel-kudinov commented on December 10, 2024

+1

from tensorflow.

muka avatar muka commented on December 10, 2024

+1

from tensorflow.

jasonmayes avatar jasonmayes commented on December 10, 2024

+1

from tensorflow.

andrewjaykeller avatar andrewjaykeller commented on December 10, 2024

I am very willing to contribute. @Foorack please add me to what ever you can! I have a real life use case for this so it will be great to develop and test it at the same time!!

from tensorflow.

Foorack avatar Foorack commented on December 10, 2024

@pushtheworldllc I'm glad you are interested. :)
The repository and the proposal can be found here: https://github.com/node-tensorflow/node-tensorflow/
You can use this link to join our slack channel: https://tensor-flow-talk-invite.herokuapp.com/

from tensorflow.

highruned avatar highruned commented on December 10, 2024

+1

from tensorflow.

teagup avatar teagup commented on December 10, 2024

+1

from tensorflow.

helxsz avatar helxsz commented on December 10, 2024

+1

from tensorflow.

aralroca avatar aralroca commented on December 10, 2024

+1 πŸ‘

from tensorflow.

pavelkukov avatar pavelkukov commented on December 10, 2024

+1 πŸ‘

from tensorflow.

vsantosu avatar vsantosu commented on December 10, 2024

+1

from tensorflow.

 avatar commented on December 10, 2024

+1 πŸ‘

from tensorflow.

kristoffernolgren avatar kristoffernolgren commented on December 10, 2024

+1

from tensorflow.

maltyxx avatar maltyxx commented on December 10, 2024

+1

from tensorflow.

 avatar commented on December 10, 2024

+1

from tensorflow.

wajeehullah avatar wajeehullah commented on December 10, 2024

+1

from tensorflow.

sbechet avatar sbechet commented on December 10, 2024

+1

from tensorflow.

allanjuma avatar allanjuma commented on December 10, 2024

πŸ‘

from tensorflow.

adamvresky avatar adamvresky commented on December 10, 2024

+1

from tensorflow.

claudio4 avatar claudio4 commented on December 10, 2024

+1

from tensorflow.

Loksly avatar Loksly commented on December 10, 2024

+1

from tensorflow.

progdude avatar progdude commented on December 10, 2024

+1

from tensorflow.

vunb avatar vunb commented on December 10, 2024

+1

from tensorflow.

guillaume-chevalier avatar guillaume-chevalier commented on December 10, 2024

This would be interesting for pure front-end graph exportation for direct usage on web clients. Even if the desired inputs/outputs asked from the graph would be hard-coded in the exported JS "sess.run" equivalent function.

from tensorflow.

jadewon avatar jadewon commented on December 10, 2024

+1

from tensorflow.

rodrigo-garcia-olx avatar rodrigo-garcia-olx commented on December 10, 2024

πŸ‘

from tensorflow.

prajankya avatar prajankya commented on December 10, 2024

+1

from tensorflow.

heineiuo avatar heineiuo commented on December 10, 2024

+1

from tensorflow.

sequoiar avatar sequoiar commented on December 10, 2024

+1

from tensorflow.

vjk2005 avatar vjk2005 commented on December 10, 2024

+1

from tensorflow.

o0x2a avatar o0x2a commented on December 10, 2024

+1

from tensorflow.

himanshurobo avatar himanshurobo commented on December 10, 2024

Is there any link related to node-gyp binding for tensor flow API ??

from tensorflow.

cedricve avatar cedricve commented on December 10, 2024

+1

from tensorflow.

keyvez avatar keyvez commented on December 10, 2024

+1

from tensorflow.

lcultx avatar lcultx commented on December 10, 2024

+1

from tensorflow.

willshion avatar willshion commented on December 10, 2024

+1s

from tensorflow.

Related Issues (20)

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.