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) {
37
37
38
38
Result<FileDataLoader> loader = FileDataLoader::from (argv[1 ]);
39
39
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 ()));
41
43
42
44
uint32_t prof_tok = EXECUTORCH_BEGIN_PROF (" de-serialize model" );
43
45
const auto program = Program::load (&loader.get ());
44
46
EXECUTORCH_END_PROF (prof_tok);
45
47
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 ()));
47
51
ET_LOG (Info, " Program file %s loaded." , argv[1 ]);
48
52
49
53
// Use the first method in the program.
You can’t perform that action at this time.
0 commit comments