matlab2024b,有Deep Learning Toolbox,函数或变量 'transform​erEncoderL​ayer' 无法识别是为什么

Answers (1)

Isha
Isha 15 minutes ago
Edited: Isha 2 minutes ago
Hello,
This happens because “transformerEncoderLayer” is not available in your current environment.
The function belongs to Deep Learning Toolbox, and if MATLAB cannot find it (which returns empty), it means the function is not installed or not in your path Transformer Network Layers Creation Problem- missing toolbox? - MATLAB Answers - MATLAB Central
Hence, your Deep Learning Toolbox is either not updated or incomplete, so MATLAB cannot recognize the function.
Thanks.

Categories

Tags

Asked:

tao
on 13 May 2026 at 13:01

Edited:

about 8 hours ago

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!