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

Function DivColumn

src/core/tensor/tensor.cc:1318–1322  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1316
1317/// Divide column 'v' by each column of matrix M; write results into 'out'
1318void 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
1324Tensor ConcatOn(const std::vector<Tensor> &in, int axis) {
1325 vector<Tensor> tmp;

Callers 2

TEST_FFunction · 0.85
Cpp>Method · 0.85

Calls 3

MultColumnFunction · 0.85
data_typeMethod · 0.80
DivFunction · 0.70

Tested by 1

TEST_FFunction · 0.68