Closed YanjieHe closed 3 years ago
When the w_node matrix is empty, numpy gives the following warning:
w_node
numpy
RuntimeWarning: invalid value encountered in double_scalars
Therefore, I added the check. If the matrix is empty, then we don't need to update w_node.
Thanks, merged.
When the
w_node
matrix is empty,numpy
gives the following warning:Therefore, I added the check. If the matrix is empty, then we don't need to update
w_node
.