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

View file

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