/usr/local/lib64/python3.6/site-packages/torch/include/caffe2/utils
NameSizeModeActions
math/-0755rm
threadpool/-0755rm
bench_utils.h8540644editdlrm
cast.h11100644editdlrm
cblas.h341830644editdlrm
conversions.h6610644editdlrm
cpuid.h25600644editdlrm
cpu_neon.h15780644editdlrm
eigen_utils.h67060644editdlrm
filler.h39870644editdlrm
fixed_divisor.h36340644editdlrm
knobs.h5320644editdlrm
knob_patcher.h7150644editdlrm
map_utils.h6350644editdlrm
math-detail.h19160644editdlrm
math.h152510644editdlrm
murmur_hash3.h9090644editdlrm
proto_convert.h2630644editdlrm
proto_utils.h132540644editdlrm
proto_wrap.h3780644editdlrm
signal_handler.h6980644editdlrm
simple_queue.h26020644editdlrm
smart_tensor_printer.h14020644editdlrm
string_utils.h12060644editdlrm
zmq_helper.h30200644editdlrm
Edit: /usr/local/lib64/python3.6/site-packages/torch/include/caffe2/utils/string_utils.h (1206B)
#pragma once #include #include #include #include #include namespace caffe2 { TORCH_API std::vector split(char separator, const std::string& string, bool ignore_empty = false); TORCH_API std::string trim(const std::string& str); TORCH_API size_t editDistance( const std::string& s1, const std::string& s2, size_t max_distance = 0); TORCH_API inline bool StartsWith( const std::string& str, const std::string& prefix) { return str.length() >= prefix.length() && std::mismatch(prefix.begin(), prefix.end(), str.begin()).first == prefix.end(); } TORCH_API inline bool EndsWith( const std::string& full, const std::string& ending) { if (full.length() >= ending.length()) { return ( 0 == full.compare(full.length() - ending.length(), ending.length(), ending)); } else { return false; } } TORCH_API int32_t editDistanceHelper( const char* s1, size_t s1_len, const char* s2, size_t s2_len, std::vector& current, std::vector& previous, std::vector& previous1, size_t max_distance); } // namespace caffe2