chunk_id
large_stringlengths
36
36
doc_type
large_stringclasses
2 values
category
large_stringclasses
17 values
document
large_stringclasses
50 values
version_raw
large_stringclasses
590 values
chunk_index
int64
0
262
text
large_stringlengths
11
5.69k
file_path
large_stringclasses
882 values
0b69e784-cd17-5812-93a6-f2f79647fcd0
docs
pytorch
pytorch_transformer
22
9
forward and backward compatibility. Return type : [*Tensor*](../tensors.html#torch.Tensor "torch.Tensor") Shape: : * src: (S,E)(S, E)(S,E) for unbatched input, (S,N,E)(S, N, E)(S,N,E) if batch\_first=False or (N, S, E) if batch\_first=True. *...
large_dataset/raw/docs/pytorch/transformer/transformer_22.md
24c804ed-5740-5b6a-9023-4f9d04231a43
docs
pytorch
pytorch_transformer
22
10
* memory\_key\_padding\_mask: (S)(S)(S) for unbatched input otherwise (N,S)(N, S)(N,S). Note: [src/tgt/memory]\_mask ensures that position i is allowed to attend the unmasked positions. If a BoolTensor is provided, positions with `True` are not allowed to attend while `F...
large_dataset/raw/docs/pytorch/transformer/transformer_22.md
ac727a15-76a3-5f2a-84f7-229415e40d71
docs
pytorch
pytorch_transformer
22
11
the output sequence length of a transformer is same as the input sequence (i.e. target) length of the decoder. where S is the source sequence length, T is the target sequence length, N is the batch size, E is the feature number Examples ```None ...
large_dataset/raw/docs/pytorch/transformer/transformer_22.md
53a3c249-da3c-576a-8734-0d4927d5f1a5
docs
pytorch
pytorch_transformer
22
12
[Next ![](../_static/images/chevron-right-orange.svg)](torch.nn.TransformerEncoder.html "TransformerEncoder") [![](../_static/images/chevron-right-orange.svg) Previous](torch.nn.GRUCell.html "GRUCell") --- © Copyright 2023, PyTorch Contributors. Built with [Sphinx](http://sphinx-doc.org/) using a [theme](https://git...
large_dataset/raw/docs/pytorch/transformer/transformer_22.md
7de9f311-a074-5788-8f5f-6e839fe76fba
docs
pytorch
pytorch_transformer
23
0
# Transformer¶ Source: https://docs.pytorch.org/docs/2.3/generated/torch.nn.Transformer.html Version: 2.3 *class* torch.nn.Transformer(*d\_model=512*, *nhead=8*, *num\_encoder\_layers=6*, *num\_decoder\_layers=6*, *dim\_feedforward=2048*, *dropout=0.1*, *activation=<function relu>*, *custom\_encoder=None*, *custom\_d...
large_dataset/raw/docs/pytorch/transformer/transformer_23.md
0ef4a398-b16c-5abd-8847-278602f509fb
docs
pytorch
pytorch_transformer
23
1
: * **d\_model** ([*int*](https://docs.python.org/3/library/functions.html#int "(in Python v3.12)")) – the number of expected features in the encoder/decoder inputs (default=512). * **nhead** ([*int*](https://docs.python.org/3/library/functions.html#int "(in Python v3.12)")) – the number of heads in the m...
large_dataset/raw/docs/pytorch/transformer/transformer_23.md
7984047c-7024-5f83-9ba6-2ee0977d4cc6
docs
pytorch
pytorch_transformer
23
2
* **dropout** ([*float*](https://docs.python.org/3/library/functions.html#float "(in Python v3.12)")) – the dropout value (default=0.1). * **activation** ([*Union*](https://docs.python.org/3/library/typing.html#typing.Union "(in Python v3.12)")*[*[*str*](https://docs.python.org/3/library/stdtypes.html#s...
large_dataset/raw/docs/pytorch/transformer/transformer_23.md
f1540fd3-73c5-5058-9442-ed83a2677c94
docs
pytorch
pytorch_transformer
23
3
* **custom\_decoder** ([*Optional*](https://docs.python.org/3/library/typing.html#typing.Optional "(in Python v3.12)")*[*[*Any*](https://docs.python.org/3/library/typing.html#typing.Any "(in Python v3.12)")*]*) – custom decoder (default=None). * **layer\_norm\_eps** ([*float*](https://docs.python.org/3/...
large_dataset/raw/docs/pytorch/transformer/transformer_23.md
6ef413a5-aedd-5383-9fa5-5c01e09153e1
docs
pytorch
pytorch_transformer
23
4
* **bias** ([*bool*](https://docs.python.org/3/library/functions.html#bool "(in Python v3.12)")) – If set to `False`, `Linear` and `LayerNorm` layers will not learn an additive bias. Default: `True`. Examples:: : ```None >>> transformer_model = nn.Transformer(nhead=16, num_encoder_l...
large_dataset/raw/docs/pytorch/transformer/transformer_23.md
b75b9fe6-d6ab-510a-bb2a-f9fb12897a41
docs
pytorch
pytorch_transformer
23
5
forward(*src*, *tgt*, *src\_mask=None*, *tgt\_mask=None*, *memory\_mask=None*, *src\_key\_padding\_mask=None*, *tgt\_key\_padding\_mask=None*, *memory\_key\_padding\_mask=None*, *src\_is\_causal=None*, *tgt\_is\_causal=None*, *memory\_is\_causal=False*)[[source]](../_modules/torch/nn/modules/transformer.html#Transf...
large_dataset/raw/docs/pytorch/transformer/transformer_23.md
f4b338b4-e8fc-5873-8f23-1aa8d04549ed
docs
pytorch
pytorch_transformer
23
6
: * **src** ([*Tensor*](../tensors.html#torch.Tensor "torch.Tensor")) – the sequence to the encoder (required). * **tgt** ([*Tensor*](../tensors.html#torch.Tensor "torch.Tensor")) – the sequence to the decoder (required). * **src\_mask** ([*Optional*](https://docs.python.org/3/library/...
large_dataset/raw/docs/pytorch/transformer/transformer_23.md
61eafd3a-011c-57cb-a481-7b014f41d2b3
docs
pytorch
pytorch_transformer
23
7
* **src\_key\_padding\_mask** ([*Optional*](https://docs.python.org/3/library/typing.html#typing.Optional "(in Python v3.12)")*[*[*Tensor*](../tensors.html#torch.Tensor "torch.Tensor")*]*) – the Tensor mask for src keys per batch (optional). * **tgt\_key\_padding\_mask** ([*Optional*](https://do...
large_dataset/raw/docs/pytorch/transformer/transformer_23.md
36fc1221-ff7d-5513-b811-e67b25ce4375
docs
pytorch
pytorch_transformer
23
8
* **src\_is\_causal** ([*Optional*](https://docs.python.org/3/library/typing.html#typing.Optional "(in Python v3.12)")*[*[*bool*](https://docs.python.org/3/library/functions.html#bool "(in Python v3.12)")*]*) – If specified, applies a causal mask as `src_mask`. Default: `None`; try to detect a...
large_dataset/raw/docs/pytorch/transformer/transformer_23.md
37eb65e2-4df9-5708-b383-54bb26c3a3f1
docs
pytorch
pytorch_transformer
23
9
the causal mask. Providing incorrect hints can result in incorrect execution, including forward and backward compatibility. * **memory\_is\_causal** ([*bool*](https://docs.python.org/3/library/functions.html#bool "(in Python v3.12)")) – If specified, applies a causa...
large_dataset/raw/docs/pytorch/transformer/transformer_23.md
c5c38d31-d366-51bc-9aeb-34812b8603d6
docs
pytorch
pytorch_transformer
23
10
(N, T, E) if batch\_first=True. * src\_mask: (S,S)(S, S)(S,S) or (N⋅num\_heads,S,S)(N\cdot\text{num\\_heads}, S, S)(N⋅num\_heads,S,S). * tgt\_mask: (T,T)(T, T)(T,T) or (N⋅num\_heads,T,T)(N\cdot\text{num\\_heads}, T, T)(N⋅num\_heads,T,T). * memory\_mask: (T,S)(T, S)(T,S)...
large_dataset/raw/docs/pytorch/transformer/transformer_23.md
ffc38c33-2936-5907-b061-7f6f4a6cb9c7
docs
pytorch
pytorch_transformer
23
11
[src/tgt/memory]\_key\_padding\_mask provides specified elements in the key to be ignored by the attention. If a BoolTensor is provided, the positions with the value of `True` will be ignored while the position with the value of `False` will be unchanged. * output: (T,E)...
large_dataset/raw/docs/pytorch/transformer/transformer_23.md
fd5f0e57-d89b-59bd-8677-44c409e82eec
docs
pytorch
pytorch_transformer
23
12
*static* generate\_square\_subsequent\_mask(*sz*, *device=None*, *dtype=None*)[[source]](../_modules/torch/nn/modules/transformer.html#Transformer.generate_square_subsequent_mask)[¶](#torch.nn.Transformer.generate_square_subsequent_mask "Permalink to this definition") : Generate a square causal mask for the s...
large_dataset/raw/docs/pytorch/transformer/transformer_23.md
ae143881-98c3-5ca6-981c-40cd9ee340fe
docs
pytorch
pytorch_transformer
24
0
# Transformer¶ Source: https://docs.pytorch.org/docs/2.4/generated/torch.nn.Transformer.html Version: 2.4 *class* torch.nn.Transformer(*d\_model=512*, *nhead=8*, *num\_encoder\_layers=6*, *num\_decoder\_layers=6*, *dim\_feedforward=2048*, *dropout=0.1*, *activation=<function relu>*, *custom\_encoder=None*, *custom\_d...
large_dataset/raw/docs/pytorch/transformer/transformer_24.md
dce3f60e-2e7e-52d7-8294-045ca2e08b11
docs
pytorch
pytorch_transformer
24
1
: * **d\_model** ([*int*](https://docs.python.org/3/library/functions.html#int "(in Python v3.12)")) – the number of expected features in the encoder/decoder inputs (default=512). * **nhead** ([*int*](https://docs.python.org/3/library/functions.html#int "(in Python v3.12)")) – the number of heads in the m...
large_dataset/raw/docs/pytorch/transformer/transformer_24.md
23c07369-87d8-58b0-9f11-b5a52ff7487c
docs
pytorch
pytorch_transformer
24
2
* **dropout** ([*float*](https://docs.python.org/3/library/functions.html#float "(in Python v3.12)")) – the dropout value (default=0.1). * **activation** ([*Union*](https://docs.python.org/3/library/typing.html#typing.Union "(in Python v3.12)")*[*[*str*](https://docs.python.org/3/library/stdtypes.html#s...
large_dataset/raw/docs/pytorch/transformer/transformer_24.md
a5fdf818-5d68-5231-ba44-f116ac543f74
docs
pytorch
pytorch_transformer
24
3
* **custom\_decoder** ([*Optional*](https://docs.python.org/3/library/typing.html#typing.Optional "(in Python v3.12)")*[*[*Any*](https://docs.python.org/3/library/typing.html#typing.Any "(in Python v3.12)")*]*) – custom decoder (default=None). * **layer\_norm\_eps** ([*float*](https://docs.python.org/3/...
large_dataset/raw/docs/pytorch/transformer/transformer_24.md
cdc19de2-c781-5958-86a0-fa3f6ce33a7f
docs
pytorch
pytorch_transformer
24
4
* **bias** ([*bool*](https://docs.python.org/3/library/functions.html#bool "(in Python v3.12)")) – If set to `False`, `Linear` and `LayerNorm` layers will not learn an additive bias. Default: `True`. Examples:: : ```None >>> transformer_model = nn.Transformer(nhead=16, num_encoder_l...
large_dataset/raw/docs/pytorch/transformer/transformer_24.md
a2243343-9b7b-5ef4-8883-9e40310e02c6
docs
pytorch
pytorch_transformer
24
5
forward(*src*, *tgt*, *src\_mask=None*, *tgt\_mask=None*, *memory\_mask=None*, *src\_key\_padding\_mask=None*, *tgt\_key\_padding\_mask=None*, *memory\_key\_padding\_mask=None*, *src\_is\_causal=None*, *tgt\_is\_causal=None*, *memory\_is\_causal=False*)[[source]](../_modules/torch/nn/modules/transformer.html#Transf...
large_dataset/raw/docs/pytorch/transformer/transformer_24.md
30005ebc-9f7e-5d9b-b573-ad78bb697665
docs
pytorch
pytorch_transformer
24
6
: * **src** ([*Tensor*](../tensors.html#torch.Tensor "torch.Tensor")) – the sequence to the encoder (required). * **tgt** ([*Tensor*](../tensors.html#torch.Tensor "torch.Tensor")) – the sequence to the decoder (required). * **src\_mask** ([*Optional*](https://docs.python.org/3/library/...
large_dataset/raw/docs/pytorch/transformer/transformer_24.md
44fcdfb2-8704-5506-9c9d-329c0e8de173
docs
pytorch
pytorch_transformer
24
7
* **src\_key\_padding\_mask** ([*Optional*](https://docs.python.org/3/library/typing.html#typing.Optional "(in Python v3.12)")*[*[*Tensor*](../tensors.html#torch.Tensor "torch.Tensor")*]*) – the Tensor mask for src keys per batch (optional). * **tgt\_key\_padding\_mask** ([*Optional*](https://do...
large_dataset/raw/docs/pytorch/transformer/transformer_24.md
d14a5831-260c-58ab-b53f-ac7d3ca9996f
docs
pytorch
pytorch_transformer
24
8
* **src\_is\_causal** ([*Optional*](https://docs.python.org/3/library/typing.html#typing.Optional "(in Python v3.12)")*[*[*bool*](https://docs.python.org/3/library/functions.html#bool "(in Python v3.12)")*]*) – If specified, applies a causal mask as `src_mask`. Default: `None`; try to detect a...
large_dataset/raw/docs/pytorch/transformer/transformer_24.md
d30f8856-b537-50c5-9435-3a55c5e771f4
docs
pytorch
pytorch_transformer
24
9
the causal mask. Providing incorrect hints can result in incorrect execution, including forward and backward compatibility. * **memory\_is\_causal** ([*bool*](https://docs.python.org/3/library/functions.html#bool "(in Python v3.12)")) – If specified, applies a causa...
large_dataset/raw/docs/pytorch/transformer/transformer_24.md
3ea4dd88-e2a2-5c22-b095-9411a3d37d4d
docs
pytorch
pytorch_transformer
24
10
(N, T, E) if batch\_first=True. * src\_mask: (S,S)(S, S)(S,S) or (N⋅num\_heads,S,S)(N\cdot\text{num\\_heads}, S, S)(N⋅num\_heads,S,S). * tgt\_mask: (T,T)(T, T)(T,T) or (N⋅num\_heads,T,T)(N\cdot\text{num\\_heads}, T, T)(N⋅num\_heads,T,T). * memory\_mask: (T,S)(T, S)(T,S)...
large_dataset/raw/docs/pytorch/transformer/transformer_24.md
8c965eac-a30f-5aea-8854-e343992b6f32
docs
pytorch
pytorch_transformer
24
11
[src/tgt/memory]\_key\_padding\_mask provides specified elements in the key to be ignored by the attention. If a BoolTensor is provided, the positions with the value of `True` will be ignored while the position with the value of `False` will be unchanged. * output: (T,E)...
large_dataset/raw/docs/pytorch/transformer/transformer_24.md
e5aad08a-2667-5f09-818c-308aa38edf78
docs
pytorch
pytorch_transformer
24
12
*static* generate\_square\_subsequent\_mask(*sz*, *device=None*, *dtype=None*)[[source]](../_modules/torch/nn/modules/transformer.html#Transformer.generate_square_subsequent_mask)[¶](#torch.nn.Transformer.generate_square_subsequent_mask "Permalink to this definition") : Generate a square causal mask for the s...
large_dataset/raw/docs/pytorch/transformer/transformer_24.md
bedf5681-b2b4-522e-8cbe-12f15c43476f
docs
pytorch
pytorch_transformer
25
0
# Transformer¶ Source: https://docs.pytorch.org/docs/2.5/generated/torch.nn.Transformer.html Version: 2.5 *class* torch.nn.Transformer(*d\_model=512*, *nhead=8*, *num\_encoder\_layers=6*, *num\_decoder\_layers=6*, *dim\_feedforward=2048*, *dropout=0.1*, *activation=<function relu>*, *custom\_encoder=None*, *custom\_d...
large_dataset/raw/docs/pytorch/transformer/transformer_25.md
7315e1f6-05e4-50d9-9443-acf769ca7019
docs
pytorch
pytorch_transformer
25
1
: * **d\_model** ([*int*](https://docs.python.org/3/library/functions.html#int "(in Python v3.13)")) – the number of expected features in the encoder/decoder inputs (default=512). * **nhead** ([*int*](https://docs.python.org/3/library/functions.html#int "(in Python v3.13)")) – the number of heads in the m...
large_dataset/raw/docs/pytorch/transformer/transformer_25.md
1d6a75ed-216b-5bcc-9312-3ff161df5173
docs
pytorch
pytorch_transformer
25
2
* **dropout** ([*float*](https://docs.python.org/3/library/functions.html#float "(in Python v3.13)")) – the dropout value (default=0.1). * **activation** ([*Union*](https://docs.python.org/3/library/typing.html#typing.Union "(in Python v3.13)")*[*[*str*](https://docs.python.org/3/library/stdtypes.html#s...
large_dataset/raw/docs/pytorch/transformer/transformer_25.md
37b79092-5d65-51ab-b1d1-f021200acb8f
docs
pytorch
pytorch_transformer
25
3
* **custom\_decoder** ([*Optional*](https://docs.python.org/3/library/typing.html#typing.Optional "(in Python v3.13)")*[*[*Any*](https://docs.python.org/3/library/typing.html#typing.Any "(in Python v3.13)")*]*) – custom decoder (default=None). * **layer\_norm\_eps** ([*float*](https://docs.python.org/3/...
large_dataset/raw/docs/pytorch/transformer/transformer_25.md
b5443129-e30a-5140-aea6-e483e975a49c
docs
pytorch
pytorch_transformer
25
4
* **bias** ([*bool*](https://docs.python.org/3/library/functions.html#bool "(in Python v3.13)")) – If set to `False`, `Linear` and `LayerNorm` layers will not learn an additive bias. Default: `True`. Examples:: : ```None >>> transformer_model = nn.Transformer(nhead=16, num_encoder_l...
large_dataset/raw/docs/pytorch/transformer/transformer_25.md
6c833880-7130-502f-84fc-4328c8200133
docs
pytorch
pytorch_transformer
25
5
forward(*src*, *tgt*, *src\_mask=None*, *tgt\_mask=None*, *memory\_mask=None*, *src\_key\_padding\_mask=None*, *tgt\_key\_padding\_mask=None*, *memory\_key\_padding\_mask=None*, *src\_is\_causal=None*, *tgt\_is\_causal=None*, *memory\_is\_causal=False*)[[source]](../_modules/torch/nn/modules/transformer.html#Transf...
large_dataset/raw/docs/pytorch/transformer/transformer_25.md
ffc12f11-00f5-52d1-9525-6776f0a0b9b6
docs
pytorch
pytorch_transformer
25
6
: * **src** ([*Tensor*](../tensors.html#torch.Tensor "torch.Tensor")) – the sequence to the encoder (required). * **tgt** ([*Tensor*](../tensors.html#torch.Tensor "torch.Tensor")) – the sequence to the decoder (required). * **src\_mask** ([*Optional*](https://docs.python.org/3/library/...
large_dataset/raw/docs/pytorch/transformer/transformer_25.md
3ea72d03-6408-5794-91be-01cacda798b6
docs
pytorch
pytorch_transformer
25
7
* **src\_key\_padding\_mask** ([*Optional*](https://docs.python.org/3/library/typing.html#typing.Optional "(in Python v3.13)")*[*[*Tensor*](../tensors.html#torch.Tensor "torch.Tensor")*]*) – the Tensor mask for src keys per batch (optional). * **tgt\_key\_padding\_mask** ([*Optional*](https://do...
large_dataset/raw/docs/pytorch/transformer/transformer_25.md
071c5cde-6fd3-5348-a615-dd02e9b232b1
docs
pytorch
pytorch_transformer
25
8
* **src\_is\_causal** ([*Optional*](https://docs.python.org/3/library/typing.html#typing.Optional "(in Python v3.13)")*[*[*bool*](https://docs.python.org/3/library/functions.html#bool "(in Python v3.13)")*]*) – If specified, applies a causal mask as `src_mask`. Default: `None`; try to detect a...
large_dataset/raw/docs/pytorch/transformer/transformer_25.md
0961fed1-73ca-55ed-a164-8e5ceba32325
docs
pytorch
pytorch_transformer
25
9
the causal mask. Providing incorrect hints can result in incorrect execution, including forward and backward compatibility. * **memory\_is\_causal** ([*bool*](https://docs.python.org/3/library/functions.html#bool "(in Python v3.13)")) – If specified, applies a causa...
large_dataset/raw/docs/pytorch/transformer/transformer_25.md
87b95351-b5f1-51f5-8579-1a78910af2c1
docs
pytorch
pytorch_transformer
25
10
(N, T, E) if batch\_first=True. * src\_mask: (S,S)(S, S)(S,S) or (N⋅num\_heads,S,S)(N\cdot\text{num\\_heads}, S, S)(N⋅num\_heads,S,S). * tgt\_mask: (T,T)(T, T)(T,T) or (N⋅num\_heads,T,T)(N\cdot\text{num\\_heads}, T, T)(N⋅num\_heads,T,T). * memory\_mask: (T,S)(T, S)(T,S)...
large_dataset/raw/docs/pytorch/transformer/transformer_25.md
d9f9718d-d10f-53ec-8698-56c39c9d2ae3
docs
pytorch
pytorch_transformer
25
11
[src/tgt/memory]\_key\_padding\_mask provides specified elements in the key to be ignored by the attention. If a BoolTensor is provided, the positions with the value of `True` will be ignored while the position with the value of `False` will be unchanged. * output: (T,E)...
large_dataset/raw/docs/pytorch/transformer/transformer_25.md
814c5778-a84a-59f3-abdc-c73a06942630
docs
pytorch
pytorch_transformer
25
12
*static* generate\_square\_subsequent\_mask(*sz*, *device=None*, *dtype=None*)[[source]](../_modules/torch/nn/modules/transformer.html#Transformer.generate_square_subsequent_mask)[¶](#torch.nn.Transformer.generate_square_subsequent_mask "Permalink to this definition") : Generate a square causal mask for the s...
large_dataset/raw/docs/pytorch/transformer/transformer_25.md
f1667e43-15b5-573d-800c-9bf47c1688d1
docs
pytorch
pytorch_transformer
26
0
# Transformer¶ Source: https://docs.pytorch.org/docs/2.6/generated/torch.nn.Transformer.html Version: 2.6 *class* torch.nn.Transformer(*d\_model=512*, *nhead=8*, *num\_encoder\_layers=6*, *num\_decoder\_layers=6*, *dim\_feedforward=2048*, *dropout=0.1*, *activation=<function relu>*, *custom\_encoder=None*, *custom\_d...
large_dataset/raw/docs/pytorch/transformer/transformer_26.md
96028d30-6038-552d-9d62-15e8ec730157
docs
pytorch
pytorch_transformer
26
1
is based on the paper “Attention Is All You Need”. Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Lukasz Kaiser, and Illia Polosukhin. 2017. Attention is all you need. In Advances in Neural Information Processing Systems, pages 6000-6010. Parameters : ...
large_dataset/raw/docs/pytorch/transformer/transformer_26.md
1c4b39aa-2557-5e74-80b5-271d9761c8bd
docs
pytorch
pytorch_transformer
26
2
* **num\_decoder\_layers** ([*int*](https://docs.python.org/3/library/functions.html#int "(in Python v3.13)")) – the number of sub-decoder-layers in the decoder (default=6). * **dim\_feedforward** ([*int*](https://docs.python.org/3/library/functions.html#int "(in Python v3.13)")) – the dimension of the ...
large_dataset/raw/docs/pytorch/transformer/transformer_26.md
e9baa250-a42a-5337-9e62-ff4d503df8e2
docs
pytorch
pytorch_transformer
26
3
(“relu” or “gelu”) or a unary callable. Default: relu * **custom\_encoder** ([*Optional*](https://docs.python.org/3/library/typing.html#typing.Optional "(in Python v3.13)")*[*[*Any*](https://docs.python.org/3/library/typing.html#typing.Any "(in Python v3.13)")*]*) – custom encoder (default=None). ...
large_dataset/raw/docs/pytorch/transformer/transformer_26.md
8cc83376-da7b-5b00-8707-b9e59cebcbed
docs
pytorch
pytorch_transformer
26
4
* **norm\_first** ([*bool*](https://docs.python.org/3/library/functions.html#bool "(in Python v3.13)")) – if `True`, encoder and decoder layers will perform LayerNorms before other attention and feedforward operations, otherwise after. Default: `False` (after). * **bias** ([*bool*](https://doc...
large_dataset/raw/docs/pytorch/transformer/transformer_26.md
2f0d0d5f-4173-57d8-ba93-08acae4f1691
docs
pytorch
pytorch_transformer
26
5
forward(*src*, *tgt*, *src\_mask=None*, *tgt\_mask=None*, *memory\_mask=None*, *src\_key\_padding\_mask=None*, *tgt\_key\_padding\_mask=None*, *memory\_key\_padding\_mask=None*, *src\_is\_causal=None*, *tgt\_is\_causal=None*, *memory\_is\_causal=False*)[[source]](../_modules/torch/nn/modules/transformer.html#Transf...
large_dataset/raw/docs/pytorch/transformer/transformer_26.md
be8cce9c-8310-51de-a73d-003674cdecb6
docs
pytorch
pytorch_transformer
26
6
in [`torch.nn.functional.scaled_dot_product_attention()`](torch.nn.functional.scaled_dot_product_attention.html#torch.nn.functional.scaled_dot_product_attention "torch.nn.functional.scaled_dot_product_attention"). Parameters : * **src** ([*Tensor*](../tensors.html#torch.Tensor "torch.Tensor")...
large_dataset/raw/docs/pytorch/transformer/transformer_26.md
a3f3eca0-9a50-5138-aa84-031a4ad58164
docs
pytorch
pytorch_transformer
26
7
* **memory\_mask** ([*Optional*](https://docs.python.org/3/library/typing.html#typing.Optional "(in Python v3.13)")*[*[*Tensor*](../tensors.html#torch.Tensor "torch.Tensor")*]*) – the additive mask for the encoder output (optional). * **src\_key\_padding\_mask** ([*Optional*](https://docs.python...
large_dataset/raw/docs/pytorch/transformer/transformer_26.md
7c8dbd7e-43a8-5e37-a37d-3f121a40dc1e
docs
pytorch
pytorch_transformer
26
8
* **src\_is\_causal** ([*Optional*](https://docs.python.org/3/library/typing.html#typing.Optional "(in Python v3.13)")*[*[*bool*](https://docs.python.org/3/library/functions.html#bool "(in Python v3.13)")*]*) – If specified, applies a causal mask as `src_mask`. Default: `None`; try to detect a...
large_dataset/raw/docs/pytorch/transformer/transformer_26.md
fa426b4b-6791-550e-b81a-4244fc440cf9
docs
pytorch
pytorch_transformer
26
9
the causal mask. Providing incorrect hints can result in incorrect execution, including forward and backward compatibility. * **memory\_is\_causal** ([*bool*](https://docs.python.org/3/library/functions.html#bool "(in Python v3.13)")) – If specified, applies a causa...
large_dataset/raw/docs/pytorch/transformer/transformer_26.md
18882d8c-5d77-500e-ba76-8b7c3d383e83
docs
pytorch
pytorch_transformer
26
10
(N, T, E) if batch\_first=True. * src\_mask: (S,S)(S, S)(S,S) or (N⋅num\_heads,S,S)(N\cdot\text{num\\_heads}, S, S)(N⋅num\_heads,S,S). * tgt\_mask: (T,T)(T, T)(T,T) or (N⋅num\_heads,T,T)(N\cdot\text{num\\_heads}, T, T)(N⋅num\_heads,T,T). * memory\_mask: (T,S)(T, S)(T,S)...
large_dataset/raw/docs/pytorch/transformer/transformer_26.md
0d948f9c-804a-52a9-8f93-b5f25189355f
docs
pytorch
pytorch_transformer
26
11
[src/tgt/memory]\_key\_padding\_mask provides specified elements in the key to be ignored by the attention. If a BoolTensor is provided, the positions with the value of `True` will be ignored while the position with the value of `False` will be unchanged. * output: (T,E)...
large_dataset/raw/docs/pytorch/transformer/transformer_26.md
00d29586-8ffb-5621-a4da-c2f101a33aea
docs
pytorch
pytorch_transformer
26
12
*static* generate\_square\_subsequent\_mask(*sz*, *device=None*, *dtype=None*)[[source]](../_modules/torch/nn/modules/transformer.html#Transformer.generate_square_subsequent_mask)[[source]](https://github.com/pytorch/pytorch/blob/v2.6.0/torch/nn/modules/transformer.py#L291)[¶](#torch.nn.Transformer.generate_square_...
large_dataset/raw/docs/pytorch/transformer/transformer_26.md
2de0911b-3572-5304-8db3-6aa875c8be54
docs
pytorch
pytorch_transformer
26
13
Built with [Sphinx](http://sphinx-doc.org/) using a [theme](https://github.com/rtfd/sphinx_rtd_theme) provided by [Read the Docs](https://readthedocs.org).
large_dataset/raw/docs/pytorch/transformer/transformer_26.md
94cd37aa-0e1c-526e-8ffa-e8104c0cda2e
docs
ros2
ros2_about-discovery
humble
0
# Discovery Source: https://docs.ros.org/en/humble/Concepts/Basic/About-Discovery.html Version: humble * [Concepts](../../Concepts.html) * [Basic Concepts](../Basic.html) * Discovery * [Edit on GitHub](https://github.com/ros2/ros2_documentation/blob/humble/source/Concepts/Basic/About-Discovery.rst) --- **You're re...
large_dataset/raw/docs/ros2/about-discovery/about-discovery_humble.md
249bf7d6-3760-5b3b-b875-97bbcc70dcd2
docs
ros2
ros2_about-discovery
humble
1
2. Nodes periodically advertise their presence so that connections can be made with new-found entities, even after the initial discovery period. 3. Nodes advertise to other nodes when they go offline. Nodes will only establish connections with other nodes if they have compatible [Quality of Service](../../Tutorials/De...
large_dataset/raw/docs/ros2/about-discovery/about-discovery_humble.md
f7077dc4-dc9e-5b81-8082-4cf1f4eda098
docs
ros2
ros2_about-discovery
humble
2
provided by [Read the Docs](https://readthedocs.org).
large_dataset/raw/docs/ros2/about-discovery/about-discovery_humble.md
9c797ce9-68de-5208-8ce2-152c1d3dd44a
docs
ros2
ros2_about-discovery
iron
0
# Discovery Source: https://docs.ros.org/en/iron/Concepts/Basic/About-Discovery.html Version: iron * [Concepts](../../Concepts.html) * [Basic Concepts](../Basic.html) * Discovery * [Edit on GitHub](https://github.com/ros2/ros2_documentation/blob/iron/source/Concepts/Basic/About-Discovery.rst) --- **Warning You're...
large_dataset/raw/docs/ros2/about-discovery/about-discovery_iron.md
4c638b31-4517-571c-8b08-1192917e5a36
docs
ros2
ros2_about-discovery
iron
1
2. Nodes periodically advertise their presence so that connections can be made with new-found entities, even after the initial discovery period. 3. Nodes advertise to other nodes when they go offline. Nodes will only establish connections with other nodes if they have compatible [Quality of Service](../../Tutorials/De...
large_dataset/raw/docs/ros2/about-discovery/about-discovery_iron.md
094d705f-0d94-53c3-a22e-c7841dfea8f9
docs
ros2
ros2_about-discovery
iron
2
provided by [Read the Docs](https://readthedocs.org).
large_dataset/raw/docs/ros2/about-discovery/about-discovery_iron.md
52b01129-fd16-5292-b514-55bbb15aff68
docs
ros2
ros2_about-discovery
jazzy
0
# Discovery Source: https://docs.ros.org/en/jazzy/Concepts/Basic/About-Discovery.html Version: jazzy * [Concepts](../../Concepts.html) * [Basic Concepts](../Basic.html) * Discovery * [Edit on GitHub](https://github.com/ros2/ros2_documentation/blob/jazzy/source/Concepts/Basic/About-Discovery.rst) --- **You're readi...
large_dataset/raw/docs/ros2/about-discovery/about-discovery_jazzy.md
215d8b2a-93ad-5c42-aa1b-f74b42547113
docs
ros2
ros2_about-discovery
jazzy
1
2. Nodes periodically advertise their presence so that connections can be made with new-found entities, even after the initial discovery period. 3. Nodes advertise to other nodes when they go offline. Nodes will only establish connections with other nodes if they have compatible [Quality of Service](../../Tutorials/De...
large_dataset/raw/docs/ros2/about-discovery/about-discovery_jazzy.md
0b0fcbe1-d0a4-596d-b0b2-43105ff90d36
docs
ros2
ros2_about-discovery
jazzy
2
provided by [Read the Docs](https://readthedocs.org).
large_dataset/raw/docs/ros2/about-discovery/about-discovery_jazzy.md
65330a9a-0531-521c-850b-589f13c70a24
docs
ros2
ros2_about-discovery
kilted
0
# Discovery Source: https://docs.ros.org/en/kilted/Concepts/Basic/About-Discovery.html Version: kilted * [Concepts](../../Concepts.html) * [Basic Concepts](../Basic.html) * Discovery * [Edit on GitHub](https://github.com/ros2/ros2_documentation/blob/kilted/source/Concepts/Basic/About-Discovery.rst) --- Discovery o...
large_dataset/raw/docs/ros2/about-discovery/about-discovery_kilted.md
41488485-74fe-5a54-9fad-53fe84df9c4b
docs
ros2
ros2_about-discovery
kilted
1
Nodes will only establish connections with other nodes if they have compatible [Quality of Service](../../Tutorials/Demos/Quality-of-Service.html) settings. Take the [talker-listener demo](../../Installation/Alternatives/Ubuntu-Development-Setup.html#talker-listener) for example. Running the C++ talker node in one ter...
large_dataset/raw/docs/ros2/about-discovery/about-discovery_kilted.md
f917f190-5871-5cae-9cf0-fb0b53e1cd69
docs
ros2
ros2_about-interfaces
humble
0
# Interfaces Source: https://docs.ros.org/en/humble/Concepts/Basic/About-Interfaces.html Version: humble * [Concepts](../../Concepts.html) * [Basic Concepts](../Basic.html) * Interfaces * [Edit on GitHub](https://github.com/ros2/ros2_documentation/blob/humble/source/Concepts/Basic/About-Interfaces.rst) --- **You'r...
large_dataset/raw/docs/ros2/about-interfaces/about-interfaces_humble.md
826846d5-6f0a-5594-b7c6-b3e73ba63bf8
docs
ros2
ros2_about-interfaces
humble
1
## [Background](#id1)[](#background "Link to this heading") ROS applications typically communicate through interfaces of one of three types: [topics](About-Topics.html), [services](About-Services.html), or [actions](About-Actions.html). ROS 2 uses a simplified description language, the interface definition language (...
large_dataset/raw/docs/ros2/about-interfaces/about-interfaces_humble.md
bb56bfdc-3fdc-561d-a2b5-5b80b822e3d3
docs
ros2
ros2_about-interfaces
humble
2
## [Messages](#id2)[](#messages "Link to this heading") Messages are a way for a ROS 2 node to send data on the network to other ROS nodes, with no response expected. For instance, if a ROS 2 node reads temperature data from a sensor, it can then publish that data on the ROS 2 network using a `Temperature` message. O...
large_dataset/raw/docs/ros2/about-interfaces/about-interfaces_humble.md
060063db-de5c-5bf6-ae74-73e4000339e0
docs
ros2
ros2_about-interfaces
humble
3
#### [Field types](#id4)[](#field-types "Link to this heading") Field types can be: * a built-in-type * names of Message descriptions defined on their own, such as “geometry\_msgs/PoseStamped” *Built-in-types currently supported:* | Type name | [C++](https://design.ros2.org/articles/generated_interfaces_cpp.html) ...
large_dataset/raw/docs/ros2/about-interfaces/about-interfaces_humble.md
a63c11bf-e73f-53ba-bb5a-88cd6d32658c
docs
ros2
ros2_about-interfaces
humble
4
| int64 | int64\_t | builtins.int\* | long long | | uint64 | uint64\_t | builtins.int\* | unsigned long long | | string | std::string | builtins.str | string | | wstring | std::u16string | builtins.str | wstring | *Every built-in-type can be used to define arrays:* | Type name | [C++](https://design.ros2.org/articles...
large_dataset/raw/docs/ros2/about-interfaces/about-interfaces_humble.md
89328dbb-2162-5e78-b52d-dbd0824a977c
docs
ros2
ros2_about-interfaces
humble
5
int32[] unbounded_integer_array int32[5] five_integers_array int32[<=5] up_to_five_integers_array string string_of_unbounded_size string<=10 up_to_ten_characters_string string[<=5] up_to_five_unbounded_strings string<=10[] unbounded_array_of_strings_up_to_ten_characters_each string<=10[<=5] up_to_five_strings_up_to_t...
large_dataset/raw/docs/ros2/about-interfaces/about-interfaces_humble.md
da12e515-74be-5041-9283-acbbaa62a5b6
docs
ros2
ros2_about-interfaces
humble
6
Defining a default value is done by adding a third element to the field definition line, i.e: ```None fieldtype fieldname fielddefaultvalue ``` For example: ```None uint8 x 42 int16 y -2000 string full_name "John Doe" int32[] samples [-200, -100, 0, 100, 200] ``` Note * string values must be defined in single `'` ...
large_dataset/raw/docs/ros2/about-interfaces/about-interfaces_humble.md
f7ebc514-a65c-5e9d-bde0-5aad19aa30e0
docs
ros2
ros2_about-interfaces
humble
7
## [Services](#id8)[](#services "Link to this heading") Services are a request/response communication, where the client (requester) is waiting for the server (responder) to make a short computation and return a result. Services are described and defined in `.srv` files in the `srv/` directory of a ROS package. A se...
large_dataset/raw/docs/ros2/about-interfaces/about-interfaces_humble.md
dfcca9c1-a9d1-5e5a-a903-dab7cc9cc992
docs
ros2
ros2_about-interfaces
humble
8
uint32 an_integer ``` You cannot embed another service inside of a service. ## [Actions](#id9)[](#actions "Link to this heading") Actions are a long-running request/response communication, where the action client (requester) is waiting for the action server (the responder) to take some action and return a result. I...
large_dataset/raw/docs/ros2/about-interfaces/about-interfaces_humble.md
909f7fae-c529-54d7-9081-3af041294675
docs
ros2
ros2_about-interfaces
humble
9
There can be arbitrary numbers of request fields (including zero), arbitrary numbers of response fields (including zero), and arbitrary numbers of feedback fields (including zero). The `<request_type>`, `<response_type>`, and `<feedback_type>` follow all of the same rules as the `<type>` for a message. The `<request_f...
large_dataset/raw/docs/ros2/about-interfaces/about-interfaces_humble.md
5d6cc367-acf9-5ad5-b575-39d15093f650
docs
ros2
ros2_about-interfaces
humble
10
[Next](About-Topics.html "Topics") --- © Copyright 2026, Open Robotics. Built with [Sphinx](https://www.sphinx-doc.org/) using a [theme](https://github.com/readthedocs/sphinx_rtd_theme) provided by [Read the Docs](https://readthedocs.org).
large_dataset/raw/docs/ros2/about-interfaces/about-interfaces_humble.md
8397666c-b386-52e2-a57a-c8255bad2b36
docs
ros2
ros2_about-interfaces
iron
0
# Interfaces Source: https://docs.ros.org/en/iron/Concepts/Basic/About-Interfaces.html Version: iron * [Concepts](../../Concepts.html) * [Basic Concepts](../Basic.html) * Interfaces * [Edit on GitHub](https://github.com/ros2/ros2_documentation/blob/iron/source/Concepts/Basic/About-Interfaces.rst) --- **Warning Yo...
large_dataset/raw/docs/ros2/about-interfaces/about-interfaces_iron.md
953de40b-416f-5034-b190-11dff26e4ec6
docs
ros2
ros2_about-interfaces
iron
1
## [Background](#id1)[](#background "Link to this heading") ROS applications typically communicate through interfaces of one of three types: [topics](About-Topics.html), [services](About-Services.html), or [actions](About-Actions.html). ROS 2 uses a simplified description language, the interface definition language (...
large_dataset/raw/docs/ros2/about-interfaces/about-interfaces_iron.md
126197ed-7fdb-5828-8e04-31177fc69488
docs
ros2
ros2_about-interfaces
iron
2
## [Messages](#id2)[](#messages "Link to this heading") Messages are a way for a ROS 2 node to send data on the network to other ROS nodes, with no response expected. For instance, if a ROS 2 node reads temperature data from a sensor, it can then publish that data on the ROS 2 network using a `Temperature` message. O...
large_dataset/raw/docs/ros2/about-interfaces/about-interfaces_iron.md
71b67dcf-0a54-5ac2-b0da-b433097c5e44
docs
ros2
ros2_about-interfaces
iron
3
#### [Field types](#id4)[](#field-types "Link to this heading") Field types can be: * a built-in-type * names of Message descriptions defined on their own, such as “geometry\_msgs/PoseStamped” *Built-in-types currently supported:* | Type name | [C++](https://design.ros2.org/articles/generated_interfaces_cpp.html) ...
large_dataset/raw/docs/ros2/about-interfaces/about-interfaces_iron.md
1afc3ca8-7179-57a2-b983-4b25e163a894
docs
ros2
ros2_about-interfaces
iron
4
| int64 | int64\_t | builtins.int\* | long long | | uint64 | uint64\_t | builtins.int\* | unsigned long long | | string | std::string | builtins.str | string | | wstring | std::u16string | builtins.str | wstring | *Every built-in-type can be used to define arrays:* | Type name | [C++](https://design.ros2.org/articles...
large_dataset/raw/docs/ros2/about-interfaces/about-interfaces_iron.md
3c7d924d-65be-5367-bf08-16f76a98f467
docs
ros2
ros2_about-interfaces
iron
5
int32[] unbounded_integer_array int32[5] five_integers_array int32[<=5] up_to_five_integers_array string string_of_unbounded_size string<=10 up_to_ten_characters_string string[<=5] up_to_five_unbounded_strings string<=10[] unbounded_array_of_strings_up_to_ten_characters_each string<=10[<=5] up_to_five_strings_up_to_t...
large_dataset/raw/docs/ros2/about-interfaces/about-interfaces_iron.md
eb76ec95-c88b-5dab-a537-551f9376f138
docs
ros2
ros2_about-interfaces
iron
6
Defining a default value is done by adding a third element to the field definition line, i.e: ```None fieldtype fieldname fielddefaultvalue ``` For example: ```None uint8 x 42 int16 y -2000 string full_name "John Doe" int32[] samples [-200, -100, 0, 100, 200] ``` Note * string values must be defined in single `'` ...
large_dataset/raw/docs/ros2/about-interfaces/about-interfaces_iron.md
8c14486b-3473-5e42-879c-91a945b401b2
docs
ros2
ros2_about-interfaces
iron
7
## [Services](#id8)[](#services "Link to this heading") Services are a request/response communication, where the client (requester) is waiting for the server (responder) to make a short computation and return a result. Services are described and defined in `.srv` files in the `srv/` directory of a ROS package. A se...
large_dataset/raw/docs/ros2/about-interfaces/about-interfaces_iron.md
b4237987-2c3c-5f72-9b9e-0cd151755e94
docs
ros2
ros2_about-interfaces
iron
8
uint32 an_integer ``` You cannot embed another service inside of a service. ## [Actions](#id9)[](#actions "Link to this heading") Actions are a long-running request/response communication, where the action client (requester) is waiting for the action server (the responder) to take some action and return a result. I...
large_dataset/raw/docs/ros2/about-interfaces/about-interfaces_iron.md
0fa99740-b570-59b0-9be0-4baa8f773db8
docs
ros2
ros2_about-interfaces
iron
9
There can be arbitrary numbers of request fields (including zero), arbitrary numbers of response fields (including zero), and arbitrary numbers of feedback fields (including zero). The `<request_type>`, `<response_type>`, and `<feedback_type>` follow all of the same rules as the `<type>` for a message. The `<request_f...
large_dataset/raw/docs/ros2/about-interfaces/about-interfaces_iron.md
db32cb8d-366c-5484-90cb-a05cea3b92a6
docs
ros2
ros2_about-interfaces
iron
10
[Next](About-Topics.html "Topics") --- © Copyright 2026, Open Robotics. Built with [Sphinx](https://www.sphinx-doc.org/) using a [theme](https://github.com/readthedocs/sphinx_rtd_theme) provided by [Read the Docs](https://readthedocs.org).
large_dataset/raw/docs/ros2/about-interfaces/about-interfaces_iron.md
20222a04-46a8-5846-8d95-be859e903655
docs
ros2
ros2_about-interfaces
jazzy
0
# Interfaces Source: https://docs.ros.org/en/jazzy/Concepts/Basic/About-Interfaces.html Version: jazzy * [Concepts](../../Concepts.html) * [Basic Concepts](../Basic.html) * Interfaces * [Edit on GitHub](https://github.com/ros2/ros2_documentation/blob/jazzy/source/Concepts/Basic/About-Interfaces.rst) --- **You're r...
large_dataset/raw/docs/ros2/about-interfaces/about-interfaces_jazzy.md
254d460b-b25a-5e28-8ddd-784cd4f42662
docs
ros2
ros2_about-interfaces
jazzy
1
## [Background](#id1)[](#background "Link to this heading") ROS applications typically communicate through interfaces of one of three types: [topics](About-Topics.html), [services](About-Services.html), or [actions](About-Actions.html). ROS 2 uses a simplified description language, the interface definition language (...
large_dataset/raw/docs/ros2/about-interfaces/about-interfaces_jazzy.md
5c78c20c-beab-59e2-9db9-648c3d3bb3ea
docs
ros2
ros2_about-interfaces
jazzy
2
## [Messages](#id2)[](#messages "Link to this heading") Messages are a way for a ROS 2 node to send data on the network to other ROS nodes, with no response expected. For instance, if a ROS 2 node reads temperature data from a sensor, it can then publish that data on the ROS 2 network using a `Temperature` message. O...
large_dataset/raw/docs/ros2/about-interfaces/about-interfaces_jazzy.md
ec0d3f5d-4b06-57af-b39c-e3506a2dfbd0
docs
ros2
ros2_about-interfaces
jazzy
3
#### [Field types](#id4)[](#field-types "Link to this heading") Field types can be: * a built-in-type * names of Message descriptions defined on their own, such as “geometry\_msgs/PoseStamped” *Built-in-types currently supported:* | Type name | [C++](https://design.ros2.org/articles/generated_interfaces_cpp.html) ...
large_dataset/raw/docs/ros2/about-interfaces/about-interfaces_jazzy.md
729203a6-e0d6-5d85-9edf-d1f2976ca594
docs
ros2
ros2_about-interfaces
jazzy
4
| int64 | int64\_t | builtins.int\* | long long | | uint64 | uint64\_t | builtins.int\* | unsigned long long | | string | std::string | builtins.str | string | | wstring | std::u16string | builtins.str | wstring | *Every built-in-type can be used to define arrays:* | Type name | [C++](https://design.ros2.org/articles...
large_dataset/raw/docs/ros2/about-interfaces/about-interfaces_jazzy.md
380de0de-4a76-5a14-a9d2-c352e221cf43
docs
ros2
ros2_about-interfaces
jazzy
5
int32[] unbounded_integer_array int32[5] five_integers_array int32[<=5] up_to_five_integers_array string string_of_unbounded_size string<=10 up_to_ten_characters_string string[<=5] up_to_five_unbounded_strings string<=10[] unbounded_array_of_strings_up_to_ten_characters_each string<=10[<=5] up_to_five_strings_up_to_t...
large_dataset/raw/docs/ros2/about-interfaces/about-interfaces_jazzy.md
1b7565a2-010b-59aa-ac02-43e353220fe3
docs
ros2
ros2_about-interfaces
jazzy
6
Defining a default value is done by adding a third element to the field definition line, i.e: ```None fieldtype fieldname fielddefaultvalue ``` For example: ```None uint8 x 42 int16 y -2000 string full_name "John Doe" int32[] samples [-200, -100, 0, 100, 200] ``` Note * string values must be defined in single `'` ...
large_dataset/raw/docs/ros2/about-interfaces/about-interfaces_jazzy.md
2b258b45-f2df-52b5-a615-e18888ff4308
docs
ros2
ros2_about-interfaces
jazzy
7
## [Services](#id8)[](#services "Link to this heading") Services are a request/response communication, where the client (requester) is waiting for the server (responder) to make a short computation and return a result. Services are described and defined in `.srv` files in the `srv/` directory of a ROS package. A se...
large_dataset/raw/docs/ros2/about-interfaces/about-interfaces_jazzy.md
925dd7c1-3c58-5960-a268-8c7fd84a775e
docs
ros2
ros2_about-interfaces
jazzy
8
uint32 an_integer ``` You cannot embed another service inside of a service. ## [Actions](#id9)[](#actions "Link to this heading") Actions are a long-running request/response communication, where the action client (requester) is waiting for the action server (the responder) to take some action and return a result. I...
large_dataset/raw/docs/ros2/about-interfaces/about-interfaces_jazzy.md
b989fa64-6f23-5759-b0e3-01cf157e93dd
docs
ros2
ros2_about-interfaces
jazzy
9
There can be arbitrary numbers of request fields (including zero), arbitrary numbers of response fields (including zero), and arbitrary numbers of feedback fields (including zero). The `<request_type>`, `<response_type>`, and `<feedback_type>` follow all of the same rules as the `<type>` for a message. The `<request_f...
large_dataset/raw/docs/ros2/about-interfaces/about-interfaces_jazzy.md