File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -164,13 +164,13 @@ gall = Flux.batch(data)
164
164
# gall is a GNNGraph containing many graphs
165
165
@assert gall. num_graphs == 160
166
166
@assert gall. num_nodes == 1600 # 10 nodes x 160 graphs
167
- @assert gall. num_edges == 9600 # 30 undirected edges x 2 directions x 160 graphs
167
+ @assert gall. num_edges == 4800 # 30 undirected edges x 160 graphs
168
168
169
169
# Let's create a mini-batch from gall
170
- g23, _ = getgraph (gall, 2 : 3 )
170
+ g23 = getgraph (gall, 2 : 3 )
171
171
@assert g23. num_graphs == 2
172
- @assert g23. num_nodes == 20 # 10 nodes x 160 graphs
173
- @assert g23. num_edges == 120 # 30 undirected edges x 2 directions x 2 graphs x
172
+ @assert g23. num_nodes == 20 # 10 nodes x 2 graphs
173
+ @assert g23. num_edges == 60 # 30 undirected edges X 2 graphs
174
174
175
175
# We can pass a GNNGraph to Flux's DataLoader
176
176
train_loader = DataLoader (gall, batchsize= 16 , shuffle= true )
You can’t perform that action at this time.
0 commit comments