20#ifndef TESSERACT_LSTM_CONVOLVE_H_
21#define TESSERACT_LSTM_CONVOLVE_H_
36 Convolve(
const std::string &
name,
int ni,
int half_x,
int half_y);
39 std::string
spec()
const override {
40 return "C" + std::to_string(
half_y_ * 2 + 1) +
"," + std::to_string(
half_x_ * 2 + 1);
59 void DebugWeights()
override {
60 tprintf(
"Must override Network::DebugWeights for type %d\n",
type_);
void tprintf(const char *format,...)
~Convolve() override=default
std::string spec() const override
void Forward(bool debug, const NetworkIO &input, const TransposedArray *input_transpose, NetworkScratch *scratch, NetworkIO *output) override
bool Serialize(TFile *fp) const override
bool Backward(bool debug, const NetworkIO &fwd_deltas, NetworkScratch *scratch, NetworkIO *back_deltas) override
TESS_API Convolve(const std::string &name, int ni, int half_x, int half_y)
bool DeSerialize(TFile *fp) override
const std::string & name() const