@@ -8,7 +8,7 @@ const tests = [
8
8
{
9
9
name : '[gather] Test gather with default options and 0-D indices' ,
10
10
input : { dataType : 'int32' , dimensions : [ 3 ] } ,
11
- indices : { dataType : 'int64 ' , dimensions : [ ] } ,
11
+ indices : { dataType : 'uint64 ' , dimensions : [ ] } ,
12
12
output : { dataType : 'int32' , dimensions : [ ] }
13
13
} ,
14
14
{
@@ -24,23 +24,15 @@ const tests = [
24
24
indices : { dataType : 'int64' , dimensions : [ 1 ] }
25
25
} ,
26
26
{
27
- name :
28
- '[gather] TypeError is expected if the axis is greater than the rank of input' ,
27
+ name : '[gather] TypeError is expected if the axis is greater than the rank of input' ,
29
28
input : { dataType : 'float16' , dimensions : [ 1 , 2 , 3 ] } ,
30
- indices : { dataType : 'uint32 ' , dimensions : [ 5 , 6 ] } ,
29
+ indices : { dataType : 'int32 ' , dimensions : [ 5 , 6 ] } ,
31
30
axis : 4
32
31
} ,
33
32
{
34
- name :
35
- '[gather] TypeError is expected if the data type of indices is float32 which is invalid' ,
33
+ name : '[gather] TypeError is expected if the data type of indices is invalid' ,
36
34
input : { dataType : 'float16' , dimensions : [ 1 , 2 , 3 , 4 ] } ,
37
35
indices : { dataType : 'float32' , dimensions : [ 5 , 6 ] }
38
- } ,
39
- {
40
- name :
41
- '[gather] TypeError is expected if the data type of indices is int32 which is invalid' ,
42
- input : { dataType : 'float16' , dimensions : [ 1 , 2 , 3 , 4 ] } ,
43
- indices : { dataType : 'int32' , dimensions : [ 5 , 6 ] }
44
36
}
45
37
] ;
46
38
0 commit comments