pytorch-cpp
pytorch-cpp copied to clipboard
preprocess_batch might cause transfer to CPU, possible bug
Inspect the preprocess_batch
-- it might cause the transfer
to CPU in case we are working with GPU tensors.
Having fixed that will improve the performance.
https://github.com/warmspringwinds/pytorch-cpp/blob/master/src/pytorch.cpp#L1280