Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
vision
Commits
8c281757
Unverified
Commit
8c281757
authored
Nov 18, 2020
by
Vasilis Vryniotis
Committed by
GitHub
Nov 18, 2020
Browse files
Remove hardcoded PNG_FOUND define. (#3020)
parent
b18a4757
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
1 deletion
+0
-1
torchvision/csrc/cpu/image/readpng_cpu.cpp
torchvision/csrc/cpu/image/readpng_cpu.cpp
+0
-1
No files found.
torchvision/csrc/cpu/image/readpng_cpu.cpp
View file @
8c281757
...
@@ -4,7 +4,6 @@
...
@@ -4,7 +4,6 @@
#include <ATen/ATen.h>
#include <ATen/ATen.h>
#include <string>
#include <string>
#define PNG_FOUND 1
#if !PNG_FOUND
#if !PNG_FOUND
torch
::
Tensor
decodePNG
(
const
torch
::
Tensor
&
data
,
int64_t
channels
)
{
torch
::
Tensor
decodePNG
(
const
torch
::
Tensor
&
data
,
int64_t
channels
)
{
TORCH_CHECK
(
false
,
"decodePNG: torchvision not compiled with libPNG support"
);
TORCH_CHECK
(
false
,
"decodePNG: torchvision not compiled with libPNG support"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment