mindspore.ops.op_info_register

mindspore.ops.op_info_register(op_info)[source]

A decorator which is used to register an operator.

Note

‘op_info’ should represent the operator information by string with json format. The ‘op_info’ will be added into oplib.

Parameters

op_info (str or dict) – operator information in json format.

Returns

Function, returns a decorator for op info register.