def compute_cam_v2(
    end_points,
    logits,
    cls_label,
    num_class=21,
    use_attention=True,
    attention_dim=128,
    strides=(15, 16),
    is_training=True,
    valid_mask=None,
    net='xception_65',