Skip to content

Commit

Permalink
Fix formatting data types in executorch/runtime/executor/tensor_parse…
Browse files Browse the repository at this point in the history
…r_aten.cpp (#2497)

Summary:
Pull Request resolved: #2497

Required for LLVM-17

Reviewed By: palmje

Differential Revision: D54837765

fbshipit-source-id: ea0720ca7b245cc5e8835eafdc17015112b4d016
  • Loading branch information
r-barnes authored and facebook-github-bot committed Mar 23, 2024
1 parent 579ccce commit 913e122
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion runtime/executor/tensor_parser_aten.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,10 @@ Result<at::Tensor> parseTensor(
Result<void*> data_ptr = getTensorDataPtr(
s_tensor, program, tensor.nbytes(), memory_manager->planned_memory());
if (!data_ptr.ok()) {
ET_LOG(Error, "getTensorDataPtr() failed: 0x%" PRIx32, data_ptr.error());
ET_LOG(
Error,
"getTensorDataPtr() failed: 0x%" PRIx32,
static_cast<uint32_t>(data_ptr.error()));
return data_ptr.error();
}
tensor.unsafeGetTensorImpl()->unsafe_storage().set_data_ptr(
Expand Down

0 comments on commit 913e122

Please sign in to comment.