pull/792/head
weishengyu 2021-06-05 17:45:31 +08:00
parent a445ff1f28
commit ce43150ffe
1 changed files with 2 additions and 1 deletions

View File

@ -57,7 +57,8 @@ class RecModel(nn.Layer):
x = self.backbone(x)
if self.neck is not None:
x = self.neck(x)
y = x
if self.head is not None:
y = self.head(x, label)
else:
y = None
return {"features": x, "logits": y}