Add the pow operator. (#1583)

* Add the pow operator.

* Support the pow operation in onnx.
This commit is contained in:
Laurent Mazare
2024-01-13 20:24:06 +01:00
committed by GitHub
parent 88618255cb
commit e6d86b0819
3 changed files with 31 additions and 3 deletions

View File

@ -254,6 +254,12 @@ pub fn simple_eval(
let output = input0.broadcast_div(input1)?;
values.insert(node.output[0].clone(), output);
}
"Pow" => {
let input0 = get(&node.input[0])?;
let input1 = get(&node.input[1])?;
let output = input0.broadcast_pow(input1)?;
values.insert(node.output[0].clone(), output);
}
"Equal" => {
let input0 = get(&node.input[0])?;
let input1 = get(&node.input[1])?;