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
2fbf725f
Unverified
Commit
2fbf725f
authored
Apr 22, 2021
by
SparkSnail
Committed by
GitHub
Apr 22, 2021
Browse files
Fix NAS unittest (#3559)
parent
78fc0624
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
test/scripts/nas.sh
test/scripts/nas.sh
+4
-4
No files found.
test/scripts/nas.sh
View file @
2fbf725f
...
@@ -7,7 +7,7 @@ echo "===========================Testing: NAS==========================="
...
@@ -7,7 +7,7 @@ echo "===========================Testing: NAS==========================="
EXAMPLE_DIR
=
${
CWD
}
/../examples/nas
EXAMPLE_DIR
=
${
CWD
}
/../examples/nas
echo
"testing nnictl ss_gen (classic nas)..."
echo
"testing nnictl ss_gen (classic nas)..."
cd
$EXAMPLE_DIR
/classic_nas
cd
$EXAMPLE_DIR
/
legacy/
classic_nas
SEARCH_SPACE_JSON
=
nni_auto_gen_search_space.json
SEARCH_SPACE_JSON
=
nni_auto_gen_search_space.json
if
[
-f
$SEARCH_SPACE_JSON
]
;
then
if
[
-f
$SEARCH_SPACE_JSON
]
;
then
rm
$SEARCH_SPACE_JSON
rm
$SEARCH_SPACE_JSON
...
@@ -19,12 +19,12 @@ if [ ! -f $SEARCH_SPACE_JSON ]; then
...
@@ -19,12 +19,12 @@ if [ ! -f $SEARCH_SPACE_JSON ]; then
fi
fi
echo
"testing darts..."
echo
"testing darts..."
cd
$EXAMPLE_DIR
/darts
cd
$EXAMPLE_DIR
/
oneshot/
darts
python3 search.py
--epochs
1
--channels
2
--layers
4
python3 search.py
--epochs
1
--channels
2
--layers
4
python3 retrain.py
--arc-checkpoint
./checkpoint.json
--layers
4
--epochs
1
python3 retrain.py
--arc-checkpoint
./checkpoint.json
--layers
4
--epochs
1
echo
"testing enas..."
echo
"testing enas..."
cd
$EXAMPLE_DIR
/enas
cd
$EXAMPLE_DIR
/
oneshot/
enas
python3 search.py
--search-for
macro
--epochs
1
python3 search.py
--search-for
macro
--epochs
1
python3 search.py
--search-for
micro
--epochs
1
python3 search.py
--search-for
micro
--epochs
1
...
@@ -34,5 +34,5 @@ python3 search.py --search-for micro --epochs 1
...
@@ -34,5 +34,5 @@ python3 search.py --search-for micro --epochs 1
#python3 train.py
#python3 train.py
echo
"testing pdarts..."
echo
"testing pdarts..."
cd
$EXAMPLE_DIR
/pdarts
cd
$EXAMPLE_DIR
/
legacy/
pdarts
python3 search.py
--epochs
1
--channels
4
--nodes
2
--log-frequency
10
--add_layers
0
--add_layers
1
--dropped_ops
3
--dropped_ops
3
python3 search.py
--epochs
1
--channels
4
--nodes
2
--log-frequency
10
--add_layers
0
--add_layers
1
--dropped_ops
3
--dropped_ops
3
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