#include <networkscratch.h>
Definition at line 176 of file networkscratch.h.
◆ GradientStore()
tesseract::NetworkScratch::GradientStore::GradientStore |
( |
| ) |
|
|
inline |
Definition at line 179 of file networkscratch.h.
179 : array_(
nullptr), scratch_space_(
nullptr) {}
◆ ~GradientStore()
tesseract::NetworkScratch::GradientStore::~GradientStore |
( |
| ) |
|
|
inline |
Definition at line 180 of file networkscratch.h.
181 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 184 of file networkscratch.h.
185 if (scratch_space_ !=
nullptr && array_ !=
nullptr)
186 scratch_space_->array_stack_.Return(array_);
187 scratch_space_ = scratch;
188 array_ = scratch_space_->array_stack_.Borrow();
189 array_->
Resize(size1, size2, 0.0);
void Resize(int size1, int size2, const T &empty)
◆ operator*()
const TransposedArray& tesseract::NetworkScratch::GradientStore::operator* |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file: