#include <networkscratch.h>
Definition at line 180 of file networkscratch.h.
◆ GradientStore()
tesseract::NetworkScratch::GradientStore::GradientStore |
( |
| ) |
|
|
inline |
Definition at line 183 of file networkscratch.h.
183: array_(nullptr), scratch_space_(nullptr) {}
◆ ~GradientStore()
tesseract::NetworkScratch::GradientStore::~GradientStore |
( |
| ) |
|
|
inline |
Definition at line 184 of file networkscratch.h.
184 {
185 if (scratch_space_ != nullptr) {
186 scratch_space_->array_stack_.Return(array_);
187 }
188 }
◆ get()
◆ Init()
void tesseract::NetworkScratch::GradientStore::Init |
( |
int |
size1, |
|
|
int |
size2, |
|
|
NetworkScratch * |
scratch |
|
) |
| |
|
inline |
Definition at line 190 of file networkscratch.h.
190 {
191 if (scratch_space_ != nullptr && array_ != nullptr) {
192 scratch_space_->array_stack_.Return(array_);
193 }
194 scratch_space_ = scratch;
195 array_ = scratch_space_->array_stack_.Borrow();
196 array_->
Resize(size1, size2, 0.0);
197 }
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: