writepng_cpu.h 139 Bytes
Newer Older
1
2
3
4
5
6
7
#pragma once

#include <torch/torch.h>

C10_EXPORT torch::Tensor encodePNG(
    const torch::Tensor& data,
    int64_t compression_level);