Skip to content

Commit 7a5bca6

Browse files
author
Zonglin Peng
committed
Update base for Update on "[Jarvis][Nightly] address zero division jarvis-nightly-operators-test-aten-div-out"
https://docs.google.com/spreadsheets/d/12DsKcvPcGgxnZ8shgn6j8PmoOQUfy5GgUg974g1iO18/edit?gid=0#gid=0 Differential Revision: [D85364549](https://our.internmc.facebook.com/intern/diff/D85364549/) [ghstack-poisoned]
1 parent 770cf3d commit 7a5bca6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

backends/cadence/utils/facto_util.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,9 @@ def random_size_constraint(deps: object, r: int, d: int) -> int:
373373
cp.Dtype.In(lambda deps: [torch.int64, torch.int32, torch.float32]),
374374
cp.Value.Ge(lambda deps, dtype, struct: -(2**4)),
375375
cp.Value.Le(lambda deps, dtype, struct: 2**4),
376-
cp.Value.Ne(lambda deps, dtype, struct: 0), # Prevent division by zero
376+
cp.Value.Ne(
377+
lambda deps, dtype, struct: 0
378+
), # Prevent division by zero
377379
cp.Rank.Ge(lambda deps: 1),
378380
cp.Rank.Eq(lambda deps: deps[0].dim()),
379381
cp.Size.Eq(lambda deps, r, d: fn.safe_size(deps[0], d)),

0 commit comments

Comments
 (0)