Skip to content

Commit 4b1d473

Browse files
larryliu0820facebook-github-bot
authored andcommitted
Backend dialect clarification on opset
Summary: Backend ops don't have a defined opset, instead we allow user to register their own ops. Clarifying this in the docs. Reviewed By: dbort Differential Revision: D47924009 fbshipit-source-id: b5c258a21668b2c7d520fdbb65582e32b3ddcc0b
1 parent 8973bfa commit 4b1d473

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/website/docs/ir_spec/03_backend_dialect.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ Then the operator can be accessed/used from the passes. The `CompositeImplicitAu
3838
2. Ensures the retracability of `ExportProgram`. Once retraced, the backend operator will be decomposed into the ATen ops used in the pattern.
3939

4040
## Op Set
41+
Unlike edge dialect where we have a well defined op set, for backend dialect, since it is target-aware we will be allowing user to use our API to register target-aware ops and they will be grouped by namespaces. Here are some examples: `executorch_prims` are ops that are used by Executorch runtime to perform operation on `SymInt`s. `quantized_decomposed` are ops that fuses edge operators for quantization purpose and are meaningful to targets that support quantization.
4142

4243
* `executorch_prims::add.int(SymInt a, SymInt b) -> SymInt`
4344
* pattern: builtin.add

0 commit comments

Comments
 (0)