Skip to content

Commit 8aa2023

Browse files
Update src/GNNGraphs/utils.jl
Co-authored-by: Carlo Lucibello <[email protected]>
1 parent 661d3e8 commit 8aa2023

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GNNGraphs/utils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function cat_features(x1::NamedTuple, x2::NamedTuple)
2727
NamedTuple(k => cat_features(getfield(x1,k), getfield(x2,k)) for k in keys(x1))
2828
end
2929

30-
function cat_features(xs::Vector{NamedTuple{T1, T2}}) where {T1, T2}
30+
function cat_features(xs::Vector{<:NamedTuple})
3131
symbols = [sort(collect(keys(x))) for x in xs]
3232
all(y->y==symbols[1], symbols) || @error "cannot concatenate feature data with different keys"
3333
length(xs) == 1 && return xs[1]

0 commit comments

Comments
 (0)