Loading...
Searching...
No Matches
training_arena_plan.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
7
8namespace opennn
9{
10
11class Loss;
12struct BackPropagation;
14
15// Cold metadata shared by forward and backward construction. Runtime tensor
16// access never goes through this object.
18{
19public:
20 TrainingArenaPlan(Index batch_size, Loss&, bool include_gradient);
22
25
26private:
27 struct Impl;
28 unique_ptr<Impl> impl;
29
30 span<const MemoryPoolEntry> co_planned_lifetimes() const noexcept;
31 bool uses_joint_gradient() const noexcept;
32 void bind_offsets(span<const Index>);
33
34 friend struct BackPropagation;
35 friend struct ForwardPropagation;
36};
37
38}
Definition loss.h:19
TrainingArenaPlan & operator=(const TrainingArenaPlan &)=delete
friend struct ForwardPropagation
Definition training_arena_plan.h:35
TrainingArenaPlan(Index batch_size, Loss &, bool include_gradient)
friend struct BackPropagation
Definition training_arena_plan.h:34
TrainingArenaPlan(const TrainingArenaPlan &)=delete
Definition configuration.h:10
Definition back_propagation.h:19
Definition forward_propagation.h:52