xnn.ffnn.models.amoeba_ewald.region#

xnn.ffnn.models.amoeba_ewald.region(name)[source]#

Mark a function as a named region of the PyTorch profiler, which also becomes an NVTX range in Nsight timelines under torch.autograd.profiler.emit_nvtx; it costs a few microseconds per call when no profiler runs.

Parameters:

name (str)