Allowing casting str to int in JIT (#36016)
Summary:
Changelog:
- Allow int(str) in TorchScript
Pull Request resolved: https://github.com/pytorch/pytorch/pull/36016
Test Plan:
- Added tests in test_jit.py
Closes https://github.com/pytorch/pytorch/issues/35948
Differential Revision: D21076438
Pulled By: driazati
fbshipit-source-id: d0753dc0e1c79f4f943c303b58b2d228856ba793