-
Notifications
You must be signed in to change notification settings - Fork 48
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
Subclass MLGraph based on the context that creates it #344
Comments
I'm hearing this redesign would impact the current Perhaps we are able to address this issue with better example code on how to use the GPU command encoder. |
What about including the graph as internal slot to context as barinstormed in #303. As for command encoder, there opportunities to simplify that, too, for instance some brainstorming in #333. I agree we should address these points together when more impl experience/clarity is available. |
Does subclassing My reading of this issue is that it has so far provided the following reasons for subclassing
With regards to (1), the With regards to (2), I see a few problems to this. Would we have to add another subclass to support an NPU backend? This does not seem sustainable. IMHO it would be nice to have one method to perform "execute the graph", regardless of the backend, and Are there other reasons to want this subclassing? If not, I would like to advocate for closing this issue |
+1 to closing |
+1 for that. |
+1 to closing this issue. |
Split from #341 (comment), where @wacky6 mentioned
If we fold the command recording methods into
MLGpuGraph
, it may not support recording multipleMLGraph
s into one command buffer thatMLCommandEncoder
supports. Pipelining models execution may reduce the GPU queue submission overhead and improve the throughput./cc @wchao1115
The text was updated successfully, but these errors were encountered: