Crossentropy on specific channel of segmentation?

is there a way to use CE loss on some channels of segmentation output and ignore some selected channels? so we basically update some channels