enforce gpu_contiguous in imgacts & weightacts