Skip to content

Commit

Permalink
Const methods cannot return non-const values
Browse files Browse the repository at this point in the history
  • Loading branch information
theSundayProgrammer committed Mar 2, 2016
1 parent ba15e5a commit ac67380
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/mlpack/methods/ann/layer/softmax_layer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,17 +69,17 @@ class SoftmaxLayer
}

//! Get the input parameter.
InputDataType& InputParameter() const { return inputParameter; }
const InputDataType& InputParameter() const { return inputParameter; }
//! Modify the input parameter.
InputDataType& InputParameter() { return inputParameter; }

//! Get the output parameter.
OutputDataType& OutputParameter() const { return outputParameter; }
const OutputDataType& OutputParameter() const { return outputParameter; }
//! Modify the output parameter.
OutputDataType& OutputParameter() { return outputParameter; }

//! Get the delta.
InputDataType& Delta() const { return delta; }
const InputDataType& Delta() const { return delta; }
//! Modify the delta.
InputDataType& Delta() { return delta; }

Expand Down

0 comments on commit ac67380

Please sign in to comment.