7#include <aws/sagemakertrainingsessionruntime/SageMakerTrainingSessionRuntime_EXPORTS.h>
8#include <aws/sagemakertrainingsessionruntime/model/ForwardBackwardConfig.h>
9#include <aws/sagemakertrainingsessionruntime/model/ForwardConfig.h>
10#include <aws/sagemakertrainingsessionruntime/model/LoadStateConfig.h>
11#include <aws/sagemakertrainingsessionruntime/model/OptimizerStepConfig.h>
12#include <aws/sagemakertrainingsessionruntime/model/SaveStateConfig.h>
13#include <aws/sagemakertrainingsessionruntime/model/SaveWeightsConfig.h>
24namespace SageMakerTrainingSessionRuntime {
47 template <
typename ForwardT = ForwardConfig>
49 m_forwardHasBeenSet =
true;
50 m_forward = std::forward<ForwardT>(value);
52 template <
typename ForwardT = ForwardConfig>
66 template <
typename ForwardBackwardT = ForwardBackwardConfig>
68 m_forwardBackwardHasBeenSet =
true;
69 m_forwardBackward = std::forward<ForwardBackwardT>(value);
71 template <
typename ForwardBackwardT = ForwardBackwardConfig>
85 template <
typename OptimizerStepT = OptimizerStepConfig>
87 m_optimizerStepHasBeenSet =
true;
88 m_optimizerStep = std::forward<OptimizerStepT>(value);
90 template <
typename OptimizerStepT = OptimizerStepConfig>
103 template <
typename SaveWeightsT = SaveWeightsConfig>
105 m_saveWeightsHasBeenSet =
true;
106 m_saveWeights = std::forward<SaveWeightsT>(value);
108 template <
typename SaveWeightsT = SaveWeightsConfig>
122 template <
typename SaveStateT = SaveStateConfig>
124 m_saveStateHasBeenSet =
true;
125 m_saveState = std::forward<SaveStateT>(value);
127 template <
typename SaveStateT = SaveStateConfig>
141 template <
typename LoadStateT = LoadStateConfig>
143 m_loadStateHasBeenSet =
true;
144 m_loadState = std::forward<LoadStateT>(value);
146 template <
typename LoadStateT = LoadStateConfig>
164 bool m_forwardHasBeenSet =
false;
165 bool m_forwardBackwardHasBeenSet =
false;
166 bool m_optimizerStepHasBeenSet =
false;
167 bool m_saveWeightsHasBeenSet =
false;
168 bool m_saveStateHasBeenSet =
false;
169 bool m_loadStateHasBeenSet =
false;
AWS_SAGEMAKERTRAININGSESSIONRUNTIME_API OperationConfig(Aws::Utils::Json::JsonView jsonValue)
const SaveStateConfig & GetSaveState() const
const LoadStateConfig & GetLoadState() const
OperationConfig & WithForward(ForwardT &&value)
void SetLoadState(LoadStateT &&value)
void SetForward(ForwardT &&value)
OperationConfig & WithSaveState(SaveStateT &&value)
bool SaveWeightsHasBeenSet() const
AWS_SAGEMAKERTRAININGSESSIONRUNTIME_API OperationConfig()=default
void SetForwardBackward(ForwardBackwardT &&value)
void SetSaveWeights(SaveWeightsT &&value)
bool OptimizerStepHasBeenSet() const
const ForwardBackwardConfig & GetForwardBackward() const
OperationConfig & WithLoadState(LoadStateT &&value)
void SetOptimizerStep(OptimizerStepT &&value)
bool SaveStateHasBeenSet() const
const SaveWeightsConfig & GetSaveWeights() const
AWS_SAGEMAKERTRAININGSESSIONRUNTIME_API OperationConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
const OptimizerStepConfig & GetOptimizerStep() const
OperationConfig & WithSaveWeights(SaveWeightsT &&value)
OperationConfig & WithOptimizerStep(OptimizerStepT &&value)
AWS_SAGEMAKERTRAININGSESSIONRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
bool ForwardHasBeenSet() const
void SetSaveState(SaveStateT &&value)
bool ForwardBackwardHasBeenSet() const
bool LoadStateHasBeenSet() const
const ForwardConfig & GetForward() const
OperationConfig & WithForwardBackward(ForwardBackwardT &&value)
Aws::Utils::Json::JsonValue JsonValue