We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 615f3c0 commit 81826edCopy full SHA for 81826ed
modelopt/torch/nas/utils.py
@@ -116,7 +116,7 @@ def inference_flops(
116
with warnings.catch_warnings():
117
warnings.simplefilter("ignore")
118
with batch_norm_ignored_flops():
119
- flops = profile.profile_macs(network, args=dummy_input)
+ flops = 2 * profile.profile_macs(network, args=dummy_input)
120
network.train(is_training)
121
if return_str:
122
return num2hrb(flops)
0 commit comments