Divide column 'v' by each column of matrix M; write results into 'out'
| 1316 | |
| 1317 | /// Divide column 'v' by each column of matrix M; write results into 'out' |
| 1318 | void DivColumn(const Tensor &v, Tensor *M) { |
| 1319 | Tensor inv; |
| 1320 | TYPE_SWITCH(v.data_type(), DType, { inv = Div(DType(1), v); }); |
| 1321 | MultColumn(inv, M); |
| 1322 | } |
| 1323 | |
| 1324 | Tensor ConcatOn(const std::vector<Tensor> &in, int axis) { |
| 1325 | vector<Tensor> tmp; |