Skip to content

Enforce long type for labels when using one class#75

Open
Dexterp37 wants to merge 1 commit intosming256:mainfrom
Dexterp37:patch-1
Open

Enforce long type for labels when using one class#75
Dexterp37 wants to merge 1 commit intosming256:mainfrom
Dexterp37:patch-1

Conversation

@Dexterp37
Copy link

Without this change, when training a model with a single class, the training will fail as torch.zeros would fill labels with floating point 0.0, which can't be used as indices.

Without this change, when training a model with a single class, the training will fail as `torch.zeros` would fill `labels` with floating point `0.0`, which can't be used as indices.
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

Successfully merging this pull request may close these issues.

1 participant