🐹

【ML】Solution of the "Trying to resize storage that is not resizable"

2024/06/09に公開

I got this error "RuntimeError: Trying to resize storage that is not resizable" when I creating pytorch machine learning model.

Solution of my case

In my case, it caused by not uniform train_data was provided from __getitem__().

I checked out of input shape, and fixed it by padding. Then the error was disappered. Please try it.

I'm glad if this article is helpful to someone.

Discussion