move cuda logic to the cache to avoid caching gpu image features
move cuda logic to the cache to avoid caching gpu image features

facebookresearch/ParlAI,facebookresearch/ParlAI,facebookresearch/ParlAI,facebookresearch/ParlAI,facebookresearch/ParlAI