Skip to content

Commit

Permalink
Add int32 to casts types.
Browse files Browse the repository at this point in the history
Related to issue kraiskil#26
  • Loading branch information
kraiskil committed May 19, 2024
1 parent f861b9a commit 44fc920
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/nodes/cast.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@ void Cast::resolve(void)

switch(to)
{
case onnx::TensorProto_DataType_INT32:
output_type = "int32_t"; break;
case onnx::TensorProto_DataType_FLOAT:
output_type = "float";
output_type = "float"; break;
case onnx::TensorProto_DataType_DOUBLE:
output_type = "double";
break;
output_type = "double"; break;
default:
ERROR("Unimplemented casting to requested type");
}
Expand Down

0 comments on commit 44fc920

Please sign in to comment.