Loading...
Searching...
No Matches
training_context.h
Go to the documentation of this file.
1// SPDX-License-Identifier: AGPL-3.0-only
2// Copyright (C) 2026 Artificial Intelligence Techniques, S.L. and Roberto López González
3
4#pragma once
5
8
9namespace opennn
10{
11
12class Loss;
13
15{
16 TrainingContext(Index batch_size, Loss&, bool inputs_pre_scaled = false,
17 TrainingContext* share_memory_with = nullptr,
18 bool joint_gradient_arena = false);
19
22
23 bool shares_memory() const noexcept { return shared_memory; }
24
27
28private:
29 bool shared_memory = false;
30};
31
32}
Definition loss.h:19
Definition configuration.h:10
Definition back_propagation.h:19
Definition forward_propagation.h:52
TrainingContext(const TrainingContext &)=delete
TrainingContext & operator=(const TrainingContext &)=delete
bool shares_memory() const noexcept
Definition training_context.h:23
TrainingContext(Index batch_size, Loss &, bool inputs_pre_scaled=false, TrainingContext *share_memory_with=nullptr, bool joint_gradient_arena=false)
ForwardPropagation forward
Definition training_context.h:25
BackPropagation backward
Definition training_context.h:26