ZhuiyiTechnology / roformer-sim

SimBERT升级版(SimBERTv2)!
Apache License 2.0
439 stars 73 forks source link

outputs = TotalLoss([2, 3])(roformer.inputs + roformer.outputs)怎么理解呢? #24

Open XZhang00 opened 2 years ago

XZhang00 commented 2 years ago

请问一下outputs = TotalLoss([2, 3])(roformer.inputs + roformer.outputs)这句有点没看懂,可以简单讲一下吗?

xzhws commented 2 years ago

请问一下outputs = TotalLoss([2, 3])(roformer.inputs + roformer.outputs)这句有点没看懂,可以简单讲一下吗? 可以参考这里Loss的定义 https://github.com/bojone/bert4keras/blob/master/bert4keras/layers.py#L1482