Skip to content

JS Operator overloading for Machine Learning #73

@dontcallmedom

Description

@dontcallmedom

@cynthia raises in his presentation a limitation of JavaScript for ML processing:

Due to the current limitations of JavaScript such as the lack of operator overloading it makes it challenging to implement an ergonomic API for vector matrix or tensor operations on the web platform.

There is an active Stage 1 proposal in TC39 around operator overload, including for matrix computations.

Can the various ML frameworks people comment on how important this is for the ergonomics of their APIs? @jasonmayes @teropa @EmmaNingMS @shiffman @annxingyuan @wangqunbaidu

I also wonder whether taking into account operator overloading has impact on how WebNN should be designed given that it itself provides multiple hardware-accelerated operators which would be useful well beyond the pure ML context. @huningxin has this been discussed at all in the context of WebNN design?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Developer's PerspectiveMachine Learning Experiences on the Web: A Developer's PerspectiveDiscussion topicTopic discussed at the workshop

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions