Closed kmkurn closed 5 years ago
This is to follow Pytorch's convention. When reduce is True, size_average being True means to average the log likelihood over the batch, but sum them otherwise. When reduce is False, size_average is ignored.
reduce
True
size_average
False
This argument seems to be deprecated in PyTorch 0.4 in favor of reduction. Closing this issue.
reduction
This is to follow Pytorch's convention. When
reduce
isTrue
,size_average
beingTrue
means to average the log likelihood over the batch, but sum them otherwise. Whenreduce
isFalse
,size_average
is ignored.