decode_png.h 348 Bytes
Newer Older
1
2
#pragma once

3
4
#include <torch/types.h>
#include "../image_read_mode.h"
5

6
7
8
9
namespace vision {
namespace image {

C10_EXPORT torch::Tensor decode_png(
10
    const torch::Tensor& data,
11
    ImageReadMode mode = IMAGE_READ_MODE_UNCHANGED,
12
13
    bool allow_16_bits = false,
    bool apply_exif_orientation = false);
14
15
16

} // namespace image
} // namespace vision