Skip to content

Bug: TypeError when lambda_cyc_growth_target=None #1

Description

@vadori

When lambda_cyc_growth_target is left as None (its default/optional value), training crashes with:

TypeError: unsupported operand type(s) for *: 'NoneType' and 'int'

This happens at:

weight_cyc = self.calculate_weight(
    self.batches_done,
    self.lambda_cyc_growth_target * len(train_dataloader),
    0, self.lambda_cyc, 1
)

The hyperparameter therefore does not behave as truly optional.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions