Skip to content

Commit bac333f

Browse files
manuelcandalesfacebook-github-bot
authored andcommitted
SpecDB: Add OutTensor specs for convolution.default (#6)
Summary: Pull Request resolved: #6 Reviewed By: tarun292 Differential Revision: D59589875 fbshipit-source-id: 61d52f8d894575c66db9c5c7772e738de21afdf3
1 parent 3319ed9 commit bac333f

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

specdb/db.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1284,12 +1284,7 @@
12841284
cp.Value.Ge(lambda deps, length, ix: 1),
12851285
],
12861286
),
1287-
InPosArg( # transposed
1288-
ArgType.Bool,
1289-
name="transposed",
1290-
# TODO(mcandales): Executorch specific constraint
1291-
# constraints=[cp.Value.Eq(lambda deps: False)],
1292-
),
1287+
InPosArg(ArgType.Bool, name="transposed"),
12931288
InPosArg( # output_padding
12941289
ArgType.LengthList,
12951290
name="output_padding",
@@ -1320,7 +1315,14 @@
13201315
),
13211316
],
13221317
outspec=[
1323-
OutArg(ArgType.Tensor),
1318+
OutArg(
1319+
ArgType.Tensor,
1320+
constraints=[
1321+
cp.Dtype.Eq(
1322+
lambda deps: deps[0].dtype,
1323+
),
1324+
],
1325+
)
13241326
],
13251327
),
13261328
Spec(

0 commit comments

Comments
 (0)