Realm

oa::matrix::bias_add

Add a bias matrix to another matrix elementwise using multidirectional broadcasting. Shapes use multidirectional broadcasting over at most eight axes. The call records device work and returns without a host wait. Errors Returns an error when the shape, dtype, ownership, allocation, or recording contract fails.

FnRust public API

Function Documentation

pub fn bias_add( left: &Matrix, right: &Matrix ) -> Result<Matrix>
Add a bias matrix to another matrix elementwise using multidirectional broadcasting. Shapes use multidirectional broadcasting over at most eight axes. The call records device work and returns without a host wait. Errors Returns an error when the shape, dtype, ownership, allocation, or recording contract fails.