BYOL uses each view as a prediction target for the other one, and sums the two losses. This symmetry makes the objective treat both augmented views equally.
Implement symmetric_byol_loss(p1, z2, p2, z1), the sum of the two directional BYOL losses.
Apply the single-direction loss to (p1, z2) and to (p2, z1), then add.
No results yet
Run your code to check it against the examples, or submit to run every test.