Skip to content

Question about writing my OPS #907

@DavidGOrtega

Description

@DavidGOrtega

Hi,

I'm writing my own ops for TF. I have some doubts and maybe someone can explain them to me.
I have read the docs however I had to figure out the rest looking at the code.

There are four backends:

  • fallback (js)
  • webGL (glsl/gles)
  • webassembly (C++)
  • webGPU (C++ alike code)

I'm interested on webGL and webassembly, my doubts are:

  1. Would be amazing if I can write my Layers in any language (js, webGL, webassembly). At the end everything is going to run in the browser so like in other DL frameworks I can use python OPs or GPU/CPU with the penalty of uploading/downloading the data, in webDNN would be very nice if I can just use a layer that runs in vanilla JS. That way operations that are done just once like resize could be reused.
  2. Could be possible to write webGL code in plain JS? I mean, there are many libraries that has those operations I need actually written in glsl. Would be very helpful if I just can call plain JS instead. Is that possible?
  3. During the installation I saw that webassembly backend relies on Eigen. How can I access EIgen?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions