Rename the method.

This commit is contained in:
laurent
2023-07-02 07:08:11 +01:00
parent c62cb73a7f
commit 4a28dcf828

View File

@ -67,7 +67,8 @@ impl PyTensor {
Ok(Self(Tensor::new(f, &Cpu).map_err(wrap_err)?)) Ok(Self(Tensor::new(f, &Cpu).map_err(wrap_err)?))
} }
fn scalar(&self, py: Python<'_>) -> PyResult<PyObject> { /// Gets the tensor data as a Python value/array/array of array/...
fn values(&self, py: Python<'_>) -> PyResult<PyObject> {
struct M<'a>(Python<'a>); struct M<'a>(Python<'a>);
impl<'a> MapDType for M<'a> { impl<'a> MapDType for M<'a> {
type Output = PyObject; type Output = PyObject;