Returns the array type with last dimension removed.
(shape: ArrayShape)
| 313 | |
| 314 | // Returns the array type with last dimension removed. |
| 315 | fn pop_last_dim(shape: ArrayShape) -> (ArrayShape, u64) { |
| 316 | let last = shape[shape.len() - 1]; |
| 317 | (shape[..shape.len() - 1].to_vec(), last) |
| 318 | } |
| 319 | |
| 320 | fn add_one(binary_num: Node) -> Result<Node> { |
| 321 | let dims = binary_num.get_type()?.get_dimensions(); |
no outgoing calls
no test coverage detected