Reporting a taller stack for warnings in PyTorch

How can we trigger the system to print a fuller stack whenever a “warning” log is printed in PyTorch . . . Under the default conditions, it seems to only provide the location issuing the “warning” not its stack . . .


The warnings we through are python warnings. So you do that the same way you would do for any python warning (see for example).

1 Like