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

Fix CuDNNLCNLayer Resource leak #6917

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
Fix CuDNNLCNLayer Resource leak
t-ubukata committed Mar 1, 2020

Verified

This commit was signed with the committer’s verified signature.
rock3r Sebastiano Poggi
commit d771689903e336fa4e3293c5f204520cb1d799f8
2 changes: 2 additions & 0 deletions src/caffe/layers/cudnn_lcn_layer.cpp
Original file line number Diff line number Diff line change
@@ -59,6 +59,8 @@ CuDNNLCNLayer<Dtype>::~CuDNNLCNLayer() {
cudnnDestroyTensorDescriptor(bottom_desc_);
cudnnDestroyTensorDescriptor(top_desc_);

cudnnDestroyLRNDescriptor(norm_desc_);

// destroy LRN handle
cudnnDestroy(handle_);