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
assert0<=modality_type<self.num_modalities, f'received a modality index that is out of range. only {self.num_modalities} modalities specified'
2346
2347
2347
2348
channel_dim=0ifmod.channel_first_latentelse-1
2349
+
2348
2350
assertmod.dim_latent==modality_tensor.shape[channel_dim], f'mismatch for modality latent dimension - expected {mod.dim_latent} but received {modality_tensor.shape[-1]} - modality shape is {tuple(modality_tensor.shape)}, perhaps you need to set `channel_first_latent` to the correct value'
2351
+
assertmod.num_dim== (len(modality_tensor.shape) -1), f'mismatch for modality number of dimensions - expected {mod.num_dim} but received {len(modality_tensor.shape) -1}{modality_tensor.shape}'
2349
2352
2350
2353
# auto ward against scalars (lone start end tokens)
0 commit comments