18 #ifndef TESSERACT_LSTM_STATIC_SHAPE_H_ 19 #define TESSERACT_LSTM_STATIC_SHAPE_H_ 39 : batch_(0), height_(0), width_(0), depth_(0), loss_type_(
LT_NONE) {}
40 int batch()
const {
return batch_; }
42 int height()
const {
return height_; }
44 int width()
const {
return width_; }
46 int depth()
const {
return depth_; }
58 tprintf(
"Batch=%d, Height=%d, Width=%d, Depth=%d, loss=%d\n", batch_,
59 height_, width_, depth_, loss_type_);
80 #endif // TESSERACT_LSTM_STATIC_SHAPE_H_
LossType loss_type() const
void set_batch(int value)
void set_loss_type(LossType value)
void SetShape(int batch, int height, int width, int depth)
void set_width(int value)
void set_height(int value)
void set_depth(int value)