From 7d18570da0a51b0551f55ea6e311605fb5186534 Mon Sep 17 00:00:00 2001 From: Mathieu Poumeyrol Date: Wed, 27 Mar 2024 16:37:48 +0100 Subject: [PATCH] clip --- core/src/ops/konst.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/ops/konst.rs b/core/src/ops/konst.rs index 97e2882f4b..b5a18ec7ea 100644 --- a/core/src/ops/konst.rs +++ b/core/src/ops/konst.rs @@ -63,7 +63,7 @@ impl TypedOp for Const { let op = if self.0.datum_type() == TDim::datum_type() { let mut tensor = self.0.clone().into_tensor(); for d in tensor.as_slice_mut::()? { - *d = d.eval(&values); + *d = d.eval(values); } Const(tensor.into_arc_tensor()) } else {