identity_head.py 209 字节
Newer Older
W
dbg  
weishengyu 已提交
1 2
from paddle import nn

B
Bin Lu 已提交
3

W
weishengyu 已提交
4 5 6 7 8
class IdentityHead(nn.Layer):
    def __init__(self):
        super(IdentityHead, self).__init__()

    def forward(self, x, label=None):
W
weishengyu 已提交
9
        return {"features": x, "logits": None}