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
72ea0623
"git@developer.sourcefind.cn:OpenDAS/torch-scatter.git" did not exist on "285514e650b45ff84f4aa6539f1c40a59ad6318e"
Commit
72ea0623
authored
Mar 19, 2017
by
Christopher Shallue
Browse files
Update the encoding instructions
parent
b78e63fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
skip_thoughts/README.md
skip_thoughts/README.md
+2
-2
No files found.
skip_thoughts/README.md
View file @
72ea0623
...
@@ -398,7 +398,7 @@ import numpy as np
...
@@ -398,7 +398,7 @@ import numpy as np
import
os.path
import
os.path
import
scipy.spatial.distance
as
sd
import
scipy.spatial.distance
as
sd
from
skip_thoughts
import
configuration
from
skip_thoughts
import
configuration
from
skip_thoughts
import
combined_encod
er
from
skip_thoughts
import
encoder_manag
er
In
[
1
]:
In
[
1
]:
# Set paths to the model.
# Set paths to the model.
...
@@ -415,7 +415,7 @@ In [2]:
...
@@ -415,7 +415,7 @@ In [2]:
# configuration.ModelConfig(bidirectional_encoder=True) and paths to the
# configuration.ModelConfig(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
=
combined_encoder
.
CombinedEncod
er
()
encoder
=
encoder_manager
.
EncoderManag
er
()
encoder
.
load_encoder
(
configuration
.
ModelConfig
(),
encoder
.
load_encoder
(
configuration
.
ModelConfig
(),
vocabulary_file
=
VOCAB_FILE
,
vocabulary_file
=
VOCAB_FILE
,
embedding_matrix_file
=
EMBEDDING_MATRIX_FILE
,
embedding_matrix_file
=
EMBEDDING_MATRIX_FILE
,
...
...
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