#include <static_shape.h>
Definition at line 38 of file static_shape.h.
◆ StaticShape()
tesseract::StaticShape::StaticShape |
( |
| ) |
|
|
inline |
Definition at line 40 of file static_shape.h.
40: batch_(0), height_(0), width_(0), depth_(0), loss_type_(
LT_NONE) {}
◆ batch()
int tesseract::StaticShape::batch |
( |
| ) |
const |
|
inline |
◆ depth()
int tesseract::StaticShape::depth |
( |
| ) |
const |
|
inline |
◆ DeSerialize()
bool tesseract::StaticShape::DeSerialize |
( |
TFile * |
fp | ) |
|
|
inline |
Definition at line 83 of file static_shape.h.
83 {
85 bool result = fp->DeSerialize(&batch_) && fp->DeSerialize(&height_) &&
86 fp->DeSerialize(&width_) && fp->DeSerialize(&depth_) && fp->DeSerialize(&tmp);
87 loss_type_ =
static_cast<LossType>(tmp);
88 return result;
89 }
◆ height()
int tesseract::StaticShape::height |
( |
| ) |
const |
|
inline |
◆ loss_type()
LossType tesseract::StaticShape::loss_type |
( |
| ) |
const |
|
inline |
◆ Print()
void tesseract::StaticShape::Print |
( |
| ) |
const |
|
inline |
Definition at line 78 of file static_shape.h.
78 {
79 tprintf(
"Batch=%d, Height=%d, Width=%d, Depth=%d, loss=%d\n", batch_, height_, width_, depth_,
80 loss_type_);
81 }
void tprintf(const char *format,...)
◆ Serialize()
bool tesseract::StaticShape::Serialize |
( |
TFile * |
fp | ) |
const |
|
inline |
Definition at line 91 of file static_shape.h.
91 {
92 int32_t tmp = loss_type_;
93 return fp->Serialize(&batch_) && fp->Serialize(&height_) && fp->Serialize(&width_) &&
94 fp->Serialize(&depth_) && fp->Serialize(&tmp);
95 }
◆ set_batch()
void tesseract::StaticShape::set_batch |
( |
int |
value | ) |
|
|
inline |
◆ set_depth()
void tesseract::StaticShape::set_depth |
( |
int |
value | ) |
|
|
inline |
◆ set_height()
void tesseract::StaticShape::set_height |
( |
int |
value | ) |
|
|
inline |
◆ set_loss_type()
void tesseract::StaticShape::set_loss_type |
( |
LossType |
value | ) |
|
|
inline |
◆ set_width()
void tesseract::StaticShape::set_width |
( |
int |
value | ) |
|
|
inline |
◆ SetShape()
void tesseract::StaticShape::SetShape |
( |
int |
batch, |
|
|
int |
height, |
|
|
int |
width, |
|
|
int |
depth |
|
) |
| |
|
inline |
◆ width()
int tesseract::StaticShape::width |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file:
- /media/home/debian/src/github/tesseract-ocr/tesseract/src/lstm/static_shape.h