Skip to content

Commit c28d82a

Browse files
committed
docs,bench: update README, accuracy docs, and core ops benchmark comparison
1 parent 640e517 commit c28d82a

4 files changed

Lines changed: 176 additions & 78 deletions

File tree

‎README.md‎

Lines changed: 53 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -262,36 +262,59 @@ Matrix products and convolutions trade accuracy for speed through one switch, `o
262262

263263
### Speed
264264

265-
Best of several runs, microseconds, each benchmark in its own process (so power throttling of a long run does not distort later rows). `ratio` is Oxideon's time divided by PyTorch's (below 1 is faster). The last columns repeat the numerical error of the same operation from the table above.
266-
267-
op oxideon us torch us ratio
268-
add 1M 40.6 47.2 0.86
269-
mul 1M 39.2 48.0 0.82
270-
add broadcast row 1M 36.6 26.5 1.38
271-
mul_scalar 1M 33.1 29.6 1.12
272-
exp 1M 68.3 42.6 1.60
273-
tanh 1M 182.6 247.1 0.74
274-
gelu 1M 182.8 108.3 1.69
275-
relu 1M 33.3 28.2 1.18
276-
sum 1M 21.1 24.4 0.86
277-
sum axis0 1M 38.1 37.9 1.01
278-
sum axis1 1M 24.9 28.1 0.89
279-
max axis1 1M 54.4 105.4 0.52
280-
softmax 1M 120.2 129.1 0.93
281-
transpose+contiguous 1M 484.9 764.5 0.63
282-
add transposed 1M 258.2 344.9 0.75
283-
matmul 512 390.8 392.0 1.00
284-
matmul 1024 3312.6 3045.3 1.09
285-
matmul 256x4096x256 955.6 803.5 1.19
286-
conv2d 8x16x64x64 k3 685.5 521.9 1.31
287-
max_pool2d 96.8 206.6 0.47
288-
layer_norm 32x128x256 51.6 79.5 0.65
289-
index_select 4096 rows 155.6 127.7 1.22
290-
cat 2x1M 57.3 72.4 0.79
291-
small add 64 (overhead) 0.6 1.2 0.50
292-
small matmul 8x8 1.1 3.5 0.31
293-
mlp train step b256 992.9 832.3 1.19
294-
autograd elementwise chain 661.5 892.7 0.74
265+
Microseconds, best of several runs, each benchmark in its own process (so power throttling of a long run does not distort later rows) and the best of two such passes. `time ratio` is Oxideon's time divided by PyTorch's (below 1 is faster). The error columns repeat the numerical error of the same operation ("x better": PyTorch's error divided by Oxideon's; below 1 means PyTorch is more accurate).
266+
267+
Matrix products, convolutions and `gelu` depend on the precision mode, so they are shown once per mode: `fastest` is PyTorch-class in speed and accuracy (on matrix products slightly less accurate, 0.8-0.9x), `balanced` (the default) keeps PyTorch-class speed and is 1.5-4.6x more accurate, `highest` accumulates in float64 for 6-19x lower error at 2-8x the time. Every other operation is the same in all three modes.
268+
269+
| operation | precision mode | Oxideon us | PyTorch us | time ratio | error worst (x better) | error mean (x better) |
270+
|---|---|---:|---:|---:|---:|---:|
271+
| gelu 1M | fastest | 101.5 | 108.6 | 0.93 | 18.04x | 143.73x |
272+
| | balanced (default) | 135.0 | 108.6 | 1.24 | 22.32x | 905.37x |
273+
| | highest | 135.2 | 108.6 | 1.24 | 22.32x | 905.37x |
274+
| matmul 512 | fastest | 324.9 | 398.9 | 0.81 | 0.93x | 0.85x |
275+
| | balanced (default) | 371.1 | 398.9 | 0.93 | 2.35x | 1.66x |
276+
| | highest | 934.3 | 398.9 | 2.34 | 11.39x | 10.59x |
277+
| matmul 1024 | fastest | 2728.3 | 3116.8 | 0.88 | - | - |
278+
| | balanced (default) | 2986.2 | 3116.8 | 0.96 | - | - |
279+
| | highest | 6632.5 | 3116.8 | 2.13 | - | - |
280+
| matmul 256x4096x256 | fastest | 736.4 | 992.4 | 0.74 | 0.79x | 0.82x |
281+
| | balanced (default) | 850.9 | 992.4 | 0.86 | 1.64x | 1.58x |
282+
| | highest | 2700.3 | 992.4 | 2.72 | 6.09x | 11.90x |
283+
| conv2d 8x16x64x64 k3 | fastest | 490.5 | 544.7 | 0.90 | 1.96x | 1.22x |
284+
| | balanced (default) | 636.9 | 544.7 | 1.17 | 2.69x | 1.54x |
285+
| | highest | 4193.9 | 544.7 | 7.70 | 12.68x | 8.74x |
286+
| conv2d 4x64x56x56 k3 | fastest | 1227.9 | 1401.0 | 0.88 | 2.09x | 1.43x |
287+
| | balanced (default) | 1453.7 | 1401.0 | 1.04 | 4.58x | 2.67x |
288+
| | highest | 6361.1 | 1401.0 | 4.54 | 19.42x | 17.14x |
289+
| mlp train step b256 | fastest | 809.0 | 866.2 | 0.93 | - | - |
290+
| | balanced (default) | 943.9 | 866.2 | 1.09 | - | - |
291+
| | highest | 2093.9 | 866.2 | 2.42 | - | - |
292+
293+
| operation (same in every mode) | Oxideon us | PyTorch us | time ratio | error worst (x better) | error mean (x better) |
294+
|---|---:|---:|---:|---:|---:|
295+
| add 1M | 40.1 | 48.1 | 0.83 | exact | exact |
296+
| mul 1M | 42.0 | 47.2 | 0.89 | exact | exact |
297+
| add broadcast row 1M | 33.3 | 27.1 | 1.23 | exact | exact |
298+
| mul_scalar 1M | 31.8 | 31.5 | 1.01 | exact | exact |
299+
| exp 1M | 67.9 | 41.0 | 1.66 | 1.06x | 0.99x |
300+
| tanh 1M | 184.2 | 249.2 | 0.74 | 1.00x | 1.00x |
301+
| relu 1M | 32.9 | 28.3 | 1.16 | exact | exact |
302+
| sum 1M | 19.4 | 20.0 | 0.97 | tie | tie |
303+
| sum axis0 1M | 37.5 | 31.0 | 1.21 | 3.53x | 2.00x |
304+
| sum axis1 1M | 24.8 | 20.4 | 1.22 | 3.82x | 2.09x |
305+
| max axis1 1M | 53.8 | 95.6 | 0.56 | exact | exact |
306+
| softmax 1M | 118.1 | 127.5 | 0.93 | 7.70x | 8.54x |
307+
| transpose+contiguous 1M | 512.1 | 765.2 | 0.67 | exact | exact |
308+
| add transposed 1M | 272.4 | 305.9 | 0.89 | exact | exact |
309+
| max_pool2d | 106.7 | 199.7 | 0.53 | exact | exact |
310+
| layer_norm 32x128x256 | 50.7 | 53.3 | 0.95 | 384.80x | 680.76x |
311+
| index_select 4096 rows | 114.3 | 132.2 | 0.86 | exact | exact |
312+
| cat 2x1M | 57.4 | 70.1 | 0.82 | exact | exact |
313+
| small add 64 (overhead) | 0.5 | 1.2 | 0.42 | - | - |
314+
| small matmul 8x8 | 0.9 | 4.8 | 0.19 | - | - |
315+
| autograd elementwise chain | 648.8 | 819.3 | 0.79 | - | - |
316+
317+
Where Oxideon is slower than PyTorch (default mode, more than 10% over): gelu 1M (1.24x), conv2d 8x16x64x64 k3 (1.17x), add broadcast row 1M (1.23x), exp 1M (1.66x), relu 1M (1.16x), sum axis0 1M (1.21x), sum axis1 1M (1.22x).
295318

296319
Operations whose result is a single correctly rounded IEEE operation (add, mul, relu, copies ...) are `exact` in both libraries. Run-to-run noise is about 10-15%.
297320

‎benchmarks/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Reproducible performance benchmarks comparing Oxideon (`--release`) against PyTo
77
| Script | Scope |
88
|---|---|
99
| [`bench_vs_pytorch.py`](bench_vs_pytorch.py) | Core ops, norms, `Conv2d`, and `MLP` forward+backward vs PyTorch |
10-
| [`core_ops_bench_compare.py`](core_ops_bench_compare.py) | Core Rust vs PyTorch operation comparison runner: time and numerical error (worst / mean, vs a float64 reference) side by side |
10+
| [`core_ops_bench_compare.py`](core_ops_bench_compare.py) | Core Rust vs PyTorch comparison: time and numerical error (worst / mean, vs a float64 reference) per operation, with matrix products, convolutions and gelu run once per precision mode (`--markdown`, `--repeat N`, `--modes`) |
1111
| [`accuracy_vs_pytorch.py`](accuracy_vs_pytorch.py) | Numerical error of 40 operations vs a float64 reference, oxideon next to PyTorch (needs `cargo build --release --example accuracy_dump`) |
1212
| [`core_ops_bench_torch.py`](core_ops_bench_torch.py) | PyTorch reference timings for core operations |
1313
| [`ops_bench.py`](ops_bench.py) | Tensor op microbenchmarks |
Lines changed: 111 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,29 @@
1-
"""Runs every benchmark of examples/core_ops_bench.rs and benchmarks/core_ops_bench_torch.py in its own process (with a pause
2-
in between, so power throttling of long-running processes does not distort later rows) and prints both side by side, together with
3-
the numerical error of the same operation against a float64 reference (from `accuracy_vs_pytorch.py`; "x better" = PyTorch's error
4-
divided by oxideon's, so above 1 oxideon is more accurate).
1+
"""Speed and numerical error of Oxideon against PyTorch, for every precision mode.
2+
3+
Runs every benchmark of examples/core_ops_bench.rs and benchmarks/core_ops_bench_torch.py in its own process (with a pause in
4+
between, so power throttling of long-running processes does not distort later rows), and measures the numerical error of the same
5+
operations against a float64 reference (`accuracy_vs_pytorch.py`; "x better" = PyTorch's error divided by Oxideon's, so above 1
6+
Oxideon is more accurate).
7+
8+
Oxideon has three precision modes (`oxideon.set_precision_mode`, or the `OXIDEON_PRECISION` environment variable):
9+
10+
fastest PyTorch-class accuracy at PyTorch-class speed (plain f32 accumulation, cheaper gelu)
11+
balanced the default: 1.5-2.4x more accurate than PyTorch on matrix products and convolutions, about the same speed
12+
highest f64 accumulation: 6-19x more accurate, 2-8x slower
13+
14+
Only matrix products, convolutions and gelu depend on the mode; they are run once per mode. Every other operation is identical in
15+
all three modes and is run once.
516
617
cargo build --release --example core_ops_bench --example accuracy_dump
7-
python benchmarks/core_ops_bench_compare.py [--no-accuracy] [--markdown]
18+
python benchmarks/core_ops_bench_compare.py [--markdown] [--no-accuracy] [--modes fastest,balanced,highest] [--repeat N]
19+
20+
`--repeat N` measures every time N times, spread over the run, and keeps the best (a laptop that throttles after minutes of load
21+
would otherwise give one row a bad moment).
822
923
The accuracy case is the one named in the last column; its shape is not always the benchmark's. Operations whose result is one
1024
correctly rounded IEEE operation (add, mul, relu, copies ...) are `exact` in both libraries.
1125
"""
26+
import os
1227
import re
1328
import subprocess
1429
import sys
@@ -22,6 +37,17 @@
2237
EXE = ROOT / "target/release/examples/core_ops_bench"
2338
NAMES = re.findall(r'bench\("([^"]+)"', (ROOT / "examples/core_ops_bench.rs").read_text(encoding="utf-8"))
2439

40+
ALL_MODES = ["fastest", "balanced", "highest"]
41+
MARKDOWN = "--markdown" in sys.argv
42+
WITH_ACCURACY = "--no-accuracy" not in sys.argv
43+
MODES = ALL_MODES
44+
REPEAT = int(sys.argv[sys.argv.index("--repeat") + 1]) if "--repeat" in sys.argv else 1
45+
if "--modes" in sys.argv:
46+
MODES = sys.argv[sys.argv.index("--modes") + 1].split(",")
47+
48+
# benchmarks whose time depends on the precision mode (the others are measured once, in the default mode)
49+
MODE_DEPENDENT = {"gelu 1M", "matmul 512", "matmul 1024", "matmul 256x4096x256", "conv2d 8x16x64x64 k3", "conv2d 4x64x56x56 k3", "mlp train step b256"}
50+
2551
# benchmark -> case of accuracy_vs_pytorch.py measuring the same operation; "exact" = a single correctly rounded operation
2652
ACCURACY = {
2753
"add 1M": "exact", "mul 1M": "exact", "add broadcast row 1M": "exact", "mul_scalar 1M": "exact", "relu 1M": "exact",
@@ -33,53 +59,102 @@
3359
}
3460

3561

36-
def one(cmd, name):
37-
out = subprocess.run(cmd + [name], capture_output=True, text=True).stdout
62+
def once(cmd, name, mode=None):
63+
env = dict(os.environ)
64+
if mode:
65+
env["OXIDEON_PRECISION"] = mode
66+
out = subprocess.run(cmd + [name], capture_output=True, text=True, env=env).stdout
3867
m = re.search(r"^BENCH .{28}\s*([\d.]+)", out, re.M)
3968
time.sleep(1.5)
4069
return float(m.group(1)) if m else float("nan")
4170

4271

43-
acc = {}
44-
if "--no-accuracy" not in sys.argv:
45-
import accuracy_vs_pytorch
46-
47-
acc = accuracy_vs_pytorch.measure({c for c in ACCURACY.values() if c != "exact"})
72+
def one(cmd, name, mode=None):
73+
"""Best of `REPEAT` separate processes."""
74+
return min(once(cmd, name, mode) for _ in range(REPEAT))
4875

4976

5077
def fx(v):
5178
return "tie" if v != v else "inf" if v == float("inf") else f"{v:.2f}x"
5279

5380

54-
def error_columns(name):
81+
# error[mode][case] = (x better worst, x better mean)
82+
error = {}
83+
if WITH_ACCURACY:
84+
import accuracy_vs_pytorch
85+
86+
cases = {c for c in ACCURACY.values() if c != "exact"}
87+
dependent_cases = {ACCURACY[n] for n in MODE_DEPENDENT if ACCURACY.get(n, "exact") != "exact"}
88+
for mode in MODES:
89+
os.environ["OXIDEON_PRECISION"] = mode
90+
rows = accuracy_vs_pytorch.measure(dependent_cases if mode != "balanced" else cases)
91+
error[mode] = {c: (r[2], r[5]) for c, r in rows.items()}
92+
os.environ.pop("OXIDEON_PRECISION", None)
93+
if "balanced" not in error: # the independent operations are measured in the default mode
94+
os.environ["OXIDEON_PRECISION"] = "balanced"
95+
rows = accuracy_vs_pytorch.measure(cases)
96+
error["balanced"] = {c: (r[2], r[5]) for c, r in rows.items()}
97+
os.environ.pop("OXIDEON_PRECISION", None)
98+
99+
100+
def err(mode, name):
101+
"""(worst, mean) 'x better' text for a benchmark in a mode."""
55102
case = ACCURACY.get(name)
56103
if case is None:
57-
return f"{'-':>9}{'-':>9} -"
104+
return "-", "-"
58105
if case == "exact":
59-
return f"{'exact':>9}{'exact':>9} both libraries exact"
60-
if case not in acc:
61-
return f"{'?':>9}{'?':>9} {case}"
62-
_, _, bw, _, _, bm, _ = acc[case]
63-
return f"{fx(bw):>9}{fx(bm):>9} {case}"
106+
return "exact", "exact"
107+
if not WITH_ACCURACY or case not in error.get(mode, {}):
108+
return "-", "-"
109+
w, m = error[mode][case]
110+
return fx(w), fx(m)
64111

65112

66-
MARKDOWN = "--markdown" in sys.argv
113+
dependent = [n for n in NAMES if n in MODE_DEPENDENT]
114+
others = [n for n in NAMES if n not in MODE_DEPENDENT]
115+
torch_cmd = [sys.executable, str(ROOT / "benchmarks/core_ops_bench_torch.py")]
116+
117+
# 1. the operations that depend on the mode: one run per mode
118+
t_dep = {}
119+
o_dep = {}
120+
for n in dependent:
121+
t_dep[n] = one(torch_cmd, n)
122+
for mode in MODES:
123+
o_dep[n, mode] = one([str(EXE)], n, mode)
124+
# 2. everything else, once, in the default mode
125+
o_oth, t_oth = {}, {}
126+
for n in others:
127+
o_oth[n] = one([str(EXE)], n, "balanced")
128+
t_oth[n] = one(torch_cmd, n)
129+
67130
if MARKDOWN:
68-
print("| operation | Oxideon us | PyTorch us | ratio | error worst (x better) | error mean (x better) |")
131+
print("| operation | precision mode | Oxideon us | PyTorch us | time ratio | error worst (x better) | error mean (x better) |")
132+
print("|---|---|---:|---:|---:|---:|---:|")
133+
for n in dependent:
134+
for i, mode in enumerate(MODES):
135+
w, m = err(mode, n)
136+
name = n if i == 0 else ""
137+
print(f"| {name} | {mode}{' (default)' if mode == 'balanced' else ''} | {o_dep[n, mode]:.1f} | {t_dep[n]:.1f} | {o_dep[n, mode] / t_dep[n]:.2f} | {w} | {m} |")
138+
print()
139+
print("| operation (same in every mode) | Oxideon us | PyTorch us | time ratio | error worst (x better) | error mean (x better) |")
69140
print("|---|---:|---:|---:|---:|---:|")
141+
for n in others:
142+
w, m = err("balanced", n)
143+
print(f"| {n} | {o_oth[n]:.1f} | {t_oth[n]:.1f} | {o_oth[n] / t_oth[n]:.2f} | {w} | {m} |")
70144
else:
71-
print(f"{'op':<28}{'oxideon us':>12}{'torch us':>12}{'ratio':>8}" + (f"{'err worst':>11}{'err mean':>9} accuracy case" if acc else ""))
72-
for n in NAMES:
73-
o = one([str(EXE)], n)
74-
t = one([sys.executable, str(ROOT / "benchmarks/core_ops_bench_torch.py")], n)
75-
if MARKDOWN:
76-
case = ACCURACY.get(n)
77-
if case == "exact":
78-
w = m = "exact"
79-
elif case in acc:
80-
w, m = fx(acc[case][2]), fx(acc[case][5])
81-
else:
82-
w = m = "-"
83-
print(f"| {n} | {o:.1f} | {t:.1f} | {o / t:.2f} | {w} | {m} |", flush=True)
84-
else:
85-
print(f"{n:<28}{o:>12.1f}{t:>12.1f}{o / t:>8.2f}{error_columns(n) if acc else ''}", flush=True)
145+
print("operations that depend on the precision mode (us, ratio to PyTorch, error x better worst / mean)")
146+
head = f"{'op':<24}{'torch us':>10}"
147+
for mode in MODES:
148+
head += f"{mode + ' us':>14}{'ratio':>7}{'err w/m':>16}"
149+
print(head)
150+
for n in dependent:
151+
line = f"{n:<24}{t_dep[n]:>10.1f}"
152+
for mode in MODES:
153+
w, m = err(mode, n)
154+
line += f"{o_dep[n, mode]:>14.1f}{o_dep[n, mode] / t_dep[n]:>7.2f}{w + ' / ' + m:>16}"
155+
print(line)
156+
print("\noperations that are the same in every mode")
157+
print(f"{'op':<28}{'oxideon us':>12}{'torch us':>12}{'ratio':>8}{'err worst':>11}{'err mean':>9}")
158+
for n in others:
159+
w, m = err("balanced", n)
160+
print(f"{n:<28}{o_oth[n]:>12.1f}{t_oth[n]:>12.1f}{o_oth[n] / t_oth[n]:>8.2f}{w:>11}{m:>9}")

‎docs/NUMERICAL_ACCURACY.md‎

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ kernel and other architectures always use the accurate form. Second, the accurat
146146
normalizations (`batch_norm`, `group_norm`, `var`, `std`, the `LayerNorm`/`BatchNorm` layers): `Fastest` skips the two extra
147147
passes that recover the rounded mean, `Balanced` and `Highest` keep them (see `Tensor::centered_by_mean`). Convolutions:
148148
`Fastest` sums the input channels of the Winograd kernel in one FMA chain; `Balanced` sums them in 4-channel chains whose totals are
149-
added with TwoSum (about 1.3x the time for 16 input channels and 0.9x for 64, error roughly halved; from 32 input channels the chains are 8 deep, which is
149+
added with TwoSum (about 1.3x the time of `Fastest` for 16 input channels and 1.2x for 64, error roughly halved; from 32 input channels the chains are 8 deep, which is
150150
what keeps the 64-channel case under PyTorch's time at a small cost in accuracy: 4.64x -> 4.58x worst, 2.99x -> 2.67x mean better than PyTorch); `Highest` takes im2col + the f64 GEMM (about 8x the time of Winograd).
151151

152152
### What the modes cost
@@ -155,13 +155,13 @@ what keeps the 64-channel case under PyTorch's time at a small cost in accuracy:
155155

156156
| benchmark | `Fastest` | `Balanced` | `Highest` | PyTorch |
157157
|---|---:|---:|---:|---:|
158-
| matmul 512 | 328 | 351 | 920 | 392 |
159-
| matmul 1024 | 2 630 | 2 643 | 6 451 | 3 086 |
160-
| matmul 256x4096x256 | 698 | 820 | 2 499 | 812 |
161-
| MLP train step, batch 256 | 777 | 888 | 1 920 | 876 |
162-
| conv2d 8x16x64x64 k3 | 484 | 664 | 4 105 | 512 |
163-
| conv2d 4x64x56x56 k3 | 1 190 | 1 467 | 6 279 | 1 529 |
164-
| gelu 1M | 101 | 135 | 134 | 111 |
158+
| matmul 512 | 325 | 371 | 934 | 399 |
159+
| matmul 1024 | 2 728 | 2 986 | 6 633 | 3 117 |
160+
| matmul 256x4096x256 | 736 | 851 | 2 700 | 992 |
161+
| MLP train step, batch 256 | 809 | 944 | 2 094 | 866 |
162+
| conv2d 8x16x64x64 k3 | 491 | 637 | 4 194 | 545 |
163+
| conv2d 4x64x56x56 k3 | 1 228 | 1 454 | 6 361 | 1 401 |
164+
| gelu 1M | 102 | 135 | 135 | 109 |
165165
| everything else in the suite (softmax, layer_norm, sum, exp ...) | unchanged | unchanged | unchanged |
166166

167167
`Balanced` no longer costs a synchronization per 48-deep chain: when a product has several chains, one parallel region splits the output into
@@ -215,10 +215,10 @@ benchmarks read `OXI_KCHUNK=<depth>` for experiments.
215215

216216
No switches: the accurate variants (f64 accumulation, hi/lo mean, `ln_1p` log-softmax, TwoSum-corrected softmax, correctly
217217
rounded `erf` via `libm` in f64) are always on, at no or small speed cost. Measured against PyTorch on the same machine:
218-
conv2d 1.3x the time of PyTorch for 16 channels and 0.96x for 64 (the TwoSum channel chains), layer_norm 0.65x (its variance sum used to be a scalar f32 chain; now eight
218+
conv2d 1.17x the time of PyTorch for 16 channels and 1.04x for 64 (the TwoSum channel chains), layer_norm 0.65x (its variance sum used to be a scalar f32 chain; now eight
219219
vector lanes, which is also more accurate: layer_norm of offset data went from 115x to 385x better than PyTorch), softmax 0.97x, gelu
220-
1.2x in `Balanced` (its tail-accurate erfc is what makes it ~22x better than PyTorch) and 0.9x in `Fastest`, which switches to the
221-
five-term Abramowitz-Stegun erfc (101 us vs PyTorch's ~111 us; still ~18x / ~140x better than PyTorch on worst / mean error), tanh 0.6x (faster than PyTorch's).
220+
1.24x in `Balanced` (its tail-accurate erfc is what makes it ~22x better than PyTorch) and 0.93x in `Fastest`, which switches to the
221+
five-term Abramowitz-Stegun erfc (102 us vs PyTorch's ~109 us; still ~18x / ~140x better than PyTorch on worst / mean error), tanh 0.6x (faster than PyTorch's).
222222

223223
## Techniques, per op
224224

0 commit comments

Comments
 (0)