MCPcopy Create free account
hub / github.com/MorvanZhou/NLP-Tutorials / export_attention

Function export_attention

transformer.py:245–258  ·  view source on GitHub ↗
(model, data, name="transformer")

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

transformer.pyFile · 0.70

Calls 2

sampleMethod · 0.45
translateMethod · 0.45

Tested by

no test coverage detected