[caffe2] Update shape info delimiter (#39275)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/39275
Replace delimiter '|' with '#' because '|' could appear in the tensor names.
Test Plan:
```
buck test //caffe2/caffe2/fb/opt:shape_info_utils_test
```
AI/AF canary:
https://our.intern.facebook.com/intern/ads/canary/427007822162345576
https://our.intern.facebook.com/intern/ads/canary/427007917016548180
Reviewed By: yinghai
Differential Revision: D21781037
fbshipit-source-id: f83497b12ddf0e7b71d6aed0e20873d52e97fb7f