torch.autograd.GradcheckResult
export interface GradcheckResult {
/** Whether the gradients match within tolerance */
passed: boolean;
/** Maximum absolute difference */
max_diff: number;
/** Index of input that failed (if any) */
failed_input?: number;
/** Details about the failure (if any) */
message?: string;
}passed(boolean)- – Whether the gradients match within tolerance
max_diff(number)- – Maximum absolute difference
failed_input(number)optional- – Index of input that failed (if any)
message(string)optional- – Details about the failure (if any)
Result of gradient checking for a single input.