sorry for being a complainer but I want to help. Why not instead of passing the responsibility to the user to do this which is sort of unusual you guys have a check or something where it converts to string (or what guarantees it will work most likely). It feels Path objects are standard to work so why not just convert to string or handle a few comment errors?
That would be so wonderful to a such already fantastic library that pytorch is