code: def log_loss(psample, qsample):
      """Point-wise log loss."""
      loss = tf.nn.sigmoid_cross_entropy_with_logits(
          labels=tf.ones_like(psample), logits=psample
      ) + tf.nn.sigmoid_cross_entropy_with_logits(
          labels=tf.zeros_like(qsample), logits=qsample
      )
      return loss
  
file_path: edward/edward/inferences/implicit_klqp.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import six
  import tensorflow
  from edward.inferences.gan_inference import GANInference
  from edward.models import RandomVariable
  from edward.util import check_latent_vars, copy, get_session
label_desc: Use image node_id 1 for calling a global function with example usage: log_loss(psample, qsample) and returns: loss