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 cfd5e56 commit f64f4c1Copy full SHA for f64f4c1
fx/lower.py
@@ -230,7 +230,10 @@ def __call__(
230
== LowerPrecision.FP16
231
):
232
module.half()
233
- inputs = tuple(x.half() if x.dtype == torch.float32 else x for x in inputs)
+ inputs = tuple(
234
+ x.half() if x is not None and x.dtype == torch.float32 else x
235
+ for x in inputs
236
+ )
237
pm = self.lower_pass_manager_builder.build_lower_pipeline(inputs)
238
239
lower_result = pm(module)
0 commit comments