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
f5712d0c
Commit
f5712d0c
authored
Dec 27, 2016
by
Neal Wu
Browse files
Replaced direct path concatenation with os.path.join
parent
706f7333
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
tutorials/embedding/word2vec.py
tutorials/embedding/word2vec.py
+1
-1
tutorials/embedding/word2vec_optimized.py
tutorials/embedding/word2vec_optimized.py
+1
-1
No files found.
tutorials/embedding/word2vec.py
View file @
f5712d0c
...
...
@@ -42,7 +42,7 @@ from six.moves import xrange # pylint: disable=redefined-builtin
import
numpy
as
np
import
tensorflow
as
tf
word2vec
=
tf
.
load_op_library
(
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
))
+
'
/
word2vec_ops.so'
)
word2vec
=
tf
.
load_op_library
(
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
))
,
'word2vec_ops.so'
)
)
flags
=
tf
.
app
.
flags
...
...
tutorials/embedding/word2vec_optimized.py
View file @
f5712d0c
...
...
@@ -41,7 +41,7 @@ from six.moves import xrange # pylint: disable=redefined-builtin
import
numpy
as
np
import
tensorflow
as
tf
word2vec
=
tf
.
load_op_library
(
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
))
+
'
/
word2vec_ops.so'
)
word2vec
=
tf
.
load_op_library
(
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
))
,
'word2vec_ops.so'
)
)
flags
=
tf
.
app
.
flags
...
...
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