Skip to content

Commit

Permalink
Fix typo CUDNN_RETURN_IF_FAIL.
Browse files Browse the repository at this point in the history
  • Loading branch information
theflofly committed Feb 10, 2017
1 parent 714f9b7 commit 7fc9bb7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ node_modules
*.pyc
__pycache__
*.swp
.vscode/
4 changes: 2 additions & 2 deletions tensorflow/stream_executor/cuda/cuda_dnn.cc
Original file line number Diff line number Diff line change
Expand Up @@ -922,7 +922,7 @@ class CudnnRnnParamsDescriptor : public CudnnDescriptorCommon<void> {
const CudnnRnnDescriptor& rnn_desc);
~CudnnRnnParamsDescriptor() {
cudnnStatus_t status = wrap::cudnnDestroyFilterDescriptor(parent_, handle_);
CUDNN_RETURN_IF_FAIL(status, "Failed to destroy RNN filter desciptor");
CUDNN_RETURN_IF_FAIL(status, "Failed to destroy RNN filter descriptor");
}
cudnnFilterDescriptor_t handle() const {
if (!ok()) return nullptr;
Expand Down Expand Up @@ -1202,7 +1202,7 @@ class CudnnRnnSequenceTensorDescriptor
// Only the first one needs to be destroyed. All others are the same.
cudnnStatus_t status =
wrap::cudnnDestroyTensorDescriptor(parent_, handles_[0]);
CUDNN_RETURN_IF_FAIL(status, "Failed to destroy sequence tensor desciptor");
CUDNN_RETURN_IF_FAIL(status, "Failed to destroy sequence tensor descriptor");
}

const cudnnTensorDescriptor_t* handles() const {
Expand Down

0 comments on commit 7fc9bb7

Please sign in to comment.