d73e36a44ab3fa760d385c881db0fa393a557a65,torch/quantization/ns/numeric_suite_core_apis_fx.py,,compare_weights,#Any#Any#Any#Any#,117
Before Change
matched_subgraph_pairs = get_matching_subgraph_pairs(gm_a, gm_b)
// split the subgraph pairs into one data structure for each model
nodes_and_names_to_instrument_a: List[Tuple[Node, str]] = []
nodes_and_names_to_instrument_b: List[Tuple[Node, str]] = []
for match_name, match in matched_subgraph_pairs.items():
(node_start_a, node_end_a), (node_start_b, node_end_b) = match
nodes_and_names_to_instrument_a.append((node_start_a, match_name))
After Change
get_type_a_related_to_b(base_name_to_sets_of_related_ops)
tracer_a, tracer_b = NSTracer(), NSTracer()
gm_a = GraphModule(model_a, tracer_a.trace(model_a))
gm_b = GraphModule(model_b, tracer_b.trace(model_b))
return _compare_weights_impl(model_name_a, gm_a, model_name_b, gm_b)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances Project Name: pytorch/pytorch
Commit Name: d73e36a44ab3fa760d385c881db0fa393a557a65
Time: 2021-03-12
Author: vasiliy@fb.com
File Name: torch/quantization/ns/numeric_suite_core_apis_fx.py
Class Name:
Method Name: compare_weights
Project Name: pytorch/pytorch
Commit Name: d73e36a44ab3fa760d385c881db0fa393a557a65
Time: 2021-03-12
Author: vasiliy@fb.com
File Name: torch/quantization/ns/numeric_suite_core_apis_fx.py
Class Name:
Method Name: prepare_model_outputs
Project Name: lanpa/tensorboardX
Commit Name: 78ba1c8cfcd2c31f1e1b007d2e20e771049e869b
Time: 2018-01-04
Author: huang.dexter@gmail.com
File Name: tensorboardX/graph.py
Class Name:
Method Name: graph
Project Name: geomstats/geomstats
Commit Name: 77658db30f8d149644a23e30fbd9a3f0fead112a
Time: 2018-11-21
Author: ninamio78@gmail.com
File Name: tests/test_stiefel.py
Class Name: TestStiefelMethods
Method Name: test_inner_product