Skip to content

Commit 7c5c014

Browse files
qlzh727Taylor Robie
authored and
Taylor Robie
committed
Fix typo in dataset. (tensorflow#4624)
1 parent 335dd53 commit 7c5c014

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

official/datasets/movielens.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def _transform_csv(input_path, output_path, names, skip_first, separator=","):
151151
separator: Character used to separate fields in the raw csv.
152152
"""
153153
if six.PY2:
154-
names = [n.decode("utf-u") for n in names]
154+
names = [n.decode("utf-8") for n in names]
155155

156156
with tf.gfile.Open(output_path, "wb") as f_out, \
157157
tf.gfile.Open(input_path, "rb") as f_in:

0 commit comments

Comments
 (0)