Hi,
argument ‘size_average’ is deprecated,
instead of that now you use
print(F.cross_entropy(x,y,w, reduction=‘sum’)) instead of ‘size_average’ = False
print(F.cross_entropy(x,y,w, reduction=‘mean’) instead of ‘size_average’ = True