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
bddaf36d
"...targets/git@developer.sourcefind.cn:gaoqiong/migraphx.git" did not exist on "349249c11cdc73dfe52e4e7315655f8957fc41fa"
Unverified
Commit
bddaf36d
authored
Aug 23, 2022
by
Yuge Zhang
Committed by
GitHub
Aug 23, 2022
Browse files
Tutorial of searching in DARTS space (#5053)
parent
cbc6273a
Changes
24
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
5 deletions
+4
-5
pipelines/fast-test.yml
pipelines/fast-test.yml
+1
-1
test/algo/nas/test_cgo_engine.py
test/algo/nas/test_cgo_engine.py
+1
-1
test/algo/nas/test_lightning_trainer.py
test/algo/nas/test_lightning_trainer.py
+1
-2
test/algo/nas/test_space_hub.py
test/algo/nas/test_space_hub.py
+1
-1
No files found.
pipelines/fast-test.yml
View file @
bddaf36d
...
...
@@ -39,7 +39,7 @@ stages:
-
script
:
|
cd docs
rstcheck -r source \
--ignore-directives automodule,autoclass,autofunction,cardlinkitem,codesnippetcard,argparse,tabs,youtube \
--ignore-directives automodule,autoclass,autofunction,cardlinkitem,codesnippetcard,argparse,tabs,youtube
,image-sg
\
--ignore-roles githublink --ignore-substitutions release \
--report-level warning
displayName
:
rstcheck
...
...
test/algo/nas/test_cgo_engine.py
View file @
bddaf36d
...
...
@@ -139,7 +139,7 @@ class M_2_stem(nn.Module):
def
_reset
():
# this is to not affect other tests in sdk
nni
.
trial
.
_intermediate_seq
=
0
nni
.
trial
.
_params
=
{
'foo'
:
'bar'
,
'parameter_id'
:
0
}
nni
.
trial
.
_params
=
{
'foo'
:
'bar'
,
'parameter_id'
:
0
,
'parameters'
:
{}
}
nni
.
runtime
.
platform
.
test
.
_last_metric
=
None
nni
.
retiarii
.
integration_api
.
_advisor
=
None
nni
.
retiarii
.
execution
.
api
.
_execution_engine
=
None
...
...
test/algo/nas/test_lightning_trainer.py
View file @
bddaf36d
...
...
@@ -83,7 +83,7 @@ def _foo(model_cls):
def
_reset
():
# this is to not affect other tests in sdk
nni
.
trial
.
_intermediate_seq
=
0
nni
.
trial
.
_params
=
{
'foo'
:
'bar'
,
'parameter_id'
:
0
}
nni
.
trial
.
_params
=
{
'foo'
:
'bar'
,
'parameter_id'
:
0
,
'parameters'
:
{}
}
nni
.
runtime
.
platform
.
test
.
_last_metric
=
None
...
...
@@ -105,7 +105,6 @@ def test_mnist():
@
pytest
.
mark
.
skipif
(
pytorch_lightning
.
__version__
<
'1.0'
,
reason
=
'Incompatible APIs.'
)
def
test_diabetes
():
_reset
()
nni
.
trial
.
_params
=
{
'foo'
:
'bar'
,
'parameter_id'
:
0
}
nni
.
runtime
.
platform
.
test
.
_last_metric
=
None
train_dataset
=
DiabetesDataset
(
train
=
True
)
test_dataset
=
DiabetesDataset
(
train
=
False
)
...
...
test/algo/nas/test_space_hub.py
View file @
bddaf36d
...
...
@@ -25,7 +25,7 @@ pytestmark = pytest.mark.skipif(pytorch_lightning.__version__ < '1.0', reason='I
def
_reset
():
# this is to not affect other tests in sdk
nni
.
trial
.
_intermediate_seq
=
0
nni
.
trial
.
_params
=
{
'foo'
:
'bar'
,
'parameter_id'
:
0
}
nni
.
trial
.
_params
=
{
'foo'
:
'bar'
,
'parameter_id'
:
0
,
'parameters'
:
{}
}
nni
.
runtime
.
platform
.
test
.
_last_metric
=
None
...
...
Prev
1
2
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