Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
njzjz authored Sep 29, 2024
1 parent 13e85f7 commit d007f81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepmd/dpmodel/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__ = [
Expand Down

0 comments on commit d007f81

Please sign in to comment.