18#ifndef TESSERACT_LSTM_PARALLEL_H_
19#define TESSERACT_LSTM_PARALLEL_H_
36 std::string
spec()
const override {
41 spec +=
"L2xy" + std::to_string(
no_ / 4);
46 spec +=
"Lbxs" + std::to_string(
no_ / 2);
48 spec +=
"Lbx" + std::to_string(
no_ / 2);
const std::string & name() const
void Forward(bool debug, const NetworkIO &input, const TransposedArray *input_transpose, NetworkScratch *scratch, NetworkIO *output) override
bool Backward(bool debug, const NetworkIO &fwd_deltas, NetworkScratch *scratch, NetworkIO *back_deltas) override
TESS_API Parallel(const char *name, NetworkType type)
std::string spec() const override
StaticShape OutputShape(const StaticShape &input_shape) const override
std::vector< Network * > stack_