I assume you are using nn.BCEWithLogitsLoss or nn.BCELoss as your criterion for this architecture.
In the former case, you could specify the pos_weight 110 argument, where your valid class (class1) would act as the positive class.