Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 590 Bytes

README.md

File metadata and controls

16 lines (13 loc) · 590 Bytes

bert4keras-CMLM

inputs:

  • token_ids: [batch_size, 2*N+1, max_len] 其中仅第 N 行包含mask
  • segment_ids: [batch_size, 2*N+1, max_len]
  • target_ids: [batch_size, max_len]
  • is_masked: [batch_size, max_len]

outputs:

  • loss: [batch_size, ]
  • acc: [batch_size, ]

outputs实际没有用到,保证第一个维度为batch_size即可