Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/pytorch/tutorials
/ pinmem_nonblock.py
File
pinmem_nonblock.py
intermediate_source/pinmem_nonblock.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
# -*- coding: utf-8 -*-
2
""
"
3
A guide on good usage of ``non_blocking`` and ``pin_memory()`` in PyTorch
4
=========================================================================
Callers
nothing calls this directly
Calls
3
benchmark_with_profiler
Function · 0.85
timer
Function · 0.85
profile_mem
Function · 0.85
Tested by
no test coverage detected