Skip to content

Commit

Permalink
Fix gcc7 backward compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
huydhn committed Oct 25, 2022
1 parent bb8a83e commit 18a9a6f
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions benchmarks/static_runtime/test_utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -298,11 +298,12 @@ void testStaticRuntime(
// 1st run: collect allocation profiles (args)
// 2nd run: exercise memory planner and resizing with args2
// 3rd run: run with args again
StaticModuleOptions opts{
.enable_out_variant = enable_out_variant,
.optimize_memory = enable_out_variant,
.manage_output_tensors = manage_output_tensors,
.enable_tensorexpr_fusion = enable_tensorexpr_fusion};
StaticModuleOptions opts;
opts.enable_out_variant = enable_out_variant;
opts.optimize_memory = enable_out_variant;
opts.manage_output_tensors = manage_output_tensors;
opts.enable_tensorexpr_fusion = enable_tensorexpr_fusion;

auto smodule = test_context->makeStaticModule(opts);
StaticRuntime runtime(smodule);
auto actual = runtime(args, {});
Expand Down

0 comments on commit 18a9a6f

Please sign in to comment.