mirror of
https://github.com/huggingface/candle.git
synced 2025-06-17 11:08:52 +00:00
Get the cpu tests to run.
This commit is contained in:
@ -317,6 +317,7 @@ impl Tensor {
|
||||
unary_op!(sqrt, Sqrt);
|
||||
unary_op!(gelu, Gelu);
|
||||
unary_op!(relu, Relu);
|
||||
|
||||
pub fn to_scalar<S: crate::WithDType>(&self) -> Result<S> {
|
||||
if self.rank() != 0 {
|
||||
return Err(Error::UnexpectedNumberOfDims {
|
||||
|
Reference in New Issue
Block a user