Skip to content

Commit

Permalink
upgrade pyre version in fbcode/vision - batch 2
Browse files Browse the repository at this point in the history
Differential Revision: D57183103

fbshipit-source-id: 7e2f42ddc6a1fa02abc27a451987d67a00264cbb
  • Loading branch information
generatedunixname89002005307016 authored and facebook-github-bot committed May 10, 2024
1 parent 1856b63 commit 1d61132
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion fvcore/nn/print_model_statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,11 @@ def _get_input_sizes(iterable: Iterable[Any]) -> List[Any]: # pyre-ignore[2,3]


def flop_count_str(
flops: FlopCountAnalysis, activations: Optional[ActivationCountAnalysis] = None
# pyre-fixme[11]: Annotation `FlopCountAnalysis` is not defined as a type.
# pyre-fixme[11]: Annotation `ActivationCountAnalysis` is not defined as a type.
flops: FlopCountAnalysis,
# pyre-fixme[11]: Annotation `ActivationCountAnalysis` is not defined as a type.
activations: Optional[ActivationCountAnalysis] = None,
) -> str:
"""
Calculates the parameters and flops of the model with the given inputs
Expand Down

0 comments on commit 1d61132

Please sign in to comment.