Skip to content

Commit

Permalink
misspelling
Browse files Browse the repository at this point in the history
  • Loading branch information
wejoncy committed Nov 22, 2024
1 parent 3e5386d commit 9e7c87a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ CoreMLOptions::CoreMLOptions(uint32_t coreml_flags) {
}

const bool has_neural_engine = coreml::HasNeuralEngine();
if ((compute_units_ & COREML_FLAG_ONLY_ENABLE_DEVICE_WITH_ANE) && !has_neural_engine) {
if (ComputeUnits(COREML_FLAG_ONLY_ENABLE_DEVICE_WITH_ANE) && !has_neural_engine) {
ORT_THROW("The current system does not have Apple Neural Engine.");
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class CoreMLOptions {
bool RequireStaticShape() const { return require_static_shape_; }
bool CreateMLProgram() const { return create_mlprogram_; }
bool EnableOnSubgraph() const { return enable_on_subgraph_; }
uint32_t ComputeUnits(uint32_t specfic_flag = 0xffffffff) const { return compute_units_ & specfic_flag; }
uint32_t ComputeUnits(uint32_t specific_flag = 0xffffffff) const { return compute_units_ & specific_flag; }

private:
void ValidateAndParseProviderOption(const ProviderOptions& options);
Expand Down

0 comments on commit 9e7c87a

Please sign in to comment.