You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
logging.Level.Info, "ir was set to default, using dynamo as ir"
86
-
)
91
+
logger.info("ir was set to default, using dynamo as ir")
87
92
return_IRType.dynamo
88
93
elifmodule_is_tsable:
89
-
logging.log(
90
-
logging.Level.Warning,
91
-
"Input graph is a Torchscript module but the ir provided is default (dynamo). Please set ir=torchscript to suppress the warning. Compiling the module with ir=torchscript",
94
+
logger.warning(
95
+
"Input graph is a Torchscript module but the ir provided is default (dynamo). Please set ir=torchscript to suppress the warning. Compiling the module with ir=torchscript"
92
96
)
93
97
return_IRType.ts
94
98
else:
@@ -151,9 +155,8 @@ def compile(
151
155
iftarget_ir==_IRType.ts:
152
156
ts_mod=module
153
157
ifmodule_type==_ModuleType.nn:
154
-
logging.log(
155
-
logging.Level.Info,
156
-
"Module was provided as a torch.nn.Module, trying to script the module with torch.jit.script. In the event of a failure please preconvert your module to TorchScript",
158
+
logger.info(
159
+
"Module was provided as a torch.nn.Module, trying to script the module with torch.jit.script. In the event of a failure please preconvert your module to TorchScript"
"Module was provided as a torch.nn.Module, trying to script the module with torch.jit.script. In the event of a failure please preconvert your module to TorchScript",
280
+
logger.info(
281
+
"Module was provided as a torch.nn.Module, trying to script the module with torch.jit.script. In the event of a failure please preconvert your module to TorchScript"
0 commit comments