Skip to content

Commit

Permalink
SpecDB: Add OutTensor specs for convolution.default
Browse files Browse the repository at this point in the history
Differential Revision: D59589875
  • Loading branch information
manuelcandales authored and facebook-github-bot committed Jul 10, 2024
1 parent a88dd7e commit 0e0a372
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions specdb/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -1284,12 +1284,7 @@
cp.Value.Ge(lambda deps, length, ix: 1),
],
),
InPosArg( # transposed
ArgType.Bool,
name="transposed",
# TODO(mcandales): Executorch specific constraint
# constraints=[cp.Value.Eq(lambda deps: False)],
),
InPosArg(ArgType.Bool, name="transposed"),
InPosArg( # output_padding
ArgType.LengthList,
name="output_padding",
Expand Down Expand Up @@ -1320,7 +1315,14 @@
),
],
outspec=[
OutArg(ArgType.Tensor),
OutArg(
ArgType.Tensor,
constraints=[
cp.Dtype.Eq(
lambda deps: deps[0].dtype,
),
],
)
],
),
Spec(
Expand Down

0 comments on commit 0e0a372

Please sign in to comment.