Divide row 'v' by each row of matrix M; write results into 'out'
| 1462 | |
| 1463 | /// Divide row 'v' by each row of matrix M; write results into 'out' |
| 1464 | void DivRow(const Tensor &v, Tensor *M) { |
| 1465 | Tensor inv; |
| 1466 | TYPE_SWITCH(v.data_type(), DType, { inv = Div(DType(1), v); }); |
| 1467 | MultRow(inv, M); |
| 1468 | } |
| 1469 | |
| 1470 | /// Multiply column 'v' and each column of matrix M; write results into 'out' |
| 1471 | void MultColumn(const Tensor &v, Tensor *M) { |