From d007f81c39afb7b47e4efd69d95280c76dfbd6ca Mon Sep 17 00:00:00 2001 From: Jinzhe Zeng Date: Sun, 29 Sep 2024 19:21:35 -0400 Subject: [PATCH] revert --- deepmd/dpmodel/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deepmd/dpmodel/common.py b/deepmd/dpmodel/common.py index 8391c56443..d9d57d2d6c 100644 --- a/deepmd/dpmodel/common.py +++ b/deepmd/dpmodel/common.py @@ -78,7 +78,7 @@ def to_numpy_array(x: Any) -> Optional[np.ndarray]: """ if x is None: return None - return np.from_dlpack(x) + return np.asarray(x) __all__ = [