<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def xloss(logits, labels, ignore=None):
 """ Cross entropy loss """

    return F.cross_entropy(logits, Variable(labels), ignore_index=255)