← 返回 openai 的题目列表Transformer Model Debugging
类型:online_judge
Given an issue in a multi-head attention mechanism, find and fix errors in the Transformer model. The model uses multi-head self-attention and feed-forward neural network modules. Errors may occur in linear transformations, attention score computation, position encoding, etc. Specific requirements are as follows:
Provide the damaged multi-head self-attention mechanism code snippet.
Describe the cause of the problem and its effect.
Write Python code to fix the error so the model can function correctly.
Input: None.
Output: Corrected Transformer model.
Example: None.