-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add support for `clamp` and `clamp!` * chore: apply suggestions from code review Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * test: add simple tests * feat: allow mixed types * fix: make testing approx --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
1ff11c9
commit 3ba7c3e
Showing
4 changed files
with
41 additions
and
1 deletion.
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
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
3ba7c3e
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)
5787425685
ns6384860404
ns0.91
ViT base (256 x 256 x 3 x 32)/forward/CPU/Reactant
5292258390
ns5301328245
ns1.00
ViT base (256 x 256 x 3 x 32)/forward/CPU/Reactant (optimize = :before_enzyme)
6086056532
ns5203462205
ns1.17
ViT base (256 x 256 x 3 x 32)/forward/CPU/Reactant (optimize = :only_enzyme)
7587601119
ns7305272771
ns1.04
ViT base (256 x 256 x 3 x 32)/forward/CPU/Lux
28087750784
ns34987991089
ns0.80
ViT small (256 x 256 x 3 x 4)/forward/CPU/Reactant (optimize = :after_enzyme)
1563822331
ns1561591277
ns1.00
ViT small (256 x 256 x 3 x 4)/forward/CPU/Reactant
1543677512
ns1557307113
ns0.99
ViT small (256 x 256 x 3 x 4)/forward/CPU/Reactant (optimize = :before_enzyme)
1553822136
ns1542360845
ns1.01
ViT small (256 x 256 x 3 x 4)/forward/CPU/Reactant (optimize = :only_enzyme)
3309603029
ns3316796244
ns1.00
ViT small (256 x 256 x 3 x 4)/forward/CPU/Lux
3236551447
ns3043968768
ns1.06
ViT tiny (256 x 256 x 3 x 32)/forward/CPU/Reactant (optimize = :after_enzyme)
2198150190
ns2146877682
ns1.02
ViT tiny (256 x 256 x 3 x 32)/forward/CPU/Reactant
2155687426
ns2131581565
ns1.01
ViT tiny (256 x 256 x 3 x 32)/forward/CPU/Reactant (optimize = :before_enzyme)
2192886728
ns2138865967
ns1.03
ViT tiny (256 x 256 x 3 x 32)/forward/CPU/Reactant (optimize = :only_enzyme)
3908194881
ns3910063623
ns1.00
ViT tiny (256 x 256 x 3 x 32)/forward/CPU/Lux
5993416352
ns5708530964
ns1.05
ViT tiny (256 x 256 x 3 x 4)/forward/CPU/Reactant (optimize = :after_enzyme)
1406808783.5
ns1416785120
ns0.99
ViT tiny (256 x 256 x 3 x 4)/forward/CPU/Reactant
1407299141
ns1421169200
ns0.99
ViT tiny (256 x 256 x 3 x 4)/forward/CPU/Reactant (optimize = :before_enzyme)
1410969730
ns1406671878
ns1.00
ViT tiny (256 x 256 x 3 x 4)/forward/CPU/Reactant (optimize = :only_enzyme)
3156311368
ns3159231592
ns1.00
ViT tiny (256 x 256 x 3 x 4)/forward/CPU/Lux
1099155376.5
ns1143922805
ns0.96
ViT tiny (256 x 256 x 3 x 16)/forward/CPU/Reactant (optimize = :after_enzyme)
1727787162
ns1719831635
ns1.00
ViT tiny (256 x 256 x 3 x 16)/forward/CPU/Reactant
1727804980
ns1705729225
ns1.01
ViT tiny (256 x 256 x 3 x 16)/forward/CPU/Reactant (optimize = :before_enzyme)
1711663111
ns1700558831
ns1.01
ViT tiny (256 x 256 x 3 x 16)/forward/CPU/Reactant (optimize = :only_enzyme)
3460051766
ns3451683364
ns1.00
ViT tiny (256 x 256 x 3 x 16)/forward/CPU/Lux
3010659432
ns3140401890
ns0.96
ViT small (256 x 256 x 3 x 16)/forward/CPU/Reactant (optimize = :after_enzyme)
2148427239
ns2158380749
ns1.00
ViT small (256 x 256 x 3 x 16)/forward/CPU/Reactant
2170426380
ns2164881935
ns1.00
ViT small (256 x 256 x 3 x 16)/forward/CPU/Reactant (optimize = :before_enzyme)
2187259107
ns2126575115
ns1.03
ViT small (256 x 256 x 3 x 16)/forward/CPU/Reactant (optimize = :only_enzyme)
3958804601
ns3935604871
ns1.01
ViT small (256 x 256 x 3 x 16)/forward/CPU/Lux
6647100753
ns5762722471.5
ns1.15
ViT small (256 x 256 x 3 x 32)/forward/CPU/Reactant (optimize = :after_enzyme)
3146044029
ns3016029772
ns1.04
ViT small (256 x 256 x 3 x 32)/forward/CPU/Reactant
3146912971
ns2981006759
ns1.06
ViT small (256 x 256 x 3 x 32)/forward/CPU/Reactant (optimize = :before_enzyme)
3047329260
ns2989746439
ns1.02
ViT small (256 x 256 x 3 x 32)/forward/CPU/Reactant (optimize = :only_enzyme)
4862728550
ns4846949677
ns1.00
ViT small (256 x 256 x 3 x 32)/forward/CPU/Lux
12794226734
ns10864111732
ns1.18
ViT base (256 x 256 x 3 x 16)/forward/CPU/Reactant (optimize = :after_enzyme)
3132478421
ns3166559857
ns0.99
ViT base (256 x 256 x 3 x 16)/forward/CPU/Reactant
3179953038
ns3144854123
ns1.01
ViT base (256 x 256 x 3 x 16)/forward/CPU/Reactant (optimize = :before_enzyme)
3185074336
ns3165468463
ns1.01
ViT base (256 x 256 x 3 x 16)/forward/CPU/Reactant (optimize = :only_enzyme)
5092564084
ns5000879641
ns1.02
ViT base (256 x 256 x 3 x 16)/forward/CPU/Lux
12253319305
ns15188174420
ns0.81
ViT base (256 x 256 x 3 x 4)/forward/CPU/Reactant (optimize = :after_enzyme)
1855345054
ns1819847550
ns1.02
ViT base (256 x 256 x 3 x 4)/forward/CPU/Reactant
1849809131
ns1826616736
ns1.01
ViT base (256 x 256 x 3 x 4)/forward/CPU/Reactant (optimize = :before_enzyme)
1855337197
ns1850176920
ns1.00
ViT base (256 x 256 x 3 x 4)/forward/CPU/Reactant (optimize = :only_enzyme)
3604644289
ns3562720585
ns1.01
ViT base (256 x 256 x 3 x 4)/forward/CPU/Lux
5868629461.5
ns4485724051
ns1.31
This comment was automatically generated by workflow using github-action-benchmark.