Skip to content

Commit 99e8773

Browse files
validate softmax axis against inputs rank
1 parent 8334919 commit 99e8773

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

index.bs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5317,6 +5317,7 @@ partial interface MLGraphBuilder {
53175317
</summary>
53185318
1. If [=MLGraphBuilder/validating operand=] with [=this=] and |input| returns false, then [=exception/throw=] a {{TypeError}}.
53195319
1. If |input|'s [=MLOperand/rank=] is not 2, then [=exception/throw=] a {{TypeError}}.
5320+
1. If |axis| is greater than or equal to |input|'s [=MLOperand/rank=], then [=exception/throw=] a {{TypeError}}.
53205321
1. *Make graph connections:*
53215322
1. Let |output| be the result of [=copying an MLOperand=] given |input|.
53225323
1. Let |operator| be an [=operator=] for the softmax operation, given |axis|.

0 commit comments

Comments
 (0)