#include <variable_value.hpp>
Public Member Functions | |
| VariableValue ()=default | |
| Constructs an uninitialized VariableValue. | |
| VariableValue (HostTensorPtr value) | |
| Constructor for VariableValue. More... | |
| VariableValue (HostTensorPtr value, bool reset) | |
| Constructor for VariableValue. More... | |
| void | set_reset (bool reset) |
| Sets the reset flag to a new state. More... | |
| bool | get_reset () const |
| Returns the current reset flag state. | |
| const HostTensorPtr & | get_value () const |
| Returns the current stored data. | |
| void | set_value (const HostTensorPtr &value) |
| Sets new values for Variable. More... | |
VariableValue stores data and state (reset flag) for a Variable, and provides an interface for changing them.
|
inlineexplicit |
Constructor for VariableValue.
| value | The data for Variable. |
|
inline |
Constructor for VariableValue.
| value | Data for Variable. |
| reset | The current state of the reset flag. |
|
inline |
Sets the reset flag to a new state.
| reset | The new state of the reset flag. |
|
inline |