You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: transfusion_pytorch/transfusion.py
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -826,6 +826,10 @@ def forward(
826
826
assert0<=modality_type<self.num_modalities, f'received a modality index that is out of range. only {self.num_modalities} modalities specified'
827
827
assertself.dim_latents[modality_type] ==modality_tensor.shape[-1], f'mismatch for modality latent dimension - expected {self.dim_latents[modality_type]} but received {modality_tensor.shape[-1]}'
0 commit comments