This repository has been archived by the owner on Jul 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 277
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Profiler bug-fixes and improvements (#482)
Summary: Pull Request resolved: #482 Made the following changes to the profiler code - - The parameter calculation skipped parameters defined in modules, and had unnecessary complexity - updated the logic - `AdaptiveAvgPool2d` handles a single number `output_size` as well - Added FLOPs for the `Identity` module - Added support to specify an `activations` function to fetch activations from (similar to the `flops` function) - Replaced the hacky list append logic with a class, `_ComplexityComputer` - Implemented test cases which verify that the fixes work Reviewed By: vreis Differential Revision: D21009734 fbshipit-source-id: 926d93164c13c6c98eb88f9131d295b61d6acda7
- Loading branch information
1 parent
5643849
commit e5b9873
Showing
2 changed files
with
153 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters