-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #670 from ldeso/add-cartesian-embedding-methods
Add Cartesian Embedding methods
- Loading branch information
Showing
2 changed files
with
93 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ca23485
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Benchmark Results
Dense(2 => 2)/cpu/reverse/ReverseDiff (compiled)/(2, 128)
3668.125
ns3646.75
ns1.01
Dense(2 => 2)/cpu/reverse/Zygote/(2, 128)
7213.5
ns7285
ns0.99
Dense(2 => 2)/cpu/reverse/Tracker/(2, 128)
20719
ns21210
ns0.98
Dense(2 => 2)/cpu/reverse/ReverseDiff/(2, 128)
9491.8
ns9781.666666666666
ns0.97
Dense(2 => 2)/cpu/reverse/Flux/(2, 128)
8806
ns9087.2
ns0.97
Dense(2 => 2)/cpu/reverse/SimpleChains/(2, 128)
4459.5
ns4453.888888888889
ns1.00
Dense(2 => 2)/cpu/reverse/Enzyme/(2, 128)
1168.8964285714287
ns1176.2706766917292
ns0.99
Dense(2 => 2)/cpu/forward/NamedTuple/(2, 128)
1114.5125
ns1112.28025477707
ns1.00
Dense(2 => 2)/cpu/forward/ComponentArray/(2, 128)
1189.8149606299212
ns1189.374074074074
ns1.00
Dense(2 => 2)/cpu/forward/Flux/(2, 128)
1789.4912280701753
ns1814.3181818181818
ns0.99
Dense(2 => 2)/cpu/forward/SimpleChains/(2, 128)
180.64739069111425
ns179.93324061196105
ns1.00
Dense(20 => 20)/cpu/reverse/ReverseDiff (compiled)/(20, 128)
17293
ns17212
ns1.00
Dense(20 => 20)/cpu/reverse/Zygote/(20, 128)
17072
ns17463
ns0.98
Dense(20 => 20)/cpu/reverse/Tracker/(20, 128)
37099
ns36689
ns1.01
Dense(20 => 20)/cpu/reverse/ReverseDiff/(20, 128)
28267.5
ns28147.5
ns1.00
Dense(20 => 20)/cpu/reverse/Flux/(20, 128)
19726
ns20058
ns0.98
Dense(20 => 20)/cpu/reverse/SimpleChains/(20, 128)
17041
ns16921
ns1.01
Dense(20 => 20)/cpu/reverse/Enzyme/(20, 128)
4381
ns4310.5
ns1.02
Dense(20 => 20)/cpu/forward/NamedTuple/(20, 128)
3919.75
ns3867.25
ns1.01
Dense(20 => 20)/cpu/forward/ComponentArray/(20, 128)
3968.75
ns3951.125
ns1.00
Dense(20 => 20)/cpu/forward/Flux/(20, 128)
4980.714285714285
ns4787.571428571428
ns1.04
Dense(20 => 20)/cpu/forward/SimpleChains/(20, 128)
1651.1
ns1659.1
ns1.00
Conv((3, 3), 3 => 3)/cpu/reverse/ReverseDiff (compiled)/(64, 64, 3, 128)
38465553
ns38839150
ns0.99
Conv((3, 3), 3 => 3)/cpu/reverse/Zygote/(64, 64, 3, 128)
57659332.5
ns57478179
ns1.00
Conv((3, 3), 3 => 3)/cpu/reverse/Tracker/(64, 64, 3, 128)
75839555
ns68637336
ns1.10
Conv((3, 3), 3 => 3)/cpu/reverse/ReverseDiff/(64, 64, 3, 128)
88548014.5
ns80248739.5
ns1.10
Conv((3, 3), 3 => 3)/cpu/reverse/Flux/(64, 64, 3, 128)
72339313
ns66510498
ns1.09
Conv((3, 3), 3 => 3)/cpu/reverse/SimpleChains/(64, 64, 3, 128)
11961965
ns11601127
ns1.03
Conv((3, 3), 3 => 3)/cpu/reverse/Enzyme/(64, 64, 3, 128)
17669780
ns8302158.5
ns2.13
Conv((3, 3), 3 => 3)/cpu/forward/NamedTuple/(64, 64, 3, 128)
6995246
ns6958814.5
ns1.01
Conv((3, 3), 3 => 3)/cpu/forward/ComponentArray/(64, 64, 3, 128)
6962483.5
ns6935871
ns1.00
Conv((3, 3), 3 => 3)/cpu/forward/Flux/(64, 64, 3, 128)
9966425
ns9886349
ns1.01
Conv((3, 3), 3 => 3)/cpu/forward/SimpleChains/(64, 64, 3, 128)
6382304
ns6377484
ns1.00
vgg16/cpu/reverse/Zygote/(32, 32, 3, 16)
697509537
ns711495815.5
ns0.98
vgg16/cpu/reverse/Zygote/(32, 32, 3, 64)
2845090431
ns2802293498
ns1.02
vgg16/cpu/reverse/Zygote/(32, 32, 3, 2)
145155933
ns158450926
ns0.92
vgg16/cpu/reverse/Tracker/(32, 32, 3, 16)
758659457
ns745197995
ns1.02
vgg16/cpu/reverse/Tracker/(32, 32, 3, 64)
2623555098
ns2536517155
ns1.03
vgg16/cpu/reverse/Tracker/(32, 32, 3, 2)
200798179
ns186814591
ns1.07
vgg16/cpu/reverse/Flux/(32, 32, 3, 16)
699711870.5
ns698620045
ns1.00
vgg16/cpu/reverse/Flux/(32, 32, 3, 64)
2744166224
ns2703329300
ns1.02
vgg16/cpu/reverse/Flux/(32, 32, 3, 2)
126860588
ns122294200.5
ns1.04
vgg16/cpu/forward/NamedTuple/(32, 32, 3, 16)
172959021
ns172044480
ns1.01
vgg16/cpu/forward/NamedTuple/(32, 32, 3, 64)
641219872
ns643441503
ns1.00
vgg16/cpu/forward/NamedTuple/(32, 32, 3, 2)
34131572
ns45114156
ns0.76
vgg16/cpu/forward/ComponentArray/(32, 32, 3, 16)
163961135.5
ns163454975.5
ns1.00
vgg16/cpu/forward/ComponentArray/(32, 32, 3, 64)
640443712
ns628139701
ns1.02
vgg16/cpu/forward/ComponentArray/(32, 32, 3, 2)
44002993
ns29335904
ns1.50
vgg16/cpu/forward/Flux/(32, 32, 3, 16)
187456866.5
ns207955667.5
ns0.90
vgg16/cpu/forward/Flux/(32, 32, 3, 64)
713774150
ns722173872
ns0.99
vgg16/cpu/forward/Flux/(32, 32, 3, 2)
35709005
ns37423155
ns0.95
Conv((3, 3), 64 => 64)/cpu/reverse/ReverseDiff (compiled)/(64, 64, 64, 128)
1018397448
ns1242027523.5
ns0.82
Conv((3, 3), 64 => 64)/cpu/reverse/Zygote/(64, 64, 64, 128)
1855972375.5
ns1847309072
ns1.00
Conv((3, 3), 64 => 64)/cpu/reverse/Tracker/(64, 64, 64, 128)
2022754963.5
ns1988297584
ns1.02
Conv((3, 3), 64 => 64)/cpu/reverse/ReverseDiff/(64, 64, 64, 128)
2335834774.5
ns2337208631
ns1.00
Conv((3, 3), 64 => 64)/cpu/reverse/Flux/(64, 64, 64, 128)
1986661818
ns1825164998
ns1.09
Conv((3, 3), 64 => 64)/cpu/reverse/Enzyme/(64, 64, 64, 128)
553501401
ns347875405.5
ns1.59
Conv((3, 3), 64 => 64)/cpu/forward/NamedTuple/(64, 64, 64, 128)
315992941
ns318366365
ns0.99
Conv((3, 3), 64 => 64)/cpu/forward/ComponentArray/(64, 64, 64, 128)
317023478
ns319738018
ns0.99
Conv((3, 3), 64 => 64)/cpu/forward/Flux/(64, 64, 64, 128)
347738717
ns452781616
ns0.77
Conv((3, 3), 1 => 1)/cpu/reverse/ReverseDiff (compiled)/(64, 64, 1, 128)
11815270
ns11803413
ns1.00
Conv((3, 3), 1 => 1)/cpu/reverse/Zygote/(64, 64, 1, 128)
17834636
ns17882962
ns1.00
Conv((3, 3), 1 => 1)/cpu/reverse/Tracker/(64, 64, 1, 128)
19192128
ns19018033
ns1.01
Conv((3, 3), 1 => 1)/cpu/reverse/ReverseDiff/(64, 64, 1, 128)
23877834
ns23755630
ns1.01
Conv((3, 3), 1 => 1)/cpu/reverse/Flux/(64, 64, 1, 128)
17885797.5
ns17832966.5
ns1.00
Conv((3, 3), 1 => 1)/cpu/reverse/SimpleChains/(64, 64, 1, 128)
1159948
ns1148767
ns1.01
Conv((3, 3), 1 => 1)/cpu/reverse/Enzyme/(64, 64, 1, 128)
5756297
ns2512938
ns2.29
Conv((3, 3), 1 => 1)/cpu/forward/NamedTuple/(64, 64, 1, 128)
2045846
ns2035570
ns1.01
Conv((3, 3), 1 => 1)/cpu/forward/ComponentArray/(64, 64, 1, 128)
2025049
ns2023578.5
ns1.00
Conv((3, 3), 1 => 1)/cpu/forward/Flux/(64, 64, 1, 128)
2063594
ns2055760
ns1.00
Conv((3, 3), 1 => 1)/cpu/forward/SimpleChains/(64, 64, 1, 128)
196457
ns195727.5
ns1.00
Dense(200 => 200)/cpu/reverse/ReverseDiff (compiled)/(200, 128)
293588
ns288322
ns1.02
Dense(200 => 200)/cpu/reverse/Zygote/(200, 128)
266698
ns262603
ns1.02
Dense(200 => 200)/cpu/reverse/Tracker/(200, 128)
372466.5
ns354936.5
ns1.05
Dense(200 => 200)/cpu/reverse/ReverseDiff/(200, 128)
411890
ns400938
ns1.03
Dense(200 => 200)/cpu/reverse/Flux/(200, 128)
275955
ns270257
ns1.02
Dense(200 => 200)/cpu/reverse/SimpleChains/(200, 128)
409134
ns397421
ns1.03
Dense(200 => 200)/cpu/reverse/Enzyme/(200, 128)
83476
ns83306
ns1.00
Dense(200 => 200)/cpu/forward/NamedTuple/(200, 128)
81713
ns80271
ns1.02
Dense(200 => 200)/cpu/forward/ComponentArray/(200, 128)
81983
ns80581
ns1.02
Dense(200 => 200)/cpu/forward/Flux/(200, 128)
87163
ns85480
ns1.02
Dense(200 => 200)/cpu/forward/SimpleChains/(200, 128)
104885
ns104617
ns1.00
Conv((3, 3), 16 => 16)/cpu/reverse/ReverseDiff (compiled)/(64, 64, 16, 128)
194040756
ns187932820.5
ns1.03
Conv((3, 3), 16 => 16)/cpu/reverse/Zygote/(64, 64, 16, 128)
322670128
ns321827872.5
ns1.00
Conv((3, 3), 16 => 16)/cpu/reverse/Tracker/(64, 64, 16, 128)
389461276
ns393773632.5
ns0.99
Conv((3, 3), 16 => 16)/cpu/reverse/ReverseDiff/(64, 64, 16, 128)
444888078.5
ns454117809
ns0.98
Conv((3, 3), 16 => 16)/cpu/reverse/Flux/(64, 64, 16, 128)
370487396.5
ns366877761
ns1.01
Conv((3, 3), 16 => 16)/cpu/reverse/SimpleChains/(64, 64, 16, 128)
322523445.5
ns309426428
ns1.04
Conv((3, 3), 16 => 16)/cpu/reverse/Enzyme/(64, 64, 16, 128)
100716976.5
ns51303991
ns1.96
Conv((3, 3), 16 => 16)/cpu/forward/NamedTuple/(64, 64, 16, 128)
43623492
ns43675671.5
ns1.00
Conv((3, 3), 16 => 16)/cpu/forward/ComponentArray/(64, 64, 16, 128)
43429429
ns43447693
ns1.00
Conv((3, 3), 16 => 16)/cpu/forward/Flux/(64, 64, 16, 128)
49450779
ns49289683
ns1.00
Conv((3, 3), 16 => 16)/cpu/forward/SimpleChains/(64, 64, 16, 128)
29173706
ns28489085
ns1.02
Dense(2000 => 2000)/cpu/reverse/ReverseDiff (compiled)/(2000, 128)
18903962
ns18511523
ns1.02
Dense(2000 => 2000)/cpu/reverse/Zygote/(2000, 128)
19514972
ns19373919.5
ns1.01
Dense(2000 => 2000)/cpu/reverse/Tracker/(2000, 128)
23289075
ns22860858
ns1.02
Dense(2000 => 2000)/cpu/reverse/ReverseDiff/(2000, 128)
24083888
ns23821494.5
ns1.01
Dense(2000 => 2000)/cpu/reverse/Flux/(2000, 128)
19573855.5
ns19452776.5
ns1.01
Dense(2000 => 2000)/cpu/reverse/Enzyme/(2000, 128)
6522431
ns6471809.5
ns1.01
Dense(2000 => 2000)/cpu/forward/NamedTuple/(2000, 128)
6516955
ns6467840.5
ns1.01
Dense(2000 => 2000)/cpu/forward/ComponentArray/(2000, 128)
6494018.5
ns6458192
ns1.01
Dense(2000 => 2000)/cpu/forward/Flux/(2000, 128)
6498216.5
ns6475071.5
ns1.00
This comment was automatically generated by workflow using github-action-benchmark.