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
0bd8e24d
Commit
0bd8e24d
authored
Mar 19, 2017
by
Chris Shallue
Committed by
GitHub
Mar 19, 2017
Browse files
Merge pull request #1217 from cshallue/master
Update the encoding instructions
parents
b78e63fd
8af6f0e2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
skip_thoughts/README.md
skip_thoughts/README.md
+8
-8
No files found.
skip_thoughts/README.md
View file @
0bd8e24d
...
...
@@ -398,7 +398,7 @@ import numpy as np
import
os.path
import
scipy.spatial.distance
as
sd
from
skip_thoughts
import
configuration
from
skip_thoughts
import
combined_encod
er
from
skip_thoughts
import
encoder_manag
er
In
[
1
]:
# Set paths to the model.
...
...
@@ -411,12 +411,12 @@ MR_DATA_DIR = "/dir/containing/mr/data"
In
[
2
]:
# Set up the encoder. Here we are using a single unidirectional model.
# To use a bidirectional model as well, call load_
enc
ode
r
() again with
# configuration.
M
odel
C
onfig(bidirectional_encoder=True) and paths to the
# To use a bidirectional model as well, call load_
m
ode
l
() again with
# configuration.
m
odel
_c
onfig(bidirectional_encoder=True) and paths to the
# bidirectional model's files. The encoder will use the concatenation of
# all loaded models.
encoder
=
combined_encoder
.
CombinedEncod
er
()
encoder
.
load_
enc
ode
r
(
configuration
.
M
odel
C
onfig
(),
encoder
=
encoder_manager
.
EncoderManag
er
()
encoder
.
load_
m
ode
l
(
configuration
.
m
odel
_c
onfig
(),
vocabulary_file
=
VOCAB_FILE
,
embedding_matrix_file
=
EMBEDDING_MATRIX_FILE
,
checkpoint_path
=
CHECKPOINT_PATH
)
...
...
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