-
Notifications
You must be signed in to change notification settings - Fork 271
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
780fe35
commit 546bac2
Showing
280 changed files
with
3,363 additions
and
2,084 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
Binary file added
BIN
+25.9 KB
_images/0105272816f79d2a1e05cf660dd09e0b1882b9dc4865cd7341defbae71f3c31c.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+29.4 KB
_images/1569bf8d8ae2aa79554a0ab077bf7baf6b4372d2c37854c32cdc989fe2a654fa.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+22.1 KB
_images/1d9d5d277a2c8735ddc6f9fd5dce0478b4bc8710c5caee3a3ecd171c335f0522.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-26.1 KB
_images/336759a1dc6295bc0edbf0a0fb8b76b26c6259d18205582f40cff7f41c093c24.png
Binary file not shown.
Binary file removed
BIN
-93.8 KB
_images/5619bffc5cbf78888b670444701903eb7a06f1d9b467bceef578151bc4f956c6.png
Binary file not shown.
Binary file added
BIN
+14.7 KB
_images/5b7c9770dcf5edd4d47229c4ec1c79041a544ecd929ab1ef330cd942f91657c4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-19.5 KB
_images/6a1d6b0df93617c90cb3eff7991ca38c17638566984c00e87abd508f9ee2ce4a.png
Binary file not shown.
Binary file removed
BIN
-8.48 KB
_images/737b5c27afd393eda611180faa0e6913cf2913d35de9ee976ce8393895b088f2.png
Binary file not shown.
Binary file added
BIN
+34.2 KB
_images/80d294da8307a72ba7525b277d3b6d134ec06eea12f955a8512c8f02d8a27347.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-15.2 KB
_images/86c6c30bcba70e4dc7045ed905b57d667d70fd06a61b46a3a2001c30c1b632ec.png
Binary file not shown.
Binary file removed
BIN
-25.9 KB
_images/aa0f94393b055271b577afa74863460b56e85787ad0daaaab7aaed93b90e85a5.png
Binary file not shown.
Binary file removed
BIN
-34 KB
_images/b82ea1738fba5c90b56c624f7c437d6122aebdef0d1d9f361a1986abbc441734.png
Binary file not shown.
Binary file removed
BIN
-171 KB
_images/c2d46ce94f5bd95474bf0f35cece29b3531bc7d573c9c716bd1a2006c183352d.png
Binary file not shown.
Binary file added
BIN
+171 KB
_images/c70eade745c976d6f04cb1da739ec4a4a3a7540a2424f6f978891e89863b2b0c.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+25.6 KB
_images/c84cdf1f1c563ab775269291ed00d65161ab7c669704177bfc44d6c7082ee750.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+89.2 KB
_images/d5aa0b1d568bc4551e72d7676f8149ff52662ef2090741232c280992d0c18083.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-30.4 KB
_images/f9b0bc9c18d7454baec238a7cfbd8239d5be193923cbfba2bd94d16060c45393.png
Binary file not shown.
Binary file added
BIN
+8.13 KB
_images/fe7270b7e99d723bc5a122a1a7a8706382e0c57ef0e9dca9f82ce88125d25b98.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
core.common.profiler_utils | ||
========================== | ||
|
||
.. py:module:: core.common.profiler_utils | ||
Functions | ||
--------- | ||
|
||
.. autoapisummary:: | ||
|
||
core.common.profiler_utils.get_default_profiler_handler | ||
core.common.profiler_utils.get_profile_schedule | ||
|
||
|
||
Module Contents | ||
--------------- | ||
|
||
.. py:function:: get_default_profiler_handler(run_id: str, output_dir: str, logger: fairchem.core.common.logger.Logger) | ||
Get a standard callback handle for the pytorch profiler | ||
|
||
|
||
.. py:function:: get_profile_schedule(wait: int = 5, warmup: int = 5, active: int = 2) | ||
Get a profile schedule and total number of steps to run | ||
check pytorch docs on the meaning of these paramters: | ||
https://pytorch.org/docs/stable/profiler.html#torch.profiler.schedule | ||
Example usage: | ||
``` | ||
trace_handler = get_default_profiler_handler(run_id = self.config["cmd"]["timestamp_id"], | ||
output_dir = self.config["cmd"]["results_dir"], | ||
logger = self.logger) | ||
profile_schedule, total_profile_steps = get_profile_schedule() | ||
with profile( | ||
activities=[ProfilerActivity.CPU, ProfilerActivity.CUDA], | ||
schedule=profile_schedule, | ||
on_trace_ready=trace_handler | ||
) as p: | ||
for i in steps: | ||
<code block to profile> | ||
if i < total_profile_steps: | ||
p.step() | ||
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
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
Oops, something went wrong.