Use arma::pow to use fast armadillo computation

This commit is contained in:
abh2k
2021-06-21 12:10:20 +05:30
committed by GitHub
parent 821a2f2712
commit 83207c4439
+2 -1
View File
@@ -195,9 +195,10 @@ class LpPooling
if (colidx >= 1)
val -= inputPre(rowEnd, colidx - 1);
output(i, j) = pow(val, 1.0 / normType);
output(i, j) = val;
}
}
output = arma::pow(output, 1.0 / normType);
}
/**