Add str type to Triton type conversion

This commit is contained in:
allegroai 2023-09-23 17:36:28 +03:00
parent 58d826e427
commit 083635c803

View File

@ -422,6 +422,8 @@ class TritonHelper(object):
return "FP32" return "FP32"
elif np_dtype == np.float64: elif np_dtype == np.float64:
return "FP64" return "FP64"
elif np_dtype == str:
return "STRING"
elif np_dtype == np.object_ or np_dtype.type == np.bytes_: elif np_dtype == np.object_ or np_dtype.type == np.bytes_:
return "BYTES" return "BYTES"
return None return None