fix onnx_export of bbox_head when reg_class_agnostic (#5468)
fix onnx_export of bbox_head when reg_class_agnostic (#5468)

* fix onnx_export of bbox_head when reg_class_agnostic

* fix reshape
open-mmlab/mmdetection,open-mmlab/mmdetection