Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
MaybeShewill-CV committed Nov 10, 2023
1 parent f3ace90 commit cd35216
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/models/feature_point/lightglue.inl
Original file line number Diff line number Diff line change
Expand Up @@ -848,13 +848,13 @@ StatusCode LightGlue<INPUT, OUTPUT>::Impl::setup_device_memory() {
auto& engine = _m_trt_params.engine;

// clear device memory
// for (auto& node_memo : device_memory) {
// auto& node_ptr = node_memo.second;
// if (nullptr != node_ptr) {
// cudaFree(node_ptr);
// node_ptr = nullptr;
// }
// }
for (auto& node_memo : device_memory) {
auto& node_ptr = node_memo.second;
if (nullptr != node_ptr) {
cudaFree(node_ptr);
node_ptr = nullptr;
}
}

// init input node memory
for (auto& node_name : {"image0", "image1"}) {
Expand Down

0 comments on commit cd35216

Please sign in to comment.