MCPcopy Create free account
hub / github.com/ciphermodelabs/ciphercore / pop_last_dim

Function pop_last_dim

ciphercore-base/src/ops/long_division.rs:315–318  ·  view source on GitHub ↗

Returns the array type with last dimension removed.

(shape: ArrayShape)

Source from the content-addressed store, hash-verified

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

Callers 2

newMethod · 0.85
adjust_negativeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected