diff --git a/src/Algorithm.cpp b/src/Algorithm.cpp index 48968b232..528e86058 100644 --- a/src/Algorithm.cpp +++ b/src/Algorithm.cpp @@ -149,6 +149,7 @@ Algorithm::createParameters(std::vector>& tensorParams) this->mDescriptorPool = std::make_shared(); this->mDevice->createDescriptorPool( &descriptorPoolInfo, nullptr, this->mDescriptorPool.get()); + this->mFreeDescriptorPool = true; std::vector descriptorSetBindings; for (size_t i = 0; i < tensorParams.size(); i++) {