code: def compute(self, x_arr, y_arr):
          '''
          Compute distance.
  
          Args:
              x_arr:      `np.ndarray` of vectors.
              y_arr:      `np.ndarray` of vectors.
  
          Retruns:
              `np.ndarray` of distances.
          '''
          y_arr += 1e-08
          return np.sum(x_arr * np.log(x_arr / y_arr), axis=-1f compute(self, x_arr, y_arr):
          '''
          Compute distance.
  
          Args:
              x_arr:      `np.ndarray` of vectors.
              y_arr:      `np.ndarray` of vectors.
  
          Retruns:
              `np.ndarray` of distances.
          '''
          y_arr += 1e-08
          return np.sum(x_arr * np.log(x_arr / y_arr), axis=-1)
docs: Compute distance.
  
          Args:
              x_arr:      `np.ndarray` of vectors.
              y_arr:      `np.ndarray` of vectors.
  
          Retruns:
              `np.ndarray` of distances.