/* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include #include #include namespace executorch { namespace runtime { namespace testing { inline void make_kernel_key( std::vector>> tensors, char* buf) { std::vector meta; for (auto& t : tensors) { Span dim_order( t.second.data(), t.second.size()); meta.emplace_back(t.first, dim_order); } Span metadata(meta.data(), meta.size()); internal::make_kernel_key_string(metadata, buf); } } // namespace testing } // namespace runtime } // namespace executorch