Similar to `Sum`, but for multiplication. Reduces over the last dimension. The use-case where it makes the most sense is when the type is BIT.
(node: Node)
| 306 | /// Similar to `Sum`, but for multiplication. Reduces over the last dimension. |
| 307 | /// The use-case where it makes the most sense is when the type is BIT. |
| 308 | pub fn reduce_mul(node: Node) -> Result<Node> { |
| 309 | custom_reduce(pull_out_bits(node)?, |first, second| first.multiply(second)) |
| 310 | } |
| 311 | |
| 312 | // One-hot encoding |
| 313 | // Inputs: |
no test coverage detected