I've heard this feedback from several people recently and wanted to open this up for discussion: many ML frameworks now use names (i.e., strings) instead of numeric indexes for identifying inputs and outputs. Currently set-input and get-output both use numeric indexes. Should we switch the API to use names instead?
The current API would replace set-input and get-output with:
This seems like a no brainer. Using indexes seems pretty brittle as it is decoupled from the semantic meaning of the value and makes for less clear code (i.e poor developer experience for users of the api)
I've heard this feedback from several people recently and wanted to open this up for discussion: many ML frameworks now use names (i.e., strings) instead of numeric indexes for identifying inputs and outputs. Currently
set-input
andget-output
both use numeric indexes. Should we switch the API to use names instead?The current API would replace
set-input
andget-output
with:If #43 is adopted, which removes
graph-execution-context
, then thecompute
call would change to: