too many warnings

This commit is contained in:
alexander-g 2021-03-11 20:08:18 +01:00
parent 1d1018fa0c
commit 70678e44ae
2 changed files with 6 additions and 3 deletions

View file

@ -27,7 +27,8 @@ Sequence::~Sequence()
{
KP_LOG_DEBUG("Kompute Sequence Destructor started");
this->destroy();
if (this->mDevice)
this->destroy();
}
void
@ -81,7 +82,8 @@ 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,8 @@ 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");
}