-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support setindex with views (#240)
* feat: support setindex with views * Update test/basic.jl Co-authored-by: Sergio Sánchez Ramírez <[email protected]> --------- Co-authored-by: Sergio Sánchez Ramírez <[email protected]>
- Loading branch information
Showing
2 changed files
with
64 additions
and
3 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
f34ec8f
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.
Reactant.jl Benchmarks
ViT base (256 x 256 x 3 x 32)/forward/CPU/Reactant (optimize = :after_enzyme)
7027955167
ns5239134607
ns1.34
ViT base (256 x 256 x 3 x 32)/forward/CPU/Reactant
5911790203
ns5354972275
ns1.10
ViT base (256 x 256 x 3 x 32)/forward/CPU/Reactant (optimize = :before_enzyme)
5039003346
ns5066098092
ns0.99
ViT base (256 x 256 x 3 x 32)/forward/CPU/Reactant (optimize = :only_enzyme)
7620308614
ns7784224752
ns0.98
ViT base (256 x 256 x 3 x 32)/forward/CPU/Lux
31357074001
ns34116607328
ns0.92
ViT small (256 x 256 x 3 x 4)/forward/CPU/Reactant (optimize = :after_enzyme)
1572787384
ns1591873731
ns0.99
ViT small (256 x 256 x 3 x 4)/forward/CPU/Reactant
1548995246
ns1568425232
ns0.99
ViT small (256 x 256 x 3 x 4)/forward/CPU/Reactant (optimize = :before_enzyme)
1555509740
ns1561105174
ns1.00
ViT small (256 x 256 x 3 x 4)/forward/CPU/Reactant (optimize = :only_enzyme)
3467552492
ns3376666620
ns1.03
ViT small (256 x 256 x 3 x 4)/forward/CPU/Lux
3419731143
ns3453230369.5
ns0.99
ViT tiny (256 x 256 x 3 x 32)/forward/CPU/Reactant (optimize = :after_enzyme)
2180418814
ns2206471816
ns0.99
ViT tiny (256 x 256 x 3 x 32)/forward/CPU/Reactant
2173460673
ns2201801664
ns0.99
ViT tiny (256 x 256 x 3 x 32)/forward/CPU/Reactant (optimize = :before_enzyme)
2158353524
ns2205219361
ns0.98
ViT tiny (256 x 256 x 3 x 32)/forward/CPU/Reactant (optimize = :only_enzyme)
3927830322
ns4126344490
ns0.95
ViT tiny (256 x 256 x 3 x 32)/forward/CPU/Lux
6253378741.5
ns6003789905.5
ns1.04
ViT tiny (256 x 256 x 3 x 4)/forward/CPU/Reactant (optimize = :after_enzyme)
1440134479
ns1489915239
ns0.97
ViT tiny (256 x 256 x 3 x 4)/forward/CPU/Reactant
1421557207
ns1467369457
ns0.97
ViT tiny (256 x 256 x 3 x 4)/forward/CPU/Reactant (optimize = :before_enzyme)
1428360591
ns1479287632
ns0.97
ViT tiny (256 x 256 x 3 x 4)/forward/CPU/Reactant (optimize = :only_enzyme)
3208488833
ns3357859792
ns0.96
ViT tiny (256 x 256 x 3 x 4)/forward/CPU/Lux
1139085595.5
ns1245410178
ns0.91
ViT tiny (256 x 256 x 3 x 16)/forward/CPU/Reactant (optimize = :after_enzyme)
1712651271
ns1761398781
ns0.97
ViT tiny (256 x 256 x 3 x 16)/forward/CPU/Reactant
1706763760
ns1751130703
ns0.97
ViT tiny (256 x 256 x 3 x 16)/forward/CPU/Reactant (optimize = :before_enzyme)
1704312368
ns1750308121
ns0.97
ViT tiny (256 x 256 x 3 x 16)/forward/CPU/Reactant (optimize = :only_enzyme)
3479746822
ns3578816935
ns0.97
ViT tiny (256 x 256 x 3 x 16)/forward/CPU/Lux
3154626911
ns3100003150
ns1.02
ViT small (256 x 256 x 3 x 16)/forward/CPU/Reactant (optimize = :after_enzyme)
2175602283
ns2228938613
ns0.98
ViT small (256 x 256 x 3 x 16)/forward/CPU/Reactant
2162683110
ns2219891927
ns0.97
ViT small (256 x 256 x 3 x 16)/forward/CPU/Reactant (optimize = :before_enzyme)
2187544254
ns2222482559
ns0.98
ViT small (256 x 256 x 3 x 16)/forward/CPU/Reactant (optimize = :only_enzyme)
3928792736
ns4053746596
ns0.97
ViT small (256 x 256 x 3 x 16)/forward/CPU/Lux
6172504320
ns6810510970
ns0.91
ViT small (256 x 256 x 3 x 32)/forward/CPU/Reactant (optimize = :after_enzyme)
2997646442
ns3083583194
ns0.97
ViT small (256 x 256 x 3 x 32)/forward/CPU/Reactant
2957532725
ns3065688335
ns0.96
ViT small (256 x 256 x 3 x 32)/forward/CPU/Reactant (optimize = :before_enzyme)
2960803098
ns3060109436
ns0.97
ViT small (256 x 256 x 3 x 32)/forward/CPU/Reactant (optimize = :only_enzyme)
4863944327
ns5026909678
ns0.97
ViT small (256 x 256 x 3 x 32)/forward/CPU/Lux
22191688400
ns14005795901
ns1.58
ViT base (256 x 256 x 3 x 16)/forward/CPU/Reactant (optimize = :after_enzyme)
3157390991
ns3259385374
ns0.97
ViT base (256 x 256 x 3 x 16)/forward/CPU/Reactant
3212937029
ns3276966977
ns0.98
ViT base (256 x 256 x 3 x 16)/forward/CPU/Reactant (optimize = :before_enzyme)
3419812778
ns3261022001
ns1.05
ViT base (256 x 256 x 3 x 16)/forward/CPU/Reactant (optimize = :only_enzyme)
5010112071
ns5268751195
ns0.95
ViT base (256 x 256 x 3 x 16)/forward/CPU/Lux
10940648930
ns13606139679
ns0.80
ViT base (256 x 256 x 3 x 4)/forward/CPU/Reactant (optimize = :after_enzyme)
1843742771
ns1917023667
ns0.96
ViT base (256 x 256 x 3 x 4)/forward/CPU/Reactant
1827524417
ns1900958836
ns0.96
ViT base (256 x 256 x 3 x 4)/forward/CPU/Reactant (optimize = :before_enzyme)
1842645194
ns1908808319
ns0.97
ViT base (256 x 256 x 3 x 4)/forward/CPU/Reactant (optimize = :only_enzyme)
3593953850
ns3796722792
ns0.95
ViT base (256 x 256 x 3 x 4)/forward/CPU/Lux
3544018917
ns3995439412
ns0.89
This comment was automatically generated by workflow using github-action-benchmark.