# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. from typing import Any, Iterable, Tuple from .. import Tensor from torch.nn.modules.module import Module def detach_variable(inputs: Tuple[Tensor,...]) -> Tuple[Tensor,...]: ... def checkpoint(function: Module, *args, **kwargs): ... def check_backward_validity(inputs: Iterable[Any]): ... def checkpoint_sequential(function: Module, segments: int, *args, **kwargs): ...