Skip to content

Commit

Permalink
Update if nvjpeg not found
Browse files Browse the repository at this point in the history
  • Loading branch information
deekay42 committed Jun 5, 2024
1 parent 62e072a commit 7aef769
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchvision/csrc/io/image/cuda/encode_jpegs_cuda.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "encode_jpegs_cuda.h"
#if !NVJPEG_FOUND
std::vector<torch::Tensor> encode_jpegs_cuda(
const std::vector<torch::Tensor>& images,
const std::vector<torch::Tensor>& decoded_images,
const int64_t quality) {
TORCH_CHECK(
false, "encode_jpegs_cuda: torchvision not compiled with nvJPEG support");
Expand Down

0 comments on commit 7aef769

Please sign in to comment.