Loading...
Searching...
No Matches
multihead_projection_operator.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
14
16{
17 size_t input_view_index = 0;
18
19 size_t scratch_slot = 0;
20
25
26 bool interleaved_heads = false;
27
28 void set(Index, Index, Index, Type);
29
31 void back_propagate(ForwardPropagation&, BackPropagation&, size_t) const override;
32};
33
34}
Definition configuration.h:10
void split_heads(const TensorView &, TensorView &)
Type
Definition configuration.h:13
void concatenate_heads(const TensorView &, TensorView &)
ForwardPropagationMode
Definition forward_propagation.h:33
Definition back_propagation.h:19
Definition combination_operator.h:12
Definition forward_propagation.h:52
Definition multihead_projection_operator.h:16
void set(Index, Index, Index, Type)
void forward_propagate(ForwardPropagation &, size_t, ForwardPropagationMode) override
bool interleaved_heads
Definition multihead_projection_operator.h:26
size_t scratch_slot
Definition multihead_projection_operator.h:19
bool accumulate_input_delta_cross
Definition multihead_projection_operator.h:24
void back_propagate(ForwardPropagation &, BackPropagation &, size_t) const override
bool accumulate_input_delta_self
Definition multihead_projection_operator.h:23
size_t input_delta_slot_self
Definition multihead_projection_operator.h:21
size_t input_view_index
Definition multihead_projection_operator.h:17
size_t input_delta_slot_cross
Definition multihead_projection_operator.h:22
Definition tensor_types.h:540