mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-07 12:21:27 +01:00
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
15 lines
227 B
C++
15 lines
227 B
C++
#pragma once
|
|
|
|
#include <ATen/core/Macros.h>
|
|
|
|
namespace torch {
|
|
namespace jit {
|
|
namespace script {
|
|
|
|
CAFFE2_API double strtod_c(const char *nptr, char **endptr);
|
|
CAFFE2_API float strtof_c(const char *nptr, char **endptr);
|
|
|
|
}
|
|
}
|
|
}
|