11 #if defined(__ANDROID__) || defined(CAFFE2_TESTONLY_FORCE_STD_STRING_TEST) 12 #define CAFFE2_TESTONLY_WE_ARE_USING_CUSTOM_STRING_FUNCTIONS 1 14 std::string to_string(
T value) {
15 std::ostringstream os;
20 inline int stoi(
const std::string& str) {
28 inline uint64_t stoull(
const std::string& str) {
36 inline double stod(
const std::string& str, std::size_t* pos = 0) {
42 if (ss.tellg() == std::streampos(-1)) {
51 #define CAFFE2_TESTONLY_WE_ARE_USING_CUSTOM_STRING_FUNCTIONS 0 56 #endif // defined(__ANDROID__) || defined(CAFFE2_FORCE_STD_STRING_FALLBACK_TEST)
To register your own kernel for an operator, do in one (!) cpp file: C10_REGISTER_KERNEL(OperatorHand...