torch.autograd_gradient_mismatch_error
export type autograd_gradient_mismatch_error<
Op extends string,
Expected extends string,
> = RegistryErrorType<`autograd_gradient_mismatch: backward for '${Op}' must return ${Expected}`>;Opextends stringExpectedextends stringError: Autograd gradient shape mismatch.
This error occurs when the returned gradients don't match the expected structure for the operation kind.