Skip to content

Commit

Permalink
SpecDB: Add OutTensor specs for convolution.default (#6)
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: #6

Reviewed By: tarun292

Differential Revision: D59589875

fbshipit-source-id: 61d52f8d894575c66db9c5c7772e738de21afdf3
  • Loading branch information
manuelcandales authored and facebook-github-bot committed Jul 13, 2024
1 parent 3319ed9 commit bac333f
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 bac333f

Please sign in to comment.