From c22c4beff77fdd010e195ce97020c4c4a4ac6c76 Mon Sep 17 00:00:00 2001 From: Ayush Joshi Date: Wed, 16 Aug 2023 17:40:24 +0530 Subject: [PATCH] Remove redundant statement in `backends.numpy.experimental.statistical.cov` (#21397) Co-authored-by: @AnnaTz --- ivy/functional/backends/numpy/experimental/statistical.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/ivy/functional/backends/numpy/experimental/statistical.py b/ivy/functional/backends/numpy/experimental/statistical.py index 47c7cf9057b8b..dfbc65969bd40 100644 --- a/ivy/functional/backends/numpy/experimental/statistical.py +++ b/ivy/functional/backends/numpy/experimental/statistical.py @@ -376,9 +376,6 @@ def cov( aweights: Optional[np.ndarray] = None, dtype: Optional[np.dtype] = None, ) -> np.ndarray: - if fweights is not None: - fweights = fweights.astype(np.int64) - return np.cov( m=x1, y=x2,