How to register new backend

Hi All,
I’m new to the pytorch2.0 flow. I want to register a new backend to the torch. Compile and get control to aten/prim IR, is there any documentation available for this flow or any sample toy backend kind?

Looks like you got an answer here so posting for others Registering new compiler backend in Pytorch2.0 - #4 by jansel - compiler - PyTorch Dev Discussions

And this tutorial might help Custom Backends — PyTorch master documentation