From 9dc083d7073347d8436a58193999aee155d7ffa2 Mon Sep 17 00:00:00 2001 From: Mark Glines Date: Tue, 19 Jan 2021 09:42:38 -0500 Subject: [PATCH] Clear the needsCompile flag in tensor->compileSource() Fixes #366. --- src/tensor.cpp | 1 + 1 file changed, 1 insertion(+) 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;