2789 Add ToDevice transform#2791
Conversation
|
/black |
Signed-off-by: Nic Ma <[email protected]>
|
/black |
Signed-off-by: Nic Ma <[email protected]>
Hi @rijobro , Thanks for your review. Thanks. |
|
If you guys think |
I'm not familiar with this option, @dongyang0122 any idea? |
The transform is helpful and necessary to enable GPU-based data pre-processing or augmentation. The computing efficiency will be greatly improved. |
|
thanks @dongyang0122 , the |
|
Hi @wyli , As the doc said: "When non_blocking, tries to convert asynchronously with respect to the host if possible, e.g., converting a CPU Tensor with pinned memory to a CUDA Tensor. " Thanks. |
|
thanks @Nic-Ma, sounds good |
Signed-off-by: Nic Ma <[email protected]>
|
/black |
Fixes #2789 .
Description
This PR added the
ToDevicetransform.Status
Ready
Types of changes
./runtests.sh -f -u --net --coverage../runtests.sh --quick --unittests.make htmlcommand in thedocs/folder.