-
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.
Generalize
Base._cat
to non-Val
, typed Base._cat_t
and implemen…
…t `typed_hcat`, `typed_vcat`, `typed_hvcat`, `typed_hvncat` (#163) * Remove `Val` constraint on `Base._cat` signature * Remove `Val` constraint on `maybe_expand_dims` * fix: update src/TracedRArray.jl * Generalize `Base._cat` implementation on `TracedRArray` to typed `Base._cat_t` * Update src/TracedRArray.jl Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Fix collection type passed to `stablehlo.concatenate` * Test `cat` methods * Test result eltype on `*cat` methods * Fix conversion of integer arrays to `ConcreteRArray`s * Format code Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Fix `_typed_cat`, `_typed_hcat`, `typed_hvcat` dispatches * Fix `hvcat` * Convert to target eltype before cat * Fix `typed_hcat` tests * Test `typed_hvncat` on vectors * Refactor tests * Add more test cases * Refactor tests * Fix typo --------- Co-authored-by: Avik Pal <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
9904590
commit f2c0e8a
Showing
3 changed files
with
137 additions
and
29 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
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
f2c0e8a
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/CUDA/Reactant
1315729546
ns1349734013
ns0.97
ViT base (256 x 256 x 3 x 32)/forward/CUDA/Lux
212083499
ns206256598
ns1.03
ViT base (256 x 256 x 3 x 32)/forward/CPU/Reactant
5286469750
ns5640616179
ns0.94
ViT base (256 x 256 x 3 x 32)/forward/CPU/Lux
23583347555
ns21088566845
ns1.12
ViT small (256 x 256 x 3 x 4)/forward/CUDA/Reactant
1254858296
ns1271785039.5
ns0.99
ViT small (256 x 256 x 3 x 4)/forward/CUDA/Lux
8478570
ns8622303
ns0.98
ViT small (256 x 256 x 3 x 4)/forward/CPU/Reactant
1636237670
ns1620712407
ns1.01
ViT small (256 x 256 x 3 x 4)/forward/CPU/Lux
2376437823
ns2515728657
ns0.94
ViT tiny (256 x 256 x 3 x 32)/forward/CUDA/Reactant
1266018905
ns1309552971.5
ns0.97
ViT tiny (256 x 256 x 3 x 32)/forward/CUDA/Lux
84820407
ns88993975
ns0.95
ViT tiny (256 x 256 x 3 x 32)/forward/CPU/Reactant
2170879105
ns2241028351
ns0.97
ViT tiny (256 x 256 x 3 x 32)/forward/CPU/Lux
4675094299
ns5778081364
ns0.81
ViT tiny (256 x 256 x 3 x 4)/forward/CUDA/Reactant
1263496480
ns1267184417.5
ns1.00
ViT tiny (256 x 256 x 3 x 4)/forward/CUDA/Lux
7782824
ns7556327.5
ns1.03
ViT tiny (256 x 256 x 3 x 4)/forward/CPU/Reactant
1467043032.5
ns1485636377.5
ns0.99
ViT tiny (256 x 256 x 3 x 4)/forward/CPU/Lux
1685775445
ns1618719051
ns1.04
ViT tiny (256 x 256 x 3 x 16)/forward/CUDA/Reactant
1306815930
ns1277921381
ns1.02
ViT tiny (256 x 256 x 3 x 16)/forward/CUDA/Lux
11611908
ns11579756
ns1.00
ViT tiny (256 x 256 x 3 x 16)/forward/CPU/Reactant
1752808523
ns1771132012
ns0.99
ViT tiny (256 x 256 x 3 x 16)/forward/CPU/Lux
2463987825.5
ns2573621234.5
ns0.96
ViT small (256 x 256 x 3 x 16)/forward/CUDA/Reactant
1325877558.5
ns1308609555
ns1.01
ViT small (256 x 256 x 3 x 16)/forward/CUDA/Lux
90330187
ns86522099
ns1.04
ViT small (256 x 256 x 3 x 16)/forward/CPU/Reactant
2213119086
ns2232948717
ns0.99
ViT small (256 x 256 x 3 x 16)/forward/CPU/Lux
4023816395
ns4522528342
ns0.89
ViT small (256 x 256 x 3 x 32)/forward/CUDA/Reactant
1270812264
ns1299910120.5
ns0.98
ViT small (256 x 256 x 3 x 32)/forward/CUDA/Lux
113097539
ns107942560
ns1.05
ViT small (256 x 256 x 3 x 32)/forward/CPU/Reactant
3042643080
ns3089121407
ns0.98
ViT small (256 x 256 x 3 x 32)/forward/CPU/Lux
8210106924.5
ns12146634131
ns0.68
ViT base (256 x 256 x 3 x 16)/forward/CUDA/Reactant
1324054039
ns1317150051
ns1.01
ViT base (256 x 256 x 3 x 16)/forward/CUDA/Lux
127669686.5
ns121564537
ns1.05
ViT base (256 x 256 x 3 x 16)/forward/CPU/Reactant
3203794253
ns3268410602
ns0.98
ViT base (256 x 256 x 3 x 16)/forward/CPU/Lux
11004907984
ns10888829737
ns1.01
ViT base (256 x 256 x 3 x 4)/forward/CUDA/Reactant
1299288245
ns1345840157
ns0.97
ViT base (256 x 256 x 3 x 4)/forward/CUDA/Lux
96277750
ns78626182
ns1.22
ViT base (256 x 256 x 3 x 4)/forward/CPU/Reactant
2155333265.5
ns2037797510.5
ns1.06
ViT base (256 x 256 x 3 x 4)/forward/CPU/Lux
2863535293.5
ns2617867593
ns1.09
This comment was automatically generated by workflow using github-action-benchmark.