Make IValue("string") do the right thing (#20027)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/20027
Before this change, any pointer was converted to bool, i.e.
IValue("string") == IValue(true)
After this change, it does the right thing and creates a string.
Reviewed By: dzhulgakov
Differential Revision: D15172409
fbshipit-source-id: 8167dd780005f9bceef4fe3c751f752e42ceeb20