def register(op_name):
        """Register operators"""
        def wrapper(func):
            """Helper function to map functions"""
            try:
                import onnx as _
                MXNetGraph.registry_[op_name] = func
            except ImportError:
                pass
            return func

        return wrapper
def register ( op_name ) : def wrapper ( func ) : try : import onnx as _ MXNetGraph . registry_ [ op_name ] = func except ImportError : pass return func return wrapper
Register operators