pytorch_modelsize icon indicating copy to clipboard operation
pytorch_modelsize copied to clipboard

Estimates the size of a PyTorch model in memory

Results 4 pytorch_modelsize issues
Sort by recently updated
recently updated
newest added

I have a model defined with a sequence of layers stored in a nn.ModuleList. For example I find it useful for defining a fully connected neural network (MLP) where you...

The original implementation of this tool relies on accessing tensor operations through `model.modules()`. This is simple, but cannot account for arbitrary dimensionality changes in the `.forward()` method. For instance, it's...

enhancement
low priority

Hi Jacob, I tried to estimate the size of my model that uses half precision without any luck. I changed line 34 to HalfTensor, but got the following message: RuntimeError:...