We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78338de commit 813622dCopy full SHA for 813622d
torchvision/csrc/io/image/cuda/encode_jpegs_cuda.cpp
@@ -251,7 +251,7 @@ torch::Tensor CUDAJpegEncoder::encode_jpeg(const torch::Tensor& src_image) {
251
nv_enc_state,
252
encoded_image.data_ptr<uint8_t>(),
253
&length,
254
- 0);
+ stream);
255
TORCH_CHECK(
256
status == NVJPEG_STATUS_SUCCESS,
257
"Failed to retrieve encoded image: ",
0 commit comments