Skip to main content

from_elementwise_with

Function from_elementwise_with 

Source
pub fn from_elementwise_with(
    spec: &ElementwiseSpec,
    names: &ElementwiseNames,
    fills: (&Fill, &Fill),
    float_hint: bool,
    shape: (usize, usize),
    target: &SpatialTarget,
) -> Result<SpatialProgram, SpatialReject>
Expand description

The same, told whether the operands are float even when neither carries a recognized fill — which is every activation inside a composition. Without it a target that offers an integer elementwise datapath would take it for a pair of tensors that hold bf16 model activations.