mirror of
https://github.com/huggingface/candle.git
synced 2025-06-20 04:00:28 +00:00
* Support for Sign operation #2641 * Apply rustfmt. --------- Co-authored-by: Laurent <laurent.mazare@gmail.com>
This commit is contained in:
@ -1944,6 +1944,12 @@ fn simple_eval_(
|
||||
|
||||
values.insert(node.output[0].clone(), out);
|
||||
}
|
||||
// https://onnx.ai/onnx/operators/onnx__Sign.html
|
||||
"Sign" => {
|
||||
let input = get(&node.input[0])?;
|
||||
let output = input.sign()?;
|
||||
values.insert(node.output[0].clone(), output);
|
||||
}
|
||||
op_type => bail!("unsupported op_type {op_type} for op {node:?}"),
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user