|
@ -107,7 +107,7 @@ class AutoTransformers(NNOperator): |
|
|
path, |
|
|
path, |
|
|
input_names=["input_ids", "token_type_ids", "attention_mask"], # list(inputs.keys()) |
|
|
input_names=["input_ids", "token_type_ids", "attention_mask"], # list(inputs.keys()) |
|
|
output_names=["last_hidden_state"], |
|
|
output_names=["last_hidden_state"], |
|
|
opset_version=10, |
|
|
|
|
|
|
|
|
opset_version=12, |
|
|
dynamic_axes={ |
|
|
dynamic_axes={ |
|
|
"input_ids": {0: "batch_size", 1: "input_length"}, |
|
|
"input_ids": {0: "batch_size", 1: "input_length"}, |
|
|
"token_type_ids": {0: "batch_size", 1: "input_length"}, |
|
|
"token_type_ids": {0: "batch_size", 1: "input_length"}, |
|
@ -120,7 +120,7 @@ class AutoTransformers(NNOperator): |
|
|
path, |
|
|
path, |
|
|
input_names=["input_ids", "token_type_ids", "attention_mask"], # list(inputs.keys()) |
|
|
input_names=["input_ids", "token_type_ids", "attention_mask"], # list(inputs.keys()) |
|
|
output_names=["last_hidden_state", "pooler_output"], |
|
|
output_names=["last_hidden_state", "pooler_output"], |
|
|
opset_version=10, |
|
|
|
|
|
|
|
|
opset_version=12, |
|
|
dynamic_axes={ |
|
|
dynamic_axes={ |
|
|
"input_ids": {0: "batch_size", 1: "input_length"}, |
|
|
"input_ids": {0: "batch_size", 1: "input_length"}, |
|
|
"token_type_ids": {0: "batch_size", 1: "input_length"}, |
|
|
"token_type_ids": {0: "batch_size", 1: "input_length"}, |
|
|