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
wangsen
paddle_dbnet
Commits
917118ae
"...rest_server/git@developer.sourcefind.cn:OpenDAS/nni.git" did not exist on "f98ee6721a2a9f16ee1bb39994e9a3480c0711aa"
Commit
917118ae
authored
Jul 06, 2021
by
LDOUBLEV
Browse files
set env
parent
10e3729f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
test/test.sh
test/test.sh
+2
-1
No files found.
test/test.sh
View file @
917118ae
...
@@ -136,6 +136,7 @@ for gpu in ${gpu_list[*]}; do
...
@@ -136,6 +136,7 @@ for gpu in ${gpu_list[*]}; do
env
=
""
env
=
""
elif
[
${#
gpu
}
-le
1
]
;
then
elif
[
${#
gpu
}
-le
1
]
;
then
env
=
"export CUDA_VISIBLE_DEVICES=
${
gpu
}
"
env
=
"export CUDA_VISIBLE_DEVICES=
${
gpu
}
"
eval
${
env
}
elif
[
${#
gpu
}
-le
15
]
;
then
elif
[
${#
gpu
}
-le
15
]
;
then
IFS
=
","
IFS
=
","
array
=(
${
gpu
}
)
array
=(
${
gpu
}
)
...
@@ -215,7 +216,7 @@ for gpu in ${gpu_list[*]}; do
...
@@ -215,7 +216,7 @@ for gpu in ${gpu_list[*]}; do
status_check
$?
"
${
export_cmd
}
"
"
${
status_log
}
"
status_check
$?
"
${
export_cmd
}
"
"
${
status_log
}
"
#run inference
#run inference
e
cho
$env
e
val
$env
save_infer_path
=
"
${
save_log
}
"
save_infer_path
=
"
${
save_log
}
"
func_inference
"
${
python
}
"
"
${
inference_py
}
"
"
${
save_infer_path
}
"
"
${
LOG_PATH
}
"
"
${
infer_img_dir
}
"
func_inference
"
${
python
}
"
"
${
inference_py
}
"
"
${
save_infer_path
}
"
"
${
LOG_PATH
}
"
"
${
infer_img_dir
}
"
done
done
...
...
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