-
Notifications
You must be signed in to change notification settings - Fork 222
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
Models interface should push and pop default allocator context on eval #219
Comments
@dboyliao found it |
Example code to reproduce the error: |
As a side note, the main issue is that we need to switch the ram & meta allocator back to those in the user space after model eval. If we forget to switch allocators back, tensor deconstructor will fail. |
To support multiple allocator contexts in the tensor destructor, model interface should push and pop current allocator pointers to a queue in the default current context else risks failed destruction
The text was updated successfully, but these errors were encountered: