Thanks for your reply.And I change the code with your addvision,and the time cost on cpu and cuda have reduced largely, but they are still neally equal.
And the worse situation is ,the self time are wrong at same time.