feat: ui + docs: для жюри
This commit is contained in:
@@ -23,11 +23,12 @@ torch.onnx.export(
|
||||
str(OUT / "model.onnx"),
|
||||
input_names=["input_ids", "attention_mask", "token_type_ids"],
|
||||
output_names=["logits"],
|
||||
dynamic_shapes=[
|
||||
{0: "batch", 1: "seq"},
|
||||
{0: "batch", 1: "seq"},
|
||||
{0: "batch", 1: "seq"},
|
||||
],
|
||||
dynamic_axes={
|
||||
"input_ids": {0: "batch", 1: "seq"},
|
||||
"attention_mask": {0: "batch", 1: "seq"},
|
||||
"token_type_ids": {0: "batch", 1: "seq"},
|
||||
"logits": {0: "batch", 1: "seq"},
|
||||
},
|
||||
opset_version=14,
|
||||
)
|
||||
print("ONNX exported to", OUT / "model.onnx")
|
||||
Reference in New Issue
Block a user