keras-io icon indicating copy to clipboard operation
keras-io copied to clipboard

Corrects node size

Open yutsai84 opened this issue 3 years ago • 0 comments
trafficstars

The existing implementation assumed the max of node_indicies is the size of the nodes.

The assumption is not alway true. For example, if the largest node index of the nodes is not in node_indicies, this assumption is wrong.

This PR addresses this by directly checking the size of nodes. That is the size of the nodes is the row number of node_representations.

yutsai84 avatar Aug 12 '22 23:08 yutsai84