Skip to main content

scale_native_tensor

Function scale_native_tensor 

Source
pub fn scale_native_tensor(
    tensor: &Tensor,
    scalar: &BackendScalar,
) -> Result<Tensor, BridgeError>
Expand description

Multiply a native tensor by a dynamic scalar.

ยงErrors

Returns an error when the native scaling fails (a backend or dtype mismatch failure).