PaddleClas/ppcls/arch/gears/identity_head.py

9 lines
208 B
Python
Raw Normal View History

2021-06-07 15:05:26 +08:00
from paddle import nn
2021-06-07 14:22:53 +08:00
class IdentityHead(nn.Layer):
def __init__(self):
super(IdentityHead, self).__init__()
def forward(self, x, label=None):
return {"features": x, "logits": None}