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
99945a88
Commit
99945a88
authored
Jan 12, 2017
by
DrZomgwtfbbq
Committed by
GitHub
Jan 12, 2017
Browse files
Updating Softmax bias comment
parent
91c7b91f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tutorials/embedding/word2vec.py
tutorials/embedding/word2vec.py
+1
-1
No files found.
tutorials/embedding/word2vec.py
View file @
99945a88
...
@@ -210,7 +210,7 @@ class Word2Vec(object):
...
@@ -210,7 +210,7 @@ class Word2Vec(object):
tf
.
zeros
([
opts
.
vocab_size
,
opts
.
emb_dim
]),
tf
.
zeros
([
opts
.
vocab_size
,
opts
.
emb_dim
]),
name
=
"sm_w_t"
)
name
=
"sm_w_t"
)
# Softmax bias: [
emb_dim
].
# Softmax bias: [
vocab_size
].
sm_b
=
tf
.
Variable
(
tf
.
zeros
([
opts
.
vocab_size
]),
name
=
"sm_b"
)
sm_b
=
tf
.
Variable
(
tf
.
zeros
([
opts
.
vocab_size
]),
name
=
"sm_b"
)
# Global step: scalar, i.e., shape [].
# Global step: scalar, i.e., shape [].
...
...
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