API symbolscudaCopyCopy as MarkdownCopy page linkView MarkdownDownload .mdOpenAIOpen in ChatGPTClaudeOpen in ClaudePerplexityOpen in PerplexityGrokOpen in Grok tensorplay.cuda.mem_get_info tensorplay.cuda.mem_get_info(device: Any | None = None) → tuple[int, int][source] Return the global free and total GPU memory for a given device using cudaMemGetInfo. Help improve this pageFound an error, an unclear step, or a missing example?Was this page helpful?YesNoSuggest an editReport an issuetensorplay.cuda.max_memory_reservedReturn the maximum GPU memory managed by the caching allocator in bytes for a given device.tensorplay.cuda.memory_allocatedReturn the current GPU memory occupied by tensors in bytes for a given device.