Skip to content

Commit

Permalink
Remove hardcoded PNG_FOUND define.
Browse files Browse the repository at this point in the history
  • Loading branch information
datumbox committed Nov 18, 2020
1 parent b18a475 commit 365f159
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion torchvision/csrc/cpu/image/readpng_cpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#include <ATen/ATen.h>
#include <string>

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

0 comments on commit 365f159

Please sign in to comment.