From d334eee12e11a5c40d347c61e2361ec450e69cca Mon Sep 17 00:00:00 2001 From: Joao Gomes Date: Wed, 12 Oct 2022 15:47:51 +0100 Subject: [PATCH 01/16] add tensor as optional param --- torchvision/csrc/io/video/video.cpp | 4 ++-- torchvision/csrc/io/video/video.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/torchvision/csrc/io/video/video.cpp b/torchvision/csrc/io/video/video.cpp index 38b35014595..51cfa8d1703 100644 --- a/torchvision/csrc/io/video/video.cpp +++ b/torchvision/csrc/io/video/video.cpp @@ -156,7 +156,7 @@ void Video::_getDecoderParams( } // _get decoder params -Video::Video(std::string videoPath, std::string stream, int64_t numThreads) { +Video::Video(std::string videoPath, std::string stream, int64_t numThreads, torch::Tensor) { C10_LOG_API_USAGE_ONCE("torchvision.csrc.io.video.video.Video"); // set number of threads global numThreads_ = numThreads; @@ -344,7 +344,7 @@ std::tuple Video::Next() { static auto registerVideo = torch::class_