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

Kernel crash when try to get a non-existing block. #468

Open
pcchen opened this issue Sep 13, 2024 · 1 comment
Open

Kernel crash when try to get a non-existing block. #468

pcchen opened this issue Sep 13, 2024 · 1 comment

Comments

@pcchen
Copy link
Collaborator

pcchen commented Sep 13, 2024

If a UniTensor has 3 blocks. UniTensor.get_block(3) will crash the kernel.

This might be related to issue #357 .

@IvanaGyro
Copy link
Collaborator

I guess this is the expected behavior. The index of blocks starts from zero. If my_unitensor has three blocks:

my_unitensor.get_block(0)  # OK
my_unitensor.get_block(1)  # OK
my_unitensor.get_block(2) # OK
my_unitensor.get_block(3) # raise RuntimeError in Python

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

2 participants