This commit is contained in:
parent
3a9a65fdd8
commit
d552cf25ff
|
@ -1658,7 +1658,7 @@
|
|||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.9.18"
|
||||
"version": "3.9.12"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue