Skip to content

Conversation

@kubaraczkowski
Copy link

Wrap calls to AppendExecutionProvider, so e.g. QNN can be used.
https://onnxruntime.ai/docs/execution-providers/QNN-ExecutionProvider.html

Copy link
Owner

@yalue yalue left a comment

Choose a reason for hiding this comment

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

The change looks great, and I should have done this a long time ago. In fact, after merging this I'll go and look for other places where this can be used. Just requested a few changes to the comments; most importantly the documentation for the new AppendExecutionProvider function.

return nil
}

// TODO: Descripiton. Enables the QNN and SNPE backends for the given session options on supported
Copy link
Owner

Choose a reason for hiding this comment

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

Update the documentation comment to something more generic.

// map.
func (o *SessionOptions) AppendExecutionProvider(provider_name string,
options map[string]string) error {
// There's probably a more concise way to do this, but we don't want to
Copy link
Owner

Choose a reason for hiding this comment

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

This comment doesn't need to be repeated here, since I already had it in other places.

@ducfilan
Copy link

@kubaraczkowski Can you fix this and get merged? I was thinking to do the same thing but I saw it here already.

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.

4 participants