Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove redundant nvml::Shutdown from optical flow #5804

Merged
merged 1 commit into from
Feb 4, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions dali/operators/sequence/optical_flow/optical_flow.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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::
Expand Down Expand Up @@ -184,11 +184,4 @@ void OpticalFlow<GPUBackend>::RunImpl(Workspace &ws) {
}
}

template <>
OpticalFlow<GPUBackend>::~OpticalFlow() {
#if NVML_ENABLED
nvml::Shutdown();
#endif
}

} // namespace dali
Loading