MCPcopy Create free account
hub / github.com/Doragd/Chinese-Chatbot-PyTorch-Implementation / binaryMatrix

Function binaryMatrix

dataload.py:15–28  ·  view source on GitHub ↗

生成mask矩阵, 0表示padding,1表示未padding shape同l,即[max_seq_len, batch_size]

(l, value)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

collate_fnFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected