From 1eaf32cd7891dac8d054da81b50546d33ebb26c9 Mon Sep 17 00:00:00 2001 From: Megvii Engine Team Date: Mon, 5 Jul 2021 10:32:14 +0800 Subject: [PATCH] fix(mgb): fix typo in message GitOrigin-RevId: 92d778b5df2a146c70ae220b3354d63b0f1b270d --- src/opr/impl/search_policy/algo_chooser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/opr/impl/search_policy/algo_chooser.cpp b/src/opr/impl/search_policy/algo_chooser.cpp index ed9932cf9..cb593028d 100644 --- a/src/opr/impl/search_policy/algo_chooser.cpp +++ b/src/opr/impl/search_policy/algo_chooser.cpp @@ -1163,7 +1163,7 @@ size_t AlgoChooser::setup_algo(const FixedTensorLayouts& layouts, Algorithm* palgo = megdnn_opr->get_algorithm_from_desc(policy.algo); mgb_assert(palgo, "Unknown algo description"); ret.append("): algo=" + std::string(palgo->name())); - ret.append(ssprintf(" workspace=%.2fMiB attirbute=%d", + ret.append(ssprintf(" workspace=%.2fMiB attribute=%d", workspace / (1024 * 1024.0), static_cast(palgo->attribute()))); mgb_log_debug("%s", ret.c_str()); -- GitLab