Hi, I’m new to tvm and trying to compile the gradient of the operator max_pool2d, and it throws an error like “Attribute FTVMCompute has not been registered for Operator _max_pool2d_grad”.
How to add the missing computation method?
I see in topi/include/topi/nn/pooling.h, it use tvm::max
to compute max_pool2d, and according to this discussion, we should find the position of the max element (which sounds like argmax).
Is it a good idea to add an operator like argmax in src/lang/ir_operator.cc? Or any other suggestions on how to implement _max_pool2d_grad.