Skip to content

Conversation

xinghai-sun
Copy link
Contributor

resolve #110

No difference in the generated data, but with 6x speedup (reduce ~1.5 hours per pass).

window_ms=20.0,
max_freq=None,
specgram_type='linear',
num_threads=12,
Copy link
Contributor

@wanghaoshuang wanghaoshuang Jun 20, 2017

Choose a reason for hiding this comment

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

The default value of num_threads can be setted to multiprocessing.cpu_count()?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done. Thanks.

@xinghai-sun xinghai-sun merged commit a9c817c into PaddlePaddle:develop Jun 20, 2017
@xinghai-sun xinghai-sun deleted the ds2_threads branch June 20, 2017 10:26
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.

Add multi-threading support for DS2 data generator.

2 participants