-
Notifications
You must be signed in to change notification settings - Fork 264
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
Showing
317 changed files
with
15,118 additions
and
16,261 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 removed
BIN
-15.6 KB
_images/2d33d2519b86aa6a1c181115d2d4536b85d09e8a37a78075c3cec7263c717409.png
Binary file not shown.
Binary file removed
BIN
-25 KB
_images/2d64aee320b000550ca5f2e60a20fe2186071fbc2d4fe06340e7e37a066b0ff2.png
Binary file not shown.
Binary file removed
BIN
-21.2 KB
_images/4dcb128b635cd71a2eef3c94324a4f8a5c6f157a4b0bc98d9c8be1b386bd6a53.png
Binary file not shown.
Binary file removed
BIN
-7.6 KB
_images/73d4397bc47adf7dd1bfaf0ad95149745534bc70b888193565051cdebb08b017.png
Binary file not shown.
Binary file renamed
BIN
+29.4 KB
...b337a6bf9417900b90da5894dd488e25a7fdd.png → ...b209776158e60b6b75b9d57748d373e77d03d.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
+7.85 KB
_images/7cb94665edb1d98736dd09114ee2d764d582a7b6c589e95c0553b2c1827daea3.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
+34.1 KB
_images/928c4ab868a9a84c65df3424030232c3f6bb27a2ac447f08a888ba2228d51386.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
+20.3 KB
_images/aea3db562f5c103a2b6a397166d765950f2cf0f5d9d7fc35b31b78c364d02752.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
+99.9 KB
_images/b0904eadf04c94e279d59f7840f294611aad837ada854337d1964d121fdf6cef.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
-83.7 KB
_images/b49962cb4ca420417f689dc5bb50ab31f204a19081298e684a9d77f4ecee72e4.png
Binary file not shown.
Binary file added
BIN
+84.9 KB
_images/b79f6ecb8d7f97377a1b900a5fb72489f5b80d0b3313ad529d9f7a7afcfb7451.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
+28 KB
_images/b8462766e3305ecff8dcd979a4b724c753aebef048001a12e1f7b1bc6d61da1b.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
-34.1 KB
_images/c6cf28614d9d8424af32326e2fe48d51778784c1b82c93c4e269592aa8877180.png
Binary file not shown.
Binary file added
BIN
+25 KB
_images/e6f89433e08900b4ffd563d93241bdd1af783daab4f8bc41e2c2f8078aa1ae36.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
-23.6 KB
_images/ea483ecbf95b4d4a342b7bc55d0e66e88ac01fa89d2a9800f15b425db48a690b.png
Binary file not shown.
Binary file removed
BIN
-99.9 KB
_images/f16f351e99b75a0e68bece7d23fb2fa1c3491a8388f9ad2848c53b3553b9be80.png
Binary file not shown.
Binary file added
BIN
+15.1 KB
_images/fe3986b7ae5456a196311a6374cc2f21870ce78f70771b7a24ed66c87f01e292.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
core._cli_hydra | ||
=============== | ||
|
||
.. py:module:: core._cli_hydra | ||
.. autoapi-nested-parse:: | ||
|
||
Copyright (c) Facebook, Inc. and its affiliates. | ||
|
||
This source code is licensed under the MIT license found in the | ||
LICENSE file in the root directory of this source tree. | ||
|
||
|
||
|
||
Attributes | ||
---------- | ||
|
||
.. autoapisummary:: | ||
|
||
core._cli_hydra.logger | ||
|
||
|
||
Classes | ||
------- | ||
|
||
.. autoapisummary:: | ||
|
||
core._cli_hydra.Submitit | ||
|
||
|
||
Functions | ||
--------- | ||
|
||
.. autoapisummary:: | ||
|
||
core._cli_hydra.map_cli_args_to_dist_config | ||
core._cli_hydra.get_hydra_config_from_yaml | ||
core._cli_hydra.runner_wrapper | ||
core._cli_hydra.main | ||
|
||
|
||
Module Contents | ||
--------------- | ||
|
||
.. py:data:: logger | ||
.. py:class:: Submitit | ||
Bases: :py:obj:`submitit.helpers.Checkpointable` | ||
|
||
|
||
Derived callable classes are requeued after timeout with their current | ||
state dumped at checkpoint. | ||
|
||
__call__ method must be implemented to make your class a callable. | ||
|
||
.. note:: | ||
|
||
The following implementation of the checkpoint method resubmits the full current | ||
state of the callable (self) with the initial argument. You may want to replace the method to | ||
curate the state (dump a neural network to a standard format and remove it from | ||
the state so that not to pickle it) and change/remove the initial parameters. | ||
|
||
|
||
.. py:method:: __call__(dict_config: omegaconf.DictConfig, cli_args: argparse.Namespace) -> None | ||
.. py:method:: checkpoint(*args, **kwargs) | ||
Resubmits the same callable with the same arguments | ||
|
||
|
||
|
||
.. py:function:: map_cli_args_to_dist_config(cli_args: argparse.Namespace) -> dict | ||
.. py:function:: get_hydra_config_from_yaml(config_yml: str, overrides_args: list[str]) -> omegaconf.DictConfig | ||
.. py:function:: runner_wrapper(config: omegaconf.DictConfig, cli_args: argparse.Namespace) | ||
.. py:function:: main(args: argparse.Namespace | None = None, override_args: list[str] | None = None) | ||
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,65 @@ | ||
core.components.runner | ||
====================== | ||
|
||
.. py:module:: core.components.runner | ||
Classes | ||
------- | ||
|
||
.. autoapisummary:: | ||
|
||
core.components.runner.Runner | ||
core.components.runner.MockRunner | ||
|
||
|
||
Module Contents | ||
--------------- | ||
|
||
.. py:class:: Runner | ||
Represents an abstraction over things that run in a loop and can save/load state. | ||
ie: Trainers, Validators, Relaxation all fall in this category. | ||
This allows us to decouple away from a monolithic trainer class | ||
|
||
|
||
.. py:method:: run() -> Any | ||
:abstractmethod: | ||
|
||
|
||
|
||
.. py:method:: save_state() -> None | ||
:abstractmethod: | ||
|
||
|
||
|
||
.. py:method:: load_state() -> None | ||
:abstractmethod: | ||
|
||
|
||
|
||
.. py:class:: MockRunner(x: int, y: int) | ||
Bases: :py:obj:`Runner` | ||
|
||
|
||
Represents an abstraction over things that run in a loop and can save/load state. | ||
ie: Trainers, Validators, Relaxation all fall in this category. | ||
This allows us to decouple away from a monolithic trainer class | ||
|
||
|
||
.. py:attribute:: x | ||
.. py:attribute:: y | ||
.. py:method:: run() -> Any | ||
.. py:method:: save_state() -> None | ||
.. py:method:: load_state() -> None | ||
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 |
---|---|---|
|
@@ -35,5 +35,6 @@ Submodules | |
:maxdepth: 1 | ||
|
||
/autoapi/core/_cli/index | ||
/autoapi/core/_cli_hydra/index | ||
|
||
|
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.