Skip to main content

axpby_native_tensor

Function axpby_native_tensor 

Source
pub fn axpby_native_tensor(
    lhs: &Tensor,
    a: &BackendScalar,
    rhs: &Tensor,
    b: &BackendScalar,
) -> Result<Tensor, BridgeError>
Expand description

Compute a * lhs + b * rhs.

ยงErrors

Returns a BridgeError when lhs and rhs have different shapes, when the operands cannot be promoted to a common dtype, when the dtype is integer, bool, or external, or when the backend rejects the result.