Fixing function schema parser for Android (#19281)
authorSebastian Messmer <messmer@fb.com>
Thu, 18 Apr 2019 06:41:22 +0000 (23:41 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 18 Apr 2019 06:50:17 +0000 (23:50 -0700)
commitc7b1fdb76723a2d0f1fa560b3ff25d088b3b349c
treef4b14315db8965fc2ac81aa278de73c372a19e0d
parent094678c04bff0baf428029e7b63179abc7f7407f
Fixing function schema parser for Android (#19281)

Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/19281

String<->Number conversions aren't available in the STL used in our Android environment.
This diff adds workarounds for that so that the function schema parser can be compiled for android

Reviewed By: dzhulgakov

Differential Revision: D14931649

fbshipit-source-id: d5d386f2c474d3742ed89e52dff751513142efad
c10/util/C++17.h
c10/util/string_utils.h
tools/build_variables.py
torch/CMakeLists.txt
torch/csrc/jit/script/function_schema_parser.cpp
torch/csrc/jit/script/lexer.cpp
torch/csrc/jit/script/lexer.h
torch/csrc/jit/script/schema_type_parser.cpp
torch/csrc/jit/script/strtod.cpp [new file with mode: 0644]
torch/csrc/jit/script/strtod.h [new file with mode: 0644]
torch/csrc/jit/script/tree_views.h