19#ifndef TESSERACT_LSTM_STATIC_SHAPE_H_
20#define TESSERACT_LSTM_STATIC_SHAPE_H_
79 tprintf(
"Batch=%d, Height=%d, Width=%d, Depth=%d, loss=%d\n", batch_, height_, width_, depth_,
87 loss_type_ =
static_cast<LossType>(tmp);
92 int32_t tmp = loss_type_;
void tprintf(const char *format,...)
bool DeSerialize(std::string &data)
bool Serialize(const std::string &data)
void set_batch(int value)
void set_loss_type(LossType value)
void SetShape(int batch, int height, int width, int depth)
void set_depth(int value)
LossType loss_type() const
bool Serialize(TFile *fp) const
void set_width(int value)
void set_height(int value)
bool DeSerialize(TFile *fp)