2022-12-26から1日間の記事一覧
torch.nn.functional.cross_entropy(Input, Target, ...) において、weight (size=[tex:(C,)])を指定、ignore_index をクラスサイズC以外のインデックスに指定して (e.g. -100, -255)、label_smoothing > 0, reduction='mean'とするときだけ Out of bounds e…
torch.nn.functional.cross_entropy(Input, Target, ...) において、weight (size=[tex:(C,)])を指定、ignore_index をクラスサイズC以外のインデックスに指定して (e.g. -100, -255)、label_smoothing > 0, reduction='mean'とするときだけ Out of bounds e…