Skip to content

Add properties to a graph #80

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

abrown
Copy link
Collaborator

@abrown abrown commented Aug 13, 2024

This follows up on a long-standing discussion from the machine learning working group: a desire for some way to attach properties to an ML graph. The various ML backends implementing this have mechanisms for tweaking a model's behavior based on properties; this string-based approach seems the most flexible way to access this.

This follows up on a long-standing discussion from the [machine learning
working group]: a desire for some way to attach properties to an ML
`graph`. The various ML backends implementing this have mechanisms for
tweaking a model's behavior based on properties; this `string`-based
approach seems the most flexible way to access this.

[machine learning working group]: https://github.com/bytecodealliance/meetings/tree/main/machine-learning/
@shschaefer
Copy link
Contributor

Why are these attached to the graph not the execution context?

<h4><a name="method_graph_list_properties"></a><code>[method]graph.list-properties: func</code></h4>
<p>Retrieve the properties of the graph.</p>
<p>These are metadata about the graph, unique to the graph and the
ML backend providing it.</p>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this something supposed to be used to query zero_point/scale?

anyway the description seems too abstract. it would be nicer to give a few examples.

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.

3 participants