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

[Question] empty torch tensor from c++ to py #6

Open
hogura99 opened this issue Nov 16, 2024 · 0 comments
Open

[Question] empty torch tensor from c++ to py #6

hogura99 opened this issue Nov 16, 2024 · 0 comments

Comments

@hogura99
Copy link
Collaborator

We expect to get a tensor of size [0] when initializing it with {} in c++ and passing it to python. However the python actually got a None type.

image

When there is no data in scheduler, batch_info.data should be an empty tensor, but it is None.

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

1 participant