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
be9ac3a1
Commit
be9ac3a1
authored
Aug 29, 2016
by
Yunfeng Wang
Committed by
Martin Wicke
Aug 29, 2016
Browse files
typo fix (#333)
change `Assuming than` to `Assuming that`.
parent
25274f7c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
inception/inception/slim/README.md
inception/inception/slim/README.md
+2
-2
No files found.
inception/inception/slim/README.md
View file @
be9ac3a1
...
@@ -582,11 +582,11 @@ name to each graph variable. Consider the following example where the checkpoint
...
@@ -582,11 +582,11 @@ name to each graph variable. Consider the following example where the checkpoint
variables names are obtained via a simple function:
variables names are obtained via a simple function:
```
python
```
python
# Assuming tha
n
'conv1/weights' should be restored from 'vgg16/conv1/weights'
# Assuming tha
t
'conv1/weights' should be restored from 'vgg16/conv1/weights'
def
name_in_checkpoint
(
var
):
def
name_in_checkpoint
(
var
):
return
'vgg16/'
+
var
.
op
.
name
return
'vgg16/'
+
var
.
op
.
name
# Assuming tha
n
'conv1/weights' and 'conv1/bias' should be restored from 'conv1/params1' and 'conv1/params2'
# Assuming tha
t
'conv1/weights' and 'conv1/bias' should be restored from 'conv1/params1' and 'conv1/params2'
def
name_in_checkpoint
(
var
):
def
name_in_checkpoint
(
var
):
if
"weights"
in
var
.
op
.
name
:
if
"weights"
in
var
.
op
.
name
:
return
var
.
op
.
name
.
replace
(
"weights"
,
"params1"
)
return
var
.
op
.
name
.
replace
(
"weights"
,
"params1"
)
...
...
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