tensorboardX is converting white/blank space and other non alphanumeric characters to underscore

Author: Toni-SMCreated Apr 30, 2023Updated Apr 30, 2023

tensorboardX is converting white/blank space and other non alphanumeric characters to underscore

Example:

python
writer.add_scalar("Episode / Total timesteps (mean)", -1500, 1) 

generates Episode_/_Total_timesteps__mean_ instead of the expected tag as done using PyTorch

Screenshot from 2023-04-30 15-44-05