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
6d829caa
Commit
6d829caa
authored
Mar 01, 2018
by
Scott Zhu
Browse files
Remove the default None for data_path, which is a required param.
parent
dcca6b44
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tutorials/rnn/ptb/reader.py
tutorials/rnn/ptb/reader.py
+1
-1
No files found.
tutorials/rnn/ptb/reader.py
View file @
6d829caa
...
...
@@ -52,7 +52,7 @@ def _file_to_word_ids(filename, word_to_id):
return
[
word_to_id
[
word
]
for
word
in
data
if
word
in
word_to_id
]
def
ptb_raw_data
(
data_path
=
None
):
def
ptb_raw_data
(
data_path
):
"""Load PTB raw data from data directory "data_path".
Reads PTB text files, converts strings to integer ids,
...
...
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