#include <networkscratch.h>
Definition at line 174 of file networkscratch.h.
◆ GradientStore()
tesseract::NetworkScratch::GradientStore::GradientStore |
( |
| ) |
|
|
inline |
Definition at line 177 of file networkscratch.h.
177 : array_(
nullptr), scratch_space_(
nullptr) {}
◆ ~GradientStore()
tesseract::NetworkScratch::GradientStore::~GradientStore |
( |
| ) |
|
|
inline |
Definition at line 178 of file networkscratch.h.
179 if (scratch_space_ !=
nullptr) scratch_space_->array_stack_.Return(array_);
◆ get()
◆ Init()
void tesseract::NetworkScratch::GradientStore::Init |
( |
int |
size1, |
|
|
int |
size2, |
|
|
NetworkScratch * |
scratch |
|
) |
| |
|
inline |
Definition at line 182 of file networkscratch.h.
183 if (scratch_space_ !=
nullptr && array_ !=
nullptr)
184 scratch_space_->array_stack_.Return(array_);
185 scratch_space_ = scratch;
186 array_ = scratch_space_->array_stack_.Borrow();
187 array_->
Resize(size1, size2, 0.0);
◆ operator*()
const TransposedArray& tesseract::NetworkScratch::GradientStore::operator* |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file: