Skip to content

Conversation

@wanghaoshuang
Copy link
Contributor

mapper=default_mapper,
buffered_size=1024):
buffered_size=1024,
useXmap=True):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

useXmap -> use_xmap

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx.

download(LABEL_URL, 'flowers', LABEL_MD5),
download(SETID_URL, 'flowers', SETID_MD5), 'tstid', mapper,
buffered_size)
download(SETID_URL, 'flowers', SETID_MD5), 'trnid', mapper,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's better to add some comments why change the tstid to trnid.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok.

for w in workers:
w.start()

def xreader():
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm unfamiliar with this part, should we put xreader in another file?
decorator function take reader as input, and an enhanced feature function is returned. xreader is more likely a 1 reader n writer pool.

Copy link
Contributor Author

@wanghaoshuang wanghaoshuang Jun 29, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

xmap_readers is like map_readers in decorator.py. They are truly decorators.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

get it. LGTM.

1. rename 'useXmap' to 'use_xmap'
2. add comments about exchanging train data and test data
Copy link
Contributor

@qingqing01 qingqing01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LTGM.

@qingqing01 qingqing01 merged commit 9b1c04f into PaddlePaddle:develop Jun 29, 2017
@wanghaoshuang wanghaoshuang deleted the fix_xmap branch June 1, 2018 06:09
heavengate pushed a commit to heavengate/Paddle that referenced this pull request Aug 16, 2021
chen2016013 pushed a commit to chen2016013/Paddle that referenced this pull request Oct 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

过一个pass就停止不动了,内存占用着,但是cpu和gpu都为0了,就一直不动了 There is a bug on paddle.v2.dataset.flowers

3 participants