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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions