Skip to content

Commit

Permalink
fix: Change types in ETModel.mm
Browse files Browse the repository at this point in the history
  • Loading branch information
chmjkb committed Dec 5, 2024
1 parent 9c93888 commit 0f718b8
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions third-party/ios/ExecutorchLib/ExecutorchLib/Exported/ETModel.mm
Original file line number Diff line number Diff line change
Expand Up @@ -44,27 +44,27 @@ - (NSArray *)forward:(NSArray *)input
}
case 1: {
// Int32Array
std::vector<DataPtrWithNumel<int8_t>> output =
runForwardFromNSArray<int8_t>(input, shapes, _model);
return arrayToNSArray<int8_t>(output);
std::vector<DataPtrWithNumel<int32_t>> output =
runForwardFromNSArray<int32_t>(input, shapes, _model);
return arrayToNSArray<int32_t>(output);
}
case 2: {
// BigInt64Array
std::vector<DataPtrWithNumel<int8_t>> output =
runForwardFromNSArray<int8_t>(input, shapes, _model);
return arrayToNSArray<int8_t>(output);
std::vector<DataPtrWithNumel<int64_t>> output =
runForwardFromNSArray<int64_t>(input, shapes, _model);
return arrayToNSArray<int64_t>(output);
}
case 3: {
// Float32Array
std::vector<DataPtrWithNumel<int8_t>> output =
runForwardFromNSArray<int8_t>(input, shapes, _model);
return arrayToNSArray<int8_t>(output);
std::vector<DataPtrWithNumel<float>> output =
runForwardFromNSArray<float>(input, shapes, _model);
return arrayToNSArray<float>(output);
}
case 4: {
// Float64Array
std::vector<DataPtrWithNumel<int8_t>> output =
runForwardFromNSArray<int8_t>(input, shapes, _model);
return arrayToNSArray<int8_t>(output);
std::vector<DataPtrWithNumel<double>> output =
runForwardFromNSArray<double>(input, shapes, _model);
return arrayToNSArray<double>(output);
}
}
} @catch (NSException *exception) {
Expand Down

0 comments on commit 0f718b8

Please sign in to comment.