File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -37,13 +37,17 @@ int main(int argc, char** argv) {
3737
3838 Result<FileDataLoader> loader = FileDataLoader::from (argv[1 ]);
3939 ET_CHECK_MSG (
40- loader.ok (), " FileDataLoader::from() failed: 0x%" PRIx32, loader.error ());
40+ loader.ok (),
41+ " FileDataLoader::from() failed: 0x%" PRIx32,
42+ static_cast <uint32_t >(loader.error ()));
4143
4244 uint32_t prof_tok = EXECUTORCH_BEGIN_PROF (" de-serialize model" );
4345 const auto program = Program::load (&loader.get ());
4446 EXECUTORCH_END_PROF (prof_tok);
4547 ET_CHECK_MSG (
46- program.ok (), " Program::load() failed: 0x%" PRIx32, program.error ());
48+ program.ok (),
49+ " Program::load() failed: 0x%" PRIx32,
50+ static_cast <uint32_t >(program.error ()));
4751 ET_LOG (Info, " Program file %s loaded." , argv[1 ]);
4852
4953 // Use the first method in the program.
You can’t perform that action at this time.
0 commit comments