We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7000187 commit 72f6da0Copy full SHA for 72f6da0
python/torch_mlir/extras/onnx_importer.py
@@ -745,7 +745,7 @@ def _sanitize_name(self, name):
745
746
# Remove characters that are invalid in MLIR identifier names.
747
# https://mlir.llvm.org/docs/LangRef/#identifiers-and-keywords
748
- return re.sub("[^\w\.]", "_", name)
+ return re.sub(r"[^\w\.]", "_", name)
749
750
def tensor_proto_to_attr(self, tp: onnx.TensorProto) -> Attribute:
751
tensor_type = self.tensor_proto_to_builtin_type(tp)
0 commit comments