mirror of
https://github.com/unanmed/ginka-generator.git
synced 2026-11-19 21:34:31 +08:00
chore: 添加注释
This commit is contained in:
1 parent
bd821aa8e4
commit
102e19cefb
1 file changed
+4
@@ -408,6 +408,10 @@ class RNNGinkaLoss:
|
||||
pass
|
||||
|
||||
def rnn_loss(self, fake, target):
|
||||
"""
|
||||
fake: [B, C, H, W]
|
||||
target: [B, H, W]
|
||||
"""
|
||||
weight = torch.ones(self.num_classes)
|
||||
weight[0] = 0.3
|
||||
weight[1] = 0.5
|
||||
|
||||
Reference in new issue
Block a user