XPUGraph
- class torch.xpu.XPUGraph(keep_graph=False)
Wrapper around a XPU graph.
- Parameters:
keep_graph (bool, optional) – If
, the executable command graph will be instantiated on GPU at the end of and the underlying modifiable command graph will be destroyed. Note that the executable command graph will not be instantiated at the end of in this case. Instead, it will be instantiated via an explicit called to or automatically on the first call to if was not already called. Calling manually before is recommended to prevent increased latency on the first call to .