From deec053d5584bd5b7812971b3a6977657af80300 Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Wed, 15 Jun 2022 07:23:58 -0700 Subject: [PATCH] [MetaSchedule] Include te/tensor.h instead of forward declaring te::Tensor ApplyHistoryBestNode declares an Array of Tensor. There are type traits used in Array that require that the element type is complete at the time of the declaration. With only a forward declaration compilation fails (clang 14.0.3, libc++). --- include/tvm/meta_schedule/apply_history_best.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/include/tvm/meta_schedule/apply_history_best.h b/include/tvm/meta_schedule/apply_history_best.h index 82bb350e1c5e..3a8983012b9d 100644 --- a/include/tvm/meta_schedule/apply_history_best.h +++ b/include/tvm/meta_schedule/apply_history_best.h @@ -28,12 +28,7 @@ #include #include #include - -namespace tvm { -namespace te { -class Tensor; -} // namespace te -} // namespace tvm +#include namespace tvm { namespace meta_schedule {