torch.op_kind_mismatch_error
export type op_kind_mismatch_error<
Op extends string,
Expected extends string,
Got extends string,
> = RegistryErrorType<`op_kind_mismatch: '${Op}' is a ${Got} operation, but expected ${Expected}`>;Opextends stringExpectedextends stringGotextends stringError: Invalid operation kind.
This error occurs when an operation is used in the wrong context (e.g., using a unary op where binary op is expected).