-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
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
重构class Matrix里面的一些计算API #703
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
class Matrix里面的一些计算API的参数是通过shared_ptr来传递,这个看起并没什么必要。MatrixPtr应该是Matrix的一个wrapper,但Matrix自身并不需要用这个wrapper。
可以将这些API的参数修改成传递引用的方式,并且将test_matrixCompare.cpp里面的测试挪到test_Matrix.cpp里面(参考issue #695 和pr #643 )。
大致看了一下这些API是可以修改的,
contextProjectionForward
contextProjectionBackward
contextProjectionBackwardData
contextProjectionBackwardWeight
classificationError
mul
The text was updated successfully, but these errors were encountered: