19 #ifndef TESSERACT_LSTM_STATIC_SHAPE_H_ 20 #define TESSERACT_LSTM_STATIC_SHAPE_H_ 41 : batch_(0), height_(0), width_(0), depth_(0), loss_type_(
LT_NONE) {}
42 int batch()
const {
return batch_; }
44 int height()
const {
return height_; }
46 int width()
const {
return width_; }
48 int depth()
const {
return depth_; }
60 tprintf(
"Batch=%d, Height=%d, Width=%d, Depth=%d, loss=%d\n", batch_,
61 height_, width_, depth_, loss_type_);
72 loss_type_ =
static_cast<LossType>(tmp);
77 int32_t tmp = loss_type_;
104 #endif // TESSERACT_LSTM_STATIC_SHAPE_H_
bool DeSerialize(char *data, size_t count=1)
void set_batch(int value)
LossType loss_type() const
void set_width(int value)
bool Serialize(TFile *fp) const
bool Serialize(const char *data, size_t count=1)
DLLSYM void tprintf(const char *format,...)
void set_loss_type(LossType value)
bool DeSerialize(TFile *fp)
void set_depth(int value)
void set_height(int value)
void SetShape(int batch, int height, int width, int depth)