pytorch/test/onnx/expect/TestOperators.test_basic.expect
Justin Chu 387556318e [ONNX] Cap opset version at 17 for torch.onnx.export (#107829)
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
2023-08-24 07:21:10 +00:00

80 lines
1.2 KiB
Text

ir_version: 8
producer_name: "pytorch"
producer_version: "CURRENT_VERSION"
graph {
node {
input: "onnx::Add_0"
input: "onnx::Add_1"
output: "onnx::Mul_2"
name: "Add_0"
op_type: "Add"
}
node {
input: "onnx::Add_0"
input: "onnx::Mul_2"
output: "onnx::Tanh_3"
name: "Mul_1"
op_type: "Mul"
}
node {
input: "onnx::Tanh_3"
output: "onnx::Sigmoid_4"
name: "Tanh_2"
op_type: "Tanh"
}
node {
input: "onnx::Sigmoid_4"
output: "onnx::Neg_5"
name: "Sigmoid_3"
op_type: "Sigmoid"
}
node {
input: "onnx::Neg_5"
output: "6"
name: "Neg_4"
op_type: "Neg"
}
name: "main_graph"
input {
name: "onnx::Add_0"
type {
tensor_type {
elem_type: 1
shape {
dim {
dim_value: 1
}
}
}
}
}
input {
name: "onnx::Add_1"
type {
tensor_type {
elem_type: 1
shape {
dim {
dim_value: 1
}
}
}
}
}
output {
name: "6"
type {
tensor_type {
elem_type: 1
shape {
dim {
dim_value: 1
}
}
}
}
}
}
opset_import {
version: 17
}