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