Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[js/web/training] added parameters methods implementations #18086

Closed
wants to merge 23 commits into from

Conversation

carzh
Copy link
Contributor

@carzh carzh commented Oct 24, 2023

Description

  • Added the following methods & their implementations: getParametersSize, loadParametersBuffer, and getContiguousBuffer

Motivation and Context

  • adding training bindings for web
  • these methods are necessary for federated learning, where the workflow includes a model being sent to an edge device, the edge device performing training, then sending the updated weights back to the central server.

Related work

carzh and others added 22 commits October 2, 2023 14:54
…ggested fix of adding backend-wasm-inference.ts
…ng-session' into carzh/create-training-session
fixed proxy worker

run format
renamed session-handler for inference files

lint + format
wrote untested getContiguousParameters method

updated getInputOutputCount and getInputOutputNames signature, added more informative error message

updated parameter names according to suggestions

semi working getContiguousParameters impl

working getContiguousParams, started writing loadParametersBuffer

working version of loadParametersBuffer
@carzh carzh requested review from askhade and guschmue October 24, 2023 23:10
@carzh carzh closed this Nov 2, 2023
@carzh carzh deleted the carzh/web-parameters-methods branch December 20, 2023 22:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants