Skip to content
This repository was archived by the owner on Mar 3, 2025. It is now read-only.

Commit 0b8f19c

Browse files
committed
update tests
1 parent e7438fa commit 0b8f19c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+1187
-1165
lines changed

nodegen/node/less_equal.py

+10-10
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def default():
1313

1414
x = Tensor(Dtype.U32, x.shape, x.flatten())
1515
y = Tensor(Dtype.U32, y.shape, y.flatten())
16-
z = Tensor(Dtype.U32, z.shape, z.flatten())
16+
z = Tensor(Dtype.I32, z.shape, z.flatten())
1717

1818
name = "less_equal_u32"
1919
make_test([x, y], z, "input_0.less_equal(@input_1)", name)
@@ -25,7 +25,7 @@ def broadcast():
2525

2626
x = Tensor(Dtype.U32, x.shape, x.flatten())
2727
y = Tensor(Dtype.U32, y.shape, y.flatten())
28-
z = Tensor(Dtype.U32, z.shape, z.flatten())
28+
z = Tensor(Dtype.I32, z.shape, z.flatten())
2929

3030
name = "less_equal_u32_broadcast"
3131
make_test([x, y], z, "input_0.less_equal(@input_1)", name)
@@ -42,7 +42,7 @@ def default():
4242

4343
x = Tensor(Dtype.I32, x.shape, x.flatten())
4444
y = Tensor(Dtype.I32, y.shape, y.flatten())
45-
z = Tensor(Dtype.U32, z.shape, z.flatten())
45+
z = Tensor(Dtype.I32, z.shape, z.flatten())
4646

4747
name = "less_equal_i32"
4848
make_test([x, y], z, "input_0.less_equal(@input_1)", name)
@@ -54,7 +54,7 @@ def broadcast():
5454

5555
x = Tensor(Dtype.I32, x.shape, x.flatten())
5656
y = Tensor(Dtype.I32, y.shape, y.flatten())
57-
z = Tensor(Dtype.U32, z.shape, z.flatten())
57+
z = Tensor(Dtype.I32, z.shape, z.flatten())
5858

5959
name = "less_equal_i32_broadcast"
6060
make_test([x, y], z, "input_0.less_equal(@input_1)", name)
@@ -71,7 +71,7 @@ def default():
7171

7272
x = Tensor(Dtype.I8, x.shape, x.flatten())
7373
y = Tensor(Dtype.I8, y.shape, y.flatten())
74-
z = Tensor(Dtype.U32, z.shape, z.flatten())
74+
z = Tensor(Dtype.I32, z.shape, z.flatten())
7575

7676
name = "less_equal_i8"
7777
make_test([x, y], z, "input_0.less_equal(@input_1)", name)
@@ -83,7 +83,7 @@ def broadcast():
8383

8484
x = Tensor(Dtype.I8, x.shape, x.flatten())
8585
y = Tensor(Dtype.I8, y.shape, y.flatten())
86-
z = Tensor(Dtype.U32, z.shape, z.flatten())
86+
z = Tensor(Dtype.I32, z.shape, z.flatten())
8787

8888
name = "less_equal_i8_broadcast"
8989
make_test([x, y], z, "input_0.less_equal(@input_1)", name)
@@ -102,7 +102,7 @@ def default():
102102
x.flatten(), FixedImpl.FP8x23))
103103
y = Tensor(Dtype.FP8x23, y.shape, to_fp(
104104
y.flatten(), FixedImpl.FP8x23))
105-
z = Tensor(Dtype.U32, z.shape, z.flatten())
105+
z = Tensor(Dtype.I32, z.shape, z.flatten())
106106

107107
name = "less_equal_fp8x23"
108108
make_test([x, y], z, "input_0.less_equal(@input_1)", name)
@@ -116,7 +116,7 @@ def broadcast():
116116
x.flatten(), FixedImpl.FP8x23))
117117
y = Tensor(Dtype.FP8x23, y.shape, to_fp(
118118
y.flatten(), FixedImpl.FP8x23))
119-
z = Tensor(Dtype.U32, z.shape, z.flatten())
119+
z = Tensor(Dtype.I32, z.shape, z.flatten())
120120

121121
name = "less_equal_fp8x23_broadcast"
122122
make_test([x, y], z, "input_0.less_equal(@input_1)", name)
@@ -135,7 +135,7 @@ def default():
135135
x.flatten(), FixedImpl.FP16x16))
136136
y = Tensor(Dtype.FP16x16, y.shape, to_fp(
137137
y.flatten(), FixedImpl.FP16x16))
138-
z = Tensor(Dtype.U32, z.shape, z.flatten())
138+
z = Tensor(Dtype.I32, z.shape, z.flatten())
139139

140140
name = "less_equal_fp16x16"
141141
make_test([x, y], z, "input_0.less_equal(@input_1)", name)
@@ -149,7 +149,7 @@ def broadcast():
149149
x.flatten(), FixedImpl.FP16x16))
150150
y = Tensor(Dtype.FP16x16, y.shape, to_fp(
151151
y.flatten(), FixedImpl.FP16x16))
152-
z = Tensor(Dtype.U32, z.shape, z.flatten())
152+
z = Tensor(Dtype.I32, z.shape, z.flatten())
153153

154154
name = "less_equal_fp16x16_broadcast"
155155
make_test([x, y], z, "input_0.less_equal(@input_1)", name)

0 commit comments

Comments
 (0)