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

@ -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");
}