def inception_score_from_logits(logits, num_repeats=1):
  """Calculate the Inception Score over sampled logits."""
  logits = logits.reshape(num_repeats, -1, *logits.shape[1:])
  scores = np.array(
      [tfgan.eval.classifier_score_from_logits(l).numpy() for l in logits])
  return {'mean': scores.mean(), 'std': scores.std()}
Calculate the Inception Score over sampled logits.
videogvt/train_lib/inception_score.py