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


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}