xiexh20's picture
add hdm demo v1
2fd6166
raw
history blame
162 Bytes
import torch.nn as nn
from . import functional as F
__all__ = ['KLLoss']
class KLLoss(nn.Module):
def forward(self, x, y):
return F.kl_loss(x, y)