Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Website
Tasks
HuggingChat
Collections
Languages
Organizations
Community
Blog
Posts
Daily Papers
Learn
Discord
Forum
GitHub
Solutions
Team & Enterprise
Hugging Face PRO
Enterprise Support
Inference Providers
Inference Endpoints
Storage Buckets
Log In
Sign Up
Spaces:
Duplicated from
omnipart/OmniPart
FDGod
/
OmniPart
like
0
Build error
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
11 months 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)