From f7fe09930414e703e847c147e55cc266397bc178 Mon Sep 17 00:00:00 2001 From: Giuseppe Franco Date: Fri, 3 Nov 2023 19:48:59 +0000 Subject: [PATCH] Fix for int property --- src/brevitas/quant_tensor/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/brevitas/quant_tensor/__init__.py b/src/brevitas/quant_tensor/__init__.py index 62f3a64b7..bdedede37 100644 --- a/src/brevitas/quant_tensor/__init__.py +++ b/src/brevitas/quant_tensor/__init__.py @@ -222,7 +222,7 @@ def contiguous(self): def int(self, float_datatype=False): if self.is_valid: - return self.value + return self.qt_value else: raise RuntimeError(f"QuantTensor not valid.") # if self.is_valid: