Skip to content

Commit

Permalink
Conventions: Linkify "rank" term in a few more places
Browse files Browse the repository at this point in the history
  • Loading branch information
inexorabletash committed Dec 19, 2023
1 parent 4048dc2 commit bfc901f
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -3227,7 +3227,7 @@ partial interface MLGraphBuilder {
1. If |options|.{{MLGruOptions/recurrentBias}}.{{MLOperand/[[descriptor]]}}.{{MLOperandDescriptor/dimensions}}[1] is not equal to 3 * |hiddenSize|, then [=exception/throw=] a "{{DataError}}" {{DOMException}}.
1. If |options|.{{MLGruOptions/initialHiddenState}} [=map/exists=].
1. [=Assert=]: its type is {{MLOperand}}.
1. If its rank is not 3, then [=exception/throw=] a "{{DataError}}" {{DOMException}}.
1. If its [=rank=] is not 3, then [=exception/throw=] a "{{DataError}}" {{DOMException}}.
1. If |options|.{{MLGruOptions/activations}} [=map/exists=] and its [=list/size=] is not 2, then [=exception/throw=] a {{TypeError}}.
1. If |steps| is not equal to |input|.{{MLOperand/[[descriptor]]}}.{{MLOperandDescriptor/dimensions}}[0], then [=exception/throw=] a {{TypeError}}.
1. Let |output| be an empty sequence of {{MLOperand}} objects.
Expand Down Expand Up @@ -3375,10 +3375,10 @@ partial interface MLGraphBuilder {
1. If |recurrentWeight|.{{MLOperand/[[descriptor]]}}.{{MLOperandDescriptor/dimensions}}[0] is not equal to 3 * |hiddenSize|, then [=exception/throw=] a "{{DataError}}" {{DOMException}}.
1. If |options|.{{MLGruOptions/bias}} [=map/exists=]:
1. [=Assert=]: its type is {{MLOperand}}.
1. If its rank is not equal to 3 * |hiddenSize|, then [=exception/throw=] a "{{DataError}}" {{DOMException}}.
1. If its [=rank=] is not equal to 3 * |hiddenSize|, then [=exception/throw=] a "{{DataError}}" {{DOMException}}.
1. If |options|.{{MLGruOptions/recurrentBias}} [=map/exists=]:
1. [=Assert=]: its type is {{MLOperand}}.
1. If its rank is not equal to 3 * |hiddenSize|, then [=exception/throw=] a "{{DataError}}" {{DOMException}}.
1. If its [=rank=] is not equal to 3 * |hiddenSize|, then [=exception/throw=] a "{{DataError}}" {{DOMException}}.
1. If |options|.{{MLGruOptions/activations}} [=map/exists=] and its [=list/size=] is not 2, then [=exception/throw=] a {{TypeError}}.
1. Let |desc| be a new {{MLOperandDescriptor}}.
1. Set |desc|.{{MLOperandDescriptor/dimensions}} to [ |input|.{{MLOperandDescriptor/dimensions}}[0], |hiddenSize| ].
Expand Down Expand Up @@ -4193,28 +4193,28 @@ partial interface MLGraphBuilder {
1. Let |batchSize| be |input|.{{MLOperand/[[descriptor]]}}.{{MLOperandDescriptor/dimensions}}[1].
1. If |options|.{{MLLstmOptions/bias}} [=map/exists=]:
1. [=Assert=]: its type is {{MLOperand}}.
1. If its rank is not 2, then [=exception/throw=] a "{{DataError}}" {{DOMException}}.
1. If its [=rank=] is not 2, then [=exception/throw=] a "{{DataError}}" {{DOMException}}.
1. If |options|.{{MLLstmOptions/bias}}.{{MLOperand/[[descriptor]]}}.{{MLOperandDescriptor/dimensions}}[0] is not |numDirections|, then [=exception/throw=] a "{{DataError}}" {{DOMException}}.
1. If |options|.{{MLLstmOptions/bias}}.{{MLOperand/[[descriptor]]}}.{{MLOperandDescriptor/dimensions}}[1] is not 4 * |hiddenSize|, then [=exception/throw=] a "{{DataError}}" {{DOMException}}.
1. If |options|.{{MLLstmOptions/recurrentBias}} [=map/exists=]:
1. [=Assert=]: its type is {{MLOperand}}.
1. If its rank is not 2, then [=exception/throw=] a "{{DataError}}" {{DOMException}}.
1. If its [=rank=] is not 2, then [=exception/throw=] a "{{DataError}}" {{DOMException}}.
1. If |options|.{{MLLstmOptions/recurrentBias}}.{{MLOperand/[[descriptor]]}}.{{MLOperandDescriptor/dimensions}}[0] is not |numDirections|, then [=exception/throw=] a "{{DataError}}" {{DOMException}}.
1. If |options|.{{MLLstmOptions/recurrentBias}}.{{MLOperand/[[descriptor]]}}.{{MLOperandDescriptor/dimensions}}[1] is not 4 * |hiddenSize|, then [=exception/throw=] a "{{DataError}}" {{DOMException}}.
1. If |options|.{{MLLstmOptions/peepholeWeight}} [=map/exists=]:
1. [=Assert=]: its type is {{MLOperand}}.
1. If its rank is not 2, then [=exception/throw=] a "{{DataError}}" {{DOMException}}.
1. If its [=rank=] is not 2, then [=exception/throw=] a "{{DataError}}" {{DOMException}}.
1. If |options|.{{MLLstmOptions/peepholeWeight}}.{{MLOperand/[[descriptor]]}}.{{MLOperandDescriptor/dimensions}}[0] is not |numDirections|, then [=exception/throw=] a "{{DataError}}" {{DOMException}}.
1. If |options|.{{MLLstmOptions/peepholeWeight}}.{{MLOperand/[[descriptor]]}}.{{MLOperandDescriptor/dimensions}}[1] is not 4 * |hiddenSize|, then [=exception/throw=] a "{{DataError}}" {{DOMException}}.
1. If |options|.{{MLLstmOptions/initialHiddenState}} [=map/exists=]:
1. [=Assert=]: its type is {{MLOperand}}.
1. If its rank is not 3, then [=exception/throw=] a "{{DataError}}" {{DOMException}}.
1. If its [=rank=] is not 3, then [=exception/throw=] a "{{DataError}}" {{DOMException}}.
1. If |options|.{{MLLstmOptions/initialHiddenState}}.{{MLOperand/[[descriptor]]}}.{{MLOperandDescriptor/dimensions}}[0] is not |numDirections|, then [=exception/throw=] a "{{DataError}}" {{DOMException}}.
1. If |options|.{{MLLstmOptions/initialHiddenState}}.{{MLOperand/[[descriptor]]}}.{{MLOperandDescriptor/dimensions}}[1] is not equal to |batchSize|, then [=exception/throw=] a "{{DataError}}" {{DOMException}}.
1. If |options|.{{MLLstmOptions/initialHiddenState}}.{{MLOperand/[[descriptor]]}}.{{MLOperandDescriptor/dimensions}}[2] is not |hiddenSize|, then [=exception/throw=] a "{{DataError}}" {{DOMException}}.
1. If |options|.{{MLLstmOptions/initialCellState}} [=map/exists=]:
1. [=Assert=]: its type is {{MLOperand}}.
1. If its rank is not 3, then [=exception/throw=] a "{{DataError}}" {{DOMException}}.
1. If its [=rank=] is not 3, then [=exception/throw=] a "{{DataError}}" {{DOMException}}.
1. If |options|.{{MLLstmOptions/initialCellState}}.{{MLOperand/[[descriptor]]}}.{{MLOperandDescriptor/dimensions}}[0] is not |numDirections|, then [=exception/throw=] a "{{DataError}}" {{DOMException}}.
1. If |options|.{{MLLstmOptions/initialCellState}}.{{MLOperand/[[descriptor]]}}.{{MLOperandDescriptor/dimensions}}[1] is not equal to |batchSize|, then [=exception/throw=] a "{{DataError}}" {{DOMException}}.
1. If |options|.{{MLLstmOptions/initialCellState}}.{{MLOperand/[[descriptor]]}}.{{MLOperandDescriptor/dimensions}}[2] is not |hiddenSize|, then [=exception/throw=] a "{{DataError}}" {{DOMException}}.
Expand Down Expand Up @@ -4394,15 +4394,15 @@ partial interface MLGraphBuilder {
1. Let |batchSize| be |input|.{{MLOperand/[[descriptor]]}}.{{MLOperandDescriptor/dimensions}}[0].
1. If |options|.{{MLLstmCellOptions/bias}} [=map/exists=]:
1. [=Assert=]: its type is {{MLOperand}}.
1. If its rank is not 1, then [=exception/throw=] a "{{DataError}}" {{DOMException}}.
1. If its [=rank=] is not 1, then [=exception/throw=] a "{{DataError}}" {{DOMException}}.
1. If |options|.{{MLLstmCellOptions/bias}}.{{MLOperand/[[descriptor]]}}.{{MLOperandDescriptor/dimensions}}[0] is not 4 * |hiddenSize|, then [=exception/throw=] a "{{DataError}}" {{DOMException}}.
1. If |options|.{{MLLstmCellOptions/recurrentBias}} [=map/exists=]:
1. [=Assert=]: its type is {{MLOperand}}.
1. If its rank is not 1, then [=exception/throw=] a "{{DataError}}" {{DOMException}}.
1. If its [=rank=] is not 1, then [=exception/throw=] a "{{DataError}}" {{DOMException}}.
1. If |options|.{{MLLstmCellOptions/recurrentBias}}.{{MLOperand/[[descriptor]]}}.{{MLOperandDescriptor/dimensions}}[0] is not 4 * |hiddenSize|, then [=exception/throw=] a "{{DataError}}" {{DOMException}}.
1. If |options|.{{MLLstmCellOptions/peepholeWeight}} [=map/exists=]:
1. [=Assert=]: its type is {{MLOperand}}.
1. If its rank is not 1, then [=exception/throw=] a "{{DataError}}" {{DOMException}}.
1. If its [=rank=] is not 1, then [=exception/throw=] a "{{DataError}}" {{DOMException}}.
1. If |options|.{{MLLstmCellOptions/peepholeWeight}}.{{MLOperand/[[descriptor]]}}.{{MLOperandDescriptor/dimensions}}[0] is not 3 * |hiddenSize|, then [=exception/throw=] a "{{DataError}}" {{DOMException}}.
1. If |options|.{{MLLstmCellOptions/activations}} [=map/exists=]:
1. If its [=list/size=] is not 3, then [=exception/throw=] a {{TypeError}}.
Expand Down

0 comments on commit bfc901f

Please sign in to comment.