[Relay][Frontend][ONNX] operator support: ConstantOfShape


#1

Hi @FrozenGene

I’d like to add the operator ConstantOfShape for frontend/onnx.py, however, I do not find the existing relay API for it.
Should I use tvm.replay.tile and tvm.relay.expr.constant or create a new relay API for it?

I would appreciate if you can share your thought with me on this matter.

many thanks,


#2

Do you mean ONNX? As far as I know, TFLite doesn’t have ConstantOfShape(at least r1.14 we support).

I think if we could combine exist relay op we should use them. Because we have fusion optimization.


#3

@FrozenGene

Thanks for the prompt reply.

Yes, I mean ONNX and thanks for your suggestions. :slight_smile:

Best,