Commit c726938f by xiaotong

fix a small bug

parent 7d201bf2
...@@ -91,7 +91,7 @@ dE/db = dE/dc * b.reduce(0,...,n-1,n+1,...) * \beta ...@@ -91,7 +91,7 @@ dE/db = dE/dc * b.reduce(0,...,n-1,n+1,...) * \beta
void XMathGrad::GradSumDim(XTensor * node) void XMathGrad::GradSumDim(XTensor * node)
{ {
XLink &income = node->income; XLink &income = node->income;
CheckNTErrors(income.tailNum == 2, "Wrong input tensor number for SUM!"); CheckNTErrors(income.tailNum == 2, "Wrong input tensor number for SUMDIM!");
XTensor * a = income.tails[0]; XTensor * a = income.tails[0];
XTensor * b = income.tails[1]; XTensor * b = income.tails[1];
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论