diff --git a/compiler/graph/build/memory/block_mem_assigner.cc b/compiler/graph/build/memory/block_mem_assigner.cc
index 7227cde91..7a7f4d832 100644
--- /opt/cloud/slavespace/usr1/096471637100f3de0fcfc01072822a80/ut/compiler/graph/build/memory/block_mem_assigner.cc
+++ /opt/cloud/slavespace/usr1/096471637100f3de0fcfc01072822a80/ut/compiler/graph/build/memory/block_mem_assigner.cc
@@ -939,7 +939,7 @@
   }
 }
 
-bool BlockMemAssigner::GetOutputNodeReuseMemFlagByIndex(const int32_t index) {
+bool BlockMemAssigner::GetOutputNodeReuseMemFlagByIndex(const int32_t index) const {
   if (output_index_to_reuse_mem_flag_.size() == 0U) {
     return false;
   }
@@ -949,7 +949,7 @@
              : false;
 }
 
-bool BlockMemAssigner::GetInputNodeReuseMemFlag(const NodePtr &n) {
+bool BlockMemAssigner::GetInputNodeReuseMemFlag(const NodePtr &n) const {
   if (input_index_to_reuse_mem_flag_.size() == 0U) {
     return false;
   }

