MCPcopy Create free account
hub / github.com/apache/singa / DivRow

Function DivRow

src/core/tensor/tensor.cc:1464–1468  ·  view source on GitHub ↗

Divide row 'v' by each row of matrix M; write results into 'out'

Source from the content-addressed store, hash-verified

1462
1463/// Divide row 'v' by each row of matrix M; write results into 'out'
1464void 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'
1471void MultColumn(const Tensor &v, Tensor *M) {

Callers 3

TEST_FFunction · 0.85
ForwardMethod · 0.85
TrainFunction · 0.85

Calls 3

MultRowFunction · 0.85
data_typeMethod · 0.80
DivFunction · 0.70

Tested by 1

TEST_FFunction · 0.68