How to add a new layer?

How to add a new layer with Relay,any tutorial? Need:

  1. Both Python and C++ implement
  2. for ONNX model
  3. How to Schedule and optimize
  4. Both CPU and CUDA

Same question to me. And my problem is “tvm.error.OpNotImplemented: The following operators are not supported for frontend ONNX: ATen”

Same question to me as well.

This is an ONNX bug, using pytorch1.3 export ONNX which solved problem.