Skip to content

use of deprecated size_average=False in train_model #4

@gsimmskutta

Description

@gsimmskutta

Training models gives the warning:

/usr/local/lib/python3.6/dist-packages/torch/nn/_reduction.py:44: UserWarning: size_average and reduce args will be deprecated, please use reduction='sum' instead.
  warnings.warn(warning.format(ret))

replacing line 28 of quick_train.py with

   criterion = MSELoss(reduction='sum')

appears to be the recommended way to address this.

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