Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
nni
Commits
fac7364a
Unverified
Commit
fac7364a
authored
Apr 11, 2022
by
Yuge Zhang
Committed by
GitHub
Apr 11, 2022
Browse files
Isolate toctree from overview (#4747)
parent
47c77363
Changes
63
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
16 deletions
+21
-16
docs/static/js/misc.js
docs/static/js/misc.js
+18
-14
docs/templates/relbar.html
docs/templates/relbar.html
+1
-1
nni/algorithms/hpo/pbt_tuner.py
nni/algorithms/hpo/pbt_tuner.py
+2
-1
No files found.
docs/static/js/misc.js
View file @
fac7364a
...
...
@@ -49,26 +49,30 @@ function expand_link() {
return
$
(
"
.md-nav__link--active
"
,
this
).
length
>=
1
;
}).
addClass
(
"
md-nav__expand--active
"
);
// bind click events
$
(
"
.md-nav__expand > a
"
).
click
(
function
(
e
)
{
if
(
window
.
matchMedia
(
"
only screen and (min-width: 76.2em)
"
).
matches
)
{
// not a drawer
e
.
preventDefault
();
function
toggleExpand
(
event
)
{
event
.
preventDefault
();
const
target
=
$
(
e
.
target
).
parent
();
if
(
target
.
hasClass
(
"
md-nav__expand--active
"
))
{
target
.
removeClass
(
"
md-nav__expand--active
"
);
}
else
{
target
.
addClass
(
"
md-nav__expand--active
"
);
}
$
(
event
.
target
)
.
closest
(
"
.md-nav__expand
"
)
.
toggleClass
(
"
md-nav__expand--active
"
);
return
false
;
}
return
true
;
// bind click events
$
(
"
.md-nav__expand > a
"
).
click
(
toggleExpand
);
$
(
"
.md-nav__expand > a > .md-nav__tocarrow
"
).
click
(
toggleExpand
);
}
// Propagate card link from another element
function
propagate_card_link
()
{
$
(
"
.card-link-clickable
"
).
each
(
function
()
{
$
(
this
).
attr
(
"
href
"
,
$
(
this
).
next
(
"
a.reference
"
).
attr
(
"
href
"
));
});
}
$
(
document
).
ready
(
function
()
{
hide_nav
();
expand_link
();
propagate_card_link
();
});
docs/templates/relbar.html
View file @
fac7364a
{%- if nav_bar_tabs and
(
pa
r
en
ts or theme_nav_links)
%}
{%- if nav_bar_tabs and pa
g
en
ame != 'index'
%}
<nav
class=
"md-tabs"
data-md-component=
"tabs"
>
<div
class=
"md-tabs__inner md-grid"
>
<ul
class=
"md-tabs__list"
>
...
...
nni/algorithms/hpo/pbt_tuner.py
View file @
fac7364a
...
...
@@ -191,7 +191,8 @@ class PBTTuner(Tuner):
1. **Provide checkpoint directory**. Since some trials need to load other trial's checkpoint,
users should provide a directory (i.e., ``all_checkpoint_dir``) which is accessible by every trial.
It is easy for local mode, users could directly use the default directory or specify any directory on the local machine.
For other training services, users should follow :doc:`the document of those training services <../experiment/training_service>`
For other training services, users should follow
:doc:`the document of those training services </experiment/training_service/shared_storage>`
to provide a directory in a shared storage, such as NFS, Azure storage.
2. **Modify your trial code**. Before running a step, a trial needs to load a checkpoint,
...
...
Prev
1
2
3
4
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment