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
ModelZoo
ResNet50_tensorflow
Commits
cfdbdf10
Commit
cfdbdf10
authored
Jun 05, 2017
by
Neal Wu
Committed by
GitHub
Jun 05, 2017
Browse files
Merge pull request #1530 from xiangjinwu/patch-1
To pass test, add VariableV2 in _PSDeviceChooser
parents
2fa4bb61
01db54e5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
slim/deployment/model_deploy.py
slim/deployment/model_deploy.py
+1
-1
No files found.
slim/deployment/model_deploy.py
View file @
cfdbdf10
...
...
@@ -663,7 +663,7 @@ class DeploymentConfig(object):
if
op
.
device
:
return
op
.
device
node_def
=
op
if
isinstance
(
op
,
tf
.
NodeDef
)
else
op
.
node_def
if
node_def
.
op
==
'Variable'
:
if
node_def
.
op
.
startswith
(
'Variable'
)
:
t
=
self
.
_task
self
.
_task
=
(
self
.
_task
+
1
)
%
self
.
_tasks
d
=
'%s/task:%d'
%
(
self
.
_device
,
t
)
...
...
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