API symbolsutilslatest (dev)latest (dev)2026-09-08v1.0.02026-09-06CopyCopy as MarkdownCopy page linkView MarkdownOpenAIOpen in ChatGPTClaudeOpen in ClaudePerplexityOpen in PerplexityGrokOpen in Grok tensorplay.utils.checkpoint.set_device_states tensorplay.utils.checkpoint.set_device_states(devices: Iterable[int], states: Iterable[Any], *, device_type: str | None = None) → None[source] Help improve this pageFound an error, an unclear step, or a missing example?Was this page helpful?YesNoSuggest an editReport an issuetensorplay.utils.checkpoint.set_checkpoint_early_stopPrevious Pagetensorplay.utils.data.default_collateTake in a batch of data and put the elements within the batch into a tensor with an additional outer dimension - batch size.