Skip to content

Commit

Permalink
Deliberately add real-time violation for demonstration
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtrevelyan committed Nov 22, 2023
1 parent c796e09 commit cbcde45
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions RTNeural/activation/activation_eigen.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
#include "../common.h"
#include "../maths/maths_eigen.h"

#include <iostream>

namespace RTNeural
{

Expand All @@ -28,6 +30,8 @@ class TanhActivation : public Activation<T>
/** Performs forward propagation for tanh activation. */
inline void forward(const T* input, T* out) noexcept override
{
std::cout << "oops!" << std::endl;

inVec = Eigen::Map<const Eigen::Matrix<T, Eigen::Dynamic, 1>, RTNeuralEigenAlignment>(
input, Layer<T>::in_size, 1);
outVec = MathsProvider::tanh(inVec);
Expand Down

0 comments on commit cbcde45

Please sign in to comment.