Skip to content

Commit ca0654e

Browse files
authored
Merge pull request #848 from huningxin/support_int64
Bugfix: Support `int64` for `abs`, `neg`, `sign`, `prelu` and `relu`
2 parents 2baa084 + fe7fa56 commit ca0654e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

index.bs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3714,7 +3714,7 @@ partial dictionary MLOpSupportLimits {
37143714
</summary>
37153715
<div algorithm>
37163716
The <dfn method for=MLGraphBuilder>abs(|input|, |options|)</dfn> method steps are:
3717-
1. Let |output| be the result of [=MLGraphBuilder/element-wise-unary-op|creating an element-wise unary operation=] given "abs", |input|, « {{MLOperandDataType/"float32"}}, {{MLOperandDataType/"float16"}}, {{MLOperandDataType/"int32"}}, {{MLOperandDataType/"int8"}} », and |options|.
3717+
1. Let |output| be the result of [=MLGraphBuilder/element-wise-unary-op|creating an element-wise unary operation=] given "abs", |input|, « {{MLOperandDataType/"float32"}}, {{MLOperandDataType/"float16"}}, {{MLOperandDataType/"int64"}}, {{MLOperandDataType/"int32"}}, {{MLOperandDataType/"int8"}} », and |options|.
37183718
1. If that [=exception/throws=] an error, then re-[=exception/throw=] the error.
37193719
1. Return |output|.
37203720
</div>
@@ -3770,7 +3770,7 @@ partial dictionary MLOpSupportLimits {
37703770

37713771
<div algorithm>
37723772
The <dfn method for=MLGraphBuilder>neg(|input|, |options|)</dfn> method steps are:
3773-
1. Let |output| be the result of [=MLGraphBuilder/element-wise-unary-op|creating an element-wise unary operation=] given "neg", |input|, « {{MLOperandDataType/"float32"}}, {{MLOperandDataType/"float16"}}, {{MLOperandDataType/"int32"}}, {{MLOperandDataType/"int8"}} », and |options|.
3773+
1. Let |output| be the result of [=MLGraphBuilder/element-wise-unary-op|creating an element-wise unary operation=] given "neg", |input|, « {{MLOperandDataType/"float32"}}, {{MLOperandDataType/"float16"}}, {{MLOperandDataType/"int64"}}, {{MLOperandDataType/"int32"}}, {{MLOperandDataType/"int8"}} », and |options|.
37743774
1. If that [=exception/throws=] an error, then re-[=exception/throw=] the error.
37753775
1. Return |output|.
37763776
</div>
@@ -3791,7 +3791,7 @@ partial dictionary MLOpSupportLimits {
37913791

37923792
<div algorithm>
37933793
The <dfn method for=MLGraphBuilder>sign(|input|, |options|)</dfn> method steps are:
3794-
1. Let |output| be the result of [=MLGraphBuilder/element-wise-unary-op|creating an element-wise unary operation=] given "sign", |input|, « {{MLOperandDataType/"float32"}}, {{MLOperandDataType/"float16"}}, {{MLOperandDataType/"int32"}}, {{MLOperandDataType/"int8"}} », and |options|.
3794+
1. Let |output| be the result of [=MLGraphBuilder/element-wise-unary-op|creating an element-wise unary operation=] given "sign", |input|, « {{MLOperandDataType/"float32"}}, {{MLOperandDataType/"float16"}}, {{MLOperandDataType/"int64"}}, {{MLOperandDataType/"int32"}}, {{MLOperandDataType/"int8"}} », and |options|.
37953795
1. If that [=exception/throws=] an error, then re-[=exception/throw=] the error.
37963796
1. Return |output|.
37973797
</div>
@@ -7683,7 +7683,7 @@ partial dictionary MLOpSupportLimits {
76837683
</thead>
76847684
<tr>
76857685
<td>{{input}}</td>
7686-
<td>{{MLOperandDataType/"float32"}}, {{MLOperandDataType/"float16"}}, {{MLOperandDataType/"int32"}}, {{MLOperandDataType/"int8"}}</td>
7686+
<td>{{MLOperandDataType/"float32"}}, {{MLOperandDataType/"float16"}}, {{MLOperandDataType/"int64"}}, {{MLOperandDataType/"int32"}}, {{MLOperandDataType/"int8"}}</td>
76877687
<td>[=/any rank|N=]</td>
76887688
<tr>
76897689
<td>{{slope}}</td>
@@ -8038,7 +8038,7 @@ partial dictionary MLOpSupportLimits {
80388038
</thead>
80398039
<tr>
80408040
<td>{{input}}</td>
8041-
<td>{{MLOperandDataType/"float32"}}, {{MLOperandDataType/"float16"}}, {{MLOperandDataType/"int32"}}, {{MLOperandDataType/"int8"}}</td>
8041+
<td>{{MLOperandDataType/"float32"}}, {{MLOperandDataType/"float16"}}, {{MLOperandDataType/"int64"}}, {{MLOperandDataType/"int32"}}, {{MLOperandDataType/"int8"}}</td>
80428042
<td>[=/any rank|N=]</td>
80438043
</tr>
80448044
<tr>

0 commit comments

Comments
 (0)