torch.get_op_info
function get_op_info(op: string): OpInfo | undefinedGet detailed information about an operation.
Parameters
opstring- The operation name
Returns
OpInfo | undefined– Operation info or undefined if not foundExamples
const info = torch.library.get_op_info('add');
// { op: 'add', dtypes: ['float32', 'int32'], devices: ['cpu', 'webgpu'], hasAutograd: true }