Methodcompute_loss(
self,
batch,
weighting="constant",
encoder_out=None,
tokens=None,
src/byprot/models/dplm/modules/dplm_adapter.py:95
Methodforward scores: [N, ..., C], unnormalized scores target: [N, ...] mask: [N, ...], where elements with `True` are allowed and `False`
src/byprot/modules/cross_entropy.py:38
Methodforward scores: [N, L, C], unnormalized scores target: [N, L] coord_mask: FloatTensor [N, L], where elements with `True` are allowed
src/byprot/modules/cross_entropy.py:89
Methodforward scores: [N, L, C], unnormalized scores target: [N, L] coord_mask: FloatTensor [N, L], where elements with `True` are allowed
src/byprot/modules/cross_entropy.py:156
Methodforward scores: [N, L, C], unnormalized scores target: [N, L] coord_mask: FloatTensor [N, L], where elements with `True` are allowed
src/byprot/modules/cross_entropy.py:247
Methodforward(
self,
out,
batch,
codebook_loss,
global_step=None,
predicted
src/byprot/models/structok/modules/loss.py:1711
Methodforward(
self, z, mask, temp=None, rescale_logits=False, return_logits=False
)
src/byprot/models/structok/modules/vqvae.py:332
Methodforward Args: s: [*, N_res, C_s] single representation z: [*, N_res, N_res, C_z] pair represe
src/byprot/models/structok/modules/folding_utils/structure_module.py:240