You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems like the GNNGraph constructor switches between where it is backed by a dense or sparse matrix depending on sparsity.
This kinda type instability is consider not so bad because it is handled by the small unions optimization.
However, when you map over these the resulting collectio becomes a Vector{Any}.
Which does not benifit from small unions optimization.
And I think it is very normal to map over these, when constructing graphs for all your training data.
It seems like the GNNGraph constructor switches between where it is backed by a dense or sparse matrix depending on sparsity.
This kinda type instability is consider not so bad because it is handled by the small unions optimization.
However, when you
map
over these the resulting collectio becomes aVector{Any}
.Which does not benifit from small unions optimization.
And I think it is very normal to map over these, when constructing graphs for all your training data.
Noticed in CellBH/DLkitty#13
The text was updated successfully, but these errors were encountered: