Skip to content

Force equal batch sizes for ReshufflingBatchSubsampling #224

@Red-Portal

Description

@Red-Portal

Turns out DifferentiationInterface.prepare_gradient requires the batch sizes to be exactly equal. Currently, if the number of samples does not exactly divide by the batch size, the last batch might end up having a different size. This needs to be fixed if we want to use prepare_gradient in a subsampling context.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions