diff --git a/tests/cpp/build_module_test.cc b/tests/cpp/build_module_test.cc index 393714d8f6361..d0364e828a3a7 100644 --- a/tests/cpp/build_module_test.cc +++ b/tests/cpp/build_module_test.cc @@ -6,9 +6,9 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -50,14 +50,14 @@ TEST(BuildModule, Basic) { auto args = Array({ A, B, C }); std::unordered_map binds; - auto config = build_config(); + auto config = BuildConfig::Create(); auto target = target::llvm(); auto lowered = lower(s, args, "func", binds, config); auto module = build(lowered, target, Target(), config); - auto mali_target = Target::create("opencl -model=Mali-T860MP4@800Mhz -device=mali"); - CHECK_EQ(mali_target->str(), "opencl -model=Mali-T860MP4@800Mhz -device=mali"); + auto mali_target = Target::Create("opencl -model=Mali-T860MP4@800Mhz -device=mali"); + CHECK_EQ(mali_target->str(), "opencl -model=Mali-T860MP4@800Mhz -device=mali"); } TEST(BuildModule, Heterogeneous) { diff --git a/tests/cpp/relay_build_module_test.cc b/tests/cpp/relay_build_module_test.cc index a1ab29959127e..3f46eed9f10ec 100644 --- a/tests/cpp/relay_build_module_test.cc +++ b/tests/cpp/relay_build_module_test.cc @@ -6,9 +6,9 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -75,7 +75,7 @@ TEST(Relay, BuildModule) { auto json_f = build_mod.GetFunction("get_graph_json", false); auto mod_f = build_mod.GetFunction("get_module", false); Map targets; - Target llvm_tgt = Target::create("llvm"); + Target llvm_tgt = Target::Create("llvm"); targets.Set(0, llvm_tgt); build_f(func, targets, llvm_tgt); std::string json = json_f();