From 435ec90586ed262a8d7f87795b9975db3e1739e6 Mon Sep 17 00:00:00 2001 From: Anthony Date: Tue, 17 Dec 2024 15:46:17 -0500 Subject: [PATCH] pragma no cover --- mrmustard/math/backend_manager.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/mrmustard/math/backend_manager.py b/mrmustard/math/backend_manager.py index 87844375f..df909c307 100644 --- a/mrmustard/math/backend_manager.py +++ b/mrmustard/math/backend_manager.py @@ -430,7 +430,9 @@ def conj(self, array: Tensor) -> Tensor: except AttributeError: return fn(array) - def constraint_func(self, bounds: tuple[float | None, float | None]) -> Callable | None: + def constraint_func( + self, bounds: tuple[float | None, float | None] + ) -> Callable | None: # pragma: no cover r"""Returns a constraint function for the given bounds. A constraint function will clip the value to the interval given by the bounds. @@ -954,7 +956,7 @@ def pad( fn = self._get_fn("pad") return fn(array, paddings, mode, constant_values) - def pinv(self, matrix: Tensor) -> Tensor: + def pinv(self, matrix: Tensor) -> Tensor: # pragma: no cover r"""The pseudo-inverse of matrix. Args: @@ -1315,7 +1317,7 @@ def map_fn(self, func: Callable, elements: Tensor) -> Tensor: fn = self._get_fn("map_fn") return fn(func, elements) - def squeeze(self, tensor: Tensor, axis: list[int] | None) -> Tensor: + def squeeze(self, tensor: Tensor, axis: list[int] | None) -> Tensor: # pragma: no cover """Removes dimensions of size 1 from the shape of a tensor. Args: