pytorch/test/fx
Autin Mitra 5623d30228 [Minimizer] Gracefully exit when there is no discrepancy in block mode (#154076)
Summary:
Previously, when there is no discrepancy in results for block mode, net_min_base will throw an OOB error.

This occurs due to the block _block_traverse_impl returning an OOB after exhausting subgraphs all the way down to a single node

There is also an issue where we may get an unsound subgraph (i.e. mark an earlier node as the "end" even if the correct end is later). This is due to an incorrect check (start_idx == mid) where there can possibly be two values left before the program pre-maturely returns

Test Plan:
Buck UI: https://www.internalfb.com/buck2/52524c26-ace5-4593-8a4b-843a54eb206a
Test UI: https://www.internalfb.com/intern/testinfra/testrun/3096224973363310
Network: Up: 0B  Down: 15MiB  (reSessionID-cd404e97-395f-49fc-8381-373e90a1378f)
Executing actions. Remaining     0/1
Command: test.
Time elapsed: 53.7s
Tests finished: Pass 7. Fail 0. Fatal 0. Skip 0. Build failure 0

Differential Revision: D75143242

Pull Request resolved: https://github.com/pytorch/pytorch/pull/154076
Approved by: https://github.com/jfix71
2025-05-23 06:42:07 +00:00
..
named_tup.py
quantization.py Fix unused Python variables in test/[e-z]* (#136964) 2024-12-18 23:02:30 +00:00
test_common_passes.py [BE][Easy][9/19] enforce style for empty lines in import segments in test/[e-h]*/ (#129760) 2024-07-17 14:25:29 +00:00
test_cse_pass.py Fix unused Python variables in test/[e-z]* (#136964) 2024-12-18 23:02:30 +00:00
test_dce_pass.py Remove unused rand call if not fallback to eager for rand (#147790) 2025-04-03 23:27:03 +00:00
test_dynamism.py Make dynamism code robust to NotImplementedException (#148823) 2025-03-14 23:38:19 +00:00
test_future.py PEP585 update - test (#145176) 2025-01-22 04:48:28 +00:00
test_fx_const_fold.py Add None return type to init -- tests (#132352) 2024-08-01 15:44:51 +00:00
test_fx_node_hook.py [export] Change fx graph _replace_hook to a list of Callable (#142006) 2024-12-05 03:26:48 +00:00
test_fx_param_shape_control_flow.py [BE][Easy][9/19] enforce style for empty lines in import segments in test/[e-h]*/ (#129760) 2024-07-17 14:25:29 +00:00
test_fx_split.py PEP585 update - test (#145176) 2025-01-22 04:48:28 +00:00
test_fx_traceback.py add node mapping processing (#146103) 2025-02-01 08:29:29 +00:00
test_fx_xform_observer.py [Codemod][AddExplicitStrictExportArg] caffe2/torch (#146439) 2025-02-05 22:56:54 +00:00
test_gradual_type.py Fix unused Python variables in test/[e-z]* (#136964) 2024-12-18 23:02:30 +00:00
test_graph_pickler.py Subprocess compile (attempt 2) (#148635) 2025-03-07 17:50:14 +00:00
test_lazy_graph_module.py
test_matcher_utils.py [Codemod][AddExplicitStrictExportForTrainingInferenceArg] caffe2/ (#149595) 2025-04-03 23:50:13 +00:00
test_net_min_base.py [Minimizer] Gracefully exit when there is no discrepancy in block mode (#154076) 2025-05-23 06:42:07 +00:00
test_partitioner_order.py [4/N] Apply py39 ruff and pyupgrade fixes (#143257) 2025-01-04 10:47:51 +00:00
test_pass_infra.py [BE][Easy][9/19] enforce style for empty lines in import segments in test/[e-h]*/ (#129760) 2024-07-17 14:25:29 +00:00
test_shape_inference.py Add None return type to init -- tests (#132352) 2024-08-01 15:44:51 +00:00
test_source_matcher_utils.py [dynamo][builtin-skiplist-cleanup] Remove weakref (#145744) 2025-01-28 07:55:12 +00:00
test_subgraph_rewriter.py subgraph rewriter supports matched pattern with no users (#143842) 2024-12-27 12:45:39 +00:00
test_z3_gradual_types.py Fix unused Python variables in test/[e-z]* (#136964) 2024-12-18 23:02:30 +00:00