#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.
41 : 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 64 of file static_shape.h.
67 fp->DeSerialize(&batch_) &&
68 fp->DeSerialize(&height_) &&
69 fp->DeSerialize(&width_) &&
70 fp->DeSerialize(&depth_) &&
71 fp->DeSerialize(&tmp);
72 loss_type_ =
static_cast<LossType>(tmp);
◆ 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 59 of file static_shape.h.
60 tprintf(
"Batch=%d, Height=%d, Width=%d, Depth=%d, loss=%d\n", batch_,
61 height_, width_, depth_, loss_type_);
DLLSYM void tprintf(const char *format,...)
◆ Serialize()
bool tesseract::StaticShape::Serialize |
( |
TFile * |
fp | ) |
const |
|
inline |
Definition at line 76 of file static_shape.h.
77 int32_t tmp = loss_type_;
79 fp->Serialize(&batch_) &&
80 fp->Serialize(&height_) &&
81 fp->Serialize(&width_) &&
82 fp->Serialize(&depth_) &&
◆ 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: