Removing unnecessary copies when copying data to device (#6390)
Removing unnecessary copies when copying data to device (#6390)

* Removing unnecessary copies when copying data to device

* Making python linter happy

* Really making pylint happy this time

* Using slice_axis

* Making pylint happy

Guneet-Dhillon/mxnet,Guneet-Dhillon/mxnet,Guneet-Dhillon/mxnet,Guneet-Dhillon/mxnet,Guneet-Dhillon/mxnet,Guneet-Dhillon/mxnet,Guneet-Dhillon/mxnet,Guneet-Dhillon/mxnet,Guneet-Dhillon/mxnet