Skip to content

Commit 7a929a6

Browse files
msaroufimfacebook-github-bot
authored andcommitted
Clarify InputGen pitch (#13)
Summary: overview.md is wonderfully clear but it reads like a math textbook :P so wanted something a bit more accessible Pull Request resolved: #13 Reviewed By: zonglinpeng Differential Revision: D79286286 Pulled By: manuelcandales fbshipit-source-id: 72b1f70a1ddff70dcdfa5186671202266ce756af
1 parent 79bbc7f commit 7a929a6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ Framework for Algorithmic Correctness Testing of Operators
66

77
InputGen is a Python library to generate inputs for torch operators, given certain specifications. These specifications can be provided by the user, or can be retrieved from a library of specifications such as SpecDB. They provide a complete description of the space of valid inputs to the operator.
88

9+
InputGen uses the `ArgumentTupleGenerator` class to systematically generate valid input combinations based on operator specifications. It handles:
10+
- Type constraints (e.g., alpha in add must be a scalar, input must be a tensor)
11+
- Inter-argument dependencies (e.g., output tensor shape depends on input tensor shapes)
12+
- Shape and dtype compatibility (e.g., tensors in add operation must be broadcastable)
13+
914
Here is an [overview](facto/inputgen/overview.md) of InputGen
1015

1116
## SpecDB

0 commit comments

Comments
 (0)