安装
pip install thop
使用
from thop import profile
input = torch.randn(1, 3, 1024).to(device) # 放进和model相同的GPU中
flops, params = profile(model
安装
pip install thop
使用
from thop import profile
input = torch.randn(1, 3, 1024).to(device) # 放进和model相同的GPU中
flops, params = profile(model