Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
omnipart
/
OmniPart
like
37
Running
on
Zero
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
main
OmniPart
/
modules
/
PartField
/
partfield
/
model
/
PVCNN
/
pv_module
/
loss.py
omnipart
init
491eded
6 days ago
raw
Copy download link
history
blame
contribute
delete
Safe
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)