Fix typo CUDNN_RETURN_IF_FAIL.
This commit is contained in:
parent
714f9b74b5
commit
7fc9bb7e26
1
.gitignore
vendored
1
.gitignore
vendored
@ -13,3 +13,4 @@ node_modules
|
|||||||
*.pyc
|
*.pyc
|
||||||
__pycache__
|
__pycache__
|
||||||
*.swp
|
*.swp
|
||||||
|
.vscode/
|
@ -922,7 +922,7 @@ class CudnnRnnParamsDescriptor : public CudnnDescriptorCommon<void> {
|
|||||||
const CudnnRnnDescriptor& rnn_desc);
|
const CudnnRnnDescriptor& rnn_desc);
|
||||||
~CudnnRnnParamsDescriptor() {
|
~CudnnRnnParamsDescriptor() {
|
||||||
cudnnStatus_t status = wrap::cudnnDestroyFilterDescriptor(parent_, handle_);
|
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 {
|
cudnnFilterDescriptor_t handle() const {
|
||||||
if (!ok()) return nullptr;
|
if (!ok()) return nullptr;
|
||||||
@ -1202,7 +1202,7 @@ class CudnnRnnSequenceTensorDescriptor
|
|||||||
// Only the first one needs to be destroyed. All others are the same.
|
// Only the first one needs to be destroyed. All others are the same.
|
||||||
cudnnStatus_t status =
|
cudnnStatus_t status =
|
||||||
wrap::cudnnDestroyTensorDescriptor(parent_, handles_[0]);
|
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 {
|
const cudnnTensorDescriptor_t* handles() const {
|
||||||
|
Loading…
Reference in New Issue
Block a user