Skip to content

Extending BCEWithLogitsLoss to non-scalar outputs (multi label) #345

@Leon0402

Description

@Leon0402

Hi,

currently BCEWithLogitsLoss supports only binary classification:

if module.input0.shape[1] != 1:

I have the VQAv2 taks, which is multi label, but also has soft labels i.e. multiple correct labels. Thus, I think currently it does not work with this library, because of:

What would be necessary to support my setup here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions