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

Function preprocess_inputs

ciphercore-base/src/ops/comparisons.rs:365–370  ·  view source on GitHub ↗
(signed_comparison: bool, a: Node, b: Node)

Source from the content-addressed store, hash-verified

363}
364
365fn preprocess_inputs(signed_comparison: bool, a: Node, b: Node) -> Result<(Node, Node)> {
366 let (a, b) = expand_to_same_dims(a, b)?;
367 let a = preprocess_input(signed_comparison, a)?;
368 let b = preprocess_input(signed_comparison, b)?;
369 Ok((a, b))
370}
371
372/// This function validates if the `arguments_types` are suitable for the
373/// intended signed custom operation. E.g. there should be at least `2` bits

Callers 1

Calls 2

expand_to_same_dimsFunction · 0.85
preprocess_inputFunction · 0.85

Tested by

no test coverage detected