mirror of
https://github.com/huggingface/candle.git
synced 2025-06-17 19:18:50 +00:00
Tensor mutability (#154)
* Working towards tensor mutability. * Use a ref-cell to provide tensor mutability.
This commit is contained in:
@ -155,6 +155,12 @@ pub enum Error {
|
||||
#[error(transparent)]
|
||||
SafeTensor(#[from] safetensors::SafeTensorError),
|
||||
|
||||
// Maybe we could have a more detailed error here, including the line of the function that
|
||||
// triggered this or some backtrace.
|
||||
/// Borrow error.
|
||||
#[error(transparent)]
|
||||
BorrowError(#[from] std::cell::BorrowError),
|
||||
|
||||
#[error("unsupported safetensor dtype {0:?}")]
|
||||
UnsupportedSafeTensorDtype(safetensors::Dtype),
|
||||
|
||||
|
Reference in New Issue
Block a user