code: def is_floating_point(x):
      if hasattr(torch, "is_floating_point"):
          return torch.is_floating_point(x)
      try:
          torch_type = x.type()
          return (
              torch_type.endswith("FloatTensor")
              or torch_type.endswith("HalfTensor")
              or torch_type.endswith("DoubleTensor")
          )
      except AttributeError:
          return False
  
file_path: apex/apex/amp/compat.py
imports: import torch
label_desc: Use image node_id 5 for calling a global function with example usage: is_floating_point(x) and returns: torch, unknown, False