# tensorplay.utils.checkpoint.checkpoint_sequential

Source: https://www.tensorplay.cn/docs/generated/tensorplay.utils.checkpoint.checkpoint_sequential.html

# tensorplay.utils.checkpoint.checkpoint_sequential

tensorplay.utils.checkpoint.checkpoint_sequential(function: [Callable](https://docs.python.org/3/library/typing.html#typing.Callable)[[...], [Any](https://docs.python.org/3/library/typing.html#typing.Any)], chunks: [int](https://docs.python.org/3/library/functions.html#int), *args: [Any](https://docs.python.org/3/library/typing.html#typing.Any), **kwargs: [Any](https://docs.python.org/3/library/typing.html#typing.Any)) &#x2192; [Any](https://docs.python.org/3/library/typing.html#typing.Any)[[source]](../_modules/tensorplay/utils/checkpoint.html#checkpoint_sequential)

torch.utils.checkpoint.checkpoint_sequential compatibility.

With chunks segments the sequential would be evaluated in chunks with
recomputation; TensorPlay runs it as one eager segment.
