penumbra / firmware /nnet_utils /nnet_code_gen.h
rtrevinnoc's picture
Add files using upload-large-folder tool
f15985b verified
#ifndef NNET_INSTR_GEN_H_
#define NNET_INSTR_GEN_H_
#include "nnet_conv1d_latency.h"
#include "nnet_helpers.h"
#include "hls_stream.h"
#include "nnet_common.h"
#include "nnet_function_stubs.h"
#include "nnet_mult.h"
namespace nnet {
template <class data_T, class res_T, typename CONFIG_T> class PointwiseConv1D {
public:
static void pointwise_conv(data_T data[CONFIG_T::in_width * CONFIG_T::n_chan],
res_T res[CONFIG_T::out_width * CONFIG_T::n_filt],
typename CONFIG_T::weight_t weights[CONFIG_T::n_chan * CONFIG_T::n_filt],
typename CONFIG_T::bias_t biases[CONFIG_T::n_filt]) {
// To be implemented in subclasses
}
};
// hls4ml insert code
} // namespace nnet
#endif