How to move data-dependent such as unique and nonzeros on CPU and Other Op still run in GPU

I have a model, such as
image
And I want to place unique op and pre-op in CPU, and Other GEMM Op into GPU, How can I do it in TVM?