Unverified Commit bddaf36d authored by Yuge Zhang's avatar Yuge Zhang Committed by GitHub
Browse files

Tutorial of searching in DARTS space (#5053)

parent cbc6273a
......@@ -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
......
......@@ -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
......
......@@ -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)
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment