Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SLDGroup/EMCAD
/ __init__
Method
__init__
utils/utils.py:103–105 ·
view source on GitHub ↗
(self, n_classes)
Source
from the content-addressed store, hash-verified
101
102
class
DiceLoss(nn.Module):
103
def
__init__(self, n_classes):
104
super(DiceLoss, self).__init__()
105
self.n_classes = n_classes
106
107
def
_one_hot_encoder(self, input_tensor):
108
tensor_list = []
Callers
nothing calls this directly
Calls
1
__init__
Method · 0.45
Tested by
no test coverage detected