You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PyTorch Lightning saves traces in the format fit-profiler-[Strategy]SingleDeviceStrategy-ts.pt.trace.json, and thus the traceName key contains a square brace ]. Since the traceName key is the final key in the JSON file, it fails to load in the TensorBoard viewer when GPU ops are present due to this line, which cuts off the string and creates invalid JSON:
@briancoutinho No I don't think this would help because this just seems to replace forward slashes and remove newlines from JSON strings. The issue is how the GPU stats are appended to the file before being passed to the trace viewer.
PyTorch Lightning saves traces in the format
fit-profiler-[Strategy]SingleDeviceStrategy-ts.pt.trace.json
, and thus thetraceName
key contains a square brace]
. Since thetraceName
key is the final key in the JSON file, it fails to load in the TensorBoard viewer when GPU ops are present due to this line, which cuts off the string and creates invalid JSON:kineto/tb_plugin/torch_tb_profiler/run.py
Line 137 in 8466a8b
This results in the error
Uncaught (in promise) SyntaxError: JSON.parse, ...
in the web browser.The text was updated successfully, but these errors were encountered: