Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expected Dimensions of features, targets, preds in ConR Function #3

Open
teinhonglo opened this issue Sep 20, 2024 · 0 comments
Open

Comments

@teinhonglo
Copy link

Hi, I have a question about the expected dimensions for features, targets, and preds in the ConR function. I noticed the use of operations like torch.einsum and flatten, but it's not clear what the intended shapes of these inputs should be.

Currently, I am using the following dimensions:

features: [B, L, D] where B is the batch size, L is the sequence length, and D is the feature dimension.
targets: [B, L]
preds: [B, L]
Could you confirm whether these dimensions align with the function’s intended input? Also, are there any specific assumptions regarding L or D that we should be aware of when computing the loss?

Thanks for your clarification!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant