Skip to content

Commit 7fcdf41

Browse files
authored
Changed to use float16 instead of int16 (#873)
1 parent e4d44fb commit 7fcdf41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/lib/model/nns/onnx/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
name="c",
5454
data_type=data_type,
5555
dims=(2, 2),
56-
vals=np.array(vals, dtype=np.int16).tobytes(),
56+
vals=np.array(vals, dtype=np.float16).tobytes(),
5757
raw=True,
5858
)
5959
node = onnx.helper.make_node("Constant", inputs=[], outputs=["y"], value=C_init)

0 commit comments

Comments
 (0)