From 1b7fa5ff17696b53069c03ce0c95c13939aafaa9 Mon Sep 17 00:00:00 2001 From: wanglusheng Date: Wed, 28 May 2025 17:44:32 +0800 Subject: [PATCH] fix the output will not change when running model more then once --- axengine/_axe.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/axengine/_axe.py b/axengine/_axe.py index 09f7e72..16baa5f 100644 --- a/axengine/_axe.py +++ b/axengine/_axe.py @@ -405,7 +405,7 @@ def run( self._io[0].pOutputs[i].pVirAddr, npy_size ), dtype=self.get_outputs(shape_group)[i].dtype, - ).reshape(self.get_outputs(shape_group)[i].shape) + ).reshape(self.get_outputs(shape_group)[i].shape).copy() name = self.get_outputs(shape_group)[i].name if name in output_names: outputs.append(npy)