class_docstr: Xception optimized for the ImageNet dataset, as specified in
  https://arxiv.org/pdf/1610.02357.pdf
class_docstr_tok: ["Xception","optimized","for","the","ImageNet","dataset",",","as","specified","in","https",":","\/\/arxiv.org\/pdf\/1610.02357.pdf"]
code: def forward_head(self, x, pre_logits: bool = False):
      x = self.global_pool(x)
      if self.drop_rate:
          F.dropout(x, self.drop_rate, training=self.training)
      return x if pre_logits else self.fc(x)
  
imports: import torch.jit
  import torch.nn
  import torch.nn.functional
  from timm.layers import create_classifier
  from ._builder import build_model_with_cfg
  from ._registry import register_model, generate_default_cfgs, register_model_deprecations
label_desc: Use image node_id 7 for calling the Xception obj's underlying member method code with example usage: obj.forward_head(x, pre_logits) and returns: unknown