Skip to content

Commit

Permalink
Reading from wrong variable in model config for enable_mem_pattern (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanUnderhill authored Nov 8, 2024
1 parent dc9bc02 commit 2f2686f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models/model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ void Model::CreateSessionOptionsFromConfig(const Config::SessionOptions& config_
}

if (config_session_options.enable_mem_pattern.has_value()) {
if (config_session_options.enable_cpu_mem_arena.value())
if (config_session_options.enable_mem_pattern.value())
session_options.EnableMemPattern();
else
session_options.DisableMemPattern();
Expand Down

0 comments on commit 2f2686f

Please sign in to comment.