MCPcopy 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"""
3A guide on good usage of ``non_blocking`` and ``pin_memory()`` in PyTorch
4=========================================================================

Callers

nothing calls this directly

Calls 3

benchmark_with_profilerFunction · 0.85
timerFunction · 0.85
profile_memFunction · 0.85

Tested by

no test coverage detected