Skip to content
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

Update runtime submit API #95

Open
LPanosTT opened this issue Dec 4, 2024 · 1 comment
Open

Update runtime submit API #95

LPanosTT opened this issue Dec 4, 2024 · 1 comment
Assignees

Comments

@LPanosTT
Copy link
Contributor

LPanosTT commented Dec 4, 2024

This is a clone of this tt-xla issue: tenstorrent/tt-xla#102

I made a clone of this issue here since it seems like he doesn't have access to this repo. The following is what the tt-xla issue states:

Runtime stitching update has been merged here that includes an update to the runtime submit API. Currently the old API is still supported for backwards compatibility but will be deprecated soon, so it would be desirable to update to the new API. To maintain current functionality, the only code change needed would be to change from

runtime.submit(..., output_tensor_containers)

to

output_tensors = runtime.submit(...)
for i, tensor in enumerate(output_tensors):
 runtime.memcpy(output_tensor_containers[i], tensor)

An example can also be found under ttrt/common/run.py

FYI: @AleksKnezevic

@AleksKnezevic
Copy link
Contributor

@brataTT, can you please take care of this?

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

No branches or pull requests

3 participants