fix shapeless export (#2148)

This commit is contained in:
Awni Hannun
2025-05-01 15:02:02 -07:00
committed by GitHub
parent a3a632d567
commit 9daa6b003f
2 changed files with 22 additions and 0 deletions

View File

@@ -470,6 +470,9 @@ bool FunctionTable::match(
if (x.dtype() != y.dtype()) {
return false;
}
if (x.ndim() != y.ndim()) {
return false;
}
if (!shapeless && x.shape() != y.shape()) {
return false;
}