You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by jx...@apache.org on 2017/11/10 01:25:39 UTC

[incubator-mxnet] branch master updated: file not exist (#8596)

This is an automated email from the ASF dual-hosted git repository.

jxie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git


The following commit(s) were added to refs/heads/master by this push:
     new a9f11a0  file not exist (#8596)
a9f11a0 is described below

commit a9f11a07324345e9c0c5f33a768ed6a152c6db6d
Author: formath <ji...@163.com>
AuthorDate: Fri Nov 10 09:25:32 2017 +0800

    file not exist (#8596)
---
 example/sparse/get_data.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/example/sparse/get_data.py b/example/sparse/get_data.py
index e96fd80..19c635f 100644
--- a/example/sparse/get_data.py
+++ b/example/sparse/get_data.py
@@ -66,7 +66,7 @@ def get_movielens_iter(filename, batch_size, dummy_iter):
     user = []
     item = []
     score = []
-    with file(filename) as f:
+    with open(filename, 'r') as f:
         num_samples = 0
         for line in f:
             tks = line.strip().split('::')

-- 
To stop receiving notification emails like this one, please contact
['"commits@mxnet.apache.org" <co...@mxnet.apache.org>'].