From a3e896e644b4a14542638b657661aba424fd8134 Mon Sep 17 00:00:00 2001 From: Florian Walbroel Date: Wed, 20 Aug 2025 11:43:57 +0200 Subject: [PATCH] python/torch_mlir/extras/onnx_importer.py: fix: SyntaxWarning: invalid escape sequence --- python/torch_mlir/extras/onnx_importer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/torch_mlir/extras/onnx_importer.py b/python/torch_mlir/extras/onnx_importer.py index 9e5bc373ebd3..0fa998c5a3ef 100644 --- a/python/torch_mlir/extras/onnx_importer.py +++ b/python/torch_mlir/extras/onnx_importer.py @@ -745,7 +745,7 @@ def _sanitize_name(self, name): # Remove characters that are invalid in MLIR identifier names. # https://mlir.llvm.org/docs/LangRef/#identifiers-and-keywords - return re.sub("[^\w\.]", "_", name) + return re.sub(r"[^\w\.]", "_", name) def tensor_proto_to_attr(self, tp: onnx.TensorProto) -> Attribute: tensor_type = self.tensor_proto_to_builtin_type(tp)