Skip to content

Commit

Permalink
Merge pull request #581 from cormullion/patch-1
Browse files Browse the repository at this point in the history
Update style.css to disable 'calt' feature for monospace
  • Loading branch information
avik-pal authored Apr 10, 2024
2 parents bf9c763 + b4940e0 commit fc591bd
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions docs/src/.vitepress/theme/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,22 +30,21 @@ https://github.com/vuejs/vitepress/blob/main/src/client/theme-default/styles/var
/* Code Snippet font */
--vp-font-family-mono: JuliaMono-Regular, monospace;

}

.mono {
/*
Disable contextual alternates (kind of like ligatures but different) in monospace,
which turns `/>` to an up arrow and `|>` (the Julia pipe symbol) to an up arrow as well.
This is pretty bad for Julia folks reading even though copy+paste retains the same text.
Disable the 'calt' (contextual alternates, often called ligatures) font feature
for monospaced text, which is usually enabled by default. This feature changes
the display of character combinations such "-" + ">", and "|" + ">". These can
be confusing for beginners, particularly if the font has 'unusual' designs.
*/
font-feature-settings: 'calt' 0;
}

.mono {

pre {
font-family: JuliaMono-Light;
}

;

code {
font-family: JuliaMono-Light;
}
Expand Down Expand Up @@ -198,4 +197,4 @@ mjx-container>svg {

:root:is(.dark) .light-only {
display: none;
}
}

1 comment on commit fc591bd

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark Results

Benchmark suite Current: fc591bd Previous: bf9c763 Ratio
Dense(2 => 2)/cpu/reverse/ReverseDiff (compiled)/(2, 128) 3653 ns 3625.625 ns 1.01
Dense(2 => 2)/cpu/reverse/Zygote/(2, 128) 7729.5 ns 8329.6 ns 0.93
Dense(2 => 2)/cpu/reverse/Tracker/(2, 128) 14106 ns 20008 ns 0.71
Dense(2 => 2)/cpu/reverse/ReverseDiff/(2, 128) 9916 ns 9760.2 ns 1.02
Dense(2 => 2)/cpu/reverse/Flux/(2, 128) 8698.75 ns 8968.8 ns 0.97
Dense(2 => 2)/cpu/reverse/SimpleChains/(2, 128) 4506.5625 ns 4533.5 ns 0.99
Dense(2 => 2)/cpu/forward/NamedTuple/(2, 128) 1971.7 ns 1983.8 ns 0.99
Dense(2 => 2)/cpu/forward/ComponentArray/(2, 128) 1648.5314685314686 ns 1638.599290780142 ns 1.01
Dense(2 => 2)/cpu/forward/Flux/(2, 128) 1824.8510638297873 ns 1802.7111111111112 ns 1.01
Dense(2 => 2)/cpu/forward/SimpleChains/(2, 128) 179.4728789986092 ns 179.69327731092437 ns 1.00
Dense(20 => 20)/cpu/reverse/ReverseDiff (compiled)/(20, 128) 17333 ns 17463 ns 0.99
Dense(20 => 20)/cpu/reverse/Zygote/(20, 128) 18394 ns 18505 ns 0.99
Dense(20 => 20)/cpu/reverse/Tracker/(20, 128) 35396 ns 35877 ns 0.99
Dense(20 => 20)/cpu/reverse/ReverseDiff/(20, 128) 28633 ns 28904 ns 0.99
Dense(20 => 20)/cpu/reverse/Flux/(20, 128) 19607 ns 19788 ns 0.99
Dense(20 => 20)/cpu/reverse/SimpleChains/(20, 128) 17032 ns 17162 ns 0.99
Dense(20 => 20)/cpu/forward/NamedTuple/(20, 128) 4768.857142857143 ns 4897.714285714285 ns 0.97
Dense(20 => 20)/cpu/forward/ComponentArray/(20, 128) 4800.428571428572 ns 4976.571428571428 ns 0.96
Dense(20 => 20)/cpu/forward/Flux/(20, 128) 4800.428571428572 ns 4939.285714285715 ns 0.97
Dense(20 => 20)/cpu/forward/SimpleChains/(20, 128) 1659.1 ns 1662.1 ns 1.00
Conv((3, 3), 3 => 3)/cpu/reverse/ReverseDiff (compiled)/(64, 64, 3, 128) 48367699 ns 40744614.5 ns 1.19
Conv((3, 3), 3 => 3)/cpu/reverse/Zygote/(64, 64, 3, 128) 90662926 ns 79080421 ns 1.15
Conv((3, 3), 3 => 3)/cpu/reverse/Tracker/(64, 64, 3, 128) 97653785.5 ns 82653235 ns 1.18
Conv((3, 3), 3 => 3)/cpu/reverse/ReverseDiff/(64, 64, 3, 128) 107727588 ns 86200963 ns 1.25
Conv((3, 3), 3 => 3)/cpu/reverse/Flux/(64, 64, 3, 128) 108249388 ns 78905084.5 ns 1.37
Conv((3, 3), 3 => 3)/cpu/reverse/SimpleChains/(64, 64, 3, 128) 12110710 ns 12176069 ns 0.99
Conv((3, 3), 3 => 3)/cpu/forward/NamedTuple/(64, 64, 3, 128) 18210910.5 ns 11531072.5 ns 1.58
Conv((3, 3), 3 => 3)/cpu/forward/ComponentArray/(64, 64, 3, 128) 18544073 ns 11556258 ns 1.60
Conv((3, 3), 3 => 3)/cpu/forward/Flux/(64, 64, 3, 128) 18466654 ns 11564044 ns 1.60
Conv((3, 3), 3 => 3)/cpu/forward/SimpleChains/(64, 64, 3, 128) 6396982 ns 6462543 ns 0.99
vgg16/cpu/reverse/Zygote/(32, 32, 3, 1) 106620467.5 ns 109222130 ns 0.98
vgg16/cpu/reverse/Zygote/(32, 32, 3, 16) 763640160 ns 716498141 ns 1.07
vgg16/cpu/reverse/Zygote/(32, 32, 3, 64) 2762978316 ns 2774434429 ns 1.00
vgg16/cpu/reverse/Tracker/(32, 32, 3, 1) 163403619 ns 165722314.5 ns 0.99
vgg16/cpu/reverse/Tracker/(32, 32, 3, 16) 1198898689 ns 1141146395 ns 1.05
vgg16/cpu/reverse/Tracker/(32, 32, 3, 64) 3765767577 ns 3638853485 ns 1.03
vgg16/cpu/reverse/Flux/(32, 32, 3, 1) 85276372.5 ns 85633954.5 ns 1.00
vgg16/cpu/reverse/Flux/(32, 32, 3, 16) 840374369 ns 679669495.5 ns 1.24
vgg16/cpu/reverse/Flux/(32, 32, 3, 64) 3347793443 ns 2869660483 ns 1.17
vgg16/cpu/forward/NamedTuple/(32, 32, 3, 1) 25080614.5 ns 25584446.5 ns 0.98
vgg16/cpu/forward/NamedTuple/(32, 32, 3, 16) 232258093 ns 235037986 ns 0.99
vgg16/cpu/forward/NamedTuple/(32, 32, 3, 64) 1019038431 ns 891040822 ns 1.14
vgg16/cpu/forward/ComponentArray/(32, 32, 3, 1) 25059892 ns 26661185 ns 0.94
vgg16/cpu/forward/ComponentArray/(32, 32, 3, 16) 236184814.5 ns 237554693 ns 0.99
vgg16/cpu/forward/ComponentArray/(32, 32, 3, 64) 999233211 ns 883259646 ns 1.13
vgg16/cpu/forward/Flux/(32, 32, 3, 1) 24562440.5 ns 23363541.5 ns 1.05
vgg16/cpu/forward/Flux/(32, 32, 3, 16) 211748278 ns 202016108 ns 1.05
vgg16/cpu/forward/Flux/(32, 32, 3, 64) 712431369.5 ns 749216070.5 ns 0.95
Conv((3, 3), 64 => 64)/cpu/reverse/ReverseDiff (compiled)/(64, 64, 64, 128) 1132641019 ns 1041528133 ns 1.09
Conv((3, 3), 64 => 64)/cpu/reverse/Zygote/(64, 64, 64, 128) 1842889677.5 ns 1953104606 ns 0.94
Conv((3, 3), 64 => 64)/cpu/reverse/Tracker/(64, 64, 64, 128) 2124383065.5 ns 2174288920.5 ns 0.98
Conv((3, 3), 64 => 64)/cpu/reverse/ReverseDiff/(64, 64, 64, 128) 2365462129 ns 2535798497 ns 0.93
Conv((3, 3), 64 => 64)/cpu/reverse/Flux/(64, 64, 64, 128) 1854224454.5 ns 1905801894 ns 0.97
Conv((3, 3), 64 => 64)/cpu/forward/NamedTuple/(64, 64, 64, 128) 456010240 ns 467810649 ns 0.97
Conv((3, 3), 64 => 64)/cpu/forward/ComponentArray/(64, 64, 64, 128) 359691595 ns 401897224 ns 0.89
Conv((3, 3), 64 => 64)/cpu/forward/Flux/(64, 64, 64, 128) 359652717.5 ns 363511714 ns 0.99
Conv((3, 3), 1 => 1)/cpu/reverse/ReverseDiff (compiled)/(64, 64, 1, 128) 11966091 ns 11993043.5 ns 1.00
Conv((3, 3), 1 => 1)/cpu/reverse/Zygote/(64, 64, 1, 128) 18076793 ns 18118667 ns 1.00
Conv((3, 3), 1 => 1)/cpu/reverse/Tracker/(64, 64, 1, 128) 19252254 ns 19266770.5 ns 1.00
Conv((3, 3), 1 => 1)/cpu/reverse/ReverseDiff/(64, 64, 1, 128) 23893264 ns 23946772 ns 1.00
Conv((3, 3), 1 => 1)/cpu/reverse/Flux/(64, 64, 1, 128) 18061934 ns 18001429 ns 1.00
Conv((3, 3), 1 => 1)/cpu/reverse/SimpleChains/(64, 64, 1, 128) 1158025 ns 1173906 ns 0.99
Conv((3, 3), 1 => 1)/cpu/forward/NamedTuple/(64, 64, 1, 128) 2075109 ns 2083284 ns 1.00
Conv((3, 3), 1 => 1)/cpu/forward/ComponentArray/(64, 64, 1, 128) 2081892 ns 2109134 ns 0.99
Conv((3, 3), 1 => 1)/cpu/forward/Flux/(64, 64, 1, 128) 2071516.5 ns 2087096 ns 0.99
Conv((3, 3), 1 => 1)/cpu/forward/SimpleChains/(64, 64, 1, 128) 200054 ns 216375 ns 0.92
Dense(200 => 200)/cpu/reverse/ReverseDiff (compiled)/(200, 128) 298147 ns 299811 ns 0.99
Dense(200 => 200)/cpu/reverse/Zygote/(200, 128) 273642 ns 274022 ns 1.00
Dense(200 => 200)/cpu/reverse/Tracker/(200, 128) 365467.5 ns 366305 ns 1.00
Dense(200 => 200)/cpu/reverse/ReverseDiff/(200, 128) 414444.5 ns 412983 ns 1.00
Dense(200 => 200)/cpu/reverse/Flux/(200, 128) 275154 ns 273692 ns 1.01
Dense(200 => 200)/cpu/reverse/SimpleChains/(200, 128) 410968 ns 407292 ns 1.01
Dense(200 => 200)/cpu/forward/NamedTuple/(200, 128) 89371.5 ns 88606 ns 1.01
Dense(200 => 200)/cpu/forward/ComponentArray/(200, 128) 89357.5 ns 89167 ns 1.00
Dense(200 => 200)/cpu/forward/Flux/(200, 128) 87022 ns 86702 ns 1.00
Dense(200 => 200)/cpu/forward/SimpleChains/(200, 128) 104495 ns 104917 ns 1.00
Conv((3, 3), 16 => 16)/cpu/reverse/ReverseDiff (compiled)/(64, 64, 16, 128) 197534448 ns 204802127.5 ns 0.96
Conv((3, 3), 16 => 16)/cpu/reverse/Zygote/(64, 64, 16, 128) 372121710 ns 397826293 ns 0.94
Conv((3, 3), 16 => 16)/cpu/reverse/Tracker/(64, 64, 16, 128) 403011132 ns 407107142 ns 0.99
Conv((3, 3), 16 => 16)/cpu/reverse/ReverseDiff/(64, 64, 16, 128) 482377826 ns 468385350 ns 1.03
Conv((3, 3), 16 => 16)/cpu/reverse/Flux/(64, 64, 16, 128) 371969112 ns 379786116.5 ns 0.98
Conv((3, 3), 16 => 16)/cpu/reverse/SimpleChains/(64, 64, 16, 128) 334264188.5 ns 327214540 ns 1.02
Conv((3, 3), 16 => 16)/cpu/forward/NamedTuple/(64, 64, 16, 128) 59961589 ns 50982627.5 ns 1.18
Conv((3, 3), 16 => 16)/cpu/forward/ComponentArray/(64, 64, 16, 128) 53644168 ns 61754318.5 ns 0.87
Conv((3, 3), 16 => 16)/cpu/forward/Flux/(64, 64, 16, 128) 56527647 ns 51202786 ns 1.10
Conv((3, 3), 16 => 16)/cpu/forward/SimpleChains/(64, 64, 16, 128) 29291598.5 ns 28422322 ns 1.03
Dense(2000 => 2000)/cpu/reverse/ReverseDiff (compiled)/(2000, 128) 19730534 ns 19437690 ns 1.02
Dense(2000 => 2000)/cpu/reverse/Zygote/(2000, 128) 19802579.5 ns 19638543 ns 1.01
Dense(2000 => 2000)/cpu/reverse/Tracker/(2000, 128) 23663463 ns 23400447 ns 1.01
Dense(2000 => 2000)/cpu/reverse/ReverseDiff/(2000, 128) 24349385 ns 24207548 ns 1.01
Dense(2000 => 2000)/cpu/reverse/Flux/(2000, 128) 19922312 ns 19668914 ns 1.01
Dense(2000 => 2000)/cpu/forward/NamedTuple/(2000, 128) 6620742 ns 6590668 ns 1.00
Dense(2000 => 2000)/cpu/forward/ComponentArray/(2000, 128) 6614070 ns 6574953 ns 1.01
Dense(2000 => 2000)/cpu/forward/Flux/(2000, 128) 6529781 ns 6491001 ns 1.01

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.