Skip to content

Commit

Permalink
Added Sign Function.
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandroarmas committed Jun 2, 2022
1 parent c23ebc1 commit b1bc515
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion include/m_algorithms.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,14 @@ namespace Matrix {
const Matrix::Representation& m) const noexcept;
};

static_assert(MatrixOperatable<ReLU>);
class Sign : public UnaryAdapter<Sign> {

public:
Matrix::Representation operate(
const Matrix::Representation& m) const noexcept;
};

static_assert(MatrixOperatable<Sign>);


class SoftMax : public UnaryAdapter<SoftMax> {
Expand Down

0 comments on commit b1bc515

Please sign in to comment.