vllm_omni.diffusion.layers.custom_op ¶
CustomOp ¶
Bases: Module
Base class for custom ops. Dispatches the forward method to the appropriate backend.
forward_native ¶
PyTorch-native implementation of the forward method. This method is optional. If implemented, it can be used with compilers such as torch.compile or PyTorch XLA. Also, it can be used for testing purposes.