Skip to content

Commit

Permalink
Add length constraint in Transpose doc
Browse files Browse the repository at this point in the history
Signed-off-by: isdanni <leedanni@gmail.com>
  • Loading branch information
isdanni committed Jan 15, 2024
1 parent f1c59a5 commit 58ac0a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion onnx/defs/tensor/defs.cc
Expand Up @@ -1087,7 +1087,8 @@ ONNX_OPERATOR_SET_SCHEMA(
.Attr(
"perm",
"A list of integers. By default, reverse the dimensions, "
"otherwise permute the axes according to the values given.",
"otherwise permute the axes according to the values given."
"Its length must equal to the rank of the input.",
AttributeProto::INTS,
OPTIONAL_VALUE)
.Input(0, "data", "An input tensor.", "T", OpSchema::Single, true, 1, OpSchema::Differentiable)
Expand Down

0 comments on commit 58ac0a0

Please sign in to comment.