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 661d3e8 commit 8aa2023Copy full SHA for 8aa2023
src/GNNGraphs/utils.jl
@@ -27,7 +27,7 @@ function cat_features(x1::NamedTuple, x2::NamedTuple)
27
NamedTuple(k => cat_features(getfield(x1,k), getfield(x2,k)) for k in keys(x1))
28
end
29
30
-function cat_features(xs::Vector{NamedTuple{T1, T2}}) where {T1, T2}
+function cat_features(xs::Vector{<:NamedTuple})
31
symbols = [sort(collect(keys(x))) for x in xs]
32
all(y->y==symbols[1], symbols) || @error "cannot concatenate feature data with different keys"
33
length(xs) == 1 && return xs[1]
0 commit comments