Select specific nodes for target

I’m working on a multi-target system and I’d like to be able to select which operators will go to which target. Right now, I’m following something similar to:

python/tvm/relay/op/contrib/dnnl.py

with multiple target options, and using:

tvm.ir.register_op_attr()

to register operators for one, or the other target, but there are certain operators that are supported by both, and I’d like to select based on other criteria (i.e. where the previous / next operation is). Is there any way to force a specific node to a target, not every instance of the operator?