mirror of
https://github.com/huggingface/candle.git
synced 2025-06-16 02:38:10 +00:00
Rename the method.
This commit is contained in:
@ -67,7 +67,8 @@ impl PyTensor {
|
||||
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>);
|
||||
impl<'a> MapDType for M<'a> {
|
||||
type Output = PyObject;
|
||||
|
Reference in New Issue
Block a user