torch.AssertNotError
export type AssertNotError<T> = IsRegistryError<T> extends true ? never : T;TAssert that a type is not a registry error. Returns the type unchanged if not an error, otherwise returns never.
export type AssertNotError<T> = IsRegistryError<T> extends true ? never : T;TAssert that a type is not a registry error. Returns the type unchanged if not an error, otherwise returns never.