Converts (individual) bits to 0/1 in arithmetic form.
(node: Node, st: ScalarType)
| 154 | |
| 155 | /// Converts (individual) bits to 0/1 in arithmetic form. |
| 156 | pub fn single_bit_to_arithmetic(node: Node, st: ScalarType) -> Result<Node> { |
| 157 | let g = node.get_graph(); |
| 158 | g.ones(scalar_type(st))?.mixed_multiply(node) |
| 159 | } |
| 160 | |
| 161 | /// Similar to `numpy.expand_dims` `<https://numpy.org/doc/stable/reference/generated/numpy.expand_dims.html>`. |
| 162 | /// |
no test coverage detected