onnxscript 0.7.2.dev20260701__tar.gz → 0.7.2.dev20260710__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (202) hide show
  1. {onnxscript-0.7.2.dev20260701/onnxscript.egg-info → onnxscript-0.7.2.dev20260710}/PKG-INFO +2 -2
  2. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/function_libs/torch_lib/ops/core.py +1 -1
  3. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/function_libs/torch_lib/ops/nn.py +1 -1
  4. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/onnx_opset/__init__.py +28 -0
  5. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/onnx_opset/_impl/opset1.py +13 -3
  6. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/onnx_opset/_impl/opset10.py +1 -0
  7. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/onnx_opset/_impl/opset11.py +8 -13
  8. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/onnx_opset/_impl/opset13.py +26 -26
  9. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/onnx_opset/_impl/opset14.py +1 -0
  10. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/onnx_opset/_impl/opset16.py +4 -4
  11. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/onnx_opset/_impl/opset17.py +11 -9
  12. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/onnx_opset/_impl/opset18.py +101 -56
  13. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/onnx_opset/_impl/opset19.py +2 -2
  14. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/onnx_opset/_impl/opset20.py +35 -20
  15. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/onnx_opset/_impl/opset21.py +12 -5
  16. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/onnx_opset/_impl/opset22.py +3 -0
  17. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/onnx_opset/_impl/opset23.py +56 -34
  18. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/onnx_opset/_impl/opset24.py +21 -14
  19. onnxscript-0.7.2.dev20260710/onnxscript/onnx_opset/_impl/opset25.py +1946 -0
  20. onnxscript-0.7.2.dev20260710/onnxscript/onnx_opset/_impl/opset26.py +189 -0
  21. onnxscript-0.7.2.dev20260710/onnxscript/onnx_opset/_impl/opset27.py +251 -0
  22. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/onnx_opset/_impl/opset6.py +3 -0
  23. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/onnx_opset/_impl/opset7.py +4 -0
  24. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/onnx_opset/_impl/opset9.py +2 -0
  25. onnxscript-0.7.2.dev20260710/onnxscript/onnx_opset/_impl/opset_ai_onnx_preview1.py +126 -0
  26. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/onnx_types.py +8 -0
  27. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/rewriter/ort_fusions/_test_utils.py +12 -5
  28. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710/onnxscript.egg-info}/PKG-INFO +2 -2
  29. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript.egg-info/SOURCES.txt +4 -0
  30. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/LICENSE +0 -0
  31. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/MANIFEST.in +0 -0
  32. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/README.md +0 -0
  33. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/VERSION +0 -0
  34. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/__init__.py +0 -0
  35. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/_framework_apis/__init__.py +0 -0
  36. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/_framework_apis/torch_2_11.py +0 -0
  37. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/_framework_apis/torch_2_5.py +0 -0
  38. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/_framework_apis/torch_2_6.py +0 -0
  39. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/_framework_apis/torch_2_7.py +0 -0
  40. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/_framework_apis/torch_2_8.py +0 -0
  41. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/_framework_apis/torch_2_9.py +0 -0
  42. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/_internal/__init__.py +0 -0
  43. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/_internal/_inference.py +0 -0
  44. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/_internal/_inliner.py +0 -0
  45. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/_internal/analysis.py +0 -0
  46. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/_internal/ast_utils.py +0 -0
  47. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/_internal/autocast.py +0 -0
  48. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/_internal/builder.py +0 -0
  49. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/_internal/converter.py +0 -0
  50. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/_internal/deprecation.py +0 -0
  51. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/_internal/evaluator.py +0 -0
  52. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/_internal/irbuilder.py +0 -0
  53. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/_internal/main.py +0 -0
  54. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/_internal/param_manipulation.py +0 -0
  55. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/_internal/sourceinfo.py +0 -0
  56. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/_internal/tape_builder.py +0 -0
  57. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/_internal/type_annotation.py +0 -0
  58. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/_internal/utils.py +0 -0
  59. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/_internal/values.py +0 -0
  60. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/_internal/version_utils.py +0 -0
  61. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/backend/__init__.py +0 -0
  62. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/backend/onnx_backend.py +0 -0
  63. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/backend/onnx_export.py +0 -0
  64. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/evaluator.py +0 -0
  65. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/function_libs/tools/torch_lib/deduce_type_constraints.py +0 -0
  66. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/function_libs/tools/torch_lib/generate_aten_signatures.py +0 -0
  67. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/function_libs/tools/torch_lib/generate_prims_signatures.py +0 -0
  68. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/function_libs/torch_lib/__init__.py +0 -0
  69. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/function_libs/torch_lib/_constants.py +0 -0
  70. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/function_libs/torch_lib/_flags.py +0 -0
  71. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/function_libs/torch_lib/graph_building/__init__.py +0 -0
  72. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/function_libs/torch_lib/ops/__init__.py +0 -0
  73. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/function_libs/torch_lib/ops/common.py +0 -0
  74. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/function_libs/torch_lib/ops/fft.py +0 -0
  75. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/function_libs/torch_lib/ops/linalg.py +0 -0
  76. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/function_libs/torch_lib/ops/nested.py +0 -0
  77. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/function_libs/torch_lib/ops/prims.py +0 -0
  78. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/function_libs/torch_lib/ops/quantized_decomposed.py +0 -0
  79. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/function_libs/torch_lib/ops/sparse.py +0 -0
  80. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/function_libs/torch_lib/ops/special.py +0 -0
  81. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/function_libs/torch_lib/ops/vision.py +0 -0
  82. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/function_libs/torch_lib/registration.py +0 -0
  83. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/function_libs/torch_lib/tensor_typing.py +0 -0
  84. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/ir/__init__.py +0 -0
  85. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/ir/_schemas.py +0 -0
  86. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/ir/convenience.py +0 -0
  87. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/ir/passes/__init__.py +0 -0
  88. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/ir/passes/common/__init__.py +0 -0
  89. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/nn/__init__.py +0 -0
  90. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/nn/_module.py +0 -0
  91. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/nn/_module_list.py +0 -0
  92. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/nn/_parameter.py +0 -0
  93. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/nn/_sequential.py +0 -0
  94. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/onnx_opset/_impl/opset12.py +0 -0
  95. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/onnx_opset/_impl/opset15.py +0 -0
  96. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/onnx_opset/_impl/opset2.py +0 -0
  97. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/onnx_opset/_impl/opset3.py +0 -0
  98. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/onnx_opset/_impl/opset4.py +0 -0
  99. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/onnx_opset/_impl/opset5.py +0 -0
  100. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/onnx_opset/_impl/opset8.py +0 -0
  101. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/onnx_opset/_impl/opset_ai_onnx_ml1.py +0 -0
  102. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/onnx_opset/_impl/opset_ai_onnx_ml2.py +0 -0
  103. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/onnx_opset/_impl/opset_ai_onnx_ml3.py +0 -0
  104. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/onnx_opset/_impl/opset_ai_onnx_ml4.py +0 -0
  105. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/onnx_opset/_impl/opset_ai_onnx_ml5.py +0 -0
  106. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/optimizer/__init__.py +0 -0
  107. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/optimizer/_constant_folding.py +0 -0
  108. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/optimizer/_optimizer.py +0 -0
  109. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/py.typed +0 -0
  110. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/rewriter/__init__.py +0 -0
  111. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/rewriter/_basics.py +0 -0
  112. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/rewriter/_context.py +0 -0
  113. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/rewriter/_fusion_utils.py +0 -0
  114. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/rewriter/_ir_utils.py +0 -0
  115. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/rewriter/_matcher.py +0 -0
  116. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/rewriter/_pattern_ir.py +0 -0
  117. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/rewriter/_rewrite_rule.py +0 -0
  118. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/rewriter/models/_bart_encoder.py +0 -0
  119. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/rewriter/models/_phi2lm.py +0 -0
  120. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/rewriter/models/_phi4lm.py +0 -0
  121. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/rewriter/models/_rotary_embedding_models.py +0 -0
  122. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/rewriter/models/_smollm_1.py +0 -0
  123. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/rewriter/models/_smollm_2.py +0 -0
  124. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/rewriter/models/_test_models.py +0 -0
  125. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/rewriter/models/_whisper_decoder.py +0 -0
  126. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/rewriter/models/_whisper_encoder.py +0 -0
  127. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/rewriter/onnx_fusions/__init__.py +0 -0
  128. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/rewriter/onnx_fusions/_onnx_fusions.py +0 -0
  129. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/rewriter/onnxruntime/__init__.py +0 -0
  130. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/rewriter/onnxruntime/bfloat16_utils/bfloat16_converter.py +0 -0
  131. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/rewriter/ort_fusions/__init__.py +0 -0
  132. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/rewriter/ort_fusions/_core.py +0 -0
  133. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/rewriter/ort_fusions/attention.py +0 -0
  134. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/rewriter/ort_fusions/bias_gelu.py +0 -0
  135. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/rewriter/ort_fusions/cos_sin_cache.py +0 -0
  136. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/rewriter/ort_fusions/erfgelu.py +0 -0
  137. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/rewriter/ort_fusions/fused_matmul_rule_sets.py +0 -0
  138. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/rewriter/ort_fusions/gelu.py +0 -0
  139. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/rewriter/ort_fusions/gqa.py +0 -0
  140. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/rewriter/ort_fusions/gqa_packed_qkv.py +0 -0
  141. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/rewriter/ort_fusions/group_normalization_merge_silu.py +0 -0
  142. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/rewriter/ort_fusions/instance_to_group_normalization.py +0 -0
  143. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/rewriter/ort_fusions/mha.py +0 -0
  144. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/rewriter/ort_fusions/mha_bias.py +0 -0
  145. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/rewriter/ort_fusions/mha_scale.py +0 -0
  146. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/rewriter/ort_fusions/rms_normalization.py +0 -0
  147. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/rewriter/ort_fusions/rotary_embedding.py +0 -0
  148. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/rewriter/ort_fusions/sdpa.py +0 -0
  149. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/rewriter/ort_fusions/sdpa_via_mha.py +0 -0
  150. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/rewriter/ort_fusions/shape_optimization.py +0 -0
  151. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/rewriter/ort_fusions/skip_normalization.py +0 -0
  152. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/rewriter/ort_fusions/softmax.py +0 -0
  153. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/rewriter/pattern.py +0 -0
  154. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/rewriter/rules/__init__.py +0 -0
  155. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/rewriter/rules/common/__init__.py +0 -0
  156. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/rewriter/rules/common/_basic_rules.py +0 -0
  157. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/rewriter/rules/common/_broadcast_to_matmul.py +0 -0
  158. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/rewriter/rules/common/_cast_constant_of_shape.py +0 -0
  159. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/rewriter/rules/common/_collapse_slices.py +0 -0
  160. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/rewriter/rules/common/_fuse_batchnorm.py +0 -0
  161. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/rewriter/rules/common/_fuse_conv_affine.py +0 -0
  162. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/rewriter/rules/common/_fuse_hardswish.py +0 -0
  163. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/rewriter/rules/common/_fuse_pad_into_conv.py +0 -0
  164. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/rewriter/rules/common/_fuse_relus_clips.py +0 -0
  165. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/rewriter/rules/common/_gemm_to_matmul_add.py +0 -0
  166. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/rewriter/rules/common/_matmul_add_to_gemm.py +0 -0
  167. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/rewriter/rules/common/_min_max_to_clip.py +0 -0
  168. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/rewriter/rules/common/_no_op.py +0 -0
  169. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/rewriter/rules/common/_redundant_scatter_nd.py +0 -0
  170. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/rewriter/rules/common/_remove_expand_before_binary_op.py +0 -0
  171. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/rewriter/rules/common/_remove_optional_bias.py +0 -0
  172. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/rewriter/rules/fusion/__init__.py +0 -0
  173. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/rewriter/rules/fusion/_gqa.py +0 -0
  174. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/rewriter/rules/fusion/_layer_norm.py +0 -0
  175. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/rewriter/rules/fusion/_rms_normalization.py +0 -0
  176. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/rewriter/rules/fusion/_rotary_embedding.py +0 -0
  177. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/rewriter/testing.py +0 -0
  178. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/tensor.py +0 -0
  179. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/testing/__init__.py +0 -0
  180. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/tools/__init__.py +0 -0
  181. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/tools/memory_peak.py +0 -0
  182. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/tools/transformers_models/__init__.py +0 -0
  183. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/tools/transformers_models/llama.py +0 -0
  184. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/tools/transformers_models/mistral.py +0 -0
  185. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/tools/transformers_models/phi.py +0 -0
  186. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/tools/transformers_models/phi3.py +0 -0
  187. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/utils/__init__.py +0 -0
  188. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/utils/evaluation_utils.py +0 -0
  189. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/utils/metadata_merger.py +0 -0
  190. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/utils/replace.py +0 -0
  191. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/utils/timing_utils.py +0 -0
  192. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/utils/utils.py +0 -0
  193. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/values.py +0 -0
  194. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/version_converter/__init__.py +0 -0
  195. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/version_converter/_c_api_utils.py +0 -0
  196. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript/version_converter/_version_converter.py +0 -0
  197. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript.egg-info/dependency_links.txt +0 -0
  198. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript.egg-info/requires.txt +0 -0
  199. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/onnxscript.egg-info/top_level.txt +0 -0
  200. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/pyproject.toml +0 -0
  201. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/setup.cfg +0 -0
  202. {onnxscript-0.7.2.dev20260701 → onnxscript-0.7.2.dev20260710}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: onnxscript
3
- Version: 0.7.2.dev20260701
3
+ Version: 0.7.2.dev20260710
4
4
  Summary: Naturally author ONNX functions and models using a subset of Python
5
5
  Author-email: Microsoft Corporation <onnx@microsoft.com>
6
6
  License: MIT License
@@ -27,7 +27,7 @@ License: MIT License
27
27
 
28
28
  Project-URL: Homepage, https://microsoft.github.io/onnxscript/
29
29
  Project-URL: Repository, https://github.com/microsoft/onnxscript
30
- Project-URL: Commit, https://github.com/microsoft/onnxscript/tree/c210193a0f45375c6eb7311a7371a8905124c992
30
+ Project-URL: Commit, https://github.com/microsoft/onnxscript/tree/e6fad72c99db6a5639ab8ee9bd9c04c9039c1cb0
31
31
  Classifier: Development Status :: 4 - Beta
32
32
  Classifier: Environment :: Console
33
33
  Classifier: Intended Audience :: Developers
@@ -8218,7 +8218,7 @@ def _aten_remainder(self: TTensor, other: TTensor, integer: bool) -> TTensor:
8218
8218
  return op.Sub(self, op.Mul(rounded_quotient, other))
8219
8219
 
8220
8220
 
8221
- @torch_op("aten::remainder.Tensor", trace_only=True)
8221
+ @torch_op(("aten::remainder.Tensor", "prims::remainder"), trace_only=True)
8222
8222
  def aten_remainder(self: TTensor, other: TTensor) -> TTensor:
8223
8223
  """remainder.Tensor(Tensor self, Tensor other) -> Tensor"""
8224
8224
 
@@ -1835,7 +1835,7 @@ def aten_scaled_dot_product_attention(
1835
1835
  if is_causal:
1836
1836
  attn_mask = _causal_attention_mask(query, key)
1837
1837
 
1838
- if enable_gqa:
1838
+ if enable_gqa and query.shape[1] != key.shape[1]:
1839
1839
  key, value = _attention_repeat_kv_for_group_query(query, key, value)
1840
1840
 
1841
1841
  if attn_mask is None:
@@ -39,11 +39,15 @@ from onnxscript.onnx_opset._impl.opset21 import Opset21
39
39
  from onnxscript.onnx_opset._impl.opset22 import Opset22
40
40
  from onnxscript.onnx_opset._impl.opset23 import Opset23
41
41
  from onnxscript.onnx_opset._impl.opset24 import Opset24
42
+ from onnxscript.onnx_opset._impl.opset25 import Opset25
43
+ from onnxscript.onnx_opset._impl.opset26 import Opset26
44
+ from onnxscript.onnx_opset._impl.opset27 import Opset27
42
45
  from onnxscript.onnx_opset._impl.opset_ai_onnx_ml1 import Opset_ai_onnx_ml1
43
46
  from onnxscript.onnx_opset._impl.opset_ai_onnx_ml2 import Opset_ai_onnx_ml2
44
47
  from onnxscript.onnx_opset._impl.opset_ai_onnx_ml3 import Opset_ai_onnx_ml3
45
48
  from onnxscript.onnx_opset._impl.opset_ai_onnx_ml4 import Opset_ai_onnx_ml4
46
49
  from onnxscript.onnx_opset._impl.opset_ai_onnx_ml5 import Opset_ai_onnx_ml5
50
+ from onnxscript.onnx_opset._impl.opset_ai_onnx_preview1 import Opset_ai_onnx_preview1
47
51
  from onnxscript.values import Opset
48
52
 
49
53
  __all__ = [
@@ -72,11 +76,15 @@ __all__ = [
72
76
  "opset22",
73
77
  "opset23",
74
78
  "opset24",
79
+ "opset25",
80
+ "opset26",
81
+ "opset27",
75
82
  "opset_ai_onnx_ml1",
76
83
  "opset_ai_onnx_ml2",
77
84
  "opset_ai_onnx_ml3",
78
85
  "opset_ai_onnx_ml4",
79
86
  "opset_ai_onnx_ml5",
87
+ "opset_ai_onnx_preview1",
80
88
  ]
81
89
 
82
90
 
@@ -110,11 +118,15 @@ opset21 = Opset21()
110
118
  opset22 = Opset22()
111
119
  opset23 = Opset23()
112
120
  opset24 = Opset24()
121
+ opset25 = Opset25()
122
+ opset26 = Opset26()
123
+ opset27 = Opset27()
113
124
  opset_ai_onnx_ml1 = Opset_ai_onnx_ml1()
114
125
  opset_ai_onnx_ml2 = Opset_ai_onnx_ml2()
115
126
  opset_ai_onnx_ml3 = Opset_ai_onnx_ml3()
116
127
  opset_ai_onnx_ml4 = Opset_ai_onnx_ml4()
117
128
  opset_ai_onnx_ml5 = Opset_ai_onnx_ml5()
129
+ opset_ai_onnx_preview1 = Opset_ai_onnx_preview1()
118
130
  all_opsets: Mapping[Tuple[str, int], Opset] = {
119
131
  (
120
132
  "",
@@ -212,6 +224,18 @@ all_opsets: Mapping[Tuple[str, int], Opset] = {
212
224
  "",
213
225
  24,
214
226
  ): opset24,
227
+ (
228
+ "",
229
+ 25,
230
+ ): opset25,
231
+ (
232
+ "",
233
+ 26,
234
+ ): opset26,
235
+ (
236
+ "",
237
+ 27,
238
+ ): opset27,
215
239
  (
216
240
  "ai.onnx.ml",
217
241
  1,
@@ -232,4 +256,8 @@ all_opsets: Mapping[Tuple[str, int], Opset] = {
232
256
  "ai.onnx.ml",
233
257
  5,
234
258
  ): opset_ai_onnx_ml5,
259
+ (
260
+ "ai.onnx.preview",
261
+ 1,
262
+ ): opset_ai_onnx_preview1,
235
263
  }
@@ -2118,6 +2118,9 @@ class Opset1(Opset):
2118
2118
 
2119
2119
 
2120
2120
  Given a matrix, apply Lp-normalization along the provided axis.
2121
+ The output is computed as: `output = input / Lp_norm(input, axis)`.
2122
+ When the Lp norm is zero (i.e., all elements along the axis are zero),
2123
+ the output is defined to be zero to avoid division by zero.
2121
2124
 
2122
2125
 
2123
2126
  Args:
@@ -4036,9 +4039,16 @@ class Opset1(Opset):
4036
4039
  r"""[🌐 Transpose(1)](https://onnx.ai/onnx/operators/onnx__Transpose.html#transpose-1 "Online Documentation")
4037
4040
 
4038
4041
 
4039
- Transpose the input tensor similar to numpy.transpose. For example, when
4040
- perm=(1, 0, 2), given an input tensor of shape (1, 2, 3), the output shape
4041
- will be (2, 1, 3).
4042
+ Returns a transpose of the input tensor. (Similar to `numpy.transpose`).
4043
+ The optional attribute `perm` must be a permutation of the dimensions of
4044
+ the input tensor. Axis `i` of the output tensor corresponds to the axis
4045
+ `perm[i]` of the input tensor.
4046
+ For example, when perm=(1, 0, 2), given an input tensor of shape (1, 2, 3),
4047
+ the output shape will be (2, 1, 3).
4048
+ When perm=(1, 2, 0), given an input tensor of shape (1, 2, 3),
4049
+ the output shape will be (2, 3, 1).
4050
+ If the attribute `perm` is omitted, its default value is `(n-1, ..., 0)`,
4051
+ where `n` is the rank of the input tensor.
4042
4052
 
4043
4053
 
4044
4054
  Args:
@@ -539,6 +539,7 @@ class Opset10(Opset9):
539
539
 
540
540
  Filter out boxes that have high intersection-over-union (IOU) overlap with previously selected boxes.
541
541
  Bounding boxes with score less than score_threshold are removed. Bounding box format is indicated by attribute center_point_box.
542
+ Boxes are suppressed if their IOU with a previously selected box is strictly greater than iou_threshold (i.e., boxes with IOU exactly equal to the threshold are kept).
542
543
  Note that this algorithm is agnostic to where the origin is in the coordinate system and more generally is invariant to
543
544
  orthogonal transformations and translations of the coordinate system; thus translating or reflections of the coordinate system
544
545
  result in the same boxes being selected by the algorithm.
@@ -846,7 +846,7 @@ class Opset11(Opset10):
846
846
  ::
847
847
 
848
848
  intermediate_zero_point = qmin - min(x)/y_scale
849
- y_zero_point = cast(round(saturate(itermediate_zero_point)))
849
+ y_zero_point = cast(round(saturate(intermediate_zero_point)))
850
850
 
851
851
 
852
852
 
@@ -1586,7 +1586,7 @@ class Opset11(Opset10):
1586
1586
  1) Values from the enclosing scope (i.e. variable "a" here) are in scope and can
1587
1587
  be referenced in the inputs of the loop.
1588
1588
  2) Any values computed in the loop body that needs to be used in a subsequent
1589
- iteration or after the loop are modelled using a pair of variables in the loop-body,
1589
+ iteration or after the loop are modeled using a pair of variables in the loop-body,
1590
1590
  consisting of an input variable (eg., b_in) and an output variable (eg., b_out).
1591
1591
  These are referred to as loop-carried dependences. The loop operation node
1592
1592
  supplies the input value of the input variable for the first iteration, and
@@ -1901,6 +1901,7 @@ class Opset11(Opset10):
1901
1901
 
1902
1902
  Filter out boxes that have high intersection-over-union (IOU) overlap with previously selected boxes.
1903
1903
  Bounding boxes with score less than score_threshold are removed. Bounding box format is indicated by attribute center_point_box.
1904
+ Boxes are suppressed if their IOU with a previously selected box is strictly greater than iou_threshold (i.e., boxes with IOU exactly equal to the threshold are kept).
1904
1905
  Note that this algorithm is agnostic to where the origin is in the coordinate system and more generally is invariant to
1905
1906
  orthogonal transformations and translations of the coordinate system; thus translating or reflections of the coordinate system
1906
1907
  result in the same boxes being selected by the algorithm.
@@ -1920,7 +1921,8 @@ class Opset11(Opset10):
1920
1921
  Default to 0, which means no output.
1921
1922
 
1922
1923
  iou_threshold: (optional) Float representing the threshold for deciding
1923
- whether boxes overlap too much with respect to IOU. It is scalar. Value
1924
+ whether boxes overlap too much with respect to IOU. Boxes with IoU
1925
+ strictly greater than this threshold are suppressed. It is scalar. Value
1924
1926
  range [0, 1]. Default to 0.
1925
1927
 
1926
1928
  score_threshold: (optional) Float representing the threshold for deciding
@@ -2190,15 +2192,12 @@ class Opset11(Opset10):
2190
2192
  up to `limit` (exclusive).
2191
2193
 
2192
2194
  The number of elements in the output of range is computed as below:
2193
-
2194
2195
  ::
2195
2196
 
2196
2197
  number_of_elements = max( ceil( (limit - start) / delta ) , 0 )
2197
2198
 
2198
2199
 
2199
-
2200
2200
  The pseudocode determining the contents of the output is shown below:
2201
-
2202
2201
  ::
2203
2202
 
2204
2203
  for(int i=0; i<number_of_elements; ++i) {
@@ -2206,18 +2205,14 @@ class Opset11(Opset10):
2206
2205
  }
2207
2206
 
2208
2207
 
2209
-
2210
- Example 1
2211
-
2208
+ Example 1:
2212
2209
  ::
2213
2210
 
2214
2211
  Inputs: start = 3, limit = 9, delta = 3
2215
2212
  Output: [3, 6]
2216
2213
 
2217
2214
 
2218
-
2219
- Example 2
2220
-
2215
+ Example 2:
2221
2216
  ::
2222
2217
 
2223
2218
  Inputs: start = 10, limit = 4, delta = -2
@@ -3130,7 +3125,7 @@ class Opset11(Opset10):
3130
3125
  output = np.copy(data)
3131
3126
  update_indices = indices.shape[:-1]
3132
3127
  for idx in np.ndindex(update_indices):
3133
- output[indices[idx]] = updates[idx]
3128
+ output[tuple(indices[idx])] = updates[idx]
3134
3129
 
3135
3130
  The order of iteration in the above loop is not specified.
3136
3131
  In particular, indices should not have duplicate entries: that is, if idx1 != idx2, then indices[idx1] != indices[idx2].
@@ -590,6 +590,8 @@ class Opset13(Opset12):
590
590
 
591
591
  This operator supports **multidirectional (i.e., Numpy-style) broadcasting**; for more details please check `Broadcasting in ONNX <https://github.com/onnx/onnx/blob/master/docs/Broadcasting.md>`_.
592
592
 
593
+ For integer inputs, the result is computed using truncating division (rounding toward zero).
594
+
593
595
 
594
596
  Args:
595
597
  A: (differentiable) First operand.
@@ -700,21 +702,7 @@ class Opset13(Opset12):
700
702
  op = Op(self, "Equal", schema)
701
703
  return op(*self._prepare_inputs(schema, A, B))
702
704
 
703
- T_Erf = TypeVar(
704
- "T_Erf",
705
- BFLOAT16,
706
- DOUBLE,
707
- FLOAT,
708
- FLOAT16,
709
- INT16,
710
- INT32,
711
- INT64,
712
- INT8,
713
- UINT16,
714
- UINT32,
715
- UINT64,
716
- UINT8,
717
- )
705
+ T_Erf = TypeVar("T_Erf", BFLOAT16, DOUBLE, FLOAT, FLOAT16)
718
706
 
719
707
  def Erf(self, input: T_Erf) -> T_Erf:
720
708
  r"""[🌐 Erf(13)](https://onnx.ai/onnx/operators/onnx__Erf.html#erf-13 "Online Documentation")
@@ -1741,7 +1729,7 @@ class Opset13(Opset12):
1741
1729
  1) Values from the enclosing scope (i.e. variable "a" here) are in scope and can
1742
1730
  be referenced in the inputs of the loop.
1743
1731
  2) Any values computed in the loop body that needs to be used in a subsequent
1744
- iteration or after the loop are modelled using a pair of variables in the loop-body,
1732
+ iteration or after the loop are modeled using a pair of variables in the loop-body,
1745
1733
  consisting of an input variable (eg., b_in) and an output variable (eg., b_out).
1746
1734
  These are referred to as loop-carried dependences. The loop operation node
1747
1735
  supplies the input value of the input variable for the first iteration, and
@@ -2810,17 +2798,22 @@ class Opset13(Opset12):
2810
2798
  which to reduce. The default is to reduce over empty axes. When axes is
2811
2799
  empty (either not provided or explicitly empty), behavior depends on
2812
2800
  'noop_with_empty_axes': reduction over all axes if
2813
- 'noop_with_empty_axes' is false, or no reduction is applied if
2814
- 'noop_with_empty_axes' is true (but other operations will be performed).
2815
- Accepted range is [-r, r-1] where r = rank(data).
2801
+ 'noop_with_empty_axes' is false, and reduction over the empty set of
2802
+ axes when 'noop_with_empty_axes' is true. Accepted range is [-r, r-1]
2803
+ where r = rank(data).
2816
2804
 
2817
2805
  keepdims: Keep the reduced dimension or not, default 1 means keep reduced
2818
2806
  dimension.
2819
2807
 
2820
2808
  noop_with_empty_axes: Defines behavior when axes is not provided or is
2821
- empty. If false (default), reduction happens over all axes. If true, no
2822
- reduction is applied, but other operations will be performed. For
2823
- example, ReduceSumSquare acts as a vanilla Square.
2809
+ empty. If false (default), reduction happens over all axes (similar to
2810
+ the case when `axis=None` in numpy). If true, reduction happens over an
2811
+ empty set of axes (similar to the case when `axis=()` in numpy). Note
2812
+ that reduction over an empty set of axes means that the reduction step
2813
+ behaves like a no-op (identity function), but composite-reduction
2814
+ operators will still perform the non-reduction steps as needed. Thus,
2815
+ ReduceLogSum returns the Log of input tensor, and ReduceSumSquare
2816
+ returns the Square of the input tensor, in this case.
2824
2817
  """
2825
2818
 
2826
2819
  schema = get_schema("ReduceSum", 13, "")
@@ -3246,7 +3239,7 @@ class Opset13(Opset12):
3246
3239
  output = np.copy(data)
3247
3240
  update_indices = indices.shape[:-1]
3248
3241
  for idx in np.ndindex(update_indices):
3249
- output[indices[idx]] = updates[idx]
3242
+ output[tuple(indices[idx])] = updates[idx]
3250
3243
 
3251
3244
  The order of iteration in the above loop is not specified.
3252
3245
  In particular, indices should not have duplicate entries: that is, if idx1 != idx2, then indices[idx1] != indices[idx2].
@@ -3943,9 +3936,16 @@ class Opset13(Opset12):
3943
3936
  r"""[🌐 Transpose(13)](https://onnx.ai/onnx/operators/onnx__Transpose.html#transpose-13 "Online Documentation")
3944
3937
 
3945
3938
 
3946
- Transpose the input tensor similar to numpy.transpose. For example, when
3947
- perm=(1, 0, 2), given an input tensor of shape (1, 2, 3), the output shape
3948
- will be (2, 1, 3).
3939
+ Returns a transpose of the input tensor. (Similar to `numpy.transpose`).
3940
+ The optional attribute `perm` must be a permutation of the dimensions of
3941
+ the input tensor. Axis `i` of the output tensor corresponds to the axis
3942
+ `perm[i]` of the input tensor.
3943
+ For example, when perm=(1, 0, 2), given an input tensor of shape (1, 2, 3),
3944
+ the output shape will be (2, 1, 3).
3945
+ When perm=(1, 2, 0), given an input tensor of shape (1, 2, 3),
3946
+ the output shape will be (2, 3, 1).
3947
+ If the attribute `perm` is omitted, its default value is `(n-1, ..., 0)`,
3948
+ where `n` is the rank of the input tensor.
3949
3949
 
3950
3950
 
3951
3951
  Args:
@@ -257,6 +257,7 @@ class Opset14(Opset13):
257
257
 
258
258
  This operator supports **multidirectional (i.e., Numpy-style) broadcasting**; for more details please check `Broadcasting in ONNX <https://github.com/onnx/onnx/blob/master/docs/Broadcasting.md>`_.
259
259
 
260
+ For integer inputs, the result is computed using truncating division (rounding toward zero).
260
261
  (Opset 14 change): Extend supported types to include uint8, int8, uint16, and int16.
261
262
 
262
263
 
@@ -566,7 +566,7 @@ class Opset16(Opset15):
566
566
  1) Values from the enclosing scope (i.e. variable "a" here) are in scope and can
567
567
  be referenced in the inputs of the loop.
568
568
  2) Any values computed in the loop body that needs to be used in a subsequent
569
- iteration or after the loop are modelled using a pair of variables in the loop-body,
569
+ iteration or after the loop are modeled using a pair of variables in the loop-body,
570
570
  consisting of an input variable (eg., b_in) and an output variable (eg., b_out).
571
571
  These are referred to as loop-carried dependences. The loop operation node
572
572
  supplies the input value of the input variable for the first iteration, and
@@ -1117,7 +1117,7 @@ class Opset16(Opset15):
1117
1117
  output = np.copy(data)
1118
1118
  update_indices = indices.shape[:-1]
1119
1119
  for idx in np.ndindex(update_indices):
1120
- output[indices[idx]] = updates[idx]
1120
+ output[tuple(indices[idx])] = updates[idx]
1121
1121
  The order of iteration in the above loop is not specified.
1122
1122
  In particular, indices should not have duplicate entries: that is, if idx1 != idx2, then indices[idx1] != indices[idx2].
1123
1123
  This ensures that the output value does not depend on the iteration order.
@@ -1130,12 +1130,12 @@ class Opset16(Opset15):
1130
1130
  output = np.copy(data)
1131
1131
  update_indices = indices.shape[:-1]
1132
1132
  for idx in np.ndindex(update_indices):
1133
- output[indices[idx]] += updates[idx]
1133
+ output[tuple(indices[idx])] += updates[idx]
1134
1134
  When `reduction` is set to "mul", `output` is calculated as follows:
1135
1135
  output = np.copy(data)
1136
1136
  update_indices = indices.shape[:-1]
1137
1137
  for idx in np.ndindex(update_indices):
1138
- output[indices[idx]] *= updates[idx]
1138
+ output[tuple(indices[idx])] *= updates[idx]
1139
1139
  This operator is the inverse of GatherND.
1140
1140
  Example 1:
1141
1141
  ::
@@ -121,8 +121,10 @@ class Opset17(Opset16):
121
121
  dft_length: (optional, non-differentiable) The length of the signal as a
122
122
  scalar. If greater than the axis dimension, the signal will be
123
123
  zero-padded up to dft_length. If less than the axis dimension, only the
124
- first dft_length values will be used as the signal. It's an optional
125
- value.
124
+ first dft_length values will be used as the signal. If not provided, the
125
+ default dft_length = signal_dim_axis, except for the IRFFT case
126
+ (onesided=1, inverse=1), in which case the default dft_length is 2 *
127
+ (signal_dim_axis - 1). It's an optional value.
126
128
 
127
129
  axis: The axis on which to perform the DFT. By default this value is set to
128
130
  1, which corresponds to the first dimension after the batch index.
@@ -134,13 +136,13 @@ class Opset17(Opset16):
134
136
  default this value is set to 0, which corresponds to false.
135
137
 
136
138
  onesided: If onesided is 1, only values for w in [0, 1, 2, ...,
137
- floor(n_fft/2) + 1] are returned because the real-to-complex Fourier
138
- transform satisfies the conjugate symmetry, i.e., X[m, w] = X[m,
139
- n_fft-w]*. Note if the input or window tensors are complex, then
140
- onesided output is not possible. Enabling onesided with real inputs
141
- performs a Real-valued fast Fourier transform (RFFT). When invoked with
142
- real or complex valued input, the default value is 0. Values can be 0 or
143
- 1.
139
+ floor(n_fft/2) + 1] are used or returned because the real-to-complex
140
+ Fourier transform satisfies the conjugate symmetry, i.e., X[m, w] = X[m,
141
+ n_fft-w]*. When onesided=1 and inverse=0 (forward DFT), only real input
142
+ is supported and a one-sided complex spectrum is returned (RFFT). When
143
+ onesided=1 and inverse=1 (inverse DFT), only complex input is supported
144
+ and a full real signal is returned (IRFFT). When invoked with real or
145
+ complex valued input, the default value is 0. Values can be 0 or 1.
144
146
  """
145
147
 
146
148
  schema = get_schema("DFT", 17, "")