Turns out the list comprehension on the GPU is actually even faster (vs
concatenating on CPU and sending the whole concat after)
**85ms:**
ims = [mxim.imread(batch_path + '/' +
pic).expand_dims(0).as_in_context(ctx) for pic in piclist]
ims = nd.concat(*ims, dim=0)
---
[Visit
Topic](https://discuss.mxnet.apache.org/t/reading-images-fast-list-comprehension-vs-for-loop/6660/2)
or reply to this email to respond.
You are receiving this because you enabled mailing list mode.
To unsubscribe from these emails, [click
here](https://discuss.mxnet.apache.org/email/unsubscribe/d1762205ef29633c368eaf03b55d0a2aa33cf7b5e74f9c2f3c4e308674595122).