Skip to content

ModuleAttributeError: 'Embedding' object has no attribute 'weights' #104

@xingq98

Description

@xingq98

我把模型换成Bertweet之后训练时候报错:AttributeError: 'Embedding' object has no attribute 'weights'
报错的代码是在base.py里的self.embedding_dim = tf.shape(self.embedding_layer.weights[0])[1],请问是因为这个多任务训练不能使用Bertweet吗?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions