mirror of
https://github.com/huggingface/candle.git
synced 2025-06-16 18:48:51 +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)?))
|
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;
|
||||||
|
Reference in New Issue
Block a user