concat_softmax
ConcatSoftmax
¶
Bases: torch.nn.Module
Applies softmax to the concatenation of a list of tensors.
Source code in pytorch_adapt\layers\concat_softmax.py
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
|
__init__(dim=1)
¶
Parameters:
Name | Type | Description | Default |
---|---|---|---|
dim |
int
|
a dimension along which softmax will be computed |
1
|
Source code in pytorch_adapt\layers\concat_softmax.py
11 12 13 14 15 16 17 |
|
forward(*x)
¶
Parameters:
Name | Type | Description | Default |
---|---|---|---|
*x |
torch.Tensor
|
A sequence of tensors to be concatenated |
()
|
Source code in pytorch_adapt\layers\concat_softmax.py
19 20 21 22 23 24 25 |
|