Skip to content

Node.js (JavaScript) Wrapper API #37

Description

@keon

Because JavaScript is Awesome

Activity

  1. changed the title [-]JavaScript (Node.js) Wrapper[/-] [+]JavaScript (Node.js) Wrapper API[/+] on Nov 9, 2015
  2. ZECTBynmo commented on Nov 9, 2015

    @ZECTBynmo

    +1!

  3. dhritzkiv commented on Nov 9, 2015

    @dhritzkiv

    +1

  4. fiws commented on Nov 9, 2015

    @fiws

    👍

  5. mikealche commented on Nov 10, 2015

    @mikealche

    +1

  6. jagandecapri commented on Nov 10, 2015

    @jagandecapri

    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) ?

  7. imgntn commented on Nov 10, 2015

    @imgntn

    +1 👍

  8. prathamesh7pute commented on Nov 10, 2015

    @prathamesh7pute

    +1

  9. chenzxcvb commented on Nov 10, 2015

    @chenzxcvb

    +1

  10. dmitriykharchenko commented on Nov 10, 2015

    @dmitriykharchenko

    +1

  11. marcbaetica commented on Nov 10, 2015

    @marcbaetica

    +1

  12. lowe0292 commented on Nov 10, 2015

    @lowe0292

    👍

  13. mattkosoy commented on Nov 10, 2015

    @mattkosoy

    👍

  14. nikhilk commented on Nov 10, 2015

    @nikhilk

    +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.

  15. 232 remaining items

  16. lastmjs commented on May 8, 2018

    @lastmjs

    @nuchi, so did you compile the necessary TensorFlow code from the C API to WebAssembly? Or are you using TensorFlow.js?

  17. nuchi commented on May 8, 2018

    @nuchi
    Contributor

    @lastmjs I explain in more detail in the link I provided. Short version: I added Webassembly as an XLA compilation target. I did not use Tensorflow.js in any way.

  18. huan commented on May 9, 2018

    @huan
    Contributor

    @nuchi Great work! and I know another WebAssemble research on TensorFlow at here:
    https://medium.com/@tomasreimers/compiling-tensorflow-for-the-browser-f3387b8e1e1c

  19. rchipka commented on Jun 7, 2018

    @rchipka

    Glad to see that there's official progress on this. I'd love to have fast, parallel GPU compute power at my fingertips with the ease and composability of JS.

    I started working on a NodeJS binding for TensorFlow a while ago, but a haven't had much free time to devote to it lately.

    The concept is similar to @jart's suggested approach.

    I had three goals in mind for the project:

    1. Don't require building or installing tensorflow

    Instead, it should download and use the pre-built, multi-platform python binaries and download any needed source files on the fly.

    2. Don't require a complete C++ or JS reproduction or abstraction of the API

    Instead, it should provide a complete 1-to-1 interface with the C API, providing convenient JS abstractions as much as possible.

    3. Don't maintain the C API bindings by hand

    Instead, it should use a swig script to map the core data structures between Tensorflow/stdc++/V8/node and the rest will follow.


    I got pretty far along with this, but last I remember a was having issues with TF_Session related segfaults.

    Right now it's just collecting dust, so if someone wants to jump in and help with this I'd gladly accept PRs.

  20. wt-huang commented on Nov 9, 2018

    @wt-huang

    Closing as this is resolved

  21. added a commit that references this issue on Oct 16, 2019
  22. added a commit that references this issue on Dec 6, 2019
  23. added a commit that references this issue on Feb 1, 2021
  24. added 5 commits that reference this issue on Apr 9, 2025
  25. added 2 commits that reference this issue on Mar 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions