From d8eb22db58283a7f8e1bdb16115843777610190a Mon Sep 17 00:00:00 2001 From: Nicolas Hug Date: Wed, 27 Jan 2021 10:54:38 -0500 Subject: [PATCH] Renamed files (#3308) Co-authored-by: Vasilis Vryniotis --- .../cpu/{read_image_cpu.cpp => read_image_impl.cpp} | 6 +++--- .../cpu/{read_image_cpu.h => read_image_impl.h} | 0 ...d_write_file_cpu.cpp => read_write_file_impl.cpp} | 2 +- ...{read_write_file_cpu.h => read_write_file_impl.h} | 0 .../cpu/{readjpeg_cpu.cpp => readjpeg_impl.cpp} | 2 +- .../io/image/cpu/{readjpeg_cpu.h => readjpeg_impl.h} | 0 .../image/cpu/{readpng_cpu.cpp => readpng_impl.cpp} | 2 +- .../io/image/cpu/{readpng_cpu.h => readpng_impl.h} | 0 .../cpu/{writejpeg_cpu.cpp => writejpeg_impl.cpp} | 2 +- .../image/cpu/{writejpeg_cpu.h => writejpeg_impl.h} | 0 .../cpu/{writepng_cpu.cpp => writepng_impl.cpp} | 2 +- .../io/image/cpu/{writepng_cpu.h => writepng_impl.h} | 0 torchvision/csrc/io/image/image.h | 12 ++++++------ 13 files changed, 14 insertions(+), 14 deletions(-) rename torchvision/csrc/io/image/cpu/{read_image_cpu.cpp => read_image_impl.cpp} (91%) rename torchvision/csrc/io/image/cpu/{read_image_cpu.h => read_image_impl.h} (100%) rename torchvision/csrc/io/image/cpu/{read_write_file_cpu.cpp => read_write_file_impl.cpp} (98%) rename torchvision/csrc/io/image/cpu/{read_write_file_cpu.h => read_write_file_impl.h} (100%) rename torchvision/csrc/io/image/cpu/{readjpeg_cpu.cpp => readjpeg_impl.cpp} (99%) rename torchvision/csrc/io/image/cpu/{readjpeg_cpu.h => readjpeg_impl.h} (100%) rename torchvision/csrc/io/image/cpu/{readpng_cpu.cpp => readpng_impl.cpp} (99%) rename torchvision/csrc/io/image/cpu/{readpng_cpu.h => readpng_impl.h} (100%) rename torchvision/csrc/io/image/cpu/{writejpeg_cpu.cpp => writejpeg_impl.cpp} (99%) rename torchvision/csrc/io/image/cpu/{writejpeg_cpu.h => writejpeg_impl.h} (100%) rename torchvision/csrc/io/image/cpu/{writepng_cpu.cpp => writepng_impl.cpp} (99%) rename torchvision/csrc/io/image/cpu/{writepng_cpu.h => writepng_impl.h} (100%) diff --git a/torchvision/csrc/io/image/cpu/read_image_cpu.cpp b/torchvision/csrc/io/image/cpu/read_image_impl.cpp similarity index 91% rename from torchvision/csrc/io/image/cpu/read_image_cpu.cpp rename to torchvision/csrc/io/image/cpu/read_image_impl.cpp index d4c2bf0fdea..0301371485c 100644 --- a/torchvision/csrc/io/image/cpu/read_image_cpu.cpp +++ b/torchvision/csrc/io/image/cpu/read_image_impl.cpp @@ -1,7 +1,7 @@ -#include "read_image_cpu.h" +#include "read_image_impl.h" -#include "readjpeg_cpu.h" -#include "readpng_cpu.h" +#include "readjpeg_impl.h" +#include "readpng_impl.h" torch::Tensor decode_image(const torch::Tensor& data, ImageReadMode mode) { // Check that the input tensor dtype is uint8 diff --git a/torchvision/csrc/io/image/cpu/read_image_cpu.h b/torchvision/csrc/io/image/cpu/read_image_impl.h similarity index 100% rename from torchvision/csrc/io/image/cpu/read_image_cpu.h rename to torchvision/csrc/io/image/cpu/read_image_impl.h diff --git a/torchvision/csrc/io/image/cpu/read_write_file_cpu.cpp b/torchvision/csrc/io/image/cpu/read_write_file_impl.cpp similarity index 98% rename from torchvision/csrc/io/image/cpu/read_write_file_cpu.cpp rename to torchvision/csrc/io/image/cpu/read_write_file_impl.cpp index 8ecae99078c..ac29308d853 100644 --- a/torchvision/csrc/io/image/cpu/read_write_file_cpu.cpp +++ b/torchvision/csrc/io/image/cpu/read_write_file_impl.cpp @@ -1,4 +1,4 @@ -#include "read_write_file_cpu.h" +#include "read_write_file_impl.h" #ifdef _WIN32 #define WIN32_LEAN_AND_MEAN diff --git a/torchvision/csrc/io/image/cpu/read_write_file_cpu.h b/torchvision/csrc/io/image/cpu/read_write_file_impl.h similarity index 100% rename from torchvision/csrc/io/image/cpu/read_write_file_cpu.h rename to torchvision/csrc/io/image/cpu/read_write_file_impl.h diff --git a/torchvision/csrc/io/image/cpu/readjpeg_cpu.cpp b/torchvision/csrc/io/image/cpu/readjpeg_impl.cpp similarity index 99% rename from torchvision/csrc/io/image/cpu/readjpeg_cpu.cpp rename to torchvision/csrc/io/image/cpu/readjpeg_impl.cpp index 94121b4e78f..3c2a8808e3d 100644 --- a/torchvision/csrc/io/image/cpu/readjpeg_cpu.cpp +++ b/torchvision/csrc/io/image/cpu/readjpeg_impl.cpp @@ -1,4 +1,4 @@ -#include "readjpeg_cpu.h" +#include "readjpeg_impl.h" #if !JPEG_FOUND torch::Tensor decodeJPEG(const torch::Tensor& data, ImageReadMode mode) { diff --git a/torchvision/csrc/io/image/cpu/readjpeg_cpu.h b/torchvision/csrc/io/image/cpu/readjpeg_impl.h similarity index 100% rename from torchvision/csrc/io/image/cpu/readjpeg_cpu.h rename to torchvision/csrc/io/image/cpu/readjpeg_impl.h diff --git a/torchvision/csrc/io/image/cpu/readpng_cpu.cpp b/torchvision/csrc/io/image/cpu/readpng_impl.cpp similarity index 99% rename from torchvision/csrc/io/image/cpu/readpng_cpu.cpp rename to torchvision/csrc/io/image/cpu/readpng_impl.cpp index bb2d70b47cd..118651f2558 100644 --- a/torchvision/csrc/io/image/cpu/readpng_cpu.cpp +++ b/torchvision/csrc/io/image/cpu/readpng_impl.cpp @@ -1,4 +1,4 @@ -#include "readpng_cpu.h" +#include "readpng_impl.h" #if !PNG_FOUND torch::Tensor decodePNG(const torch::Tensor& data, ImageReadMode mode) { diff --git a/torchvision/csrc/io/image/cpu/readpng_cpu.h b/torchvision/csrc/io/image/cpu/readpng_impl.h similarity index 100% rename from torchvision/csrc/io/image/cpu/readpng_cpu.h rename to torchvision/csrc/io/image/cpu/readpng_impl.h diff --git a/torchvision/csrc/io/image/cpu/writejpeg_cpu.cpp b/torchvision/csrc/io/image/cpu/writejpeg_impl.cpp similarity index 99% rename from torchvision/csrc/io/image/cpu/writejpeg_cpu.cpp rename to torchvision/csrc/io/image/cpu/writejpeg_impl.cpp index 2787b19c447..46e0dde3b7c 100644 --- a/torchvision/csrc/io/image/cpu/writejpeg_cpu.cpp +++ b/torchvision/csrc/io/image/cpu/writejpeg_impl.cpp @@ -1,4 +1,4 @@ -#include "writejpeg_cpu.h" +#include "writejpeg_impl.h" #if !JPEG_FOUND diff --git a/torchvision/csrc/io/image/cpu/writejpeg_cpu.h b/torchvision/csrc/io/image/cpu/writejpeg_impl.h similarity index 100% rename from torchvision/csrc/io/image/cpu/writejpeg_cpu.h rename to torchvision/csrc/io/image/cpu/writejpeg_impl.h diff --git a/torchvision/csrc/io/image/cpu/writepng_cpu.cpp b/torchvision/csrc/io/image/cpu/writepng_impl.cpp similarity index 99% rename from torchvision/csrc/io/image/cpu/writepng_cpu.cpp rename to torchvision/csrc/io/image/cpu/writepng_impl.cpp index 515d0b85dc2..ec8fea24a61 100644 --- a/torchvision/csrc/io/image/cpu/writepng_cpu.cpp +++ b/torchvision/csrc/io/image/cpu/writepng_impl.cpp @@ -1,4 +1,4 @@ -#include "writejpeg_cpu.h" +#include "writejpeg_impl.h" #if !PNG_FOUND diff --git a/torchvision/csrc/io/image/cpu/writepng_cpu.h b/torchvision/csrc/io/image/cpu/writepng_impl.h similarity index 100% rename from torchvision/csrc/io/image/cpu/writepng_cpu.h rename to torchvision/csrc/io/image/cpu/writepng_impl.h diff --git a/torchvision/csrc/io/image/image.h b/torchvision/csrc/io/image/image.h index 12b93ae27f9..837c121b3ff 100644 --- a/torchvision/csrc/io/image/image.h +++ b/torchvision/csrc/io/image/image.h @@ -1,8 +1,8 @@ #pragma once -#include "cpu/read_image_cpu.h" -#include "cpu/read_write_file_cpu.h" -#include "cpu/readjpeg_cpu.h" -#include "cpu/readpng_cpu.h" -#include "cpu/writejpeg_cpu.h" -#include "cpu/writepng_cpu.h" +#include "cpu/read_image_impl.h" +#include "cpu/read_write_file_impl.h" +#include "cpu/readjpeg_impl.h" +#include "cpu/readpng_impl.h" +#include "cpu/writejpeg_impl.h" +#include "cpu/writepng_impl.h"