This commit is contained in:
明硕 2024-05-17 14:41:27 +08:00
parent 3a9a65fdd8
commit d552cf25ff
2 changed files with 2 additions and 7 deletions

View File

@ -1658,7 +1658,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.18"
"version": "3.9.12"
}
},
"nbformat": 4,

View File

@ -351,12 +351,7 @@
"output_type": "execute_result"
}
],
"source": [
"# version 4: 自注意力的实现\n",
"torch.manual_seed(1337)\n",
"B,T,C = 4,8,32 # batch, time, channels\n",
"x = torch.randn(B,T,C)"
]
"source": []
},
{
"cell_type": "code",