Skip to content

Commit 8c28175

Browse files
authored
Remove hardcoded PNG_FOUND define. (#3020)
1 parent b18a475 commit 8c28175

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

torchvision/csrc/cpu/image/readpng_cpu.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#include <ATen/ATen.h>
55
#include <string>
66

7-
#define PNG_FOUND 1
87
#if !PNG_FOUND
98
torch::Tensor decodePNG(const torch::Tensor& data, int64_t channels) {
109
TORCH_CHECK(false, "decodePNG: torchvision not compiled with libPNG support");

0 commit comments

Comments
 (0)