From 43874c2bb0c128fa195e8686fcbbadd9fe4501bd Mon Sep 17 00:00:00 2001 From: Janusz Lisiecki <39967756+JanuszL@users.noreply.github.com> Date: Tue, 4 Feb 2025 14:37:04 +0100 Subject: [PATCH] Remove redundant nvml::Shutdown from optical flow (#5804) - https://github.com/NVIDIA/DALI/pull/5317 moved to scop based nvml init and shutdown, but a redundant shutdown has been left in the optical flow destructor. This PR removes it. Signed-off-by: Janusz Lisiecki --- dali/operators/sequence/optical_flow/optical_flow.cc | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/dali/operators/sequence/optical_flow/optical_flow.cc b/dali/operators/sequence/optical_flow/optical_flow.cc index ea1c455ae8e..31a2d1c0607 100644 --- a/dali/operators/sequence/optical_flow/optical_flow.cc +++ b/dali/operators/sequence/optical_flow/optical_flow.cc @@ -55,7 +55,7 @@ The lower the speed, the more additional pre- and postprocessing is used to enha This operator produces the motion vector field at a coarser resolution than the input pixels. This parameter specifies the size of the pixel grid cell corresponding to one motion vector. For example, a value of 4 will produce one motion vector for each 4x4 pixel block. Hence, to -use optical flow with an `output_grid` of 4 to resample a full resolution image, the flow field +use optical flow with an `output_grid` of 4 to resample a full resolution image, the flow field is upsampled *without* scaling the vector quantities. .. note:: @@ -184,11 +184,4 @@ void OpticalFlow::RunImpl(Workspace &ws) { } } -template <> -OpticalFlow::~OpticalFlow() { -#if NVML_ENABLED - nvml::Shutdown(); -#endif -} - } // namespace dali