Commit 169805fd authored by Atreya Majumdar's avatar Atreya Majumdar
Browse files

Fixed Formatting

parent 4391109c
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -40,8 +40,10 @@ class L1Loss(Loss):
    import torch
    return torch.nn.L1Loss(reduction='none')


class HuberLoss(Loss):
  """Modified version of L1 Loss, also known as Smooth L1 loss. Less sensitive to small errors, linear for larger errors."""

  def _compute_tf_loss(self, output, labels):
    import tensorflow as tf
    output, labels = _make_tf_shapes_consistent(output, labels)
@@ -51,6 +53,7 @@ class HuberLoss(Loss):
    import torch
    return torch.nn.SmoothL1Loss(reduction='none')


class L2Loss(Loss):
  """The squared difference between the true and predicted values."""

@@ -290,7 +293,7 @@ class VAE_KLDivergence(Loss):
  """The KL_divergence between hidden distribution and normal distribution.
  
  This loss represents KL divergence losses between normal distribution(using parameter of distribution)
  based on  _[1].z
  based on  _[1].
  
  The logvar should have shape (batch_size, hidden_space) and each term represents
  standard deviation of hidden distribution. The mean shuold have