SET/P use_gpu="Use GPU or not(Y/N), default: N =======>"
)
if/i "%use_gpu%"=="Y"(
setuse_gpu=Y
)else(
setuse_gpu=N
)
rem set_path_vs_command_prompt
:set_vcvarsall_dir
SET/P vcvarsall_dir="Please input the path of visual studio command Prompt, such as C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat =======>"
settmp_var=!vcvarsall_dir!
call:remove_space
setvcvarsall_dir=!tmp_var!
IFNOTEXIST"%vcvarsall_dir%"(
echo"------------%vcvarsall_dir% not exist------------"
gotoset_vcvarsall_dir
)
rem set_demo_name
:set_demo_name
SET/P demo_name="Please input the demo name, default: windows_mobilenet =======>"
if"%demo_name%"==""setdemo_name=windows_mobilenet
IFNOTEXIST"%source_path%\%demo_name%.cc"(
echo"------------%source_path%\%demo_name%.cc not exist------------"