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
8af6f0e2
"torchvision/vscode:/vscode.git/clone" did not exist on "bf843c664b8ba0ff49d2921237500c77d82f2d04"
Commit
8af6f0e2
authored
Mar 19, 2017
by
Christopher Shallue
Browse files
Update the encoding instructions
parent
72ea0623
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
skip_thoughts/README.md
skip_thoughts/README.md
+6
-6
No files found.
skip_thoughts/README.md
View file @
8af6f0e2
...
@@ -411,15 +411,15 @@ MR_DATA_DIR = "/dir/containing/mr/data"
...
@@ -411,15 +411,15 @@ MR_DATA_DIR = "/dir/containing/mr/data"
In
[
2
]:
In
[
2
]:
# Set up the encoder. Here we are using a single unidirectional model.
# 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
# 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
# configuration.
m
odel
_c
onfig(bidirectional_encoder=True) and paths to the
# bidirectional model's files. The encoder will use the concatenation of
# bidirectional model's files. The encoder will use the concatenation of
# all loaded models.
# all loaded models.
encoder
=
encoder_manager
.
EncoderManager
()
encoder
=
encoder_manager
.
EncoderManager
()
encoder
.
load_
enc
ode
r
(
configuration
.
M
odel
C
onfig
(),
encoder
.
load_
m
ode
l
(
configuration
.
m
odel
_c
onfig
(),
vocabulary_file
=
VOCAB_FILE
,
vocabulary_file
=
VOCAB_FILE
,
embedding_matrix_file
=
EMBEDDING_MATRIX_FILE
,
embedding_matrix_file
=
EMBEDDING_MATRIX_FILE
,
checkpoint_path
=
CHECKPOINT_PATH
)
checkpoint_path
=
CHECKPOINT_PATH
)
In
[
3
]:
In
[
3
]:
# Load the movie review dataset.
# Load the movie review dataset.
...
...
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