Skip to content

Commit

Permalink
Merge branch 'microsoft:main' into doc-script-const-1
Browse files Browse the repository at this point in the history
  • Loading branch information
leshabirukov authored Jan 9, 2025
2 parents 4804d5d + 646116c commit e906138
Show file tree
Hide file tree
Showing 84 changed files with 405 additions and 3,545 deletions.
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"pytest!=7.1.0",
"pyyaml",
"types-PyYAML",
"typing_extensions",
"typing_extensions>=4.10",
"ml-dtypes",
)
ONNX = "onnx==1.17"
Expand Down
3 changes: 3 additions & 0 deletions onnxscript/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -800,6 +800,9 @@ def translate_slice(slice_expr: ast.Slice) -> tuple[str, str, str]:
non_scalar_indices.extend(scalar_indices)
if non_scalar_indices:
last_axis, _ = non_scalar_indices[-1]
else:
# TODO(justinchuby): Clarify what last_axis should be when non_scalar_indices is False
last_axis = None
for axis, index_expr in non_scalar_indices:
index_value = self._translate_expr(index_expr)
axis_attr = self._make_onnx_attr("axis", axis)
Expand Down
35 changes: 0 additions & 35 deletions onnxscript/diagnostics/infra/__init__.py

This file was deleted.

321 changes: 0 additions & 321 deletions onnxscript/diagnostics/infra/_infra.py

This file was deleted.

Loading

0 comments on commit e906138

Please sign in to comment.