tenzr::OpDef¶
#include <op_registry.h>
Public Attributes¶
| Name | |
|---|---|
| std::string | name |
| OpCategory | Category |
| std::string | StablehloOp Lowered StableHLO op name. |
| ShapeInferenceFn | shape_fn |
| DTypeInferenceFn | dtype_fn Output dtype inference. |
| EmitFn | emit_fn StableHLO emitter. |
Detailed Description¶
Definition of a custom operator: its category, shape and dtype inference callbacks, and the StableHLO emitter that lowers it.
Public Attributes Documentation¶
variable name¶
variable Category¶
variable StablehloOp¶
Lowered StableHLO op name.
variable shape_fn¶
variable dtype_fn¶
Output dtype inference.
variable emit_fn¶
StableHLO emitter.