Skip to content

Commit

Permalink
Changed to use float16 instead of int16 (#873)
Browse files Browse the repository at this point in the history
  • Loading branch information
ishii-norimi authored Jun 17, 2024
1 parent e4d44fb commit 7fcdf41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/lib/model/nns/onnx/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
name="c",
data_type=data_type,
dims=(2, 2),
vals=np.array(vals, dtype=np.int16).tobytes(),
vals=np.array(vals, dtype=np.float16).tobytes(),
raw=True,
)
node = onnx.helper.make_node("Constant", inputs=[], outputs=["y"], value=C_init)
Expand Down

0 comments on commit 7fcdf41

Please sign in to comment.