Merge pull request #183 from alexander-g/lesswarnings

Too many warnings
This commit is contained in:
Alejandro Saucedo 2021-03-11 19:34:28 +00:00 committed by GitHub
commit 50366c6658
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 3 deletions

View file

@ -27,7 +27,9 @@ Sequence::~Sequence()
{
KP_LOG_DEBUG("Kompute Sequence Destructor started");
this->destroy();
if (this->mDevice) {
this->destroy();
}
}
void
@ -81,7 +83,9 @@ void
Sequence::clear()
{
KP_LOG_DEBUG("Kompute Sequence calling clear");
this->end();
if (this->isRecording()) {
this->end();
}
}
std::shared_ptr<Sequence>

View file

@ -28,7 +28,9 @@ Tensor::~Tensor()
KP_LOG_DEBUG("Kompute Tensor destructor started. Type: {}",
this->tensorType());
this->destroy();
if (this->mDevice) {
this->destroy();
}
KP_LOG_DEBUG("Kompute Tensor destructor success");
}