Merge pull request #183 from alexander-g/lesswarnings
Too many warnings
This commit is contained in:
commit
50366c6658
2 changed files with 9 additions and 3 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue