[Doc] Add developer guide for CustomOp (#30886)
Signed-off-by: shen-shanshan <467638484@qq.com>
This commit is contained in:
@@ -118,8 +118,11 @@ direct_register_custom_op(
|
||||
)
|
||||
|
||||
|
||||
# --8<-- [start:apply_rotary_emb]
|
||||
@CustomOp.register("apply_rotary_emb")
|
||||
class ApplyRotaryEmb(CustomOp):
|
||||
# --8<-- [end:apply_rotary_emb]
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
enforce_enable: bool = False,
|
||||
|
||||
Reference in New Issue
Block a user