Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions coremltools/converters/mil/mil/types/type_mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,8 @@ def numpy_type_to_builtin_type(nptype):
return types_uint64
elif np.issubclass_(nptype, np.int64):
return types_int64
elif np.issubclass_(nptype, np.intc):
return types_int32
elif np.issubclass_(nptype, int) or nptype == int:
# Catch all int
return types_int32
Expand Down