#u8 to c_str
1 messages · Page 1 of 1 (latest)
const MODEL_PATH = "model/model.onnx";
string literals are null terminated
if you need it to be an array value instead of a pointer to an array, you can do "model/model.onnx".*
it shows
error: expected type '[*c]const c_ushort', found '*const [10:0]u8'
onnxruntime asks for something equivalent to c++ "".c_str()
const MODEL_PATH = std.unicode.utf8ToUtf16LeStringLiteral("model/model.onnx");
this maybe?