macro_rules! execute_with_dtype {
(float($dtype:expr), $element:ident, $op:expr) => { ... };
(float($lhs_dtype:expr, $rhs_dtype:expr), $element:ident, $op:expr) => { ... };
($dtype:expr, $element:ident, $op:expr) => { ... };
}Expand description
Macro to execute a kernel/operation for a given element type.
ยงPanics
Since there is no automatic type cast at this time, binary operations for different floating point precision data types will panic with a data type mismatch.