From 33665144699ec9d2dd16bc95ff8e985b7e8ca86a Mon Sep 17 00:00:00 2001 From: wxywb Date: Fri, 11 Aug 2023 14:23:26 +0800 Subject: [PATCH] Use bool to replace np.bool. Signed-off-by: wxywb --- tn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tn.py b/tn.py index 9464fe7..03283f5 100644 --- a/tn.py +++ b/tn.py @@ -110,7 +110,7 @@ def tn(sims: np.ndarray, # Constraints C3 if len(intermediate_rs) == 0: - C3 = np.ones(C2.shape, dtype=np.bool) + C3 = np.ones(C2.shape, dtype=bool) else: # "the equal sign" in C3 in paper is wrong because it's contradictory to C2 cond1 = intermediate_rs[None, :] > r_i[:, None]