diff --git a/src/tensor.cpp b/src/tensor.cpp index a52415e22..5e3407337 100644 --- a/src/tensor.cpp +++ b/src/tensor.cpp @@ -830,6 +830,7 @@ void TensorBase::compileSource(std::string source) { } content->module->setSource(source + "\n" + ss.str()); content->module->compile(); + setNeedsCompile(false); } TensorBase::HelperFuncsCache TensorBase::helperFunctions;