code: def _fill_with_neg_inf(t):
      """FP16-compatible function that fills a tensor with -inf."""
      return t.float().fill_(float("-inf")).type_as(t)
  
file_path: BigDL/python/llm/src/bigdl/llm/transformers/models/baichuan2.py
imports: import math
  from typing import Optional, Tuple
  import torch
  import torch.utils.checkpoint
  from torch.nn import functional
  from bigdl.llm.ggml.quantize import ggml_tensor_qtype
  from bigdl.llm.transformers.models.utils import init_kv_cache, extend_kv_cache, append_kv_cache
  from bigdl.llm.transformers.models.utils import apply_rotary_pos_emb
  from bigdl.llm.transformers.models.utils import apply_rotary_pos_emb_no_cache_xpu
  from bigdl.llm.transformers.models.utils import mlp_fusion_check
  from transformers.utils import logging
label_desc: Use image node_id 6 for calling a global function with example usage: _fill_with_neg_inf(t) and returns: t