Skip to content

Function: addAttentionMap() ​

ts
function addAttentionMap(plot, opts): AttentionMapHandle;

Defined in: ml/charts.ts:357

Transformer attention as a heatmap with query 0 at the top, key 0 at the left.

Parameters ​

ParameterType
plotPlot
optsAttentionMapOptions

Returns ​

AttentionMapHandle

MIT licensed. WebGL2 required.