We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31039e4 commit 0fb4139Copy full SHA for 0fb4139
src/GNNGraphs/transform.jl
@@ -364,8 +364,8 @@ function Flux.batch(gs::Vector{<:GNNGraph})
364
if all(y -> isa(y, COO_T), [g.graph for g in gs] )
365
edge_indices = [edge_index(g) for g in gs]
366
nodesum = cumsum([0, nodes...])[1:end-1]
367
- s = reduce(vcat, [ei[1] .+ nodesum[ii] for (ii,ei) in enumerate(edge_indices)])
368
- t = reduce(vcat, [ei[2] .+ nodesum[ii] for (ii,ei) in enumerate(edge_indices)])
+ s = cat_features([ei[1] .+ nodesum[ii] for (ii, ei) in enumerate(edge_indices)])
+ t = cat_features([ei[2] .+ nodesum[ii] for (ii, ei) in enumerate(edge_indices)])
369
w = reduce(vcat, [get_edge_weight(g) for g in gs])
370
w = w isa Vector{Nothing} ? nothing : w
371
graph = (s, t, w)
0 commit comments