When I created a .densenet201pt from Torchvison using Torchscript and ran it on c++, I profiled it with nvprof and found that cudaStreamSyncronize() and cudaDeviceSyncronize() were called.
But I didn’t explicitly call those functions.
Where are these functions called?

nvprof828×458 114 KB