|
HDK
|
An input value block is a vector of (output, value) pairs, each of which will be used to initialize a network before execution. More...
#include <inputValueBlock.h>
Public Types | |
| typedef _VectorType::const_iterator | const_iterator |
Public Member Functions | |
| EfInputValueBlock ()=default | |
| EF_API | EfInputValueBlock (const EfInputValueBlock &rhs) |
| EfInputValueBlock (EfInputValueBlock &&rhs)=default | |
| EF_API | ~EfInputValueBlock () |
| EF_API EfInputValueBlock & | operator= (const EfInputValueBlock &rhs) |
| EfInputValueBlock & | operator= (EfInputValueBlock &&rhs)=default |
| template<typename T > | |
| void | AddOutputValuePair (const VdfMaskedOutput &output, const T &value) |
| void | AddOutputVectorPair (const VdfMaskedOutput &output, const VdfVector &value) |
| EF_API void | Apply (VdfExecutorInterface *executor, VdfMaskedOutputVector *invalidationRequest=NULL) const |
| EF_API void | InvalidateAndApply (VdfExecutorInterface *executor, const VdfMaskedOutputVector &invalidationRequest) const |
| const_iterator | begin () const |
| const_iterator | end () const |
| size_t | GetSize () const |
An input value block is a vector of (output, value) pairs, each of which will be used to initialize a network before execution.
Definition at line 35 of file inputValueBlock.h.
| typedef _VectorType::const_iterator EfInputValueBlock::const_iterator |
A const iterator into a block vector.
Definition at line 114 of file inputValueBlock.h.
|
default |
Constructs an empty input value block.
| EF_API EfInputValueBlock::EfInputValueBlock | ( | const EfInputValueBlock & | rhs | ) |
Copy constructor.
|
default |
Move constructor.
| EF_API EfInputValueBlock::~EfInputValueBlock | ( | ) |
Destructor.
|
inline |
Adds an (output, value) pair to this block.
Note that this API currently only supports single valued outputs and does not yet support vectorized outputs.
Definition at line 78 of file inputValueBlock.h.
|
inline |
Adds an (output, VdfVector) pair to this block.
Definition at line 86 of file inputValueBlock.h.
| EF_API void EfInputValueBlock::Apply | ( | VdfExecutorInterface * | executor, |
| VdfMaskedOutputVector * | invalidationRequest = NULL |
||
| ) | const |
Applies the input value block to an executor, by setting the output values and pushing through invalidation for each one of the output values set.
invalidationRequest is an output parameter, which will return the request used for invalidation.
|
inline |
Returns a const_iterator to the beginning of the values vector.
Definition at line 118 of file inputValueBlock.h.
|
inline |
Returns a const_iterator to the end of the values vector.
Definition at line 124 of file inputValueBlock.h.
|
inline |
Returns the number of outputs in this block.
Definition at line 130 of file inputValueBlock.h.
| EF_API void EfInputValueBlock::InvalidateAndApply | ( | VdfExecutorInterface * | executor, |
| const VdfMaskedOutputVector & | invalidationRequest | ||
| ) | const |
Pushes invalidation into the executor using the supplied invalidationRequest. Contrary to the Apply method, this method does not infer the invalidation request from the set input values. Instead, the invalidationRequest may be specified by the caller.
| EF_API EfInputValueBlock& EfInputValueBlock::operator= | ( | const EfInputValueBlock & | rhs | ) |
Copy assignment operator.
|
default |
Move assignment operator.