提交 7790b329 authored 作者: Dustin Webb's avatar Dustin Webb

Corrected comment.

上级 6c1d269b
...@@ -694,14 +694,13 @@ def use_c_gemv(node): ...@@ -694,14 +694,13 @@ def use_c_gemv(node):
introduce NaNs. introduce NaNs.
GEMV is not always implemented consistenly across BLAS libraries. GEMV is not always implemented consistenly across BLAS libraries.
Sometimes, when beta is 0, they still perform the multiplication with Sometimes, when beta is 0, they do not perform the multiplication with
beta. As such, what was in newly allocated memory does not matter as beta. Other implmentations do. This can cause problems for the inplace
the multiplication will make all the values 0. Other implmentations do GEMV implementation if NaNs happen to be in the newly allocated but
not perform the multiplication. This can cause problems for the inplace uninitalized memory. When the multiplication is not done we do not need
GEMV implementation. When the multiplication is done we don't need to to initialize the output memory resulting in a speed up. Otherwise we
initialize the output memory resulting in a speed up. Otherwise we must must initialize the memory to avoid introducing NaN's in the output
initialize the memory to avoid introducing NaN's in the output that that weren't in the original graph.
weren't in the original graph.
The following check determines whether the output memory needs to be The following check determines whether the output memory needs to be
initiliazed. It is done here, as opposed to in global scope, because initiliazed. It is done here, as opposed to in global scope, because
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论