Skip to content

Commit ed444d0

Browse files
committed
Update base for Update on "Add ops (addr) | feat(torchlib)"
----- - Mark nan==nan in assert_close - Fix aten_isfinite by allowing the exporter to do type promotion according to #563 and introduce `TFloatHighPrecision` for it - Fix typo in `TRealOrUInt8` [ghstack-poisoned]
2 parents d6a611e + f2264b9 commit ed444d0

File tree

9 files changed

+420
-2
lines changed

9 files changed

+420
-2
lines changed

docs/_static/css/custom.css

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,75 @@
11
.navbar-brand {
22
padding: 4px 0 2px 0;
33
}
4+
5+
.bi {
6+
width: 1em;
7+
height: 1em;
8+
display: inline-block;
9+
vertical-align: -0.125em;
10+
fill: currentcolor;
11+
flex-shrink: 0;
12+
}
13+
14+
.article-meta {
15+
display: flex;
16+
align-items: first baseline;
17+
opacity: 80%;
18+
}
19+
20+
.article-meta:not(:last-child) {
21+
margin-bottom: 0.5rem;
22+
}
23+
24+
.article-meta .bi:first-child {
25+
margin-right: 0.5em;
26+
}
27+
28+
.article-authors > ul {
29+
display: inline;
30+
list-style: none;
31+
margin: 0;
32+
padding: 0;
33+
}
34+
35+
.article-authors > ul > li {
36+
display: inline;
37+
}
38+
39+
.article-authors > ul > li:not(:last-child)::after {
40+
content: " • ";
41+
}
42+
43+
.article-date > span {
44+
font-style: italic;
45+
font-size: 0.875rem;
46+
opacity: 80%;
47+
}
48+
49+
.highlight {
50+
overflow-x: auto;
51+
overflow-y: scroll;
52+
}
53+
54+
.code-title {
55+
text-align: center;
56+
font-weight: normal;
57+
font-style: italic;
58+
margin-top: 1.5em;
59+
}
60+
61+
@media screen {
62+
.longcode > .highlight {
63+
max-height: 25em;
64+
}
65+
}
66+
67+
figure.math {
68+
text-align: center;
69+
margin: 1em 0;
70+
}
71+
72+
figure.math svg {
73+
fill: currentColor;
74+
max-width: max(60%, 400px);
75+
}
Loading

docs/articles/2023-06-20-introducing-onnx-script/index.md

Lines changed: 335 additions & 0 deletions
Large diffs are not rendered by default.
Loading
Loading

docs/articles/index.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Articles
2+
3+
```{toctree}
4+
:maxdepth: 1
5+
6+
2023-06-20-introducing-onnx-script/index
7+
```

docs/conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# -- Project information -----------------------------------------------------
1313

1414
project = "onnxscript"
15-
copyright = "2023, Microsoft"
15+
copyright = "Microsoft. All rights reserved."
1616
author = "onnx"
1717
version = onnxscript.__version__
1818
release = version
@@ -38,6 +38,7 @@
3838
myst_enable_extensions = [
3939
"amsmath",
4040
"attrs_inline",
41+
"attrs_block",
4142
"colon_fence",
4243
"deflist",
4344
"dollarmath",

docs/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ result = MatmulAdd(x, wt, bias)
9696
```{toctree}
9797
:maxdepth: 1
9898
99+
articles/index
99100
tutorial/index
100101
auto_examples/index
101102
api/index

onnxscript/tests/function_libs/torch_lib/ops_test_data.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@ class TorchLibOpInfo:
7777
nondeterministic: bool = False
7878
# Whether the function is designed for complex inputs
7979
complex: bool = False
80-
# The tolerance for the test {dtype: (rtol, atol)}.
80+
# The acceptable tolerance of the inference result difference between PyTorch and ORT.
81+
# Format: {dtype: (rtol, atol)}.
82+
# For example: {torch.float16: (1e-3, 1e-3)}
8183
tolerance: dict[torch.dtype, tuple[float, float]] = dataclasses.field(default_factory=dict)
8284
# Expected skips or fails for the test and/or subtests
8385
skips_or_fails: list[ops_test_common.DecorateMeta] = dataclasses.field(

0 commit comments

Comments
 (0)