styling issue resolved

This commit is contained in:
jeffinsam
2019-04-16 19:01:06 +05:30
parent 91bf020f77
commit a4bd68c36d
+2 -4
View File
@@ -30,8 +30,8 @@ template<typename InputType, typename OutputType>
void CReLU<InputDataType, OutputDataType>::Forward(
const InputType&& input, OutputType&& output)
{
output = arma::join_cols(arma::max(input, 0.0 * input),arma::max(
(-1 * input), 0.0 * input));
output = arma::join_cols(arma::max(input, 0.0 * input), arma::max(
(-1 * input), 0.0 * input));
}
template<typename InputDataType, typename OutputDataType>
@@ -39,8 +39,6 @@ template<typename DataType>
void CReLU<InputDataType, OutputDataType>::Backward(
const DataType&& input, DataType&& gy, DataType&& g)
{
//DataType derivative;
//Deriv(input, derivative);
DataType temp;
temp = gy % (input >= 0.0);
g = temp.rows(0, (input.n_rows / 2 - 1)) - temp.rows(input.n_rows / 2,