From 91db3dd8dc9f3546065032ff78a0492489303352 Mon Sep 17 00:00:00 2001 From: Lynne Jiang Date: Mon, 4 May 2026 13:01:21 -0700 Subject: [PATCH] Validate output channels are a multiple of groups in conv2d (#925) --- index.bs | 1 + 1 file changed, 1 insertion(+) diff --git a/index.bs b/index.bs index 981eb5a2..0bec31be 100644 --- a/index.bs +++ b/index.bs @@ -3053,6 +3053,7 @@ partial dictionary MLOpSupportLimits { :: Let « |outputChannels|, |filterInputChannels|, |filterHeight|, |filterWidth| » be |filterShape|. 1. If |inputChannels| % |options|.{{MLConv2dOptions/groups}} is not 0, then [=exception/throw=] a {{TypeError}}. + 1. If |outputChannels| % |options|.{{MLConv2dOptions/groups}} is not 0, then [=exception/throw=] a {{TypeError}}. 1. Otherwise, if |inputChannels| / |options|.{{MLConv2dOptions/groups}} is not equal to |filterInputChannels|, then [=exception/throw=] a {{TypeError}}. 1. If |options|.{{MLConv2dOptions/bias}} [=map/exists=], then: 1. If its [=MLOperand/shape=] is not [=list/equal=] to « |outputChannels| », then [=exception/throw=] a {{TypeError}}.