We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
paddle 目前提供的dotmul_operator是向量对应元素相乘的操作,没有对乘积进行求和。如何实现计算向量内积?
The text was updated successfully, but these errors were encountered:
可以使用 paddle.layer.linear_comb。
dot_product = paddle.layer.linear_comb(weights=layer1, vectors=layer2)
该layer原本实现的是矩阵与向量间的乘法,比较通用,实际使用时可以将向量作为矩阵,从而实现向量内积操作。因为该layer的通用性,在使用该layer计算向量内积时,耗时相对较长。
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
paddle 目前提供的dotmul_operator是向量对应元素相乘的操作,没有对乘积进行求和。如何实现计算向量内积?
The text was updated successfully, but these errors were encountered: