diff --git a/ethosu/regor/compiler/raw_writer.cpp b/ethosu/regor/compiler/raw_writer.cpp index dc39d61a5d818ec79093ba1dfd545d2ff74d4017..b2a85013617d86a0421501a8cf924c1060adee96 100644 --- a/ethosu/regor/compiler/raw_writer.cpp +++ b/ethosu/regor/compiler/raw_writer.cpp @@ -1,5 +1,5 @@ // -// SPDX-FileCopyrightText: Copyright 2024 Arm Limited and/or its affiliates +// SPDX-FileCopyrightText: Copyright 2024-2025 Arm Limited and/or its affiliates // // SPDX-License-Identifier: Apache-2.0 // @@ -156,7 +156,7 @@ void RawWriter::SerialiseCommandStreamTensor(const Tensor *tensor) void RawWriter::SerialiseReadOnlyTensor(const Tensor *tensor) { - assert(tensor->IsConstant()); + assert(tensor->View().HasBuffer()); // read_only buffer and buffer size auto blob = tensor->View().Buffer()->Data();