Skip to content

Commit

Permalink
Add optional operator labels for more diagnosable error messages (#742)
Browse files Browse the repository at this point in the history
* Add optional operator labels for more diagnosable error messages

This adds an internal 'label' property to the operators that are
created as a graph is constructed, which MAY (in the RFC 2119 sense)
be used by implementations in async error messages. Developers
populate this via a 'label' member in the options dictionary for
MLGraphBuilder methods.

A new MLOperatorOptions dictionary is defined, and all existing
options dictionaries now inherit from this, and all relevant methods
now take an options dictionary.

Fixes #585

* Add note encouraging implementations

* Revise note to mention sync errors

* Update index.bs

Co-authored-by: Dwayne Robinson <[email protected]>

* don't pass options twice

---------

Co-authored-by: Dwayne Robinson <[email protected]>
  • Loading branch information
inexorabletash and fdwr authored Jul 30, 2024
1 parent ef78826 commit 8734bea
Showing 1 changed file with 240 additions and 179 deletions.
Loading

0 comments on commit 8734bea

Please sign in to comment.