Hello, there is a problem with code reading in CUDAStream +32: LeakyStreamInternals objects need to be destroyed here, and cudaStream_t also needs to be released using cudaStreamDestroy(stream). It seems strange that the code and the comments are there.
Where is cudaStreamDestroy called that causes it to be destroyed repeatedly?
https://github.com/pytorch/pytorch/blob/master/c10/cuda/CUDAStream.cpp 2 +32