mirror of
https://github.com/saymrwulf/pytorch.git
synced 2026-05-14 20:57:59 +00:00
Cap opset version at 17 for torch.onnx.export and suggest users to use the dynamo exporter. Warn users instead of failing hard because we should still allow users to create custom symbolic functions for opset>17. Also updates the default opset version by running `tools/onnx/update_default_opset_version.py`. Fixes #107801 Fixes #107446 Pull Request resolved: https://github.com/pytorch/pytorch/pull/107829 Approved by: https://github.com/BowenBao
47 lines
711 B
Text
47 lines
711 B
Text
ir_version: 8
|
|
producer_name: "pytorch"
|
|
producer_version: "CURRENT_VERSION"
|
|
graph {
|
|
node {
|
|
input: "onnx::Identity_0"
|
|
output: "1"
|
|
name: "Identity_0"
|
|
op_type: "Identity"
|
|
}
|
|
name: "main_graph"
|
|
input {
|
|
name: "onnx::Identity_0"
|
|
type {
|
|
tensor_type {
|
|
elem_type: 1
|
|
shape {
|
|
dim {
|
|
dim_value: 2
|
|
}
|
|
dim {
|
|
dim_value: 2
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
output {
|
|
name: "1"
|
|
type {
|
|
tensor_type {
|
|
elem_type: 1
|
|
shape {
|
|
dim {
|
|
dim_value: 2
|
|
}
|
|
dim {
|
|
dim_value: 2
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
opset_import {
|
|
version: 17
|
|
}
|