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

Function reduce_mul

ciphercore-base/src/ops/utils.rs:308–310  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.
308pub 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:

Callers 2

onehotFunction · 0.85

Calls 3

custom_reduceFunction · 0.85
pull_out_bitsFunction · 0.85
multiplyMethod · 0.45

Tested by

no test coverage detected