We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 023c583 commit 61dddb5Copy full SHA for 61dddb5
backends/cortex_m/ops/cortex_m_ops_common.h
@@ -1,6 +1,7 @@
1
/*
2
* Copyright (c) Meta Platforms, Inc. and affiliates.
3
* All rights reserved.
4
+ * Copyright 2025 Arm Limited and/or its affiliates.
5
*
6
* This source code is licensed under the BSD-style license found in the
7
* LICENSE file in the root directory of this source tree.
@@ -49,6 +50,12 @@ inline void validate_cmsis_nn_tensor_requirements(
49
50
"Output dtype must be %hhd, got %hhd",
51
expected_dtype,
52
output.scalar_type());
53
+ ET_CHECK_MSG(
54
+ input1.sizes() == input2.sizes(),
55
+ "Input1 and Input2 must have the same sizes");
56
57
+ output.sizes() == input1.sizes(),
58
+ "Output must have the same sizes as inputs");
59
60
// Dim order consistency
61
ET_CHECK_MSG(
0 commit comments