1 #include <torch/csrc/jit/python/utf8_decoding_ignore.h> 2 3 namespace torch::jit { 4 5 namespace { 6 thread_local bool kIgnore = false; 7 } 8 setUTF8DecodingIgnore(bool o)9void setUTF8DecodingIgnore(bool o) { 10 kIgnore = o; 11 } getUTF8DecodingIgnore()12bool getUTF8DecodingIgnore() { 13 return kIgnore; 14 } 15 16 } // namespace torch::jit 17