0c156573a383620af5194c485bdfe642ea5b33e5,benchmarks/benchmarks/api/bench_batch.py,,track_time,#Any#,9
Before Change
// prepare graph
graphs = []
for i in range(batch_size):
u = torch.randint(20, (40,))
v = torch.randint(20, (40,))
graphs.append(dgl.graph((u, v)).to(device))
// dry run
After Change
// prepare graph
graphs = []
for graph in ds[0:batch_size][0]:
g = graph.to(device)
graphs.append(g)
// dry run
for i in range(10):
g = dgl.batch(graphs)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: dmlc/dgl
Commit Name: 0c156573a383620af5194c485bdfe642ea5b33e5
Time: 2021-01-20
Author: VoVAllen@users.noreply.github.com
File Name: benchmarks/benchmarks/api/bench_batch.py
Class Name:
Method Name: track_time
Project Name: david-abel/simple_rl
Commit Name: 335d758f3348cb2b7a1e03cb8248dfde39f8c439
Time: 2018-08-23
Author: david_abel@brown.edu
File Name: simple_rl/abstraction/state_abs/sa_helpers.py
Class Name:
Method Name: visualize_state_abstr_grid
Project Name: dmlc/dgl
Commit Name: 0c156573a383620af5194c485bdfe642ea5b33e5
Time: 2021-01-20
Author: VoVAllen@users.noreply.github.com
File Name: benchmarks/benchmarks/api/bench_batch.py
Class Name:
Method Name: track_time
Project Name: osmr/imgclsmob
Commit Name: 4ad1ebea7992d840e028ff513dc81e0073755d6e
Time: 2019-02-24
Author: osemery@gmail.com
File Name: pytorch/pytorchcv/models/others/oth_fractalnet_cifar10_2.py
Class Name: FractalNet
Method Name: forward