code: def safe_log(x):
      """
      Like :func:`torch.log` but avoids infinite gradients at log(0)
      by clamping them to at most ``1 / finfo.eps``.
      """
      return _SafeLog.apply(x)
  
file_path: pyro/pyro/ops/special.py
imports: import functools
  import math
  import operator
  import weakref
  from typing import Dict
  import numpy
  import torch
  from numpy.polynomial.hermite import hermgauss
label_desc: Use image node_id 1 for calling a global function with example usage: safe_log(x) and returns: _SafeLog