Skip to content

Commit

Permalink
Demonstrate test failure with real-time violation deliberately introd…
Browse files Browse the repository at this point in the history
…uced
  • Loading branch information
davidtrevelyan committed Nov 22, 2023
1 parent 85a4fcd commit a75fd5a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions RTNeural/conv1d/conv1d_eigen.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

#include "../Layer.h"
#include <Eigen/Dense>
#include <iostream>

namespace RTNeural
{
Expand Down Expand Up @@ -44,6 +45,8 @@ class Conv1D : public Layer<T>
/** Performs forward propagation for this layer. */
inline void forward(const T* input, T* h) noexcept override
{
std::cout << "oops!" << std::endl;

// insert input into a circular buffer
state.col(state_ptr) = Eigen::Map<const Eigen::Vector<T, Eigen::Dynamic>,
RTNeuralEigenAlignment>(input, Layer<T>::in_size);
Expand Down

0 comments on commit a75fd5a

Please sign in to comment.