From f2ba0a4aa9949f6b30d60f4f7fef232021fabe4c Mon Sep 17 00:00:00 2001 From: Jeff Yang Date: Sat, 24 Oct 2020 19:10:47 +0630 Subject: [PATCH 1/4] Update setup.cfg --- setup.cfg | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup.cfg b/setup.cfg index 00608f0487c0..cae9c5153343 100644 --- a/setup.cfg +++ b/setup.cfg @@ -28,3 +28,5 @@ markers = distributed: mark a test with distributed option multinode_distributed: mark a test with multi-node distributed option tpu: mark a test as requiring XLA +addopts = + --color=yes From e6e6ec2271118b241fafb7db337ec01c7c47ec6d Mon Sep 17 00:00:00 2001 From: ydcjeff Date: Sun, 15 Nov 2020 11:34:37 +0630 Subject: [PATCH 2/4] [docs] add submodule in engine --- docs/source/engine.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/source/engine.rst b/docs/source/engine.rst index 0ceda8406c58..5353415a7416 100644 --- a/docs/source/engine.rst +++ b/docs/source/engine.rst @@ -3,18 +3,24 @@ ignite.engine Main module of the library containing: +ignite.engine.engine + .. currentmodule:: ignite.engine.engine .. autosummary:: :nosignatures: :autolist: +ignite.engine.events + .. currentmodule:: ignite.engine.events .. autosummary:: :nosignatures: :autolist: +ignite.engine.deterministic + .. currentmodule:: ignite.engine.deterministic .. autosummary:: From 3b99a67821856c07c307a08d85eb75df197d6213 Mon Sep 17 00:00:00 2001 From: ydcjeff Date: Mon, 16 Nov 2020 19:19:10 +0630 Subject: [PATCH 3/4] [docs] add suggestions, contrib engine docs and 45% width --- .../_templates/_static/css/ignite_theme.css | 27 ++++++++++++------- docs/source/contrib/engines.rst | 6 +++-- docs/source/engine.rst | 5 ++-- 3 files changed, 23 insertions(+), 15 deletions(-) diff --git a/docs/source/_templates/_static/css/ignite_theme.css b/docs/source/_templates/_static/css/ignite_theme.css index 1a4d967a9ad1..7b56fd4e9a8f 100644 --- a/docs/source/_templates/_static/css/ignite_theme.css +++ b/docs/source/_templates/_static/css/ignite_theme.css @@ -1,10 +1,9 @@ -article.pytorch-article table tr th:first-of-type, article.pytorch-article table tr td:first-of-type -{ +article.pytorch-article table tr th:first-of-type, +article.pytorch-article table tr td:first-of-type { width: 17px; } -div.container a.header-logo -{ +div.container a.header-logo { height: 80px; width: 160px; background-image: url("../img/ignite_logo.svg"); @@ -68,7 +67,8 @@ div.container a.header-logo text-decoration: none; } -.rst-versions .rst-current-version:after, .rst-versions .rst-current-version:before { +.rst-versions .rst-current-version:after, +.rst-versions .rst-current-version:before { display: table; content: ""; } @@ -79,7 +79,8 @@ div.container a.header-logo display: block; } -.rst-versions .rst-current-version .fa-book, .rst-versions .rst-current-version .icon-book { +.rst-versions .rst-current-version .fa-book, +.rst-versions .rst-current-version .icon-book { float: left; } @@ -87,7 +88,8 @@ div.container a.header-logo color: #454545; } -.rst-versions .rst-current-version .fa-book, .rst-versions .rst-current-version .icon-book { +.rst-versions .rst-current-version .fa-book, +.rst-versions .rst-current-version .icon-book { float: left; } @@ -114,7 +116,9 @@ div.container a.header-logo color: #ee4c2c; } -.fa:before, a .fa, li .fa { +.fa:before, +a .fa, +li .fa { text-decoration: inherit; } @@ -131,8 +135,11 @@ article.pytorch-article table.longtable.docutils.align-default colgroup { display: none; } -article.pytorch-article table.longtable.docutils.align-default tbody td:first-child { - width: 30%; +article.pytorch-article + table.longtable.docutils.align-default + tbody + td:first-child { + width: 45%; } article.pytorch-article table.longtable.docutils.align-default tbody td { diff --git a/docs/source/contrib/engines.rst b/docs/source/contrib/engines.rst index e223e17035a6..1d1bce0e0aeb 100644 --- a/docs/source/contrib/engines.rst +++ b/docs/source/contrib/engines.rst @@ -1,9 +1,9 @@ ignite.contrib.engines ====================== -Contribution module of engines and helper tools +Contribution module of engines and helper tools: -.. currentmodule:: ignite.contrib.engines +ignite.contrib.engines.tbptt .. currentmodule:: ignite.contrib.engines.tbptt @@ -11,6 +11,8 @@ Contribution module of engines and helper tools :nosignatures: :autolist: +ignite.contrib.engines.common + .. currentmodule:: ignite.contrib.engines.common .. autosummary:: diff --git a/docs/source/engine.rst b/docs/source/engine.rst index 5353415a7416..12d2f6a31641 100644 --- a/docs/source/engine.rst +++ b/docs/source/engine.rst @@ -19,7 +19,7 @@ ignite.engine.events :nosignatures: :autolist: -ignite.engine.deterministic +ignite.engine.deterministic (helper methods for deterministic training) .. currentmodule:: ignite.engine.deterministic @@ -27,7 +27,7 @@ ignite.engine.deterministic :nosignatures: :autolist: -and helper methods: +and helper methods to define supervised trainer and evaluator: .. currentmodule:: ignite.engine @@ -302,4 +302,3 @@ here: # handler synchronizes the random state torch.manual_seed(12) a = torch.rand(1) - From 6aaaa3ceb0769f082f7c9488e89dc731f0d04408 Mon Sep 17 00:00:00 2001 From: Jeff Yang Date: Mon, 16 Nov 2020 20:54:41 +0630 Subject: [PATCH 4/4] Update ignite_theme.css --- docs/source/_templates/_static/css/ignite_theme.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/_templates/_static/css/ignite_theme.css b/docs/source/_templates/_static/css/ignite_theme.css index 7b56fd4e9a8f..c05ac0917a06 100644 --- a/docs/source/_templates/_static/css/ignite_theme.css +++ b/docs/source/_templates/_static/css/ignite_theme.css @@ -139,7 +139,7 @@ article.pytorch-article table.longtable.docutils.align-default tbody td:first-child { - width: 45%; + width: 40%; } article.pytorch-article table.longtable.docutils.align-default tbody td {