UserWarning: size_average and reduce args will be deprecated, please use reduction='none' instead. warnings.warn(warning.format(ret))

This warning is raised if you use the deprecated reduce or size_average argument in a criterion.
Based on your last posts (e.g. this one) you are using:
``python

self.criterion = nn.BCEWithLogitsLoss(reduce=False)
1 Like