Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
BoxuanXu
/
FlaskDriverMXNet2SeetaNet
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit f2802772
authored
Aug 08, 2017
by
BoxuanXu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change insert sql
1 parent
e7196529
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
Drive_Converter.py
Drive_Converter.py
View file @
f280277
...
...
@@ -107,7 +107,7 @@ def update_pkg_info_db(modelid,sdk_fid,stmodel_fid):
#update pkg info table
logging
.
info
(
"begin insert model_id ,sdk_fid,mxnet_modelid into pkg_info table"
)
sql_cmd
=
"insert into seetaAtlas.pkg_info (modelid,sdk_fid,stmodel_fid) values("
+
str
(
modelid
)
+
",
\'
"
+
sdk_fid
+
"
\'
,
\'
"
+
stmodel_fid
+
"
\'
)"
sql_cmd
=
"insert i
gnore i
nto seetaAtlas.pkg_info (modelid,sdk_fid,stmodel_fid) values("
+
str
(
modelid
)
+
",
\'
"
+
sdk_fid
+
"
\'
,
\'
"
+
stmodel_fid
+
"
\'
)"
curl_atlas_exe
.
execute
(
sql_cmd
)
db_atlas
.
commit
()
...
...
@@ -134,7 +134,7 @@ def Dirver_Convert():
if
stmodel_fid
is
None
:
logging
.
info
(
"upload filed"
)
else
:
sdk_fid
=
"
group2/M00/00/04/wKgB61l-xXKARFT0AAANtlf6yRo13.json
"
sdk_fid
=
""
update_pkg_info_db
(
modelid
,
sdk_fid
,
stmodel_fid
)
#remove params file and graph file
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment