You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@singa.apache.org by "Moaz Reyad (JIRA)" <ji...@apache.org> on 2017/10/25 04:56:00 UTC
[jira] [Commented] (SINGA-332) Fix the bug of loading data in
train.py of cifar10
[ https://issues.apache.org/jira/browse/SINGA-332?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16218086#comment-16218086 ]
Moaz Reyad commented on SINGA-332:
----------------------------------
This bug happens only with Python 2.
The argument encoding='latin1' is required for Python 3, so it can't be removed.
Instead, the solution must work for both Python 2 and Python 3. For example:
{code}
try:
cifar10 = pickle.load(fd, encoding='latin1')
except TypeError:
cifar10 = pickle.load(fd)
{code}
> Fix the bug of loading data in train.py of cifar10
> --------------------------------------------------
>
> Key: SINGA-332
> URL: https://issues.apache.org/jira/browse/SINGA-332
> Project: Singa
> Issue Type: Bug
> Reporter: wentong
> Priority: Trivial
>
> In example cifar10, data couldn't be loaded due to encoding error.
> Fix by removing encoding='latin1' in line 50 of train.py.
> See the pull request.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)