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

about the patch_partition #18

Open
FairyYukikaze opened this issue Aug 17, 2024 · 1 comment
Open

about the patch_partition #18

FairyYukikaze opened this issue Aug 17, 2024 · 1 comment

Comments

@FairyYukikaze
Copy link

When training a classification task, I encountered the following error: RuntimeError: Trying to create tensor with negative dimension -2147486105: [-2147486105]. Why would num be a negative value?

@Aristo23333
Copy link
Collaborator

When training a classification task, I encountered the following error: RuntimeError: Trying to create tensor with negative dimension -2147486105: [-2147486105]. Why would num be a negative value?

Hi! This issue is due to a division by zero error. You can recover it by add this line. Sorry for my original code containing this bug.
image

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

2 participants