From 4711665edba9f16d47b35aa2d8bf8d4b5d0fbc77 Mon Sep 17 00:00:00 2001 From: Jeremy Reizenstein Date: Wed, 20 Jan 2021 13:06:46 -0800 Subject: [PATCH] lint Summary: Fix recent lint. Reviewed By: nikhilaravi Differential Revision: D25900168 fbshipit-source-id: 6b6e8d35b68c8415ef305dc4719f43eda9316c8f --- pytorch3d/csrc/utils/dispatch.cuh | 24 ++++++++++++++++-------- tests/bm_raysampling.py | 4 ++-- 2 files changed, 18 insertions(+), 10 deletions(-) diff --git a/pytorch3d/csrc/utils/dispatch.cuh b/pytorch3d/csrc/utils/dispatch.cuh index 001a09e3..d759576d 100644 --- a/pytorch3d/csrc/utils/dispatch.cuh +++ b/pytorch3d/csrc/utils/dispatch.cuh @@ -93,7 +93,8 @@ namespace { // and increment it via template recursion until it is equal to the run-time // argument N. template < - template class Kernel, + template + class Kernel, typename T, int64_t minN, int64_t maxN, @@ -117,7 +118,8 @@ struct DispatchKernelHelper1D { // 1D dispatch: Specialization when curN == maxN // We need this base case to avoid infinite template recursion. template < - template class Kernel, + template + class Kernel, typename T, int64_t minN, int64_t maxN, @@ -137,7 +139,8 @@ struct DispatchKernelHelper1D { // the run-time values of N and M, at which point we dispatch to the run // method of the kernel. template < - template class Kernel, + template + class Kernel, typename T, int64_t minN, int64_t maxN, @@ -194,7 +197,8 @@ struct DispatchKernelHelper2D { // 2D dispatch, specialization for curN == maxN template < - template class Kernel, + template + class Kernel, typename T, int64_t minN, int64_t maxN, @@ -233,7 +237,8 @@ struct DispatchKernelHelper2D< // 2D dispatch, specialization for curM == maxM template < - template class Kernel, + template + class Kernel, typename T, int64_t minN, int64_t maxN, @@ -272,7 +277,8 @@ struct DispatchKernelHelper2D< // 2D dispatch, specialization for curN == maxN, curM == maxM template < - template class Kernel, + template + class Kernel, typename T, int64_t minN, int64_t maxN, @@ -301,7 +307,8 @@ struct DispatchKernelHelper2D< // This is the function we expect users to call to dispatch to 1D functions template < - template class Kernel, + template + class Kernel, typename T, int64_t minN, int64_t maxN, @@ -317,7 +324,8 @@ void DispatchKernel1D(const int64_t N, Args... args) { // This is the function we expect users to call to dispatch to 2D functions template < - template class Kernel, + template + class Kernel, typename T, int64_t minN, int64_t maxN, diff --git a/tests/bm_raysampling.py b/tests/bm_raysampling.py index b971158c..dae173f2 100644 --- a/tests/bm_raysampling.py +++ b/tests/bm_raysampling.py @@ -4,11 +4,11 @@ import itertools from fvcore.common.benchmark import benchmark from pytorch3d.renderer import ( + FoVOrthographicCameras, + FoVPerspectiveCameras, GridRaysampler, MonteCarloRaysampler, NDCGridRaysampler, - FoVOrthographicCameras, - FoVPerspectiveCameras, OrthographicCameras, PerspectiveCameras, )