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 6237a78 commit 2e721b9Copy full SHA for 2e721b9
onnx_diagnostic/torch_export_patches/patches/patch_torch.py
@@ -205,7 +205,10 @@ def _set_replacement(
205
# Precondition: a == tgt
206
assert isinstance(a, sympy.Symbol)
207
208
- if self.allow_complex_guards_as_runtime_asserts and not _is_supported_equivalence(tgt):
+ if (
209
+ getattr(self, "allow_complex_guards_as_runtime_asserts", False)
210
+ or getattr(self, "prefer_deferred_runtime_asserts_over_guards", False)
211
+ ) and not _is_supported_equivalence(tgt):
212
# continuing leads to placeholder shapes
213
# having complex expressions that we can't resolve
214
return
0 commit comments