{1}试图在cd1}中复制{1}
我尝试了一个静态矩阵,我需要将其加载到seqToseq
培训管道中,例如:
>>> import numpy as np
>>> x = np.random.rand(3,2)
>>> x
array([[ 0.64077103, 0.03278357],
[ 0.47133411, 0.16309775],
[ 0.63986919, 0.07130613]])
# where there is 3 target words and 2 source words,
# and each cell in the matrix represents some co-occurrence probabilities.
在seqToseq_net
演示中,这个矩阵需要乘以^{
目标是通过将注意力层与静态矩阵相乘来影响注意力层:
^{3}$我试着浏览了^{
如何在seqToseq演示中加载矩阵来更改注意力层?
上例中some_sort_of_layer
和{
目前没有回答
相关问题 更多 >
编程相关推荐