to_numpy# class pinnx.utils.internal.to_numpy(tensors)[source]# Create numpy ndarrays that shares the same underlying storage, if possible. Parameters: Tensor. (tensors. A Tensor or a list of) Returns: A numpy ndarray or a list of numpy ndarray.