Skip to content

tools for FLOPs and parameters calculation of pytorch

Notifications You must be signed in to change notification settings

tirtile/torchFP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

torchFP

tools for FLOPs and parameters calculation of pytorch

How to Use ?

from torchvision.models import resnet18
from coreOperator import get_params, get_flops

model = resnet18()
print(get_params(model,input_size=(1,3,64,64),types="G"), get_flops(model, types="G"))

About

tools for FLOPs and parameters calculation of pytorch

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages