set_debug_level

paddle.device.xpu. set_debug_level ( level: int = 0 ) None [source]

Set the debug level of XPUs’ api. The default level is 0, which means no debug info.

Parameters

int – Debug level of XPUs available. Level 0x1 for trace (Print the invocation of the interface), 0x10 for checksum (Print the checksum of the tensor), 0x100 for dump (Save the tensor as a file in npy format), 0x1000 for profiling (Record the execution time of each operator).

Examples

>>> 
>>> import paddle
>>> paddle.device.set_device('xpu')

>>> paddle.device.xpu.set_debug_level(1)