nn/layers/attention.v (6.5KB) and nn/layers/positional_encoding.v exist but are
never demonstrated in examples/.
Task
Create examples/nn_transformer_attention/ with:
main.v — self-attention demo with positional encoding
README.md — explanation of attention mechanism and how to run
Verification
- Example compiles and runs cleanly
nn/layers/attention.v(6.5KB) andnn/layers/positional_encoding.vexist but arenever demonstrated in
examples/.Task
Create
examples/nn_transformer_attention/with:main.v— self-attention demo with positional encodingREADME.md— explanation of attention mechanism and how to runVerification