coral_loss
CORALLoss
¶
Bases: torch.nn.Module
Implementation of Deep CORAL: Correlation Alignment for Deep Domain Adaptation
Source code in pytorch_adapt\layers\coral_loss.py
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
|
forward(x, y)
¶
Parameters:
Name | Type | Description | Default |
---|---|---|---|
x |
torch.Tensor
|
features from one domain |
required |
y |
torch.Tensor
|
features from the other domain |
required |
Source code in pytorch_adapt\layers\coral_loss.py
19 20 21 22 23 24 25 26 27 28 29 |
|