onnx_helpers/nodes/ops/pow.rs
1//! Pow operation.
2
3use crate::{builder, node_to_inner, nodes::Node};
4
5/// Pow node.
6pub struct Pow {
7 inner: Node,
8}
9
10impl Pow {
11 /// Creates new Pow operation.
12 #[inline(always)]
13 pub fn new<Lhs: Into<String>, Rhs: Into<String>>(lhs: Lhs, rhs: Rhs) -> Self {
14 Pow {
15 inner: builder::Node::new("Pow").input(lhs).input(rhs).build(),
16 }
17 }
18}
19
20node_to_inner!(Pow);