diff --git a/bench/verdicts_calibrated3/tinyvit__pool_divisor__litert_fp32.json b/bench/verdicts_calibrated3/tinyvit__pool_divisor__litert_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..fabce1c69895c5c7f73764cb959bb5b9ecb1d525 --- /dev/null +++ b/bench/verdicts_calibrated3/tinyvit__pool_divisor__litert_fp32.json @@ -0,0 +1,1044 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C3-4: D6 is inferred only if the nominal-shape output band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal3" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "reason": "first divergence at tap 7 is beyond the hypothesis taps (first 3) \u2014 interface faults surface earlier", + "status": "not_evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 0.00133615291, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.78813934e-07, + "mean_abs": 4.06987965e-08, + "psnr_db": 153.115635, + "ref_absmax": 1.33827448, + "rel_max": 1.33615291e-07, + "scaled_max_abs": 1.33615291e-07 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 57, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 1, + "n_ops_total": 173, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1", + "basis": "earliest tap over band with in-band predecessors", + "index": 7, + "neighbourhood": [ + { + "band_ratio": 0.0122093036, + "index": 6, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "status": "pass", + "tap": "net.norm" + }, + { + "band_ratio": 1950000.21, + "index": 7, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "status": "fail", + "tap": "net.pool" + }, + { + "band_ratio": 46.4876601, + "index": 8, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.head" + } + ], + "shape": 224, + "tap": "net.pool" + }, + "gating": "calibrated3", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "844380eaf800f5b493ebd5d563d0b9b82eace53384794852c5c8dfb768a0d82f", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "f215f4da600fbabd109654df7eb020955b11a62a8ab4840d1a297bf4291dd345", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "fp32 per-tap band on near-zero probes", + "reason": "C3-2: per-tap fp32 checks gate without the near_zero probes; they are measured and reported per tap ('ungated_probes'); the output gates on all probes" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D2", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 66.954147, + "metrics": { + "corr": 0.999998439, + "finite": true, + "max_abs": 0.00847685337, + "mean_abs": 0.0016246671, + "psnr_db": 60.236384, + "ref_absmax": 1.26606846, + "rel_max": 0.0066954147, + "scaled_max_abs": 0.0066954147 + }, + "status": "fail", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + "first_fail_index": 7, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.06644368e-08, + "psnr_db": 164.113247, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.00112572895, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.38418579e-07, + "mean_abs": 4.66593688e-08, + "psnr_db": 130.397207, + "ref_absmax": 2.11790395, + "rel_max": 1.12572895e-07, + "scaled_max_abs": 1.12572895e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.013692028, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.47819519e-05, + "mean_abs": 3.62527481e-07, + "psnr_db": 150.740789, + "ref_absmax": 10.7960281, + "rel_max": 1.3692028e-06, + "scaled_max_abs": 1.3692028e-06 + }, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;2" + }, + "status": "pass", + "tap": "net.patch_embed", + "ungated_probes": { + "band_ratio": 0.0180220941, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.529953e-06, + "mean_abs": 4.841953e-07, + "psnr_db": 137.220487, + "ref_absmax": 2.51355529, + "rel_max": 1.80220941e-06, + "scaled_max_abs": 1.80220941e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0137194998, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.47819519e-05, + "mean_abs": 3.63416014e-07, + "psnr_db": 150.644745, + "ref_absmax": 10.7744102, + "rel_max": 1.37194998e-06, + "scaled_max_abs": 1.37194998e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;3" + }, + "status": "pass", + "tap": "net.pos_embed", + "ungated_probes": { + "band_ratio": 0.0120981371, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.64916229e-06, + "mean_abs": 4.8529616e-07, + "psnr_db": 140.716929, + "ref_absmax": 3.84287453, + "rel_max": 1.20981371e-06, + "scaled_max_abs": 1.20981371e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0133449274, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-05, + "mean_abs": 3.90630877e-07, + "psnr_db": 150.441385, + "ref_absmax": 10.7195148, + "rel_max": 1.33449274e-06, + "scaled_max_abs": 1.33449274e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.0", + "ungated_probes": { + "band_ratio": 0.0101023474, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.529953e-06, + "mean_abs": 5.03142903e-07, + "psnr_db": 141.614723, + "ref_absmax": 4.48405981, + "rel_max": 1.01023474e-06, + "scaled_max_abs": 1.01023474e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0130003848, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-05, + "mean_abs": 4.1390341e-07, + "psnr_db": 150.370016, + "ref_absmax": 11.0036087, + "rel_max": 1.30003848e-06, + "scaled_max_abs": 1.30003848e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.1", + "ungated_probes": { + "band_ratio": 0.00987291283, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.64916229e-06, + "mean_abs": 5.23810185e-07, + "psnr_db": 141.674258, + "ref_absmax": 4.70900774, + "rel_max": 9.87291283e-07, + "scaled_max_abs": 9.87291283e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0126057041, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-05, + "mean_abs": 4.34103036e-07, + "psnr_db": 150.446413, + "ref_absmax": 11.3481283, + "rel_max": 1.26057041e-06, + "scaled_max_abs": 1.26057041e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.2", + "ungated_probes": { + "band_ratio": 0.0102059281, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 5.38784295e-07, + "psnr_db": 141.827963, + "ref_absmax": 4.67215872, + "rel_max": 1.02059281e-06, + "scaled_max_abs": 1.02059281e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0104389558, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.29153442e-06, + "mean_abs": 4.09872673e-07, + "psnr_db": 143.228282, + "ref_absmax": 4.11107635, + "rel_max": 1.04389558e-06, + "scaled_max_abs": 1.04389558e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "status": "pass", + "tap": "net.norm", + "ungated_probes": { + "band_ratio": 0.0111177219, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.09944153e-06, + "mean_abs": 3.46622027e-07, + "psnr_db": 141.341254, + "ref_absmax": 2.7878387, + "rel_max": 1.11177219e-06, + "scaled_max_abs": 1.11177219e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 1430000.08, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 288.945315, + "mean_abs": 52.5026461, + "psnr_db": -25.1411751, + "ref_absmax": 2.0205965, + "rel_max": 143.000008, + "scaled_max_abs": 143.000008 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "status": "fail", + "tap": "net.pool", + "ungated_probes": { + "band_ratio": 1429999.71, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 316.855182, + "mean_abs": 112.347952, + "psnr_db": -30.253585, + "ref_absmax": 2.21577096, + "rel_max": 142.999971, + "scaled_max_abs": 142.999971 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 11 + } + }, + { + "band_ratio": 62.7971126, + "index": 8, + "metrics": { + "corr": 0.999998008, + "finite": true, + "max_abs": 0.00795054436, + "mean_abs": 0.00140569156, + "psnr_db": 60.2858732, + "ref_absmax": 1.26606846, + "rel_max": 0.00627971126, + "scaled_max_abs": 0.00627971126 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.head", + "ungated_probes": { + "band_ratio": 75.961261, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999418, + "finite": true, + "max_abs": 0.00847685337, + "mean_abs": 0.00315749589, + "psnr_db": 52.0049346, + "ref_absmax": 1.11594427, + "rel_max": 0.0075961261, + "scaled_max_abs": 0.0075961261 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 46.5337647, + "metrics": { + "corr": 0.999999219, + "finite": true, + "max_abs": 0.00625658035, + "mean_abs": 0.0012218587, + "psnr_db": 63.0953371, + "ref_absmax": 1.34452486, + "rel_max": 0.00465337647, + "scaled_max_abs": 0.00465337647 + }, + "status": "fail", + "worst_probe": { + "category": "near_zero", + "index": 27 + } + }, + "first_fail_index": 7, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.08107465e-08, + "psnr_db": 164.245493, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.00112572895, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.38418579e-07, + "mean_abs": 4.66724468e-08, + "psnr_db": 130.436578, + "ref_absmax": 2.11790395, + "rel_max": 1.12572895e-07, + "scaled_max_abs": 1.12572895e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0120503822, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-05, + "mean_abs": 3.61783837e-07, + "psnr_db": 151.297602, + "ref_absmax": 11.871088, + "rel_max": 1.20503822e-06, + "scaled_max_abs": 1.20503822e-06 + }, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;2" + }, + "status": "pass", + "tap": "net.patch_embed", + "ungated_probes": { + "band_ratio": 0.0218071717, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.48362732e-06, + "mean_abs": 4.85357549e-07, + "psnr_db": 137.211056, + "ref_absmax": 2.51459813, + "rel_max": 2.18071717e-06, + "scaled_max_abs": 2.18071717e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0123587661, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-05, + "mean_abs": 3.62607432e-07, + "psnr_db": 151.221115, + "ref_absmax": 11.574873, + "rel_max": 1.23587661e-06, + "scaled_max_abs": 1.23587661e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;3" + }, + "status": "pass", + "tap": "net.pos_embed", + "ungated_probes": { + "band_ratio": 0.0147609698, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.48362732e-06, + "mean_abs": 4.85683925e-07, + "psnr_db": 140.560247, + "ref_absmax": 3.71495056, + "rel_max": 1.47609698e-06, + "scaled_max_abs": 1.47609698e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.012026573, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-05, + "mean_abs": 3.90495829e-07, + "psnr_db": 151.23837, + "ref_absmax": 11.8945894, + "rel_max": 1.2026573e-06, + "scaled_max_abs": 1.2026573e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.0", + "ungated_probes": { + "band_ratio": 0.0130114509, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.84125519e-06, + "mean_abs": 5.0340425e-07, + "psnr_db": 141.475988, + "ref_absmax": 4.48931885, + "rel_max": 1.30114509e-06, + "scaled_max_abs": 1.30114509e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0109855653, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33514404e-05, + "mean_abs": 4.15569578e-07, + "psnr_db": 151.133586, + "ref_absmax": 12.1536217, + "rel_max": 1.09855653e-06, + "scaled_max_abs": 1.09855653e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.1", + "ungated_probes": { + "band_ratio": 0.0126434283, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.96046448e-06, + "mean_abs": 5.25648263e-07, + "psnr_db": 141.57817, + "ref_absmax": 4.7142787, + "rel_max": 1.26434283e-06, + "scaled_max_abs": 1.26434283e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.010672601, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33514404e-05, + "mean_abs": 4.36010547e-07, + "psnr_db": 151.026245, + "ref_absmax": 12.5100155, + "rel_max": 1.0672601e-06, + "scaled_max_abs": 1.0672601e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.2", + "ungated_probes": { + "band_ratio": 0.0127431729, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.96046448e-06, + "mean_abs": 5.40419376e-07, + "psnr_db": 141.681128, + "ref_absmax": 4.67737865, + "rel_max": 1.27431729e-06, + "scaled_max_abs": 1.27431729e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0122093036, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.12599945e-06, + "mean_abs": 4.08445907e-07, + "psnr_db": 143.426344, + "ref_absmax": 4.19843721, + "rel_max": 1.22093036e-06, + "scaled_max_abs": 1.22093036e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "status": "pass", + "tap": "net.norm", + "ungated_probes": { + "band_ratio": 0.0126345349, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.4570694e-06, + "mean_abs": 3.47359721e-07, + "psnr_db": 141.184392, + "ref_absmax": 2.73620629, + "rel_max": 1.26345349e-06, + "scaled_max_abs": 1.26345349e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 1950000.21, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 409.530338, + "mean_abs": 76.4899539, + "psnr_db": -28.2772635, + "ref_absmax": 2.10015535, + "rel_max": 195.000021, + "scaled_max_abs": 195.000021 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "status": "fail", + "tap": "net.pool", + "ungated_probes": { + "band_ratio": 1950000.41, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 433.244785, + "mean_abs": 153.720608, + "psnr_db": -32.9456493, + "ref_absmax": 2.22176766, + "rel_max": 195.000041, + "scaled_max_abs": 195.000041 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 46.4876601, + "index": 8, + "metrics": { + "corr": 0.999999056, + "finite": true, + "max_abs": 0.00625038147, + "mean_abs": 0.00106311101, + "psnr_db": 63.1840272, + "ref_absmax": 1.34452486, + "rel_max": 0.00464876601, + "scaled_max_abs": 0.00464876601 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.head", + "ungated_probes": { + "band_ratio": 55.8977243, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999687, + "finite": true, + "max_abs": 0.00625658035, + "mean_abs": 0.0023330925, + "psnr_db": 54.6705538, + "ref_absmax": 1.11929071, + "rel_max": 0.00558977243, + "scaled_max_abs": 0.00558977243 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp32", + "id": "tinyvit__pool_divisor__litert_fp32", + "model": "tinyvit", + "path": "litert", + "variant": "pool_divisor" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated3/tinyvit__pool_divisor__onnx_fp16.json b/bench/verdicts_calibrated3/tinyvit__pool_divisor__onnx_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..3e8d81a94ef58633e1b97e8356e060cc8e070d73 --- /dev/null +++ b/bench/verdicts_calibrated3/tinyvit__pool_divisor__onnx_fp16.json @@ -0,0 +1,734 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C3-4: D6 is inferred only if the nominal-shape output band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "baseline": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "faithful_output_rel_max": 0.000456508758, + "output_band": 0.01, + "source": { + "bundle": "bundles/tinyvit__clean__onnx_fp16.json", + "case": "tinyvit__clean__onnx_fp16", + "digests": { + "192": { + "converted": "256af465b0649a975fd83c261b17d7830bd11a36abe6723c11a591e4649ad014", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "4e990e5a6766e80eea68d854f1db627a391a6a25b03b20781b4f30f0c5c65cf1", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + } + } + }, + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal3" + }, + "classes": { + "D1": { + "end_to_end_over_band": false, + "note": null, + "status": "clear" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "status": "clear" + } + }, + "d6_margin": 0.707106781, + "declared_precision": "fp16", + "first_divergence": null, + "fp16_floor": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "baseline": { + "bundle": "bundles/tinyvit__clean__onnx_fp16.json", + "case": "tinyvit__clean__onnx_fp16", + "digests": { + "192": { + "converted": "256af465b0649a975fd83c261b17d7830bd11a36abe6723c11a591e4649ad014", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "4e990e5a6766e80eea68d854f1db627a391a6a25b03b20781b4f30f0c5c65cf1", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + } + }, + "envelopes_gate": true, + "faithful_output_rel_max": 0.000456508758, + "faithful_tap_rel_max": { + "net.blocks.0": 0.000642335839, + "net.blocks.1": 0.000711207718, + "net.blocks.2": 0.000762561059, + "net.head": 0.000463029134, + "net.norm": 0.000851897059, + "net.patch_embed": 0.000469161546, + "net.pool": 0.00079208262, + "net.pos_embed": 0.0007491884, + "normalize": 0.000441313312 + }, + "floor": 0.01, + "k": 2.0, + "output_band": 0.01, + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used", + "tap_envelopes": { + "net.blocks.0": 0.01, + "net.blocks.1": 0.01, + "net.blocks.2": 0.01, + "net.head": 0.01, + "net.norm": 0.01, + "net.patch_embed": 0.01, + "net.pool": 0.01, + "net.pos_embed": 0.01, + "normalize": 0.01 + } + }, + "gating": "calibrated3", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "ac0e3b32b38e428a910d206ec5447f14032a587c09dec4ee7bee2c21f4f0b269", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "3905d27ff62d39a7d9c6c57e446c43c8e1253d97fac03be1184acea2cc4991fe", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 4.87864017e-05, + "224": 4.37051058e-05 + }, + "primary_class": null, + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_limit": 0.01, + "band_ratio": 0.658939385, + "metrics": { + "corr": 0.999998369, + "finite": true, + "max_abs": 0.00834262371, + "mean_abs": 0.00164816977, + "psnr_db": 60.2466927, + "ref_absmax": 1.26606846, + "rel_max": 0.00658939385, + "scaled_max_abs": 0.00658939385 + }, + "per_op_band_ratio": 0.658939385, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 0.0441313312, + "index": 0, + "metrics": { + "corr": 0.999999966, + "finite": true, + "max_abs": 0.00508785248, + "mean_abs": 0.000405953078, + "psnr_db": 88.0186903, + "ref_absmax": 11.5288897, + "rel_max": 0.000441313312, + "scaled_max_abs": 0.000441313312 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "per_op_band_ratio": 0.0441313312, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0469150713, + "index": 1, + "metrics": { + "corr": 0.999999939, + "finite": true, + "max_abs": 0.00506496429, + "mean_abs": 0.000255633799, + "psnr_db": 95.3001421, + "ref_absmax": 10.7960281, + "rel_max": 0.000469150713, + "scaled_max_abs": 0.000469150713 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "per_op_band_ratio": 0.0469150713, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0735365188, + "index": 2, + "metrics": { + "corr": 0.999999921, + "finite": true, + "max_abs": 0.00792312622, + "mean_abs": 0.000301602973, + "psnr_db": 93.5874175, + "ref_absmax": 10.7744102, + "rel_max": 0.000735365188, + "scaled_max_abs": 0.000735365188 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "per_op_band_ratio": 0.0735365188, + "status": "pass", + "tap": "net.pos_embed" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0642335839, + "index": 3, + "metrics": { + "corr": 0.999999915, + "finite": true, + "max_abs": 0.00688552856, + "mean_abs": 0.000337762151, + "psnr_db": 93.052585, + "ref_absmax": 10.7195148, + "rel_max": 0.000642335839, + "scaled_max_abs": 0.000642335839 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "per_op_band_ratio": 0.0642335839, + "status": "pass", + "tap": "net.blocks.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0711207718, + "index": 4, + "metrics": { + "corr": 0.99999991, + "finite": true, + "max_abs": 0.00782585144, + "mean_abs": 0.000375974454, + "psnr_db": 92.5622871, + "ref_absmax": 11.0036087, + "rel_max": 0.000711207718, + "scaled_max_abs": 0.000711207718 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0" + }, + "per_op_band_ratio": 0.0711207718, + "status": "pass", + "tap": "net.blocks.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0762561059, + "index": 5, + "metrics": { + "corr": 0.999999905, + "finite": true, + "max_abs": 0.00865364075, + "mean_abs": 0.000407947414, + "psnr_db": 92.2800434, + "ref_absmax": 11.3481283, + "rel_max": 0.000762561059, + "scaled_max_abs": 0.000762561059 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0" + }, + "per_op_band_ratio": 0.0762561059, + "status": "pass", + "tap": "net.blocks.2" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0818820092, + "index": 6, + "metrics": { + "corr": 0.999999846, + "finite": true, + "max_abs": 0.00336623192, + "mean_abs": 0.000424373745, + "psnr_db": 83.0143914, + "ref_absmax": 4.11107635, + "rel_max": 0.000818820092, + "scaled_max_abs": 0.000818820092 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "per_op_band_ratio": 0.0818820092, + "status": "pass", + "tap": "net.norm" + }, + { + "band_limit": 0.01, + "band_ratio": 0.678896064, + "index": 7, + "metrics": { + "corr": 0.99999981, + "finite": true, + "max_abs": 0.0150427818, + "mean_abs": 0.00289370061, + "psnr_db": 60.5835174, + "ref_absmax": 2.21577096, + "rel_max": 0.00678896064, + "scaled_max_abs": 0.00678896064 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/Div_output_0" + }, + "per_op_band_ratio": 0.678896064, + "status": "pass", + "tap": "net.pool" + }, + { + "band_limit": 0.01, + "band_ratio": 0.660766032, + "index": 8, + "metrics": { + "corr": 0.999998372, + "finite": true, + "max_abs": 0.00836575031, + "mean_abs": 0.00164719504, + "psnr_db": 60.2472816, + "ref_absmax": 1.26606846, + "rel_max": 0.00660766032, + "scaled_max_abs": 0.00660766032 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "per_op_band_ratio": 0.660766032, + "status": "pass", + "tap": "net.head" + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_limit": 0.01, + "band_ratio": 0.461835468, + "metrics": { + "corr": 0.999999134, + "finite": true, + "max_abs": 0.00620949268, + "mean_abs": 0.00125833838, + "psnr_db": 63.0442076, + "ref_absmax": 1.34452486, + "rel_max": 0.00461835468, + "scaled_max_abs": 0.00461835468 + }, + "per_op_band_ratio": 0.461835468, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 0.0439328023, + "index": 0, + "metrics": { + "corr": 0.999999965, + "finite": true, + "max_abs": 0.00506496429, + "mean_abs": 0.000406712054, + "psnr_db": 88.0749992, + "ref_absmax": 11.5288897, + "rel_max": 0.000439328023, + "scaled_max_abs": 0.000439328023 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "per_op_band_ratio": 0.0439328023, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0469161546, + "index": 1, + "metrics": { + "corr": 0.99999994, + "finite": true, + "max_abs": 0.00556945801, + "mean_abs": 0.000254492238, + "psnr_db": 95.9056844, + "ref_absmax": 11.871088, + "rel_max": 0.000469161546, + "scaled_max_abs": 0.000469161546 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "per_op_band_ratio": 0.0469161546, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_limit": 0.01, + "band_ratio": 0.07491884, + "index": 2, + "metrics": { + "corr": 0.99999992, + "finite": true, + "max_abs": 0.00867176056, + "mean_abs": 0.000301083888, + "psnr_db": 94.1877045, + "ref_absmax": 11.574873, + "rel_max": 0.0007491884, + "scaled_max_abs": 0.0007491884 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "per_op_band_ratio": 0.07491884, + "status": "pass", + "tap": "net.pos_embed" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0635564292, + "index": 3, + "metrics": { + "corr": 0.999999915, + "finite": true, + "max_abs": 0.00755977631, + "mean_abs": 0.000339032434, + "psnr_db": 93.8757594, + "ref_absmax": 11.8945894, + "rel_max": 0.000635564292, + "scaled_max_abs": 0.000635564292 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "per_op_band_ratio": 0.0635564292, + "status": "pass", + "tap": "net.blocks.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0671218039, + "index": 4, + "metrics": { + "corr": 0.99999991, + "finite": true, + "max_abs": 0.0081577301, + "mean_abs": 0.000376167463, + "psnr_db": 93.3355793, + "ref_absmax": 12.1536217, + "rel_max": 0.000671218039, + "scaled_max_abs": 0.000671218039 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0" + }, + "per_op_band_ratio": 0.0671218039, + "status": "pass", + "tap": "net.blocks.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0664445648, + "index": 5, + "metrics": { + "corr": 0.999999905, + "finite": true, + "max_abs": 0.00831222534, + "mean_abs": 0.000408523199, + "psnr_db": 92.8873389, + "ref_absmax": 12.5100155, + "rel_max": 0.000664445648, + "scaled_max_abs": 0.000664445648 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0" + }, + "per_op_band_ratio": 0.0664445648, + "status": "pass", + "tap": "net.blocks.2" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0851897059, + "index": 6, + "metrics": { + "corr": 0.999999848, + "finite": true, + "max_abs": 0.00357663631, + "mean_abs": 0.000421772845, + "psnr_db": 83.2639281, + "ref_absmax": 4.19843721, + "rel_max": 0.000851897059, + "scaled_max_abs": 0.000851897059 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "per_op_band_ratio": 0.0851897059, + "status": "pass", + "tap": "net.norm" + }, + { + "band_limit": 0.01, + "band_ratio": 0.487457088, + "index": 7, + "metrics": { + "corr": 0.999999832, + "finite": true, + "max_abs": 0.010830164, + "mean_abs": 0.00226106985, + "psnr_db": 62.7453328, + "ref_absmax": 2.22176766, + "rel_max": 0.00487457088, + "scaled_max_abs": 0.00487457088 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/Div_output_0" + }, + "per_op_band_ratio": 0.487457088, + "status": "pass", + "tap": "net.pool" + }, + { + "band_limit": 0.01, + "band_ratio": 0.462597968, + "index": 8, + "metrics": { + "corr": 0.999999132, + "finite": true, + "max_abs": 0.00621974468, + "mean_abs": 0.00125831807, + "psnr_db": 63.0439163, + "ref_absmax": 1.34452486, + "rel_max": 0.00462597968, + "scaled_max_abs": 0.00462597968 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "per_op_band_ratio": 0.462597968, + "status": "pass", + "tap": "net.head" + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp16", + "id": "tinyvit__pool_divisor__onnx_fp16", + "model": "tinyvit", + "path": "onnx", + "variant": "pool_divisor" + }, + "tap_bands_gate": true, + "verdict": "PASS" +} diff --git a/bench/verdicts_calibrated3/tinyvit__pool_divisor__onnx_fp32.json b/bench/verdicts_calibrated3/tinyvit__pool_divisor__onnx_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..68b2ccb302020b4edca7a3f0f921a62366945364 --- /dev/null +++ b/bench/verdicts_calibrated3/tinyvit__pool_divisor__onnx_fp32.json @@ -0,0 +1,1014 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C3-4: D6 is inferred only if the nominal-shape output band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal3" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "reason": "first divergence at tap 7 is beyond the hypothesis taps (first 3) \u2014 interface faults surface earlier", + "status": "not_evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "/net/pool/Div_output_0", + "basis": "earliest tap over band with in-band predecessors", + "index": 7, + "neighbourhood": [ + { + "band_ratio": 0.0102217425, + "index": 6, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "status": "pass", + "tap": "net.norm" + }, + { + "band_ratio": 50.7601017, + "index": 7, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/Div_output_0" + }, + "status": "fail", + "tap": "net.pool" + }, + { + "band_ratio": 46.4858868, + "index": 8, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head" + } + ], + "shape": 224, + "tap": "net.pool" + }, + "gating": "calibrated3", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "29e7e1dbaad6a6990775eb00895aa52693a3a89cdbcd96543c0bafbf687bb936", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "63cfd5e8ddbb86e7614d07034c066744d3e7c0eb4d47e246e163194db543f59d", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "fp32 per-tap band on near-zero probes", + "reason": "C3-2: per-tap fp32 checks gate without the near_zero probes; they are measured and reported per tap ('ungated_probes'); the output gates on all probes" + }, + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 1.1920929e-07, + "224": 1.1920929e-07 + }, + "primary_class": "D2", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 66.9569717, + "metrics": { + "corr": 0.999998439, + "finite": true, + "max_abs": 0.008477211, + "mean_abs": 0.00162467309, + "psnr_db": 60.2363699, + "ref_absmax": 1.26606846, + "rel_max": 0.00669569717, + "scaled_max_abs": 0.00669569717 + }, + "status": "fail", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + }, + "first_fail_index": 7, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.0, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 11.5288897, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.0, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 2.11790395, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0119253147, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.28746033e-05, + "mean_abs": 3.05237152e-07, + "psnr_db": 151.990326, + "ref_absmax": 10.7960281, + "rel_max": 1.19253147e-06, + "scaled_max_abs": 1.19253147e-06 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "status": "pass", + "tap": "net.patch_embed", + "ungated_probes": { + "band_ratio": 0.0170735629, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.29153442e-06, + "mean_abs": 4.19041159e-07, + "psnr_db": 138.187965, + "ref_absmax": 2.51355529, + "rel_max": 1.70735629e-06, + "scaled_max_abs": 1.70735629e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0119492417, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.28746033e-05, + "mean_abs": 3.36284482e-07, + "psnr_db": 151.560529, + "ref_absmax": 10.7744102, + "rel_max": 1.19492417e-06, + "scaled_max_abs": 1.19492417e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "status": "pass", + "tap": "net.pos_embed", + "ungated_probes": { + "band_ratio": 0.0111675112, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.29153442e-06, + "mean_abs": 4.39594733e-07, + "psnr_db": 141.414892, + "ref_absmax": 3.84287453, + "rel_max": 1.11675112e-06, + "scaled_max_abs": 1.11675112e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0124552656, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33514404e-05, + "mean_abs": 3.63612535e-07, + "psnr_db": 151.291476, + "ref_absmax": 10.7195148, + "rel_max": 1.24552656e-06, + "scaled_max_abs": 1.24552656e-06 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.0", + "ungated_probes": { + "band_ratio": 0.0101023474, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.529953e-06, + "mean_abs": 4.59172598e-07, + "psnr_db": 142.28545, + "ref_absmax": 4.48405981, + "rel_max": 1.01023474e-06, + "scaled_max_abs": 1.01023474e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0121336925, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33514404e-05, + "mean_abs": 3.89131165e-07, + "psnr_db": 151.149544, + "ref_absmax": 11.0036087, + "rel_max": 1.21336925e-06, + "scaled_max_abs": 1.21336925e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.1", + "ungated_probes": { + "band_ratio": 0.0101260644, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 4.81151877e-07, + "psnr_db": 142.321354, + "ref_absmax": 4.70900774, + "rel_max": 1.01260644e-06, + "scaled_max_abs": 1.01260644e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0117653238, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33514404e-05, + "mean_abs": 4.11277598e-07, + "psnr_db": 151.150197, + "ref_absmax": 11.3481283, + "rel_max": 1.17653238e-06, + "scaled_max_abs": 1.17653238e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.2", + "ungated_probes": { + "band_ratio": 0.0102059281, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 4.97824607e-07, + "psnr_db": 142.42675, + "ref_absmax": 4.67215872, + "rel_max": 1.02059281e-06, + "scaled_max_abs": 1.02059281e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0104389558, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.29153442e-06, + "mean_abs": 4.01562031e-07, + "psnr_db": 143.411533, + "ref_absmax": 4.11107635, + "rel_max": 1.04389558e-06, + "scaled_max_abs": 1.04389558e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "status": "pass", + "tap": "net.norm", + "ungated_probes": { + "band_ratio": 0.0106901172, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.98023224e-06, + "mean_abs": 3.24296879e-07, + "psnr_db": 141.845193, + "ref_absmax": 2.7878387, + "rel_max": 1.06901172e-06, + "scaled_max_abs": 1.06901172e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 68.9628644, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0139346123, + "mean_abs": 0.00253208169, + "psnr_db": 61.192909, + "ref_absmax": 2.0205965, + "rel_max": 0.00689628644, + "scaled_max_abs": 0.00689628644 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/Div_output_0" + }, + "status": "fail", + "tap": "net.pool", + "ungated_probes": { + "band_ratio": 68.9688417, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0152819157, + "mean_abs": 0.00541829674, + "psnr_db": 56.0804557, + "ref_absmax": 2.21577096, + "rel_max": 0.00689688417, + "scaled_max_abs": 0.00689688417 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 11 + } + }, + { + "band_ratio": 62.7980542, + "index": 8, + "metrics": { + "corr": 0.999998008, + "finite": true, + "max_abs": 0.00795066357, + "mean_abs": 0.00140569388, + "psnr_db": 60.2858873, + "ref_absmax": 1.26606846, + "rel_max": 0.00627980542, + "scaled_max_abs": 0.00627980542 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "ungated_probes": { + "band_ratio": 75.9633975, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999418, + "finite": true, + "max_abs": 0.00847709179, + "mean_abs": 0.00315748751, + "psnr_db": 52.0049644, + "ref_absmax": 1.11594427, + "rel_max": 0.00759633975, + "scaled_max_abs": 0.00759633975 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 46.535538, + "metrics": { + "corr": 0.999999219, + "finite": true, + "max_abs": 0.00625681877, + "mean_abs": 0.00122184791, + "psnr_db": 63.0954314, + "ref_absmax": 1.34452486, + "rel_max": 0.0046535538, + "scaled_max_abs": 0.0046535538 + }, + "status": "fail", + "worst_probe": { + "category": "near_zero", + "index": 27 + } + }, + "first_fail_index": 7, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.0, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 11.5288897, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.0, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 2.11790395, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0104436645, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.23977661e-05, + "mean_abs": 3.03467206e-07, + "psnr_db": 152.573303, + "ref_absmax": 11.871088, + "rel_max": 1.04436645e-06, + "scaled_max_abs": 1.04436645e-06 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "status": "pass", + "tap": "net.patch_embed", + "ungated_probes": { + "band_ratio": 0.0170664822, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.29153442e-06, + "mean_abs": 4.21279035e-07, + "psnr_db": 138.195951, + "ref_absmax": 2.51459813, + "rel_max": 1.70664822e-06, + "scaled_max_abs": 1.70664822e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0107109306, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.23977661e-05, + "mean_abs": 3.04157085e-07, + "psnr_db": 152.494897, + "ref_absmax": 11.574873, + "rel_max": 1.07109306e-06, + "scaled_max_abs": 1.07109306e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "status": "pass", + "tap": "net.pos_embed", + "ungated_probes": { + "band_ratio": 0.0115520634, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.29153442e-06, + "mean_abs": 4.21630477e-07, + "psnr_db": 141.539177, + "ref_absmax": 3.71495056, + "rel_max": 1.15520634e-06, + "scaled_max_abs": 1.15520634e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0104230299, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.23977661e-05, + "mean_abs": 3.33690815e-07, + "psnr_db": 152.451548, + "ref_absmax": 11.8945894, + "rel_max": 1.04230299e-06, + "scaled_max_abs": 1.04230299e-06 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.0", + "ungated_probes": { + "band_ratio": 0.010090513, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.529953e-06, + "mean_abs": 4.40578055e-07, + "psnr_db": 142.442878, + "ref_absmax": 4.48931885, + "rel_max": 1.0090513e-06, + "scaled_max_abs": 1.0090513e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.010200882, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.23977661e-05, + "mean_abs": 3.60024885e-07, + "psnr_db": 152.293918, + "ref_absmax": 12.1536217, + "rel_max": 1.0200882e-06, + "scaled_max_abs": 1.0200882e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.1", + "ungated_probes": { + "band_ratio": 0.0101147427, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 4.63398056e-07, + "psnr_db": 142.526885, + "ref_absmax": 4.7142787, + "rel_max": 1.01147427e-06, + "scaled_max_abs": 1.01147427e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00991027239, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.23977661e-05, + "mean_abs": 3.81327232e-07, + "psnr_db": 152.146331, + "ref_absmax": 12.5100155, + "rel_max": 9.91027239e-07, + "scaled_max_abs": 9.91027239e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.2", + "ungated_probes": { + "band_ratio": 0.0101945383, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 4.78492643e-07, + "psnr_db": 142.60423, + "ref_absmax": 4.67737865, + "rel_max": 1.01945383e-06, + "scaled_max_abs": 1.01945383e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0102217425, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.29153442e-06, + "mean_abs": 3.63295843e-07, + "psnr_db": 144.434474, + "ref_absmax": 4.19843721, + "rel_max": 1.02217425e-06, + "scaled_max_abs": 1.02217425e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "status": "pass", + "tap": "net.norm", + "ungated_probes": { + "band_ratio": 0.0104561668, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.86102295e-06, + "mean_abs": 3.12752192e-07, + "psnr_db": 141.96993, + "ref_absmax": 2.73620629, + "rel_max": 1.04561668e-06, + "scaled_max_abs": 1.04561668e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 50.7601017, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0106604099, + "mean_abs": 0.0019911407, + "psnr_db": 63.4127423, + "ref_absmax": 2.10015535, + "rel_max": 0.00507601017, + "scaled_max_abs": 0.00507601017 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/Div_output_0" + }, + "status": "fail", + "tap": "net.pool", + "ungated_probes": { + "band_ratio": 50.7599233, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0112776756, + "mean_abs": 0.0040015905, + "psnr_db": 58.7443398, + "ref_absmax": 2.22176766, + "rel_max": 0.00507599233, + "scaled_max_abs": 0.00507599233 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 46.4858868, + "index": 8, + "metrics": { + "corr": 0.999999056, + "finite": true, + "max_abs": 0.00625014305, + "mean_abs": 0.00106309595, + "psnr_db": 63.184144, + "ref_absmax": 1.34452486, + "rel_max": 0.00464858868, + "scaled_max_abs": 0.00464858868 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "ungated_probes": { + "band_ratio": 55.8998544, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999687, + "finite": true, + "max_abs": 0.00625681877, + "mean_abs": 0.00233309232, + "psnr_db": 54.670646, + "ref_absmax": 1.11929071, + "rel_max": 0.00558998544, + "scaled_max_abs": 0.00558998544 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp32", + "id": "tinyvit__pool_divisor__onnx_fp32", + "model": "tinyvit", + "path": "onnx", + "variant": "pool_divisor" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/mobilenet_v3_small__baked_shape__coreml_fp16.json b/bench/verdicts_calibrated4/mobilenet_v3_small__baked_shape__coreml_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..31d5425d14813aa970af35558bb0fc344327e867 --- /dev/null +++ b/bench/verdicts_calibrated4/mobilenet_v3_small__baked_shape__coreml_fp16.json @@ -0,0 +1,1162 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "baseline": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "faithful_output_rel_max": 0.0447572937, + "output_band": 0.0895145874, + "source": { + "bundle": "bundles/mobilenet_v3_small__clean__coreml_fp16.json", + "case": "mobilenet_v3_small__clean__coreml_fp16", + "digests": { + "192": { + "converted": "e8f4b313bc394828af089248d6d729f5cfb7d031d184bf665f719d1a66fcd7d8", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "807adc810963567dc9e14f27330f17d8d7cd30ffa6b8e35992534a3dbc2f65e9", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + } + } + }, + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [ + "inputs[0]: dtype float16 (declared float32)", + "outputs[0]: dtype float16 (declared float32)" + ], + "status": "precision_narrowing" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "margin": { + "clear_margin": true, + "failing_shape": 192, + "locations_over_margin": [], + "margin": 0.707106781, + "n_locations": 17, + "nominal_output_band_ratio": 0.326253957, + "nominal_output_judgeable": true, + "rule": "C4-2 (b1)", + "scope": "every gated location of the nominal shape", + "worst_location": { + "band_ratio": 0.5, + "index": 10, + "location": "net.features.9" + } + }, + "status": "flag" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "_inversed_x_cast_fp16", + "basis": "nominal shape 224 inside band with a clear margin at every gated location (worst net.features.9 at ratio 0.5 <= 0.7071); shape 192 over band", + "index": 14, + "neighbourhood": [ + { + "band_ratio": 0.353496557, + "index": 13, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_3_cast_fp16" + }, + "status": "pass", + "tap": "net.features.12" + }, + { + "band_ratio": 2.19534147, + "index": 14, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_x_cast_fp16" + }, + "status": "fail", + "tap": "net.avgpool" + }, + { + "band_ratio": 4.07034985, + "index": 15, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier" + } + ], + "shape": 192, + "tap": "net.avgpool" + }, + "fp16_floor": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "baseline": { + "bundle": "bundles/mobilenet_v3_small__clean__coreml_fp16.json", + "case": "mobilenet_v3_small__clean__coreml_fp16", + "digests": { + "192": { + "converted": "e8f4b313bc394828af089248d6d729f5cfb7d031d184bf665f719d1a66fcd7d8", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "807adc810963567dc9e14f27330f17d8d7cd30ffa6b8e35992534a3dbc2f65e9", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + } + }, + "envelopes_gate": true, + "faithful_output_rel_max": 0.0447572937, + "faithful_tap_rel_max": { + "net.avgpool": 0.0593494378, + "net.classifier": 0.0447572937, + "net.features.0": 0.0033139093, + "net.features.1": 0.0109594004, + "net.features.10": 0.0689930567, + "net.features.11": 0.097995766, + "net.features.12": 0.111351399, + "net.features.2": 0.0106091941, + "net.features.3": 0.0219511544, + "net.features.4": 0.0122644963, + "net.features.5": 0.0214109624, + "net.features.6": 0.0112218713, + "net.features.7": 0.0213995931, + "net.features.8": 0.0282643785, + "net.features.9": 0.0667671518, + "normalize": 0.00117570499 + }, + "floor": 0.01, + "k": 2.0, + "output_band": 0.0895145874, + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used", + "tap_envelopes": { + "net.avgpool": 0.118698876, + "net.classifier": 0.0895145874, + "net.features.0": 0.01, + "net.features.1": 0.0219188008, + "net.features.10": 0.137986113, + "net.features.11": 0.195991532, + "net.features.12": 0.222702798, + "net.features.2": 0.0212183882, + "net.features.3": 0.0439023088, + "net.features.4": 0.0245289926, + "net.features.5": 0.0428219248, + "net.features.6": 0.0224437425, + "net.features.7": 0.0427991863, + "net.features.8": 0.056528757, + "net.features.9": 0.133534304, + "normalize": 0.01 + } + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "61cde16098a17b1b9ec4d4af1a9faffff976716979bf9fd4f856bc0c6e7f5c97", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "807adc810963567dc9e14f27330f17d8d7cd30ffa6b8e35992534a3dbc2f65e9", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D6", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.5625, + "band_limit": 0.0895145874, + "band_ratio": 4.07034985, + "metrics": { + "corr": 0.98249005, + "finite": true, + "max_abs": 8.8847065, + "mean_abs": 0.966745909, + "psnr_db": 28.1577948, + "ref_absmax": 24.3847065, + "rel_max": 0.364355687, + "scaled_max_abs": 0.364355687 + }, + "per_op_band_ratio": 36.4355687, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 14, + "n_judged": 16, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 0.117570499, + "index": 0, + "metrics": { + "corr": 0.999999914, + "finite": true, + "max_abs": 0.0135545731, + "mean_abs": 0.000674526699, + "psnr_db": 83.5827466, + "ref_absmax": 11.5288897, + "rel_max": 0.00117570499, + "scaled_max_abs": 0.00117570499 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "per_op_band_ratio": 0.117570499, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 0.264822202, + "index": 1, + "metrics": { + "corr": 0.999998648, + "finite": true, + "max_abs": 0.503248215, + "mean_abs": 0.00245742044, + "psnr_db": 89.2955159, + "ref_absmax": 190.032486, + "rel_max": 0.00264822202, + "scaled_max_abs": 0.00264822202 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_7_cast_fp16" + }, + "per_op_band_ratio": 0.264822202, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_limit": 0.0219188008, + "band_ratio": 0.468941544, + "index": 2, + "metrics": { + "corr": 0.999955391, + "finite": true, + "max_abs": 0.467163086, + "mean_abs": 0.0108745644, + "psnr_db": 70.7611788, + "ref_absmax": 45.4499092, + "rel_max": 0.0102786363, + "scaled_max_abs": 0.0102786363 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_27_cast_fp16" + }, + "per_op_band_ratio": 1.02786363, + "status": "pass", + "tap": "net.features.1" + }, + { + "band_limit": 0.0212183882, + "band_ratio": 0.5, + "index": 3, + "metrics": { + "corr": 0.999939329, + "finite": true, + "max_abs": 0.274743319, + "mean_abs": 0.0150893866, + "psnr_db": 65.8230603, + "ref_absmax": 25.896719, + "rel_max": 0.0106091941, + "scaled_max_abs": 0.0106091941 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_43_cast_fp16" + }, + "per_op_band_ratio": 1.06091941, + "status": "pass", + "tap": "net.features.2" + }, + { + "band_limit": 0.0439023088, + "band_ratio": 0.5, + "index": 4, + "metrics": { + "corr": 0.999841065, + "finite": true, + "max_abs": 0.564396858, + "mean_abs": 0.0266718961, + "psnr_db": 62.2128125, + "ref_absmax": 25.7114887, + "rel_max": 0.0219511544, + "scaled_max_abs": 0.0219511544 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59_cast_fp16" + }, + "per_op_band_ratio": 2.19511544, + "status": "pass", + "tap": "net.features.3" + }, + { + "band_limit": 0.0245289926, + "band_ratio": 0.5, + "index": 5, + "metrics": { + "corr": 0.999799843, + "finite": true, + "max_abs": 0.209820509, + "mean_abs": 0.0157979565, + "psnr_db": 61.8903255, + "ref_absmax": 17.1079597, + "rel_max": 0.0122644963, + "scaled_max_abs": 0.0122644963 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85_cast_fp16" + }, + "per_op_band_ratio": 1.22644963, + "status": "pass", + "tap": "net.features.4" + }, + { + "band_limit": 0.0428219248, + "band_ratio": 0.5, + "index": 6, + "metrics": { + "corr": 0.999504987, + "finite": true, + "max_abs": 0.477863312, + "mean_abs": 0.0243805949, + "psnr_db": 59.3153124, + "ref_absmax": 22.3186283, + "rel_max": 0.0214109624, + "scaled_max_abs": 0.0214109624 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_111_cast_fp16" + }, + "per_op_band_ratio": 2.14109624, + "status": "pass", + "tap": "net.features.5" + }, + { + "band_limit": 0.0224437425, + "band_ratio": 0.5, + "index": 7, + "metrics": { + "corr": 0.999850861, + "finite": true, + "max_abs": 0.704397678, + "mean_abs": 0.039895837, + "psnr_db": 65.3544562, + "ref_absmax": 62.7700729, + "rel_max": 0.0112218713, + "scaled_max_abs": 0.0112218713 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_137_cast_fp16" + }, + "per_op_band_ratio": 1.12218713, + "status": "pass", + "tap": "net.features.6" + }, + { + "band_limit": 0.0427991863, + "band_ratio": 0.46021757, + "index": 8, + "metrics": { + "corr": 0.999595316, + "finite": true, + "max_abs": 0.407417655, + "mean_abs": 0.0218482537, + "psnr_db": 61.0318832, + "ref_absmax": 20.6843147, + "rel_max": 0.0196969375, + "scaled_max_abs": 0.0196969375 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_163_cast_fp16" + }, + "per_op_band_ratio": 1.96969375, + "status": "pass", + "tap": "net.features.7" + }, + { + "band_limit": 0.056528757, + "band_ratio": 0.443729547, + "index": 9, + "metrics": { + "corr": 0.999493234, + "finite": true, + "max_abs": 0.487973213, + "mean_abs": 0.0272460814, + "psnr_db": 59.0074803, + "ref_absmax": 19.453968, + "rel_max": 0.0250834797, + "scaled_max_abs": 0.0250834797 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_189_cast_fp16" + }, + "per_op_band_ratio": 2.50834797, + "status": "pass", + "tap": "net.features.8" + }, + { + "band_limit": 0.133534304, + "band_ratio": 0.357544586, + "index": 10, + "metrics": { + "corr": 0.999143776, + "finite": true, + "max_abs": 0.166851461, + "mean_abs": 0.011929511, + "psnr_db": 51.0183146, + "ref_absmax": 3.49467635, + "rel_max": 0.0477444673, + "scaled_max_abs": 0.0477444673 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_215_cast_fp16" + }, + "per_op_band_ratio": 4.77444673, + "status": "pass", + "tap": "net.features.9" + }, + { + "band_limit": 0.137986113, + "band_ratio": 0.44973864, + "index": 11, + "metrics": { + "corr": 0.998980348, + "finite": true, + "max_abs": 0.232064664, + "mean_abs": 0.0157052516, + "psnr_db": 49.3870164, + "ref_absmax": 3.73949909, + "rel_max": 0.062057687, + "scaled_max_abs": 0.062057687 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_241_cast_fp16" + }, + "per_op_band_ratio": 6.2057687, + "status": "pass", + "tap": "net.features.10" + }, + { + "band_limit": 0.195991532, + "band_ratio": 0.5, + "index": 12, + "metrics": { + "corr": 0.998920477, + "finite": true, + "max_abs": 0.444393635, + "mean_abs": 0.0186522474, + "psnr_db": 49.5043399, + "ref_absmax": 4.53482485, + "rel_max": 0.097995766, + "scaled_max_abs": 0.097995766 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_267_cast_fp16" + }, + "per_op_band_ratio": 9.7995766, + "status": "pass", + "tap": "net.features.11" + }, + { + "band_limit": 0.222702798, + "band_ratio": 0.353496557, + "index": 13, + "metrics": { + "corr": 0.998558604, + "finite": true, + "max_abs": 0.795100451, + "mean_abs": 0.0110715953, + "psnr_db": 52.0070134, + "ref_absmax": 10.099762, + "rel_max": 0.0787246723, + "scaled_max_abs": 0.0787246723 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_3_cast_fp16" + }, + "per_op_band_ratio": 7.87246723, + "status": "pass", + "tap": "net.features.12" + }, + { + "band_limit": 0.118698876, + "band_ratio": 2.19534147, + "index": 14, + "metrics": { + "corr": 0.999059368, + "finite": true, + "max_abs": 1.36700296, + "mean_abs": 0.0698849106, + "psnr_db": 34.6489652, + "ref_absmax": 5.24590921, + "rel_max": 0.260584564, + "scaled_max_abs": 0.260584564 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_x_cast_fp16" + }, + "per_op_band_ratio": 26.0584564, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.0895145874, + "band_ratio": 4.07034985, + "index": 15, + "metrics": { + "corr": 0.98249005, + "finite": true, + "max_abs": 8.8847065, + "mean_abs": 0.966745909, + "psnr_db": 28.1577948, + "ref_absmax": 24.3847065, + "rel_max": 0.364355687, + "scaled_max_abs": 0.364355687 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "per_op_band_ratio": 36.4355687, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_limit": 0.0895145874, + "band_ratio": 0.326253957, + "metrics": { + "corr": 0.99960838, + "finite": true, + "max_abs": 0.526415348, + "mean_abs": 0.0415014574, + "psnr_db": 51.9897065, + "ref_absmax": 18.0251522, + "rel_max": 0.0292044884, + "scaled_max_abs": 0.0292044884 + }, + "per_op_band_ratio": 2.92044884, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 16, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 0.116213884, + "index": 0, + "metrics": { + "corr": 0.999999912, + "finite": true, + "max_abs": 0.0133981705, + "mean_abs": 0.000679588388, + "psnr_db": 83.6184843, + "ref_absmax": 11.5288897, + "rel_max": 0.00116213884, + "scaled_max_abs": 0.00116213884 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "per_op_band_ratio": 0.116213884, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 0.33139093, + "index": 1, + "metrics": { + "corr": 0.999998561, + "finite": true, + "max_abs": 0.560178757, + "mean_abs": 0.00245733429, + "psnr_db": 88.488319, + "ref_absmax": 169.038651, + "rel_max": 0.0033139093, + "scaled_max_abs": 0.0033139093 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_7_cast_fp16" + }, + "per_op_band_ratio": 0.33139093, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_limit": 0.0219188008, + "band_ratio": 0.5, + "index": 2, + "metrics": { + "corr": 0.999947809, + "finite": true, + "max_abs": 0.489273071, + "mean_abs": 0.0109243768, + "psnr_db": 70.0800625, + "ref_absmax": 44.644146, + "rel_max": 0.0109594004, + "scaled_max_abs": 0.0109594004 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_27_cast_fp16" + }, + "per_op_band_ratio": 1.09594004, + "status": "pass", + "tap": "net.features.1" + }, + { + "band_limit": 0.0212183882, + "band_ratio": 0.472423312, + "index": 3, + "metrics": { + "corr": 0.999928562, + "finite": true, + "max_abs": 0.306883574, + "mean_abs": 0.0154189054, + "psnr_db": 66.8123424, + "ref_absmax": 30.6146946, + "rel_max": 0.0100240612, + "scaled_max_abs": 0.0100240612 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_43_cast_fp16" + }, + "per_op_band_ratio": 1.00240612, + "status": "pass", + "tap": "net.features.2" + }, + { + "band_limit": 0.0439023088, + "band_ratio": 0.395740738, + "index": 4, + "metrics": { + "corr": 0.999826151, + "finite": true, + "max_abs": 0.454617977, + "mean_abs": 0.0275043068, + "psnr_db": 61.9146954, + "ref_absmax": 26.1666718, + "rel_max": 0.0173739321, + "scaled_max_abs": 0.0173739321 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59_cast_fp16" + }, + "per_op_band_ratio": 1.73739321, + "status": "pass", + "tap": "net.features.3" + }, + { + "band_limit": 0.0245289926, + "band_ratio": 0.421120473, + "index": 5, + "metrics": { + "corr": 0.99979303, + "finite": true, + "max_abs": 0.201439619, + "mean_abs": 0.016404368, + "psnr_db": 62.6750818, + "ref_absmax": 19.5010872, + "rel_max": 0.010329661, + "scaled_max_abs": 0.010329661 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85_cast_fp16" + }, + "per_op_band_ratio": 1.0329661, + "status": "pass", + "tap": "net.features.4" + }, + { + "band_limit": 0.0428219248, + "band_ratio": 0.316127148, + "index": 6, + "metrics": { + "corr": 0.999513853, + "finite": true, + "max_abs": 0.406739235, + "mean_abs": 0.0253501789, + "psnr_db": 61.2191237, + "ref_absmax": 30.0460987, + "rel_max": 0.013537173, + "scaled_max_abs": 0.013537173 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_111_cast_fp16" + }, + "per_op_band_ratio": 1.3537173, + "status": "pass", + "tap": "net.features.5" + }, + { + "band_limit": 0.0224437425, + "band_ratio": 0.402521529, + "index": 7, + "metrics": { + "corr": 0.999871662, + "finite": true, + "max_abs": 0.611428976, + "mean_abs": 0.0359328223, + "psnr_db": 67.7936158, + "ref_absmax": 67.6801987, + "rel_max": 0.00903408956, + "scaled_max_abs": 0.00903408956 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_137_cast_fp16" + }, + "per_op_band_ratio": 0.903408956, + "status": "pass", + "tap": "net.features.6" + }, + { + "band_limit": 0.0427991863, + "band_ratio": 0.5, + "index": 8, + "metrics": { + "corr": 0.999559127, + "finite": true, + "max_abs": 0.369894862, + "mean_abs": 0.0213631066, + "psnr_db": 60.1058239, + "ref_absmax": 17.2851353, + "rel_max": 0.0213995931, + "scaled_max_abs": 0.0213995931 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_163_cast_fp16" + }, + "per_op_band_ratio": 2.13995931, + "status": "pass", + "tap": "net.features.7" + }, + { + "band_limit": 0.056528757, + "band_ratio": 0.5, + "index": 9, + "metrics": { + "corr": 0.999500951, + "finite": true, + "max_abs": 0.472660661, + "mean_abs": 0.0256925706, + "psnr_db": 58.5906151, + "ref_absmax": 16.7228394, + "rel_max": 0.0282643785, + "scaled_max_abs": 0.0282643785 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_189_cast_fp16" + }, + "per_op_band_ratio": 2.82643785, + "status": "pass", + "tap": "net.features.8" + }, + { + "band_limit": 0.133534304, + "band_ratio": 0.5, + "index": 10, + "metrics": { + "corr": 0.999401345, + "finite": true, + "max_abs": 0.180789143, + "mean_abs": 0.0101991881, + "psnr_db": 50.6690645, + "ref_absmax": 2.7077558, + "rel_max": 0.0667671518, + "scaled_max_abs": 0.0667671518 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_215_cast_fp16" + }, + "per_op_band_ratio": 6.67671518, + "status": "pass", + "tap": "net.features.9" + }, + { + "band_limit": 0.137986113, + "band_ratio": 0.5, + "index": 11, + "metrics": { + "corr": 0.999307124, + "finite": true, + "max_abs": 0.226667628, + "mean_abs": 0.0133321, + "psnr_db": 49.4267834, + "ref_absmax": 3.28536868, + "rel_max": 0.0689930567, + "scaled_max_abs": 0.0689930567 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_241_cast_fp16" + }, + "per_op_band_ratio": 6.89930567, + "status": "pass", + "tap": "net.features.10" + }, + { + "band_limit": 0.195991532, + "band_ratio": 0.375481433, + "index": 12, + "metrics": { + "corr": 0.999328651, + "finite": true, + "max_abs": 0.292126656, + "mean_abs": 0.015667708, + "psnr_db": 49.913118, + "ref_absmax": 3.9695878, + "rel_max": 0.0735911813, + "scaled_max_abs": 0.0735911813 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_267_cast_fp16" + }, + "per_op_band_ratio": 7.35911813, + "status": "pass", + "tap": "net.features.11" + }, + { + "band_limit": 0.222702798, + "band_ratio": 0.5, + "index": 13, + "metrics": { + "corr": 0.999259846, + "finite": true, + "max_abs": 1.0309, + "mean_abs": 0.00853840335, + "psnr_db": 54.55654, + "ref_absmax": 9.25807858, + "rel_max": 0.111351399, + "scaled_max_abs": 0.111351399 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_3_cast_fp16" + }, + "per_op_band_ratio": 11.1351399, + "status": "pass", + "tap": "net.features.12" + }, + { + "band_limit": 0.118698876, + "band_ratio": 0.332791562, + "index": 14, + "metrics": { + "corr": 0.999594702, + "finite": true, + "max_abs": 0.204995692, + "mean_abs": 0.0047363485, + "psnr_db": 54.3473048, + "ref_absmax": 5.18950367, + "rel_max": 0.0395019842, + "scaled_max_abs": 0.0395019842 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_x_cast_fp16" + }, + "per_op_band_ratio": 3.95019842, + "status": "pass", + "tap": "net.avgpool" + }, + { + "band_limit": 0.0895145874, + "band_ratio": 0.326253957, + "index": 15, + "metrics": { + "corr": 0.99960838, + "finite": true, + "max_abs": 0.526415348, + "mean_abs": 0.0415014574, + "psnr_db": 51.9897065, + "ref_absmax": 18.0251522, + "rel_max": 0.0292044884, + "scaled_max_abs": 0.0292044884 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "per_op_band_ratio": 2.92044884, + "status": "pass", + "tap": "net.classifier" + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp16", + "id": "mobilenet_v3_small__baked_shape__coreml_fp16", + "model": "mobilenet_v3_small", + "path": "coreml", + "variant": "baked_shape" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/mobilenet_v3_small__baked_shape__coreml_fp32.json b/bench/verdicts_calibrated4/mobilenet_v3_small__baked_shape__coreml_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..dae563f49808f2c0c94883afd66e3b81faab9aab --- /dev/null +++ b/bench/verdicts_calibrated4/mobilenet_v3_small__baked_shape__coreml_fp32.json @@ -0,0 +1,1563 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "margin": { + "clear_margin": true, + "failing_shape": 192, + "locations_over_margin": [], + "margin": 0.707106781, + "n_locations": 17, + "nominal_output_band_ratio": 0.0583310433, + "nominal_output_judgeable": true, + "rule": "C4-2 (b1)", + "scope": "every gated location of the nominal shape", + "worst_location": { + "band_ratio": 0.170481486, + "index": 13, + "location": "net.features.12" + } + }, + "status": "flag" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "_inversed_x", + "basis": "nominal shape 224 inside band with a clear margin at every gated location (worst net.features.12 at ratio 0.17 <= 0.7071); shape 192 over band", + "index": 14, + "neighbourhood": [ + { + "band_ratio": 0.104340095, + "index": 13, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_3" + }, + "status": "pass", + "tap": "net.features.12" + }, + { + "band_ratio": 2653.07115, + "index": 14, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_x" + }, + "status": "fail", + "tap": "net.avgpool" + }, + { + "band_ratio": 3688.68105, + "index": 15, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier" + } + ], + "shape": 192, + "tap": "net.avgpool" + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "fba21a800d03bf894d1e1bfd72f93cf58efb1f961e25cbeb8c9a2b885503d311", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "f0e93526e4c5787d77966a3a9b20aad662dd06d49e1bc357e66ce69e8c48ac51", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "fp32 per-tap band on near-zero probes", + "reason": "C3-2: per-tap fp32 checks gate without the near_zero probes; they are measured and reported per tap ('ungated_probes'); the output gates on all probes. C4-1: when the output has failed and no gated tap fails, they localise the first divergence (earliest tap over band on all probes)" + }, + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D6", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.59375, + "band_ratio": 3688.68105, + "metrics": { + "corr": 0.982247113, + "finite": true, + "max_abs": 8.99474049, + "mean_abs": 0.971369303, + "psnr_db": 28.0806154, + "ref_absmax": 24.3847065, + "rel_max": 0.368868105, + "scaled_max_abs": 0.368868105 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 14, + "n_judged": 16, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.06644368e-08, + "psnr_db": 164.113247, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.00112572895, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.38418579e-07, + "mean_abs": 4.66593688e-08, + "psnr_db": 130.397207, + "ref_absmax": 2.11790395, + "rel_max": 1.12572895e-07, + "scaled_max_abs": 1.12572895e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00401478436, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.62939453e-05, + "mean_abs": 3.24115959e-07, + "psnr_db": 165.981806, + "ref_absmax": 190.032486, + "rel_max": 4.01478436e-07, + "scaled_max_abs": 4.01478436e-07 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_7" + }, + "status": "pass", + "tap": "net.features.0", + "ungated_probes": { + "band_ratio": 0.00361820398, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.14440918e-05, + "mean_abs": 3.57559764e-07, + "psnr_db": 154.819305, + "ref_absmax": 31.6292057, + "rel_max": 3.61820398e-07, + "scaled_max_abs": 3.61820398e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0140782649, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.39855862e-05, + "mean_abs": 1.68588111e-06, + "psnr_db": 146.919123, + "ref_absmax": 45.4499092, + "rel_max": 1.40782649e-06, + "scaled_max_abs": 1.40782649e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_27" + }, + "status": "pass", + "tap": "net.features.1", + "ungated_probes": { + "band_ratio": 0.0551195708, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.04119492e-05, + "mean_abs": 2.21933378e-06, + "psnr_db": 131.19673, + "ref_absmax": 7.33168793, + "rel_max": 5.51195708e-06, + "scaled_max_abs": 5.51195708e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0168018932, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.35113907e-05, + "mean_abs": 2.364716e-06, + "psnr_db": 141.953623, + "ref_absmax": 25.896719, + "rel_max": 1.68018932e-06, + "scaled_max_abs": 1.68018932e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_43" + }, + "status": "pass", + "tap": "net.features.2", + "ungated_probes": { + "band_ratio": 0.0935379449, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.02927399e-05, + "mean_abs": 3.91170222e-06, + "psnr_db": 121.942109, + "ref_absmax": 4.30763578, + "rel_max": 9.35379449e-06, + "scaled_max_abs": 9.35379449e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0496097061, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.00012755394, + "mean_abs": 3.98352299e-06, + "psnr_db": 138.819026, + "ref_absmax": 25.7114887, + "rel_max": 4.96097061e-06, + "scaled_max_abs": 4.96097061e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59" + }, + "status": "pass", + "tap": "net.features.3", + "ungated_probes": { + "band_ratio": 0.332723064, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000223994255, + "mean_abs": 1.24484625e-05, + "psnr_db": 115.698552, + "ref_absmax": 6.73215294, + "rel_max": 3.32723064e-05, + "scaled_max_abs": 3.32723064e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0150858498, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.58088112e-05, + "mean_abs": 2.13908043e-06, + "psnr_db": 139.557552, + "ref_absmax": 17.1079597, + "rel_max": 1.50858498e-06, + "scaled_max_abs": 1.50858498e-06 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85" + }, + "status": "pass", + "tap": "net.features.4", + "ungated_probes": { + "band_ratio": 0.288051033, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.4400177e-05, + "mean_abs": 7.77968791e-06, + "psnr_db": 115.200941, + "ref_absmax": 2.93004251, + "rel_max": 2.88051033e-05, + "scaled_max_abs": 2.88051033e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0275608306, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.15119934e-05, + "mean_abs": 3.17559211e-06, + "psnr_db": 137.135406, + "ref_absmax": 22.3186283, + "rel_max": 2.75608306e-06, + "scaled_max_abs": 2.75608306e-06 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_111" + }, + "status": "pass", + "tap": "net.features.5", + "ungated_probes": { + "band_ratio": 0.47075491, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000135660172, + "mean_abs": 1.22802891e-05, + "psnr_db": 110.412785, + "ref_absmax": 2.88175797, + "rel_max": 4.7075491e-05, + "scaled_max_abs": 4.7075491e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0158008625, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.91821289e-05, + "mean_abs": 5.04242062e-06, + "psnr_db": 143.735769, + "ref_absmax": 62.7700729, + "rel_max": 1.58008625e-06, + "scaled_max_abs": 1.58008625e-06 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_137" + }, + "status": "pass", + "tap": "net.features.6", + "ungated_probes": { + "band_ratio": 0.312746274, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000171065331, + "mean_abs": 1.71256148e-05, + "psnr_db": 113.38697, + "ref_absmax": 5.46977997, + "rel_max": 3.12746274e-05, + "scaled_max_abs": 3.12746274e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.028585819, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.91278076e-05, + "mean_abs": 3.125392e-06, + "psnr_db": 138.047215, + "ref_absmax": 20.6843147, + "rel_max": 2.8585819e-06, + "scaled_max_abs": 2.8585819e-06 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_163" + }, + "status": "pass", + "tap": "net.features.7", + "ungated_probes": { + "band_ratio": 0.294206744, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.5234642e-05, + "mean_abs": 8.91243483e-06, + "psnr_db": 112.795016, + "ref_absmax": 2.89710021, + "rel_max": 2.94206744e-05, + "scaled_max_abs": 2.94206744e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0318643633, + "index": 9, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.19888306e-05, + "mean_abs": 3.99878499e-06, + "psnr_db": 135.595055, + "ref_absmax": 19.453968, + "rel_max": 3.18643633e-06, + "scaled_max_abs": 3.18643633e-06 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_189" + }, + "status": "pass", + "tap": "net.features.8", + "ungated_probes": { + "band_ratio": 0.174068164, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.3492527e-05, + "mean_abs": 1.08960607e-05, + "psnr_db": 114.633001, + "ref_absmax": 4.22205448, + "rel_max": 1.74068164e-05, + "scaled_max_abs": 1.74068164e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0685644815, + "index": 10, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.39610672e-05, + "mean_abs": 1.60867426e-06, + "psnr_db": 128.642248, + "ref_absmax": 3.49467635, + "rel_max": 6.85644815e-06, + "scaled_max_abs": 6.85644815e-06 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_215" + }, + "status": "pass", + "tap": "net.features.9", + "ungated_probes": { + "band_ratio": 0.180004421, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.12192535e-05, + "mean_abs": 2.94052008e-06, + "psnr_db": 114.830974, + "ref_absmax": 1.17881846, + "rel_max": 1.80004421e-05, + "scaled_max_abs": 1.80004421e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.101373347, + "index": 11, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.79085541e-05, + "mean_abs": 2.04077571e-06, + "psnr_db": 127.38104, + "ref_absmax": 3.73949909, + "rel_max": 1.01373347e-05, + "scaled_max_abs": 1.01373347e-05 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_241" + }, + "status": "pass", + "tap": "net.features.10", + "ungated_probes": { + "band_ratio": 0.145314043, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.3663044e-05, + "mean_abs": 3.26072866e-06, + "psnr_db": 116.91541, + "ref_absmax": 1.62840724, + "rel_max": 1.45314043e-05, + "scaled_max_abs": 1.45314043e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0977895667, + "index": 12, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.43458557e-05, + "mean_abs": 2.44803287e-06, + "psnr_db": 127.471406, + "ref_absmax": 4.53482485, + "rel_max": 9.77895667e-06, + "scaled_max_abs": 9.77895667e-06 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_267" + }, + "status": "pass", + "tap": "net.features.11", + "ungated_probes": { + "band_ratio": 0.177324706, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.99215317e-05, + "mean_abs": 3.7005928e-06, + "psnr_db": 116.810046, + "ref_absmax": 1.68738651, + "rel_max": 1.77324706e-05, + "scaled_max_abs": 1.77324706e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.104340095, + "index": 13, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000105381012, + "mean_abs": 1.53428941e-06, + "psnr_db": 129.472015, + "ref_absmax": 10.099762, + "rel_max": 1.04340095e-05, + "scaled_max_abs": 1.04340095e-05 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_3" + }, + "status": "pass", + "tap": "net.features.12", + "ungated_probes": { + "band_ratio": 0.127592483, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.20024109e-05, + "mean_abs": 1.71959395e-06, + "psnr_db": 125.85242, + "ref_absmax": 5.64315462, + "rel_max": 1.27592483e-05, + "scaled_max_abs": 1.27592483e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 2653.07115, + "index": 14, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.39177704, + "mean_abs": 0.0704919778, + "psnr_db": 34.4196955, + "ref_absmax": 5.24590921, + "rel_max": 0.265307115, + "scaled_max_abs": 0.265307115 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_x" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 2653.08303, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.495706677, + "mean_abs": 0.0633229177, + "psnr_db": 29.6127142, + "ref_absmax": 1.8684175, + "rel_max": 0.265308303, + "scaled_max_abs": 0.265308303 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 3688.68105, + "index": 15, + "metrics": { + "corr": 0.984435591, + "finite": true, + "max_abs": 8.99474049, + "mean_abs": 1.05998105, + "psnr_db": 27.5561557, + "ref_absmax": 24.3847065, + "rel_max": 0.368868105, + "scaled_max_abs": 0.368868105 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier", + "ungated_probes": { + "band_ratio": 2138.38983, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.989826612, + "finite": true, + "max_abs": 1.14494532, + "mean_abs": 0.351087088, + "psnr_db": 25.1513345, + "ref_absmax": 5.35424042, + "rel_max": 0.213838983, + "scaled_max_abs": 0.213838983 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.0583310433, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000105142593, + "mean_abs": 6.17089395e-06, + "psnr_db": 128.607455, + "ref_absmax": 18.0251522, + "rel_max": 5.83310433e-06, + "scaled_max_abs": 5.83310433e-06 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 16, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.08107465e-08, + "psnr_db": 164.245493, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.00112572895, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.38418579e-07, + "mean_abs": 4.66724468e-08, + "psnr_db": 130.436578, + "ref_absmax": 2.11790395, + "rel_max": 1.12572895e-07, + "scaled_max_abs": 1.12572895e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00361072193, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.10351562e-05, + "mean_abs": 3.23075084e-07, + "psnr_db": 165.187819, + "ref_absmax": 169.038651, + "rel_max": 3.61072193e-07, + "scaled_max_abs": 3.61072193e-07 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_7" + }, + "status": "pass", + "tap": "net.features.0", + "ungated_probes": { + "band_ratio": 0.00301177623, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-06, + "mean_abs": 3.57725008e-07, + "psnr_db": 154.82564, + "ref_absmax": 31.6648464, + "rel_max": 3.01177623e-07, + "scaled_max_abs": 3.01177623e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0153937664, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.87241554e-05, + "mean_abs": 1.68878429e-06, + "psnr_db": 146.318516, + "ref_absmax": 44.644146, + "rel_max": 1.53937664e-06, + "scaled_max_abs": 1.53937664e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_27" + }, + "status": "pass", + "tap": "net.features.1", + "ungated_probes": { + "band_ratio": 0.055234557, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.04715538e-05, + "mean_abs": 2.20760109e-06, + "psnr_db": 131.255547, + "ref_absmax": 7.32721615, + "rel_max": 5.5234557e-06, + "scaled_max_abs": 5.5234557e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0136285048, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.17232513e-05, + "mean_abs": 2.43601888e-06, + "psnr_db": 142.906833, + "ref_absmax": 30.6146946, + "rel_max": 1.36285048e-06, + "scaled_max_abs": 1.36285048e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_43" + }, + "status": "pass", + "tap": "net.features.2", + "ungated_probes": { + "band_ratio": 0.0861525833, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.71336937e-05, + "mean_abs": 3.88479582e-06, + "psnr_db": 122.05109, + "ref_absmax": 4.31022406, + "rel_max": 8.61525833e-06, + "scaled_max_abs": 8.61525833e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0355349915, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.29832458e-05, + "mean_abs": 4.135614e-06, + "psnr_db": 138.490513, + "ref_absmax": 26.1666718, + "rel_max": 3.55349915e-06, + "scaled_max_abs": 3.55349915e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59" + }, + "status": "pass", + "tap": "net.features.3", + "ungated_probes": { + "band_ratio": 0.253806711, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000170946121, + "mean_abs": 1.23293088e-05, + "psnr_db": 115.888091, + "ref_absmax": 6.73528767, + "rel_max": 2.53806711e-05, + "scaled_max_abs": 2.53806711e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0155269085, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.02791595e-05, + "mean_abs": 2.25469907e-06, + "psnr_db": 140.112892, + "ref_absmax": 19.5010872, + "rel_max": 1.55269085e-06, + "scaled_max_abs": 1.55269085e-06 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85" + }, + "status": "pass", + "tap": "net.features.4", + "ungated_probes": { + "band_ratio": 0.273572341, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.10623169e-05, + "mean_abs": 7.7233452e-06, + "psnr_db": 115.367168, + "ref_absmax": 2.96310353, + "rel_max": 2.73572341e-05, + "scaled_max_abs": 2.73572341e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0244400856, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.34329224e-05, + "mean_abs": 3.53038242e-06, + "psnr_db": 138.023101, + "ref_absmax": 30.0460987, + "rel_max": 2.44400856e-06, + "scaled_max_abs": 2.44400856e-06 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_111" + }, + "status": "pass", + "tap": "net.features.5", + "ungated_probes": { + "band_ratio": 0.579499244, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000144124031, + "mean_abs": 1.20314098e-05, + "psnr_db": 109.823176, + "ref_absmax": 2.48704433, + "rel_max": 5.79499244e-05, + "scaled_max_abs": 5.79499244e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0157817982, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000106811523, + "mean_abs": 5.2917976e-06, + "psnr_db": 144.026315, + "ref_absmax": 67.6801987, + "rel_max": 1.57817982e-06, + "scaled_max_abs": 1.57817982e-06 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_137" + }, + "status": "pass", + "tap": "net.features.6", + "ungated_probes": { + "band_ratio": 0.288906874, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000159561634, + "mean_abs": 1.65240438e-05, + "psnr_db": 113.622654, + "ref_absmax": 5.5229435, + "rel_max": 2.88906874e-05, + "scaled_max_abs": 2.88906874e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0573800132, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.91821289e-05, + "mean_abs": 3.26225295e-06, + "psnr_db": 136.104186, + "ref_absmax": 17.2851353, + "rel_max": 5.73800132e-06, + "scaled_max_abs": 5.73800132e-06 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_163" + }, + "status": "pass", + "tap": "net.features.7", + "ungated_probes": { + "band_ratio": 0.255181607, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.60555267e-05, + "mean_abs": 8.87299112e-06, + "psnr_db": 113.464954, + "ref_absmax": 2.98044705, + "rel_max": 2.55181607e-05, + "scaled_max_abs": 2.55181607e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0631587904, + "index": 9, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000105619431, + "mean_abs": 4.09940611e-06, + "psnr_db": 133.980045, + "ref_absmax": 16.7228394, + "rel_max": 6.31587904e-06, + "scaled_max_abs": 6.31587904e-06 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_189" + }, + "status": "pass", + "tap": "net.features.8", + "ungated_probes": { + "band_ratio": 0.16823046, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.8856945e-05, + "mean_abs": 1.07569462e-05, + "psnr_db": 115.278408, + "ref_absmax": 4.68743563, + "rel_max": 1.6823046e-05, + "scaled_max_abs": 1.6823046e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.110888285, + "index": 10, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.00258398e-05, + "mean_abs": 1.52256342e-06, + "psnr_db": 126.715513, + "ref_absmax": 2.7077558, + "rel_max": 1.10888285e-05, + "scaled_max_abs": 1.10888285e-05 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_215" + }, + "status": "pass", + "tap": "net.features.9", + "ungated_probes": { + "band_ratio": 0.141666556, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.72257423e-05, + "mean_abs": 2.83875855e-06, + "psnr_db": 115.59384, + "ref_absmax": 1.21593571, + "rel_max": 1.41666556e-05, + "scaled_max_abs": 1.41666556e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.126997167, + "index": 11, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.17232513e-05, + "mean_abs": 2.09874024e-06, + "psnr_db": 125.01337, + "ref_absmax": 3.28536868, + "rel_max": 1.26997167e-05, + "scaled_max_abs": 1.26997167e-05 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_241" + }, + "status": "pass", + "tap": "net.features.10", + "ungated_probes": { + "band_ratio": 0.160309592, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.78949738e-05, + "mean_abs": 3.17657952e-06, + "psnr_db": 117.605118, + "ref_absmax": 1.74006891, + "rel_max": 1.60309592e-05, + "scaled_max_abs": 1.60309592e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.129450857, + "index": 12, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.13866544e-05, + "mean_abs": 2.43962019e-06, + "psnr_db": 125.504408, + "ref_absmax": 3.9695878, + "rel_max": 1.29450857e-05, + "scaled_max_abs": 1.29450857e-05 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_267" + }, + "status": "pass", + "tap": "net.features.11", + "ungated_probes": { + "band_ratio": 0.138122641, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.51531601e-05, + "mean_abs": 3.72225032e-06, + "psnr_db": 117.31197, + "ref_absmax": 1.82107437, + "rel_max": 1.38122641e-05, + "scaled_max_abs": 1.38122641e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.170481486, + "index": 13, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000157833099, + "mean_abs": 1.41514613e-06, + "psnr_db": 129.031824, + "ref_absmax": 9.25807858, + "rel_max": 1.70481486e-05, + "scaled_max_abs": 1.70481486e-05 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_3" + }, + "status": "pass", + "tap": "net.features.12", + "ungated_probes": { + "band_ratio": 0.114366795, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.05718994e-05, + "mean_abs": 1.69050481e-06, + "psnr_db": 126.736045, + "ref_absmax": 6.17066336, + "rel_max": 1.14366795e-05, + "scaled_max_abs": 1.14366795e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0590360646, + "index": 14, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.06367874e-05, + "mean_abs": 7.14702252e-07, + "psnr_db": 130.106476, + "ref_absmax": 5.18950367, + "rel_max": 5.90360646e-06, + "scaled_max_abs": 5.90360646e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_x" + }, + "status": "pass", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 0.0908301293, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.78813934e-05, + "mean_abs": 1.0778381e-06, + "psnr_db": 122.587847, + "ref_absmax": 1.96866322, + "rel_max": 9.08301293e-06, + "scaled_max_abs": 9.08301293e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0583310433, + "index": 15, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000105142593, + "mean_abs": 6.17033079e-06, + "psnr_db": 128.377023, + "ref_absmax": 18.0251522, + "rel_max": 5.83310433e-06, + "scaled_max_abs": 5.83310433e-06 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "pass", + "tap": "net.classifier", + "ungated_probes": { + "band_ratio": 0.0593634551, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.0875206e-05, + "mean_abs": 6.17483607e-06, + "psnr_db": 119.917565, + "ref_absmax": 5.20104599, + "rel_max": 5.93634551e-06, + "scaled_max_abs": 5.93634551e-06 + }, + "n_probes": 4 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp32", + "id": "mobilenet_v3_small__baked_shape__coreml_fp32", + "model": "mobilenet_v3_small", + "path": "coreml", + "variant": "baked_shape" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/mobilenet_v3_small__baked_shape__litert_fp16.json b/bench/verdicts_calibrated4/mobilenet_v3_small__baked_shape__litert_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..5660e3f63c6037c81e9507aea149da6aedf676a5 --- /dev/null +++ b/bench/verdicts_calibrated4/mobilenet_v3_small__baked_shape__litert_fp16.json @@ -0,0 +1,1323 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "baseline": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "faithful_output_rel_max": 0.0347403663, + "output_band": 0.0694807327, + "source": { + "bundle": "bundles/mobilenet_v3_small__clean__litert_fp16.json", + "case": "mobilenet_v3_small__clean__litert_fp16", + "digests": { + "192": { + "converted": "c1e0d3f6eacceb0f07eea7aaf062f75a642b665785bf323c4ed798c4c424167a", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "e68287c6bf447d1c5af1840f2957e8f25a438b576d35374a5a1e6bfa57051ad5", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + } + } + }, + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 0.000819612491, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000147819519, + "mean_abs": 7.12326743e-06, + "psnr_db": 125.094877, + "ref_absmax": 18.0352936, + "rel_max": 8.19612491e-06, + "scaled_max_abs": 8.19612491e-06 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 117, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 1, + "n_ops_total": 169, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "margin": { + "clear_margin": true, + "failing_shape": 192, + "locations_over_margin": [], + "margin": 0.707106781, + "n_locations": 17, + "nominal_output_band_ratio": 0.390894098, + "nominal_output_judgeable": true, + "rule": "C4-2 (b1)", + "scope": "every gated location of the nominal shape", + "worst_location": { + "band_ratio": 0.5, + "index": 9, + "location": "net.features.8" + } + }, + "status": "flag" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/zoo.BakedMeanPool_avgpool;1", + "basis": "nominal shape 224 inside band with a clear margin at every gated location (worst net.features.8 at ratio 0.5 <= 0.7071); shape 192 over band", + "index": 14, + "neighbourhood": [ + { + "band_ratio": 0.40802078, + "index": 13, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_12/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "pass", + "tap": "net.features.12" + }, + { + "band_ratio": 446.459114, + "index": 14, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/zoo.BakedMeanPool_avgpool;1" + }, + "status": "fail", + "tap": "net.avgpool" + }, + { + "band_ratio": 5.19635612, + "index": 15, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.classifier" + } + ], + "shape": 192, + "tap": "net.avgpool" + }, + "fp16_floor": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "baseline": { + "bundle": "bundles/mobilenet_v3_small__clean__litert_fp16.json", + "case": "mobilenet_v3_small__clean__litert_fp16", + "digests": { + "192": { + "converted": "c1e0d3f6eacceb0f07eea7aaf062f75a642b665785bf323c4ed798c4c424167a", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "e68287c6bf447d1c5af1840f2957e8f25a438b576d35374a5a1e6bfa57051ad5", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + } + }, + "envelopes_gate": true, + "faithful_output_rel_max": 0.0347403663, + "faithful_tap_rel_max": { + "net.avgpool": 0.0392971952, + "net.classifier": 0.0347403663, + "net.features.0": 0.000915032087, + "net.features.1": 0.000755872648, + "net.features.10": 0.0518188833, + "net.features.11": 0.076462924, + "net.features.12": 0.0775258635, + "net.features.2": 0.0015302635, + "net.features.3": 0.00279809812, + "net.features.4": 0.00289036457, + "net.features.5": 0.00403152459, + "net.features.6": 0.00394882259, + "net.features.7": 0.0169154072, + "net.features.8": 0.0238189477, + "net.features.9": 0.0426980192, + "normalize": 8.27203959e-08 + }, + "floor": 0.01, + "k": 2.0, + "output_band": 0.0694807327, + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used", + "tap_envelopes": { + "net.avgpool": 0.0785943904, + "net.classifier": 0.0694807327, + "net.features.0": 0.01, + "net.features.1": 0.01, + "net.features.10": 0.103637767, + "net.features.11": 0.152925848, + "net.features.12": 0.155051727, + "net.features.2": 0.01, + "net.features.3": 0.01, + "net.features.4": 0.01, + "net.features.5": 0.01, + "net.features.6": 0.01, + "net.features.7": 0.0338308144, + "net.features.8": 0.0476378955, + "net.features.9": 0.0853960383, + "normalize": 0.01 + } + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "af13a32c21d61248ea99e7f2155723db65634ef9e8d00d0f56926ea5620a130e", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "e68287c6bf447d1c5af1840f2957e8f25a438b576d35374a5a1e6bfa57051ad5", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D6", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.6875, + "band_limit": 0.0694807327, + "band_ratio": 5.19635612, + "metrics": { + "corr": 0.982748097, + "finite": true, + "max_abs": 8.80401611, + "mean_abs": 0.966449069, + "psnr_db": 28.1447368, + "ref_absmax": 24.3847065, + "rel_max": 0.36104663, + "scaled_max_abs": 0.36104663 + }, + "per_op_band_ratio": 36.104663, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 14, + "n_judged": 16, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 8.27203959e-06, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.26638033e-08, + "psnr_db": 163.904618, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "per_op_band_ratio": 8.27203959e-06, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0915032087, + "index": 1, + "metrics": { + "corr": 0.999999786, + "finite": true, + "max_abs": 0.173885822, + "mean_abs": 0.000502268084, + "psnr_db": 96.9119524, + "ref_absmax": 190.032486, + "rel_max": 0.000915032087, + "scaled_max_abs": 0.000915032087 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_0/torch.nn.modules.activation.Hardswish_2;" + }, + "per_op_band_ratio": 0.0915032087, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0727773511, + "index": 2, + "metrics": { + "corr": 0.999999501, + "finite": true, + "max_abs": 0.03307724, + "mean_abs": 0.00172972956, + "psnr_db": 89.9446481, + "ref_absmax": 45.4499092, + "rel_max": 0.000727773511, + "scaled_max_abs": 0.000727773511 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_1/torch.nn.modules.container.Sequential_block/t" + }, + "per_op_band_ratio": 0.0727773511, + "status": "pass", + "tap": "net.features.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.15302635, + "index": 3, + "metrics": { + "corr": 0.99999802, + "finite": true, + "max_abs": 0.0396288037, + "mean_abs": 0.00251701601, + "psnr_db": 80.5863503, + "ref_absmax": 25.896719, + "rel_max": 0.0015302635, + "scaled_max_abs": 0.0015302635 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_2/torch.nn.modules.container.Sequential_block/t" + }, + "per_op_band_ratio": 0.15302635, + "status": "pass", + "tap": "net.features.2" + }, + { + "band_limit": 0.01, + "band_ratio": 0.244577705, + "index": 4, + "metrics": { + "corr": 0.999994624, + "finite": true, + "max_abs": 0.0628845692, + "mean_abs": 0.00432135067, + "psnr_db": 76.8433382, + "ref_absmax": 25.7114887, + "rel_max": 0.00244577705, + "scaled_max_abs": 0.00244577705 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_3;" + }, + "per_op_band_ratio": 0.244577705, + "status": "pass", + "tap": "net.features.3" + }, + { + "band_limit": 0.01, + "band_ratio": 0.273230174, + "index": 5, + "metrics": { + "corr": 0.999981879, + "finite": true, + "max_abs": 0.0467441082, + "mean_abs": 0.0038035588, + "psnr_db": 72.274713, + "ref_absmax": 17.1079597, + "rel_max": 0.00273230174, + "scaled_max_abs": 0.00273230174 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_4/torch.nn.modules.container.Sequential_block/t" + }, + "per_op_band_ratio": 0.273230174, + "status": "pass", + "tap": "net.features.4" + }, + { + "band_limit": 0.01, + "band_ratio": 0.403152459, + "index": 6, + "metrics": { + "corr": 0.999956004, + "finite": true, + "max_abs": 0.0899780989, + "mean_abs": 0.00600733947, + "psnr_db": 69.8085829, + "ref_absmax": 22.3186283, + "rel_max": 0.00403152459, + "scaled_max_abs": 0.00403152459 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_5;" + }, + "per_op_band_ratio": 0.403152459, + "status": "pass", + "tap": "net.features.5" + }, + { + "band_limit": 0.01, + "band_ratio": 0.394882259, + "index": 7, + "metrics": { + "corr": 0.999974444, + "finite": true, + "max_abs": 0.247867882, + "mean_abs": 0.0121702154, + "psnr_db": 73.0406073, + "ref_absmax": 62.7700729, + "rel_max": 0.00394882259, + "scaled_max_abs": 0.00394882259 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_6;" + }, + "per_op_band_ratio": 0.394882259, + "status": "pass", + "tap": "net.features.6" + }, + { + "band_limit": 0.0338308144, + "band_ratio": 0.420242827, + "index": 8, + "metrics": { + "corr": 0.999941634, + "finite": true, + "max_abs": 0.294072151, + "mean_abs": 0.00577465295, + "psnr_db": 69.3943408, + "ref_absmax": 20.6843147, + "rel_max": 0.0142171571, + "scaled_max_abs": 0.0142171571 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_7/torch.nn.modules.container.Sequential_block/t" + }, + "per_op_band_ratio": 1.42171571, + "status": "pass", + "tap": "net.features.7" + }, + { + "band_limit": 0.0476378955, + "band_ratio": 0.365963706, + "index": 9, + "metrics": { + "corr": 0.999916718, + "finite": true, + "max_abs": 0.339155436, + "mean_abs": 0.00756068161, + "psnr_db": 66.8769751, + "ref_absmax": 19.453968, + "rel_max": 0.0174337408, + "scaled_max_abs": 0.0174337408 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_8;" + }, + "per_op_band_ratio": 1.74337408, + "status": "pass", + "tap": "net.features.8" + }, + { + "band_limit": 0.0853960383, + "band_ratio": 0.5, + "index": 10, + "metrics": { + "corr": 0.999817604, + "finite": true, + "max_abs": 0.149215758, + "mean_abs": 0.00381537326, + "psnr_db": 57.7094961, + "ref_absmax": 3.49467635, + "rel_max": 0.0426980192, + "scaled_max_abs": 0.0426980192 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_9/torch.nn.modules.container.Sequential_block/t" + }, + "per_op_band_ratio": 4.26980192, + "status": "pass", + "tap": "net.features.9" + }, + { + "band_limit": 0.103637767, + "band_ratio": 0.5, + "index": 11, + "metrics": { + "corr": 0.9998211, + "finite": true, + "max_abs": 0.193776667, + "mean_abs": 0.00464179122, + "psnr_db": 56.9399931, + "ref_absmax": 3.73949909, + "rel_max": 0.0518188833, + "scaled_max_abs": 0.0518188833 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_10;" + }, + "per_op_band_ratio": 5.18188833, + "status": "pass", + "tap": "net.features.10" + }, + { + "band_limit": 0.152925848, + "band_ratio": 0.5, + "index": 12, + "metrics": { + "corr": 0.999749585, + "finite": true, + "max_abs": 0.346745968, + "mean_abs": 0.00595789127, + "psnr_db": 55.8434454, + "ref_absmax": 4.53482485, + "rel_max": 0.076462924, + "scaled_max_abs": 0.076462924 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_11;" + }, + "per_op_band_ratio": 7.6462924, + "status": "pass", + "tap": "net.features.11" + }, + { + "band_limit": 0.155051727, + "band_ratio": 0.40802078, + "index": 13, + "metrics": { + "corr": 0.999553138, + "finite": true, + "max_abs": 0.638954639, + "mean_abs": 0.00377065967, + "psnr_db": 57.0997046, + "ref_absmax": 10.099762, + "rel_max": 0.0632643266, + "scaled_max_abs": 0.0632643266 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_12/torch.nn.modules.activation.Hardswish_2;" + }, + "per_op_band_ratio": 6.32643266, + "status": "pass", + "tap": "net.features.12" + }, + { + "band_limit": 0.0785943904, + "band_ratio": 446.459114, + "index": 14, + "metrics": { + "corr": 0.999735141, + "finite": true, + "max_abs": 184.074663, + "mean_abs": 9.18610489, + "psnr_db": -7.68953171, + "ref_absmax": 5.24590921, + "rel_max": 35.0891819, + "scaled_max_abs": 35.0891819 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/zoo.BakedMeanPool_avgpool;1" + }, + "per_op_band_ratio": 3508.91819, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.0694807327, + "band_ratio": 5.19635612, + "index": 15, + "metrics": { + "corr": 0.982748097, + "finite": true, + "max_abs": 8.80401611, + "mean_abs": 0.966449069, + "psnr_db": 28.1447368, + "ref_absmax": 24.3847065, + "rel_max": 0.36104663, + "scaled_max_abs": 0.36104663 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "per_op_band_ratio": 36.104663, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.90625, + "band_limit": 0.0694807327, + "band_ratio": 0.390894098, + "metrics": { + "corr": 0.999929741, + "finite": true, + "max_abs": 0.489556074, + "mean_abs": 0.0129197023, + "psnr_db": 59.4536219, + "ref_absmax": 18.0251522, + "rel_max": 0.0271596083, + "scaled_max_abs": 0.0271596083 + }, + "per_op_band_ratio": 2.71596083, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 16, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 8.27203959e-06, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.2793459e-08, + "psnr_db": 164.013874, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "per_op_band_ratio": 8.27203959e-06, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0868202319, + "index": 1, + "metrics": { + "corr": 0.999999767, + "finite": true, + "max_abs": 0.146759748, + "mean_abs": 0.000503267604, + "psnr_db": 96.0452891, + "ref_absmax": 169.038651, + "rel_max": 0.000868202319, + "scaled_max_abs": 0.000868202319 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_0/torch.nn.modules.activation.Hardswish_2;" + }, + "per_op_band_ratio": 0.0868202319, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0755872648, + "index": 2, + "metrics": { + "corr": 0.999999435, + "finite": true, + "max_abs": 0.0337452888, + "mean_abs": 0.00172548561, + "psnr_db": 89.4320948, + "ref_absmax": 44.644146, + "rel_max": 0.000755872648, + "scaled_max_abs": 0.000755872648 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_1/torch.nn.modules.container.Sequential_block/t" + }, + "per_op_band_ratio": 0.0755872648, + "status": "pass", + "tap": "net.features.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.127885996, + "index": 3, + "metrics": { + "corr": 0.999997629, + "finite": true, + "max_abs": 0.039151907, + "mean_abs": 0.00258047824, + "psnr_db": 81.5125813, + "ref_absmax": 30.6146946, + "rel_max": 0.00127885996, + "scaled_max_abs": 0.00127885996 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_2/torch.nn.modules.container.Sequential_block/t" + }, + "per_op_band_ratio": 0.127885996, + "status": "pass", + "tap": "net.features.2" + }, + { + "band_limit": 0.01, + "band_ratio": 0.279809812, + "index": 4, + "metrics": { + "corr": 0.999994277, + "finite": true, + "max_abs": 0.0732169151, + "mean_abs": 0.00442955329, + "psnr_db": 76.6613702, + "ref_absmax": 26.1666718, + "rel_max": 0.00279809812, + "scaled_max_abs": 0.00279809812 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_3;" + }, + "per_op_band_ratio": 0.279809812, + "status": "pass", + "tap": "net.features.3" + }, + { + "band_limit": 0.01, + "band_ratio": 0.289036457, + "index": 5, + "metrics": { + "corr": 0.999980992, + "finite": true, + "max_abs": 0.0563652515, + "mean_abs": 0.00400878569, + "psnr_db": 72.9879694, + "ref_absmax": 19.5010872, + "rel_max": 0.00289036457, + "scaled_max_abs": 0.00289036457 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_4/torch.nn.modules.container.Sequential_block/t" + }, + "per_op_band_ratio": 0.289036457, + "status": "pass", + "tap": "net.features.4" + }, + { + "band_limit": 0.01, + "band_ratio": 0.310832262, + "index": 6, + "metrics": { + "corr": 0.999956355, + "finite": true, + "max_abs": 0.0933929682, + "mean_abs": 0.00625826495, + "psnr_db": 71.6653247, + "ref_absmax": 30.0460987, + "rel_max": 0.00310832262, + "scaled_max_abs": 0.00310832262 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_5;" + }, + "per_op_band_ratio": 0.310832262, + "status": "pass", + "tap": "net.features.5" + }, + { + "band_limit": 0.01, + "band_ratio": 0.292023152, + "index": 7, + "metrics": { + "corr": 0.999987205, + "finite": true, + "max_abs": 0.19764185, + "mean_abs": 0.00882840116, + "psnr_db": 77.7884462, + "ref_absmax": 67.6801987, + "rel_max": 0.00292023152, + "scaled_max_abs": 0.00292023152 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_6;" + }, + "per_op_band_ratio": 0.292023152, + "status": "pass", + "tap": "net.features.6" + }, + { + "band_limit": 0.0338308144, + "band_ratio": 0.5, + "index": 8, + "metrics": { + "corr": 0.999942873, + "finite": true, + "max_abs": 0.292385101, + "mean_abs": 0.00539707911, + "psnr_db": 68.9160235, + "ref_absmax": 17.2851353, + "rel_max": 0.0169154072, + "scaled_max_abs": 0.0169154072 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_7/torch.nn.modules.container.Sequential_block/t" + }, + "per_op_band_ratio": 1.69154072, + "status": "pass", + "tap": "net.features.7" + }, + { + "band_limit": 0.0476378955, + "band_ratio": 0.5, + "index": 9, + "metrics": { + "corr": 0.999929405, + "finite": true, + "max_abs": 0.398320436, + "mean_abs": 0.00659560857, + "psnr_db": 67.0793221, + "ref_absmax": 16.7228394, + "rel_max": 0.0238189477, + "scaled_max_abs": 0.0238189477 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_8;" + }, + "per_op_band_ratio": 2.38189477, + "status": "pass", + "tap": "net.features.8" + }, + { + "band_limit": 0.0853960383, + "band_ratio": 0.452316675, + "index": 10, + "metrics": { + "corr": 0.99987447, + "finite": true, + "max_abs": 0.104589917, + "mean_abs": 0.0031962443, + "psnr_db": 57.4378382, + "ref_absmax": 2.7077558, + "rel_max": 0.0386260521, + "scaled_max_abs": 0.0386260521 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_9/torch.nn.modules.container.Sequential_block/t" + }, + "per_op_band_ratio": 3.86260521, + "status": "pass", + "tap": "net.features.9" + }, + { + "band_limit": 0.103637767, + "band_ratio": 0.411064243, + "index": 11, + "metrics": { + "corr": 0.999873544, + "finite": true, + "max_abs": 0.139962554, + "mean_abs": 0.00412300785, + "psnr_db": 56.8254194, + "ref_absmax": 3.28536868, + "rel_max": 0.0426017801, + "scaled_max_abs": 0.0426017801 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_10;" + }, + "per_op_band_ratio": 4.26017801, + "status": "pass", + "tap": "net.features.10" + }, + { + "band_limit": 0.152925848, + "band_ratio": 0.355596578, + "index": 12, + "metrics": { + "corr": 0.999847259, + "finite": true, + "max_abs": 0.215865821, + "mean_abs": 0.00501177022, + "psnr_db": 56.3378385, + "ref_absmax": 3.9695878, + "rel_max": 0.0543799083, + "scaled_max_abs": 0.0543799083 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_11;" + }, + "per_op_band_ratio": 5.43799083, + "status": "pass", + "tap": "net.features.11" + }, + { + "band_limit": 0.155051727, + "band_ratio": 0.5, + "index": 13, + "metrics": { + "corr": 0.999759024, + "finite": true, + "max_abs": 0.717740536, + "mean_abs": 0.00289672989, + "psnr_db": 59.4037277, + "ref_absmax": 9.25807858, + "rel_max": 0.0775258635, + "scaled_max_abs": 0.0775258635 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_12/torch.nn.modules.activation.Hardswish_2;" + }, + "per_op_band_ratio": 7.75258635, + "status": "pass", + "tap": "net.features.12" + }, + { + "band_limit": 0.0785943904, + "band_ratio": 0.340164794, + "index": 14, + "metrics": { + "corr": 0.999878283, + "finite": true, + "max_abs": 0.138741612, + "mean_abs": 0.001866989, + "psnr_db": 59.520476, + "ref_absmax": 5.18950367, + "rel_max": 0.0267350447, + "scaled_max_abs": 0.0267350447 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/zoo.BakedMeanPool_avgpool;;zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvisio" + }, + "per_op_band_ratio": 2.67350447, + "status": "pass", + "tap": "net.avgpool" + }, + { + "band_limit": 0.0694807327, + "band_ratio": 0.390894098, + "index": 15, + "metrics": { + "corr": 0.999929741, + "finite": true, + "max_abs": 0.489556074, + "mean_abs": 0.0129197023, + "psnr_db": 59.4536219, + "ref_absmax": 18.0251522, + "rel_max": 0.0271596083, + "scaled_max_abs": 0.0271596083 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "per_op_band_ratio": 2.71596083, + "status": "pass", + "tap": "net.classifier" + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp16", + "id": "mobilenet_v3_small__baked_shape__litert_fp16", + "model": "mobilenet_v3_small", + "path": "litert", + "variant": "baked_shape" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/mobilenet_v3_small__baked_shape__litert_fp32.json b/bench/verdicts_calibrated4/mobilenet_v3_small__baked_shape__litert_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..78988948f1fa9a0a5d52024ebab406f86a98ee70 --- /dev/null +++ b/bench/verdicts_calibrated4/mobilenet_v3_small__baked_shape__litert_fp32.json @@ -0,0 +1,1728 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 0.0424586551, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.65323639e-05, + "mean_abs": 5.22898112e-06, + "psnr_db": 129.391437, + "ref_absmax": 18.0251503, + "rel_max": 4.24586551e-06, + "scaled_max_abs": 4.24586551e-06 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 117, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 1, + "n_ops_total": 115, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "margin": { + "clear_margin": true, + "failing_shape": 192, + "locations_over_margin": [], + "margin": 0.707106781, + "n_locations": 17, + "nominal_output_band_ratio": 0.0833300619, + "nominal_output_judgeable": true, + "rule": "C4-2 (b1)", + "scope": "every gated location of the nominal shape", + "worst_location": { + "band_ratio": 0.210784133, + "index": 13, + "location": "net.features.12" + } + }, + "status": "flag" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/zoo.BakedMeanPool_avgpool;1", + "basis": "nominal shape 224 inside band with a clear margin at every gated location (worst net.features.12 at ratio 0.211 <= 0.7071); shape 192 over band", + "index": 14, + "neighbourhood": [ + { + "band_ratio": 0.0878156453, + "index": 13, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_12/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "pass", + "tap": "net.features.12" + }, + { + "band_ratio": 349999.546, + "index": 14, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/zoo.BakedMeanPool_avgpool;1" + }, + "status": "fail", + "tap": "net.avgpool" + }, + { + "band_ratio": 3688.66306, + "index": 15, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.classifier" + } + ], + "shape": 192, + "tap": "net.avgpool" + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "c49645f449dd626885d3c2306066f8499df363b848ed59ca73d1146873382e70", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "c36975cfb849c7ada8d16f7d9092d26f036c91003ab72083b1229da6c2050418", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "fp32 per-tap band on near-zero probes", + "reason": "C3-2: per-tap fp32 checks gate without the near_zero probes; they are measured and reported per tap ('ungated_probes'); the output gates on all probes. C4-1: when the output has failed and no gated tap fails, they localise the first divergence (earliest tap over band on all probes)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D6", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.59375, + "band_ratio": 3688.66306, + "metrics": { + "corr": 0.982247175, + "finite": true, + "max_abs": 8.99469662, + "mean_abs": 0.971368361, + "psnr_db": 28.0806227, + "ref_absmax": 24.3847065, + "rel_max": 0.368866306, + "scaled_max_abs": 0.368866306 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 14, + "n_judged": 16, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.06644368e-08, + "psnr_db": 164.113247, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.00112572895, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.38418579e-07, + "mean_abs": 4.66593688e-08, + "psnr_db": 130.397207, + "ref_absmax": 2.11790395, + "rel_max": 1.12572895e-07, + "scaled_max_abs": 1.12572895e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00421552358, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.01086426e-05, + "mean_abs": 2.23370674e-07, + "psnr_db": 165.657432, + "ref_absmax": 190.032486, + "rel_max": 4.21552358e-07, + "scaled_max_abs": 4.21552358e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_0/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "pass", + "tap": "net.features.0", + "ungated_probes": { + "band_ratio": 0.00361820398, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.14440918e-05, + "mean_abs": 2.56149109e-07, + "psnr_db": 155.713417, + "ref_absmax": 31.6292057, + "rel_max": 3.61820398e-07, + "scaled_max_abs": 3.61820398e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00902267932, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.10079956e-05, + "mean_abs": 9.67378308e-07, + "psnr_db": 153.228025, + "ref_absmax": 45.4499092, + "rel_max": 9.02267932e-07, + "scaled_max_abs": 9.02267932e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_1/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.1", + "ungated_probes": { + "band_ratio": 0.025039569, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.83582306e-05, + "mean_abs": 1.29241986e-06, + "psnr_db": 136.937056, + "ref_absmax": 7.33168793, + "rel_max": 2.5039569e-06, + "scaled_max_abs": 2.5039569e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0102192337, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.64644623e-05, + "mean_abs": 1.372611e-06, + "psnr_db": 146.859391, + "ref_absmax": 25.896719, + "rel_max": 1.02192337e-06, + "scaled_max_abs": 1.02192337e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_2/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.2", + "ungated_probes": { + "band_ratio": 0.0581152912, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.50339508e-05, + "mean_abs": 2.65888499e-06, + "psnr_db": 125.664736, + "ref_absmax": 4.30763578, + "rel_max": 5.81152912e-06, + "scaled_max_abs": 5.81152912e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0246657604, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.3419342e-05, + "mean_abs": 2.49627755e-06, + "psnr_db": 142.510585, + "ref_absmax": 25.7114887, + "rel_max": 2.46657604e-06, + "scaled_max_abs": 2.46657604e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_3;" + }, + "status": "pass", + "tap": "net.features.3", + "ungated_probes": { + "band_ratio": 0.122535583, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.24928284e-05, + "mean_abs": 7.32266306e-06, + "psnr_db": 120.811448, + "ref_absmax": 6.73215294, + "rel_max": 1.22535583e-05, + "scaled_max_abs": 1.22535583e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0202770545, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.46899033e-05, + "mean_abs": 1.53729991e-06, + "psnr_db": 141.607714, + "ref_absmax": 17.1079597, + "rel_max": 2.02770545e-06, + "scaled_max_abs": 2.02770545e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_4/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.4", + "ungated_probes": { + "band_ratio": 0.136702185, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.00543213e-05, + "mean_abs": 5.31280869e-06, + "psnr_db": 118.349861, + "ref_absmax": 2.93004251, + "rel_max": 1.36702185e-05, + "scaled_max_abs": 1.36702185e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0216320473, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.82797623e-05, + "mean_abs": 2.23640806e-06, + "psnr_db": 139.894542, + "ref_absmax": 22.3186283, + "rel_max": 2.16320473e-06, + "scaled_max_abs": 2.16320473e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_5;" + }, + "status": "pass", + "tap": "net.features.5", + "ungated_probes": { + "band_ratio": 0.196906272, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.67436218e-05, + "mean_abs": 8.17938514e-06, + "psnr_db": 114.200378, + "ref_absmax": 2.88175797, + "rel_max": 1.96906272e-05, + "scaled_max_abs": 1.96906272e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0144334801, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.05990601e-05, + "mean_abs": 4.67391164e-06, + "psnr_db": 142.305302, + "ref_absmax": 62.7700729, + "rel_max": 1.44334801e-06, + "scaled_max_abs": 1.44334801e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_6;" + }, + "status": "pass", + "tap": "net.features.6", + "ungated_probes": { + "band_ratio": 0.134252059, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.34329224e-05, + "mean_abs": 1.08538985e-05, + "psnr_db": 117.608597, + "ref_absmax": 5.46977997, + "rel_max": 1.34252059e-05, + "scaled_max_abs": 1.34252059e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0253583878, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.24520874e-05, + "mean_abs": 2.47024943e-06, + "psnr_db": 139.355167, + "ref_absmax": 20.6843147, + "rel_max": 2.53583878e-06, + "scaled_max_abs": 2.53583878e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_7/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.7", + "ungated_probes": { + "band_ratio": 0.122311825, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.54349613e-05, + "mean_abs": 5.22179201e-06, + "psnr_db": 117.477156, + "ref_absmax": 2.89710021, + "rel_max": 1.22311825e-05, + "scaled_max_abs": 1.22311825e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0509829813, + "index": 9, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.91821289e-05, + "mean_abs": 3.40678931e-06, + "psnr_db": 135.508004, + "ref_absmax": 19.453968, + "rel_max": 5.09829813e-06, + "scaled_max_abs": 5.09829813e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_8;" + }, + "status": "pass", + "tap": "net.features.8", + "ungated_probes": { + "band_ratio": 0.0974104078, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.11272049e-05, + "mean_abs": 6.33489765e-06, + "psnr_db": 119.369422, + "ref_absmax": 4.22205448, + "rel_max": 9.74104078e-06, + "scaled_max_abs": 9.74104078e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0743634675, + "index": 10, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.59876251e-05, + "mean_abs": 1.4874841e-06, + "psnr_db": 127.724578, + "ref_absmax": 3.49467635, + "rel_max": 7.43634675e-06, + "scaled_max_abs": 7.43634675e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_9/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.9", + "ungated_probes": { + "band_ratio": 0.0965754058, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.13844872e-05, + "mean_abs": 1.82075598e-06, + "psnr_db": 119.080165, + "ref_absmax": 1.17881846, + "rel_max": 9.65754058e-06, + "scaled_max_abs": 9.65754058e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0946788811, + "index": 11, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.5405159e-05, + "mean_abs": 1.91990474e-06, + "psnr_db": 126.7358, + "ref_absmax": 3.73949909, + "rel_max": 9.46788811e-06, + "scaled_max_abs": 9.46788811e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_10;" + }, + "status": "pass", + "tap": "net.features.10", + "ungated_probes": { + "band_ratio": 0.0900434624, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.46627426e-05, + "mean_abs": 2.16530114e-06, + "psnr_db": 120.449754, + "ref_absmax": 1.62840724, + "rel_max": 9.00434624e-06, + "scaled_max_abs": 9.00434624e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0855001521, + "index": 12, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.87728214e-05, + "mean_abs": 2.38909974e-06, + "psnr_db": 126.721429, + "ref_absmax": 4.53482485, + "rel_max": 8.55001521e-06, + "scaled_max_abs": 8.55001521e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_11;" + }, + "status": "pass", + "tap": "net.features.11", + "ungated_probes": { + "band_ratio": 0.101732102, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.71661377e-05, + "mean_abs": 2.45436712e-06, + "psnr_db": 120.395457, + "ref_absmax": 1.68738651, + "rel_max": 1.01732102e-05, + "scaled_max_abs": 1.01732102e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0878156453, + "index": 13, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.86917114e-05, + "mean_abs": 1.47052641e-06, + "psnr_db": 129.026003, + "ref_absmax": 10.099762, + "rel_max": 8.78156453e-06, + "scaled_max_abs": 8.78156453e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_12/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "pass", + "tap": "net.features.12", + "ungated_probes": { + "band_ratio": 0.0811183997, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.57763672e-05, + "mean_abs": 1.15677251e-06, + "psnr_db": 129.180149, + "ref_absmax": 5.64315462, + "rel_max": 8.11183997e-06, + "scaled_max_abs": 8.11183997e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 349999.546, + "index": 14, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 183.606584, + "mean_abs": 9.29952215, + "psnr_db": -7.98672611, + "ref_absmax": 5.24590921, + "rel_max": 34.9999546, + "scaled_max_abs": 34.9999546 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/zoo.BakedMeanPool_avgpool;1" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 349999.27, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 65.3944762, + "mean_abs": 8.35374454, + "psnr_db": -12.79368, + "ref_absmax": 1.8684175, + "rel_max": 34.999927, + "scaled_max_abs": 34.999927 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 3688.66306, + "index": 15, + "metrics": { + "corr": 0.98443563, + "finite": true, + "max_abs": 8.99469662, + "mean_abs": 1.05997993, + "psnr_db": 27.5561632, + "ref_absmax": 24.3847065, + "rel_max": 0.368866306, + "scaled_max_abs": 0.368866306 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.classifier", + "ungated_probes": { + "band_ratio": 2138.38148, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.989826583, + "finite": true, + "max_abs": 1.14494085, + "mean_abs": 0.351087407, + "psnr_db": 25.1513274, + "ref_absmax": 5.35424042, + "rel_max": 0.213838148, + "scaled_max_abs": 0.213838148 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.0833300619, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000150203705, + "mean_abs": 6.17952022e-06, + "psnr_db": 127.925342, + "ref_absmax": 18.0251522, + "rel_max": 8.33300619e-06, + "scaled_max_abs": 8.33300619e-06 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 16, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.08107465e-08, + "psnr_db": 164.245493, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.00112572895, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.38418579e-07, + "mean_abs": 4.66724468e-08, + "psnr_db": 130.436578, + "ref_absmax": 2.11790395, + "rel_max": 1.12572895e-07, + "scaled_max_abs": 1.12572895e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00530324784, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.96453857e-05, + "mean_abs": 2.21019027e-07, + "psnr_db": 164.991666, + "ref_absmax": 169.038651, + "rel_max": 5.30324784e-07, + "scaled_max_abs": 5.30324784e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_0/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "pass", + "tap": "net.features.0", + "ungated_probes": { + "band_ratio": 0.00301177623, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-06, + "mean_abs": 2.5584388e-07, + "psnr_db": 155.735357, + "ref_absmax": 31.6648464, + "rel_max": 3.01177623e-07, + "scaled_max_abs": 3.01177623e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00747659079, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.33786011e-05, + "mean_abs": 9.63280999e-07, + "psnr_db": 152.706072, + "ref_absmax": 44.644146, + "rel_max": 7.47659079e-07, + "scaled_max_abs": 7.47659079e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_1/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.1", + "ungated_probes": { + "band_ratio": 0.0260310136, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.90734863e-05, + "mean_abs": 1.29547133e-06, + "psnr_db": 136.91535, + "ref_absmax": 7.32721615, + "rel_max": 2.60310136e-06, + "scaled_max_abs": 2.60310136e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0121488386, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.71932983e-05, + "mean_abs": 1.43917319e-06, + "psnr_db": 147.492171, + "ref_absmax": 30.6146946, + "rel_max": 1.21488386e-06, + "scaled_max_abs": 1.21488386e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_2/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.2", + "ungated_probes": { + "band_ratio": 0.0467408879, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.01463699e-05, + "mean_abs": 2.6522391e-06, + "psnr_db": 125.699938, + "ref_absmax": 4.31022406, + "rel_max": 4.67408879e-06, + "scaled_max_abs": 4.67408879e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0325737422, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.5234642e-05, + "mean_abs": 2.62922129e-06, + "psnr_db": 141.896281, + "ref_absmax": 26.1666718, + "rel_max": 3.25737422e-06, + "scaled_max_abs": 3.25737422e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_3;" + }, + "status": "pass", + "tap": "net.features.3", + "ungated_probes": { + "band_ratio": 0.126018395, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.48770142e-05, + "mean_abs": 7.31913275e-06, + "psnr_db": 120.856015, + "ref_absmax": 6.73528767, + "rel_max": 1.26018395e-05, + "scaled_max_abs": 1.26018395e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0219455123, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.27961349e-05, + "mean_abs": 1.68728369e-06, + "psnr_db": 141.5239, + "ref_absmax": 19.5010872, + "rel_max": 2.19455123e-06, + "scaled_max_abs": 2.19455123e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_4/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.4", + "ungated_probes": { + "band_ratio": 0.1279353, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.79085541e-05, + "mean_abs": 5.26862247e-06, + "psnr_db": 118.522554, + "ref_absmax": 2.96310353, + "rel_max": 1.279353e-05, + "scaled_max_abs": 1.279353e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0270586662, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.13007355e-05, + "mean_abs": 2.59491651e-06, + "psnr_db": 140.10937, + "ref_absmax": 30.0460987, + "rel_max": 2.70586662e-06, + "scaled_max_abs": 2.70586662e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_5;" + }, + "status": "pass", + "tap": "net.features.5", + "ungated_probes": { + "band_ratio": 0.218091113, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.42402267e-05, + "mean_abs": 8.09668706e-06, + "psnr_db": 113.577923, + "ref_absmax": 2.48704433, + "rel_max": 2.18091113e-05, + "scaled_max_abs": 2.18091113e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0154295259, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000104427338, + "mean_abs": 3.95868159e-06, + "psnr_db": 145.876093, + "ref_absmax": 67.6801987, + "rel_max": 1.54295259e-06, + "scaled_max_abs": 1.54295259e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_6;" + }, + "status": "pass", + "tap": "net.features.6", + "ungated_probes": { + "band_ratio": 0.130585475, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.21216202e-05, + "mean_abs": 1.07203002e-05, + "psnr_db": 117.71359, + "ref_absmax": 5.5229435, + "rel_max": 1.30585475e-05, + "scaled_max_abs": 1.30585475e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0446902026, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.72476196e-05, + "mean_abs": 2.57999328e-06, + "psnr_db": 137.359282, + "ref_absmax": 17.2851353, + "rel_max": 4.46902026e-06, + "scaled_max_abs": 4.46902026e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_7/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.7", + "ungated_probes": { + "band_ratio": 0.128390746, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.82661819e-05, + "mean_abs": 5.17224504e-06, + "psnr_db": 118.200209, + "ref_absmax": 2.98044705, + "rel_max": 1.28390746e-05, + "scaled_max_abs": 1.28390746e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.053606558, + "index": 9, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.96453857e-05, + "mean_abs": 3.31185025e-06, + "psnr_db": 134.885689, + "ref_absmax": 16.7228394, + "rel_max": 5.3606558e-06, + "scaled_max_abs": 5.3606558e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_8;" + }, + "status": "pass", + "tap": "net.features.8", + "ungated_probes": { + "band_ratio": 0.109356157, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.12599945e-05, + "mean_abs": 6.35594693e-06, + "psnr_db": 119.953702, + "ref_absmax": 4.68743563, + "rel_max": 1.09356157e-05, + "scaled_max_abs": 1.09356157e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.120188593, + "index": 10, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.2544136e-05, + "mean_abs": 1.39313289e-06, + "psnr_db": 126.65141, + "ref_absmax": 2.7077558, + "rel_max": 1.20188593e-05, + "scaled_max_abs": 1.20188593e-05 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_9/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.9", + "ungated_probes": { + "band_ratio": 0.0892156163, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.08480453e-05, + "mean_abs": 1.82677745e-06, + "psnr_db": 119.451318, + "ref_absmax": 1.21593571, + "rel_max": 8.92156163e-06, + "scaled_max_abs": 8.92156163e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.149856656, + "index": 11, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.92334366e-05, + "mean_abs": 1.8963299e-06, + "psnr_db": 125.385663, + "ref_absmax": 3.28536868, + "rel_max": 1.49856656e-05, + "scaled_max_abs": 1.49856656e-05 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_10;" + }, + "status": "pass", + "tap": "net.features.10", + "ungated_probes": { + "band_ratio": 0.0941990124, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.63912773e-05, + "mean_abs": 2.19949684e-06, + "psnr_db": 120.767674, + "ref_absmax": 1.74006891, + "rel_max": 9.41990124e-06, + "scaled_max_abs": 9.41990124e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.148051089, + "index": 12, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.87701797e-05, + "mean_abs": 2.31454396e-06, + "psnr_db": 125.234491, + "ref_absmax": 3.9695878, + "rel_max": 1.48051089e-05, + "scaled_max_abs": 1.48051089e-05 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_11;" + }, + "status": "pass", + "tap": "net.features.11", + "ungated_probes": { + "band_ratio": 0.16103398, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.93254852e-05, + "mean_abs": 2.48031386e-06, + "psnr_db": 120.819459, + "ref_absmax": 1.82107437, + "rel_max": 1.6103398e-05, + "scaled_max_abs": 1.6103398e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.210784133, + "index": 13, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000195145607, + "mean_abs": 1.3946212e-06, + "psnr_db": 128.36759, + "ref_absmax": 9.25807858, + "rel_max": 2.10784133e-05, + "scaled_max_abs": 2.10784133e-05 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_12/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "pass", + "tap": "net.features.12", + "ungated_probes": { + "band_ratio": 0.155322472, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.58442688e-05, + "mean_abs": 1.13968696e-06, + "psnr_db": 129.547508, + "ref_absmax": 6.17066336, + "rel_max": 1.55322472e-05, + "scaled_max_abs": 1.55322472e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0721296665, + "index": 14, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.74317169e-05, + "mean_abs": 8.19987514e-07, + "psnr_db": 128.444302, + "ref_absmax": 5.18950367, + "rel_max": 7.21296665e-06, + "scaled_max_abs": 7.21296665e-06 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/zoo.BakedMeanPool_avgpool;;zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvisio" + }, + "status": "pass", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 0.063732474, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.25467777e-05, + "mean_abs": 7.12922252e-07, + "psnr_db": 126.111953, + "ref_absmax": 1.96866322, + "rel_max": 6.3732474e-06, + "scaled_max_abs": 6.3732474e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0833300619, + "index": 15, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000150203705, + "mean_abs": 6.37644037e-06, + "psnr_db": 127.520704, + "ref_absmax": 18.0251522, + "rel_max": 8.33300619e-06, + "scaled_max_abs": 8.33300619e-06 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "pass", + "tap": "net.classifier", + "ungated_probes": { + "band_ratio": 0.0366724047, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.90734863e-05, + "mean_abs": 4.80107917e-06, + "psnr_db": 122.146171, + "ref_absmax": 5.20104599, + "rel_max": 3.66724047e-06, + "scaled_max_abs": 3.66724047e-06 + }, + "n_probes": 4 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp32", + "id": "mobilenet_v3_small__baked_shape__litert_fp32", + "model": "mobilenet_v3_small", + "path": "litert", + "variant": "baked_shape" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/mobilenet_v3_small__baked_shape__onnx_fp16.json b/bench/verdicts_calibrated4/mobilenet_v3_small__baked_shape__onnx_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..68068fb900787dc4f5b125a763293b3d79230c0a --- /dev/null +++ b/bench/verdicts_calibrated4/mobilenet_v3_small__baked_shape__onnx_fp16.json @@ -0,0 +1,1159 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "baseline": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "faithful_output_rel_max": 0.0310759602, + "output_band": 0.0621519203, + "source": { + "bundle": "bundles/mobilenet_v3_small__clean__onnx_fp16.json", + "case": "mobilenet_v3_small__clean__onnx_fp16", + "digests": { + "192": { + "converted": "0f5c1e94183c9903ece898f192769178a20e4556d20c0b1ef4fc23502e5893f5", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "8ce44e6b921ee910b6c36de85b86a9608df76e3c1728f56afa10f6f5dd60ae3c", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + } + } + }, + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "margin": { + "clear_margin": true, + "failing_shape": 192, + "locations_over_margin": [], + "margin": 0.707106781, + "n_locations": 17, + "nominal_output_band_ratio": 0.347785132, + "nominal_output_judgeable": true, + "rule": "C4-2 (b1)", + "scope": "every gated location of the nominal shape", + "worst_location": { + "band_ratio": 0.5, + "index": 8, + "location": "net.features.7" + } + }, + "status": "flag" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "/net/avgpool/Div_output_0", + "basis": "nominal shape 224 inside band with a clear margin at every gated location (worst net.features.7 at ratio 0.5 <= 0.7071); shape 192 over band", + "index": 14, + "neighbourhood": [ + { + "band_ratio": 0.474189443, + "index": 13, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.12/features.12.2/HardSwish_output_0" + }, + "status": "pass", + "tap": "net.features.12" + }, + { + "band_ratio": 3.74276459, + "index": 14, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/Div_output_0" + }, + "status": "fail", + "tap": "net.avgpool" + }, + { + "band_ratio": 5.82134893, + "index": 15, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier" + } + ], + "shape": 192, + "tap": "net.avgpool" + }, + "fp16_floor": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "baseline": { + "bundle": "bundles/mobilenet_v3_small__clean__onnx_fp16.json", + "case": "mobilenet_v3_small__clean__onnx_fp16", + "digests": { + "192": { + "converted": "0f5c1e94183c9903ece898f192769178a20e4556d20c0b1ef4fc23502e5893f5", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "8ce44e6b921ee910b6c36de85b86a9608df76e3c1728f56afa10f6f5dd60ae3c", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + } + }, + "envelopes_gate": true, + "faithful_output_rel_max": 0.0310759602, + "faithful_tap_rel_max": { + "net.avgpool": 0.0352594163, + "net.classifier": 0.0310759602, + "net.features.0": 0.000908058909, + "net.features.1": 0.000745469506, + "net.features.10": 0.0449988479, + "net.features.11": 0.0678471375, + "net.features.12": 0.0582480643, + "net.features.2": 0.00192673754, + "net.features.3": 0.00290781924, + "net.features.4": 0.00476705887, + "net.features.5": 0.00533482606, + "net.features.6": 0.00813875363, + "net.features.7": 0.012498691, + "net.features.8": 0.0198082609, + "net.features.9": 0.0376845229, + "normalize": 0.000441313312 + }, + "floor": 0.01, + "k": 2.0, + "output_band": 0.0621519203, + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used", + "tap_envelopes": { + "net.avgpool": 0.0705188325, + "net.classifier": 0.0621519203, + "net.features.0": 0.01, + "net.features.1": 0.01, + "net.features.10": 0.0899976958, + "net.features.11": 0.135694275, + "net.features.12": 0.116496129, + "net.features.2": 0.01, + "net.features.3": 0.01, + "net.features.4": 0.01, + "net.features.5": 0.0106696521, + "net.features.6": 0.0162775073, + "net.features.7": 0.024997382, + "net.features.8": 0.0396165217, + "net.features.9": 0.0753690458, + "normalize": 0.01 + } + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "552b2c9b37563b23e04e54c6c3c31e99aeab04747b903535d7a2cf8421aaab96", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "a367e0704da97edb692e5c11a4198d0161ef37d7d9d7644e8f44e6dabe4895a7", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D6", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.59375, + "band_limit": 0.0621519203, + "band_ratio": 5.82134893, + "metrics": { + "corr": 0.982784209, + "finite": true, + "max_abs": 8.82258224, + "mean_abs": 0.966790727, + "psnr_db": 28.1449805, + "ref_absmax": 24.3847065, + "rel_max": 0.361808015, + "scaled_max_abs": 0.361808015 + }, + "per_op_band_ratio": 36.1808015, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 14, + "n_judged": 16, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 0.0441313312, + "index": 0, + "metrics": { + "corr": 0.999999966, + "finite": true, + "max_abs": 0.00508785248, + "mean_abs": 0.000405953078, + "psnr_db": 88.0186903, + "ref_absmax": 11.5288897, + "rel_max": 0.000441313312, + "scaled_max_abs": 0.000441313312 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "per_op_band_ratio": 0.0441313312, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0908058909, + "index": 1, + "metrics": { + "corr": 0.999999747, + "finite": true, + "max_abs": 0.172560692, + "mean_abs": 0.000883766055, + "psnr_db": 96.2909345, + "ref_absmax": 190.032486, + "rel_max": 0.000908058909, + "scaled_max_abs": 0.000908058909 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.0/features.0.2/HardSwish_output_0" + }, + "per_op_band_ratio": 0.0908058909, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0726273228, + "index": 2, + "metrics": { + "corr": 0.99999925, + "finite": true, + "max_abs": 0.0330090523, + "mean_abs": 0.0021913404, + "psnr_db": 88.346094, + "ref_absmax": 45.4499092, + "rel_max": 0.000726273228, + "scaled_max_abs": 0.000726273228 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.1/block/block.2/block.2.0/Conv_output_0" + }, + "per_op_band_ratio": 0.0726273228, + "status": "pass", + "tap": "net.features.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.192673754, + "index": 3, + "metrics": { + "corr": 0.99999661, + "finite": true, + "max_abs": 0.0498961806, + "mean_abs": 0.00335121535, + "psnr_db": 78.3312341, + "ref_absmax": 25.896719, + "rel_max": 0.00192673754, + "scaled_max_abs": 0.00192673754 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.2/block/block.2/block.2.0/Conv_output_0" + }, + "per_op_band_ratio": 0.192673754, + "status": "pass", + "tap": "net.features.2" + }, + { + "band_limit": 0.01, + "band_ratio": 0.281512363, + "index": 4, + "metrics": { + "corr": 0.999992632, + "finite": true, + "max_abs": 0.0723810196, + "mean_abs": 0.00526209009, + "psnr_db": 75.4762491, + "ref_absmax": 25.7114887, + "rel_max": 0.00281512363, + "scaled_max_abs": 0.00281512363 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.3/Add_output_0" + }, + "per_op_band_ratio": 0.281512363, + "status": "pass", + "tap": "net.features.3" + }, + { + "band_limit": 0.01, + "band_ratio": 0.476705887, + "index": 5, + "metrics": { + "corr": 0.999968504, + "finite": true, + "max_abs": 0.0815546513, + "mean_abs": 0.00506719657, + "psnr_db": 69.8638336, + "ref_absmax": 17.1079597, + "rel_max": 0.00476705887, + "scaled_max_abs": 0.00476705887 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.4/block/block.3/block.3.0/Conv_output_0" + }, + "per_op_band_ratio": 0.476705887, + "status": "pass", + "tap": "net.features.4" + }, + { + "band_limit": 0.0106696521, + "band_ratio": 0.5, + "index": 6, + "metrics": { + "corr": 0.999933184, + "finite": true, + "max_abs": 0.119066, + "mean_abs": 0.00772219183, + "psnr_db": 67.9874935, + "ref_absmax": 22.3186283, + "rel_max": 0.00533482606, + "scaled_max_abs": 0.00533482606 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.5/Add_output_0" + }, + "per_op_band_ratio": 0.533482606, + "status": "pass", + "tap": "net.features.5" + }, + { + "band_limit": 0.0162775073, + "band_ratio": 0.5, + "index": 7, + "metrics": { + "corr": 0.999911881, + "finite": true, + "max_abs": 0.510870159, + "mean_abs": 0.0200473288, + "psnr_db": 67.667567, + "ref_absmax": 62.7700729, + "rel_max": 0.00813875363, + "scaled_max_abs": 0.00813875363 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.6/Add_output_0" + }, + "per_op_band_ratio": 0.813875363, + "status": "pass", + "tap": "net.features.6" + }, + { + "band_limit": 0.024997382, + "band_ratio": 0.488700854, + "index": 8, + "metrics": { + "corr": 0.999899008, + "finite": true, + "max_abs": 0.252684593, + "mean_abs": 0.00816732899, + "psnr_db": 67.0492169, + "ref_absmax": 20.6843147, + "rel_max": 0.0122162419, + "scaled_max_abs": 0.0122162419 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.7/block/block.3/block.3.0/Conv_output_0" + }, + "per_op_band_ratio": 1.22162419, + "status": "pass", + "tap": "net.features.7" + }, + { + "band_limit": 0.0396165217, + "band_ratio": 0.5, + "index": 9, + "metrics": { + "corr": 0.999808898, + "finite": true, + "max_abs": 0.385349274, + "mean_abs": 0.0114271704, + "psnr_db": 63.2680365, + "ref_absmax": 19.453968, + "rel_max": 0.0198082609, + "scaled_max_abs": 0.0198082609 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.8/Add_output_0" + }, + "per_op_band_ratio": 1.98082609, + "status": "pass", + "tap": "net.features.8" + }, + { + "band_limit": 0.0753690458, + "band_ratio": 0.5, + "index": 10, + "metrics": { + "corr": 0.999601539, + "finite": true, + "max_abs": 0.131695211, + "mean_abs": 0.00601521229, + "psnr_db": 54.3157289, + "ref_absmax": 3.49467635, + "rel_max": 0.0376845229, + "scaled_max_abs": 0.0376845229 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.9/block/block.3/block.3.0/Conv_output_0" + }, + "per_op_band_ratio": 3.76845229, + "status": "pass", + "tap": "net.features.9" + }, + { + "band_limit": 0.0899976958, + "band_ratio": 0.5, + "index": 11, + "metrics": { + "corr": 0.999634288, + "finite": true, + "max_abs": 0.168273151, + "mean_abs": 0.00733745012, + "psnr_db": 53.8422497, + "ref_absmax": 3.73949909, + "rel_max": 0.0449988479, + "scaled_max_abs": 0.0449988479 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.10/Add_output_0" + }, + "per_op_band_ratio": 4.49988479, + "status": "pass", + "tap": "net.features.10" + }, + { + "band_limit": 0.135694275, + "band_ratio": 0.5, + "index": 12, + "metrics": { + "corr": 0.999579659, + "finite": true, + "max_abs": 0.307674885, + "mean_abs": 0.00914591375, + "psnr_db": 53.5889895, + "ref_absmax": 4.53482485, + "rel_max": 0.0678471375, + "scaled_max_abs": 0.0678471375 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.11/Add_output_0" + }, + "per_op_band_ratio": 6.78471375, + "status": "pass", + "tap": "net.features.11" + }, + { + "band_limit": 0.116496129, + "band_ratio": 0.474189443, + "index": 13, + "metrics": { + "corr": 0.999361157, + "finite": true, + "max_abs": 0.557923317, + "mean_abs": 0.00560181436, + "psnr_db": 55.5456197, + "ref_absmax": 10.099762, + "rel_max": 0.0552412343, + "scaled_max_abs": 0.0552412343 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.12/features.12.2/HardSwish_output_0" + }, + "per_op_band_ratio": 5.52412343, + "status": "pass", + "tap": "net.features.12" + }, + { + "band_limit": 0.0705188325, + "band_ratio": 3.74276459, + "index": 14, + "metrics": { + "corr": 0.999557995, + "finite": true, + "max_abs": 1.38458109, + "mean_abs": 0.0695269674, + "psnr_db": 34.7330177, + "ref_absmax": 5.24590921, + "rel_max": 0.263935389, + "scaled_max_abs": 0.263935389 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/Div_output_0" + }, + "per_op_band_ratio": 26.3935389, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.0621519203, + "band_ratio": 5.82134893, + "index": 15, + "metrics": { + "corr": 0.982784209, + "finite": true, + "max_abs": 8.82258224, + "mean_abs": 0.966790727, + "psnr_db": 28.1449805, + "ref_absmax": 24.3847065, + "rel_max": 0.361808015, + "scaled_max_abs": 0.361808015 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "per_op_band_ratio": 36.1808015, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_limit": 0.0621519203, + "band_ratio": 0.347785132, + "metrics": { + "corr": 0.999892735, + "finite": true, + "max_abs": 0.389622927, + "mean_abs": 0.0207615438, + "psnr_db": 57.5998688, + "ref_absmax": 18.0251522, + "rel_max": 0.0216155138, + "scaled_max_abs": 0.0216155138 + }, + "per_op_band_ratio": 2.16155138, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 16, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 0.0439328023, + "index": 0, + "metrics": { + "corr": 0.999999965, + "finite": true, + "max_abs": 0.00506496429, + "mean_abs": 0.000406712054, + "psnr_db": 88.0749992, + "ref_absmax": 11.5288897, + "rel_max": 0.000439328023, + "scaled_max_abs": 0.000439328023 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "per_op_band_ratio": 0.0439328023, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0867140259, + "index": 1, + "metrics": { + "corr": 0.999999726, + "finite": true, + "max_abs": 0.146580219, + "mean_abs": 0.000882941117, + "psnr_db": 95.4408227, + "ref_absmax": 169.038651, + "rel_max": 0.000867140259, + "scaled_max_abs": 0.000867140259 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.0/features.0.2/HardSwish_output_0" + }, + "per_op_band_ratio": 0.0867140259, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0745469506, + "index": 2, + "metrics": { + "corr": 0.999999152, + "finite": true, + "max_abs": 0.0332808495, + "mean_abs": 0.00218689379, + "psnr_db": 87.8352672, + "ref_absmax": 44.644146, + "rel_max": 0.000745469506, + "scaled_max_abs": 0.000745469506 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.1/block/block.2/block.2.0/Conv_output_0" + }, + "per_op_band_ratio": 0.0745469506, + "status": "pass", + "tap": "net.features.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.155432319, + "index": 3, + "metrics": { + "corr": 0.999995967, + "finite": true, + "max_abs": 0.0475851297, + "mean_abs": 0.00342715191, + "psnr_db": 79.2772077, + "ref_absmax": 30.6146946, + "rel_max": 0.00155432319, + "scaled_max_abs": 0.00155432319 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.2/block/block.2/block.2.0/Conv_output_0" + }, + "per_op_band_ratio": 0.155432319, + "status": "pass", + "tap": "net.features.2" + }, + { + "band_limit": 0.01, + "band_ratio": 0.290781924, + "index": 4, + "metrics": { + "corr": 0.999991914, + "finite": true, + "max_abs": 0.0760879517, + "mean_abs": 0.00542803163, + "psnr_db": 75.1554022, + "ref_absmax": 26.1666718, + "rel_max": 0.00290781924, + "scaled_max_abs": 0.00290781924 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.3/Add_output_0" + }, + "per_op_band_ratio": 0.290781924, + "status": "pass", + "tap": "net.features.3" + }, + { + "band_limit": 0.01, + "band_ratio": 0.4599975, + "index": 5, + "metrics": { + "corr": 0.99996609, + "finite": true, + "max_abs": 0.0897045135, + "mean_abs": 0.00541450367, + "psnr_db": 70.4385356, + "ref_absmax": 19.5010872, + "rel_max": 0.004599975, + "scaled_max_abs": 0.004599975 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.4/block/block.3/block.3.0/Conv_output_0" + }, + "per_op_band_ratio": 0.4599975, + "status": "pass", + "tap": "net.features.4" + }, + { + "band_limit": 0.0106696521, + "band_ratio": 0.347952146, + "index": 6, + "metrics": { + "corr": 0.999930178, + "finite": true, + "max_abs": 0.111546993, + "mean_abs": 0.00825263387, + "psnr_db": 69.5801725, + "ref_absmax": 30.0460987, + "rel_max": 0.00371252835, + "scaled_max_abs": 0.00371252835 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.5/Add_output_0" + }, + "per_op_band_ratio": 0.371252835, + "status": "pass", + "tap": "net.features.5" + }, + { + "band_limit": 0.0162775073, + "band_ratio": 0.27422364, + "index": 7, + "metrics": { + "corr": 0.99997663, + "finite": true, + "max_abs": 0.302102566, + "mean_abs": 0.0119582523, + "psnr_db": 75.166003, + "ref_absmax": 67.6801987, + "rel_max": 0.00446367729, + "scaled_max_abs": 0.00446367729 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.6/Add_output_0" + }, + "per_op_band_ratio": 0.446367729, + "status": "pass", + "tap": "net.features.6" + }, + { + "band_limit": 0.024997382, + "band_ratio": 0.5, + "index": 8, + "metrics": { + "corr": 0.999928619, + "finite": true, + "max_abs": 0.216041565, + "mean_abs": 0.0069844028, + "psnr_db": 67.9933993, + "ref_absmax": 17.2851353, + "rel_max": 0.012498691, + "scaled_max_abs": 0.012498691 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.7/block/block.3/block.3.0/Conv_output_0" + }, + "per_op_band_ratio": 1.2498691, + "status": "pass", + "tap": "net.features.7" + }, + { + "band_limit": 0.0396165217, + "band_ratio": 0.462709674, + "index": 9, + "metrics": { + "corr": 0.999903542, + "finite": true, + "max_abs": 0.306545496, + "mean_abs": 0.0089378061, + "psnr_db": 65.732113, + "ref_absmax": 16.7228394, + "rel_max": 0.0183309478, + "scaled_max_abs": 0.0183309478 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.8/Add_output_0" + }, + "per_op_band_ratio": 1.83309478, + "status": "pass", + "tap": "net.features.8" + }, + { + "band_limit": 0.0753690458, + "band_ratio": 0.396063905, + "index": 10, + "metrics": { + "corr": 0.999829019, + "finite": true, + "max_abs": 0.0808291063, + "mean_abs": 0.00452532728, + "psnr_db": 56.0742489, + "ref_absmax": 2.7077558, + "rel_max": 0.0298509586, + "scaled_max_abs": 0.0298509586 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.9/block/block.3/block.3.0/Conv_output_0" + }, + "per_op_band_ratio": 2.98509586, + "status": "pass", + "tap": "net.features.9" + }, + { + "band_limit": 0.0899976958, + "band_ratio": 0.391892245, + "index": 11, + "metrics": { + "corr": 0.999808855, + "finite": true, + "max_abs": 0.115872979, + "mean_abs": 0.00596741333, + "psnr_db": 55.017935, + "ref_absmax": 3.28536868, + "rel_max": 0.0352693991, + "scaled_max_abs": 0.0352693991 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.10/Add_output_0" + }, + "per_op_band_ratio": 3.52693991, + "status": "pass", + "tap": "net.features.10" + }, + { + "band_limit": 0.135694275, + "band_ratio": 0.313060073, + "index": 12, + "metrics": { + "corr": 0.999801387, + "finite": true, + "max_abs": 0.168629915, + "mean_abs": 0.00716211491, + "psnr_db": 55.1986028, + "ref_absmax": 3.9695878, + "rel_max": 0.0424804597, + "scaled_max_abs": 0.0424804597 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.11/Add_output_0" + }, + "per_op_band_ratio": 4.24804597, + "status": "pass", + "tap": "net.features.11" + }, + { + "band_limit": 0.116496129, + "band_ratio": 0.5, + "index": 13, + "metrics": { + "corr": 0.999724486, + "finite": true, + "max_abs": 0.539265156, + "mean_abs": 0.00407862978, + "psnr_db": 58.811884, + "ref_absmax": 9.25807858, + "rel_max": 0.0582480643, + "scaled_max_abs": 0.0582480643 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.12/features.12.2/HardSwish_output_0" + }, + "per_op_band_ratio": 5.82480643, + "status": "pass", + "tap": "net.features.12" + }, + { + "band_limit": 0.0705188325, + "band_ratio": 0.311933443, + "index": 14, + "metrics": { + "corr": 0.99981986, + "finite": true, + "max_abs": 0.114154458, + "mean_abs": 0.00278555338, + "psnr_db": 57.8018904, + "ref_absmax": 5.18950367, + "rel_max": 0.0219971823, + "scaled_max_abs": 0.0219971823 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/Div_output_0" + }, + "per_op_band_ratio": 2.19971823, + "status": "pass", + "tap": "net.avgpool" + }, + { + "band_limit": 0.0621519203, + "band_ratio": 0.347785132, + "index": 15, + "metrics": { + "corr": 0.999892735, + "finite": true, + "max_abs": 0.389622927, + "mean_abs": 0.0207615438, + "psnr_db": 57.5998688, + "ref_absmax": 18.0251522, + "rel_max": 0.0216155138, + "scaled_max_abs": 0.0216155138 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "per_op_band_ratio": 2.16155138, + "status": "pass", + "tap": "net.classifier" + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp16", + "id": "mobilenet_v3_small__baked_shape__onnx_fp16", + "model": "mobilenet_v3_small", + "path": "onnx", + "variant": "baked_shape" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/mobilenet_v3_small__baked_shape__onnx_fp32.json b/bench/verdicts_calibrated4/mobilenet_v3_small__baked_shape__onnx_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..21d042383044b07ea89b904b9827b643d46921eb --- /dev/null +++ b/bench/verdicts_calibrated4/mobilenet_v3_small__baked_shape__onnx_fp32.json @@ -0,0 +1,1563 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "margin": { + "clear_margin": true, + "failing_shape": 192, + "locations_over_margin": [], + "margin": 0.707106781, + "n_locations": 17, + "nominal_output_band_ratio": 0.039416442, + "nominal_output_judgeable": true, + "rule": "C4-2 (b1)", + "scope": "every gated location of the nominal shape", + "worst_location": { + "band_ratio": 0.117173831, + "index": 13, + "location": "net.features.12" + } + }, + "status": "flag" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "/net/avgpool/Div_output_0", + "basis": "nominal shape 224 inside band with a clear margin at every gated location (worst net.features.12 at ratio 0.117 <= 0.7071); shape 192 over band", + "index": 14, + "neighbourhood": [ + { + "band_ratio": 0.0891139949, + "index": 13, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.12/features.12.2/HardSwish_output_0" + }, + "status": "pass", + "tap": "net.features.12" + }, + { + "band_ratio": 2653.07206, + "index": 14, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/Div_output_0" + }, + "status": "fail", + "tap": "net.avgpool" + }, + { + "band_ratio": 3688.67636, + "index": 15, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier" + } + ], + "shape": 192, + "tap": "net.avgpool" + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "567b629cb61fd8bf5ecfd3758e853f4f38c692cb2827a05a6ba6da38ee005de3", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "a25ff298cde77d51051e3df1eb2520f22820dcf3455e8aada27d37c71580e0dd", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "fp32 per-tap band on near-zero probes", + "reason": "C3-2: per-tap fp32 checks gate without the near_zero probes; they are measured and reported per tap ('ungated_probes'); the output gates on all probes. C4-1: when the output has failed and no gated tap fails, they localise the first divergence (earliest tap over band on all probes)" + }, + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D6", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.59375, + "band_ratio": 3688.67636, + "metrics": { + "corr": 0.982247201, + "finite": true, + "max_abs": 8.99472904, + "mean_abs": 0.971368923, + "psnr_db": 28.0806232, + "ref_absmax": 24.3847065, + "rel_max": 0.368867636, + "scaled_max_abs": 0.368867636 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 14, + "n_judged": 16, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.0, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 11.5288897, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.0, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 2.11790395, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00321182749, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.10351562e-05, + "mean_abs": 1.89537677e-07, + "psnr_db": 167.344678, + "ref_absmax": 190.032486, + "rel_max": 3.21182749e-07, + "scaled_max_abs": 3.21182749e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.0/features.0.2/HardSwish_output_0" + }, + "status": "pass", + "tap": "net.features.0", + "ungated_probes": { + "band_ratio": 0.00241213599, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.62939453e-06, + "mean_abs": 2.16881618e-07, + "psnr_db": 157.366824, + "ref_absmax": 31.6292057, + "rel_max": 2.41213599e-07, + "scaled_max_abs": 2.41213599e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00797353056, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.6239624e-05, + "mean_abs": 9.98075285e-07, + "psnr_db": 153.072648, + "ref_absmax": 45.4499092, + "rel_max": 7.97353056e-07, + "scaled_max_abs": 7.97353056e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.1/block/block.2/block.2.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.1", + "ungated_probes": { + "band_ratio": 0.0227632446, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.66893005e-05, + "mean_abs": 1.24961924e-06, + "psnr_db": 137.172128, + "ref_absmax": 7.33168793, + "rel_max": 2.27632446e-06, + "scaled_max_abs": 2.27632446e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00846999548, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.19345093e-05, + "mean_abs": 1.54983388e-06, + "psnr_db": 144.766529, + "ref_absmax": 25.896719, + "rel_max": 8.46999548e-07, + "scaled_max_abs": 8.46999548e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.2/block/block.2/block.2.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.2", + "ungated_probes": { + "band_ratio": 0.0644802993, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.77757645e-05, + "mean_abs": 2.75313276e-06, + "psnr_db": 124.749923, + "ref_absmax": 4.30763578, + "rel_max": 6.44802993e-06, + "scaled_max_abs": 6.44802993e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0153001897, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.93390656e-05, + "mean_abs": 2.63761359e-06, + "psnr_db": 141.695642, + "ref_absmax": 25.7114887, + "rel_max": 1.53001897e-06, + "scaled_max_abs": 1.53001897e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.3/Add_output_0" + }, + "status": "pass", + "tap": "net.features.3", + "ungated_probes": { + "band_ratio": 0.12165021, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.18967819e-05, + "mean_abs": 7.36337757e-06, + "psnr_db": 120.768056, + "ref_absmax": 6.73215294, + "rel_max": 1.2165021e-05, + "scaled_max_abs": 1.2165021e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0169323857, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.89678574e-05, + "mean_abs": 1.63707645e-06, + "psnr_db": 140.134058, + "ref_absmax": 17.1079597, + "rel_max": 1.69323857e-06, + "scaled_max_abs": 1.69323857e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.4/block/block.3/block.3.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.4", + "ungated_probes": { + "band_ratio": 0.116359598, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.40938568e-05, + "mean_abs": 6.37992748e-06, + "psnr_db": 117.100851, + "ref_absmax": 2.93004251, + "rel_max": 1.16359598e-05, + "scaled_max_abs": 1.16359598e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0264925814, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.91278076e-05, + "mean_abs": 2.44822543e-06, + "psnr_db": 137.863896, + "ref_absmax": 22.3186283, + "rel_max": 2.64925814e-06, + "scaled_max_abs": 2.64925814e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.5/Add_output_0" + }, + "status": "pass", + "tap": "net.features.5", + "ungated_probes": { + "band_ratio": 0.20642065, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.94854355e-05, + "mean_abs": 8.9967604e-06, + "psnr_db": 113.391462, + "ref_absmax": 2.88175797, + "rel_max": 2.0642065e-05, + "scaled_max_abs": 2.0642065e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0150412056, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.44137573e-05, + "mean_abs": 4.0992821e-06, + "psnr_db": 143.729101, + "ref_absmax": 62.7700729, + "rel_max": 1.50412056e-06, + "scaled_max_abs": 1.50412056e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.6/Add_output_0" + }, + "status": "pass", + "tap": "net.features.6", + "ungated_probes": { + "band_ratio": 0.154411662, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.44597816e-05, + "mean_abs": 1.1757044e-05, + "psnr_db": 116.852518, + "ref_absmax": 5.46977997, + "rel_max": 1.54411662e-05, + "scaled_max_abs": 1.54411662e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0368849277, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.62939453e-05, + "mean_abs": 2.39065772e-06, + "psnr_db": 139.203407, + "ref_absmax": 20.6843147, + "rel_max": 3.68849277e-06, + "scaled_max_abs": 3.68849277e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.7/block/block.3/block.3.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.7", + "ungated_probes": { + "band_ratio": 0.118917132, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.44514847e-05, + "mean_abs": 5.84020907e-06, + "psnr_db": 116.56813, + "ref_absmax": 2.89710021, + "rel_max": 1.18917132e-05, + "scaled_max_abs": 1.18917132e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.037256794, + "index": 9, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.2479248e-05, + "mean_abs": 3.14239863e-06, + "psnr_db": 136.409477, + "ref_absmax": 19.453968, + "rel_max": 3.7256794e-06, + "scaled_max_abs": 3.7256794e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.8/Add_output_0" + }, + "status": "pass", + "tap": "net.features.8", + "ungated_probes": { + "band_ratio": 0.0963515991, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.06801701e-05, + "mean_abs": 6.96427782e-06, + "psnr_db": 118.58234, + "ref_absmax": 4.22205448, + "rel_max": 9.63515991e-06, + "scaled_max_abs": 9.63515991e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.061742145, + "index": 10, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.15768814e-05, + "mean_abs": 1.37282175e-06, + "psnr_db": 128.665641, + "ref_absmax": 3.49467635, + "rel_max": 6.1742145e-06, + "scaled_max_abs": 6.1742145e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.9/block/block.3/block.3.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.9", + "ungated_probes": { + "band_ratio": 0.0927831778, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.09374523e-05, + "mean_abs": 2.39176047e-06, + "psnr_db": 116.788454, + "ref_absmax": 1.17881846, + "rel_max": 9.27831778e-06, + "scaled_max_abs": 9.27831778e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0838402213, + "index": 11, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.13520432e-05, + "mean_abs": 1.83222124e-06, + "psnr_db": 127.011191, + "ref_absmax": 3.73949909, + "rel_max": 8.38402213e-06, + "scaled_max_abs": 8.38402213e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.10/Add_output_0" + }, + "status": "pass", + "tap": "net.features.10", + "ungated_probes": { + "band_ratio": 0.096082963, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.56462193e-05, + "mean_abs": 2.67247742e-06, + "psnr_db": 118.759332, + "ref_absmax": 1.62840724, + "rel_max": 9.6082963e-06, + "scaled_max_abs": 9.6082963e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0744265352, + "index": 12, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.37511301e-05, + "mean_abs": 2.20671628e-06, + "psnr_db": 127.188558, + "ref_absmax": 4.53482485, + "rel_max": 7.44265352e-06, + "scaled_max_abs": 7.44265352e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.11/Add_output_0" + }, + "status": "pass", + "tap": "net.features.11", + "ungated_probes": { + "band_ratio": 0.120453635, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.03251839e-05, + "mean_abs": 3.07057696e-06, + "psnr_db": 118.5154, + "ref_absmax": 1.68738651, + "rel_max": 1.20453635e-05, + "scaled_max_abs": 1.20453635e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0891139949, + "index": 13, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.00030136e-05, + "mean_abs": 1.40610995e-06, + "psnr_db": 129.123618, + "ref_absmax": 10.099762, + "rel_max": 8.91139949e-06, + "scaled_max_abs": 8.91139949e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.12/features.12.2/HardSwish_output_0" + }, + "status": "pass", + "tap": "net.features.12", + "ungated_probes": { + "band_ratio": 0.118720158, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.69956207e-05, + "mean_abs": 1.43674807e-06, + "psnr_db": 127.497578, + "ref_absmax": 5.64315462, + "rel_max": 1.18720158e-05, + "scaled_max_abs": 1.18720158e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 2653.07206, + "index": 14, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.39177752, + "mean_abs": 0.0704919815, + "psnr_db": 34.4196966, + "ref_absmax": 5.24590921, + "rel_max": 0.265307206, + "scaled_max_abs": 0.265307206 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/Div_output_0" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 2653.09452, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.495708823, + "mean_abs": 0.0633229674, + "psnr_db": 29.6127049, + "ref_absmax": 1.8684175, + "rel_max": 0.265309452, + "scaled_max_abs": 0.265309452 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 3688.67636, + "index": 15, + "metrics": { + "corr": 0.984435673, + "finite": true, + "max_abs": 8.99472904, + "mean_abs": 1.05998058, + "psnr_db": 27.5561637, + "ref_absmax": 24.3847065, + "rel_max": 0.368867636, + "scaled_max_abs": 0.368867636 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier", + "ungated_probes": { + "band_ratio": 2138.38359, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.989826598, + "finite": true, + "max_abs": 1.14494199, + "mean_abs": 0.351087326, + "psnr_db": 25.1513269, + "ref_absmax": 5.35424042, + "rel_max": 0.213838359, + "scaled_max_abs": 0.213838359 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.039416442, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.10487366e-05, + "mean_abs": 5.34916539e-06, + "psnr_db": 129.853532, + "ref_absmax": 18.0251522, + "rel_max": 3.9416442e-06, + "scaled_max_abs": 3.9416442e-06 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 16, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.0, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 11.5288897, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.0, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 2.11790395, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00362482631, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.12735748e-05, + "mean_abs": 1.87428373e-07, + "psnr_db": 166.603887, + "ref_absmax": 169.038651, + "rel_max": 3.62482631e-07, + "scaled_max_abs": 3.62482631e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.0/features.0.2/HardSwish_output_0" + }, + "status": "pass", + "tap": "net.features.0", + "ungated_probes": { + "band_ratio": 0.00240942098, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.62939453e-06, + "mean_abs": 2.17489598e-07, + "psnr_db": 157.375654, + "ref_absmax": 31.6648464, + "rel_max": 2.40942098e-07, + "scaled_max_abs": 2.40942098e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00790382455, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.52859497e-05, + "mean_abs": 9.92377723e-07, + "psnr_db": 152.56663, + "ref_absmax": 44.644146, + "rel_max": 7.90382455e-07, + "scaled_max_abs": 7.90382455e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.1/block/block.2/block.2.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.1", + "ungated_probes": { + "band_ratio": 0.0237532999, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.74045563e-05, + "mean_abs": 1.25099652e-06, + "psnr_db": 137.146217, + "ref_absmax": 7.32721615, + "rel_max": 2.37532999e-06, + "scaled_max_abs": 2.37532999e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00837179583, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.56299973e-05, + "mean_abs": 1.58629216e-06, + "psnr_db": 145.698877, + "ref_absmax": 30.6146946, + "rel_max": 8.37179583e-07, + "scaled_max_abs": 8.37179583e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.2/block/block.2/block.2.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.2", + "ungated_probes": { + "band_ratio": 0.068866752, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.96831131e-05, + "mean_abs": 2.76051356e-06, + "psnr_db": 124.708734, + "ref_absmax": 4.31022406, + "rel_max": 6.8866752e-06, + "scaled_max_abs": 6.8866752e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0188153224, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.92334366e-05, + "mean_abs": 2.72670566e-06, + "psnr_db": 141.34389, + "ref_absmax": 26.1666718, + "rel_max": 1.88153224e-06, + "scaled_max_abs": 1.88153224e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.3/Add_output_0" + }, + "status": "pass", + "tap": "net.features.3", + "ungated_probes": { + "band_ratio": 0.112213009, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.55786896e-05, + "mean_abs": 7.28417024e-06, + "psnr_db": 120.917242, + "ref_absmax": 6.73528767, + "rel_max": 1.12213009e-05, + "scaled_max_abs": 1.12213009e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0167494997, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.26633453e-05, + "mean_abs": 1.75695061e-06, + "psnr_db": 140.578099, + "ref_absmax": 19.5010872, + "rel_max": 1.67494997e-06, + "scaled_max_abs": 1.67494997e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.4/block/block.3/block.3.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.4", + "ungated_probes": { + "band_ratio": 0.116670557, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.4570694e-05, + "mean_abs": 6.45323937e-06, + "psnr_db": 117.131366, + "ref_absmax": 2.96310353, + "rel_max": 1.16670557e-05, + "scaled_max_abs": 1.16670557e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0253129458, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.60555267e-05, + "mean_abs": 2.76670381e-06, + "psnr_db": 138.577881, + "ref_absmax": 30.0460987, + "rel_max": 2.53129458e-06, + "scaled_max_abs": 2.53129458e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.5/Add_output_0" + }, + "status": "pass", + "tap": "net.features.5", + "ungated_probes": { + "band_ratio": 0.252602234, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.28232956e-05, + "mean_abs": 8.99899466e-06, + "psnr_db": 112.649286, + "ref_absmax": 2.48704433, + "rel_max": 2.52602234e-05, + "scaled_max_abs": 2.52602234e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0159931615, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000108242035, + "mean_abs": 4.20943605e-06, + "psnr_db": 144.342961, + "ref_absmax": 67.6801987, + "rel_max": 1.59931615e-06, + "scaled_max_abs": 1.59931615e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.6/Add_output_0" + }, + "status": "pass", + "tap": "net.features.6", + "ungated_probes": { + "band_ratio": 0.155731273, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.60095024e-05, + "mean_abs": 1.16175504e-05, + "psnr_db": 116.889012, + "ref_absmax": 5.5229435, + "rel_max": 1.55731273e-05, + "scaled_max_abs": 1.55731273e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0380694318, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.58035278e-05, + "mean_abs": 2.40805624e-06, + "psnr_db": 137.787698, + "ref_absmax": 17.2851353, + "rel_max": 3.80694318e-06, + "scaled_max_abs": 3.80694318e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.7/block/block.3/block.3.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.7", + "ungated_probes": { + "band_ratio": 0.145989477, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.35113907e-05, + "mean_abs": 5.74265874e-06, + "psnr_db": 117.322235, + "ref_absmax": 2.98044705, + "rel_max": 1.45989477e-05, + "scaled_max_abs": 1.45989477e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0399197772, + "index": 9, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.67572021e-05, + "mean_abs": 3.02321038e-06, + "psnr_db": 135.588047, + "ref_absmax": 16.7228394, + "rel_max": 3.99197772e-06, + "scaled_max_abs": 3.99197772e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.8/Add_output_0" + }, + "status": "pass", + "tap": "net.features.8", + "ungated_probes": { + "band_ratio": 0.107512361, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.03957272e-05, + "mean_abs": 6.86451879e-06, + "psnr_db": 119.296344, + "ref_absmax": 4.68743563, + "rel_max": 1.07512361e-05, + "scaled_max_abs": 1.07512361e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0777043468, + "index": 10, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.10404396e-05, + "mean_abs": 1.18193059e-06, + "psnr_db": 128.468326, + "ref_absmax": 2.7077558, + "rel_max": 7.77043468e-06, + "scaled_max_abs": 7.77043468e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.9/block/block.3/block.3.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.9", + "ungated_probes": { + "band_ratio": 0.110539129, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.34408474e-05, + "mean_abs": 2.44389438e-06, + "psnr_db": 116.962995, + "ref_absmax": 1.21593571, + "rel_max": 1.10539129e-05, + "scaled_max_abs": 1.10539129e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0888980166, + "index": 11, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.92062759e-05, + "mean_abs": 1.54103465e-06, + "psnr_db": 127.582863, + "ref_absmax": 3.28536868, + "rel_max": 8.88980166e-06, + "scaled_max_abs": 8.88980166e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.10/Add_output_0" + }, + "status": "pass", + "tap": "net.features.10", + "ungated_probes": { + "band_ratio": 0.101392392, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.76429749e-05, + "mean_abs": 2.73720704e-06, + "psnr_db": 118.913552, + "ref_absmax": 1.74006891, + "rel_max": 1.01392392e-05, + "scaled_max_abs": 1.01392392e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0888907148, + "index": 12, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.52859497e-05, + "mean_abs": 1.82586186e-06, + "psnr_db": 127.870942, + "ref_absmax": 3.9695878, + "rel_max": 8.88907148e-06, + "scaled_max_abs": 8.88907148e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.11/Add_output_0" + }, + "status": "pass", + "tap": "net.features.11", + "ungated_probes": { + "band_ratio": 0.114556693, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.08616257e-05, + "mean_abs": 3.29466225e-06, + "psnr_db": 118.390733, + "ref_absmax": 1.82107437, + "rel_max": 1.14556693e-05, + "scaled_max_abs": 1.14556693e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.117173831, + "index": 13, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000108480453, + "mean_abs": 1.0775267e-06, + "psnr_db": 131.316433, + "ref_absmax": 9.25807858, + "rel_max": 1.17173831e-05, + "scaled_max_abs": 1.17173831e-05 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.12/features.12.2/HardSwish_output_0" + }, + "status": "pass", + "tap": "net.features.12", + "ungated_probes": { + "band_ratio": 0.129821768, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.01086426e-05, + "mean_abs": 1.51921352e-06, + "psnr_db": 127.617359, + "ref_absmax": 6.17066336, + "rel_max": 1.29821768e-05, + "scaled_max_abs": 1.29821768e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0452533258, + "index": 14, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.348423e-05, + "mean_abs": 5.77302234e-07, + "psnr_db": 132.298399, + "ref_absmax": 5.18950367, + "rel_max": 4.52533258e-06, + "scaled_max_abs": 4.52533258e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/Div_output_0" + }, + "status": "pass", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 0.0876510747, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.72555447e-05, + "mean_abs": 1.0695786e-06, + "psnr_db": 122.721338, + "ref_absmax": 1.96866322, + "rel_max": 8.76510747e-06, + "scaled_max_abs": 8.76510747e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.039416442, + "index": 15, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.10487366e-05, + "mean_abs": 5.24534329e-06, + "psnr_db": 129.731334, + "ref_absmax": 18.0251522, + "rel_max": 3.9416442e-06, + "scaled_max_abs": 3.9416442e-06 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "pass", + "tap": "net.classifier", + "ungated_probes": { + "band_ratio": 0.0563838222, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.93254852e-05, + "mean_abs": 6.07592007e-06, + "psnr_db": 120.045226, + "ref_absmax": 5.20104599, + "rel_max": 5.63838222e-06, + "scaled_max_abs": 5.63838222e-06 + }, + "n_probes": 4 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp32", + "id": "mobilenet_v3_small__baked_shape__onnx_fp32", + "model": "mobilenet_v3_small", + "path": "onnx", + "variant": "baked_shape" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/mobilenet_v3_small__clean__coreml_fp16.json b/bench/verdicts_calibrated4/mobilenet_v3_small__clean__coreml_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..6b27b6db062b2d7da621d54cfce23b6a7c8a17a0 --- /dev/null +++ b/bench/verdicts_calibrated4/mobilenet_v3_small__clean__coreml_fp16.json @@ -0,0 +1,1090 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "baseline": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "faithful_output_rel_max": 0.0447572937, + "output_band": 0.0895145874, + "source": { + "bundle": "bundles/mobilenet_v3_small__clean__coreml_fp16.json", + "case": "mobilenet_v3_small__clean__coreml_fp16", + "digests": { + "192": { + "converted": "e8f4b313bc394828af089248d6d729f5cfb7d031d184bf665f719d1a66fcd7d8", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "807adc810963567dc9e14f27330f17d8d7cd30ffa6b8e35992534a3dbc2f65e9", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + } + } + }, + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": false, + "note": null, + "status": "clear" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [ + "inputs[0]: dtype float16 (declared float32)", + "outputs[0]: dtype float16 (declared float32)" + ], + "status": "precision_narrowing" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "status": "clear" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp16", + "first_divergence": null, + "fp16_floor": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "baseline": { + "bundle": "bundles/mobilenet_v3_small__clean__coreml_fp16.json", + "case": "mobilenet_v3_small__clean__coreml_fp16", + "digests": { + "192": { + "converted": "e8f4b313bc394828af089248d6d729f5cfb7d031d184bf665f719d1a66fcd7d8", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "807adc810963567dc9e14f27330f17d8d7cd30ffa6b8e35992534a3dbc2f65e9", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + } + }, + "envelopes_gate": true, + "faithful_output_rel_max": 0.0447572937, + "faithful_tap_rel_max": { + "net.avgpool": 0.0593494378, + "net.classifier": 0.0447572937, + "net.features.0": 0.0033139093, + "net.features.1": 0.0109594004, + "net.features.10": 0.0689930567, + "net.features.11": 0.097995766, + "net.features.12": 0.111351399, + "net.features.2": 0.0106091941, + "net.features.3": 0.0219511544, + "net.features.4": 0.0122644963, + "net.features.5": 0.0214109624, + "net.features.6": 0.0112218713, + "net.features.7": 0.0213995931, + "net.features.8": 0.0282643785, + "net.features.9": 0.0667671518, + "normalize": 0.00117570499 + }, + "floor": 0.01, + "k": 2.0, + "output_band": 0.0895145874, + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used", + "tap_envelopes": { + "net.avgpool": 0.118698876, + "net.classifier": 0.0895145874, + "net.features.0": 0.01, + "net.features.1": 0.0219188008, + "net.features.10": 0.137986113, + "net.features.11": 0.195991532, + "net.features.12": 0.222702798, + "net.features.2": 0.0212183882, + "net.features.3": 0.0439023088, + "net.features.4": 0.0245289926, + "net.features.5": 0.0428219248, + "net.features.6": 0.0224437425, + "net.features.7": 0.0427991863, + "net.features.8": 0.056528757, + "net.features.9": 0.133534304, + "normalize": 0.01 + } + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "e8f4b313bc394828af089248d6d729f5cfb7d031d184bf665f719d1a66fcd7d8", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "807adc810963567dc9e14f27330f17d8d7cd30ffa6b8e35992534a3dbc2f65e9", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": null, + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.84375, + "band_limit": 0.0895145874, + "band_ratio": 0.5, + "metrics": { + "corr": 0.999234982, + "finite": true, + "max_abs": 1.09139347, + "mean_abs": 0.0600417178, + "psnr_db": 50.1867257, + "ref_absmax": 24.3847065, + "rel_max": 0.0447572937, + "scaled_max_abs": 0.0447572937 + }, + "per_op_band_ratio": 4.47572937, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 16, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 0.117570499, + "index": 0, + "metrics": { + "corr": 0.999999914, + "finite": true, + "max_abs": 0.0135545731, + "mean_abs": 0.000674526699, + "psnr_db": 83.5827466, + "ref_absmax": 11.5288897, + "rel_max": 0.00117570499, + "scaled_max_abs": 0.00117570499 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "per_op_band_ratio": 0.117570499, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 0.264822202, + "index": 1, + "metrics": { + "corr": 0.999998648, + "finite": true, + "max_abs": 0.503248215, + "mean_abs": 0.00245742044, + "psnr_db": 89.2955159, + "ref_absmax": 190.032486, + "rel_max": 0.00264822202, + "scaled_max_abs": 0.00264822202 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_7_cast_fp16" + }, + "per_op_band_ratio": 0.264822202, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_limit": 0.0219188008, + "band_ratio": 0.468941544, + "index": 2, + "metrics": { + "corr": 0.999955391, + "finite": true, + "max_abs": 0.467163086, + "mean_abs": 0.0108745644, + "psnr_db": 70.7611788, + "ref_absmax": 45.4499092, + "rel_max": 0.0102786363, + "scaled_max_abs": 0.0102786363 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_27_cast_fp16" + }, + "per_op_band_ratio": 1.02786363, + "status": "pass", + "tap": "net.features.1" + }, + { + "band_limit": 0.0212183882, + "band_ratio": 0.5, + "index": 3, + "metrics": { + "corr": 0.999939329, + "finite": true, + "max_abs": 0.274743319, + "mean_abs": 0.0150893866, + "psnr_db": 65.8230603, + "ref_absmax": 25.896719, + "rel_max": 0.0106091941, + "scaled_max_abs": 0.0106091941 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_43_cast_fp16" + }, + "per_op_band_ratio": 1.06091941, + "status": "pass", + "tap": "net.features.2" + }, + { + "band_limit": 0.0439023088, + "band_ratio": 0.5, + "index": 4, + "metrics": { + "corr": 0.999841065, + "finite": true, + "max_abs": 0.564396858, + "mean_abs": 0.0266718961, + "psnr_db": 62.2128125, + "ref_absmax": 25.7114887, + "rel_max": 0.0219511544, + "scaled_max_abs": 0.0219511544 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59_cast_fp16" + }, + "per_op_band_ratio": 2.19511544, + "status": "pass", + "tap": "net.features.3" + }, + { + "band_limit": 0.0245289926, + "band_ratio": 0.5, + "index": 5, + "metrics": { + "corr": 0.999799843, + "finite": true, + "max_abs": 0.209820509, + "mean_abs": 0.0157979565, + "psnr_db": 61.8903255, + "ref_absmax": 17.1079597, + "rel_max": 0.0122644963, + "scaled_max_abs": 0.0122644963 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85_cast_fp16" + }, + "per_op_band_ratio": 1.22644963, + "status": "pass", + "tap": "net.features.4" + }, + { + "band_limit": 0.0428219248, + "band_ratio": 0.5, + "index": 6, + "metrics": { + "corr": 0.999504987, + "finite": true, + "max_abs": 0.477863312, + "mean_abs": 0.0243805949, + "psnr_db": 59.3153124, + "ref_absmax": 22.3186283, + "rel_max": 0.0214109624, + "scaled_max_abs": 0.0214109624 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_111_cast_fp16" + }, + "per_op_band_ratio": 2.14109624, + "status": "pass", + "tap": "net.features.5" + }, + { + "band_limit": 0.0224437425, + "band_ratio": 0.5, + "index": 7, + "metrics": { + "corr": 0.999850861, + "finite": true, + "max_abs": 0.704397678, + "mean_abs": 0.039895837, + "psnr_db": 65.3544562, + "ref_absmax": 62.7700729, + "rel_max": 0.0112218713, + "scaled_max_abs": 0.0112218713 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_137_cast_fp16" + }, + "per_op_band_ratio": 1.12218713, + "status": "pass", + "tap": "net.features.6" + }, + { + "band_limit": 0.0427991863, + "band_ratio": 0.46021757, + "index": 8, + "metrics": { + "corr": 0.999595316, + "finite": true, + "max_abs": 0.407417655, + "mean_abs": 0.0218482537, + "psnr_db": 61.0318832, + "ref_absmax": 20.6843147, + "rel_max": 0.0196969375, + "scaled_max_abs": 0.0196969375 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_163_cast_fp16" + }, + "per_op_band_ratio": 1.96969375, + "status": "pass", + "tap": "net.features.7" + }, + { + "band_limit": 0.056528757, + "band_ratio": 0.443729547, + "index": 9, + "metrics": { + "corr": 0.999493234, + "finite": true, + "max_abs": 0.487973213, + "mean_abs": 0.0272460814, + "psnr_db": 59.0074803, + "ref_absmax": 19.453968, + "rel_max": 0.0250834797, + "scaled_max_abs": 0.0250834797 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_189_cast_fp16" + }, + "per_op_band_ratio": 2.50834797, + "status": "pass", + "tap": "net.features.8" + }, + { + "band_limit": 0.133534304, + "band_ratio": 0.357544586, + "index": 10, + "metrics": { + "corr": 0.999143776, + "finite": true, + "max_abs": 0.166851461, + "mean_abs": 0.011929511, + "psnr_db": 51.0183146, + "ref_absmax": 3.49467635, + "rel_max": 0.0477444673, + "scaled_max_abs": 0.0477444673 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_215_cast_fp16" + }, + "per_op_band_ratio": 4.77444673, + "status": "pass", + "tap": "net.features.9" + }, + { + "band_limit": 0.137986113, + "band_ratio": 0.44973864, + "index": 11, + "metrics": { + "corr": 0.998980348, + "finite": true, + "max_abs": 0.232064664, + "mean_abs": 0.0157052516, + "psnr_db": 49.3870164, + "ref_absmax": 3.73949909, + "rel_max": 0.062057687, + "scaled_max_abs": 0.062057687 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_241_cast_fp16" + }, + "per_op_band_ratio": 6.2057687, + "status": "pass", + "tap": "net.features.10" + }, + { + "band_limit": 0.195991532, + "band_ratio": 0.5, + "index": 12, + "metrics": { + "corr": 0.998920477, + "finite": true, + "max_abs": 0.444393635, + "mean_abs": 0.0186522474, + "psnr_db": 49.5043399, + "ref_absmax": 4.53482485, + "rel_max": 0.097995766, + "scaled_max_abs": 0.097995766 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_267_cast_fp16" + }, + "per_op_band_ratio": 9.7995766, + "status": "pass", + "tap": "net.features.11" + }, + { + "band_limit": 0.222702798, + "band_ratio": 0.353496557, + "index": 13, + "metrics": { + "corr": 0.998558604, + "finite": true, + "max_abs": 0.795100451, + "mean_abs": 0.0110715953, + "psnr_db": 52.0070134, + "ref_absmax": 10.099762, + "rel_max": 0.0787246723, + "scaled_max_abs": 0.0787246723 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_273_cast_fp16" + }, + "per_op_band_ratio": 7.87246723, + "status": "pass", + "tap": "net.features.12" + }, + { + "band_limit": 0.118698876, + "band_ratio": 0.5, + "index": 14, + "metrics": { + "corr": 0.999059493, + "finite": true, + "max_abs": 0.311341763, + "mean_abs": 0.00688124836, + "psnr_db": 50.5326651, + "ref_absmax": 5.24590921, + "rel_max": 0.0593494378, + "scaled_max_abs": 0.0593494378 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "per_op_band_ratio": 5.93494378, + "status": "pass", + "tap": "net.avgpool" + }, + { + "band_limit": 0.0895145874, + "band_ratio": 0.5, + "index": 15, + "metrics": { + "corr": 0.999234982, + "finite": true, + "max_abs": 1.09139347, + "mean_abs": 0.0600417178, + "psnr_db": 50.1867257, + "ref_absmax": 24.3847065, + "rel_max": 0.0447572937, + "scaled_max_abs": 0.0447572937 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "per_op_band_ratio": 4.47572937, + "status": "pass", + "tap": "net.classifier" + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_limit": 0.0895145874, + "band_ratio": 0.326253957, + "metrics": { + "corr": 0.99960838, + "finite": true, + "max_abs": 0.526415348, + "mean_abs": 0.0415014574, + "psnr_db": 51.9897065, + "ref_absmax": 18.0251522, + "rel_max": 0.0292044884, + "scaled_max_abs": 0.0292044884 + }, + "per_op_band_ratio": 2.92044884, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 16, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 0.116213884, + "index": 0, + "metrics": { + "corr": 0.999999912, + "finite": true, + "max_abs": 0.0133981705, + "mean_abs": 0.000679588388, + "psnr_db": 83.6184843, + "ref_absmax": 11.5288897, + "rel_max": 0.00116213884, + "scaled_max_abs": 0.00116213884 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "per_op_band_ratio": 0.116213884, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 0.33139093, + "index": 1, + "metrics": { + "corr": 0.999998561, + "finite": true, + "max_abs": 0.560178757, + "mean_abs": 0.00245733429, + "psnr_db": 88.488319, + "ref_absmax": 169.038651, + "rel_max": 0.0033139093, + "scaled_max_abs": 0.0033139093 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_7_cast_fp16" + }, + "per_op_band_ratio": 0.33139093, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_limit": 0.0219188008, + "band_ratio": 0.5, + "index": 2, + "metrics": { + "corr": 0.999947809, + "finite": true, + "max_abs": 0.489273071, + "mean_abs": 0.0109243768, + "psnr_db": 70.0800625, + "ref_absmax": 44.644146, + "rel_max": 0.0109594004, + "scaled_max_abs": 0.0109594004 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_27_cast_fp16" + }, + "per_op_band_ratio": 1.09594004, + "status": "pass", + "tap": "net.features.1" + }, + { + "band_limit": 0.0212183882, + "band_ratio": 0.472423312, + "index": 3, + "metrics": { + "corr": 0.999928562, + "finite": true, + "max_abs": 0.306883574, + "mean_abs": 0.0154189054, + "psnr_db": 66.8123424, + "ref_absmax": 30.6146946, + "rel_max": 0.0100240612, + "scaled_max_abs": 0.0100240612 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_43_cast_fp16" + }, + "per_op_band_ratio": 1.00240612, + "status": "pass", + "tap": "net.features.2" + }, + { + "band_limit": 0.0439023088, + "band_ratio": 0.395740738, + "index": 4, + "metrics": { + "corr": 0.999826151, + "finite": true, + "max_abs": 0.454617977, + "mean_abs": 0.0275043068, + "psnr_db": 61.9146954, + "ref_absmax": 26.1666718, + "rel_max": 0.0173739321, + "scaled_max_abs": 0.0173739321 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59_cast_fp16" + }, + "per_op_band_ratio": 1.73739321, + "status": "pass", + "tap": "net.features.3" + }, + { + "band_limit": 0.0245289926, + "band_ratio": 0.421120473, + "index": 5, + "metrics": { + "corr": 0.99979303, + "finite": true, + "max_abs": 0.201439619, + "mean_abs": 0.016404368, + "psnr_db": 62.6750818, + "ref_absmax": 19.5010872, + "rel_max": 0.010329661, + "scaled_max_abs": 0.010329661 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85_cast_fp16" + }, + "per_op_band_ratio": 1.0329661, + "status": "pass", + "tap": "net.features.4" + }, + { + "band_limit": 0.0428219248, + "band_ratio": 0.316127148, + "index": 6, + "metrics": { + "corr": 0.999513853, + "finite": true, + "max_abs": 0.406739235, + "mean_abs": 0.0253501789, + "psnr_db": 61.2191237, + "ref_absmax": 30.0460987, + "rel_max": 0.013537173, + "scaled_max_abs": 0.013537173 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_111_cast_fp16" + }, + "per_op_band_ratio": 1.3537173, + "status": "pass", + "tap": "net.features.5" + }, + { + "band_limit": 0.0224437425, + "band_ratio": 0.402521529, + "index": 7, + "metrics": { + "corr": 0.999871662, + "finite": true, + "max_abs": 0.611428976, + "mean_abs": 0.0359328223, + "psnr_db": 67.7936158, + "ref_absmax": 67.6801987, + "rel_max": 0.00903408956, + "scaled_max_abs": 0.00903408956 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_137_cast_fp16" + }, + "per_op_band_ratio": 0.903408956, + "status": "pass", + "tap": "net.features.6" + }, + { + "band_limit": 0.0427991863, + "band_ratio": 0.5, + "index": 8, + "metrics": { + "corr": 0.999559127, + "finite": true, + "max_abs": 0.369894862, + "mean_abs": 0.0213631066, + "psnr_db": 60.1058239, + "ref_absmax": 17.2851353, + "rel_max": 0.0213995931, + "scaled_max_abs": 0.0213995931 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_163_cast_fp16" + }, + "per_op_band_ratio": 2.13995931, + "status": "pass", + "tap": "net.features.7" + }, + { + "band_limit": 0.056528757, + "band_ratio": 0.5, + "index": 9, + "metrics": { + "corr": 0.999500951, + "finite": true, + "max_abs": 0.472660661, + "mean_abs": 0.0256925706, + "psnr_db": 58.5906151, + "ref_absmax": 16.7228394, + "rel_max": 0.0282643785, + "scaled_max_abs": 0.0282643785 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_189_cast_fp16" + }, + "per_op_band_ratio": 2.82643785, + "status": "pass", + "tap": "net.features.8" + }, + { + "band_limit": 0.133534304, + "band_ratio": 0.5, + "index": 10, + "metrics": { + "corr": 0.999401345, + "finite": true, + "max_abs": 0.180789143, + "mean_abs": 0.0101991881, + "psnr_db": 50.6690645, + "ref_absmax": 2.7077558, + "rel_max": 0.0667671518, + "scaled_max_abs": 0.0667671518 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_215_cast_fp16" + }, + "per_op_band_ratio": 6.67671518, + "status": "pass", + "tap": "net.features.9" + }, + { + "band_limit": 0.137986113, + "band_ratio": 0.5, + "index": 11, + "metrics": { + "corr": 0.999307124, + "finite": true, + "max_abs": 0.226667628, + "mean_abs": 0.0133321, + "psnr_db": 49.4267834, + "ref_absmax": 3.28536868, + "rel_max": 0.0689930567, + "scaled_max_abs": 0.0689930567 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_241_cast_fp16" + }, + "per_op_band_ratio": 6.89930567, + "status": "pass", + "tap": "net.features.10" + }, + { + "band_limit": 0.195991532, + "band_ratio": 0.375481433, + "index": 12, + "metrics": { + "corr": 0.999328651, + "finite": true, + "max_abs": 0.292126656, + "mean_abs": 0.015667708, + "psnr_db": 49.913118, + "ref_absmax": 3.9695878, + "rel_max": 0.0735911813, + "scaled_max_abs": 0.0735911813 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_267_cast_fp16" + }, + "per_op_band_ratio": 7.35911813, + "status": "pass", + "tap": "net.features.11" + }, + { + "band_limit": 0.222702798, + "band_ratio": 0.5, + "index": 13, + "metrics": { + "corr": 0.999259846, + "finite": true, + "max_abs": 1.0309, + "mean_abs": 0.00853840335, + "psnr_db": 54.55654, + "ref_absmax": 9.25807858, + "rel_max": 0.111351399, + "scaled_max_abs": 0.111351399 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_273_cast_fp16" + }, + "per_op_band_ratio": 11.1351399, + "status": "pass", + "tap": "net.features.12" + }, + { + "band_limit": 0.118698876, + "band_ratio": 0.332791562, + "index": 14, + "metrics": { + "corr": 0.999594702, + "finite": true, + "max_abs": 0.204995692, + "mean_abs": 0.0047363485, + "psnr_db": 54.3473048, + "ref_absmax": 5.18950367, + "rel_max": 0.0395019842, + "scaled_max_abs": 0.0395019842 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "per_op_band_ratio": 3.95019842, + "status": "pass", + "tap": "net.avgpool" + }, + { + "band_limit": 0.0895145874, + "band_ratio": 0.326253957, + "index": 15, + "metrics": { + "corr": 0.99960838, + "finite": true, + "max_abs": 0.526415348, + "mean_abs": 0.0415014574, + "psnr_db": 51.9897065, + "ref_absmax": 18.0251522, + "rel_max": 0.0292044884, + "scaled_max_abs": 0.0292044884 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "per_op_band_ratio": 2.92044884, + "status": "pass", + "tap": "net.classifier" + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp16", + "id": "mobilenet_v3_small__clean__coreml_fp16", + "model": "mobilenet_v3_small", + "path": "coreml", + "variant": "clean" + }, + "tap_bands_gate": true, + "verdict": "PASS" +} diff --git a/bench/verdicts_calibrated4/mobilenet_v3_small__clean__coreml_fp32.json b/bench/verdicts_calibrated4/mobilenet_v3_small__clean__coreml_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..2292529b9585600112aed39c3605026baa3754ea --- /dev/null +++ b/bench/verdicts_calibrated4/mobilenet_v3_small__clean__coreml_fp32.json @@ -0,0 +1,1491 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": false, + "note": null, + "status": "clear" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "status": "clear" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp32", + "first_divergence": null, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "6aa4e75dec6894e11c2f07c6b95c3d3ae1a53d2db236d3ac3b37246f9004eae6", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "f0e93526e4c5787d77966a3a9b20aad662dd06d49e1bc357e66ce69e8c48ac51", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "fp32 per-tap band on near-zero probes", + "reason": "C3-2: per-tap fp32 checks gate without the near_zero probes; they are measured and reported per tap ('ungated_probes'); the output gates on all probes. C4-1: when the output has failed and no gated tap fails, they localise the first divergence (earliest tap over band on all probes)" + }, + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": null, + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.0588598369, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000143527985, + "mean_abs": 7.20022978e-06, + "psnr_db": 128.841094, + "ref_absmax": 24.3847065, + "rel_max": 5.88598369e-06, + "scaled_max_abs": 5.88598369e-06 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 16, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.06644368e-08, + "psnr_db": 164.113247, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.00112572895, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.38418579e-07, + "mean_abs": 4.66593688e-08, + "psnr_db": 130.397207, + "ref_absmax": 2.11790395, + "rel_max": 1.12572895e-07, + "scaled_max_abs": 1.12572895e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00401478436, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.62939453e-05, + "mean_abs": 3.24115959e-07, + "psnr_db": 165.981806, + "ref_absmax": 190.032486, + "rel_max": 4.01478436e-07, + "scaled_max_abs": 4.01478436e-07 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_7" + }, + "status": "pass", + "tap": "net.features.0", + "ungated_probes": { + "band_ratio": 0.00361820398, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.14440918e-05, + "mean_abs": 3.57559764e-07, + "psnr_db": 154.819305, + "ref_absmax": 31.6292057, + "rel_max": 3.61820398e-07, + "scaled_max_abs": 3.61820398e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0140782649, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.39855862e-05, + "mean_abs": 1.68588111e-06, + "psnr_db": 146.919123, + "ref_absmax": 45.4499092, + "rel_max": 1.40782649e-06, + "scaled_max_abs": 1.40782649e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_27" + }, + "status": "pass", + "tap": "net.features.1", + "ungated_probes": { + "band_ratio": 0.0551195708, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.04119492e-05, + "mean_abs": 2.21933378e-06, + "psnr_db": 131.19673, + "ref_absmax": 7.33168793, + "rel_max": 5.51195708e-06, + "scaled_max_abs": 5.51195708e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0168018932, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.35113907e-05, + "mean_abs": 2.364716e-06, + "psnr_db": 141.953623, + "ref_absmax": 25.896719, + "rel_max": 1.68018932e-06, + "scaled_max_abs": 1.68018932e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_43" + }, + "status": "pass", + "tap": "net.features.2", + "ungated_probes": { + "band_ratio": 0.0935379449, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.02927399e-05, + "mean_abs": 3.91170222e-06, + "psnr_db": 121.942109, + "ref_absmax": 4.30763578, + "rel_max": 9.35379449e-06, + "scaled_max_abs": 9.35379449e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0496097061, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.00012755394, + "mean_abs": 3.98352299e-06, + "psnr_db": 138.819026, + "ref_absmax": 25.7114887, + "rel_max": 4.96097061e-06, + "scaled_max_abs": 4.96097061e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59" + }, + "status": "pass", + "tap": "net.features.3", + "ungated_probes": { + "band_ratio": 0.332723064, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000223994255, + "mean_abs": 1.24484625e-05, + "psnr_db": 115.698552, + "ref_absmax": 6.73215294, + "rel_max": 3.32723064e-05, + "scaled_max_abs": 3.32723064e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0150858498, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.58088112e-05, + "mean_abs": 2.13908043e-06, + "psnr_db": 139.557552, + "ref_absmax": 17.1079597, + "rel_max": 1.50858498e-06, + "scaled_max_abs": 1.50858498e-06 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85" + }, + "status": "pass", + "tap": "net.features.4", + "ungated_probes": { + "band_ratio": 0.288051033, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.4400177e-05, + "mean_abs": 7.77968791e-06, + "psnr_db": 115.200941, + "ref_absmax": 2.93004251, + "rel_max": 2.88051033e-05, + "scaled_max_abs": 2.88051033e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0275608306, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.15119934e-05, + "mean_abs": 3.17559211e-06, + "psnr_db": 137.135406, + "ref_absmax": 22.3186283, + "rel_max": 2.75608306e-06, + "scaled_max_abs": 2.75608306e-06 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_111" + }, + "status": "pass", + "tap": "net.features.5", + "ungated_probes": { + "band_ratio": 0.47075491, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000135660172, + "mean_abs": 1.22802891e-05, + "psnr_db": 110.412785, + "ref_absmax": 2.88175797, + "rel_max": 4.7075491e-05, + "scaled_max_abs": 4.7075491e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0158008625, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.91821289e-05, + "mean_abs": 5.04242062e-06, + "psnr_db": 143.735769, + "ref_absmax": 62.7700729, + "rel_max": 1.58008625e-06, + "scaled_max_abs": 1.58008625e-06 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_137" + }, + "status": "pass", + "tap": "net.features.6", + "ungated_probes": { + "band_ratio": 0.312746274, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000171065331, + "mean_abs": 1.71256148e-05, + "psnr_db": 113.38697, + "ref_absmax": 5.46977997, + "rel_max": 3.12746274e-05, + "scaled_max_abs": 3.12746274e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.028585819, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.91278076e-05, + "mean_abs": 3.125392e-06, + "psnr_db": 138.047215, + "ref_absmax": 20.6843147, + "rel_max": 2.8585819e-06, + "scaled_max_abs": 2.8585819e-06 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_163" + }, + "status": "pass", + "tap": "net.features.7", + "ungated_probes": { + "band_ratio": 0.294206744, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.5234642e-05, + "mean_abs": 8.91243483e-06, + "psnr_db": 112.795016, + "ref_absmax": 2.89710021, + "rel_max": 2.94206744e-05, + "scaled_max_abs": 2.94206744e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0318643633, + "index": 9, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.19888306e-05, + "mean_abs": 3.99878499e-06, + "psnr_db": 135.595055, + "ref_absmax": 19.453968, + "rel_max": 3.18643633e-06, + "scaled_max_abs": 3.18643633e-06 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_189" + }, + "status": "pass", + "tap": "net.features.8", + "ungated_probes": { + "band_ratio": 0.174068164, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.3492527e-05, + "mean_abs": 1.08960607e-05, + "psnr_db": 114.633001, + "ref_absmax": 4.22205448, + "rel_max": 1.74068164e-05, + "scaled_max_abs": 1.74068164e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0685644815, + "index": 10, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.39610672e-05, + "mean_abs": 1.60867426e-06, + "psnr_db": 128.642248, + "ref_absmax": 3.49467635, + "rel_max": 6.85644815e-06, + "scaled_max_abs": 6.85644815e-06 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_215" + }, + "status": "pass", + "tap": "net.features.9", + "ungated_probes": { + "band_ratio": 0.180004421, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.12192535e-05, + "mean_abs": 2.94052008e-06, + "psnr_db": 114.830974, + "ref_absmax": 1.17881846, + "rel_max": 1.80004421e-05, + "scaled_max_abs": 1.80004421e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.101373347, + "index": 11, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.79085541e-05, + "mean_abs": 2.04077571e-06, + "psnr_db": 127.38104, + "ref_absmax": 3.73949909, + "rel_max": 1.01373347e-05, + "scaled_max_abs": 1.01373347e-05 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_241" + }, + "status": "pass", + "tap": "net.features.10", + "ungated_probes": { + "band_ratio": 0.145314043, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.3663044e-05, + "mean_abs": 3.26072866e-06, + "psnr_db": 116.91541, + "ref_absmax": 1.62840724, + "rel_max": 1.45314043e-05, + "scaled_max_abs": 1.45314043e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0977895667, + "index": 12, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.43458557e-05, + "mean_abs": 2.44803287e-06, + "psnr_db": 127.471406, + "ref_absmax": 4.53482485, + "rel_max": 9.77895667e-06, + "scaled_max_abs": 9.77895667e-06 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_267" + }, + "status": "pass", + "tap": "net.features.11", + "ungated_probes": { + "band_ratio": 0.177324706, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.99215317e-05, + "mean_abs": 3.7005928e-06, + "psnr_db": 116.810046, + "ref_absmax": 1.68738651, + "rel_max": 1.77324706e-05, + "scaled_max_abs": 1.77324706e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.104340095, + "index": 13, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000105381012, + "mean_abs": 1.53428941e-06, + "psnr_db": 129.472015, + "ref_absmax": 10.099762, + "rel_max": 1.04340095e-05, + "scaled_max_abs": 1.04340095e-05 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_273" + }, + "status": "pass", + "tap": "net.features.12", + "ungated_probes": { + "band_ratio": 0.127592483, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.20024109e-05, + "mean_abs": 1.71959395e-06, + "psnr_db": 125.85242, + "ref_absmax": 5.64315462, + "rel_max": 1.27592483e-05, + "scaled_max_abs": 1.27592483e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0569242162, + "index": 14, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.9861927e-05, + "mean_abs": 8.47039061e-07, + "psnr_db": 128.667895, + "ref_absmax": 5.24590921, + "rel_max": 5.69242162e-06, + "scaled_max_abs": 5.69242162e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x" + }, + "status": "pass", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 0.104316722, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.94907188e-05, + "mean_abs": 1.02541734e-06, + "psnr_db": 122.5076, + "ref_absmax": 1.8684175, + "rel_max": 1.04316722e-05, + "scaled_max_abs": 1.04316722e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0588598369, + "index": 15, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000143527985, + "mean_abs": 7.40784811e-06, + "psnr_db": 128.453753, + "ref_absmax": 24.3847065, + "rel_max": 5.88598369e-06, + "scaled_max_abs": 5.88598369e-06 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "pass", + "tap": "net.classifier", + "ungated_probes": { + "band_ratio": 0.0545479352, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.92062759e-05, + "mean_abs": 5.7469015e-06, + "psnr_db": 120.573745, + "ref_absmax": 5.35424042, + "rel_max": 5.45479352e-06, + "scaled_max_abs": 5.45479352e-06 + }, + "n_probes": 4 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.0583310433, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000105142593, + "mean_abs": 6.17089395e-06, + "psnr_db": 128.607455, + "ref_absmax": 18.0251522, + "rel_max": 5.83310433e-06, + "scaled_max_abs": 5.83310433e-06 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 16, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.08107465e-08, + "psnr_db": 164.245493, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.00112572895, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.38418579e-07, + "mean_abs": 4.66724468e-08, + "psnr_db": 130.436578, + "ref_absmax": 2.11790395, + "rel_max": 1.12572895e-07, + "scaled_max_abs": 1.12572895e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00361072193, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.10351562e-05, + "mean_abs": 3.23075084e-07, + "psnr_db": 165.187819, + "ref_absmax": 169.038651, + "rel_max": 3.61072193e-07, + "scaled_max_abs": 3.61072193e-07 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_7" + }, + "status": "pass", + "tap": "net.features.0", + "ungated_probes": { + "band_ratio": 0.00301177623, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-06, + "mean_abs": 3.57725008e-07, + "psnr_db": 154.82564, + "ref_absmax": 31.6648464, + "rel_max": 3.01177623e-07, + "scaled_max_abs": 3.01177623e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0153937664, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.87241554e-05, + "mean_abs": 1.68878429e-06, + "psnr_db": 146.318516, + "ref_absmax": 44.644146, + "rel_max": 1.53937664e-06, + "scaled_max_abs": 1.53937664e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_27" + }, + "status": "pass", + "tap": "net.features.1", + "ungated_probes": { + "band_ratio": 0.055234557, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.04715538e-05, + "mean_abs": 2.20760109e-06, + "psnr_db": 131.255547, + "ref_absmax": 7.32721615, + "rel_max": 5.5234557e-06, + "scaled_max_abs": 5.5234557e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0136285048, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.17232513e-05, + "mean_abs": 2.43601888e-06, + "psnr_db": 142.906833, + "ref_absmax": 30.6146946, + "rel_max": 1.36285048e-06, + "scaled_max_abs": 1.36285048e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_43" + }, + "status": "pass", + "tap": "net.features.2", + "ungated_probes": { + "band_ratio": 0.0861525833, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.71336937e-05, + "mean_abs": 3.88479582e-06, + "psnr_db": 122.05109, + "ref_absmax": 4.31022406, + "rel_max": 8.61525833e-06, + "scaled_max_abs": 8.61525833e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0355349915, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.29832458e-05, + "mean_abs": 4.135614e-06, + "psnr_db": 138.490513, + "ref_absmax": 26.1666718, + "rel_max": 3.55349915e-06, + "scaled_max_abs": 3.55349915e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59" + }, + "status": "pass", + "tap": "net.features.3", + "ungated_probes": { + "band_ratio": 0.253806711, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000170946121, + "mean_abs": 1.23293088e-05, + "psnr_db": 115.888091, + "ref_absmax": 6.73528767, + "rel_max": 2.53806711e-05, + "scaled_max_abs": 2.53806711e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0155269085, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.02791595e-05, + "mean_abs": 2.25469907e-06, + "psnr_db": 140.112892, + "ref_absmax": 19.5010872, + "rel_max": 1.55269085e-06, + "scaled_max_abs": 1.55269085e-06 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85" + }, + "status": "pass", + "tap": "net.features.4", + "ungated_probes": { + "band_ratio": 0.273572341, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.10623169e-05, + "mean_abs": 7.7233452e-06, + "psnr_db": 115.367168, + "ref_absmax": 2.96310353, + "rel_max": 2.73572341e-05, + "scaled_max_abs": 2.73572341e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0244400856, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.34329224e-05, + "mean_abs": 3.53038242e-06, + "psnr_db": 138.023101, + "ref_absmax": 30.0460987, + "rel_max": 2.44400856e-06, + "scaled_max_abs": 2.44400856e-06 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_111" + }, + "status": "pass", + "tap": "net.features.5", + "ungated_probes": { + "band_ratio": 0.579499244, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000144124031, + "mean_abs": 1.20314098e-05, + "psnr_db": 109.823176, + "ref_absmax": 2.48704433, + "rel_max": 5.79499244e-05, + "scaled_max_abs": 5.79499244e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0157817982, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000106811523, + "mean_abs": 5.2917976e-06, + "psnr_db": 144.026315, + "ref_absmax": 67.6801987, + "rel_max": 1.57817982e-06, + "scaled_max_abs": 1.57817982e-06 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_137" + }, + "status": "pass", + "tap": "net.features.6", + "ungated_probes": { + "band_ratio": 0.288906874, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000159561634, + "mean_abs": 1.65240438e-05, + "psnr_db": 113.622654, + "ref_absmax": 5.5229435, + "rel_max": 2.88906874e-05, + "scaled_max_abs": 2.88906874e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0573800132, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.91821289e-05, + "mean_abs": 3.26225295e-06, + "psnr_db": 136.104186, + "ref_absmax": 17.2851353, + "rel_max": 5.73800132e-06, + "scaled_max_abs": 5.73800132e-06 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_163" + }, + "status": "pass", + "tap": "net.features.7", + "ungated_probes": { + "band_ratio": 0.255181607, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.60555267e-05, + "mean_abs": 8.87299112e-06, + "psnr_db": 113.464954, + "ref_absmax": 2.98044705, + "rel_max": 2.55181607e-05, + "scaled_max_abs": 2.55181607e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0631587904, + "index": 9, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000105619431, + "mean_abs": 4.09940611e-06, + "psnr_db": 133.980045, + "ref_absmax": 16.7228394, + "rel_max": 6.31587904e-06, + "scaled_max_abs": 6.31587904e-06 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_189" + }, + "status": "pass", + "tap": "net.features.8", + "ungated_probes": { + "band_ratio": 0.16823046, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.8856945e-05, + "mean_abs": 1.07569462e-05, + "psnr_db": 115.278408, + "ref_absmax": 4.68743563, + "rel_max": 1.6823046e-05, + "scaled_max_abs": 1.6823046e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.110888285, + "index": 10, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.00258398e-05, + "mean_abs": 1.52256342e-06, + "psnr_db": 126.715513, + "ref_absmax": 2.7077558, + "rel_max": 1.10888285e-05, + "scaled_max_abs": 1.10888285e-05 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_215" + }, + "status": "pass", + "tap": "net.features.9", + "ungated_probes": { + "band_ratio": 0.141666556, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.72257423e-05, + "mean_abs": 2.83875855e-06, + "psnr_db": 115.59384, + "ref_absmax": 1.21593571, + "rel_max": 1.41666556e-05, + "scaled_max_abs": 1.41666556e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.126997167, + "index": 11, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.17232513e-05, + "mean_abs": 2.09874024e-06, + "psnr_db": 125.01337, + "ref_absmax": 3.28536868, + "rel_max": 1.26997167e-05, + "scaled_max_abs": 1.26997167e-05 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_241" + }, + "status": "pass", + "tap": "net.features.10", + "ungated_probes": { + "band_ratio": 0.160309592, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.78949738e-05, + "mean_abs": 3.17657952e-06, + "psnr_db": 117.605118, + "ref_absmax": 1.74006891, + "rel_max": 1.60309592e-05, + "scaled_max_abs": 1.60309592e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.129450857, + "index": 12, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.13866544e-05, + "mean_abs": 2.43962019e-06, + "psnr_db": 125.504408, + "ref_absmax": 3.9695878, + "rel_max": 1.29450857e-05, + "scaled_max_abs": 1.29450857e-05 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_267" + }, + "status": "pass", + "tap": "net.features.11", + "ungated_probes": { + "band_ratio": 0.138122641, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.51531601e-05, + "mean_abs": 3.72225032e-06, + "psnr_db": 117.31197, + "ref_absmax": 1.82107437, + "rel_max": 1.38122641e-05, + "scaled_max_abs": 1.38122641e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.170481486, + "index": 13, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000157833099, + "mean_abs": 1.41514613e-06, + "psnr_db": 129.031824, + "ref_absmax": 9.25807858, + "rel_max": 1.70481486e-05, + "scaled_max_abs": 1.70481486e-05 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_273" + }, + "status": "pass", + "tap": "net.features.12", + "ungated_probes": { + "band_ratio": 0.114366795, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.05718994e-05, + "mean_abs": 1.69050481e-06, + "psnr_db": 126.736045, + "ref_absmax": 6.17066336, + "rel_max": 1.14366795e-05, + "scaled_max_abs": 1.14366795e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0590360646, + "index": 14, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.06367874e-05, + "mean_abs": 7.14702252e-07, + "psnr_db": 130.106476, + "ref_absmax": 5.18950367, + "rel_max": 5.90360646e-06, + "scaled_max_abs": 5.90360646e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x" + }, + "status": "pass", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 0.0908301293, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.78813934e-05, + "mean_abs": 1.0778381e-06, + "psnr_db": 122.587847, + "ref_absmax": 1.96866322, + "rel_max": 9.08301293e-06, + "scaled_max_abs": 9.08301293e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0583310433, + "index": 15, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000105142593, + "mean_abs": 6.17033079e-06, + "psnr_db": 128.377023, + "ref_absmax": 18.0251522, + "rel_max": 5.83310433e-06, + "scaled_max_abs": 5.83310433e-06 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "pass", + "tap": "net.classifier", + "ungated_probes": { + "band_ratio": 0.0593634551, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.0875206e-05, + "mean_abs": 6.17483607e-06, + "psnr_db": 119.917565, + "ref_absmax": 5.20104599, + "rel_max": 5.93634551e-06, + "scaled_max_abs": 5.93634551e-06 + }, + "n_probes": 4 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp32", + "id": "mobilenet_v3_small__clean__coreml_fp32", + "model": "mobilenet_v3_small", + "path": "coreml", + "variant": "clean" + }, + "tap_bands_gate": true, + "verdict": "PASS" +} diff --git a/bench/verdicts_calibrated4/mobilenet_v3_small__clean__litert_fp16.json b/bench/verdicts_calibrated4/mobilenet_v3_small__clean__litert_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..1394f55a3ab1ba82c45fef4648d17402745a1989 --- /dev/null +++ b/bench/verdicts_calibrated4/mobilenet_v3_small__clean__litert_fp16.json @@ -0,0 +1,1246 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "baseline": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "faithful_output_rel_max": 0.0347403663, + "output_band": 0.0694807327, + "source": { + "bundle": "bundles/mobilenet_v3_small__clean__litert_fp16.json", + "case": "mobilenet_v3_small__clean__litert_fp16", + "digests": { + "192": { + "converted": "c1e0d3f6eacceb0f07eea7aaf062f75a642b665785bf323c4ed798c4c424167a", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "e68287c6bf447d1c5af1840f2957e8f25a438b576d35374a5a1e6bfa57051ad5", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + } + } + }, + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": false, + "note": null, + "status": "clear" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 0.000819612491, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000147819519, + "mean_abs": 7.12326743e-06, + "psnr_db": 125.094877, + "ref_absmax": 18.0352936, + "rel_max": 8.19612491e-06, + "scaled_max_abs": 8.19612491e-06 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 116, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 1, + "n_ops_total": 169, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "status": "clear" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp16", + "first_divergence": null, + "fp16_floor": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "baseline": { + "bundle": "bundles/mobilenet_v3_small__clean__litert_fp16.json", + "case": "mobilenet_v3_small__clean__litert_fp16", + "digests": { + "192": { + "converted": "c1e0d3f6eacceb0f07eea7aaf062f75a642b665785bf323c4ed798c4c424167a", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "e68287c6bf447d1c5af1840f2957e8f25a438b576d35374a5a1e6bfa57051ad5", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + } + }, + "envelopes_gate": true, + "faithful_output_rel_max": 0.0347403663, + "faithful_tap_rel_max": { + "net.avgpool": 0.0392971952, + "net.classifier": 0.0347403663, + "net.features.0": 0.000915032087, + "net.features.1": 0.000755872648, + "net.features.10": 0.0518188833, + "net.features.11": 0.076462924, + "net.features.12": 0.0775258635, + "net.features.2": 0.0015302635, + "net.features.3": 0.00279809812, + "net.features.4": 0.00289036457, + "net.features.5": 0.00403152459, + "net.features.6": 0.00394882259, + "net.features.7": 0.0169154072, + "net.features.8": 0.0238189477, + "net.features.9": 0.0426980192, + "normalize": 8.27203959e-08 + }, + "floor": 0.01, + "k": 2.0, + "output_band": 0.0694807327, + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used", + "tap_envelopes": { + "net.avgpool": 0.0785943904, + "net.classifier": 0.0694807327, + "net.features.0": 0.01, + "net.features.1": 0.01, + "net.features.10": 0.103637767, + "net.features.11": 0.152925848, + "net.features.12": 0.155051727, + "net.features.2": 0.01, + "net.features.3": 0.01, + "net.features.4": 0.01, + "net.features.5": 0.01, + "net.features.6": 0.01, + "net.features.7": 0.0338308144, + "net.features.8": 0.0476378955, + "net.features.9": 0.0853960383, + "normalize": 0.01 + } + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "c1e0d3f6eacceb0f07eea7aaf062f75a642b665785bf323c4ed798c4c424167a", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "e68287c6bf447d1c5af1840f2957e8f25a438b576d35374a5a1e6bfa57051ad5", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": null, + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_limit": 0.0694807327, + "band_ratio": 0.5, + "metrics": { + "corr": 0.999796187, + "finite": true, + "max_abs": 0.847133636, + "mean_abs": 0.020741918, + "psnr_db": 55.7641027, + "ref_absmax": 24.3847065, + "rel_max": 0.0347403663, + "scaled_max_abs": 0.0347403663 + }, + "per_op_band_ratio": 3.47403663, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 16, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 8.27203959e-06, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.26638033e-08, + "psnr_db": 163.904618, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "per_op_band_ratio": 8.27203959e-06, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0915032087, + "index": 1, + "metrics": { + "corr": 0.999999786, + "finite": true, + "max_abs": 0.173885822, + "mean_abs": 0.000502268084, + "psnr_db": 96.9119524, + "ref_absmax": 190.032486, + "rel_max": 0.000915032087, + "scaled_max_abs": 0.000915032087 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_0/torch.nn.modules.activation.Hardswish_2;" + }, + "per_op_band_ratio": 0.0915032087, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0727773511, + "index": 2, + "metrics": { + "corr": 0.999999501, + "finite": true, + "max_abs": 0.03307724, + "mean_abs": 0.00172972956, + "psnr_db": 89.9446481, + "ref_absmax": 45.4499092, + "rel_max": 0.000727773511, + "scaled_max_abs": 0.000727773511 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_1/torch.nn.modules.container.Sequential_block/t" + }, + "per_op_band_ratio": 0.0727773511, + "status": "pass", + "tap": "net.features.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.15302635, + "index": 3, + "metrics": { + "corr": 0.99999802, + "finite": true, + "max_abs": 0.0396288037, + "mean_abs": 0.00251701601, + "psnr_db": 80.5863503, + "ref_absmax": 25.896719, + "rel_max": 0.0015302635, + "scaled_max_abs": 0.0015302635 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_2/torch.nn.modules.container.Sequential_block/t" + }, + "per_op_band_ratio": 0.15302635, + "status": "pass", + "tap": "net.features.2" + }, + { + "band_limit": 0.01, + "band_ratio": 0.244577705, + "index": 4, + "metrics": { + "corr": 0.999994624, + "finite": true, + "max_abs": 0.0628845692, + "mean_abs": 0.00432135067, + "psnr_db": 76.8433382, + "ref_absmax": 25.7114887, + "rel_max": 0.00244577705, + "scaled_max_abs": 0.00244577705 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_3;" + }, + "per_op_band_ratio": 0.244577705, + "status": "pass", + "tap": "net.features.3" + }, + { + "band_limit": 0.01, + "band_ratio": 0.273230174, + "index": 5, + "metrics": { + "corr": 0.999981879, + "finite": true, + "max_abs": 0.0467441082, + "mean_abs": 0.0038035588, + "psnr_db": 72.274713, + "ref_absmax": 17.1079597, + "rel_max": 0.00273230174, + "scaled_max_abs": 0.00273230174 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_4/torch.nn.modules.container.Sequential_block/t" + }, + "per_op_band_ratio": 0.273230174, + "status": "pass", + "tap": "net.features.4" + }, + { + "band_limit": 0.01, + "band_ratio": 0.403152459, + "index": 6, + "metrics": { + "corr": 0.999956004, + "finite": true, + "max_abs": 0.0899780989, + "mean_abs": 0.00600733947, + "psnr_db": 69.8085829, + "ref_absmax": 22.3186283, + "rel_max": 0.00403152459, + "scaled_max_abs": 0.00403152459 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_5;" + }, + "per_op_band_ratio": 0.403152459, + "status": "pass", + "tap": "net.features.5" + }, + { + "band_limit": 0.01, + "band_ratio": 0.394882259, + "index": 7, + "metrics": { + "corr": 0.999974444, + "finite": true, + "max_abs": 0.247867882, + "mean_abs": 0.0121702154, + "psnr_db": 73.0406073, + "ref_absmax": 62.7700729, + "rel_max": 0.00394882259, + "scaled_max_abs": 0.00394882259 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_6;" + }, + "per_op_band_ratio": 0.394882259, + "status": "pass", + "tap": "net.features.6" + }, + { + "band_limit": 0.0338308144, + "band_ratio": 0.420242827, + "index": 8, + "metrics": { + "corr": 0.999941634, + "finite": true, + "max_abs": 0.294072151, + "mean_abs": 0.00577465295, + "psnr_db": 69.3943408, + "ref_absmax": 20.6843147, + "rel_max": 0.0142171571, + "scaled_max_abs": 0.0142171571 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_7/torch.nn.modules.container.Sequential_block/t" + }, + "per_op_band_ratio": 1.42171571, + "status": "pass", + "tap": "net.features.7" + }, + { + "band_limit": 0.0476378955, + "band_ratio": 0.365963706, + "index": 9, + "metrics": { + "corr": 0.999916718, + "finite": true, + "max_abs": 0.339155436, + "mean_abs": 0.00756068161, + "psnr_db": 66.8769751, + "ref_absmax": 19.453968, + "rel_max": 0.0174337408, + "scaled_max_abs": 0.0174337408 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_8;" + }, + "per_op_band_ratio": 1.74337408, + "status": "pass", + "tap": "net.features.8" + }, + { + "band_limit": 0.0853960383, + "band_ratio": 0.5, + "index": 10, + "metrics": { + "corr": 0.999817604, + "finite": true, + "max_abs": 0.149215758, + "mean_abs": 0.00381537326, + "psnr_db": 57.7094961, + "ref_absmax": 3.49467635, + "rel_max": 0.0426980192, + "scaled_max_abs": 0.0426980192 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_9/torch.nn.modules.container.Sequential_block/t" + }, + "per_op_band_ratio": 4.26980192, + "status": "pass", + "tap": "net.features.9" + }, + { + "band_limit": 0.103637767, + "band_ratio": 0.5, + "index": 11, + "metrics": { + "corr": 0.9998211, + "finite": true, + "max_abs": 0.193776667, + "mean_abs": 0.00464179122, + "psnr_db": 56.9399931, + "ref_absmax": 3.73949909, + "rel_max": 0.0518188833, + "scaled_max_abs": 0.0518188833 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_10;" + }, + "per_op_band_ratio": 5.18188833, + "status": "pass", + "tap": "net.features.10" + }, + { + "band_limit": 0.152925848, + "band_ratio": 0.5, + "index": 12, + "metrics": { + "corr": 0.999749585, + "finite": true, + "max_abs": 0.346745968, + "mean_abs": 0.00595789127, + "psnr_db": 55.8434454, + "ref_absmax": 4.53482485, + "rel_max": 0.076462924, + "scaled_max_abs": 0.076462924 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_11;" + }, + "per_op_band_ratio": 7.6462924, + "status": "pass", + "tap": "net.features.11" + }, + { + "band_limit": 0.155051727, + "band_ratio": 0.40802078, + "index": 13, + "metrics": { + "corr": 0.999553138, + "finite": true, + "max_abs": 0.638954639, + "mean_abs": 0.00377065967, + "psnr_db": 57.0997046, + "ref_absmax": 10.099762, + "rel_max": 0.0632643266, + "scaled_max_abs": 0.0632643266 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_12/torch.nn.modules.activation.Hardswish_2;" + }, + "per_op_band_ratio": 6.32643266, + "status": "pass", + "tap": "net.features.12" + }, + { + "band_limit": 0.0785943904, + "band_ratio": 0.5, + "index": 14, + "metrics": { + "corr": 0.999735141, + "finite": true, + "max_abs": 0.206149518, + "mean_abs": 0.00252011111, + "psnr_db": 56.0422076, + "ref_absmax": 5.24590921, + "rel_max": 0.0392971952, + "scaled_max_abs": 0.0392971952 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;;zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Seque" + }, + "per_op_band_ratio": 3.92971952, + "status": "pass", + "tap": "net.avgpool" + }, + { + "band_limit": 0.0694807327, + "band_ratio": 0.5, + "index": 15, + "metrics": { + "corr": 0.999796187, + "finite": true, + "max_abs": 0.847133636, + "mean_abs": 0.020741918, + "psnr_db": 55.7641027, + "ref_absmax": 24.3847065, + "rel_max": 0.0347403663, + "scaled_max_abs": 0.0347403663 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "per_op_band_ratio": 3.47403663, + "status": "pass", + "tap": "net.classifier" + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.90625, + "band_limit": 0.0694807327, + "band_ratio": 0.390894098, + "metrics": { + "corr": 0.999929741, + "finite": true, + "max_abs": 0.489556074, + "mean_abs": 0.0129197023, + "psnr_db": 59.4536219, + "ref_absmax": 18.0251522, + "rel_max": 0.0271596083, + "scaled_max_abs": 0.0271596083 + }, + "per_op_band_ratio": 2.71596083, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 16, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 8.27203959e-06, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.2793459e-08, + "psnr_db": 164.013874, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "per_op_band_ratio": 8.27203959e-06, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0868202319, + "index": 1, + "metrics": { + "corr": 0.999999767, + "finite": true, + "max_abs": 0.146759748, + "mean_abs": 0.000503267604, + "psnr_db": 96.0452891, + "ref_absmax": 169.038651, + "rel_max": 0.000868202319, + "scaled_max_abs": 0.000868202319 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_0/torch.nn.modules.activation.Hardswish_2;" + }, + "per_op_band_ratio": 0.0868202319, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0755872648, + "index": 2, + "metrics": { + "corr": 0.999999435, + "finite": true, + "max_abs": 0.0337452888, + "mean_abs": 0.00172548561, + "psnr_db": 89.4320948, + "ref_absmax": 44.644146, + "rel_max": 0.000755872648, + "scaled_max_abs": 0.000755872648 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_1/torch.nn.modules.container.Sequential_block/t" + }, + "per_op_band_ratio": 0.0755872648, + "status": "pass", + "tap": "net.features.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.127885996, + "index": 3, + "metrics": { + "corr": 0.999997629, + "finite": true, + "max_abs": 0.039151907, + "mean_abs": 0.00258047824, + "psnr_db": 81.5125813, + "ref_absmax": 30.6146946, + "rel_max": 0.00127885996, + "scaled_max_abs": 0.00127885996 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_2/torch.nn.modules.container.Sequential_block/t" + }, + "per_op_band_ratio": 0.127885996, + "status": "pass", + "tap": "net.features.2" + }, + { + "band_limit": 0.01, + "band_ratio": 0.279809812, + "index": 4, + "metrics": { + "corr": 0.999994277, + "finite": true, + "max_abs": 0.0732169151, + "mean_abs": 0.00442955329, + "psnr_db": 76.6613702, + "ref_absmax": 26.1666718, + "rel_max": 0.00279809812, + "scaled_max_abs": 0.00279809812 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_3;" + }, + "per_op_band_ratio": 0.279809812, + "status": "pass", + "tap": "net.features.3" + }, + { + "band_limit": 0.01, + "band_ratio": 0.289036457, + "index": 5, + "metrics": { + "corr": 0.999980992, + "finite": true, + "max_abs": 0.0563652515, + "mean_abs": 0.00400878569, + "psnr_db": 72.9879694, + "ref_absmax": 19.5010872, + "rel_max": 0.00289036457, + "scaled_max_abs": 0.00289036457 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_4/torch.nn.modules.container.Sequential_block/t" + }, + "per_op_band_ratio": 0.289036457, + "status": "pass", + "tap": "net.features.4" + }, + { + "band_limit": 0.01, + "band_ratio": 0.310832262, + "index": 6, + "metrics": { + "corr": 0.999956355, + "finite": true, + "max_abs": 0.0933929682, + "mean_abs": 0.00625826495, + "psnr_db": 71.6653247, + "ref_absmax": 30.0460987, + "rel_max": 0.00310832262, + "scaled_max_abs": 0.00310832262 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_5;" + }, + "per_op_band_ratio": 0.310832262, + "status": "pass", + "tap": "net.features.5" + }, + { + "band_limit": 0.01, + "band_ratio": 0.292023152, + "index": 7, + "metrics": { + "corr": 0.999987205, + "finite": true, + "max_abs": 0.19764185, + "mean_abs": 0.00882840116, + "psnr_db": 77.7884462, + "ref_absmax": 67.6801987, + "rel_max": 0.00292023152, + "scaled_max_abs": 0.00292023152 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_6;" + }, + "per_op_band_ratio": 0.292023152, + "status": "pass", + "tap": "net.features.6" + }, + { + "band_limit": 0.0338308144, + "band_ratio": 0.5, + "index": 8, + "metrics": { + "corr": 0.999942873, + "finite": true, + "max_abs": 0.292385101, + "mean_abs": 0.00539707911, + "psnr_db": 68.9160235, + "ref_absmax": 17.2851353, + "rel_max": 0.0169154072, + "scaled_max_abs": 0.0169154072 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_7/torch.nn.modules.container.Sequential_block/t" + }, + "per_op_band_ratio": 1.69154072, + "status": "pass", + "tap": "net.features.7" + }, + { + "band_limit": 0.0476378955, + "band_ratio": 0.5, + "index": 9, + "metrics": { + "corr": 0.999929405, + "finite": true, + "max_abs": 0.398320436, + "mean_abs": 0.00659560857, + "psnr_db": 67.0793221, + "ref_absmax": 16.7228394, + "rel_max": 0.0238189477, + "scaled_max_abs": 0.0238189477 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_8;" + }, + "per_op_band_ratio": 2.38189477, + "status": "pass", + "tap": "net.features.8" + }, + { + "band_limit": 0.0853960383, + "band_ratio": 0.452316675, + "index": 10, + "metrics": { + "corr": 0.99987447, + "finite": true, + "max_abs": 0.104589917, + "mean_abs": 0.0031962443, + "psnr_db": 57.4378382, + "ref_absmax": 2.7077558, + "rel_max": 0.0386260521, + "scaled_max_abs": 0.0386260521 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_9/torch.nn.modules.container.Sequential_block/t" + }, + "per_op_band_ratio": 3.86260521, + "status": "pass", + "tap": "net.features.9" + }, + { + "band_limit": 0.103637767, + "band_ratio": 0.411064243, + "index": 11, + "metrics": { + "corr": 0.999873544, + "finite": true, + "max_abs": 0.139962554, + "mean_abs": 0.00412300785, + "psnr_db": 56.8254194, + "ref_absmax": 3.28536868, + "rel_max": 0.0426017801, + "scaled_max_abs": 0.0426017801 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_10;" + }, + "per_op_band_ratio": 4.26017801, + "status": "pass", + "tap": "net.features.10" + }, + { + "band_limit": 0.152925848, + "band_ratio": 0.355596578, + "index": 12, + "metrics": { + "corr": 0.999847259, + "finite": true, + "max_abs": 0.215865821, + "mean_abs": 0.00501177022, + "psnr_db": 56.3378385, + "ref_absmax": 3.9695878, + "rel_max": 0.0543799083, + "scaled_max_abs": 0.0543799083 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_11;" + }, + "per_op_band_ratio": 5.43799083, + "status": "pass", + "tap": "net.features.11" + }, + { + "band_limit": 0.155051727, + "band_ratio": 0.5, + "index": 13, + "metrics": { + "corr": 0.999759024, + "finite": true, + "max_abs": 0.717740536, + "mean_abs": 0.00289672989, + "psnr_db": 59.4037277, + "ref_absmax": 9.25807858, + "rel_max": 0.0775258635, + "scaled_max_abs": 0.0775258635 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_12/torch.nn.modules.activation.Hardswish_2;" + }, + "per_op_band_ratio": 7.75258635, + "status": "pass", + "tap": "net.features.12" + }, + { + "band_limit": 0.0785943904, + "band_ratio": 0.340164794, + "index": 14, + "metrics": { + "corr": 0.999878283, + "finite": true, + "max_abs": 0.138741612, + "mean_abs": 0.001866989, + "psnr_db": 59.520476, + "ref_absmax": 5.18950367, + "rel_max": 0.0267350447, + "scaled_max_abs": 0.0267350447 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;;zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Seque" + }, + "per_op_band_ratio": 2.67350447, + "status": "pass", + "tap": "net.avgpool" + }, + { + "band_limit": 0.0694807327, + "band_ratio": 0.390894098, + "index": 15, + "metrics": { + "corr": 0.999929741, + "finite": true, + "max_abs": 0.489556074, + "mean_abs": 0.0129197023, + "psnr_db": 59.4536219, + "ref_absmax": 18.0251522, + "rel_max": 0.0271596083, + "scaled_max_abs": 0.0271596083 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "per_op_band_ratio": 2.71596083, + "status": "pass", + "tap": "net.classifier" + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp16", + "id": "mobilenet_v3_small__clean__litert_fp16", + "model": "mobilenet_v3_small", + "path": "litert", + "variant": "clean" + }, + "tap_bands_gate": true, + "verdict": "PASS" +} diff --git a/bench/verdicts_calibrated4/mobilenet_v3_small__clean__litert_fp32.json b/bench/verdicts_calibrated4/mobilenet_v3_small__clean__litert_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..8cf601cbe9ee2371d02f8ff913fe062ed74fb6db --- /dev/null +++ b/bench/verdicts_calibrated4/mobilenet_v3_small__clean__litert_fp32.json @@ -0,0 +1,1651 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": false, + "note": null, + "status": "clear" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 0.0424586551, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.65323639e-05, + "mean_abs": 5.22898112e-06, + "psnr_db": 129.391437, + "ref_absmax": 18.0251503, + "rel_max": 4.24586551e-06, + "scaled_max_abs": 4.24586551e-06 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 116, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 1, + "n_ops_total": 115, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "status": "clear" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp32", + "first_divergence": null, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "ae900cefbb664515505668ae7e2ecf32bb5678c0086fc3f50631315e83813dff", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "c36975cfb849c7ada8d16f7d9092d26f036c91003ab72083b1229da6c2050418", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "fp32 per-tap band on near-zero probes", + "reason": "C3-2: per-tap fp32 checks gate without the near_zero probes; they are measured and reported per tap ('ungated_probes'); the output gates on all probes. C4-1: when the output has failed and no gated tap fails, they localise the first divergence (earliest tap over band on all probes)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": null, + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.0465403361, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000113487244, + "mean_abs": 7.53016735e-06, + "psnr_db": 127.842258, + "ref_absmax": 24.3847065, + "rel_max": 4.65403361e-06, + "scaled_max_abs": 4.65403361e-06 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 16, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.06644368e-08, + "psnr_db": 164.113247, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.00112572895, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.38418579e-07, + "mean_abs": 4.66593688e-08, + "psnr_db": 130.397207, + "ref_absmax": 2.11790395, + "rel_max": 1.12572895e-07, + "scaled_max_abs": 1.12572895e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00421552358, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.01086426e-05, + "mean_abs": 2.23370674e-07, + "psnr_db": 165.657432, + "ref_absmax": 190.032486, + "rel_max": 4.21552358e-07, + "scaled_max_abs": 4.21552358e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_0/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "pass", + "tap": "net.features.0", + "ungated_probes": { + "band_ratio": 0.00361820398, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.14440918e-05, + "mean_abs": 2.56149109e-07, + "psnr_db": 155.713417, + "ref_absmax": 31.6292057, + "rel_max": 3.61820398e-07, + "scaled_max_abs": 3.61820398e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00902267932, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.10079956e-05, + "mean_abs": 9.67378308e-07, + "psnr_db": 153.228025, + "ref_absmax": 45.4499092, + "rel_max": 9.02267932e-07, + "scaled_max_abs": 9.02267932e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_1/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.1", + "ungated_probes": { + "band_ratio": 0.025039569, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.83582306e-05, + "mean_abs": 1.29241986e-06, + "psnr_db": 136.937056, + "ref_absmax": 7.33168793, + "rel_max": 2.5039569e-06, + "scaled_max_abs": 2.5039569e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0102192337, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.64644623e-05, + "mean_abs": 1.372611e-06, + "psnr_db": 146.859391, + "ref_absmax": 25.896719, + "rel_max": 1.02192337e-06, + "scaled_max_abs": 1.02192337e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_2/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.2", + "ungated_probes": { + "band_ratio": 0.0581152912, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.50339508e-05, + "mean_abs": 2.65888499e-06, + "psnr_db": 125.664736, + "ref_absmax": 4.30763578, + "rel_max": 5.81152912e-06, + "scaled_max_abs": 5.81152912e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0246657604, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.3419342e-05, + "mean_abs": 2.49627755e-06, + "psnr_db": 142.510585, + "ref_absmax": 25.7114887, + "rel_max": 2.46657604e-06, + "scaled_max_abs": 2.46657604e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_3;" + }, + "status": "pass", + "tap": "net.features.3", + "ungated_probes": { + "band_ratio": 0.122535583, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.24928284e-05, + "mean_abs": 7.32266306e-06, + "psnr_db": 120.811448, + "ref_absmax": 6.73215294, + "rel_max": 1.22535583e-05, + "scaled_max_abs": 1.22535583e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0202770545, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.46899033e-05, + "mean_abs": 1.53729991e-06, + "psnr_db": 141.607714, + "ref_absmax": 17.1079597, + "rel_max": 2.02770545e-06, + "scaled_max_abs": 2.02770545e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_4/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.4", + "ungated_probes": { + "band_ratio": 0.136702185, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.00543213e-05, + "mean_abs": 5.31280869e-06, + "psnr_db": 118.349861, + "ref_absmax": 2.93004251, + "rel_max": 1.36702185e-05, + "scaled_max_abs": 1.36702185e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0216320473, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.82797623e-05, + "mean_abs": 2.23640806e-06, + "psnr_db": 139.894542, + "ref_absmax": 22.3186283, + "rel_max": 2.16320473e-06, + "scaled_max_abs": 2.16320473e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_5;" + }, + "status": "pass", + "tap": "net.features.5", + "ungated_probes": { + "band_ratio": 0.196906272, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.67436218e-05, + "mean_abs": 8.17938514e-06, + "psnr_db": 114.200378, + "ref_absmax": 2.88175797, + "rel_max": 1.96906272e-05, + "scaled_max_abs": 1.96906272e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0144334801, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.05990601e-05, + "mean_abs": 4.67391164e-06, + "psnr_db": 142.305302, + "ref_absmax": 62.7700729, + "rel_max": 1.44334801e-06, + "scaled_max_abs": 1.44334801e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_6;" + }, + "status": "pass", + "tap": "net.features.6", + "ungated_probes": { + "band_ratio": 0.134252059, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.34329224e-05, + "mean_abs": 1.08538985e-05, + "psnr_db": 117.608597, + "ref_absmax": 5.46977997, + "rel_max": 1.34252059e-05, + "scaled_max_abs": 1.34252059e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0253583878, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.24520874e-05, + "mean_abs": 2.47024943e-06, + "psnr_db": 139.355167, + "ref_absmax": 20.6843147, + "rel_max": 2.53583878e-06, + "scaled_max_abs": 2.53583878e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_7/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.7", + "ungated_probes": { + "band_ratio": 0.122311825, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.54349613e-05, + "mean_abs": 5.22179201e-06, + "psnr_db": 117.477156, + "ref_absmax": 2.89710021, + "rel_max": 1.22311825e-05, + "scaled_max_abs": 1.22311825e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0509829813, + "index": 9, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.91821289e-05, + "mean_abs": 3.40678931e-06, + "psnr_db": 135.508004, + "ref_absmax": 19.453968, + "rel_max": 5.09829813e-06, + "scaled_max_abs": 5.09829813e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_8;" + }, + "status": "pass", + "tap": "net.features.8", + "ungated_probes": { + "band_ratio": 0.0974104078, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.11272049e-05, + "mean_abs": 6.33489765e-06, + "psnr_db": 119.369422, + "ref_absmax": 4.22205448, + "rel_max": 9.74104078e-06, + "scaled_max_abs": 9.74104078e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0743634675, + "index": 10, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.59876251e-05, + "mean_abs": 1.4874841e-06, + "psnr_db": 127.724578, + "ref_absmax": 3.49467635, + "rel_max": 7.43634675e-06, + "scaled_max_abs": 7.43634675e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_9/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.9", + "ungated_probes": { + "band_ratio": 0.0965754058, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.13844872e-05, + "mean_abs": 1.82075598e-06, + "psnr_db": 119.080165, + "ref_absmax": 1.17881846, + "rel_max": 9.65754058e-06, + "scaled_max_abs": 9.65754058e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0946788811, + "index": 11, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.5405159e-05, + "mean_abs": 1.91990474e-06, + "psnr_db": 126.7358, + "ref_absmax": 3.73949909, + "rel_max": 9.46788811e-06, + "scaled_max_abs": 9.46788811e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_10;" + }, + "status": "pass", + "tap": "net.features.10", + "ungated_probes": { + "band_ratio": 0.0900434624, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.46627426e-05, + "mean_abs": 2.16530114e-06, + "psnr_db": 120.449754, + "ref_absmax": 1.62840724, + "rel_max": 9.00434624e-06, + "scaled_max_abs": 9.00434624e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0855001521, + "index": 12, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.87728214e-05, + "mean_abs": 2.38909974e-06, + "psnr_db": 126.721429, + "ref_absmax": 4.53482485, + "rel_max": 8.55001521e-06, + "scaled_max_abs": 8.55001521e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_11;" + }, + "status": "pass", + "tap": "net.features.11", + "ungated_probes": { + "band_ratio": 0.101732102, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.71661377e-05, + "mean_abs": 2.45436712e-06, + "psnr_db": 120.395457, + "ref_absmax": 1.68738651, + "rel_max": 1.01732102e-05, + "scaled_max_abs": 1.01732102e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0878156453, + "index": 13, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.86917114e-05, + "mean_abs": 1.47052641e-06, + "psnr_db": 129.026003, + "ref_absmax": 10.099762, + "rel_max": 8.78156453e-06, + "scaled_max_abs": 8.78156453e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_12/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "pass", + "tap": "net.features.12", + "ungated_probes": { + "band_ratio": 0.0811183997, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.57763672e-05, + "mean_abs": 1.15677251e-06, + "psnr_db": 129.180149, + "ref_absmax": 5.64315462, + "rel_max": 8.11183997e-06, + "scaled_max_abs": 8.11183997e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0679454716, + "index": 14, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.56435776e-05, + "mean_abs": 9.18996696e-07, + "psnr_db": 127.07966, + "ref_absmax": 5.24590921, + "rel_max": 6.79454716e-06, + "scaled_max_abs": 6.79454716e-06 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;;zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Seque" + }, + "status": "pass", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 0.0618882079, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.15633011e-05, + "mean_abs": 7.06318474e-07, + "psnr_db": 125.671579, + "ref_absmax": 1.8684175, + "rel_max": 6.18882079e-06, + "scaled_max_abs": 6.18882079e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0465403361, + "index": 15, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000113487244, + "mean_abs": 7.9073423e-06, + "psnr_db": 127.369954, + "ref_absmax": 24.3847065, + "rel_max": 4.65403361e-06, + "scaled_max_abs": 4.65403361e-06 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "pass", + "tap": "net.classifier", + "ungated_probes": { + "band_ratio": 0.0369590092, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.97887421e-05, + "mean_abs": 4.88994271e-06, + "psnr_db": 122.059996, + "ref_absmax": 5.35424042, + "rel_max": 3.69590092e-06, + "scaled_max_abs": 3.69590092e-06 + }, + "n_probes": 4 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.0833300619, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000150203705, + "mean_abs": 6.17952022e-06, + "psnr_db": 127.925342, + "ref_absmax": 18.0251522, + "rel_max": 8.33300619e-06, + "scaled_max_abs": 8.33300619e-06 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 16, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.08107465e-08, + "psnr_db": 164.245493, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.00112572895, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.38418579e-07, + "mean_abs": 4.66724468e-08, + "psnr_db": 130.436578, + "ref_absmax": 2.11790395, + "rel_max": 1.12572895e-07, + "scaled_max_abs": 1.12572895e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00530324784, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.96453857e-05, + "mean_abs": 2.21019027e-07, + "psnr_db": 164.991666, + "ref_absmax": 169.038651, + "rel_max": 5.30324784e-07, + "scaled_max_abs": 5.30324784e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_0/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "pass", + "tap": "net.features.0", + "ungated_probes": { + "band_ratio": 0.00301177623, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-06, + "mean_abs": 2.5584388e-07, + "psnr_db": 155.735357, + "ref_absmax": 31.6648464, + "rel_max": 3.01177623e-07, + "scaled_max_abs": 3.01177623e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00747659079, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.33786011e-05, + "mean_abs": 9.63280999e-07, + "psnr_db": 152.706072, + "ref_absmax": 44.644146, + "rel_max": 7.47659079e-07, + "scaled_max_abs": 7.47659079e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_1/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.1", + "ungated_probes": { + "band_ratio": 0.0260310136, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.90734863e-05, + "mean_abs": 1.29547133e-06, + "psnr_db": 136.91535, + "ref_absmax": 7.32721615, + "rel_max": 2.60310136e-06, + "scaled_max_abs": 2.60310136e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0121488386, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.71932983e-05, + "mean_abs": 1.43917319e-06, + "psnr_db": 147.492171, + "ref_absmax": 30.6146946, + "rel_max": 1.21488386e-06, + "scaled_max_abs": 1.21488386e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_2/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.2", + "ungated_probes": { + "band_ratio": 0.0467408879, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.01463699e-05, + "mean_abs": 2.6522391e-06, + "psnr_db": 125.699938, + "ref_absmax": 4.31022406, + "rel_max": 4.67408879e-06, + "scaled_max_abs": 4.67408879e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0325737422, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.5234642e-05, + "mean_abs": 2.62922129e-06, + "psnr_db": 141.896281, + "ref_absmax": 26.1666718, + "rel_max": 3.25737422e-06, + "scaled_max_abs": 3.25737422e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_3;" + }, + "status": "pass", + "tap": "net.features.3", + "ungated_probes": { + "band_ratio": 0.126018395, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.48770142e-05, + "mean_abs": 7.31913275e-06, + "psnr_db": 120.856015, + "ref_absmax": 6.73528767, + "rel_max": 1.26018395e-05, + "scaled_max_abs": 1.26018395e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0219455123, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.27961349e-05, + "mean_abs": 1.68728369e-06, + "psnr_db": 141.5239, + "ref_absmax": 19.5010872, + "rel_max": 2.19455123e-06, + "scaled_max_abs": 2.19455123e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_4/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.4", + "ungated_probes": { + "band_ratio": 0.1279353, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.79085541e-05, + "mean_abs": 5.26862247e-06, + "psnr_db": 118.522554, + "ref_absmax": 2.96310353, + "rel_max": 1.279353e-05, + "scaled_max_abs": 1.279353e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0270586662, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.13007355e-05, + "mean_abs": 2.59491651e-06, + "psnr_db": 140.10937, + "ref_absmax": 30.0460987, + "rel_max": 2.70586662e-06, + "scaled_max_abs": 2.70586662e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_5;" + }, + "status": "pass", + "tap": "net.features.5", + "ungated_probes": { + "band_ratio": 0.218091113, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.42402267e-05, + "mean_abs": 8.09668706e-06, + "psnr_db": 113.577923, + "ref_absmax": 2.48704433, + "rel_max": 2.18091113e-05, + "scaled_max_abs": 2.18091113e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0154295259, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000104427338, + "mean_abs": 3.95868159e-06, + "psnr_db": 145.876093, + "ref_absmax": 67.6801987, + "rel_max": 1.54295259e-06, + "scaled_max_abs": 1.54295259e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_6;" + }, + "status": "pass", + "tap": "net.features.6", + "ungated_probes": { + "band_ratio": 0.130585475, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.21216202e-05, + "mean_abs": 1.07203002e-05, + "psnr_db": 117.71359, + "ref_absmax": 5.5229435, + "rel_max": 1.30585475e-05, + "scaled_max_abs": 1.30585475e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0446902026, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.72476196e-05, + "mean_abs": 2.57999328e-06, + "psnr_db": 137.359282, + "ref_absmax": 17.2851353, + "rel_max": 4.46902026e-06, + "scaled_max_abs": 4.46902026e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_7/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.7", + "ungated_probes": { + "band_ratio": 0.128390746, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.82661819e-05, + "mean_abs": 5.17224504e-06, + "psnr_db": 118.200209, + "ref_absmax": 2.98044705, + "rel_max": 1.28390746e-05, + "scaled_max_abs": 1.28390746e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.053606558, + "index": 9, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.96453857e-05, + "mean_abs": 3.31185025e-06, + "psnr_db": 134.885689, + "ref_absmax": 16.7228394, + "rel_max": 5.3606558e-06, + "scaled_max_abs": 5.3606558e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_8;" + }, + "status": "pass", + "tap": "net.features.8", + "ungated_probes": { + "band_ratio": 0.109356157, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.12599945e-05, + "mean_abs": 6.35594693e-06, + "psnr_db": 119.953702, + "ref_absmax": 4.68743563, + "rel_max": 1.09356157e-05, + "scaled_max_abs": 1.09356157e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.120188593, + "index": 10, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.2544136e-05, + "mean_abs": 1.39313289e-06, + "psnr_db": 126.65141, + "ref_absmax": 2.7077558, + "rel_max": 1.20188593e-05, + "scaled_max_abs": 1.20188593e-05 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_9/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.9", + "ungated_probes": { + "band_ratio": 0.0892156163, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.08480453e-05, + "mean_abs": 1.82677745e-06, + "psnr_db": 119.451318, + "ref_absmax": 1.21593571, + "rel_max": 8.92156163e-06, + "scaled_max_abs": 8.92156163e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.149856656, + "index": 11, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.92334366e-05, + "mean_abs": 1.8963299e-06, + "psnr_db": 125.385663, + "ref_absmax": 3.28536868, + "rel_max": 1.49856656e-05, + "scaled_max_abs": 1.49856656e-05 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_10;" + }, + "status": "pass", + "tap": "net.features.10", + "ungated_probes": { + "band_ratio": 0.0941990124, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.63912773e-05, + "mean_abs": 2.19949684e-06, + "psnr_db": 120.767674, + "ref_absmax": 1.74006891, + "rel_max": 9.41990124e-06, + "scaled_max_abs": 9.41990124e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.148051089, + "index": 12, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.87701797e-05, + "mean_abs": 2.31454396e-06, + "psnr_db": 125.234491, + "ref_absmax": 3.9695878, + "rel_max": 1.48051089e-05, + "scaled_max_abs": 1.48051089e-05 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_11;" + }, + "status": "pass", + "tap": "net.features.11", + "ungated_probes": { + "band_ratio": 0.16103398, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.93254852e-05, + "mean_abs": 2.48031386e-06, + "psnr_db": 120.819459, + "ref_absmax": 1.82107437, + "rel_max": 1.6103398e-05, + "scaled_max_abs": 1.6103398e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.210784133, + "index": 13, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000195145607, + "mean_abs": 1.3946212e-06, + "psnr_db": 128.36759, + "ref_absmax": 9.25807858, + "rel_max": 2.10784133e-05, + "scaled_max_abs": 2.10784133e-05 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_12/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "pass", + "tap": "net.features.12", + "ungated_probes": { + "band_ratio": 0.155322472, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.58442688e-05, + "mean_abs": 1.13968696e-06, + "psnr_db": 129.547508, + "ref_absmax": 6.17066336, + "rel_max": 1.55322472e-05, + "scaled_max_abs": 1.55322472e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0721296665, + "index": 14, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.74317169e-05, + "mean_abs": 8.19987514e-07, + "psnr_db": 128.444302, + "ref_absmax": 5.18950367, + "rel_max": 7.21296665e-06, + "scaled_max_abs": 7.21296665e-06 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;;zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Seque" + }, + "status": "pass", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 0.063732474, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.25467777e-05, + "mean_abs": 7.12922252e-07, + "psnr_db": 126.111953, + "ref_absmax": 1.96866322, + "rel_max": 6.3732474e-06, + "scaled_max_abs": 6.3732474e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0833300619, + "index": 15, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000150203705, + "mean_abs": 6.37644037e-06, + "psnr_db": 127.520704, + "ref_absmax": 18.0251522, + "rel_max": 8.33300619e-06, + "scaled_max_abs": 8.33300619e-06 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "pass", + "tap": "net.classifier", + "ungated_probes": { + "band_ratio": 0.0366724047, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.90734863e-05, + "mean_abs": 4.80107917e-06, + "psnr_db": 122.146171, + "ref_absmax": 5.20104599, + "rel_max": 3.66724047e-06, + "scaled_max_abs": 3.66724047e-06 + }, + "n_probes": 4 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp32", + "id": "mobilenet_v3_small__clean__litert_fp32", + "model": "mobilenet_v3_small", + "path": "litert", + "variant": "clean" + }, + "tap_bands_gate": true, + "verdict": "PASS" +} diff --git a/bench/verdicts_calibrated4/mobilenet_v3_small__clean__onnx_fp16.json b/bench/verdicts_calibrated4/mobilenet_v3_small__clean__onnx_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..6309a81c74955b98edccd61d7788f91fe5f646f9 --- /dev/null +++ b/bench/verdicts_calibrated4/mobilenet_v3_small__clean__onnx_fp16.json @@ -0,0 +1,1087 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "baseline": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "faithful_output_rel_max": 0.0310759602, + "output_band": 0.0621519203, + "source": { + "bundle": "bundles/mobilenet_v3_small__clean__onnx_fp16.json", + "case": "mobilenet_v3_small__clean__onnx_fp16", + "digests": { + "192": { + "converted": "0f5c1e94183c9903ece898f192769178a20e4556d20c0b1ef4fc23502e5893f5", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "8ce44e6b921ee910b6c36de85b86a9608df76e3c1728f56afa10f6f5dd60ae3c", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + } + } + }, + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": false, + "note": null, + "status": "clear" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "status": "clear" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp16", + "first_divergence": null, + "fp16_floor": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "baseline": { + "bundle": "bundles/mobilenet_v3_small__clean__onnx_fp16.json", + "case": "mobilenet_v3_small__clean__onnx_fp16", + "digests": { + "192": { + "converted": "0f5c1e94183c9903ece898f192769178a20e4556d20c0b1ef4fc23502e5893f5", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "8ce44e6b921ee910b6c36de85b86a9608df76e3c1728f56afa10f6f5dd60ae3c", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + } + }, + "envelopes_gate": true, + "faithful_output_rel_max": 0.0310759602, + "faithful_tap_rel_max": { + "net.avgpool": 0.0352594163, + "net.classifier": 0.0310759602, + "net.features.0": 0.000908058909, + "net.features.1": 0.000745469506, + "net.features.10": 0.0449988479, + "net.features.11": 0.0678471375, + "net.features.12": 0.0582480643, + "net.features.2": 0.00192673754, + "net.features.3": 0.00290781924, + "net.features.4": 0.00476705887, + "net.features.5": 0.00533482606, + "net.features.6": 0.00813875363, + "net.features.7": 0.012498691, + "net.features.8": 0.0198082609, + "net.features.9": 0.0376845229, + "normalize": 0.000441313312 + }, + "floor": 0.01, + "k": 2.0, + "output_band": 0.0621519203, + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used", + "tap_envelopes": { + "net.avgpool": 0.0705188325, + "net.classifier": 0.0621519203, + "net.features.0": 0.01, + "net.features.1": 0.01, + "net.features.10": 0.0899976958, + "net.features.11": 0.135694275, + "net.features.12": 0.116496129, + "net.features.2": 0.01, + "net.features.3": 0.01, + "net.features.4": 0.01, + "net.features.5": 0.0106696521, + "net.features.6": 0.0162775073, + "net.features.7": 0.024997382, + "net.features.8": 0.0396165217, + "net.features.9": 0.0753690458, + "normalize": 0.01 + } + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "0f5c1e94183c9903ece898f192769178a20e4556d20c0b1ef4fc23502e5893f5", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "8ce44e6b921ee910b6c36de85b86a9608df76e3c1728f56afa10f6f5dd60ae3c", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": null, + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_limit": 0.0621519203, + "band_ratio": 0.5, + "metrics": { + "corr": 0.999689586, + "finite": true, + "max_abs": 0.757778168, + "mean_abs": 0.0324179629, + "psnr_db": 54.0300036, + "ref_absmax": 24.3847065, + "rel_max": 0.0310759602, + "scaled_max_abs": 0.0310759602 + }, + "per_op_band_ratio": 3.10759602, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 16, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 0.0441313312, + "index": 0, + "metrics": { + "corr": 0.999999966, + "finite": true, + "max_abs": 0.00508785248, + "mean_abs": 0.000405953078, + "psnr_db": 88.0186903, + "ref_absmax": 11.5288897, + "rel_max": 0.000441313312, + "scaled_max_abs": 0.000441313312 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "per_op_band_ratio": 0.0441313312, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0908058909, + "index": 1, + "metrics": { + "corr": 0.999999747, + "finite": true, + "max_abs": 0.172560692, + "mean_abs": 0.000883766055, + "psnr_db": 96.2909345, + "ref_absmax": 190.032486, + "rel_max": 0.000908058909, + "scaled_max_abs": 0.000908058909 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.0/features.0.2/HardSwish_output_0" + }, + "per_op_band_ratio": 0.0908058909, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0726273228, + "index": 2, + "metrics": { + "corr": 0.99999925, + "finite": true, + "max_abs": 0.0330090523, + "mean_abs": 0.0021913404, + "psnr_db": 88.346094, + "ref_absmax": 45.4499092, + "rel_max": 0.000726273228, + "scaled_max_abs": 0.000726273228 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.1/block/block.2/block.2.0/Conv_output_0" + }, + "per_op_band_ratio": 0.0726273228, + "status": "pass", + "tap": "net.features.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.192673754, + "index": 3, + "metrics": { + "corr": 0.99999661, + "finite": true, + "max_abs": 0.0498961806, + "mean_abs": 0.00335121535, + "psnr_db": 78.3312341, + "ref_absmax": 25.896719, + "rel_max": 0.00192673754, + "scaled_max_abs": 0.00192673754 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.2/block/block.2/block.2.0/Conv_output_0" + }, + "per_op_band_ratio": 0.192673754, + "status": "pass", + "tap": "net.features.2" + }, + { + "band_limit": 0.01, + "band_ratio": 0.281512363, + "index": 4, + "metrics": { + "corr": 0.999992632, + "finite": true, + "max_abs": 0.0723810196, + "mean_abs": 0.00526209009, + "psnr_db": 75.4762491, + "ref_absmax": 25.7114887, + "rel_max": 0.00281512363, + "scaled_max_abs": 0.00281512363 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.3/Add_output_0" + }, + "per_op_band_ratio": 0.281512363, + "status": "pass", + "tap": "net.features.3" + }, + { + "band_limit": 0.01, + "band_ratio": 0.476705887, + "index": 5, + "metrics": { + "corr": 0.999968504, + "finite": true, + "max_abs": 0.0815546513, + "mean_abs": 0.00506719657, + "psnr_db": 69.8638336, + "ref_absmax": 17.1079597, + "rel_max": 0.00476705887, + "scaled_max_abs": 0.00476705887 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.4/block/block.3/block.3.0/Conv_output_0" + }, + "per_op_band_ratio": 0.476705887, + "status": "pass", + "tap": "net.features.4" + }, + { + "band_limit": 0.0106696521, + "band_ratio": 0.5, + "index": 6, + "metrics": { + "corr": 0.999933184, + "finite": true, + "max_abs": 0.119066, + "mean_abs": 0.00772219183, + "psnr_db": 67.9874935, + "ref_absmax": 22.3186283, + "rel_max": 0.00533482606, + "scaled_max_abs": 0.00533482606 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.5/Add_output_0" + }, + "per_op_band_ratio": 0.533482606, + "status": "pass", + "tap": "net.features.5" + }, + { + "band_limit": 0.0162775073, + "band_ratio": 0.5, + "index": 7, + "metrics": { + "corr": 0.999911881, + "finite": true, + "max_abs": 0.510870159, + "mean_abs": 0.0200473288, + "psnr_db": 67.667567, + "ref_absmax": 62.7700729, + "rel_max": 0.00813875363, + "scaled_max_abs": 0.00813875363 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.6/Add_output_0" + }, + "per_op_band_ratio": 0.813875363, + "status": "pass", + "tap": "net.features.6" + }, + { + "band_limit": 0.024997382, + "band_ratio": 0.488700854, + "index": 8, + "metrics": { + "corr": 0.999899008, + "finite": true, + "max_abs": 0.252684593, + "mean_abs": 0.00816732899, + "psnr_db": 67.0492169, + "ref_absmax": 20.6843147, + "rel_max": 0.0122162419, + "scaled_max_abs": 0.0122162419 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.7/block/block.3/block.3.0/Conv_output_0" + }, + "per_op_band_ratio": 1.22162419, + "status": "pass", + "tap": "net.features.7" + }, + { + "band_limit": 0.0396165217, + "band_ratio": 0.5, + "index": 9, + "metrics": { + "corr": 0.999808898, + "finite": true, + "max_abs": 0.385349274, + "mean_abs": 0.0114271704, + "psnr_db": 63.2680365, + "ref_absmax": 19.453968, + "rel_max": 0.0198082609, + "scaled_max_abs": 0.0198082609 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.8/Add_output_0" + }, + "per_op_band_ratio": 1.98082609, + "status": "pass", + "tap": "net.features.8" + }, + { + "band_limit": 0.0753690458, + "band_ratio": 0.5, + "index": 10, + "metrics": { + "corr": 0.999601539, + "finite": true, + "max_abs": 0.131695211, + "mean_abs": 0.00601521229, + "psnr_db": 54.3157289, + "ref_absmax": 3.49467635, + "rel_max": 0.0376845229, + "scaled_max_abs": 0.0376845229 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.9/block/block.3/block.3.0/Conv_output_0" + }, + "per_op_band_ratio": 3.76845229, + "status": "pass", + "tap": "net.features.9" + }, + { + "band_limit": 0.0899976958, + "band_ratio": 0.5, + "index": 11, + "metrics": { + "corr": 0.999634288, + "finite": true, + "max_abs": 0.168273151, + "mean_abs": 0.00733745012, + "psnr_db": 53.8422497, + "ref_absmax": 3.73949909, + "rel_max": 0.0449988479, + "scaled_max_abs": 0.0449988479 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.10/Add_output_0" + }, + "per_op_band_ratio": 4.49988479, + "status": "pass", + "tap": "net.features.10" + }, + { + "band_limit": 0.135694275, + "band_ratio": 0.5, + "index": 12, + "metrics": { + "corr": 0.999579659, + "finite": true, + "max_abs": 0.307674885, + "mean_abs": 0.00914591375, + "psnr_db": 53.5889895, + "ref_absmax": 4.53482485, + "rel_max": 0.0678471375, + "scaled_max_abs": 0.0678471375 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.11/Add_output_0" + }, + "per_op_band_ratio": 6.78471375, + "status": "pass", + "tap": "net.features.11" + }, + { + "band_limit": 0.116496129, + "band_ratio": 0.474189443, + "index": 13, + "metrics": { + "corr": 0.999361157, + "finite": true, + "max_abs": 0.557923317, + "mean_abs": 0.00560181436, + "psnr_db": 55.5456197, + "ref_absmax": 10.099762, + "rel_max": 0.0552412343, + "scaled_max_abs": 0.0552412343 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.12/features.12.2/HardSwish_output_0" + }, + "per_op_band_ratio": 5.52412343, + "status": "pass", + "tap": "net.features.12" + }, + { + "band_limit": 0.0705188325, + "band_ratio": 0.5, + "index": 14, + "metrics": { + "corr": 0.999557957, + "finite": true, + "max_abs": 0.184967697, + "mean_abs": 0.00389058194, + "psnr_db": 53.8034433, + "ref_absmax": 5.24590921, + "rel_max": 0.0352594163, + "scaled_max_abs": 0.0352594163 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "per_op_band_ratio": 3.52594163, + "status": "pass", + "tap": "net.avgpool" + }, + { + "band_limit": 0.0621519203, + "band_ratio": 0.5, + "index": 15, + "metrics": { + "corr": 0.999689586, + "finite": true, + "max_abs": 0.757778168, + "mean_abs": 0.0324179629, + "psnr_db": 54.0300036, + "ref_absmax": 24.3847065, + "rel_max": 0.0310759602, + "scaled_max_abs": 0.0310759602 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "per_op_band_ratio": 3.10759602, + "status": "pass", + "tap": "net.classifier" + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_limit": 0.0621519203, + "band_ratio": 0.347784707, + "metrics": { + "corr": 0.999892736, + "finite": true, + "max_abs": 0.38962245, + "mean_abs": 0.0207615408, + "psnr_db": 57.5998751, + "ref_absmax": 18.0251522, + "rel_max": 0.0216154874, + "scaled_max_abs": 0.0216154874 + }, + "per_op_band_ratio": 2.16154874, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 16, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 0.0439328023, + "index": 0, + "metrics": { + "corr": 0.999999965, + "finite": true, + "max_abs": 0.00506496429, + "mean_abs": 0.000406712054, + "psnr_db": 88.0749992, + "ref_absmax": 11.5288897, + "rel_max": 0.000439328023, + "scaled_max_abs": 0.000439328023 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "per_op_band_ratio": 0.0439328023, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0867140259, + "index": 1, + "metrics": { + "corr": 0.999999726, + "finite": true, + "max_abs": 0.146580219, + "mean_abs": 0.000882941117, + "psnr_db": 95.4408227, + "ref_absmax": 169.038651, + "rel_max": 0.000867140259, + "scaled_max_abs": 0.000867140259 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.0/features.0.2/HardSwish_output_0" + }, + "per_op_band_ratio": 0.0867140259, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0745469506, + "index": 2, + "metrics": { + "corr": 0.999999152, + "finite": true, + "max_abs": 0.0332808495, + "mean_abs": 0.00218689379, + "psnr_db": 87.8352672, + "ref_absmax": 44.644146, + "rel_max": 0.000745469506, + "scaled_max_abs": 0.000745469506 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.1/block/block.2/block.2.0/Conv_output_0" + }, + "per_op_band_ratio": 0.0745469506, + "status": "pass", + "tap": "net.features.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.155432319, + "index": 3, + "metrics": { + "corr": 0.999995967, + "finite": true, + "max_abs": 0.0475851297, + "mean_abs": 0.00342715191, + "psnr_db": 79.2772077, + "ref_absmax": 30.6146946, + "rel_max": 0.00155432319, + "scaled_max_abs": 0.00155432319 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.2/block/block.2/block.2.0/Conv_output_0" + }, + "per_op_band_ratio": 0.155432319, + "status": "pass", + "tap": "net.features.2" + }, + { + "band_limit": 0.01, + "band_ratio": 0.290781924, + "index": 4, + "metrics": { + "corr": 0.999991914, + "finite": true, + "max_abs": 0.0760879517, + "mean_abs": 0.00542803163, + "psnr_db": 75.1554022, + "ref_absmax": 26.1666718, + "rel_max": 0.00290781924, + "scaled_max_abs": 0.00290781924 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.3/Add_output_0" + }, + "per_op_band_ratio": 0.290781924, + "status": "pass", + "tap": "net.features.3" + }, + { + "band_limit": 0.01, + "band_ratio": 0.4599975, + "index": 5, + "metrics": { + "corr": 0.99996609, + "finite": true, + "max_abs": 0.0897045135, + "mean_abs": 0.00541450367, + "psnr_db": 70.4385356, + "ref_absmax": 19.5010872, + "rel_max": 0.004599975, + "scaled_max_abs": 0.004599975 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.4/block/block.3/block.3.0/Conv_output_0" + }, + "per_op_band_ratio": 0.4599975, + "status": "pass", + "tap": "net.features.4" + }, + { + "band_limit": 0.0106696521, + "band_ratio": 0.347952146, + "index": 6, + "metrics": { + "corr": 0.999930178, + "finite": true, + "max_abs": 0.111546993, + "mean_abs": 0.00825263387, + "psnr_db": 69.5801725, + "ref_absmax": 30.0460987, + "rel_max": 0.00371252835, + "scaled_max_abs": 0.00371252835 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.5/Add_output_0" + }, + "per_op_band_ratio": 0.371252835, + "status": "pass", + "tap": "net.features.5" + }, + { + "band_limit": 0.0162775073, + "band_ratio": 0.27422364, + "index": 7, + "metrics": { + "corr": 0.99997663, + "finite": true, + "max_abs": 0.302102566, + "mean_abs": 0.0119582523, + "psnr_db": 75.166003, + "ref_absmax": 67.6801987, + "rel_max": 0.00446367729, + "scaled_max_abs": 0.00446367729 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.6/Add_output_0" + }, + "per_op_band_ratio": 0.446367729, + "status": "pass", + "tap": "net.features.6" + }, + { + "band_limit": 0.024997382, + "band_ratio": 0.5, + "index": 8, + "metrics": { + "corr": 0.999928619, + "finite": true, + "max_abs": 0.216041565, + "mean_abs": 0.0069844028, + "psnr_db": 67.9933993, + "ref_absmax": 17.2851353, + "rel_max": 0.012498691, + "scaled_max_abs": 0.012498691 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.7/block/block.3/block.3.0/Conv_output_0" + }, + "per_op_band_ratio": 1.2498691, + "status": "pass", + "tap": "net.features.7" + }, + { + "band_limit": 0.0396165217, + "band_ratio": 0.462709674, + "index": 9, + "metrics": { + "corr": 0.999903542, + "finite": true, + "max_abs": 0.306545496, + "mean_abs": 0.0089378061, + "psnr_db": 65.732113, + "ref_absmax": 16.7228394, + "rel_max": 0.0183309478, + "scaled_max_abs": 0.0183309478 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.8/Add_output_0" + }, + "per_op_band_ratio": 1.83309478, + "status": "pass", + "tap": "net.features.8" + }, + { + "band_limit": 0.0753690458, + "band_ratio": 0.396063905, + "index": 10, + "metrics": { + "corr": 0.999829019, + "finite": true, + "max_abs": 0.0808291063, + "mean_abs": 0.00452532728, + "psnr_db": 56.0742489, + "ref_absmax": 2.7077558, + "rel_max": 0.0298509586, + "scaled_max_abs": 0.0298509586 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.9/block/block.3/block.3.0/Conv_output_0" + }, + "per_op_band_ratio": 2.98509586, + "status": "pass", + "tap": "net.features.9" + }, + { + "band_limit": 0.0899976958, + "band_ratio": 0.391892245, + "index": 11, + "metrics": { + "corr": 0.999808855, + "finite": true, + "max_abs": 0.115872979, + "mean_abs": 0.00596741333, + "psnr_db": 55.017935, + "ref_absmax": 3.28536868, + "rel_max": 0.0352693991, + "scaled_max_abs": 0.0352693991 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.10/Add_output_0" + }, + "per_op_band_ratio": 3.52693991, + "status": "pass", + "tap": "net.features.10" + }, + { + "band_limit": 0.135694275, + "band_ratio": 0.313060073, + "index": 12, + "metrics": { + "corr": 0.999801387, + "finite": true, + "max_abs": 0.168629915, + "mean_abs": 0.00716211491, + "psnr_db": 55.1986028, + "ref_absmax": 3.9695878, + "rel_max": 0.0424804597, + "scaled_max_abs": 0.0424804597 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.11/Add_output_0" + }, + "per_op_band_ratio": 4.24804597, + "status": "pass", + "tap": "net.features.11" + }, + { + "band_limit": 0.116496129, + "band_ratio": 0.5, + "index": 13, + "metrics": { + "corr": 0.999724486, + "finite": true, + "max_abs": 0.539265156, + "mean_abs": 0.00407862978, + "psnr_db": 58.811884, + "ref_absmax": 9.25807858, + "rel_max": 0.0582480643, + "scaled_max_abs": 0.0582480643 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.12/features.12.2/HardSwish_output_0" + }, + "per_op_band_ratio": 5.82480643, + "status": "pass", + "tap": "net.features.12" + }, + { + "band_limit": 0.0705188325, + "band_ratio": 0.311933443, + "index": 14, + "metrics": { + "corr": 0.99981986, + "finite": true, + "max_abs": 0.114154458, + "mean_abs": 0.00278554343, + "psnr_db": 57.8018872, + "ref_absmax": 5.18950367, + "rel_max": 0.0219971823, + "scaled_max_abs": 0.0219971823 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "per_op_band_ratio": 2.19971823, + "status": "pass", + "tap": "net.avgpool" + }, + { + "band_limit": 0.0621519203, + "band_ratio": 0.347784707, + "index": 15, + "metrics": { + "corr": 0.999892736, + "finite": true, + "max_abs": 0.38962245, + "mean_abs": 0.0207615408, + "psnr_db": 57.5998751, + "ref_absmax": 18.0251522, + "rel_max": 0.0216154874, + "scaled_max_abs": 0.0216154874 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "per_op_band_ratio": 2.16154874, + "status": "pass", + "tap": "net.classifier" + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp16", + "id": "mobilenet_v3_small__clean__onnx_fp16", + "model": "mobilenet_v3_small", + "path": "onnx", + "variant": "clean" + }, + "tap_bands_gate": true, + "verdict": "PASS" +} diff --git a/bench/verdicts_calibrated4/mobilenet_v3_small__clean__onnx_fp32.json b/bench/verdicts_calibrated4/mobilenet_v3_small__clean__onnx_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..afa40d26c8a5033eb9faceca776d025c68dc3712 --- /dev/null +++ b/bench/verdicts_calibrated4/mobilenet_v3_small__clean__onnx_fp32.json @@ -0,0 +1,1491 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": false, + "note": null, + "status": "clear" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "status": "clear" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp32", + "first_divergence": null, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "7039c5bc6b9c95d567255faafe971afd335c6b99fe5ede4cb7551be581faff3b", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "92013c141a895a8f39821960c8d2d84935cbf4b8a4c39b01aacd63a03362852a", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "fp32 per-tap band on near-zero probes", + "reason": "C3-2: per-tap fp32 checks gate without the near_zero probes; they are measured and reported per tap ('ungated_probes'); the output gates on all probes. C4-1: when the output has failed and no gated tap fails, they localise the first divergence (earliest tap over band on all probes)" + }, + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": null, + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.041847193, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000102043152, + "mean_abs": 6.72314916e-06, + "psnr_db": 128.723588, + "ref_absmax": 24.3847065, + "rel_max": 4.1847193e-06, + "scaled_max_abs": 4.1847193e-06 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 16, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.0, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 11.5288897, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.0, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 2.11790395, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00321182749, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.10351562e-05, + "mean_abs": 1.89537677e-07, + "psnr_db": 167.344678, + "ref_absmax": 190.032486, + "rel_max": 3.21182749e-07, + "scaled_max_abs": 3.21182749e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.0/features.0.2/HardSwish_output_0" + }, + "status": "pass", + "tap": "net.features.0", + "ungated_probes": { + "band_ratio": 0.00241213599, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.62939453e-06, + "mean_abs": 2.16881618e-07, + "psnr_db": 157.366824, + "ref_absmax": 31.6292057, + "rel_max": 2.41213599e-07, + "scaled_max_abs": 2.41213599e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00797353056, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.6239624e-05, + "mean_abs": 9.98075285e-07, + "psnr_db": 153.072648, + "ref_absmax": 45.4499092, + "rel_max": 7.97353056e-07, + "scaled_max_abs": 7.97353056e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.1/block/block.2/block.2.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.1", + "ungated_probes": { + "band_ratio": 0.0227632446, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.66893005e-05, + "mean_abs": 1.24961924e-06, + "psnr_db": 137.172128, + "ref_absmax": 7.33168793, + "rel_max": 2.27632446e-06, + "scaled_max_abs": 2.27632446e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00846999548, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.19345093e-05, + "mean_abs": 1.54983388e-06, + "psnr_db": 144.766529, + "ref_absmax": 25.896719, + "rel_max": 8.46999548e-07, + "scaled_max_abs": 8.46999548e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.2/block/block.2/block.2.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.2", + "ungated_probes": { + "band_ratio": 0.0644802993, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.77757645e-05, + "mean_abs": 2.75313276e-06, + "psnr_db": 124.749923, + "ref_absmax": 4.30763578, + "rel_max": 6.44802993e-06, + "scaled_max_abs": 6.44802993e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0153001897, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.93390656e-05, + "mean_abs": 2.63761359e-06, + "psnr_db": 141.695642, + "ref_absmax": 25.7114887, + "rel_max": 1.53001897e-06, + "scaled_max_abs": 1.53001897e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.3/Add_output_0" + }, + "status": "pass", + "tap": "net.features.3", + "ungated_probes": { + "band_ratio": 0.12165021, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.18967819e-05, + "mean_abs": 7.36337757e-06, + "psnr_db": 120.768056, + "ref_absmax": 6.73215294, + "rel_max": 1.2165021e-05, + "scaled_max_abs": 1.2165021e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0169323857, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.89678574e-05, + "mean_abs": 1.63707645e-06, + "psnr_db": 140.134058, + "ref_absmax": 17.1079597, + "rel_max": 1.69323857e-06, + "scaled_max_abs": 1.69323857e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.4/block/block.3/block.3.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.4", + "ungated_probes": { + "band_ratio": 0.116359598, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.40938568e-05, + "mean_abs": 6.37992748e-06, + "psnr_db": 117.100851, + "ref_absmax": 2.93004251, + "rel_max": 1.16359598e-05, + "scaled_max_abs": 1.16359598e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0264925814, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.91278076e-05, + "mean_abs": 2.44822543e-06, + "psnr_db": 137.863896, + "ref_absmax": 22.3186283, + "rel_max": 2.64925814e-06, + "scaled_max_abs": 2.64925814e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.5/Add_output_0" + }, + "status": "pass", + "tap": "net.features.5", + "ungated_probes": { + "band_ratio": 0.20642065, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.94854355e-05, + "mean_abs": 8.9967604e-06, + "psnr_db": 113.391462, + "ref_absmax": 2.88175797, + "rel_max": 2.0642065e-05, + "scaled_max_abs": 2.0642065e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0150412056, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.44137573e-05, + "mean_abs": 4.0992821e-06, + "psnr_db": 143.729101, + "ref_absmax": 62.7700729, + "rel_max": 1.50412056e-06, + "scaled_max_abs": 1.50412056e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.6/Add_output_0" + }, + "status": "pass", + "tap": "net.features.6", + "ungated_probes": { + "band_ratio": 0.154411662, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.44597816e-05, + "mean_abs": 1.1757044e-05, + "psnr_db": 116.852518, + "ref_absmax": 5.46977997, + "rel_max": 1.54411662e-05, + "scaled_max_abs": 1.54411662e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0368849277, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.62939453e-05, + "mean_abs": 2.39065772e-06, + "psnr_db": 139.203407, + "ref_absmax": 20.6843147, + "rel_max": 3.68849277e-06, + "scaled_max_abs": 3.68849277e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.7/block/block.3/block.3.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.7", + "ungated_probes": { + "band_ratio": 0.118917132, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.44514847e-05, + "mean_abs": 5.84020907e-06, + "psnr_db": 116.56813, + "ref_absmax": 2.89710021, + "rel_max": 1.18917132e-05, + "scaled_max_abs": 1.18917132e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.037256794, + "index": 9, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.2479248e-05, + "mean_abs": 3.14239863e-06, + "psnr_db": 136.409477, + "ref_absmax": 19.453968, + "rel_max": 3.7256794e-06, + "scaled_max_abs": 3.7256794e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.8/Add_output_0" + }, + "status": "pass", + "tap": "net.features.8", + "ungated_probes": { + "band_ratio": 0.0963515991, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.06801701e-05, + "mean_abs": 6.96427782e-06, + "psnr_db": 118.58234, + "ref_absmax": 4.22205448, + "rel_max": 9.63515991e-06, + "scaled_max_abs": 9.63515991e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.061742145, + "index": 10, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.15768814e-05, + "mean_abs": 1.37282175e-06, + "psnr_db": 128.665641, + "ref_absmax": 3.49467635, + "rel_max": 6.1742145e-06, + "scaled_max_abs": 6.1742145e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.9/block/block.3/block.3.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.9", + "ungated_probes": { + "band_ratio": 0.0927831778, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.09374523e-05, + "mean_abs": 2.39176047e-06, + "psnr_db": 116.788454, + "ref_absmax": 1.17881846, + "rel_max": 9.27831778e-06, + "scaled_max_abs": 9.27831778e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0838402213, + "index": 11, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.13520432e-05, + "mean_abs": 1.83222124e-06, + "psnr_db": 127.011191, + "ref_absmax": 3.73949909, + "rel_max": 8.38402213e-06, + "scaled_max_abs": 8.38402213e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.10/Add_output_0" + }, + "status": "pass", + "tap": "net.features.10", + "ungated_probes": { + "band_ratio": 0.096082963, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.56462193e-05, + "mean_abs": 2.67247742e-06, + "psnr_db": 118.759332, + "ref_absmax": 1.62840724, + "rel_max": 9.6082963e-06, + "scaled_max_abs": 9.6082963e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0744265352, + "index": 12, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.37511301e-05, + "mean_abs": 2.20671628e-06, + "psnr_db": 127.188558, + "ref_absmax": 4.53482485, + "rel_max": 7.44265352e-06, + "scaled_max_abs": 7.44265352e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.11/Add_output_0" + }, + "status": "pass", + "tap": "net.features.11", + "ungated_probes": { + "band_ratio": 0.120453635, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.03251839e-05, + "mean_abs": 3.07057696e-06, + "psnr_db": 118.5154, + "ref_absmax": 1.68738651, + "rel_max": 1.20453635e-05, + "scaled_max_abs": 1.20453635e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0891139949, + "index": 13, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.00030136e-05, + "mean_abs": 1.40610995e-06, + "psnr_db": 129.123618, + "ref_absmax": 10.099762, + "rel_max": 8.91139949e-06, + "scaled_max_abs": 8.91139949e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.12/features.12.2/HardSwish_output_0" + }, + "status": "pass", + "tap": "net.features.12", + "ungated_probes": { + "band_ratio": 0.118720158, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.69956207e-05, + "mean_abs": 1.43674807e-06, + "psnr_db": 127.497578, + "ref_absmax": 5.64315462, + "rel_max": 1.18720158e-05, + "scaled_max_abs": 1.18720158e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0522657474, + "index": 14, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.74181366e-05, + "mean_abs": 8.35797113e-07, + "psnr_db": 128.083859, + "ref_absmax": 5.24590921, + "rel_max": 5.22657474e-06, + "scaled_max_abs": 5.22657474e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "status": "pass", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 0.100807596, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.88350677e-05, + "mean_abs": 9.96737697e-07, + "psnr_db": 122.65067, + "ref_absmax": 1.8684175, + "rel_max": 1.00807596e-05, + "scaled_max_abs": 1.00807596e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.041847193, + "index": 15, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000102043152, + "mean_abs": 6.86412547e-06, + "psnr_db": 128.332281, + "ref_absmax": 24.3847065, + "rel_max": 4.1847193e-06, + "scaled_max_abs": 4.1847193e-06 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "pass", + "tap": "net.classifier", + "ungated_probes": { + "band_ratio": 0.0487591747, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.61068344e-05, + "mean_abs": 5.73631492e-06, + "psnr_db": 120.544652, + "ref_absmax": 5.35424042, + "rel_max": 4.87591747e-06, + "scaled_max_abs": 4.87591747e-06 + }, + "n_probes": 4 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.0391519021, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.05718994e-05, + "mean_abs": 5.34790397e-06, + "psnr_db": 129.852431, + "ref_absmax": 18.0251522, + "rel_max": 3.91519021e-06, + "scaled_max_abs": 3.91519021e-06 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 16, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.0, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 11.5288897, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.0, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 2.11790395, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00362482631, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.12735748e-05, + "mean_abs": 1.87428373e-07, + "psnr_db": 166.603887, + "ref_absmax": 169.038651, + "rel_max": 3.62482631e-07, + "scaled_max_abs": 3.62482631e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.0/features.0.2/HardSwish_output_0" + }, + "status": "pass", + "tap": "net.features.0", + "ungated_probes": { + "band_ratio": 0.00240942098, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.62939453e-06, + "mean_abs": 2.17489598e-07, + "psnr_db": 157.375654, + "ref_absmax": 31.6648464, + "rel_max": 2.40942098e-07, + "scaled_max_abs": 2.40942098e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00790382455, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.52859497e-05, + "mean_abs": 9.92377723e-07, + "psnr_db": 152.56663, + "ref_absmax": 44.644146, + "rel_max": 7.90382455e-07, + "scaled_max_abs": 7.90382455e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.1/block/block.2/block.2.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.1", + "ungated_probes": { + "band_ratio": 0.0237532999, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.74045563e-05, + "mean_abs": 1.25099652e-06, + "psnr_db": 137.146217, + "ref_absmax": 7.32721615, + "rel_max": 2.37532999e-06, + "scaled_max_abs": 2.37532999e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00837179583, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.56299973e-05, + "mean_abs": 1.58629216e-06, + "psnr_db": 145.698877, + "ref_absmax": 30.6146946, + "rel_max": 8.37179583e-07, + "scaled_max_abs": 8.37179583e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.2/block/block.2/block.2.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.2", + "ungated_probes": { + "band_ratio": 0.068866752, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.96831131e-05, + "mean_abs": 2.76051356e-06, + "psnr_db": 124.708734, + "ref_absmax": 4.31022406, + "rel_max": 6.8866752e-06, + "scaled_max_abs": 6.8866752e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0188153224, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.92334366e-05, + "mean_abs": 2.72670566e-06, + "psnr_db": 141.34389, + "ref_absmax": 26.1666718, + "rel_max": 1.88153224e-06, + "scaled_max_abs": 1.88153224e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.3/Add_output_0" + }, + "status": "pass", + "tap": "net.features.3", + "ungated_probes": { + "band_ratio": 0.112213009, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.55786896e-05, + "mean_abs": 7.28417024e-06, + "psnr_db": 120.917242, + "ref_absmax": 6.73528767, + "rel_max": 1.12213009e-05, + "scaled_max_abs": 1.12213009e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0167494997, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.26633453e-05, + "mean_abs": 1.75695061e-06, + "psnr_db": 140.578099, + "ref_absmax": 19.5010872, + "rel_max": 1.67494997e-06, + "scaled_max_abs": 1.67494997e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.4/block/block.3/block.3.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.4", + "ungated_probes": { + "band_ratio": 0.116670557, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.4570694e-05, + "mean_abs": 6.45323937e-06, + "psnr_db": 117.131366, + "ref_absmax": 2.96310353, + "rel_max": 1.16670557e-05, + "scaled_max_abs": 1.16670557e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0253129458, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.60555267e-05, + "mean_abs": 2.76670381e-06, + "psnr_db": 138.577881, + "ref_absmax": 30.0460987, + "rel_max": 2.53129458e-06, + "scaled_max_abs": 2.53129458e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.5/Add_output_0" + }, + "status": "pass", + "tap": "net.features.5", + "ungated_probes": { + "band_ratio": 0.252602234, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.28232956e-05, + "mean_abs": 8.99899466e-06, + "psnr_db": 112.649286, + "ref_absmax": 2.48704433, + "rel_max": 2.52602234e-05, + "scaled_max_abs": 2.52602234e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0159931615, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000108242035, + "mean_abs": 4.20943605e-06, + "psnr_db": 144.342961, + "ref_absmax": 67.6801987, + "rel_max": 1.59931615e-06, + "scaled_max_abs": 1.59931615e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.6/Add_output_0" + }, + "status": "pass", + "tap": "net.features.6", + "ungated_probes": { + "band_ratio": 0.155731273, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.60095024e-05, + "mean_abs": 1.16175504e-05, + "psnr_db": 116.889012, + "ref_absmax": 5.5229435, + "rel_max": 1.55731273e-05, + "scaled_max_abs": 1.55731273e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0380694318, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.58035278e-05, + "mean_abs": 2.40805624e-06, + "psnr_db": 137.787698, + "ref_absmax": 17.2851353, + "rel_max": 3.80694318e-06, + "scaled_max_abs": 3.80694318e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.7/block/block.3/block.3.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.7", + "ungated_probes": { + "band_ratio": 0.145989477, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.35113907e-05, + "mean_abs": 5.74265874e-06, + "psnr_db": 117.322235, + "ref_absmax": 2.98044705, + "rel_max": 1.45989477e-05, + "scaled_max_abs": 1.45989477e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0399197772, + "index": 9, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.67572021e-05, + "mean_abs": 3.02321038e-06, + "psnr_db": 135.588047, + "ref_absmax": 16.7228394, + "rel_max": 3.99197772e-06, + "scaled_max_abs": 3.99197772e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.8/Add_output_0" + }, + "status": "pass", + "tap": "net.features.8", + "ungated_probes": { + "band_ratio": 0.107512361, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.03957272e-05, + "mean_abs": 6.86451879e-06, + "psnr_db": 119.296344, + "ref_absmax": 4.68743563, + "rel_max": 1.07512361e-05, + "scaled_max_abs": 1.07512361e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0777043468, + "index": 10, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.10404396e-05, + "mean_abs": 1.18193059e-06, + "psnr_db": 128.468326, + "ref_absmax": 2.7077558, + "rel_max": 7.77043468e-06, + "scaled_max_abs": 7.77043468e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.9/block/block.3/block.3.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.9", + "ungated_probes": { + "band_ratio": 0.110539129, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.34408474e-05, + "mean_abs": 2.44389438e-06, + "psnr_db": 116.962995, + "ref_absmax": 1.21593571, + "rel_max": 1.10539129e-05, + "scaled_max_abs": 1.10539129e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0888980166, + "index": 11, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.92062759e-05, + "mean_abs": 1.54103465e-06, + "psnr_db": 127.582863, + "ref_absmax": 3.28536868, + "rel_max": 8.88980166e-06, + "scaled_max_abs": 8.88980166e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.10/Add_output_0" + }, + "status": "pass", + "tap": "net.features.10", + "ungated_probes": { + "band_ratio": 0.101392392, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.76429749e-05, + "mean_abs": 2.73720704e-06, + "psnr_db": 118.913552, + "ref_absmax": 1.74006891, + "rel_max": 1.01392392e-05, + "scaled_max_abs": 1.01392392e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0888907148, + "index": 12, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.52859497e-05, + "mean_abs": 1.82586186e-06, + "psnr_db": 127.870942, + "ref_absmax": 3.9695878, + "rel_max": 8.88907148e-06, + "scaled_max_abs": 8.88907148e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.11/Add_output_0" + }, + "status": "pass", + "tap": "net.features.11", + "ungated_probes": { + "band_ratio": 0.114556693, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.08616257e-05, + "mean_abs": 3.29466225e-06, + "psnr_db": 118.390733, + "ref_absmax": 1.82107437, + "rel_max": 1.14556693e-05, + "scaled_max_abs": 1.14556693e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.117173831, + "index": 13, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000108480453, + "mean_abs": 1.0775267e-06, + "psnr_db": 131.316433, + "ref_absmax": 9.25807858, + "rel_max": 1.17173831e-05, + "scaled_max_abs": 1.17173831e-05 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.12/features.12.2/HardSwish_output_0" + }, + "status": "pass", + "tap": "net.features.12", + "ungated_probes": { + "band_ratio": 0.129821768, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.01086426e-05, + "mean_abs": 1.51921352e-06, + "psnr_db": 127.617359, + "ref_absmax": 6.17066336, + "rel_max": 1.29821768e-05, + "scaled_max_abs": 1.29821768e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0447939012, + "index": 14, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.32458115e-05, + "mean_abs": 5.77779401e-07, + "psnr_db": 132.29571, + "ref_absmax": 5.18950367, + "rel_max": 4.47939012e-06, + "scaled_max_abs": 4.47939012e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "status": "pass", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 0.0878024583, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.7285347e-05, + "mean_abs": 1.0698957e-06, + "psnr_db": 122.721891, + "ref_absmax": 1.96866322, + "rel_max": 8.78024583e-06, + "scaled_max_abs": 8.78024583e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0391519021, + "index": 15, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.05718994e-05, + "mean_abs": 5.24369485e-06, + "psnr_db": 129.730406, + "ref_absmax": 18.0251522, + "rel_max": 3.91519021e-06, + "scaled_max_abs": 3.91519021e-06 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "pass", + "tap": "net.classifier", + "ungated_probes": { + "band_ratio": 0.0556962146, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.89678574e-05, + "mean_abs": 6.07736781e-06, + "psnr_db": 120.042574, + "ref_absmax": 5.20104599, + "rel_max": 5.56962146e-06, + "scaled_max_abs": 5.56962146e-06 + }, + "n_probes": 4 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp32", + "id": "mobilenet_v3_small__clean__onnx_fp32", + "model": "mobilenet_v3_small", + "path": "onnx", + "variant": "clean" + }, + "tap_bands_gate": true, + "verdict": "PASS" +} diff --git a/bench/verdicts_calibrated4/mobilenet_v3_small__drop_normalize__coreml_fp16.json b/bench/verdicts_calibrated4/mobilenet_v3_small__drop_normalize__coreml_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..962faecef3c2467a39daf0063f24e427604aaeba --- /dev/null +++ b/bench/verdicts_calibrated4/mobilenet_v3_small__drop_normalize__coreml_fp16.json @@ -0,0 +1,1271 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "baseline": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "faithful_output_rel_max": 0.0447572937, + "output_band": 0.0895145874, + "source": { + "bundle": "bundles/mobilenet_v3_small__clean__coreml_fp16.json", + "case": "mobilenet_v3_small__clean__coreml_fp16", + "digests": { + "192": { + "converted": "e8f4b313bc394828af089248d6d729f5cfb7d031d184bf665f719d1a66fcd7d8", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "807adc810963567dc9e14f27330f17d8d7cd30ffa6b8e35992534a3dbc2f65e9", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + } + } + }, + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "net.features.0", + "band_limit": 0.01, + "explained_by": "no_normalize", + "nominal_band_ratio": 77.8791492, + "results": [ + { + "band_ratio": 80.8620852, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 95.0245384, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 103.199634, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 98.2558418, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 0.177806468, + "explains": true, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [ + "inputs[0]: dtype float16 (declared float32)", + "outputs[0]: dtype float16 (declared float32)" + ], + "status": "precision_narrowing" + }, + "status": "flag" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": null, + "basis": "interface hypothesis 'no_normalize' explains the first over-band tap (net.features.0)", + "index": 0, + "neighbourhood": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": null + }, + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 77.9821065, + "index": 1, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5_cast_fp16" + }, + "status": "fail", + "tap": "net.features.0" + } + ], + "observed_first_over_band": { + "index": 1, + "tap": "net.features.0" + }, + "shape": 224, + "tap": "normalize" + }, + "fp16_floor": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "baseline": { + "bundle": "bundles/mobilenet_v3_small__clean__coreml_fp16.json", + "case": "mobilenet_v3_small__clean__coreml_fp16", + "digests": { + "192": { + "converted": "e8f4b313bc394828af089248d6d729f5cfb7d031d184bf665f719d1a66fcd7d8", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "807adc810963567dc9e14f27330f17d8d7cd30ffa6b8e35992534a3dbc2f65e9", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + } + }, + "envelopes_gate": true, + "faithful_output_rel_max": 0.0447572937, + "faithful_tap_rel_max": { + "net.avgpool": 0.0593494378, + "net.classifier": 0.0447572937, + "net.features.0": 0.0033139093, + "net.features.1": 0.0109594004, + "net.features.10": 0.0689930567, + "net.features.11": 0.097995766, + "net.features.12": 0.111351399, + "net.features.2": 0.0106091941, + "net.features.3": 0.0219511544, + "net.features.4": 0.0122644963, + "net.features.5": 0.0214109624, + "net.features.6": 0.0112218713, + "net.features.7": 0.0213995931, + "net.features.8": 0.0282643785, + "net.features.9": 0.0667671518, + "normalize": 0.00117570499 + }, + "floor": 0.01, + "k": 2.0, + "output_band": 0.0895145874, + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used", + "tap_envelopes": { + "net.avgpool": 0.118698876, + "net.classifier": 0.0895145874, + "net.features.0": 0.01, + "net.features.1": 0.0219188008, + "net.features.10": 0.137986113, + "net.features.11": 0.195991532, + "net.features.12": 0.222702798, + "net.features.2": 0.0212183882, + "net.features.3": 0.0439023088, + "net.features.4": 0.0245289926, + "net.features.5": 0.0428219248, + "net.features.6": 0.0224437425, + "net.features.7": 0.0427991863, + "net.features.8": 0.056528757, + "net.features.9": 0.133534304, + "normalize": 0.01 + } + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "9a305e089172b875a9e107890ca60f8d63449cbf483b8c37370aedf488e7b55e", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "bd9034d1b72788bcc98e6483b139655afd3f94ec88650933a0f3713aba4a7c74", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + }, + { + "item": "tap normalize @ 224", + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)" + }, + { + "item": "tap normalize @ 192", + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D3", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.1875, + "band_limit": 0.0895145874, + "band_ratio": 11.0576699, + "metrics": { + "corr": 0.437343732, + "finite": true, + "max_abs": 24.1365376, + "mean_abs": 1.44233367, + "psnr_db": 22.6913901, + "ref_absmax": 24.3847065, + "rel_max": 0.989822763, + "scaled_max_abs": 0.989822763 + }, + "per_op_band_ratio": 98.9822763, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 1, + "n_judged": 15, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": null + }, + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)", + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 77.7834038, + "index": 1, + "metrics": { + "corr": 0.702276453, + "finite": true, + "max_abs": 147.813736, + "mean_abs": 0.627286112, + "psnr_db": 35.8097606, + "ref_absmax": 190.032486, + "rel_max": 0.777834038, + "scaled_max_abs": 0.777834038 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5_cast_fp16" + }, + "per_op_band_ratio": 77.7834038, + "status": "fail", + "tap": "net.features.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.0219188008, + "band_ratio": 36.1730327, + "index": 2, + "metrics": { + "corr": 0.757211232, + "finite": true, + "max_abs": 36.0358467, + "mean_abs": 1.01676673, + "psnr_db": 32.3830544, + "ref_absmax": 45.4499092, + "rel_max": 0.792869498, + "scaled_max_abs": 0.792869498 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_25_cast_fp16" + }, + "per_op_band_ratio": 79.2869498, + "status": "fail", + "tap": "net.features.1", + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_limit": 0.0212183882, + "band_ratio": 29.9538112, + "index": 3, + "metrics": { + "corr": 0.487533218, + "finite": true, + "max_abs": 16.459219, + "mean_abs": 1.1862307, + "psnr_db": 27.7982686, + "ref_absmax": 25.896719, + "rel_max": 0.635571595, + "scaled_max_abs": 0.635571595 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_41_cast_fp16" + }, + "per_op_band_ratio": 63.5571595, + "status": "fail", + "tap": "net.features.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.0439023088, + "band_ratio": 18.0853361, + "index": 4, + "metrics": { + "corr": 0.757172889, + "finite": true, + "max_abs": 20.4146137, + "mean_abs": 0.969749426, + "psnr_db": 30.6151284, + "ref_absmax": 25.7114887, + "rel_max": 0.793988008, + "scaled_max_abs": 0.793988008 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_57_cast_fp16" + }, + "per_op_band_ratio": 79.3988008, + "status": "fail", + "tap": "net.features.3", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.0245289926, + "band_ratio": 33.5645093, + "index": 5, + "metrics": { + "corr": 0.634899845, + "finite": true, + "max_abs": 14.0850449, + "mean_abs": 0.640295076, + "psnr_db": 30.1154403, + "ref_absmax": 17.1079597, + "rel_max": 0.823303601, + "scaled_max_abs": 0.823303601 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_83_cast_fp16" + }, + "per_op_band_ratio": 82.3303601, + "status": "fail", + "tap": "net.features.4", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.0428219248, + "band_ratio": 24.0187377, + "index": 6, + "metrics": { + "corr": 0.533277526, + "finite": true, + "max_abs": 22.9553471, + "mean_abs": 0.694486943, + "psnr_db": 30.2980916, + "ref_absmax": 22.3186283, + "rel_max": 1.02852858, + "scaled_max_abs": 1.02852858 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_109_cast_fp16" + }, + "per_op_band_ratio": 102.852858, + "status": "fail", + "tap": "net.features.5", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.0224437425, + "band_ratio": 45.2351748, + "index": 7, + "metrics": { + "corr": 0.245046791, + "finite": true, + "max_abs": 63.7271042, + "mean_abs": 1.38513353, + "psnr_db": 30.2925332, + "ref_absmax": 62.7700729, + "rel_max": 1.01524662, + "scaled_max_abs": 1.01524662 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_135_cast_fp16" + }, + "per_op_band_ratio": 101.524662, + "status": "fail", + "tap": "net.features.6", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.0427991863, + "band_ratio": 23.2223517, + "index": 8, + "metrics": { + "corr": 0.491402787, + "finite": true, + "max_abs": 20.558094, + "mean_abs": 0.562129326, + "psnr_db": 31.104784, + "ref_absmax": 20.6843147, + "rel_max": 0.993897758, + "scaled_max_abs": 0.993897758 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_161_cast_fp16" + }, + "per_op_band_ratio": 99.3897758, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.056528757, + "band_ratio": 17.812507, + "index": 9, + "metrics": { + "corr": 0.521353272, + "finite": true, + "max_abs": 19.5885677, + "mean_abs": 0.646096171, + "psnr_db": 30.1865966, + "ref_absmax": 19.453968, + "rel_max": 1.00691888, + "scaled_max_abs": 1.00691888 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_187_cast_fp16" + }, + "per_op_band_ratio": 100.691888, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.133534304, + "band_ratio": 8.09715552, + "index": 10, + "metrics": { + "corr": 0.653663921, + "finite": true, + "max_abs": 3.7786119, + "mean_abs": 0.243817784, + "psnr_db": 25.4308174, + "ref_absmax": 3.49467635, + "rel_max": 1.08124802, + "scaled_max_abs": 1.08124802 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_213_cast_fp16" + }, + "per_op_band_ratio": 108.124802, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.137986113, + "band_ratio": 8.35748742, + "index": 11, + "metrics": { + "corr": 0.663973436, + "finite": true, + "max_abs": 4.3124547, + "mean_abs": 0.302098103, + "psnr_db": 24.6216301, + "ref_absmax": 3.73949909, + "rel_max": 1.15321721, + "scaled_max_abs": 1.15321721 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_239_cast_fp16" + }, + "per_op_band_ratio": 115.321721, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.195991532, + "band_ratio": 5.71774248, + "index": 12, + "metrics": { + "corr": 0.661921338, + "finite": true, + "max_abs": 5.08185673, + "mean_abs": 0.359211623, + "psnr_db": 25.0165645, + "ref_absmax": 4.53482485, + "rel_max": 1.12062911, + "scaled_max_abs": 1.12062911 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_265_cast_fp16" + }, + "per_op_band_ratio": 112.062911, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.222702798, + "band_ratio": 4.58504769, + "index": 13, + "metrics": { + "corr": 0.560891461, + "finite": true, + "max_abs": 10.3128967, + "mean_abs": 0.205862969, + "psnr_db": 27.9279578, + "ref_absmax": 10.099762, + "rel_max": 1.02110295, + "scaled_max_abs": 1.02110295 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_271_cast_fp16" + }, + "per_op_band_ratio": 102.110295, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.118698876, + "band_ratio": 8.71030859, + "index": 14, + "metrics": { + "corr": 0.628929996, + "finite": true, + "max_abs": 5.42376566, + "mean_abs": 0.150943495, + "psnr_db": 25.2123621, + "ref_absmax": 5.24590921, + "rel_max": 1.03390384, + "scaled_max_abs": 1.03390384 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "per_op_band_ratio": 103.390384, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.0895145874, + "band_ratio": 11.0576699, + "index": 15, + "metrics": { + "corr": 0.437343732, + "finite": true, + "max_abs": 24.1365376, + "mean_abs": 1.44233367, + "psnr_db": 22.6913901, + "ref_absmax": 24.3847065, + "rel_max": 0.989822763, + "scaled_max_abs": 0.989822763 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "per_op_band_ratio": 98.9822763, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.3125, + "band_limit": 0.0895145874, + "band_ratio": 11.1292994, + "metrics": { + "corr": 0.400275392, + "finite": true, + "max_abs": 17.9572811, + "mean_abs": 1.37869513, + "psnr_db": 21.1014494, + "ref_absmax": 18.0251522, + "rel_max": 0.996234645, + "scaled_max_abs": 0.996234645 + }, + "per_op_band_ratio": 99.6234645, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 1, + "n_judged": 15, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": null + }, + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)", + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 77.9821065, + "index": 1, + "metrics": { + "corr": 0.695791165, + "finite": true, + "max_abs": 131.819901, + "mean_abs": 0.599358725, + "psnr_db": 35.3071614, + "ref_absmax": 169.038651, + "rel_max": 0.779821065, + "scaled_max_abs": 0.779821065 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5_cast_fp16" + }, + "per_op_band_ratio": 77.9821065, + "status": "fail", + "tap": "net.features.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.0219188008, + "band_ratio": 36.1142484, + "index": 2, + "metrics": { + "corr": 0.745979063, + "finite": true, + "max_abs": 35.3394585, + "mean_abs": 0.958257919, + "psnr_db": 32.3376791, + "ref_absmax": 44.644146, + "rel_max": 0.791581017, + "scaled_max_abs": 0.791581017 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_25_cast_fp16" + }, + "per_op_band_ratio": 79.1581017, + "status": "fail", + "tap": "net.features.1", + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_limit": 0.0212183882, + "band_ratio": 31.3618848, + "index": 3, + "metrics": { + "corr": 0.473717205, + "finite": true, + "max_abs": 20.3725071, + "mean_abs": 1.12461533, + "psnr_db": 29.4445243, + "ref_absmax": 30.6146946, + "rel_max": 0.665448647, + "scaled_max_abs": 0.665448647 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_41_cast_fp16" + }, + "per_op_band_ratio": 66.5448647, + "status": "fail", + "tap": "net.features.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.0439023088, + "band_ratio": 18.1679161, + "index": 4, + "metrics": { + "corr": 0.768305285, + "finite": true, + "max_abs": 20.8708897, + "mean_abs": 0.938899579, + "psnr_db": 30.8506274, + "ref_absmax": 26.1666718, + "rel_max": 0.797613463, + "scaled_max_abs": 0.797613463 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_57_cast_fp16" + }, + "per_op_band_ratio": 79.7613463, + "status": "fail", + "tap": "net.features.3", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.0245289926, + "band_ratio": 32.0547175, + "index": 5, + "metrics": { + "corr": 0.660528908, + "finite": true, + "max_abs": 15.3331184, + "mean_abs": 0.624710034, + "psnr_db": 31.290117, + "ref_absmax": 19.5010872, + "rel_max": 0.786269929, + "scaled_max_abs": 0.786269929 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_83_cast_fp16" + }, + "per_op_band_ratio": 78.6269929, + "status": "fail", + "tap": "net.features.4", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.0428219248, + "band_ratio": 22.9138173, + "index": 6, + "metrics": { + "corr": 0.564611264, + "finite": true, + "max_abs": 29.4816456, + "mean_abs": 0.694013218, + "psnr_db": 32.3558557, + "ref_absmax": 30.0460987, + "rel_max": 0.981213763, + "scaled_max_abs": 0.981213763 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_109_cast_fp16" + }, + "per_op_band_ratio": 98.1213763, + "status": "fail", + "tap": "net.features.5", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.0224437425, + "band_ratio": 44.8374388, + "index": 7, + "metrics": { + "corr": 0.259792483, + "finite": true, + "max_abs": 68.107933, + "mean_abs": 1.33925836, + "psnr_db": 31.9682904, + "ref_absmax": 67.6801987, + "rel_max": 1.00631993, + "scaled_max_abs": 1.00631993 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_135_cast_fp16" + }, + "per_op_band_ratio": 100.631993, + "status": "fail", + "tap": "net.features.6", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.0427991863, + "band_ratio": 24.1275489, + "index": 8, + "metrics": { + "corr": 0.526607038, + "finite": true, + "max_abs": 17.8493128, + "mean_abs": 0.542299503, + "psnr_db": 30.7085128, + "ref_absmax": 17.2851353, + "rel_max": 1.03263946, + "scaled_max_abs": 1.03263946 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_161_cast_fp16" + }, + "per_op_band_ratio": 103.263946, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.056528757, + "band_ratio": 18.9249479, + "index": 9, + "metrics": { + "corr": 0.553935201, + "finite": true, + "max_abs": 17.8901567, + "mean_abs": 0.617533273, + "psnr_db": 29.839287, + "ref_absmax": 16.7228394, + "rel_max": 1.06980378, + "scaled_max_abs": 1.06980378 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_187_cast_fp16" + }, + "per_op_band_ratio": 106.980378, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.133534304, + "band_ratio": 8.70033993, + "index": 10, + "metrics": { + "corr": 0.676129505, + "finite": true, + "max_abs": 3.145854, + "mean_abs": 0.234162391, + "psnr_db": 23.7211665, + "ref_absmax": 2.7077558, + "rel_max": 1.16179383, + "scaled_max_abs": 1.16179383 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_213_cast_fp16" + }, + "per_op_band_ratio": 116.179383, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_limit": 0.137986113, + "band_ratio": 8.69452458, + "index": 11, + "metrics": { + "corr": 0.671431073, + "finite": true, + "max_abs": 3.94153452, + "mean_abs": 0.30318898, + "psnr_db": 23.0987811, + "ref_absmax": 3.28536868, + "rel_max": 1.19972365, + "scaled_max_abs": 1.19972365 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_239_cast_fp16" + }, + "per_op_band_ratio": 119.972365, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.195991532, + "band_ratio": 5.9480319, + "index": 12, + "metrics": { + "corr": 0.650128514, + "finite": true, + "max_abs": 4.6276021, + "mean_abs": 0.365353622, + "psnr_db": 23.2314531, + "ref_absmax": 3.9695878, + "rel_max": 1.16576389, + "scaled_max_abs": 1.16576389 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_265_cast_fp16" + }, + "per_op_band_ratio": 116.576389, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.222702798, + "band_ratio": 4.63534331, + "index": 13, + "metrics": { + "corr": 0.547949764, + "finite": true, + "max_abs": 9.55715084, + "mean_abs": 0.199268599, + "psnr_db": 27.4491361, + "ref_absmax": 9.25807858, + "rel_max": 1.03230392, + "scaled_max_abs": 1.03230392 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_271_cast_fp16" + }, + "per_op_band_ratio": 103.230392, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_limit": 0.118698876, + "band_ratio": 8.6387031, + "index": 14, + "metrics": { + "corr": 0.611423489, + "finite": true, + "max_abs": 5.32133961, + "mean_abs": 0.146403475, + "psnr_db": 25.2291289, + "ref_absmax": 5.18950367, + "rel_max": 1.02540434, + "scaled_max_abs": 1.02540434 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "per_op_band_ratio": 102.540434, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.0895145874, + "band_ratio": 11.1292994, + "index": 15, + "metrics": { + "corr": 0.400275392, + "finite": true, + "max_abs": 17.9572811, + "mean_abs": 1.37869513, + "psnr_db": 21.1014494, + "ref_absmax": 18.0251522, + "rel_max": 0.996234645, + "scaled_max_abs": 0.996234645 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "per_op_band_ratio": 99.6234645, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp16", + "id": "mobilenet_v3_small__drop_normalize__coreml_fp16", + "model": "mobilenet_v3_small", + "path": "coreml", + "variant": "drop_normalize" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/mobilenet_v3_small__drop_normalize__coreml_fp32.json b/bench/verdicts_calibrated4/mobilenet_v3_small__drop_normalize__coreml_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..dd909b4ef11bb2f622c7d4ac4d3f81ba36a73c98 --- /dev/null +++ b/bench/verdicts_calibrated4/mobilenet_v3_small__drop_normalize__coreml_fp32.json @@ -0,0 +1,1641 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "net.features.0", + "explained_by": "no_normalize", + "nominal_band_ratio": 7789.09802, + "results": [ + { + "band_ratio": 8086.99315, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 9502.71994, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 10314.4968, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 9825.58418, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 0.00410638494, + "explains": true, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "flag" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": null, + "basis": "interface hypothesis 'no_normalize' explains the first over-band tap (net.features.0)", + "index": 0, + "neighbourhood": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": null + }, + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 7791.3654, + "index": 1, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5" + }, + "status": "fail", + "tap": "net.features.0" + } + ], + "observed_first_over_band": { + "index": 1, + "tap": "net.features.0" + }, + "shape": 224, + "tap": "normalize" + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "d5d3e04c4fae653cdffc66b391eb1e49f5f503472c0a2400ef243769abc9be5a", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "e70e2f9457c69af2df7ba4fdd30fd3900db5f662d70258e43cee0c311c84d0d7", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "fp32 per-tap band on near-zero probes", + "reason": "C3-2: per-tap fp32 checks gate without the near_zero probes; they are measured and reported per tap ('ungated_probes'); the output gates on all probes. C4-1: when the output has failed and no gated tap fails, they localise the first divergence (earliest tap over band on all probes)" + }, + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + }, + { + "item": "tap normalize @ 224", + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)" + }, + { + "item": "tap normalize @ 192", + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D3", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.1875, + "band_ratio": 9897.13093, + "metrics": { + "corr": 0.43682885, + "finite": true, + "max_abs": 24.1338633, + "mean_abs": 1.44712622, + "psnr_db": 22.6798251, + "ref_absmax": 24.3847065, + "rel_max": 0.989713093, + "scaled_max_abs": 0.989713093 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 1, + "n_judged": 15, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": null + }, + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)", + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 7781.88744, + "index": 1, + "metrics": { + "corr": 0.708653211, + "finite": true, + "max_abs": 147.881142, + "mean_abs": 0.680959779, + "psnr_db": 35.2500228, + "ref_absmax": 190.032486, + "rel_max": 0.778188744, + "scaled_max_abs": 0.778188744 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5" + }, + "status": "fail", + "tap": "net.features.0", + "ungated_probes": { + "band_ratio": 10101.561, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.926419744, + "finite": true, + "max_abs": 31.9504352, + "mean_abs": 0.250261625, + "psnr_db": 35.0238252, + "ref_absmax": 31.6292057, + "rel_max": 1.0101561, + "scaled_max_abs": 1.0101561 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7927.88, + "index": 2, + "metrics": { + "corr": 0.768969489, + "finite": true, + "max_abs": 36.0321426, + "mean_abs": 1.10752981, + "psnr_db": 31.8582813, + "ref_absmax": 45.4499092, + "rel_max": 0.792788, + "scaled_max_abs": 0.792788 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_25" + }, + "status": "fail", + "tap": "net.features.1", + "ungated_probes": { + "band_ratio": 4911.76836, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.635375491, + "finite": true, + "max_abs": 3.60115528, + "mean_abs": 0.379229835, + "psnr_db": 27.7891245, + "ref_absmax": 7.33168793, + "rel_max": 0.491176836, + "scaled_max_abs": 0.491176836 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_ratio": 6340.68428, + "index": 3, + "metrics": { + "corr": 0.473308825, + "finite": true, + "max_abs": 16.4202919, + "mean_abs": 1.31041073, + "psnr_db": 27.2786352, + "ref_absmax": 25.896719, + "rel_max": 0.634068428, + "scaled_max_abs": 0.634068428 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_41" + }, + "status": "fail", + "tap": "net.features.2", + "ungated_probes": { + "band_ratio": 5589.46727, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.837396491, + "finite": true, + "max_abs": 2.40773892, + "mean_abs": 0.323219959, + "psnr_db": 21.5550555, + "ref_absmax": 4.30763578, + "rel_max": 0.558946727, + "scaled_max_abs": 0.558946727 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7939.54663, + "index": 4, + "metrics": { + "corr": 0.756939471, + "finite": true, + "max_abs": 20.4137564, + "mean_abs": 1.05433243, + "psnr_db": 30.1417694, + "ref_absmax": 25.7114887, + "rel_max": 0.793954663, + "scaled_max_abs": 0.793954663 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_57" + }, + "status": "fail", + "tap": "net.features.3", + "ungated_probes": { + "band_ratio": 5511.5301, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.869981569, + "finite": true, + "max_abs": 3.71044636, + "mean_abs": 0.377512604, + "psnr_db": 25.1673238, + "ref_absmax": 6.73215294, + "rel_max": 0.55115301, + "scaled_max_abs": 0.55115301 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 8243.36783, + "index": 5, + "metrics": { + "corr": 0.631599904, + "finite": true, + "max_abs": 14.1027205, + "mean_abs": 0.641537691, + "psnr_db": 30.1088038, + "ref_absmax": 17.1079597, + "rel_max": 0.824336783, + "scaled_max_abs": 0.824336783 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_83" + }, + "status": "fail", + "tap": "net.features.4", + "ungated_probes": { + "band_ratio": 12199.5463, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.696828512, + "finite": true, + "max_abs": 3.57451892, + "mean_abs": 0.624022336, + "psnr_db": 15.8515399, + "ref_absmax": 2.93004251, + "rel_max": 1.21995463, + "scaled_max_abs": 1.21995463 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10288.0909, + "index": 6, + "metrics": { + "corr": 0.540858364, + "finite": true, + "max_abs": 22.9616076, + "mean_abs": 0.667626268, + "psnr_db": 30.2691283, + "ref_absmax": 22.3186283, + "rel_max": 1.02880909, + "scaled_max_abs": 1.02880909 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_109" + }, + "status": "fail", + "tap": "net.features.5", + "ungated_probes": { + "band_ratio": 12557.5353, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.548701216, + "finite": true, + "max_abs": 3.61877775, + "mean_abs": 0.928443611, + "psnr_db": 13.378774, + "ref_absmax": 2.88175797, + "rel_max": 1.25575353, + "scaled_max_abs": 1.25575353 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 10159.1511, + "index": 7, + "metrics": { + "corr": 0.235887398, + "finite": true, + "max_abs": 63.7690656, + "mean_abs": 1.38284013, + "psnr_db": 29.8363103, + "ref_absmax": 62.7700729, + "rel_max": 1.01591511, + "scaled_max_abs": 1.01591511 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_135" + }, + "status": "fail", + "tap": "net.features.6", + "ungated_probes": { + "band_ratio": 10352.996, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.67575263, + "finite": true, + "max_abs": 5.66286099, + "mean_abs": 1.51501812, + "psnr_db": 14.9184788, + "ref_absmax": 5.46977997, + "rel_max": 1.0352996, + "scaled_max_abs": 1.0352996 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9945.11058, + "index": 8, + "metrics": { + "corr": 0.506200248, + "finite": true, + "max_abs": 20.5707797, + "mean_abs": 0.549862657, + "psnr_db": 30.8912851, + "ref_absmax": 20.6843147, + "rel_max": 0.994511058, + "scaled_max_abs": 0.994511058 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_161" + }, + "status": "fail", + "tap": "net.features.7", + "ungated_probes": { + "band_ratio": 10976.8273, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.401354639, + "finite": true, + "max_abs": 3.18009686, + "mean_abs": 0.664343428, + "psnr_db": 15.6622172, + "ref_absmax": 2.89710021, + "rel_max": 1.09768273, + "scaled_max_abs": 1.09768273 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10054.3281, + "index": 9, + "metrics": { + "corr": 0.530345241, + "finite": true, + "max_abs": 19.5596578, + "mean_abs": 0.641791484, + "psnr_db": 29.9510379, + "ref_absmax": 19.453968, + "rel_max": 1.00543281, + "scaled_max_abs": 1.00543281 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_187" + }, + "status": "fail", + "tap": "net.features.8", + "ungated_probes": { + "band_ratio": 12195.9183, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.473274901, + "finite": true, + "max_abs": 5.14918315, + "mean_abs": 0.683870869, + "psnr_db": 18.8848784, + "ref_absmax": 4.22205448, + "rel_max": 1.21959183, + "scaled_max_abs": 1.21959183 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10811.8892, + "index": 10, + "metrics": { + "corr": 0.655794575, + "finite": true, + "max_abs": 3.77840534, + "mean_abs": 0.24275226, + "psnr_db": 25.311094, + "ref_absmax": 3.49467635, + "rel_max": 1.08118892, + "scaled_max_abs": 1.08118892 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_213" + }, + "status": "fail", + "tap": "net.features.9", + "ungated_probes": { + "band_ratio": 11979.9376, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.612171241, + "finite": true, + "max_abs": 1.41221717, + "mean_abs": 0.253433179, + "psnr_db": 16.1738769, + "ref_absmax": 1.17881846, + "rel_max": 1.19799376, + "scaled_max_abs": 1.19799376 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 11544.4204, + "index": 11, + "metrics": { + "corr": 0.664267421, + "finite": true, + "max_abs": 4.31703496, + "mean_abs": 0.304210033, + "psnr_db": 24.4687253, + "ref_absmax": 3.73949909, + "rel_max": 1.15444204, + "scaled_max_abs": 1.15444204 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_239" + }, + "status": "fail", + "tap": "net.features.10", + "ungated_probes": { + "band_ratio": 9755.99905, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.633325567, + "finite": true, + "max_abs": 1.58867395, + "mean_abs": 0.291149694, + "psnr_db": 17.8815808, + "ref_absmax": 1.62840724, + "rel_max": 0.975599905, + "scaled_max_abs": 0.975599905 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 11173.6051, + "index": 12, + "metrics": { + "corr": 0.665528154, + "finite": true, + "max_abs": 5.06703418, + "mean_abs": 0.3631157, + "psnr_db": 24.8302115, + "ref_absmax": 4.53482485, + "rel_max": 1.11736051, + "scaled_max_abs": 1.11736051 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_265" + }, + "status": "fail", + "tap": "net.features.11", + "ungated_probes": { + "band_ratio": 10449.3316, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.571281854, + "finite": true, + "max_abs": 1.76320612, + "mean_abs": 0.343223801, + "psnr_db": 17.6103839, + "ref_absmax": 1.68738651, + "rel_max": 1.04493316, + "scaled_max_abs": 1.04493316 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10203.7635, + "index": 13, + "metrics": { + "corr": 0.56046663, + "finite": true, + "max_abs": 10.3055582, + "mean_abs": 0.212214425, + "psnr_db": 27.5832605, + "ref_absmax": 10.099762, + "rel_max": 1.02037635, + "scaled_max_abs": 1.02037635 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_271" + }, + "status": "fail", + "tap": "net.features.12", + "ungated_probes": { + "band_ratio": 7998.32131, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.527791052, + "finite": true, + "max_abs": 4.51357639, + "mean_abs": 0.167448376, + "psnr_db": 26.541073, + "ref_absmax": 5.64315462, + "rel_max": 0.799832131, + "scaled_max_abs": 0.799832131 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10333.0719, + "index": 14, + "metrics": { + "corr": 0.625364965, + "finite": true, + "max_abs": 5.42063572, + "mean_abs": 0.15582535, + "psnr_db": 24.7951764, + "ref_absmax": 5.24590921, + "rel_max": 1.03330719, + "scaled_max_abs": 1.03330719 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 9508.44451, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.606848398, + "finite": true, + "max_abs": 1.77657441, + "mean_abs": 0.122498976, + "psnr_db": 21.3478735, + "ref_absmax": 1.8684175, + "rel_max": 0.950844451, + "scaled_max_abs": 0.950844451 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9897.13093, + "index": 15, + "metrics": { + "corr": 0.418815693, + "finite": true, + "max_abs": 24.1338633, + "mean_abs": 1.53300172, + "psnr_db": 22.1996494, + "ref_absmax": 24.3847065, + "rel_max": 0.989713093, + "scaled_max_abs": 0.989713093 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier", + "ungated_probes": { + "band_ratio": 6336.64461, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.599808131, + "finite": true, + "max_abs": 3.39279187, + "mean_abs": 0.845997766, + "psnr_db": 17.2235408, + "ref_absmax": 5.35424042, + "rel_max": 0.633664461, + "scaled_max_abs": 0.633664461 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.3125, + "band_ratio": 9962.78246, + "metrics": { + "corr": 0.398940282, + "finite": true, + "max_abs": 17.958067, + "mean_abs": 1.37885743, + "psnr_db": 21.0934397, + "ref_absmax": 18.0251522, + "rel_max": 0.996278246, + "scaled_max_abs": 0.996278246 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 1, + "n_judged": 15, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": null + }, + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)", + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 7791.3654, + "index": 1, + "metrics": { + "corr": 0.700724837, + "finite": true, + "max_abs": 131.704189, + "mean_abs": 0.649051849, + "psnr_db": 34.7496782, + "ref_absmax": 169.038651, + "rel_max": 0.77913654, + "scaled_max_abs": 0.77913654 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5" + }, + "status": "fail", + "tap": "net.features.0", + "ungated_probes": { + "band_ratio": 10100.9636, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.927061442, + "finite": true, + "max_abs": 31.9845462, + "mean_abs": 0.250178469, + "psnr_db": 35.0647227, + "ref_absmax": 31.6648464, + "rel_max": 1.01009636, + "scaled_max_abs": 1.01009636 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7920.54178, + "index": 2, + "metrics": { + "corr": 0.758502809, + "finite": true, + "max_abs": 35.3605824, + "mean_abs": 1.04081117, + "psnr_db": 31.8200034, + "ref_absmax": 44.644146, + "rel_max": 0.792054178, + "scaled_max_abs": 0.792054178 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_25" + }, + "status": "fail", + "tap": "net.features.1", + "ungated_probes": { + "band_ratio": 4912.55027, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.614775705, + "finite": true, + "max_abs": 3.59953177, + "mean_abs": 0.377277409, + "psnr_db": 27.832437, + "ref_absmax": 7.32721615, + "rel_max": 0.491255027, + "scaled_max_abs": 0.491255027 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 6644.51227, + "index": 3, + "metrics": { + "corr": 0.455421272, + "finite": true, + "max_abs": 20.3419714, + "mean_abs": 1.23973755, + "psnr_db": 28.9326861, + "ref_absmax": 30.6146946, + "rel_max": 0.664451227, + "scaled_max_abs": 0.664451227 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_41" + }, + "status": "fail", + "tap": "net.features.2", + "ungated_probes": { + "band_ratio": 5584.85089, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.834954988, + "finite": true, + "max_abs": 2.40719587, + "mean_abs": 0.323246775, + "psnr_db": 21.5471134, + "ref_absmax": 4.31022406, + "rel_max": 0.558485089, + "scaled_max_abs": 0.558485089 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7984.0459, + "index": 4, + "metrics": { + "corr": 0.76875609, + "finite": true, + "max_abs": 20.8915908, + "mean_abs": 1.01930921, + "psnr_db": 30.384678, + "ref_absmax": 26.1666718, + "rel_max": 0.79840459, + "scaled_max_abs": 0.79840459 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_57" + }, + "status": "fail", + "tap": "net.features.3", + "ungated_probes": { + "band_ratio": 5512.26655, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.871243967, + "finite": true, + "max_abs": 3.71267009, + "mean_abs": 0.374165175, + "psnr_db": 25.2277712, + "ref_absmax": 6.73528767, + "rel_max": 0.551226655, + "scaled_max_abs": 0.551226655 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7883.97873, + "index": 5, + "metrics": { + "corr": 0.661208102, + "finite": true, + "max_abs": 15.3746157, + "mean_abs": 0.623459019, + "psnr_db": 31.3173688, + "ref_absmax": 19.5010872, + "rel_max": 0.788397873, + "scaled_max_abs": 0.788397873 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_83" + }, + "status": "fail", + "tap": "net.features.4", + "ungated_probes": { + "band_ratio": 12205.7309, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.697751565, + "finite": true, + "max_abs": 3.61668444, + "mean_abs": 0.623064389, + "psnr_db": 15.9335883, + "ref_absmax": 2.96310353, + "rel_max": 1.22057309, + "scaled_max_abs": 1.22057309 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9816.05265, + "index": 6, + "metrics": { + "corr": 0.576137771, + "finite": true, + "max_abs": 29.4934087, + "mean_abs": 0.66682947, + "psnr_db": 32.3220602, + "ref_absmax": 30.0460987, + "rel_max": 0.981605265, + "scaled_max_abs": 0.981605265 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_109" + }, + "status": "fail", + "tap": "net.features.5", + "ungated_probes": { + "band_ratio": 14900.5754, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.549153933, + "finite": true, + "max_abs": 3.70583916, + "mean_abs": 0.924468594, + "psnr_db": 12.7310616, + "ref_absmax": 2.48704433, + "rel_max": 1.49005754, + "scaled_max_abs": 1.49005754 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10062.899, + "index": 7, + "metrics": { + "corr": 0.248602588, + "finite": true, + "max_abs": 68.1059004, + "mean_abs": 1.3298094, + "psnr_db": 31.5296516, + "ref_absmax": 67.6801987, + "rel_max": 1.0062899, + "scaled_max_abs": 1.0062899 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_135" + }, + "status": "fail", + "tap": "net.features.6", + "ungated_probes": { + "band_ratio": 10221.563, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.678415241, + "finite": true, + "max_abs": 5.64531147, + "mean_abs": 1.50922444, + "psnr_db": 14.9103108, + "ref_absmax": 5.5229435, + "rel_max": 1.0221563, + "scaled_max_abs": 1.0221563 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10359.6484, + "index": 8, + "metrics": { + "corr": 0.544314963, + "finite": true, + "max_abs": 17.9067924, + "mean_abs": 0.527449977, + "psnr_db": 30.5681227, + "ref_absmax": 17.2851353, + "rel_max": 1.03596484, + "scaled_max_abs": 1.03596484 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_161" + }, + "status": "fail", + "tap": "net.features.7", + "ungated_probes": { + "band_ratio": 10952.8949, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.406423291, + "finite": true, + "max_abs": 3.26445234, + "mean_abs": 0.655887311, + "psnr_db": 16.4242476, + "ref_absmax": 2.98044705, + "rel_max": 1.09528949, + "scaled_max_abs": 1.09528949 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10736.6496, + "index": 9, + "metrics": { + "corr": 0.56456006, + "finite": true, + "max_abs": 17.9547267, + "mean_abs": 0.610322471, + "psnr_db": 29.6608038, + "ref_absmax": 16.7228394, + "rel_max": 1.07366496, + "scaled_max_abs": 1.07366496 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_187" + }, + "status": "fail", + "tap": "net.features.8", + "ungated_probes": { + "band_ratio": 11239.9884, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.487625827, + "finite": true, + "max_abs": 5.26867223, + "mean_abs": 0.66959578, + "psnr_db": 19.655027, + "ref_absmax": 4.68743563, + "rel_max": 1.12399884, + "scaled_max_abs": 1.12399884 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 11625.0909, + "index": 10, + "metrics": { + "corr": 0.682265921, + "finite": true, + "max_abs": 3.14779073, + "mean_abs": 0.231254803, + "psnr_db": 23.6842589, + "ref_absmax": 2.7077558, + "rel_max": 1.16250909, + "scaled_max_abs": 1.16250909 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_213" + }, + "status": "fail", + "tap": "net.features.9", + "ungated_probes": { + "band_ratio": 13036.6379, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.613668781, + "finite": true, + "max_abs": 1.58517136, + "mean_abs": 0.253258039, + "psnr_db": 16.5157672, + "ref_absmax": 1.21593571, + "rel_max": 1.30366379, + "scaled_max_abs": 1.30366379 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 12067.8274, + "index": 11, + "metrics": { + "corr": 0.676326759, + "finite": true, + "max_abs": 3.96472621, + "mean_abs": 0.30349835, + "psnr_db": 23.0121346, + "ref_absmax": 3.28536868, + "rel_max": 1.20678274, + "scaled_max_abs": 1.20678274 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_239" + }, + "status": "fail", + "tap": "net.features.10", + "ungated_probes": { + "band_ratio": 10255.5814, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.630489077, + "finite": true, + "max_abs": 1.78454185, + "mean_abs": 0.294078224, + "psnr_db": 18.1652019, + "ref_absmax": 1.74006891, + "rel_max": 1.02555814, + "scaled_max_abs": 1.02555814 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 11725.9526, + "index": 12, + "metrics": { + "corr": 0.656004363, + "finite": true, + "max_abs": 4.65471983, + "mean_abs": 0.367386844, + "psnr_db": 23.0904171, + "ref_absmax": 3.9695878, + "rel_max": 1.17259526, + "scaled_max_abs": 1.17259526 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_265" + }, + "status": "fail", + "tap": "net.features.11", + "ungated_probes": { + "band_ratio": 10302.8949, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.56625558, + "finite": true, + "max_abs": 1.87623379, + "mean_abs": 0.351683488, + "psnr_db": 17.8617867, + "ref_absmax": 1.82107437, + "rel_max": 1.03028949, + "scaled_max_abs": 1.03028949 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 10333.0827, + "index": 13, + "metrics": { + "corr": 0.550706477, + "finite": true, + "max_abs": 9.56644914, + "mean_abs": 0.203421007, + "psnr_db": 27.1551048, + "ref_absmax": 9.25807858, + "rel_max": 1.03330827, + "scaled_max_abs": 1.03330827 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_271" + }, + "status": "fail", + "tap": "net.features.12", + "ungated_probes": { + "band_ratio": 7705.67709, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.51976936, + "finite": true, + "max_abs": 4.75491393, + "mean_abs": 0.170621754, + "psnr_db": 27.1683671, + "ref_absmax": 6.17066336, + "rel_max": 0.770567709, + "scaled_max_abs": 0.770567709 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 10259.1813, + "index": 14, + "metrics": { + "corr": 0.611271825, + "finite": true, + "max_abs": 5.32400592, + "mean_abs": 0.149785503, + "psnr_db": 24.8410307, + "ref_absmax": 5.18950367, + "rel_max": 1.02591813, + "scaled_max_abs": 1.02591813 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 7881.79334, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.590876585, + "finite": true, + "max_abs": 1.55165966, + "mean_abs": 0.125847284, + "psnr_db": 21.6898713, + "ref_absmax": 1.96866322, + "rel_max": 0.788179334, + "scaled_max_abs": 0.788179334 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9962.78246, + "index": 15, + "metrics": { + "corr": 0.379037075, + "finite": true, + "max_abs": 17.958067, + "mean_abs": 1.45183955, + "psnr_db": 20.6330124, + "ref_absmax": 18.0251522, + "rel_max": 0.996278246, + "scaled_max_abs": 0.996278246 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier", + "ungated_probes": { + "band_ratio": 6651.93208, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.5967093, + "finite": true, + "max_abs": 3.45970047, + "mean_abs": 0.867982542, + "psnr_db": 16.9505118, + "ref_absmax": 5.20104599, + "rel_max": 0.665193208, + "scaled_max_abs": 0.665193208 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp32", + "id": "mobilenet_v3_small__drop_normalize__coreml_fp32", + "model": "mobilenet_v3_small", + "path": "coreml", + "variant": "drop_normalize" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/mobilenet_v3_small__drop_normalize__litert_fp16.json b/bench/verdicts_calibrated4/mobilenet_v3_small__drop_normalize__litert_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..f19f283de8d74485cf1b9da39b3822201bdf333f --- /dev/null +++ b/bench/verdicts_calibrated4/mobilenet_v3_small__drop_normalize__litert_fp16.json @@ -0,0 +1,1423 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "baseline": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "faithful_output_rel_max": 0.0347403663, + "output_band": 0.0694807327, + "source": { + "bundle": "bundles/mobilenet_v3_small__clean__litert_fp16.json", + "case": "mobilenet_v3_small__clean__litert_fp16", + "digests": { + "192": { + "converted": "c1e0d3f6eacceb0f07eea7aaf062f75a642b665785bf323c4ed798c4c424167a", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "e68287c6bf447d1c5af1840f2957e8f25a438b576d35374a5a1e6bfa57051ad5", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + } + } + }, + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "net.features.0", + "band_limit": 0.01, + "explained_by": "no_normalize", + "nominal_band_ratio": 77.8944821, + "results": [ + { + "band_ratio": 80.8714235, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 95.027987, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 103.128385, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 98.2558418, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 0.0595953779, + "explains": true, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "flag" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 0.00233389292, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000168800354, + "mean_abs": 9.28217727e-06, + "psnr_db": 117.610056, + "ref_absmax": 7.23256636, + "rel_max": 2.33389292e-05, + "scaled_max_abs": 2.33389292e-05 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 114, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 1, + "n_ops_total": 167, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": null, + "basis": "interface hypothesis 'no_normalize' explains the first over-band tap (net.features.0)", + "index": 0, + "neighbourhood": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": null + }, + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 77.921645, + "index": 1, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_0/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "fail", + "tap": "net.features.0" + } + ], + "observed_first_over_band": { + "index": 1, + "tap": "net.features.0" + }, + "shape": 224, + "tap": "normalize" + }, + "fp16_floor": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "baseline": { + "bundle": "bundles/mobilenet_v3_small__clean__litert_fp16.json", + "case": "mobilenet_v3_small__clean__litert_fp16", + "digests": { + "192": { + "converted": "c1e0d3f6eacceb0f07eea7aaf062f75a642b665785bf323c4ed798c4c424167a", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "e68287c6bf447d1c5af1840f2957e8f25a438b576d35374a5a1e6bfa57051ad5", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + } + }, + "envelopes_gate": true, + "faithful_output_rel_max": 0.0347403663, + "faithful_tap_rel_max": { + "net.avgpool": 0.0392971952, + "net.classifier": 0.0347403663, + "net.features.0": 0.000915032087, + "net.features.1": 0.000755872648, + "net.features.10": 0.0518188833, + "net.features.11": 0.076462924, + "net.features.12": 0.0775258635, + "net.features.2": 0.0015302635, + "net.features.3": 0.00279809812, + "net.features.4": 0.00289036457, + "net.features.5": 0.00403152459, + "net.features.6": 0.00394882259, + "net.features.7": 0.0169154072, + "net.features.8": 0.0238189477, + "net.features.9": 0.0426980192, + "normalize": 8.27203959e-08 + }, + "floor": 0.01, + "k": 2.0, + "output_band": 0.0694807327, + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used", + "tap_envelopes": { + "net.avgpool": 0.0785943904, + "net.classifier": 0.0694807327, + "net.features.0": 0.01, + "net.features.1": 0.01, + "net.features.10": 0.103637767, + "net.features.11": 0.152925848, + "net.features.12": 0.155051727, + "net.features.2": 0.01, + "net.features.3": 0.01, + "net.features.4": 0.01, + "net.features.5": 0.01, + "net.features.6": 0.01, + "net.features.7": 0.0338308144, + "net.features.8": 0.0476378955, + "net.features.9": 0.0853960383, + "normalize": 0.01 + } + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "45ac314c859f54aa3ec75da4acea83fdf52740b8ad2571c8b0ffbf71fbfb5f3e", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "4efb8c47d8f5cad43ca24434824c9983b079f80b5c0a03474adb5e37c1ef6cdc", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "tap normalize @ 224", + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)" + }, + { + "item": "tap normalize @ 192", + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D3", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.1875, + "band_limit": 0.0694807327, + "band_ratio": 14.2463131, + "metrics": { + "corr": 0.435444235, + "finite": true, + "max_abs": 24.1370621, + "mean_abs": 1.44886368, + "psnr_db": 22.6745118, + "ref_absmax": 24.3847065, + "rel_max": 0.989844274, + "scaled_max_abs": 0.989844274 + }, + "per_op_band_ratio": 98.9844274, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 1, + "n_judged": 15, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": null + }, + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)", + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 77.8220522, + "index": 1, + "metrics": { + "corr": 0.702320336, + "finite": true, + "max_abs": 147.88718, + "mean_abs": 0.627213962, + "psnr_db": 35.8096921, + "ref_absmax": 190.032486, + "rel_max": 0.778220522, + "scaled_max_abs": 0.778220522 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_0/torch.nn.modules.activation.Hardswish_2;" + }, + "per_op_band_ratio": 77.8220522, + "status": "fail", + "tap": "net.features.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 79.2894825, + "index": 2, + "metrics": { + "corr": 0.757503949, + "finite": true, + "max_abs": 36.0369978, + "mean_abs": 1.01655061, + "psnr_db": 32.3836824, + "ref_absmax": 45.4499092, + "rel_max": 0.792894825, + "scaled_max_abs": 0.792894825 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_1/torch.nn.modules.container.Sequential_block/t" + }, + "per_op_band_ratio": 79.2894825, + "status": "fail", + "tap": "net.features.1", + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_limit": 0.01, + "band_ratio": 63.3964616, + "index": 3, + "metrics": { + "corr": 0.487390986, + "finite": true, + "max_abs": 16.4176035, + "mean_abs": 1.18673324, + "psnr_db": 27.7979182, + "ref_absmax": 25.896719, + "rel_max": 0.633964616, + "scaled_max_abs": 0.633964616 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_2/torch.nn.modules.container.Sequential_block/t" + }, + "per_op_band_ratio": 63.3964616, + "status": "fail", + "tap": "net.features.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 79.3799788, + "index": 4, + "metrics": { + "corr": 0.757405821, + "finite": true, + "max_abs": 20.4097743, + "mean_abs": 0.969275067, + "psnr_db": 30.6215069, + "ref_absmax": 25.7114887, + "rel_max": 0.793799788, + "scaled_max_abs": 0.793799788 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_3;" + }, + "per_op_band_ratio": 79.3799788, + "status": "fail", + "tap": "net.features.3", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 82.3909571, + "index": 5, + "metrics": { + "corr": 0.635594548, + "finite": true, + "max_abs": 14.0954118, + "mean_abs": 0.639511826, + "psnr_db": 30.118603, + "ref_absmax": 17.1079597, + "rel_max": 0.823909571, + "scaled_max_abs": 0.823909571 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_4/torch.nn.modules.container.Sequential_block/t" + }, + "per_op_band_ratio": 82.3909571, + "status": "fail", + "tap": "net.features.4", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 102.890814, + "index": 6, + "metrics": { + "corr": 0.528717613, + "finite": true, + "max_abs": 22.9638183, + "mean_abs": 0.699674851, + "psnr_db": 30.2279682, + "ref_absmax": 22.3186283, + "rel_max": 1.02890814, + "scaled_max_abs": 1.02890814 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_5;" + }, + "per_op_band_ratio": 102.890814, + "status": "fail", + "tap": "net.features.5", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 101.591282, + "index": 7, + "metrics": { + "corr": 0.243376632, + "finite": true, + "max_abs": 63.7689221, + "mean_abs": 1.3956702, + "psnr_db": 30.2742345, + "ref_absmax": 62.7700729, + "rel_max": 1.01591282, + "scaled_max_abs": 1.01591282 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_6;" + }, + "per_op_band_ratio": 101.591282, + "status": "fail", + "tap": "net.features.6", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.0338308144, + "band_ratio": 29.3899301, + "index": 8, + "metrics": { + "corr": 0.489483758, + "finite": true, + "max_abs": 20.5661094, + "mean_abs": 0.563405774, + "psnr_db": 31.0901687, + "ref_absmax": 20.6843147, + "rel_max": 0.994285268, + "scaled_max_abs": 0.994285268 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_7/torch.nn.modules.container.Sequential_block/t" + }, + "per_op_band_ratio": 99.4285268, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.0476378955, + "band_ratio": 21.1069468, + "index": 9, + "metrics": { + "corr": 0.520689883, + "finite": true, + "max_abs": 19.5607805, + "mean_abs": 0.646303207, + "psnr_db": 30.1810477, + "ref_absmax": 19.453968, + "rel_max": 1.00549052, + "scaled_max_abs": 1.00549052 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_8;" + }, + "per_op_band_ratio": 100.549052, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.0853960383, + "band_ratio": 12.6608187, + "index": 10, + "metrics": { + "corr": 0.650986329, + "finite": true, + "max_abs": 3.77838731, + "mean_abs": 0.244147136, + "psnr_db": 25.4095975, + "ref_absmax": 3.49467635, + "rel_max": 1.08118376, + "scaled_max_abs": 1.08118376 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_9/torch.nn.modules.container.Sequential_block/t" + }, + "per_op_band_ratio": 108.118376, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.103637767, + "band_ratio": 11.1374259, + "index": 11, + "metrics": { + "corr": 0.66142977, + "finite": true, + "max_abs": 4.31634653, + "mean_abs": 0.302662567, + "psnr_db": 24.6000168, + "ref_absmax": 3.73949909, + "rel_max": 1.15425794, + "scaled_max_abs": 1.15425794 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_10;" + }, + "per_op_band_ratio": 115.425794, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.152925848, + "band_ratio": 7.30566786, + "index": 12, + "metrics": { + "corr": 0.658750571, + "finite": true, + "max_abs": 5.06642175, + "mean_abs": 0.360479837, + "psnr_db": 24.9862231, + "ref_absmax": 4.53482485, + "rel_max": 1.11722545, + "scaled_max_abs": 1.11722545 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_11;" + }, + "per_op_band_ratio": 111.722545, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.155051727, + "band_ratio": 6.58148255, + "index": 13, + "metrics": { + "corr": 0.558467416, + "finite": true, + "max_abs": 10.3065065, + "mean_abs": 0.206447217, + "psnr_db": 27.9108687, + "ref_absmax": 10.099762, + "rel_max": 1.02047024, + "scaled_max_abs": 1.02047024 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_12/torch.nn.modules.activation.Hardswish_2;" + }, + "per_op_band_ratio": 102.047024, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.0785943904, + "band_ratio": 13.1485134, + "index": 14, + "metrics": { + "corr": 0.62520912, + "finite": true, + "max_abs": 5.42111941, + "mean_abs": 0.151684202, + "psnr_db": 25.1743631, + "ref_absmax": 5.24590921, + "rel_max": 1.03339939, + "scaled_max_abs": 1.03339939 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;;zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Seque" + }, + "per_op_band_ratio": 103.339939, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.0694807327, + "band_ratio": 14.2463131, + "index": 15, + "metrics": { + "corr": 0.435444235, + "finite": true, + "max_abs": 24.1370621, + "mean_abs": 1.44886368, + "psnr_db": 22.6745118, + "ref_absmax": 24.3847065, + "rel_max": 0.989844274, + "scaled_max_abs": 0.989844274 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "per_op_band_ratio": 98.9844274, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.3125, + "band_limit": 0.0694807327, + "band_ratio": 14.3508407, + "metrics": { + "corr": 0.397626796, + "finite": true, + "max_abs": 17.9730041, + "mean_abs": 1.38199325, + "psnr_db": 21.0881603, + "ref_absmax": 18.0251522, + "rel_max": 0.997106927, + "scaled_max_abs": 0.997106927 + }, + "per_op_band_ratio": 99.7106927, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 1, + "n_judged": 15, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": null + }, + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)", + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 77.921645, + "index": 1, + "metrics": { + "corr": 0.695830639, + "finite": true, + "max_abs": 131.717697, + "mean_abs": 0.59928565, + "psnr_db": 35.3070888, + "ref_absmax": 169.038651, + "rel_max": 0.77921645, + "scaled_max_abs": 0.77921645 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_0/torch.nn.modules.activation.Hardswish_2;" + }, + "per_op_band_ratio": 77.921645, + "status": "fail", + "tap": "net.features.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 79.2156565, + "index": 2, + "metrics": { + "corr": 0.746390762, + "finite": true, + "max_abs": 35.3651533, + "mean_abs": 0.957914745, + "psnr_db": 32.3388913, + "ref_absmax": 44.644146, + "rel_max": 0.792156565, + "scaled_max_abs": 0.792156565 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_1/torch.nn.modules.container.Sequential_block/t" + }, + "per_op_band_ratio": 79.2156565, + "status": "fail", + "tap": "net.features.1", + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_limit": 0.01, + "band_ratio": 66.4368584, + "index": 3, + "metrics": { + "corr": 0.473765684, + "finite": true, + "max_abs": 20.3394413, + "mean_abs": 1.12491993, + "psnr_db": 29.444867, + "ref_absmax": 30.6146946, + "rel_max": 0.664368584, + "scaled_max_abs": 0.664368584 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_2/torch.nn.modules.container.Sequential_block/t" + }, + "per_op_band_ratio": 66.4368584, + "status": "fail", + "tap": "net.features.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 79.8507095, + "index": 4, + "metrics": { + "corr": 0.768630814, + "finite": true, + "max_abs": 20.894273, + "mean_abs": 0.938289246, + "psnr_db": 30.8585933, + "ref_absmax": 26.1666718, + "rel_max": 0.798507095, + "scaled_max_abs": 0.798507095 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_3;" + }, + "per_op_band_ratio": 79.8507095, + "status": "fail", + "tap": "net.features.3", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 78.8078092, + "index": 5, + "metrics": { + "corr": 0.661755732, + "finite": true, + "max_abs": 15.3683796, + "mean_abs": 0.623452257, + "psnr_db": 31.2994868, + "ref_absmax": 19.5010872, + "rel_max": 0.788078092, + "scaled_max_abs": 0.788078092 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_4/torch.nn.modules.container.Sequential_block/t" + }, + "per_op_band_ratio": 78.8078092, + "status": "fail", + "tap": "net.features.4", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 98.1455335, + "index": 6, + "metrics": { + "corr": 0.561161898, + "finite": true, + "max_abs": 29.4889039, + "mean_abs": 0.698385467, + "psnr_db": 32.2923923, + "ref_absmax": 30.0460987, + "rel_max": 0.981455335, + "scaled_max_abs": 0.981455335 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_5;" + }, + "per_op_band_ratio": 98.1455335, + "status": "fail", + "tap": "net.features.5", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 100.625407, + "index": 7, + "metrics": { + "corr": 0.259057686, + "finite": true, + "max_abs": 68.1034755, + "mean_abs": 1.3473867, + "psnr_db": 31.9496172, + "ref_absmax": 67.6801987, + "rel_max": 1.00625407, + "scaled_max_abs": 1.00625407 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_6;" + }, + "per_op_band_ratio": 100.625407, + "status": "fail", + "tap": "net.features.6", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.0338308144, + "band_ratio": 30.6207239, + "index": 8, + "metrics": { + "corr": 0.525241605, + "finite": true, + "max_abs": 17.9060869, + "mean_abs": 0.542668261, + "psnr_db": 30.6963417, + "ref_absmax": 17.2851353, + "rel_max": 1.03592403, + "scaled_max_abs": 1.03592403 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_7/torch.nn.modules.container.Sequential_block/t" + }, + "per_op_band_ratio": 103.592403, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.0476378955, + "band_ratio": 22.5392084, + "index": 9, + "metrics": { + "corr": 0.55387767, + "finite": true, + "max_abs": 17.9556546, + "mean_abs": 0.616817935, + "psnr_db": 29.8384517, + "ref_absmax": 16.7228394, + "rel_max": 1.07372045, + "scaled_max_abs": 1.07372045 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_8;" + }, + "per_op_band_ratio": 107.372045, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.0853960383, + "band_ratio": 13.6074248, + "index": 10, + "metrics": { + "corr": 0.675129297, + "finite": true, + "max_abs": 3.14646685, + "mean_abs": 0.234039951, + "psnr_db": 23.7179357, + "ref_absmax": 2.7077558, + "rel_max": 1.16202017, + "scaled_max_abs": 1.16202017 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_9/torch.nn.modules.container.Sequential_block/t" + }, + "per_op_band_ratio": 116.202017, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_limit": 0.103637767, + "band_ratio": 11.6354494, + "index": 11, + "metrics": { + "corr": 0.670987766, + "finite": true, + "max_abs": 3.96173406, + "mean_abs": 0.302815485, + "psnr_db": 23.1026925, + "ref_absmax": 3.28536868, + "rel_max": 1.20587199, + "scaled_max_abs": 1.20587199 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_10;" + }, + "per_op_band_ratio": 120.587199, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.152925848, + "band_ratio": 7.67165239, + "index": 12, + "metrics": { + "corr": 0.648383669, + "finite": true, + "max_abs": 4.65709639, + "mean_abs": 0.365712687, + "psnr_db": 23.2192529, + "ref_absmax": 3.9695878, + "rel_max": 1.17319395, + "scaled_max_abs": 1.17319395 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_11;" + }, + "per_op_band_ratio": 117.319395, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.155051727, + "band_ratio": 6.66420758, + "index": 13, + "metrics": { + "corr": 0.547596283, + "finite": true, + "max_abs": 9.56634384, + "mean_abs": 0.199395125, + "psnr_db": 27.4539839, + "ref_absmax": 9.25807858, + "rel_max": 1.03329689, + "scaled_max_abs": 1.03329689 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_12/torch.nn.modules.activation.Hardswish_2;" + }, + "per_op_band_ratio": 103.329689, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_limit": 0.0785943904, + "band_ratio": 13.0492593, + "index": 14, + "metrics": { + "corr": 0.609612791, + "finite": true, + "max_abs": 5.3223476, + "mean_abs": 0.146935782, + "psnr_db": 25.2109192, + "ref_absmax": 5.18950367, + "rel_max": 1.02559858, + "scaled_max_abs": 1.02559858 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;;zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Seque" + }, + "per_op_band_ratio": 102.559858, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.0694807327, + "band_ratio": 14.3508407, + "index": 15, + "metrics": { + "corr": 0.397626796, + "finite": true, + "max_abs": 17.9730041, + "mean_abs": 1.38199325, + "psnr_db": 21.0881603, + "ref_absmax": 18.0251522, + "rel_max": 0.997106927, + "scaled_max_abs": 0.997106927 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "per_op_band_ratio": 99.7106927, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp16", + "id": "mobilenet_v3_small__drop_normalize__litert_fp16", + "model": "mobilenet_v3_small", + "path": "litert", + "variant": "drop_normalize" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/mobilenet_v3_small__drop_normalize__litert_fp32.json b/bench/verdicts_calibrated4/mobilenet_v3_small__drop_normalize__litert_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..fe898999f3e805dafef15bf2e908c2067617e1d0 --- /dev/null +++ b/bench/verdicts_calibrated4/mobilenet_v3_small__drop_normalize__litert_fp32.json @@ -0,0 +1,1796 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "net.features.0", + "explained_by": "no_normalize", + "nominal_band_ratio": 7789.09802, + "results": [ + { + "band_ratio": 8086.99301, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 9502.71994, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 10314.4968, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 9825.58418, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 0.00351975852, + "explains": true, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "flag" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 0.0897399182, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.49690628e-05, + "mean_abs": 6.91318442e-06, + "psnr_db": 122.096923, + "ref_absmax": 7.23970604, + "rel_max": 8.97399182e-06, + "scaled_max_abs": 8.97399182e-06 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 114, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 1, + "n_ops_total": 113, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": null, + "basis": "interface hypothesis 'no_normalize' explains the first over-band tap (net.features.0)", + "index": 0, + "neighbourhood": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": null + }, + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 7791.36563, + "index": 1, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_0/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "fail", + "tap": "net.features.0" + } + ], + "observed_first_over_band": { + "index": 1, + "tap": "net.features.0" + }, + "shape": 224, + "tap": "normalize" + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "2972dea395fcdb7e81cddec1ce688664b1b368229cab7560f065fd506fe4bd4a", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "59da6c34b6192fedc906b9368f8cc8b9317216af64996caa0c4f70f617daa28b", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "fp32 per-tap band on near-zero probes", + "reason": "C3-2: per-tap fp32 checks gate without the near_zero probes; they are measured and reported per tap ('ungated_probes'); the output gates on all probes. C4-1: when the output has failed and no gated tap fails, they localise the first divergence (earliest tap over band on all probes)" + }, + { + "item": "tap normalize @ 224", + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)" + }, + { + "item": "tap normalize @ 192", + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D3", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.1875, + "band_ratio": 9897.12695, + "metrics": { + "corr": 0.436828651, + "finite": true, + "max_abs": 24.1338536, + "mean_abs": 1.44712715, + "psnr_db": 22.6798234, + "ref_absmax": 24.3847065, + "rel_max": 0.989712695, + "scaled_max_abs": 0.989712695 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 1, + "n_judged": 15, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": null + }, + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)", + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 7781.88744, + "index": 1, + "metrics": { + "corr": 0.708653191, + "finite": true, + "max_abs": 147.881142, + "mean_abs": 0.680959806, + "psnr_db": 35.2500227, + "ref_absmax": 190.032486, + "rel_max": 0.778188744, + "scaled_max_abs": 0.778188744 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_0/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "fail", + "tap": "net.features.0", + "ungated_probes": { + "band_ratio": 10101.561, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.926419744, + "finite": true, + "max_abs": 31.9504352, + "mean_abs": 0.250261631, + "psnr_db": 35.0238252, + "ref_absmax": 31.6292057, + "rel_max": 1.0101561, + "scaled_max_abs": 1.0101561 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7927.88252, + "index": 2, + "metrics": { + "corr": 0.768969545, + "finite": true, + "max_abs": 36.0321541, + "mean_abs": 1.10752977, + "psnr_db": 31.8582814, + "ref_absmax": 45.4499092, + "rel_max": 0.792788252, + "scaled_max_abs": 0.792788252 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_1/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.1", + "ungated_probes": { + "band_ratio": 4911.76836, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.635375637, + "finite": true, + "max_abs": 3.60115528, + "mean_abs": 0.379229837, + "psnr_db": 27.789125, + "ref_absmax": 7.33168793, + "rel_max": 0.491176836, + "scaled_max_abs": 0.491176836 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_ratio": 6340.68391, + "index": 3, + "metrics": { + "corr": 0.473308735, + "finite": true, + "max_abs": 16.4202909, + "mean_abs": 1.31041084, + "psnr_db": 27.278635, + "ref_absmax": 25.896719, + "rel_max": 0.634068391, + "scaled_max_abs": 0.634068391 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_2/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.2", + "ungated_probes": { + "band_ratio": 5589.47073, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.837396552, + "finite": true, + "max_abs": 2.40774041, + "mean_abs": 0.323219816, + "psnr_db": 21.5550556, + "ref_absmax": 4.30763578, + "rel_max": 0.558947073, + "scaled_max_abs": 0.558947073 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7939.54682, + "index": 4, + "metrics": { + "corr": 0.756939402, + "finite": true, + "max_abs": 20.4137568, + "mean_abs": 1.05433256, + "psnr_db": 30.1417695, + "ref_absmax": 25.7114887, + "rel_max": 0.793954682, + "scaled_max_abs": 0.793954682 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_3;" + }, + "status": "fail", + "tap": "net.features.3", + "ungated_probes": { + "band_ratio": 5511.52762, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.869981517, + "finite": true, + "max_abs": 3.71044469, + "mean_abs": 0.377512533, + "psnr_db": 25.1673165, + "ref_absmax": 6.73215294, + "rel_max": 0.551152762, + "scaled_max_abs": 0.551152762 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 8243.36769, + "index": 5, + "metrics": { + "corr": 0.631599952, + "finite": true, + "max_abs": 14.1027203, + "mean_abs": 0.641537647, + "psnr_db": 30.1088043, + "ref_absmax": 17.1079597, + "rel_max": 0.824336769, + "scaled_max_abs": 0.824336769 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_4/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.4", + "ungated_probes": { + "band_ratio": 12199.5294, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.69682862, + "finite": true, + "max_abs": 3.57451397, + "mean_abs": 0.624024031, + "psnr_db": 15.851534, + "ref_absmax": 2.93004251, + "rel_max": 1.21995294, + "scaled_max_abs": 1.21995294 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10288.0895, + "index": 6, + "metrics": { + "corr": 0.540857478, + "finite": true, + "max_abs": 22.9616046, + "mean_abs": 0.667627025, + "psnr_db": 30.2691174, + "ref_absmax": 22.3186283, + "rel_max": 1.02880895, + "scaled_max_abs": 1.02880895 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_5;" + }, + "status": "fail", + "tap": "net.features.5", + "ungated_probes": { + "band_ratio": 12557.6718, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.548698572, + "finite": true, + "max_abs": 3.61881709, + "mean_abs": 0.92845356, + "psnr_db": 13.3786809, + "ref_absmax": 2.88175797, + "rel_max": 1.25576718, + "scaled_max_abs": 1.25576718 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 10159.1505, + "index": 7, + "metrics": { + "corr": 0.235887165, + "finite": true, + "max_abs": 63.7690618, + "mean_abs": 1.38284136, + "psnr_db": 29.8363086, + "ref_absmax": 62.7700729, + "rel_max": 1.01591505, + "scaled_max_abs": 1.01591505 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_6;" + }, + "status": "fail", + "tap": "net.features.6", + "ungated_probes": { + "band_ratio": 10353.2749, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.675750272, + "finite": true, + "max_abs": 5.66301358, + "mean_abs": 1.51503904, + "psnr_db": 14.9183525, + "ref_absmax": 5.46977997, + "rel_max": 1.03532749, + "scaled_max_abs": 1.03532749 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9945.1135, + "index": 8, + "metrics": { + "corr": 0.506199993, + "finite": true, + "max_abs": 20.5707858, + "mean_abs": 0.549862974, + "psnr_db": 30.8912832, + "ref_absmax": 20.6843147, + "rel_max": 0.99451135, + "scaled_max_abs": 0.99451135 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_7/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.7", + "ungated_probes": { + "band_ratio": 10976.8586, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.401348914, + "finite": true, + "max_abs": 3.18010592, + "mean_abs": 0.664348569, + "psnr_db": 15.6621551, + "ref_absmax": 2.89710021, + "rel_max": 1.09768586, + "scaled_max_abs": 1.09768586 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10054.3296, + "index": 9, + "metrics": { + "corr": 0.530344892, + "finite": true, + "max_abs": 19.5596606, + "mean_abs": 0.641791901, + "psnr_db": 29.9510349, + "ref_absmax": 19.453968, + "rel_max": 1.00543296, + "scaled_max_abs": 1.00543296 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_8;" + }, + "status": "fail", + "tap": "net.features.8", + "ungated_probes": { + "band_ratio": 12195.8788, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.473271736, + "finite": true, + "max_abs": 5.14916646, + "mean_abs": 0.683874374, + "psnr_db": 18.8848445, + "ref_absmax": 4.22205448, + "rel_max": 1.21958788, + "scaled_max_abs": 1.21958788 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10811.8878, + "index": 10, + "metrics": { + "corr": 0.655794026, + "finite": true, + "max_abs": 3.77840486, + "mean_abs": 0.242752387, + "psnr_db": 25.3110885, + "ref_absmax": 3.49467635, + "rel_max": 1.08118878, + "scaled_max_abs": 1.08118878 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_9/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.9", + "ungated_probes": { + "band_ratio": 11979.6818, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.612170258, + "finite": true, + "max_abs": 1.41218701, + "mean_abs": 0.253433221, + "psnr_db": 16.1738788, + "ref_absmax": 1.17881846, + "rel_max": 1.19796818, + "scaled_max_abs": 1.19796818 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 11544.4172, + "index": 11, + "metrics": { + "corr": 0.664267293, + "finite": true, + "max_abs": 4.31703377, + "mean_abs": 0.304209954, + "psnr_db": 24.4687237, + "ref_absmax": 3.73949909, + "rel_max": 1.15444172, + "scaled_max_abs": 1.15444172 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_10;" + }, + "status": "fail", + "tap": "net.features.10", + "ungated_probes": { + "band_ratio": 9755.93866, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.633324256, + "finite": true, + "max_abs": 1.58866411, + "mean_abs": 0.291150083, + "psnr_db": 17.8815722, + "ref_absmax": 1.62840724, + "rel_max": 0.975593866, + "scaled_max_abs": 0.975593866 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 11173.6073, + "index": 12, + "metrics": { + "corr": 0.665528184, + "finite": true, + "max_abs": 5.0670352, + "mean_abs": 0.363115529, + "psnr_db": 24.8302117, + "ref_absmax": 4.53482485, + "rel_max": 1.11736073, + "scaled_max_abs": 1.11736073 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_11;" + }, + "status": "fail", + "tap": "net.features.11", + "ungated_probes": { + "band_ratio": 10449.6305, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.571277317, + "finite": true, + "max_abs": 1.76325655, + "mean_abs": 0.343225971, + "psnr_db": 17.6103312, + "ref_absmax": 1.68738651, + "rel_max": 1.04496305, + "scaled_max_abs": 1.04496305 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10203.763, + "index": 13, + "metrics": { + "corr": 0.560466688, + "finite": true, + "max_abs": 10.3055577, + "mean_abs": 0.212214323, + "psnr_db": 27.5832611, + "ref_absmax": 10.099762, + "rel_max": 1.0203763, + "scaled_max_abs": 1.0203763 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_12/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "fail", + "tap": "net.features.12", + "ungated_probes": { + "band_ratio": 7998.33737, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.527789445, + "finite": true, + "max_abs": 4.51358545, + "mean_abs": 0.167449074, + "psnr_db": 26.5410729, + "ref_absmax": 5.64315462, + "rel_max": 0.799833737, + "scaled_max_abs": 0.799833737 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10333.0727, + "index": 14, + "metrics": { + "corr": 0.625364932, + "finite": true, + "max_abs": 5.42063615, + "mean_abs": 0.155825216, + "psnr_db": 24.7951764, + "ref_absmax": 5.24590921, + "rel_max": 1.03330727, + "scaled_max_abs": 1.03330727 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;;zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Seque" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 9508.46694, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.606845582, + "finite": true, + "max_abs": 1.77657861, + "mean_abs": 0.122499653, + "psnr_db": 21.3478124, + "ref_absmax": 1.8684175, + "rel_max": 0.950846694, + "scaled_max_abs": 0.950846694 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9897.12695, + "index": 15, + "metrics": { + "corr": 0.418815902, + "finite": true, + "max_abs": 24.1338536, + "mean_abs": 1.53300148, + "psnr_db": 22.1996496, + "ref_absmax": 24.3847065, + "rel_max": 0.989712695, + "scaled_max_abs": 0.989712695 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.classifier", + "ungated_probes": { + "band_ratio": 6336.61789, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.599800265, + "finite": true, + "max_abs": 3.39277756, + "mean_abs": 0.846006847, + "psnr_db": 17.2234577, + "ref_absmax": 5.35424042, + "rel_max": 0.633661789, + "scaled_max_abs": 0.633661789 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.3125, + "band_ratio": 9962.78513, + "metrics": { + "corr": 0.398940541, + "finite": true, + "max_abs": 17.9580718, + "mean_abs": 1.37885723, + "psnr_db": 21.0934418, + "ref_absmax": 18.0251522, + "rel_max": 0.996278513, + "scaled_max_abs": 0.996278513 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 1, + "n_judged": 15, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": null + }, + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)", + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 7791.36563, + "index": 1, + "metrics": { + "corr": 0.700724816, + "finite": true, + "max_abs": 131.704193, + "mean_abs": 0.649051876, + "psnr_db": 34.7496781, + "ref_absmax": 169.038651, + "rel_max": 0.779136563, + "scaled_max_abs": 0.779136563 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_0/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "fail", + "tap": "net.features.0", + "ungated_probes": { + "band_ratio": 10100.9636, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.927061442, + "finite": true, + "max_abs": 31.9845462, + "mean_abs": 0.250178475, + "psnr_db": 35.0647227, + "ref_absmax": 31.6648464, + "rel_max": 1.01009636, + "scaled_max_abs": 1.01009636 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7920.54435, + "index": 2, + "metrics": { + "corr": 0.758502873, + "finite": true, + "max_abs": 35.3605938, + "mean_abs": 1.04081114, + "psnr_db": 31.8200034, + "ref_absmax": 44.644146, + "rel_max": 0.792054435, + "scaled_max_abs": 0.792054435 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_1/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.1", + "ungated_probes": { + "band_ratio": 4912.55027, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.614775857, + "finite": true, + "max_abs": 3.59953177, + "mean_abs": 0.377277405, + "psnr_db": 27.8324376, + "ref_absmax": 7.32721615, + "rel_max": 0.491255027, + "scaled_max_abs": 0.491255027 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 6644.51196, + "index": 3, + "metrics": { + "corr": 0.455421161, + "finite": true, + "max_abs": 20.3419704, + "mean_abs": 1.23973768, + "psnr_db": 28.9326857, + "ref_absmax": 30.6146946, + "rel_max": 0.664451196, + "scaled_max_abs": 0.664451196 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_2/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.2", + "ungated_probes": { + "band_ratio": 5584.85587, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.83495505, + "finite": true, + "max_abs": 2.40719801, + "mean_abs": 0.323246648, + "psnr_db": 21.5471135, + "ref_absmax": 4.31022406, + "rel_max": 0.558485587, + "scaled_max_abs": 0.558485587 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7984.04326, + "index": 4, + "metrics": { + "corr": 0.768756023, + "finite": true, + "max_abs": 20.8915839, + "mean_abs": 1.01930935, + "psnr_db": 30.3846783, + "ref_absmax": 26.1666718, + "rel_max": 0.798404326, + "scaled_max_abs": 0.798404326 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_3;" + }, + "status": "fail", + "tap": "net.features.3", + "ungated_probes": { + "band_ratio": 5512.26407, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.871243899, + "finite": true, + "max_abs": 3.71266842, + "mean_abs": 0.374165226, + "psnr_db": 25.2277633, + "ref_absmax": 6.73528767, + "rel_max": 0.551226407, + "scaled_max_abs": 0.551226407 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7883.97776, + "index": 5, + "metrics": { + "corr": 0.661208236, + "finite": true, + "max_abs": 15.3746138, + "mean_abs": 0.623458947, + "psnr_db": 31.3173701, + "ref_absmax": 19.5010872, + "rel_max": 0.788397776, + "scaled_max_abs": 0.788397776 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_4/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.4", + "ungated_probes": { + "band_ratio": 12205.7174, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.697751676, + "finite": true, + "max_abs": 3.61668044, + "mean_abs": 0.623065974, + "psnr_db": 15.9335825, + "ref_absmax": 2.96310353, + "rel_max": 1.22057174, + "scaled_max_abs": 1.22057174 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9816.05181, + "index": 6, + "metrics": { + "corr": 0.576137042, + "finite": true, + "max_abs": 29.4934062, + "mean_abs": 0.66683024, + "psnr_db": 32.3220491, + "ref_absmax": 30.0460987, + "rel_max": 0.981605181, + "scaled_max_abs": 0.981605181 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_5;" + }, + "status": "fail", + "tap": "net.features.5", + "ungated_probes": { + "band_ratio": 14900.7249, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.549151226, + "finite": true, + "max_abs": 3.70587635, + "mean_abs": 0.924477919, + "psnr_db": 12.7309688, + "ref_absmax": 2.48704433, + "rel_max": 1.49007249, + "scaled_max_abs": 1.49007249 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10062.8994, + "index": 7, + "metrics": { + "corr": 0.248602872, + "finite": true, + "max_abs": 68.1059032, + "mean_abs": 1.32980965, + "psnr_db": 31.5296516, + "ref_absmax": 67.6801987, + "rel_max": 1.00628994, + "scaled_max_abs": 1.00628994 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_6;" + }, + "status": "fail", + "tap": "net.features.6", + "ungated_probes": { + "band_ratio": 10221.7969, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.678412538, + "finite": true, + "max_abs": 5.6454407, + "mean_abs": 1.50924481, + "psnr_db": 14.9101844, + "ref_absmax": 5.5229435, + "rel_max": 1.02217969, + "scaled_max_abs": 1.02217969 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10359.6416, + "index": 8, + "metrics": { + "corr": 0.544314868, + "finite": true, + "max_abs": 17.9067807, + "mean_abs": 0.527450107, + "psnr_db": 30.5681219, + "ref_absmax": 17.2851353, + "rel_max": 1.03596416, + "scaled_max_abs": 1.03596416 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_7/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.7", + "ungated_probes": { + "band_ratio": 10952.8369, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.40641732, + "finite": true, + "max_abs": 3.26443505, + "mean_abs": 0.655892669, + "psnr_db": 16.4241799, + "ref_absmax": 2.98044705, + "rel_max": 1.09528369, + "scaled_max_abs": 1.09528369 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10736.6409, + "index": 9, + "metrics": { + "corr": 0.564559843, + "finite": true, + "max_abs": 17.9547122, + "mean_abs": 0.610322685, + "psnr_db": 29.6608018, + "ref_absmax": 16.7228394, + "rel_max": 1.07366409, + "scaled_max_abs": 1.07366409 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_8;" + }, + "status": "fail", + "tap": "net.features.8", + "ungated_probes": { + "band_ratio": 11240.0668, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.487622347, + "finite": true, + "max_abs": 5.26870894, + "mean_abs": 0.66959975, + "psnr_db": 19.6549842, + "ref_absmax": 4.68743563, + "rel_max": 1.12400668, + "scaled_max_abs": 1.12400668 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 11625.0733, + "index": 10, + "metrics": { + "corr": 0.682265711, + "finite": true, + "max_abs": 3.14778596, + "mean_abs": 0.231254797, + "psnr_db": 23.6842577, + "ref_absmax": 2.7077558, + "rel_max": 1.16250733, + "scaled_max_abs": 1.16250733 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_9/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.9", + "ungated_probes": { + "band_ratio": 13036.5879, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.613665824, + "finite": true, + "max_abs": 1.58516528, + "mean_abs": 0.253258759, + "psnr_db": 16.5157428, + "ref_absmax": 1.21593571, + "rel_max": 1.30365879, + "scaled_max_abs": 1.30365879 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 12067.8187, + "index": 11, + "metrics": { + "corr": 0.676326883, + "finite": true, + "max_abs": 3.96472335, + "mean_abs": 0.303498213, + "psnr_db": 23.0121365, + "ref_absmax": 3.28536868, + "rel_max": 1.20678187, + "scaled_max_abs": 1.20678187 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_10;" + }, + "status": "fail", + "tap": "net.features.10", + "ungated_probes": { + "band_ratio": 10255.6263, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.630486081, + "finite": true, + "max_abs": 1.78454965, + "mean_abs": 0.294079273, + "psnr_db": 18.1651726, + "ref_absmax": 1.74006891, + "rel_max": 1.02556263, + "scaled_max_abs": 1.02556263 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 11725.9448, + "index": 12, + "metrics": { + "corr": 0.65600448, + "finite": true, + "max_abs": 4.65471673, + "mean_abs": 0.367386621, + "psnr_db": 23.090419, + "ref_absmax": 3.9695878, + "rel_max": 1.17259448, + "scaled_max_abs": 1.17259448 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_11;" + }, + "status": "fail", + "tap": "net.features.11", + "ungated_probes": { + "band_ratio": 10302.8183, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.56624892, + "finite": true, + "max_abs": 1.87621984, + "mean_abs": 0.351686581, + "psnr_db": 17.8617075, + "ref_absmax": 1.82107437, + "rel_max": 1.03028183, + "scaled_max_abs": 1.03028183 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 10333.0824, + "index": 13, + "metrics": { + "corr": 0.550706985, + "finite": true, + "max_abs": 9.5664489, + "mean_abs": 0.203420844, + "psnr_db": 27.1551101, + "ref_absmax": 9.25807858, + "rel_max": 1.03330824, + "scaled_max_abs": 1.03330824 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_12/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "fail", + "tap": "net.features.12", + "ungated_probes": { + "band_ratio": 7705.71515, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.519766725, + "finite": true, + "max_abs": 4.75493741, + "mean_abs": 0.170622873, + "psnr_db": 27.1683324, + "ref_absmax": 6.17066336, + "rel_max": 0.770571515, + "scaled_max_abs": 0.770571515 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 10259.1819, + "index": 14, + "metrics": { + "corr": 0.611272186, + "finite": true, + "max_abs": 5.3240062, + "mean_abs": 0.149785351, + "psnr_db": 24.8410339, + "ref_absmax": 5.18950367, + "rel_max": 1.02591819, + "scaled_max_abs": 1.02591819 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;;zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Seque" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 7881.80468, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.590872821, + "finite": true, + "max_abs": 1.55166189, + "mean_abs": 0.125848282, + "psnr_db": 21.6897768, + "ref_absmax": 1.96866322, + "rel_max": 0.788180468, + "scaled_max_abs": 0.788180468 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9962.78513, + "index": 15, + "metrics": { + "corr": 0.379037627, + "finite": true, + "max_abs": 17.9580718, + "mean_abs": 1.45183812, + "psnr_db": 20.6330169, + "ref_absmax": 18.0251522, + "rel_max": 0.996278513, + "scaled_max_abs": 0.996278513 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.classifier", + "ungated_probes": { + "band_ratio": 6651.91649, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.596702575, + "finite": true, + "max_abs": 3.45969236, + "mean_abs": 0.867990974, + "psnr_db": 16.9504275, + "ref_absmax": 5.20104599, + "rel_max": 0.665191649, + "scaled_max_abs": 0.665191649 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp32", + "id": "mobilenet_v3_small__drop_normalize__litert_fp32", + "model": "mobilenet_v3_small", + "path": "litert", + "variant": "drop_normalize" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/mobilenet_v3_small__drop_normalize__onnx_fp16.json b/bench/verdicts_calibrated4/mobilenet_v3_small__drop_normalize__onnx_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..d80867bc2da4f00f2222d7332f47865185bed79f --- /dev/null +++ b/bench/verdicts_calibrated4/mobilenet_v3_small__drop_normalize__onnx_fp16.json @@ -0,0 +1,1268 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "baseline": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "faithful_output_rel_max": 0.0310759602, + "output_band": 0.0621519203, + "source": { + "bundle": "bundles/mobilenet_v3_small__clean__onnx_fp16.json", + "case": "mobilenet_v3_small__clean__onnx_fp16", + "digests": { + "192": { + "converted": "0f5c1e94183c9903ece898f192769178a20e4556d20c0b1ef4fc23502e5893f5", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "8ce44e6b921ee910b6c36de85b86a9608df76e3c1728f56afa10f6f5dd60ae3c", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + } + } + }, + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "net.features.0", + "band_limit": 0.01, + "explained_by": "no_normalize", + "nominal_band_ratio": 77.9003989, + "results": [ + { + "band_ratio": 80.8731464, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 95.0293179, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 103.10089, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 98.2558418, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 0.0577101073, + "explains": true, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "flag" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": null, + "basis": "interface hypothesis 'no_normalize' explains the first over-band tap (net.features.0)", + "index": 0, + "neighbourhood": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": null + }, + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 77.9266458, + "index": 1, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.0/features.0.2/HardSwish_output_0" + }, + "status": "fail", + "tap": "net.features.0" + } + ], + "observed_first_over_band": { + "index": 1, + "tap": "net.features.0" + }, + "shape": 224, + "tap": "normalize" + }, + "fp16_floor": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "baseline": { + "bundle": "bundles/mobilenet_v3_small__clean__onnx_fp16.json", + "case": "mobilenet_v3_small__clean__onnx_fp16", + "digests": { + "192": { + "converted": "0f5c1e94183c9903ece898f192769178a20e4556d20c0b1ef4fc23502e5893f5", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "8ce44e6b921ee910b6c36de85b86a9608df76e3c1728f56afa10f6f5dd60ae3c", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + } + }, + "envelopes_gate": true, + "faithful_output_rel_max": 0.0310759602, + "faithful_tap_rel_max": { + "net.avgpool": 0.0352594163, + "net.classifier": 0.0310759602, + "net.features.0": 0.000908058909, + "net.features.1": 0.000745469506, + "net.features.10": 0.0449988479, + "net.features.11": 0.0678471375, + "net.features.12": 0.0582480643, + "net.features.2": 0.00192673754, + "net.features.3": 0.00290781924, + "net.features.4": 0.00476705887, + "net.features.5": 0.00533482606, + "net.features.6": 0.00813875363, + "net.features.7": 0.012498691, + "net.features.8": 0.0198082609, + "net.features.9": 0.0376845229, + "normalize": 0.000441313312 + }, + "floor": 0.01, + "k": 2.0, + "output_band": 0.0621519203, + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used", + "tap_envelopes": { + "net.avgpool": 0.0705188325, + "net.classifier": 0.0621519203, + "net.features.0": 0.01, + "net.features.1": 0.01, + "net.features.10": 0.0899976958, + "net.features.11": 0.135694275, + "net.features.12": 0.116496129, + "net.features.2": 0.01, + "net.features.3": 0.01, + "net.features.4": 0.01, + "net.features.5": 0.0106696521, + "net.features.6": 0.0162775073, + "net.features.7": 0.024997382, + "net.features.8": 0.0396165217, + "net.features.9": 0.0753690458, + "normalize": 0.01 + } + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "83ca9293adcbb7e338e53f761bec81810c735f9da4c912a2aa64ccc1e217c393", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "28e70054f08dc64877aa57e54c54962e8df08bb32ec4e578f5982d24f04944ae", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + }, + { + "item": "tap normalize @ 224", + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)" + }, + { + "item": "tap normalize @ 192", + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D3", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.1875, + "band_limit": 0.0621519203, + "band_ratio": 15.9343911, + "metrics": { + "corr": 0.43595473, + "finite": true, + "max_abs": 24.1494674, + "mean_abs": 1.4480525, + "psnr_db": 22.6763248, + "ref_absmax": 24.3847065, + "rel_max": 0.990353008, + "scaled_max_abs": 0.990353008 + }, + "per_op_band_ratio": 99.0353008, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 1, + "n_judged": 15, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": null + }, + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)", + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 77.8162929, + "index": 1, + "metrics": { + "corr": 0.702293401, + "finite": true, + "max_abs": 147.876236, + "mean_abs": 0.627268858, + "psnr_db": 35.8097297, + "ref_absmax": 190.032486, + "rel_max": 0.778162929, + "scaled_max_abs": 0.778162929 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.0/features.0.2/HardSwish_output_0" + }, + "per_op_band_ratio": 77.8162929, + "status": "fail", + "tap": "net.features.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 79.2869498, + "index": 2, + "metrics": { + "corr": 0.757409396, + "finite": true, + "max_abs": 36.0358467, + "mean_abs": 1.01663908, + "psnr_db": 32.3833405, + "ref_absmax": 45.4499092, + "rel_max": 0.792869498, + "scaled_max_abs": 0.792869498 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.1/block/block.2/block.2.0/Conv_output_0" + }, + "per_op_band_ratio": 79.2869498, + "status": "fail", + "tap": "net.features.1", + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_limit": 0.01, + "band_ratio": 63.376152, + "index": 3, + "metrics": { + "corr": 0.487525353, + "finite": true, + "max_abs": 16.412344, + "mean_abs": 1.18658601, + "psnr_db": 27.7985605, + "ref_absmax": 25.896719, + "rel_max": 0.63376152, + "scaled_max_abs": 0.63376152 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.2/block/block.2/block.2.0/Conv_output_0" + }, + "per_op_band_ratio": 63.376152, + "status": "fail", + "tap": "net.features.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 79.3836082, + "index": 4, + "metrics": { + "corr": 0.757673284, + "finite": true, + "max_abs": 20.4107075, + "mean_abs": 0.969086348, + "psnr_db": 30.6228036, + "ref_absmax": 25.7114887, + "rel_max": 0.793836082, + "scaled_max_abs": 0.793836082 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.3/Add_output_0" + }, + "per_op_band_ratio": 79.3836082, + "status": "fail", + "tap": "net.features.3", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 82.353193, + "index": 5, + "metrics": { + "corr": 0.635576467, + "finite": true, + "max_abs": 14.0889511, + "mean_abs": 0.639241977, + "psnr_db": 30.1197276, + "ref_absmax": 17.1079597, + "rel_max": 0.82353193, + "scaled_max_abs": 0.82353193 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.4/block/block.3/block.3.0/Conv_output_0" + }, + "per_op_band_ratio": 82.353193, + "status": "fail", + "tap": "net.features.4", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.0106696521, + "band_ratio": 96.4160281, + "index": 6, + "metrics": { + "corr": 0.531642901, + "finite": true, + "max_abs": 22.9597416, + "mean_abs": 0.695622341, + "psnr_db": 30.2730606, + "ref_absmax": 22.3186283, + "rel_max": 1.02872548, + "scaled_max_abs": 1.02872548 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.5/Add_output_0" + }, + "per_op_band_ratio": 102.872548, + "status": "fail", + "tap": "net.features.5", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.0162775073, + "band_ratio": 62.4127125, + "index": 7, + "metrics": { + "corr": 0.244733937, + "finite": true, + "max_abs": 63.7695847, + "mean_abs": 1.3871167, + "psnr_db": 30.2873137, + "ref_absmax": 62.7700729, + "rel_max": 1.01592338, + "scaled_max_abs": 1.01592338 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.6/Add_output_0" + }, + "per_op_band_ratio": 101.592338, + "status": "fail", + "tap": "net.features.6", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.024997382, + "band_ratio": 39.7711701, + "index": 8, + "metrics": { + "corr": 0.491266674, + "finite": true, + "max_abs": 20.5638313, + "mean_abs": 0.561636695, + "psnr_db": 31.1054587, + "ref_absmax": 20.6843147, + "rel_max": 0.994175132, + "scaled_max_abs": 0.994175132 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.7/block/block.3/block.3.0/Conv_output_0" + }, + "per_op_band_ratio": 99.4175132, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.0396165217, + "band_ratio": 25.3830618, + "index": 9, + "metrics": { + "corr": 0.521962231, + "finite": true, + "max_abs": 19.5626888, + "mean_abs": 0.644594204, + "psnr_db": 30.192431, + "ref_absmax": 19.453968, + "rel_max": 1.00558862, + "scaled_max_abs": 1.00558862 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.8/Add_output_0" + }, + "per_op_band_ratio": 100.558862, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.0753690458, + "band_ratio": 14.3423413, + "index": 10, + "metrics": { + "corr": 0.651787727, + "finite": true, + "max_abs": 3.77763534, + "mean_abs": 0.244009052, + "psnr_db": 25.4148599, + "ref_absmax": 3.49467635, + "rel_max": 1.08096858, + "scaled_max_abs": 1.08096858 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.9/block/block.3/block.3.0/Conv_output_0" + }, + "per_op_band_ratio": 108.096858, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.0899976958, + "band_ratio": 12.8225577, + "index": 11, + "metrics": { + "corr": 0.661693137, + "finite": true, + "max_abs": 4.31538439, + "mean_abs": 0.302794709, + "psnr_db": 24.6005049, + "ref_absmax": 3.73949909, + "rel_max": 1.15400065, + "scaled_max_abs": 1.15400065 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.10/Add_output_0" + }, + "per_op_band_ratio": 115.400065, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.135694275, + "band_ratio": 8.23785376, + "index": 12, + "metrics": { + "corr": 0.659049567, + "finite": true, + "max_abs": 5.06916142, + "mean_abs": 0.36050056, + "psnr_db": 24.9893522, + "ref_absmax": 4.53482485, + "rel_max": 1.11782959, + "scaled_max_abs": 1.11782959 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.11/Add_output_0" + }, + "per_op_band_ratio": 111.782959, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.116496129, + "band_ratio": 8.75931347, + "index": 13, + "metrics": { + "corr": 0.558448998, + "finite": true, + "max_abs": 10.3060608, + "mean_abs": 0.206506934, + "psnr_db": 27.9085759, + "ref_absmax": 10.099762, + "rel_max": 1.02042611, + "scaled_max_abs": 1.02042611 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.12/features.12.2/HardSwish_output_0" + }, + "per_op_band_ratio": 102.042611, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.0705188325, + "band_ratio": 14.6531367, + "index": 14, + "metrics": { + "corr": 0.625528089, + "finite": true, + "max_abs": 5.4207139, + "mean_abs": 0.151786366, + "psnr_db": 25.176813, + "ref_absmax": 5.24590921, + "rel_max": 1.0333221, + "scaled_max_abs": 1.0333221 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "per_op_band_ratio": 103.33221, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.0621519203, + "band_ratio": 15.9343911, + "index": 15, + "metrics": { + "corr": 0.43595473, + "finite": true, + "max_abs": 24.1494674, + "mean_abs": 1.4480525, + "psnr_db": 22.6763248, + "ref_absmax": 24.3847065, + "rel_max": 0.990353008, + "scaled_max_abs": 0.990353008 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "per_op_band_ratio": 99.0353008, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.3125, + "band_limit": 0.0621519203, + "band_ratio": 16.0454156, + "metrics": { + "corr": 0.397375617, + "finite": true, + "max_abs": 17.9756442, + "mean_abs": 1.38343374, + "psnr_db": 21.0828125, + "ref_absmax": 18.0251522, + "rel_max": 0.997253395, + "scaled_max_abs": 0.997253395 + }, + "per_op_band_ratio": 99.7253395, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 1, + "n_judged": 15, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": null + }, + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)", + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 77.9266458, + "index": 1, + "metrics": { + "corr": 0.695804914, + "finite": true, + "max_abs": 131.726151, + "mean_abs": 0.599335204, + "psnr_db": 35.3071283, + "ref_absmax": 169.038651, + "rel_max": 0.779266458, + "scaled_max_abs": 0.779266458 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.0/features.0.2/HardSwish_output_0" + }, + "per_op_band_ratio": 77.9266458, + "status": "fail", + "tap": "net.features.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 79.2280997, + "index": 2, + "metrics": { + "corr": 0.746284974, + "finite": true, + "max_abs": 35.3707085, + "mean_abs": 0.957994238, + "psnr_db": 32.3385374, + "ref_absmax": 44.644146, + "rel_max": 0.792280997, + "scaled_max_abs": 0.792280997 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.1/block/block.2/block.2.0/Conv_output_0" + }, + "per_op_band_ratio": 79.2280997, + "status": "fail", + "tap": "net.features.1", + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_limit": 0.01, + "band_ratio": 66.4427895, + "index": 3, + "metrics": { + "corr": 0.473896671, + "finite": true, + "max_abs": 20.3412571, + "mean_abs": 1.12479292, + "psnr_db": 29.4455517, + "ref_absmax": 30.6146946, + "rel_max": 0.664427895, + "scaled_max_abs": 0.664427895 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.2/block/block.2/block.2.0/Conv_output_0" + }, + "per_op_band_ratio": 66.4427895, + "status": "fail", + "tap": "net.features.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 79.8434521, + "index": 4, + "metrics": { + "corr": 0.768930805, + "finite": true, + "max_abs": 20.892374, + "mean_abs": 0.938099552, + "psnr_db": 30.8600085, + "ref_absmax": 26.1666718, + "rel_max": 0.798434521, + "scaled_max_abs": 0.798434521 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.3/Add_output_0" + }, + "per_op_band_ratio": 79.8434521, + "status": "fail", + "tap": "net.features.3", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 78.7872404, + "index": 5, + "metrics": { + "corr": 0.661575015, + "finite": true, + "max_abs": 15.3643684, + "mean_abs": 0.623241379, + "psnr_db": 31.2992988, + "ref_absmax": 19.5010872, + "rel_max": 0.787872404, + "scaled_max_abs": 0.787872404 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.4/block/block.3/block.3.0/Conv_output_0" + }, + "per_op_band_ratio": 78.7872404, + "status": "fail", + "tap": "net.features.4", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.0106696521, + "band_ratio": 91.9584817, + "index": 6, + "metrics": { + "corr": 0.563663672, + "finite": true, + "max_abs": 29.4801807, + "mean_abs": 0.694451445, + "psnr_db": 32.336088, + "ref_absmax": 30.0460987, + "rel_max": 0.98116501, + "scaled_max_abs": 0.98116501 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.5/Add_output_0" + }, + "per_op_band_ratio": 98.116501, + "status": "fail", + "tap": "net.features.5", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.0162775073, + "band_ratio": 61.8158599, + "index": 7, + "metrics": { + "corr": 0.259622243, + "finite": true, + "max_abs": 68.1003647, + "mean_abs": 1.34057656, + "psnr_db": 31.9614742, + "ref_absmax": 67.6801987, + "rel_max": 1.00620811, + "scaled_max_abs": 1.00620811 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.6/Add_output_0" + }, + "per_op_band_ratio": 100.620811, + "status": "fail", + "tap": "net.features.6", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.024997382, + "band_ratio": 41.4409917, + "index": 8, + "metrics": { + "corr": 0.526869048, + "finite": true, + "max_abs": 17.9059534, + "mean_abs": 0.541127966, + "psnr_db": 30.712502, + "ref_absmax": 17.2851353, + "rel_max": 1.0359163, + "scaled_max_abs": 1.0359163 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.7/block/block.3/block.3.0/Conv_output_0" + }, + "per_op_band_ratio": 103.59163, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.0396165217, + "band_ratio": 27.1012681, + "index": 9, + "metrics": { + "corr": 0.554966773, + "finite": true, + "max_abs": 17.9546099, + "mean_abs": 0.61536779, + "psnr_db": 29.8494469, + "ref_absmax": 16.7228394, + "rel_max": 1.07365798, + "scaled_max_abs": 1.07365798 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.8/Add_output_0" + }, + "per_op_band_ratio": 107.365798, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.0753690458, + "band_ratio": 15.4290901, + "index": 10, + "metrics": { + "corr": 0.675839408, + "finite": true, + "max_abs": 3.14878368, + "mean_abs": 0.233949011, + "psnr_db": 23.721241, + "ref_absmax": 2.7077558, + "rel_max": 1.1628758, + "scaled_max_abs": 1.1628758 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.9/block/block.3/block.3.0/Conv_output_0" + }, + "per_op_band_ratio": 116.28758, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_limit": 0.0899976958, + "band_ratio": 13.3834492, + "index": 11, + "metrics": { + "corr": 0.670798701, + "finite": true, + "max_abs": 3.95715952, + "mean_abs": 0.303064632, + "psnr_db": 23.0966816, + "ref_absmax": 3.28536868, + "rel_max": 1.20447959, + "scaled_max_abs": 1.20447959 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.10/Add_output_0" + }, + "per_op_band_ratio": 120.447959, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.135694275, + "band_ratio": 8.64912127, + "index": 12, + "metrics": { + "corr": 0.648646833, + "finite": true, + "max_abs": 4.6588521, + "mean_abs": 0.36584309, + "psnr_db": 23.2200359, + "ref_absmax": 3.9695878, + "rel_max": 1.17363624, + "scaled_max_abs": 1.17363624 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.11/Add_output_0" + }, + "per_op_band_ratio": 117.363624, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.116496129, + "band_ratio": 8.87168511, + "index": 13, + "metrics": { + "corr": 0.546796319, + "finite": true, + "max_abs": 9.56838131, + "mean_abs": 0.199530163, + "psnr_db": 27.443541, + "ref_absmax": 9.25807858, + "rel_max": 1.03351697, + "scaled_max_abs": 1.03351697 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.12/features.12.2/HardSwish_output_0" + }, + "per_op_band_ratio": 103.351697, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_limit": 0.0705188325, + "band_ratio": 14.542526, + "index": 14, + "metrics": { + "corr": 0.609327452, + "finite": true, + "max_abs": 5.32194996, + "mean_abs": 0.147027173, + "psnr_db": 25.2083152, + "ref_absmax": 5.18950367, + "rel_max": 1.02552196, + "scaled_max_abs": 1.02552196 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "per_op_band_ratio": 102.552196, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.0621519203, + "band_ratio": 16.0454156, + "index": 15, + "metrics": { + "corr": 0.397375617, + "finite": true, + "max_abs": 17.9756442, + "mean_abs": 1.38343374, + "psnr_db": 21.0828125, + "ref_absmax": 18.0251522, + "rel_max": 0.997253395, + "scaled_max_abs": 0.997253395 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "per_op_band_ratio": 99.7253395, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp16", + "id": "mobilenet_v3_small__drop_normalize__onnx_fp16", + "model": "mobilenet_v3_small", + "path": "onnx", + "variant": "drop_normalize" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/mobilenet_v3_small__drop_normalize__onnx_fp32.json b/bench/verdicts_calibrated4/mobilenet_v3_small__drop_normalize__onnx_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..14ef3e7f68f7aacc9a83a784c3478947a608d4cc --- /dev/null +++ b/bench/verdicts_calibrated4/mobilenet_v3_small__drop_normalize__onnx_fp32.json @@ -0,0 +1,1641 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "net.features.0", + "explained_by": "no_normalize", + "nominal_band_ratio": 7789.09802, + "results": [ + { + "band_ratio": 8086.99315, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 9502.71994, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 10314.4968, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 9825.58418, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 0.0029331321, + "explains": true, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "flag" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": null, + "basis": "interface hypothesis 'no_normalize' explains the first over-band tap (net.features.0)", + "index": 0, + "neighbourhood": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": null + }, + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 7791.36518, + "index": 1, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.0/features.0.2/HardSwish_output_0" + }, + "status": "fail", + "tap": "net.features.0" + } + ], + "observed_first_over_band": { + "index": 1, + "tap": "net.features.0" + }, + "shape": 224, + "tap": "normalize" + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "1b3f0e50c5eb62bb223d94e1634565f9253997202f172ece0b17795ca6fa33ea", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "c9d006a9a83465579139c4cc4cb1c44df89d517dcbe06cfd074a9df601ca61c3", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "fp32 per-tap band on near-zero probes", + "reason": "C3-2: per-tap fp32 checks gate without the near_zero probes; they are measured and reported per tap ('ungated_probes'); the output gates on all probes. C4-1: when the output has failed and no gated tap fails, they localise the first divergence (earliest tap over band on all probes)" + }, + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + }, + { + "item": "tap normalize @ 224", + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)" + }, + { + "item": "tap normalize @ 192", + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D3", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.1875, + "band_ratio": 9897.13103, + "metrics": { + "corr": 0.436829134, + "finite": true, + "max_abs": 24.1338635, + "mean_abs": 1.4471258, + "psnr_db": 22.6798267, + "ref_absmax": 24.3847065, + "rel_max": 0.989713103, + "scaled_max_abs": 0.989713103 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 1, + "n_judged": 15, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": null + }, + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)", + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 7781.88744, + "index": 1, + "metrics": { + "corr": 0.708653212, + "finite": true, + "max_abs": 147.881142, + "mean_abs": 0.680959801, + "psnr_db": 35.2500228, + "ref_absmax": 190.032486, + "rel_max": 0.778188744, + "scaled_max_abs": 0.778188744 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.0/features.0.2/HardSwish_output_0" + }, + "status": "fail", + "tap": "net.features.0", + "ungated_probes": { + "band_ratio": 10101.561, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.926419745, + "finite": true, + "max_abs": 31.9504352, + "mean_abs": 0.250261621, + "psnr_db": 35.0238253, + "ref_absmax": 31.6292057, + "rel_max": 1.0101561, + "scaled_max_abs": 1.0101561 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7927.88063, + "index": 2, + "metrics": { + "corr": 0.768969474, + "finite": true, + "max_abs": 36.0321455, + "mean_abs": 1.10752983, + "psnr_db": 31.8582812, + "ref_absmax": 45.4499092, + "rel_max": 0.792788063, + "scaled_max_abs": 0.792788063 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.1/block/block.2/block.2.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.1", + "ungated_probes": { + "band_ratio": 4911.76771, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.6353755, + "finite": true, + "max_abs": 3.6011548, + "mean_abs": 0.379229834, + "psnr_db": 27.7891245, + "ref_absmax": 7.33168793, + "rel_max": 0.491176771, + "scaled_max_abs": 0.491176771 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_ratio": 6340.68428, + "index": 3, + "metrics": { + "corr": 0.473308812, + "finite": true, + "max_abs": 16.4202919, + "mean_abs": 1.31041074, + "psnr_db": 27.2786351, + "ref_absmax": 25.896719, + "rel_max": 0.634068428, + "scaled_max_abs": 0.634068428 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.2/block/block.2/block.2.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.2", + "ungated_probes": { + "band_ratio": 5589.46963, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.837396477, + "finite": true, + "max_abs": 2.40773994, + "mean_abs": 0.323219949, + "psnr_db": 21.5550551, + "ref_absmax": 4.30763578, + "rel_max": 0.558946963, + "scaled_max_abs": 0.558946963 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7939.547, + "index": 4, + "metrics": { + "corr": 0.756939483, + "finite": true, + "max_abs": 20.4137573, + "mean_abs": 1.05433237, + "psnr_db": 30.1417695, + "ref_absmax": 25.7114887, + "rel_max": 0.7939547, + "scaled_max_abs": 0.7939547 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.3/Add_output_0" + }, + "status": "fail", + "tap": "net.features.3", + "ungated_probes": { + "band_ratio": 5511.53294, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.869981605, + "finite": true, + "max_abs": 3.71044827, + "mean_abs": 0.377512588, + "psnr_db": 25.1673237, + "ref_absmax": 6.73215294, + "rel_max": 0.551153294, + "scaled_max_abs": 0.551153294 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 8243.37159, + "index": 5, + "metrics": { + "corr": 0.6315999, + "finite": true, + "max_abs": 14.1027269, + "mean_abs": 0.641537707, + "psnr_db": 30.1088038, + "ref_absmax": 17.1079597, + "rel_max": 0.824337159, + "scaled_max_abs": 0.824337159 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.4/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.4", + "ungated_probes": { + "band_ratio": 12199.5528, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.696828553, + "finite": true, + "max_abs": 3.57452083, + "mean_abs": 0.624022591, + "psnr_db": 15.8515385, + "ref_absmax": 2.93004251, + "rel_max": 1.21995528, + "scaled_max_abs": 1.21995528 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10288.0897, + "index": 6, + "metrics": { + "corr": 0.540858963, + "finite": true, + "max_abs": 22.961605, + "mean_abs": 0.667625718, + "psnr_db": 30.2691357, + "ref_absmax": 22.3186283, + "rel_max": 1.02880897, + "scaled_max_abs": 1.02880897 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.5/Add_output_0" + }, + "status": "fail", + "tap": "net.features.5", + "ungated_probes": { + "band_ratio": 12557.5667, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.548701087, + "finite": true, + "max_abs": 3.61878681, + "mean_abs": 0.928444375, + "psnr_db": 13.3787684, + "ref_absmax": 2.88175797, + "rel_max": 1.25575667, + "scaled_max_abs": 1.25575667 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 10159.1513, + "index": 7, + "metrics": { + "corr": 0.2358876, + "finite": true, + "max_abs": 63.769067, + "mean_abs": 1.38283905, + "psnr_db": 29.8363115, + "ref_absmax": 62.7700729, + "rel_max": 1.01591513, + "scaled_max_abs": 1.01591513 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.6/Add_output_0" + }, + "status": "fail", + "tap": "net.features.6", + "ungated_probes": { + "band_ratio": 10353.0448, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.675752543, + "finite": true, + "max_abs": 5.66288769, + "mean_abs": 1.51501989, + "psnr_db": 14.918468, + "ref_absmax": 5.46977997, + "rel_max": 1.03530448, + "scaled_max_abs": 1.03530448 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9945.11275, + "index": 8, + "metrics": { + "corr": 0.506200538, + "finite": true, + "max_abs": 20.5707842, + "mean_abs": 0.549862392, + "psnr_db": 30.8912873, + "ref_absmax": 20.6843147, + "rel_max": 0.994511275, + "scaled_max_abs": 0.994511275 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.7/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.7", + "ungated_probes": { + "band_ratio": 10976.7582, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.401354313, + "finite": true, + "max_abs": 3.18007684, + "mean_abs": 0.664343765, + "psnr_db": 15.6622135, + "ref_absmax": 2.89710021, + "rel_max": 1.09767582, + "scaled_max_abs": 1.09767582 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10054.329, + "index": 9, + "metrics": { + "corr": 0.530345586, + "finite": true, + "max_abs": 19.5596596, + "mean_abs": 0.64179114, + "psnr_db": 29.9510409, + "ref_absmax": 19.453968, + "rel_max": 1.0054329, + "scaled_max_abs": 1.0054329 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.8/Add_output_0" + }, + "status": "fail", + "tap": "net.features.8", + "ungated_probes": { + "band_ratio": 12195.8912, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.473274698, + "finite": true, + "max_abs": 5.14917171, + "mean_abs": 0.683871059, + "psnr_db": 18.8848771, + "ref_absmax": 4.22205448, + "rel_max": 1.21958912, + "scaled_max_abs": 1.21958912 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10811.8896, + "index": 10, + "metrics": { + "corr": 0.655794808, + "finite": true, + "max_abs": 3.77840549, + "mean_abs": 0.242752196, + "psnr_db": 25.3110964, + "ref_absmax": 3.49467635, + "rel_max": 1.08118896, + "scaled_max_abs": 1.08118896 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.9/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.9", + "ungated_probes": { + "band_ratio": 11980.0357, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.612171535, + "finite": true, + "max_abs": 1.41222873, + "mean_abs": 0.253433073, + "psnr_db": 16.1738825, + "ref_absmax": 1.17881846, + "rel_max": 1.19800357, + "scaled_max_abs": 1.19800357 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 11544.4175, + "index": 11, + "metrics": { + "corr": 0.664267629, + "finite": true, + "max_abs": 4.31703389, + "mean_abs": 0.304209973, + "psnr_db": 24.4687274, + "ref_absmax": 3.73949909, + "rel_max": 1.15444175, + "scaled_max_abs": 1.15444175 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.10/Add_output_0" + }, + "status": "fail", + "tap": "net.features.10", + "ungated_probes": { + "band_ratio": 9755.98624, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.63332574, + "finite": true, + "max_abs": 1.58867186, + "mean_abs": 0.291149658, + "psnr_db": 17.8815845, + "ref_absmax": 1.62840724, + "rel_max": 0.975598624, + "scaled_max_abs": 0.975598624 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 11173.6051, + "index": 12, + "metrics": { + "corr": 0.665528306, + "finite": true, + "max_abs": 5.06703418, + "mean_abs": 0.36311567, + "psnr_db": 24.8302133, + "ref_absmax": 4.53482485, + "rel_max": 1.11736051, + "scaled_max_abs": 1.11736051 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.11/Add_output_0" + }, + "status": "fail", + "tap": "net.features.11", + "ungated_probes": { + "band_ratio": 10449.3768, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.571281653, + "finite": true, + "max_abs": 1.76321375, + "mean_abs": 0.343223863, + "psnr_db": 17.6103828, + "ref_absmax": 1.68738651, + "rel_max": 1.04493768, + "scaled_max_abs": 1.04493768 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10203.7625, + "index": 13, + "metrics": { + "corr": 0.560466847, + "finite": true, + "max_abs": 10.3055572, + "mean_abs": 0.212214407, + "psnr_db": 27.5832624, + "ref_absmax": 10.099762, + "rel_max": 1.02037625, + "scaled_max_abs": 1.02037625 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.12/features.12.2/HardSwish_output_0" + }, + "status": "fail", + "tap": "net.features.12", + "ungated_probes": { + "band_ratio": 7998.30991, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.527791044, + "finite": true, + "max_abs": 4.51356995, + "mean_abs": 0.167448378, + "psnr_db": 26.5410792, + "ref_absmax": 5.64315462, + "rel_max": 0.799830991, + "scaled_max_abs": 0.799830991 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10333.0722, + "index": 14, + "metrics": { + "corr": 0.625365145, + "finite": true, + "max_abs": 5.42063585, + "mean_abs": 0.155825326, + "psnr_db": 24.7951783, + "ref_absmax": 5.24590921, + "rel_max": 1.03330722, + "scaled_max_abs": 1.03330722 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 9508.44485, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.606848267, + "finite": true, + "max_abs": 1.77657448, + "mean_abs": 0.122498978, + "psnr_db": 21.3478706, + "ref_absmax": 1.8684175, + "rel_max": 0.950844485, + "scaled_max_abs": 0.950844485 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9897.13103, + "index": 15, + "metrics": { + "corr": 0.418816073, + "finite": true, + "max_abs": 24.1338635, + "mean_abs": 1.53300123, + "psnr_db": 22.1996511, + "ref_absmax": 24.3847065, + "rel_max": 0.989713103, + "scaled_max_abs": 0.989713103 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier", + "ungated_probes": { + "band_ratio": 6336.62724, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.599807831, + "finite": true, + "max_abs": 3.39278257, + "mean_abs": 0.845997788, + "psnr_db": 17.2235406, + "ref_absmax": 5.35424042, + "rel_max": 0.633662724, + "scaled_max_abs": 0.633662724 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.3125, + "band_ratio": 9962.78992, + "metrics": { + "corr": 0.398940223, + "finite": true, + "max_abs": 17.9580805, + "mean_abs": 1.37885773, + "psnr_db": 21.0934389, + "ref_absmax": 18.0251522, + "rel_max": 0.996278992, + "scaled_max_abs": 0.996278992 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 1, + "n_judged": 15, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": null + }, + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)", + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 7791.36518, + "index": 1, + "metrics": { + "corr": 0.700724837, + "finite": true, + "max_abs": 131.704185, + "mean_abs": 0.649051871, + "psnr_db": 34.7496782, + "ref_absmax": 169.038651, + "rel_max": 0.779136518, + "scaled_max_abs": 0.779136518 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.0/features.0.2/HardSwish_output_0" + }, + "status": "fail", + "tap": "net.features.0", + "ungated_probes": { + "band_ratio": 10100.9636, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.927061444, + "finite": true, + "max_abs": 31.9845462, + "mean_abs": 0.250178465, + "psnr_db": 35.0647228, + "ref_absmax": 31.6648464, + "rel_max": 1.01009636, + "scaled_max_abs": 1.01009636 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7920.54285, + "index": 2, + "metrics": { + "corr": 0.758502791, + "finite": true, + "max_abs": 35.3605871, + "mean_abs": 1.0408112, + "psnr_db": 31.8200032, + "ref_absmax": 44.644146, + "rel_max": 0.792054285, + "scaled_max_abs": 0.792054285 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.1/block/block.2/block.2.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.1", + "ungated_probes": { + "band_ratio": 4912.5493, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.614775715, + "finite": true, + "max_abs": 3.59953105, + "mean_abs": 0.377277399, + "psnr_db": 27.8324371, + "ref_absmax": 7.32721615, + "rel_max": 0.49125493, + "scaled_max_abs": 0.49125493 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 6644.51165, + "index": 3, + "metrics": { + "corr": 0.455421244, + "finite": true, + "max_abs": 20.3419695, + "mean_abs": 1.23973758, + "psnr_db": 28.932686, + "ref_absmax": 30.6146946, + "rel_max": 0.664451165, + "scaled_max_abs": 0.664451165 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.2/block/block.2/block.2.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.2", + "ungated_probes": { + "band_ratio": 5584.852, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.83495497, + "finite": true, + "max_abs": 2.40719634, + "mean_abs": 0.323246811, + "psnr_db": 21.5471129, + "ref_absmax": 4.31022406, + "rel_max": 0.5584852, + "scaled_max_abs": 0.5584852 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7984.04253, + "index": 4, + "metrics": { + "corr": 0.768756109, + "finite": true, + "max_abs": 20.891582, + "mean_abs": 1.01930916, + "psnr_db": 30.3846782, + "ref_absmax": 26.1666718, + "rel_max": 0.798404253, + "scaled_max_abs": 0.798404253 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.3/Add_output_0" + }, + "status": "fail", + "tap": "net.features.3", + "ungated_probes": { + "band_ratio": 5512.26761, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.871243982, + "finite": true, + "max_abs": 3.7126708, + "mean_abs": 0.374165358, + "psnr_db": 25.2277704, + "ref_absmax": 6.73528767, + "rel_max": 0.551226761, + "scaled_max_abs": 0.551226761 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7883.97727, + "index": 5, + "metrics": { + "corr": 0.661208107, + "finite": true, + "max_abs": 15.3746128, + "mean_abs": 0.62345901, + "psnr_db": 31.317369, + "ref_absmax": 19.5010872, + "rel_max": 0.788397727, + "scaled_max_abs": 0.788397727 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.4/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.4", + "ungated_probes": { + "band_ratio": 12205.7506, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.697751625, + "finite": true, + "max_abs": 3.61669028, + "mean_abs": 0.623064494, + "psnr_db": 15.933587, + "ref_absmax": 2.96310353, + "rel_max": 1.22057506, + "scaled_max_abs": 1.22057506 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9816.05257, + "index": 6, + "metrics": { + "corr": 0.576138197, + "finite": true, + "max_abs": 29.4934084, + "mean_abs": 0.666829058, + "psnr_db": 32.3220666, + "ref_absmax": 30.0460987, + "rel_max": 0.981605257, + "scaled_max_abs": 0.981605257 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.5/Add_output_0" + }, + "status": "fail", + "tap": "net.features.5", + "ungated_probes": { + "band_ratio": 14900.6358, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.549153655, + "finite": true, + "max_abs": 3.70585418, + "mean_abs": 0.924469855, + "psnr_db": 12.731051, + "ref_absmax": 2.48704433, + "rel_max": 1.49006358, + "scaled_max_abs": 1.49006358 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10062.8997, + "index": 7, + "metrics": { + "corr": 0.24860268, + "finite": true, + "max_abs": 68.1059052, + "mean_abs": 1.3298085, + "psnr_db": 31.529653, + "ref_absmax": 67.6801987, + "rel_max": 1.00628997, + "scaled_max_abs": 1.00628997 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.6/Add_output_0" + }, + "status": "fail", + "tap": "net.features.6", + "ungated_probes": { + "band_ratio": 10221.6217, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.678414843, + "finite": true, + "max_abs": 5.6453439, + "mean_abs": 1.50922723, + "psnr_db": 14.9102921, + "ref_absmax": 5.5229435, + "rel_max": 1.02216217, + "scaled_max_abs": 1.02216217 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10359.643, + "index": 8, + "metrics": { + "corr": 0.54431526, + "finite": true, + "max_abs": 17.9067831, + "mean_abs": 0.527449717, + "psnr_db": 30.5681254, + "ref_absmax": 17.2851353, + "rel_max": 1.0359643, + "scaled_max_abs": 1.0359643 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.7/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.7", + "ungated_probes": { + "band_ratio": 10952.9537, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.406422527, + "finite": true, + "max_abs": 3.26446986, + "mean_abs": 0.655888054, + "psnr_db": 16.424238, + "ref_absmax": 2.98044705, + "rel_max": 1.09529537, + "scaled_max_abs": 1.09529537 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10736.6424, + "index": 9, + "metrics": { + "corr": 0.564560406, + "finite": true, + "max_abs": 17.9547145, + "mean_abs": 0.610322134, + "psnr_db": 29.6608072, + "ref_absmax": 16.7228394, + "rel_max": 1.07366424, + "scaled_max_abs": 1.07366424 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.8/Add_output_0" + }, + "status": "fail", + "tap": "net.features.8", + "ungated_probes": { + "band_ratio": 11240.0235, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.487625282, + "finite": true, + "max_abs": 5.26868868, + "mean_abs": 0.669596289, + "psnr_db": 19.6550206, + "ref_absmax": 4.68743563, + "rel_max": 1.12400235, + "scaled_max_abs": 1.12400235 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 11625.0871, + "index": 10, + "metrics": { + "corr": 0.682266176, + "finite": true, + "max_abs": 3.14778972, + "mean_abs": 0.231254742, + "psnr_db": 23.6842607, + "ref_absmax": 2.7077558, + "rel_max": 1.16250871, + "scaled_max_abs": 1.16250871 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.9/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.9", + "ungated_probes": { + "band_ratio": 13036.8566, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.613668354, + "finite": true, + "max_abs": 1.58519794, + "mean_abs": 0.253258131, + "psnr_db": 16.5157634, + "ref_absmax": 1.21593571, + "rel_max": 1.30368566, + "scaled_max_abs": 1.30368566 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 12067.8201, + "index": 11, + "metrics": { + "corr": 0.676326883, + "finite": true, + "max_abs": 3.96472383, + "mean_abs": 0.303498363, + "psnr_db": 23.0121348, + "ref_absmax": 3.28536868, + "rel_max": 1.20678201, + "scaled_max_abs": 1.20678201 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.10/Add_output_0" + }, + "status": "fail", + "tap": "net.features.10", + "ungated_probes": { + "band_ratio": 10255.6465, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.630488543, + "finite": true, + "max_abs": 1.78455317, + "mean_abs": 0.294078424, + "psnr_db": 18.1651962, + "ref_absmax": 1.74006891, + "rel_max": 1.02556465, + "scaled_max_abs": 1.02556465 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 11725.9478, + "index": 12, + "metrics": { + "corr": 0.656004375, + "finite": true, + "max_abs": 4.65471792, + "mean_abs": 0.367386908, + "psnr_db": 23.090416, + "ref_absmax": 3.9695878, + "rel_max": 1.17259478, + "scaled_max_abs": 1.17259478 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.11/Add_output_0" + }, + "status": "fail", + "tap": "net.features.11", + "ungated_probes": { + "band_ratio": 10302.9977, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.566254462, + "finite": true, + "max_abs": 1.8762525, + "mean_abs": 0.351683996, + "psnr_db": 17.8617735, + "ref_absmax": 1.82107437, + "rel_max": 1.03029977, + "scaled_max_abs": 1.03029977 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 10333.0832, + "index": 13, + "metrics": { + "corr": 0.550706373, + "finite": true, + "max_abs": 9.56644958, + "mean_abs": 0.203421048, + "psnr_db": 27.1551037, + "ref_absmax": 9.25807858, + "rel_max": 1.03330832, + "scaled_max_abs": 1.03330832 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.12/features.12.2/HardSwish_output_0" + }, + "status": "fail", + "tap": "net.features.12", + "ungated_probes": { + "band_ratio": 7705.69197, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.51976884, + "finite": true, + "max_abs": 4.75492311, + "mean_abs": 0.170621975, + "psnr_db": 27.1683598, + "ref_absmax": 6.17066336, + "rel_max": 0.770569197, + "scaled_max_abs": 0.770569197 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 10259.1812, + "index": 14, + "metrics": { + "corr": 0.611271678, + "finite": true, + "max_abs": 5.32400584, + "mean_abs": 0.149785514, + "psnr_db": 24.8410298, + "ref_absmax": 5.18950367, + "rel_max": 1.02591812, + "scaled_max_abs": 1.02591812 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 7881.78732, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.590875947, + "finite": true, + "max_abs": 1.55165848, + "mean_abs": 0.125847461, + "psnr_db": 21.6898559, + "ref_absmax": 1.96866322, + "rel_max": 0.788178732, + "scaled_max_abs": 0.788178732 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9962.78992, + "index": 15, + "metrics": { + "corr": 0.379037047, + "finite": true, + "max_abs": 17.9580805, + "mean_abs": 1.45183978, + "psnr_db": 20.6330119, + "ref_absmax": 18.0251522, + "rel_max": 0.996278992, + "scaled_max_abs": 0.996278992 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier", + "ungated_probes": { + "band_ratio": 6651.90961, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.596708564, + "finite": true, + "max_abs": 3.45968878, + "mean_abs": 0.867983405, + "psnr_db": 16.9505019, + "ref_absmax": 5.20104599, + "rel_max": 0.665190961, + "scaled_max_abs": 0.665190961 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp32", + "id": "mobilenet_v3_small__drop_normalize__onnx_fp32", + "model": "mobilenet_v3_small", + "path": "onnx", + "variant": "drop_normalize" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/mobilenet_v3_small__fp16_as_fp32__coreml.json b/bench/verdicts_calibrated4/mobilenet_v3_small__fp16_as_fp32__coreml.json new file mode 100644 index 0000000000000000000000000000000000000000..048834df7dcfdb1b445af93972259c8bfcbc7f25 --- /dev/null +++ b/bench/verdicts_calibrated4/mobilenet_v3_small__fp16_as_fp32__coreml.json @@ -0,0 +1,1672 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": "artifact computes in fp16 (declared fp32); the drift onset (normalize) is the size fp16 explains: distributed precision drift, not a single-op fault; note: taps over the fp16 band too: ['net.features.1', 'net.features.2', 'net.features.3', 'net.features.7', 'net.features.8', 'net.features.9', 'net.features.10', 'net.features.11', 'net.features.12', 'net.avgpool', 'net.classifier']", + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "normalize", + "explained_by": null, + "nominal_band_ratio": 13.0516105, + "results": [ + { + "band_ratio": 16835.9372, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 8135.60838, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 20992.1961, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 16915.457, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 21192.4062, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [ + "inputs[0]: dtype float16 (declared float32)", + "outputs[0]: dtype float16 (declared float32)" + ], + "status": "precision_narrowing" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp32", + "first_divergence": { + "basis": "artifact computes in fp16 (declared fp32); the drift onset (normalize) is the size fp16 explains: distributed precision drift, not a single-op fault; note: taps over the fp16 band too: ['net.features.1', 'net.features.2', 'net.features.3', 'net.features.7', 'net.features.8', 'net.features.9', 'net.features.10', 'net.features.11', 'net.features.12', 'net.avgpool', 'net.classifier']", + "index": null, + "onset": { + "index": 0, + "tap": "normalize" + }, + "shape": 224, + "tap": null + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "e8f4b313bc394828af089248d6d729f5cfb7d031d184bf665f719d1a66fcd7d8", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "807adc810963567dc9e14f27330f17d8d7cd30ffa6b8e35992534a3dbc2f65e9", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "fp32 per-tap band on near-zero probes", + "reason": "C3-2: per-tap fp32 checks gate without the near_zero probes; they are measured and reported per tap ('ungated_probes'); the output gates on all probes. C4-1: when the output has failed and no gated tap fails, they localise the first divergence (earliest tap over band on all probes)" + }, + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D1", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.84375, + "band_ratio": 447.572937, + "metrics": { + "corr": 0.999234982, + "finite": true, + "max_abs": 1.09139347, + "mean_abs": 0.0600417178, + "psnr_db": 50.1867257, + "ref_absmax": 24.3847065, + "rel_max": 0.0447572937, + "scaled_max_abs": 0.0447572937 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 0, + "n_judged": 16, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 11.7570499, + "index": 0, + "metrics": { + "corr": 0.999999902, + "finite": true, + "max_abs": 0.0135545731, + "mean_abs": 0.000673314916, + "psnr_db": 83.5088008, + "ref_absmax": 11.5288897, + "rel_max": 0.00117570499, + "scaled_max_abs": 0.00117570499 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "status": "fail", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 10.0369993, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999989865, + "finite": true, + "max_abs": 0.00212574005, + "mean_abs": 0.000683009185, + "psnr_db": 51.8645591, + "ref_absmax": 2.11790395, + "rel_max": 0.00100369993, + "scaled_max_abs": 0.00100369993 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 26.4822202, + "index": 1, + "metrics": { + "corr": 0.999998677, + "finite": true, + "max_abs": 0.503248215, + "mean_abs": 0.00247470837, + "psnr_db": 88.8866038, + "ref_absmax": 190.032486, + "rel_max": 0.00264822202, + "scaled_max_abs": 0.00264822202 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_7_cast_fp16" + }, + "status": "fail", + "tap": "net.features.0", + "ungated_probes": { + "band_ratio": 31.0158476, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999996867, + "finite": true, + "max_abs": 0.0981006622, + "mean_abs": 0.00233640495, + "psnr_db": 78.9079794, + "ref_absmax": 31.6292057, + "rel_max": 0.00310158476, + "scaled_max_abs": 0.00310158476 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 102.786363, + "index": 2, + "metrics": { + "corr": 0.999956419, + "finite": true, + "max_abs": 0.467163086, + "mean_abs": 0.0112648139, + "psnr_db": 70.3338486, + "ref_absmax": 45.4499092, + "rel_max": 0.0102786363, + "scaled_max_abs": 0.0102786363 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_27_cast_fp16" + }, + "status": "fail", + "tap": "net.features.1", + "ungated_probes": { + "band_ratio": 104.83905, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999863133, + "finite": true, + "max_abs": 0.0768647194, + "mean_abs": 0.00814281796, + "psnr_db": 61.6292231, + "ref_absmax": 7.33168793, + "rel_max": 0.010483905, + "scaled_max_abs": 0.010483905 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 106.091941, + "index": 3, + "metrics": { + "corr": 0.99994818, + "finite": true, + "max_abs": 0.274743319, + "mean_abs": 0.0147454924, + "psnr_db": 66.0890762, + "ref_absmax": 25.896719, + "rel_max": 0.0106091941, + "scaled_max_abs": 0.0106091941 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_43_cast_fp16" + }, + "status": "fail", + "tap": "net.features.2", + "ungated_probes": { + "band_ratio": 368.51515, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999703098, + "finite": true, + "max_abs": 0.158742905, + "mean_abs": 0.0174966458, + "psnr_db": 48.4456614, + "ref_absmax": 4.30763578, + "rel_max": 0.036851515, + "scaled_max_abs": 0.036851515 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 219.511544, + "index": 4, + "metrics": { + "corr": 0.999882403, + "finite": true, + "max_abs": 0.564396858, + "mean_abs": 0.024413594, + "psnr_db": 63.1340233, + "ref_absmax": 25.7114887, + "rel_max": 0.0219511544, + "scaled_max_abs": 0.0219511544 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59_cast_fp16" + }, + "status": "fail", + "tap": "net.features.3", + "ungated_probes": { + "band_ratio": 581.311992, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.998945202, + "finite": true, + "max_abs": 0.391348124, + "mean_abs": 0.0424800107, + "psnr_db": 45.64331, + "ref_absmax": 6.73215294, + "rel_max": 0.0581311992, + "scaled_max_abs": 0.0581311992 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 5 + } + }, + { + "band_ratio": 93.7738168, + "index": 5, + "metrics": { + "corr": 0.999914626, + "finite": true, + "max_abs": 0.160427868, + "mean_abs": 0.011878323, + "psnr_db": 65.5863665, + "ref_absmax": 17.1079597, + "rel_max": 0.00937738168, + "scaled_max_abs": 0.00937738168 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85_cast_fp16" + }, + "status": "fail", + "tap": "net.features.4", + "ungated_probes": { + "band_ratio": 716.100564, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999003645, + "finite": true, + "max_abs": 0.209820509, + "mean_abs": 0.0432353905, + "psnr_db": 40.5614386, + "ref_absmax": 2.93004251, + "rel_max": 0.0716100564, + "scaled_max_abs": 0.0716100564 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 11 + } + }, + { + "band_ratio": 103.552023, + "index": 6, + "metrics": { + "corr": 0.999818252, + "finite": true, + "max_abs": 0.231113911, + "mean_abs": 0.0176675619, + "psnr_db": 63.3866416, + "ref_absmax": 22.3186283, + "rel_max": 0.0103552023, + "scaled_max_abs": 0.0103552023 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_111_cast_fp16" + }, + "status": "fail", + "tap": "net.features.5", + "ungated_probes": { + "band_ratio": 1658.23541, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.995067037, + "finite": true, + "max_abs": 0.477863312, + "mean_abs": 0.0713718264, + "psnr_db": 35.5785246, + "ref_absmax": 2.88175797, + "rel_max": 0.165823541, + "scaled_max_abs": 0.165823541 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 11 + } + }, + { + "band_ratio": 77.6937713, + "index": 7, + "metrics": { + "corr": 0.99991128, + "finite": true, + "max_abs": 0.487684369, + "mean_abs": 0.033057103, + "psnr_db": 67.0238793, + "ref_absmax": 62.7700729, + "rel_max": 0.00776937713, + "scaled_max_abs": 0.00776937713 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_137_cast_fp16" + }, + "status": "fail", + "tap": "net.features.6", + "ungated_probes": { + "band_ratio": 1287.79893, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.996395203, + "finite": true, + "max_abs": 0.704397678, + "mean_abs": 0.0877669746, + "psnr_db": 39.175585, + "ref_absmax": 5.46977997, + "rel_max": 0.128779893, + "scaled_max_abs": 0.128779893 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "wide_range", + "index": 22 + } + }, + { + "band_ratio": 153.782485, + "index": 8, + "metrics": { + "corr": 0.999773931, + "finite": true, + "max_abs": 0.318088531, + "mean_abs": 0.0181899515, + "psnr_db": 63.1572539, + "ref_absmax": 20.6843147, + "rel_max": 0.0153782485, + "scaled_max_abs": 0.0153782485 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_163_cast_fp16" + }, + "status": "fail", + "tap": "net.features.7", + "ungated_probes": { + "band_ratio": 1406.29466, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.995404181, + "finite": true, + "max_abs": 0.407417655, + "mean_abs": 0.0474563697, + "psnr_db": 38.2672776, + "ref_absmax": 2.89710021, + "rel_max": 0.140629466, + "scaled_max_abs": 0.140629466 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 211.867255, + "index": 9, + "metrics": { + "corr": 0.999666551, + "finite": true, + "max_abs": 0.41216588, + "mean_abs": 0.0237407878, + "psnr_db": 60.4334855, + "ref_absmax": 19.453968, + "rel_max": 0.0211867255, + "scaled_max_abs": 0.0211867255 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_189_cast_fp16" + }, + "status": "fail", + "tap": "net.features.8", + "ungated_probes": { + "band_ratio": 1155.77195, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.995740654, + "finite": true, + "max_abs": 0.487973213, + "mean_abs": 0.0517831369, + "psnr_db": 40.990841, + "ref_absmax": 4.22205448, + "rel_max": 0.115577195, + "scaled_max_abs": 0.115577195 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 477.444673, + "index": 10, + "metrics": { + "corr": 0.999383706, + "finite": true, + "max_abs": 0.166851461, + "mean_abs": 0.0101350262, + "psnr_db": 52.2634085, + "ref_absmax": 3.49467635, + "rel_max": 0.0477444673, + "scaled_max_abs": 0.0477444673 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_215_cast_fp16" + }, + "status": "fail", + "tap": "net.features.9", + "ungated_probes": { + "band_ratio": 1325.39076, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.996727404, + "finite": true, + "max_abs": 0.15623951, + "mean_abs": 0.0244909046, + "psnr_db": 36.627883, + "ref_absmax": 1.17881846, + "rel_max": 0.132539076, + "scaled_max_abs": 0.132539076 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 620.57687, + "index": 11, + "metrics": { + "corr": 0.999303719, + "finite": true, + "max_abs": 0.232064664, + "mean_abs": 0.0131716438, + "psnr_db": 50.869822, + "ref_absmax": 3.73949909, + "rel_max": 0.062057687, + "scaled_max_abs": 0.062057687 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_241_cast_fp16" + }, + "status": "fail", + "tap": "net.features.10", + "ungated_probes": { + "band_ratio": 1314.18031, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.995767729, + "finite": true, + "max_abs": 0.214002073, + "mean_abs": 0.0334405065, + "psnr_db": 36.7988522, + "ref_absmax": 1.62840724, + "rel_max": 0.131418031, + "scaled_max_abs": 0.131418031 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 979.95766, + "index": 12, + "metrics": { + "corr": 0.999203208, + "finite": true, + "max_abs": 0.444393635, + "mean_abs": 0.0160413588, + "psnr_db": 50.5706585, + "ref_absmax": 4.53482485, + "rel_max": 0.097995766, + "scaled_max_abs": 0.097995766 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_267_cast_fp16" + }, + "status": "fail", + "tap": "net.features.11", + "ungated_probes": { + "band_ratio": 1596.76941, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.995402573, + "finite": true, + "max_abs": 0.269436717, + "mean_abs": 0.0369284673, + "psnr_db": 36.8692593, + "ref_absmax": 1.68738651, + "rel_max": 0.159676941, + "scaled_max_abs": 0.159676941 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 782.538435, + "index": 13, + "metrics": { + "corr": 0.998774858, + "finite": true, + "max_abs": 0.790345192, + "mean_abs": 0.0101341878, + "psnr_db": 52.3569601, + "ref_absmax": 10.099762, + "rel_max": 0.0782538435, + "scaled_max_abs": 0.0782538435 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_273_cast_fp16" + }, + "status": "fail", + "tap": "net.features.12", + "ungated_probes": { + "band_ratio": 1408.9645, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.993128558, + "finite": true, + "max_abs": 0.795100451, + "mean_abs": 0.0176334475, + "psnr_db": 45.3127768, + "ref_absmax": 5.64315462, + "rel_max": 0.14089645, + "scaled_max_abs": 0.14089645 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 593.494378, + "index": 14, + "metrics": { + "corr": 0.999245472, + "finite": true, + "max_abs": 0.311341763, + "mean_abs": 0.00589836927, + "psnr_db": 51.1373797, + "ref_absmax": 5.24590921, + "rel_max": 0.0593494378, + "scaled_max_abs": 0.0593494378 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 1057.65671, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.994001799, + "finite": true, + "max_abs": 0.197614431, + "mean_abs": 0.013761402, + "psnr_db": 39.6849502, + "ref_absmax": 1.8684175, + "rel_max": 0.105765671, + "scaled_max_abs": 0.105765671 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 447.572937, + "index": 15, + "metrics": { + "corr": 0.999392826, + "finite": true, + "max_abs": 1.09139347, + "mean_abs": 0.051955011, + "psnr_db": 50.7689641, + "ref_absmax": 24.3847065, + "rel_max": 0.0447572937, + "scaled_max_abs": 0.0447572937 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier", + "ungated_probes": { + "band_ratio": 898.320779, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.99341394, + "finite": true, + "max_abs": 0.480982542, + "mean_abs": 0.116648666, + "psnr_db": 34.5850008, + "ref_absmax": 5.35424042, + "rel_max": 0.0898320779, + "scaled_max_abs": 0.0898320779 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 292.044884, + "metrics": { + "corr": 0.99960838, + "finite": true, + "max_abs": 0.526415348, + "mean_abs": 0.0415014574, + "psnr_db": 51.9897065, + "ref_absmax": 18.0251522, + "rel_max": 0.0292044884, + "scaled_max_abs": 0.0292044884 + }, + "status": "fail", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + }, + "first_fail_index": 0, + "n_judged": 16, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 11.6213884, + "index": 0, + "metrics": { + "corr": 0.999999897, + "finite": true, + "max_abs": 0.0133981705, + "mean_abs": 0.000679052144, + "psnr_db": 83.5479136, + "ref_absmax": 11.5288897, + "rel_max": 0.00116213884, + "scaled_max_abs": 0.00116213884 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "status": "fail", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 10.0369993, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999989885, + "finite": true, + "max_abs": 0.00212574005, + "mean_abs": 0.000683342096, + "psnr_db": 51.9168588, + "ref_absmax": 2.11790395, + "rel_max": 0.00100369993, + "scaled_max_abs": 0.00100369993 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 33.139093, + "index": 1, + "metrics": { + "corr": 0.999998592, + "finite": true, + "max_abs": 0.560178757, + "mean_abs": 0.00247460624, + "psnr_db": 88.088037, + "ref_absmax": 169.038651, + "rel_max": 0.0033139093, + "scaled_max_abs": 0.0033139093 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_7_cast_fp16" + }, + "status": "fail", + "tap": "net.features.0", + "ungated_probes": { + "band_ratio": 24.9766602, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999996858, + "finite": true, + "max_abs": 0.0790882111, + "mean_abs": 0.00233643067, + "psnr_db": 78.9156282, + "ref_absmax": 31.6648464, + "rel_max": 0.00249766602, + "scaled_max_abs": 0.00249766602 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 109.594004, + "index": 2, + "metrics": { + "corr": 0.999948927, + "finite": true, + "max_abs": 0.489273071, + "mean_abs": 0.0113205684, + "psnr_db": 69.6499997, + "ref_absmax": 44.644146, + "rel_max": 0.0109594004, + "scaled_max_abs": 0.0109594004 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_27_cast_fp16" + }, + "status": "fail", + "tap": "net.features.1", + "ungated_probes": { + "band_ratio": 106.110872, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.99985463, + "finite": true, + "max_abs": 0.0777497292, + "mean_abs": 0.00815103559, + "psnr_db": 61.6113687, + "ref_absmax": 7.32721615, + "rel_max": 0.0106110872, + "scaled_max_abs": 0.0106110872 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 100.240612, + "index": 3, + "metrics": { + "corr": 0.999938249, + "finite": true, + "max_abs": 0.306883574, + "mean_abs": 0.0151153247, + "psnr_db": 67.0452904, + "ref_absmax": 30.6146946, + "rel_max": 0.0100240612, + "scaled_max_abs": 0.0100240612 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_43_cast_fp16" + }, + "status": "fail", + "tap": "net.features.2", + "ungated_probes": { + "band_ratio": 347.861176, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999698411, + "finite": true, + "max_abs": 0.149935961, + "mean_abs": 0.0175439702, + "psnr_db": 48.4301735, + "ref_absmax": 4.31022406, + "rel_max": 0.0347861176, + "scaled_max_abs": 0.0347861176 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 6 + } + }, + { + "band_ratio": 173.739321, + "index": 4, + "metrics": { + "corr": 0.999869489, + "finite": true, + "max_abs": 0.454617977, + "mean_abs": 0.0252999498, + "psnr_db": 62.7790672, + "ref_absmax": 26.1666718, + "rel_max": 0.0173739321, + "scaled_max_abs": 0.0173739321 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59_cast_fp16" + }, + "status": "fail", + "tap": "net.features.3", + "ungated_probes": { + "band_ratio": 569.821332, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.99891551, + "finite": true, + "max_abs": 0.383791059, + "mean_abs": 0.0429348054, + "psnr_db": 45.5458497, + "ref_absmax": 6.73528767, + "rel_max": 0.0569821332, + "scaled_max_abs": 0.0569821332 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 13 + } + }, + { + "band_ratio": 71.3106586, + "index": 5, + "metrics": { + "corr": 0.999906392, + "finite": true, + "max_abs": 0.139063537, + "mean_abs": 0.0125029459, + "psnr_db": 66.1154456, + "ref_absmax": 19.5010872, + "rel_max": 0.00713106586, + "scaled_max_abs": 0.00713106586 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85_cast_fp16" + }, + "status": "fail", + "tap": "net.features.4", + "ungated_probes": { + "band_ratio": 679.826462, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.998997759, + "finite": true, + "max_abs": 0.201439619, + "mean_abs": 0.0437143224, + "psnr_db": 40.6056787, + "ref_absmax": 2.96310353, + "rel_max": 0.0679826462, + "scaled_max_abs": 0.0679826462 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 8 + } + }, + { + "band_ratio": 65.5634655, + "index": 6, + "metrics": { + "corr": 0.999809437, + "finite": true, + "max_abs": 0.196992636, + "mean_abs": 0.0188090965, + "psnr_db": 64.9753755, + "ref_absmax": 30.0460987, + "rel_max": 0.00655634655, + "scaled_max_abs": 0.00655634655 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_111_cast_fp16" + }, + "status": "fail", + "tap": "net.features.5", + "ungated_probes": { + "band_ratio": 1635.43218, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.994935346, + "finite": true, + "max_abs": 0.406739235, + "mean_abs": 0.0711377555, + "psnr_db": 34.8701679, + "ref_absmax": 2.48704433, + "rel_max": 0.163543218, + "scaled_max_abs": 0.163543218 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "wide_range", + "index": 21 + } + }, + { + "band_ratio": 80.9386427, + "index": 7, + "metrics": { + "corr": 0.999937435, + "finite": true, + "max_abs": 0.547794342, + "mean_abs": 0.0287967896, + "psnr_db": 70.4108972, + "ref_absmax": 67.6801987, + "rel_max": 0.00809386427, + "scaled_max_abs": 0.00809386427 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_137_cast_fp16" + }, + "status": "fail", + "tap": "net.features.6", + "ungated_probes": { + "band_ratio": 1107.07085, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.996436872, + "finite": true, + "max_abs": 0.611428976, + "mean_abs": 0.0858850512, + "psnr_db": 39.4280259, + "ref_absmax": 5.5229435, + "rel_max": 0.110707085, + "scaled_max_abs": 0.110707085 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 199.108646, + "index": 8, + "metrics": { + "corr": 0.999766247, + "finite": true, + "max_abs": 0.344161987, + "mean_abs": 0.0176645469, + "psnr_db": 62.4901681, + "ref_absmax": 17.2851353, + "rel_max": 0.0199108646, + "scaled_max_abs": 0.0199108646 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_163_cast_fp16" + }, + "status": "fail", + "tap": "net.features.7", + "ungated_probes": { + "band_ratio": 1241.07174, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.995322683, + "finite": true, + "max_abs": 0.369894862, + "mean_abs": 0.0472530245, + "psnr_db": 38.9342782, + "ref_absmax": 2.98044705, + "rel_max": 0.124107174, + "scaled_max_abs": 0.124107174 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 209.150548, + "index": 9, + "metrics": { + "corr": 0.999703451, + "finite": true, + "max_abs": 0.349759102, + "mean_abs": 0.0219996836, + "psnr_db": 60.4962599, + "ref_absmax": 16.7228394, + "rel_max": 0.0209150548, + "scaled_max_abs": 0.0209150548 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_189_cast_fp16" + }, + "status": "fail", + "tap": "net.features.8", + "ungated_probes": { + "band_ratio": 1008.35659, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.99567781, + "finite": true, + "max_abs": 0.472660661, + "mean_abs": 0.0515427796, + "psnr_db": 41.5819594, + "ref_absmax": 4.68743563, + "rel_max": 0.100835659, + "scaled_max_abs": 0.100835659 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 363.802396, + "index": 10, + "metrics": { + "corr": 0.999702438, + "finite": true, + "max_abs": 0.098508805, + "mean_abs": 0.00807796254, + "psnr_db": 53.5598496, + "ref_absmax": 2.7077558, + "rel_max": 0.0363802396, + "scaled_max_abs": 0.0363802396 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_215_cast_fp16" + }, + "status": "fail", + "tap": "net.features.9", + "ungated_probes": { + "band_ratio": 1486.83143, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.996622472, + "finite": true, + "max_abs": 0.180789143, + "mean_abs": 0.0250477666, + "psnr_db": 36.7899141, + "ref_absmax": 1.21593571, + "rel_max": 0.148683143, + "scaled_max_abs": 0.148683143 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 372.968907, + "index": 11, + "metrics": { + "corr": 0.999692043, + "finite": true, + "max_abs": 0.122534037, + "mean_abs": 0.0102970536, + "psnr_db": 52.7900561, + "ref_absmax": 3.28536868, + "rel_max": 0.0372968907, + "scaled_max_abs": 0.0372968907 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_241_cast_fp16" + }, + "status": "fail", + "tap": "net.features.10", + "ungated_probes": { + "band_ratio": 1302.63592, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.995580356, + "finite": true, + "max_abs": 0.226667628, + "mean_abs": 0.0345774245, + "psnr_db": 36.8653057, + "ref_absmax": 1.74006891, + "rel_max": 0.130263592, + "scaled_max_abs": 0.130263592 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 358.976142, + "index": 12, + "metrics": { + "corr": 0.999701508, + "finite": true, + "max_abs": 0.142498732, + "mean_abs": 0.0121169414, + "psnr_db": 53.2080576, + "ref_absmax": 3.9695878, + "rel_max": 0.0358976142, + "scaled_max_abs": 0.0358976142 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_267_cast_fp16" + }, + "status": "fail", + "tap": "net.features.11", + "ungated_probes": { + "band_ratio": 1604.14457, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.99504438, + "finite": true, + "max_abs": 0.292126656, + "mean_abs": 0.0405230737, + "psnr_db": 36.727036, + "ref_absmax": 1.82107437, + "rel_max": 0.160414457, + "scaled_max_abs": 0.160414457 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "wide_range", + "index": 22 + } + }, + { + "band_ratio": 455.017919, + "index": 13, + "metrics": { + "corr": 0.999616264, + "finite": true, + "max_abs": 0.421259165, + "mean_abs": 0.00705443336, + "psnr_db": 57.0665978, + "ref_absmax": 9.25807858, + "rel_max": 0.0455017919, + "scaled_max_abs": 0.0455017919 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_273_cast_fp16" + }, + "status": "fail", + "tap": "net.features.12", + "ungated_probes": { + "band_ratio": 1670.64697, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.99156436, + "finite": true, + "max_abs": 1.0309, + "mean_abs": 0.0189261933, + "psnr_db": 45.1014695, + "ref_absmax": 6.17066336, + "rel_max": 0.167064697, + "scaled_max_abs": 0.167064697 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 166.095556, + "index": 14, + "metrics": { + "corr": 0.999865671, + "finite": true, + "max_abs": 0.0861953497, + "mean_abs": 0.00331361849, + "psnr_db": 58.7404357, + "ref_absmax": 5.18950367, + "rel_max": 0.0166095556, + "scaled_max_abs": 0.0166095556 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 1041.29386, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.992668412, + "finite": true, + "max_abs": 0.204995692, + "mean_abs": 0.0146954585, + "psnr_db": 39.4505772, + "ref_absmax": 1.96866322, + "rel_max": 0.104129386, + "scaled_max_abs": 0.104129386 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 148.506868, + "index": 15, + "metrics": { + "corr": 0.999862058, + "finite": true, + "max_abs": 0.26768589, + "mean_abs": 0.0299743388, + "psnr_db": 55.8435828, + "ref_absmax": 18.0251522, + "rel_max": 0.0148506868, + "scaled_max_abs": 0.0148506868 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier", + "ungated_probes": { + "band_ratio": 1012.13362, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.992451386, + "finite": true, + "max_abs": 0.526415348, + "mean_abs": 0.122191287, + "psnr_db": 34.1227098, + "ref_absmax": 5.20104599, + "rel_max": 0.101213362, + "scaled_max_abs": 0.101213362 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp16", + "id": "mobilenet_v3_small__fp16_as_fp32__coreml", + "model": "mobilenet_v3_small", + "path": "coreml", + "variant": "fp16_as_fp32" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/mobilenet_v3_small__fp16_as_fp32__litert.json b/bench/verdicts_calibrated4/mobilenet_v3_small__fp16_as_fp32__litert.json new file mode 100644 index 0000000000000000000000000000000000000000..df3dfc85e7357ac286a7a2c48462e50a9dfe978b --- /dev/null +++ b/bench/verdicts_calibrated4/mobilenet_v3_small__fp16_as_fp32__litert.json @@ -0,0 +1,1821 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": "artifact computes in fp16 (declared fp32); the drift onset (net.features.0) is the size fp16 explains: distributed precision drift, not a single-op fault; note: taps over the fp16 band too: ['net.features.7', 'net.features.8', 'net.features.9', 'net.features.10', 'net.features.11', 'net.features.12', 'net.avgpool', 'net.classifier']", + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "net.features.0", + "explained_by": null, + "nominal_band_ratio": 3.30068449, + "results": [ + { + "band_ratio": 4948.63044, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 7750.80647, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 46509.0235, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 9825.58418, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 35229.9106, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 0.0819612491, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000147819519, + "mean_abs": 7.12326743e-06, + "psnr_db": 125.094877, + "ref_absmax": 18.0352936, + "rel_max": 8.19612491e-06, + "scaled_max_abs": 8.19612491e-06 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 116, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 1, + "n_ops_total": 169, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp32", + "first_divergence": { + "basis": "artifact computes in fp16 (declared fp32); the drift onset (net.features.0) is the size fp16 explains: distributed precision drift, not a single-op fault; note: taps over the fp16 band too: ['net.features.7', 'net.features.8', 'net.features.9', 'net.features.10', 'net.features.11', 'net.features.12', 'net.avgpool', 'net.classifier']", + "index": null, + "onset": { + "index": 1, + "tap": "net.features.0" + }, + "shape": 224, + "tap": null + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "c1e0d3f6eacceb0f07eea7aaf062f75a642b665785bf323c4ed798c4c424167a", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "e68287c6bf447d1c5af1840f2957e8f25a438b576d35374a5a1e6bfa57051ad5", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "fp32 per-tap band on near-zero probes", + "reason": "C3-2: per-tap fp32 checks gate without the near_zero probes; they are measured and reported per tap ('ungated_probes'); the output gates on all probes. C4-1: when the output has failed and no gated tap fails, they localise the first divergence (earliest tap over band on all probes)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D1", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 347.403663, + "metrics": { + "corr": 0.999796187, + "finite": true, + "max_abs": 0.847133636, + "mean_abs": 0.020741918, + "psnr_db": 55.7641027, + "ref_absmax": 24.3847065, + "rel_max": 0.0347403663, + "scaled_max_abs": 0.0347403663 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 1, + "n_judged": 16, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.06644368e-08, + "psnr_db": 164.113247, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.00112572895, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.38418579e-07, + "mean_abs": 4.66593688e-08, + "psnr_db": 130.397207, + "ref_absmax": 2.11790395, + "rel_max": 1.12572895e-07, + "scaled_max_abs": 1.12572895e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 9.15032087, + "index": 1, + "metrics": { + "corr": 0.999999788, + "finite": true, + "max_abs": 0.173885822, + "mean_abs": 0.000491690089, + "psnr_db": 96.452526, + "ref_absmax": 190.032486, + "rel_max": 0.000915032087, + "scaled_max_abs": 0.000915032087 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_0/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "fail", + "tap": "net.features.0", + "ungated_probes": { + "band_ratio": 5.57263716, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999637, + "finite": true, + "max_abs": 0.0176258087, + "mean_abs": 0.00057631405, + "psnr_db": 88.0198314, + "ref_absmax": 31.6292057, + "rel_max": 0.000557263716, + "scaled_max_abs": 0.000557263716 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7.27773511, + "index": 2, + "metrics": { + "corr": 0.999999561, + "finite": true, + "max_abs": 0.03307724, + "mean_abs": 0.00171851299, + "psnr_db": 89.9395317, + "ref_absmax": 45.4499092, + "rel_max": 0.000727773511, + "scaled_max_abs": 0.000727773511 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_1/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.1", + "ungated_probes": { + "band_ratio": 7.21464777, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999994644, + "finite": true, + "max_abs": 0.0052895546, + "mean_abs": 0.00180824555, + "psnr_db": 75.260903, + "ref_absmax": 7.33168793, + "rel_max": 0.000721464777, + "scaled_max_abs": 0.000721464777 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 15.302635, + "index": 3, + "metrics": { + "corr": 0.999998729, + "finite": true, + "max_abs": 0.0396288037, + "mean_abs": 0.00219825378, + "psnr_db": 82.0880915, + "ref_absmax": 25.896719, + "rel_max": 0.0015302635, + "scaled_max_abs": 0.0015302635 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_2/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.2", + "ungated_probes": { + "band_ratio": 62.8256739, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999978969, + "finite": true, + "max_abs": 0.0270630121, + "mean_abs": 0.00474835159, + "psnr_db": 59.8814551, + "ref_absmax": 4.30763578, + "rel_max": 0.00628256739, + "scaled_max_abs": 0.00628256739 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 24.4577705, + "index": 4, + "metrics": { + "corr": 0.999995999, + "finite": true, + "max_abs": 0.0628845692, + "mean_abs": 0.00373482084, + "psnr_db": 77.7655414, + "ref_absmax": 25.7114887, + "rel_max": 0.00244577705, + "scaled_max_abs": 0.00244577705 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_3;" + }, + "status": "fail", + "tap": "net.features.3", + "ungated_probes": { + "band_ratio": 60.3429311, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999964888, + "finite": true, + "max_abs": 0.0406237841, + "mean_abs": 0.00842705953, + "psnr_db": 60.2714331, + "ref_absmax": 6.73215294, + "rel_max": 0.00603429311, + "scaled_max_abs": 0.00603429311 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "wide_range", + "index": 22 + } + }, + { + "band_ratio": 27.3230174, + "index": 5, + "metrics": { + "corr": 0.999991396, + "finite": true, + "max_abs": 0.0467441082, + "mean_abs": 0.00259793514, + "psnr_db": 75.5081164, + "ref_absmax": 17.1079597, + "rel_max": 0.00273230174, + "scaled_max_abs": 0.00273230174 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_4/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.4", + "ungated_probes": { + "band_ratio": 153.99257, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999917104, + "finite": true, + "max_abs": 0.0451204777, + "mean_abs": 0.0122429244, + "psnr_db": 51.2472031, + "ref_absmax": 2.93004251, + "rel_max": 0.015399257, + "scaled_max_abs": 0.015399257 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "wide_range", + "index": 20 + } + }, + { + "band_ratio": 30.9419997, + "index": 6, + "metrics": { + "corr": 0.999981664, + "finite": true, + "max_abs": 0.0690582991, + "mean_abs": 0.00390545777, + "psnr_db": 73.3370527, + "ref_absmax": 22.3186283, + "rel_max": 0.00309419997, + "scaled_max_abs": 0.00309419997 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_5;" + }, + "status": "fail", + "tap": "net.features.5", + "ungated_probes": { + "band_ratio": 312.233365, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999591106, + "finite": true, + "max_abs": 0.0899780989, + "mean_abs": 0.0207205114, + "psnr_db": 46.3842096, + "ref_absmax": 2.88175797, + "rel_max": 0.0312233365, + "scaled_max_abs": 0.0312233365 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "wide_range", + "index": 22 + } + }, + { + "band_ratio": 39.4882259, + "index": 7, + "metrics": { + "corr": 0.999978174, + "finite": true, + "max_abs": 0.247867882, + "mean_abs": 0.0106645001, + "psnr_db": 73.2247582, + "ref_absmax": 62.7700729, + "rel_max": 0.00394882259, + "scaled_max_abs": 0.00394882259 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_6;" + }, + "status": "fail", + "tap": "net.features.6", + "ungated_probes": { + "band_ratio": 192.760785, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999748316, + "finite": true, + "max_abs": 0.105435908, + "mean_abs": 0.0227102224, + "psnr_db": 50.8511564, + "ref_absmax": 5.46977997, + "rel_max": 0.0192760785, + "scaled_max_abs": 0.0192760785 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "wide_range", + "index": 23 + } + }, + { + "band_ratio": 142.171571, + "index": 8, + "metrics": { + "corr": 0.999950155, + "finite": true, + "max_abs": 0.294072151, + "mean_abs": 0.00505179569, + "psnr_db": 69.6783006, + "ref_absmax": 20.6843147, + "rel_max": 0.0142171571, + "scaled_max_abs": 0.0142171571 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_7/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.7", + "ungated_probes": { + "band_ratio": 214.203084, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999742456, + "finite": true, + "max_abs": 0.0620567799, + "mean_abs": 0.0108346538, + "psnr_db": 50.7294697, + "ref_absmax": 2.89710021, + "rel_max": 0.0214203084, + "scaled_max_abs": 0.0214203084 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 174.337408, + "index": 9, + "metrics": { + "corr": 0.999923814, + "finite": true, + "max_abs": 0.339155436, + "mean_abs": 0.00686795214, + "psnr_db": 66.8801887, + "ref_absmax": 19.453968, + "rel_max": 0.0174337408, + "scaled_max_abs": 0.0174337408 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_8;" + }, + "status": "fail", + "tap": "net.features.8", + "ungated_probes": { + "band_ratio": 231.036594, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999763383, + "finite": true, + "max_abs": 0.0975449085, + "mean_abs": 0.0124097879, + "psnr_db": 53.5496834, + "ref_absmax": 4.22205448, + "rel_max": 0.0231036594, + "scaled_max_abs": 0.0231036594 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 426.980192, + "index": 10, + "metrics": { + "corr": 0.999818311, + "finite": true, + "max_abs": 0.149215758, + "mean_abs": 0.00356252421, + "psnr_db": 57.5451856, + "ref_absmax": 3.49467635, + "rel_max": 0.0426980192, + "scaled_max_abs": 0.0426980192 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_9/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.9", + "ungated_probes": { + "band_ratio": 253.784144, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999813011, + "finite": true, + "max_abs": 0.0299165435, + "mean_abs": 0.00558531665, + "psnr_db": 49.0704249, + "ref_absmax": 1.17881846, + "rel_max": 0.0253784144, + "scaled_max_abs": 0.0253784144 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 518.188833, + "index": 11, + "metrics": { + "corr": 0.999819831, + "finite": true, + "max_abs": 0.193776667, + "mean_abs": 0.00437471474, + "psnr_db": 56.7356695, + "ref_absmax": 3.73949909, + "rel_max": 0.0518188833, + "scaled_max_abs": 0.0518188833 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_10;" + }, + "status": "fail", + "tap": "net.features.10", + "ungated_probes": { + "band_ratio": 223.96957, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999836416, + "finite": true, + "max_abs": 0.0364713669, + "mean_abs": 0.00651132654, + "psnr_db": 50.9448612, + "ref_absmax": 1.62840724, + "rel_max": 0.022396957, + "scaled_max_abs": 0.022396957 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 764.62924, + "index": 12, + "metrics": { + "corr": 0.999743787, + "finite": true, + "max_abs": 0.346745968, + "mean_abs": 0.00574897057, + "psnr_db": 55.4939358, + "ref_absmax": 4.53482485, + "rel_max": 0.076462924, + "scaled_max_abs": 0.076462924 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_11;" + }, + "status": "fail", + "tap": "net.features.11", + "ungated_probes": { + "band_ratio": 253.483724, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999823812, + "finite": true, + "max_abs": 0.0427725017, + "mean_abs": 0.00742033618, + "psnr_db": 51.0658271, + "ref_absmax": 1.68738651, + "rel_max": 0.0253483724, + "scaled_max_abs": 0.0253483724 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 632.643266, + "index": 13, + "metrics": { + "corr": 0.999538092, + "finite": true, + "max_abs": 0.638954639, + "mean_abs": 0.00383947892, + "psnr_db": 56.5975587, + "ref_absmax": 10.099762, + "rel_max": 0.0632643266, + "scaled_max_abs": 0.0632643266 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_12/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "fail", + "tap": "net.features.12", + "ungated_probes": { + "band_ratio": 114.626214, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999802951, + "finite": true, + "max_abs": 0.0646853447, + "mean_abs": 0.00328892496, + "psnr_db": 60.7635375, + "ref_absmax": 5.64315462, + "rel_max": 0.0114626214, + "scaled_max_abs": 0.0114626214 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 392.971952, + "index": 14, + "metrics": { + "corr": 0.999727129, + "finite": true, + "max_abs": 0.206149518, + "mean_abs": 0.00253583691, + "psnr_db": 55.553619, + "ref_absmax": 5.24590921, + "rel_max": 0.0392971952, + "scaled_max_abs": 0.0392971952 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;;zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Seque" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 155.658373, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999830628, + "finite": true, + "max_abs": 0.0290834829, + "mean_abs": 0.00241003048, + "psnr_db": 55.147581, + "ref_absmax": 1.8684175, + "rel_max": 0.0155658373, + "scaled_max_abs": 0.0155658373 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 347.403663, + "index": 15, + "metrics": { + "corr": 0.999791143, + "finite": true, + "max_abs": 0.847133636, + "mean_abs": 0.0208772481, + "psnr_db": 55.2944186, + "ref_absmax": 24.3847065, + "rel_max": 0.0347403663, + "scaled_max_abs": 0.0347403663 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.classifier", + "ungated_probes": { + "band_ratio": 144.287081, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999799428, + "finite": true, + "max_abs": 0.0772547722, + "mean_abs": 0.0197946073, + "psnr_db": 49.878693, + "ref_absmax": 5.35424042, + "rel_max": 0.0144287081, + "scaled_max_abs": 0.0144287081 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.90625, + "band_ratio": 271.596083, + "metrics": { + "corr": 0.999929741, + "finite": true, + "max_abs": 0.489556074, + "mean_abs": 0.0129197023, + "psnr_db": 59.4536219, + "ref_absmax": 18.0251522, + "rel_max": 0.0271596083, + "scaled_max_abs": 0.0271596083 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 1, + "n_judged": 16, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.08107465e-08, + "psnr_db": 164.245493, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.00112572895, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.38418579e-07, + "mean_abs": 4.66724468e-08, + "psnr_db": 130.436578, + "ref_absmax": 2.11790395, + "rel_max": 1.12572895e-07, + "scaled_max_abs": 1.12572895e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 8.68202319, + "index": 1, + "metrics": { + "corr": 0.99999977, + "finite": true, + "max_abs": 0.146759748, + "mean_abs": 0.000492774942, + "psnr_db": 95.589908, + "ref_absmax": 169.038651, + "rel_max": 0.000868202319, + "scaled_max_abs": 0.000868202319 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_0/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "fail", + "tap": "net.features.0", + "ungated_probes": { + "band_ratio": 5.56516011, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999637, + "finite": true, + "max_abs": 0.017621994, + "mean_abs": 0.000576716242, + "psnr_db": 88.0361444, + "ref_absmax": 31.6648464, + "rel_max": 0.000556516011, + "scaled_max_abs": 0.000556516011 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7.55872648, + "index": 2, + "metrics": { + "corr": 0.999999503, + "finite": true, + "max_abs": 0.0337452888, + "mean_abs": 0.00171321366, + "psnr_db": 89.4398674, + "ref_absmax": 44.644146, + "rel_max": 0.000755872648, + "scaled_max_abs": 0.000755872648 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_1/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.1", + "ungated_probes": { + "band_ratio": 7.20798767, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.99999432, + "finite": true, + "max_abs": 0.00528144836, + "mean_abs": 0.00181138928, + "psnr_db": 75.2444851, + "ref_absmax": 7.32721615, + "rel_max": 0.000720798767, + "scaled_max_abs": 0.000720798767 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 12.7885996, + "index": 3, + "metrics": { + "corr": 0.999998429, + "finite": true, + "max_abs": 0.039151907, + "mean_abs": 0.00226648375, + "psnr_db": 82.9016534, + "ref_absmax": 30.6146946, + "rel_max": 0.00127885996, + "scaled_max_abs": 0.00127885996 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_2/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.2", + "ungated_probes": { + "band_ratio": 62.4682286, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.99997848, + "finite": true, + "max_abs": 0.0269252062, + "mean_abs": 0.00477843967, + "psnr_db": 59.8354383, + "ref_absmax": 4.31022406, + "rel_max": 0.00624682286, + "scaled_max_abs": 0.00624682286 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 27.9809812, + "index": 4, + "metrics": { + "corr": 0.999995683, + "finite": true, + "max_abs": 0.0732169151, + "mean_abs": 0.0038582606, + "psnr_db": 77.5296794, + "ref_absmax": 26.1666718, + "rel_max": 0.00279809812, + "scaled_max_abs": 0.00279809812 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_3;" + }, + "status": "fail", + "tap": "net.features.3", + "ungated_probes": { + "band_ratio": 61.4206932, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999964784, + "finite": true, + "max_abs": 0.0413686037, + "mean_abs": 0.00842860208, + "psnr_db": 60.2825605, + "ref_absmax": 6.73528767, + "rel_max": 0.00614206932, + "scaled_max_abs": 0.00614206932 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_ratio": 28.9036457, + "index": 5, + "metrics": { + "corr": 0.999990382, + "finite": true, + "max_abs": 0.0563652515, + "mean_abs": 0.00281360972, + "psnr_db": 75.9459472, + "ref_absmax": 19.5010872, + "rel_max": 0.00289036457, + "scaled_max_abs": 0.00289036457 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_4/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.4", + "ungated_probes": { + "band_ratio": 154.196636, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.99991612, + "finite": true, + "max_abs": 0.0456900597, + "mean_abs": 0.0123750175, + "psnr_db": 51.267032, + "ref_absmax": 2.96310353, + "rel_max": 0.0154196636, + "scaled_max_abs": 0.0154196636 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "wide_range", + "index": 22 + } + }, + { + "band_ratio": 26.4132257, + "index": 6, + "metrics": { + "corr": 0.999981168, + "finite": true, + "max_abs": 0.0793614388, + "mean_abs": 0.00416720284, + "psnr_db": 75.0095642, + "ref_absmax": 30.0460987, + "rel_max": 0.00264132257, + "scaled_max_abs": 0.00264132257 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_5;" + }, + "status": "fail", + "tap": "net.features.5", + "ungated_probes": { + "band_ratio": 375.517906, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999571741, + "finite": true, + "max_abs": 0.0933929682, + "mean_abs": 0.0208956997, + "psnr_db": 45.5761302, + "ref_absmax": 2.48704433, + "rel_max": 0.0375517906, + "scaled_max_abs": 0.0375517906 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "wide_range", + "index": 22 + } + }, + { + "band_ratio": 29.2023152, + "index": 7, + "metrics": { + "corr": 0.999991965, + "finite": true, + "max_abs": 0.19764185, + "mean_abs": 0.00682252252, + "psnr_db": 79.3101446, + "ref_absmax": 67.6801987, + "rel_max": 0.00292023152, + "scaled_max_abs": 0.00292023152 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_6;" + }, + "status": "fail", + "tap": "net.features.6", + "ungated_probes": { + "band_ratio": 201.641781, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999734749, + "finite": true, + "max_abs": 0.111365616, + "mean_abs": 0.0228695516, + "psnr_db": 50.7525663, + "ref_absmax": 5.5229435, + "rel_max": 0.0201641781, + "scaled_max_abs": 0.0201641781 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "wide_range", + "index": 20 + } + }, + { + "band_ratio": 169.154072, + "index": 8, + "metrics": { + "corr": 0.999953428, + "finite": true, + "max_abs": 0.292385101, + "mean_abs": 0.00460069305, + "psnr_db": 69.4207017, + "ref_absmax": 17.2851353, + "rel_max": 0.0169154072, + "scaled_max_abs": 0.0169154072 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_7/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.7", + "ungated_probes": { + "band_ratio": 208.065403, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.99972694, + "finite": true, + "max_abs": 0.0620127916, + "mean_abs": 0.0109717816, + "psnr_db": 51.2438234, + "ref_absmax": 2.98044705, + "rel_max": 0.0208065403, + "scaled_max_abs": 0.0208065403 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 238.189477, + "index": 9, + "metrics": { + "corr": 0.999938508, + "finite": true, + "max_abs": 0.398320436, + "mean_abs": 0.00575773015, + "psnr_db": 67.3218376, + "ref_absmax": 16.7228394, + "rel_max": 0.0238189477, + "scaled_max_abs": 0.0238189477 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_8;" + }, + "status": "fail", + "tap": "net.features.8", + "ungated_probes": { + "band_ratio": 214.315942, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999757238, + "finite": true, + "max_abs": 0.100459218, + "mean_abs": 0.0124607575, + "psnr_db": 54.09496, + "ref_absmax": 4.68743563, + "rel_max": 0.0214315942, + "scaled_max_abs": 0.0214315942 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 386.260521, + "index": 10, + "metrics": { + "corr": 0.999882486, + "finite": true, + "max_abs": 0.104589917, + "mean_abs": 0.00282546205, + "psnr_db": 57.5810781, + "ref_absmax": 2.7077558, + "rel_max": 0.0386260521, + "scaled_max_abs": 0.0386260521 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_9/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.9", + "ungated_probes": { + "band_ratio": 254.074311, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999802008, + "finite": true, + "max_abs": 0.0308938026, + "mean_abs": 0.0057917201, + "psnr_db": 49.1066953, + "ref_absmax": 1.21593571, + "rel_max": 0.0254074311, + "scaled_max_abs": 0.0254074311 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 426.017801, + "index": 11, + "metrics": { + "corr": 0.999878982, + "finite": true, + "max_abs": 0.139962554, + "mean_abs": 0.00371612788, + "psnr_db": 56.8516861, + "ref_absmax": 3.28536868, + "rel_max": 0.0426017801, + "scaled_max_abs": 0.0426017801 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_10;" + }, + "status": "fail", + "tap": "net.features.10", + "ungated_probes": { + "band_ratio": 245.145651, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999824141, + "finite": true, + "max_abs": 0.0426570326, + "mean_abs": 0.00697116762, + "psnr_db": 50.8724984, + "ref_absmax": 1.74006891, + "rel_max": 0.0245145651, + "scaled_max_abs": 0.0245145651 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 543.799083, + "index": 12, + "metrics": { + "corr": 0.999850548, + "finite": true, + "max_abs": 0.215865821, + "mean_abs": 0.00459699644, + "psnr_db": 56.1980383, + "ref_absmax": 3.9695878, + "rel_max": 0.0543799083, + "scaled_max_abs": 0.0543799083 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_11;" + }, + "status": "fail", + "tap": "net.features.11", + "ungated_probes": { + "band_ratio": 247.271931, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999810366, + "finite": true, + "max_abs": 0.0450300574, + "mean_abs": 0.00791518669, + "psnr_db": 51.0224908, + "ref_absmax": 1.82107437, + "rel_max": 0.0247271931, + "scaled_max_abs": 0.0247271931 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 775.258635, + "index": 13, + "metrics": { + "corr": 0.999756632, + "finite": true, + "max_abs": 0.717740536, + "mean_abs": 0.00281228138, + "psnr_db": 59.0104753, + "ref_absmax": 9.25807858, + "rel_max": 0.0775258635, + "scaled_max_abs": 0.0775258635 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_12/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "fail", + "tap": "net.features.12", + "ungated_probes": { + "band_ratio": 186.740886, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999769259, + "finite": true, + "max_abs": 0.115231514, + "mean_abs": 0.00348786945, + "psnr_db": 60.7767648, + "ref_absmax": 6.17066336, + "rel_max": 0.0186740886, + "scaled_max_abs": 0.0186740886 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 267.350447, + "index": 14, + "metrics": { + "corr": 0.999879363, + "finite": true, + "max_abs": 0.138741612, + "mean_abs": 0.00176497662, + "psnr_db": 59.1821853, + "ref_absmax": 5.18950367, + "rel_max": 0.0267350447, + "scaled_max_abs": 0.0267350447 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;;zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Seque" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 105.752706, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999811266, + "finite": true, + "max_abs": 0.0208191462, + "mean_abs": 0.00258107564, + "psnr_db": 55.3692671, + "ref_absmax": 1.96866322, + "rel_max": 0.0105752706, + "scaled_max_abs": 0.0105752706 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 271.596083, + "index": 15, + "metrics": { + "corr": 0.99993315, + "finite": true, + "max_abs": 0.489556074, + "mean_abs": 0.0119174523, + "psnr_db": 59.3157887, + "ref_absmax": 18.0251522, + "rel_max": 0.0271596083, + "scaled_max_abs": 0.0271596083 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.classifier", + "ungated_probes": { + "band_ratio": 152.615192, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.99979546, + "finite": true, + "max_abs": 0.0793758631, + "mean_abs": 0.019935452, + "psnr_db": 49.7885765, + "ref_absmax": 5.20104599, + "rel_max": 0.0152615192, + "scaled_max_abs": 0.0152615192 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp16", + "id": "mobilenet_v3_small__fp16_as_fp32__litert", + "model": "mobilenet_v3_small", + "path": "litert", + "variant": "fp16_as_fp32" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/mobilenet_v3_small__fp16_as_fp32__onnx.json b/bench/verdicts_calibrated4/mobilenet_v3_small__fp16_as_fp32__onnx.json new file mode 100644 index 0000000000000000000000000000000000000000..fe6366eea0819dd1842c6fdcfdb026823ecd9784 --- /dev/null +++ b/bench/verdicts_calibrated4/mobilenet_v3_small__fp16_as_fp32__onnx.json @@ -0,0 +1,1669 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": "artifact computes in fp16 (declared fp32); the drift onset (normalize) is the size fp16 explains: distributed precision drift, not a single-op fault; note: taps over the fp16 band too: ['net.features.7', 'net.features.8', 'net.features.9', 'net.features.10', 'net.features.11', 'net.features.12', 'net.avgpool', 'net.classifier']", + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "normalize", + "explained_by": null, + "nominal_band_ratio": 5.61457669, + "results": [ + { + "band_ratio": 16837.3835, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 8136.03377, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 20992.2062, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 16908.0588, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 21191.4949, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp32", + "first_divergence": { + "basis": "artifact computes in fp16 (declared fp32); the drift onset (normalize) is the size fp16 explains: distributed precision drift, not a single-op fault; note: taps over the fp16 band too: ['net.features.7', 'net.features.8', 'net.features.9', 'net.features.10', 'net.features.11', 'net.features.12', 'net.avgpool', 'net.classifier']", + "index": null, + "onset": { + "index": 0, + "tap": "normalize" + }, + "shape": 224, + "tap": null + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "0f5c1e94183c9903ece898f192769178a20e4556d20c0b1ef4fc23502e5893f5", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "8ce44e6b921ee910b6c36de85b86a9608df76e3c1728f56afa10f6f5dd60ae3c", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "fp32 per-tap band on near-zero probes", + "reason": "C3-2: per-tap fp32 checks gate without the near_zero probes; they are measured and reported per tap ('ungated_probes'); the output gates on all probes. C4-1: when the output has failed and no gated tap fails, they localise the first divergence (earliest tap over band on all probes)" + }, + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D1", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 310.759602, + "metrics": { + "corr": 0.999689586, + "finite": true, + "max_abs": 0.757778168, + "mean_abs": 0.0324179629, + "psnr_db": 54.0300036, + "ref_absmax": 24.3847065, + "rel_max": 0.0310759602, + "scaled_max_abs": 0.0310759602 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 0, + "n_judged": 16, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 4.41313312, + "index": 0, + "metrics": { + "corr": 0.999999963, + "finite": true, + "max_abs": 0.00508785248, + "mean_abs": 0.000398882656, + "psnr_db": 88.0865038, + "ref_absmax": 11.5288897, + "rel_max": 0.000441313312, + "scaled_max_abs": 0.000441313312 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "fail", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 6.65530956, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999993146, + "finite": true, + "max_abs": 0.00140953064, + "mean_abs": 0.000455446029, + "psnr_db": 55.2971327, + "ref_absmax": 2.11790395, + "rel_max": 0.000665530956, + "scaled_max_abs": 0.000665530956 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9.08058909, + "index": 1, + "metrics": { + "corr": 0.999999752, + "finite": true, + "max_abs": 0.172560692, + "mean_abs": 0.000874023528, + "psnr_db": 95.8718969, + "ref_absmax": 190.032486, + "rel_max": 0.000908058909, + "scaled_max_abs": 0.000908058909 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.0/features.0.2/HardSwish_output_0" + }, + "status": "fail", + "tap": "net.features.0", + "ungated_probes": { + "band_ratio": 8.55041904, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999451, + "finite": true, + "max_abs": 0.0270442963, + "mean_abs": 0.000951963747, + "psnr_db": 86.1634492, + "ref_absmax": 31.6292057, + "rel_max": 0.000855041904, + "scaled_max_abs": 0.000855041904 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7.26273228, + "index": 2, + "metrics": { + "corr": 0.999999338, + "finite": true, + "max_abs": 0.0330090523, + "mean_abs": 0.00218038619, + "psnr_db": 88.3308108, + "ref_absmax": 45.4499092, + "rel_max": 0.000726273228, + "scaled_max_abs": 0.000726273228 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.1/block/block.2/block.2.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.1", + "ungated_probes": { + "band_ratio": 8.41882341, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.99999205, + "finite": true, + "max_abs": 0.00617241859, + "mean_abs": 0.00226801987, + "psnr_db": 73.7348793, + "ref_absmax": 7.33168793, + "rel_max": 0.000841882341, + "scaled_max_abs": 0.000841882341 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 19.2673754, + "index": 3, + "metrics": { + "corr": 0.999997861, + "finite": true, + "max_abs": 0.0498961806, + "mean_abs": 0.00290397707, + "psnr_db": 79.9128414, + "ref_absmax": 25.896719, + "rel_max": 0.00192673754, + "scaled_max_abs": 0.00192673754 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.2/block/block.2/block.2.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.2", + "ungated_probes": { + "band_ratio": 83.839333, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999962874, + "finite": true, + "max_abs": 0.0361149311, + "mean_abs": 0.00648188326, + "psnr_db": 57.4995268, + "ref_absmax": 4.30763578, + "rel_max": 0.0083839333, + "scaled_max_abs": 0.0083839333 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 28.1512363, + "index": 4, + "metrics": { + "corr": 0.999994683, + "finite": true, + "max_abs": 0.0723810196, + "mean_abs": 0.0045711247, + "psnr_db": 76.5270194, + "ref_absmax": 25.7114887, + "rel_max": 0.00281512363, + "scaled_max_abs": 0.00281512363 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.3/Add_output_0" + }, + "status": "fail", + "tap": "net.features.3", + "ungated_probes": { + "band_ratio": 97.0975854, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999948506, + "finite": true, + "max_abs": 0.0653675795, + "mean_abs": 0.0100988478, + "psnr_db": 58.608112, + "ref_absmax": 6.73215294, + "rel_max": 0.00970975854, + "scaled_max_abs": 0.00970975854 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 39.5869423, + "index": 5, + "metrics": { + "corr": 0.999984171, + "finite": true, + "max_abs": 0.0677251816, + "mean_abs": 0.00365277366, + "psnr_db": 72.8880607, + "ref_absmax": 17.1079597, + "rel_max": 0.00395869423, + "scaled_max_abs": 0.00395869423 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.4/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.4", + "ungated_probes": { + "band_ratio": 278.339482, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.99986812, + "finite": true, + "max_abs": 0.0815546513, + "mean_abs": 0.0149681569, + "psnr_db": 48.9914548, + "ref_absmax": 2.93004251, + "rel_max": 0.0278339482, + "scaled_max_abs": 0.0278339482 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "wide_range", + "index": 21 + } + }, + { + "band_ratio": 53.3482606, + "index": 6, + "metrics": { + "corr": 0.999962612, + "finite": true, + "max_abs": 0.119066, + "mean_abs": 0.00554519641, + "psnr_db": 70.2475714, + "ref_absmax": 22.3186283, + "rel_max": 0.00533482606, + "scaled_max_abs": 0.00533482606 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.5/Add_output_0" + }, + "status": "fail", + "tap": "net.features.5", + "ungated_probes": { + "band_ratio": 329.354696, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999517453, + "finite": true, + "max_abs": 0.0949120522, + "mean_abs": 0.0229611598, + "psnr_db": 45.6160993, + "ref_absmax": 2.88175797, + "rel_max": 0.0329354696, + "scaled_max_abs": 0.0329354696 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "wide_range", + "index": 23 + } + }, + { + "band_ratio": 81.3875363, + "index": 7, + "metrics": { + "corr": 0.999915443, + "finite": true, + "max_abs": 0.510870159, + "mean_abs": 0.0192011798, + "psnr_db": 67.344385, + "ref_absmax": 62.7700729, + "rel_max": 0.00813875363, + "scaled_max_abs": 0.00813875363 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.6/Add_output_0" + }, + "status": "fail", + "tap": "net.features.6", + "ungated_probes": { + "band_ratio": 292.447188, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999700855, + "finite": true, + "max_abs": 0.159962177, + "mean_abs": 0.025970372, + "psnr_db": 49.9658571, + "ref_absmax": 5.46977997, + "rel_max": 0.0292447188, + "scaled_max_abs": 0.0292447188 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "wide_range", + "index": 23 + } + }, + { + "band_ratio": 122.162419, + "index": 8, + "metrics": { + "corr": 0.999909121, + "finite": true, + "max_abs": 0.252684593, + "mean_abs": 0.007559079, + "psnr_db": 67.1107734, + "ref_absmax": 20.6843147, + "rel_max": 0.0122162419, + "scaled_max_abs": 0.0122162419 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.7/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.7", + "ungated_probes": { + "band_ratio": 294.552797, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999662806, + "finite": true, + "max_abs": 0.085334897, + "mean_abs": 0.0124250789, + "psnr_db": 49.5690817, + "ref_absmax": 2.89710021, + "rel_max": 0.0294552797, + "scaled_max_abs": 0.0294552797 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 198.082609, + "index": 9, + "metrics": { + "corr": 0.999814734, + "finite": true, + "max_abs": 0.385349274, + "mean_abs": 0.0110580478, + "psnr_db": 63.0182792, + "ref_absmax": 19.453968, + "rel_max": 0.0198082609, + "scaled_max_abs": 0.0198082609 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.8/Add_output_0" + }, + "status": "fail", + "tap": "net.features.8", + "ungated_probes": { + "band_ratio": 274.031571, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999683297, + "finite": true, + "max_abs": 0.115697622, + "mean_abs": 0.0140110287, + "psnr_db": 52.2868793, + "ref_absmax": 4.22205448, + "rel_max": 0.0274031571, + "scaled_max_abs": 0.0274031571 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "wide_range", + "index": 23 + } + }, + { + "band_ratio": 376.845229, + "index": 10, + "metrics": { + "corr": 0.999587283, + "finite": true, + "max_abs": 0.131695211, + "mean_abs": 0.00595744756, + "psnr_db": 53.9806793, + "ref_absmax": 3.49467635, + "rel_max": 0.0376845229, + "scaled_max_abs": 0.0376845229 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.9/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.9", + "ungated_probes": { + "band_ratio": 295.159658, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999756326, + "finite": true, + "max_abs": 0.0347939655, + "mean_abs": 0.00641956541, + "psnr_db": 47.8898666, + "ref_absmax": 1.17881846, + "rel_max": 0.0295159658, + "scaled_max_abs": 0.0295159658 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 449.988479, + "index": 11, + "metrics": { + "corr": 0.999622417, + "finite": true, + "max_abs": 0.168273151, + "mean_abs": 0.0072525908, + "psnr_db": 53.5279931, + "ref_absmax": 3.73949909, + "rel_max": 0.0449988479, + "scaled_max_abs": 0.0449988479 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.10/Add_output_0" + }, + "status": "fail", + "tap": "net.features.10", + "ungated_probes": { + "band_ratio": 256.438016, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999763339, + "finite": true, + "max_abs": 0.0417585522, + "mean_abs": 0.00793146537, + "psnr_db": 49.2967272, + "ref_absmax": 1.62840724, + "rel_max": 0.0256438016, + "scaled_max_abs": 0.0256438016 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 678.471375, + "index": 12, + "metrics": { + "corr": 0.999566752, + "finite": true, + "max_abs": 0.307674885, + "mean_abs": 0.0091950263, + "psnr_db": 53.2028421, + "ref_absmax": 4.53482485, + "rel_max": 0.0678471375, + "scaled_max_abs": 0.0678471375 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.11/Add_output_0" + }, + "status": "fail", + "tap": "net.features.11", + "ungated_probes": { + "band_ratio": 294.827226, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999751115, + "finite": true, + "max_abs": 0.0497487485, + "mean_abs": 0.00880212583, + "psnr_db": 49.5452982, + "ref_absmax": 1.68738651, + "rel_max": 0.0294827226, + "scaled_max_abs": 0.0294827226 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 552.412343, + "index": 13, + "metrics": { + "corr": 0.99934077, + "finite": true, + "max_abs": 0.557923317, + "mean_abs": 0.00582651904, + "psnr_db": 55.0507101, + "ref_absmax": 10.099762, + "rel_max": 0.0552412343, + "scaled_max_abs": 0.0552412343 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.12/features.12.2/HardSwish_output_0" + }, + "status": "fail", + "tap": "net.features.12", + "ungated_probes": { + "band_ratio": 209.09197, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999691892, + "finite": true, + "max_abs": 0.117993832, + "mean_abs": 0.00402888161, + "psnr_db": 58.8266863, + "ref_absmax": 5.64315462, + "rel_max": 0.020909197, + "scaled_max_abs": 0.020909197 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 352.594163, + "index": 14, + "metrics": { + "corr": 0.999543382, + "finite": true, + "max_abs": 0.184967697, + "mean_abs": 0.00401231197, + "psnr_db": 53.3035031, + "ref_absmax": 5.24590921, + "rel_max": 0.0352594163, + "scaled_max_abs": 0.0352594163 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 159.042805, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999744275, + "finite": true, + "max_abs": 0.029715836, + "mean_abs": 0.00303847176, + "psnr_db": 53.3885279, + "ref_absmax": 1.8684175, + "rel_max": 0.0159042805, + "scaled_max_abs": 0.0159042805 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 310.759602, + "index": 15, + "metrics": { + "corr": 0.999679865, + "finite": true, + "max_abs": 0.757778168, + "mean_abs": 0.0339244222, + "psnr_db": 53.5383384, + "ref_absmax": 24.3847065, + "rel_max": 0.0310759602, + "scaled_max_abs": 0.0310759602 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier", + "ungated_probes": { + "band_ratio": 166.3643, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999761226, + "finite": true, + "max_abs": 0.0890754461, + "mean_abs": 0.0218727475, + "psnr_db": 49.099497, + "ref_absmax": 5.35424042, + "rel_max": 0.01663643, + "scaled_max_abs": 0.01663643 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 216.154874, + "metrics": { + "corr": 0.999892736, + "finite": true, + "max_abs": 0.38962245, + "mean_abs": 0.0207615408, + "psnr_db": 57.5998751, + "ref_absmax": 18.0251522, + "rel_max": 0.0216154874, + "scaled_max_abs": 0.0216154874 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 0, + "n_judged": 16, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 4.39328023, + "index": 0, + "metrics": { + "corr": 0.999999962, + "finite": true, + "max_abs": 0.00506496429, + "mean_abs": 0.000399526056, + "psnr_db": 88.1554656, + "ref_absmax": 11.5288897, + "rel_max": 0.000439328023, + "scaled_max_abs": 0.000439328023 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "fail", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 6.65530956, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999993118, + "finite": true, + "max_abs": 0.00140953064, + "mean_abs": 0.000457014041, + "psnr_db": 55.319373, + "ref_absmax": 2.11790395, + "rel_max": 0.000665530956, + "scaled_max_abs": 0.000665530956 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 8.67140259, + "index": 1, + "metrics": { + "corr": 0.999999731, + "finite": true, + "max_abs": 0.146580219, + "mean_abs": 0.000872910087, + "psnr_db": 95.0280401, + "ref_absmax": 169.038651, + "rel_max": 0.000867140259, + "scaled_max_abs": 0.000867140259 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.0/features.0.2/HardSwish_output_0" + }, + "status": "fail", + "tap": "net.features.0", + "ungated_probes": { + "band_ratio": 8.59982584, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999451, + "finite": true, + "max_abs": 0.0272312164, + "mean_abs": 0.000953158324, + "psnr_db": 86.1751671, + "ref_absmax": 31.6648464, + "rel_max": 0.000859982584, + "scaled_max_abs": 0.000859982584 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7.45469506, + "index": 2, + "metrics": { + "corr": 0.999999253, + "finite": true, + "max_abs": 0.0332808495, + "mean_abs": 0.00217470446, + "psnr_db": 87.8326725, + "ref_absmax": 44.644146, + "rel_max": 0.000745469506, + "scaled_max_abs": 0.000745469506 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.1/block/block.2/block.2.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.1", + "ungated_probes": { + "band_ratio": 8.45357167, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999991574, + "finite": true, + "max_abs": 0.00619411469, + "mean_abs": 0.00227221917, + "psnr_db": 73.7198856, + "ref_absmax": 7.32721615, + "rel_max": 0.000845357167, + "scaled_max_abs": 0.000845357167 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 15.5432319, + "index": 3, + "metrics": { + "corr": 0.999997381, + "finite": true, + "max_abs": 0.0475851297, + "mean_abs": 0.00298418184, + "psnr_db": 80.7526407, + "ref_absmax": 30.6146946, + "rel_max": 0.00155432319, + "scaled_max_abs": 0.00155432319 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.2/block/block.2/block.2.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.2", + "ungated_probes": { + "band_ratio": 83.8213469, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999962039, + "finite": true, + "max_abs": 0.0361288786, + "mean_abs": 0.00652794242, + "psnr_db": 57.4534981, + "ref_absmax": 4.31022406, + "rel_max": 0.00838213469, + "scaled_max_abs": 0.00838213469 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 29.0781924, + "index": 4, + "metrics": { + "corr": 0.999994014, + "finite": true, + "max_abs": 0.0760879517, + "mean_abs": 0.00475679065, + "psnr_db": 76.0998562, + "ref_absmax": 26.1666718, + "rel_max": 0.00290781924, + "scaled_max_abs": 0.00290781924 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.3/Add_output_0" + }, + "status": "fail", + "tap": "net.features.3", + "ungated_probes": { + "band_ratio": 89.5909372, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.99994804, + "finite": true, + "max_abs": 0.0603420734, + "mean_abs": 0.0101267185, + "psnr_db": 58.5899552, + "ref_absmax": 6.73528767, + "rel_max": 0.00895909372, + "scaled_max_abs": 0.00895909372 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 45.99975, + "index": 5, + "metrics": { + "corr": 0.999981282, + "finite": true, + "max_abs": 0.0897045135, + "mean_abs": 0.00402695675, + "psnr_db": 73.0554249, + "ref_absmax": 19.5010872, + "rel_max": 0.004599975, + "scaled_max_abs": 0.004599975 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.4/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.4", + "ungated_probes": { + "band_ratio": 268.00273, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999866706, + "finite": true, + "max_abs": 0.0794119835, + "mean_abs": 0.015127332, + "psnr_db": 49.0091603, + "ref_absmax": 2.96310353, + "rel_max": 0.026800273, + "scaled_max_abs": 0.026800273 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_ratio": 37.1252835, + "index": 6, + "metrics": { + "corr": 0.999958536, + "finite": true, + "max_abs": 0.111546993, + "mean_abs": 0.00609735379, + "psnr_db": 71.5287238, + "ref_absmax": 30.0460987, + "rel_max": 0.00371252835, + "scaled_max_abs": 0.00371252835 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.5/Add_output_0" + }, + "status": "fail", + "tap": "net.features.5", + "ungated_probes": { + "band_ratio": 431.95749, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999490187, + "finite": true, + "max_abs": 0.107429743, + "mean_abs": 0.0233395944, + "psnr_db": 44.7876036, + "ref_absmax": 2.48704433, + "rel_max": 0.043195749, + "scaled_max_abs": 0.043195749 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "wide_range", + "index": 21 + } + }, + { + "band_ratio": 44.6367729, + "index": 7, + "metrics": { + "corr": 0.999982138, + "finite": true, + "max_abs": 0.302102566, + "mean_abs": 0.00996794163, + "psnr_db": 75.8417153, + "ref_absmax": 67.6801987, + "rel_max": 0.00446367729, + "scaled_max_abs": 0.00446367729 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.6/Add_output_0" + }, + "status": "fail", + "tap": "net.features.6", + "ungated_probes": { + "band_ratio": 268.709942, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999686604, + "finite": true, + "max_abs": 0.148406982, + "mean_abs": 0.025890427, + "psnr_db": 49.9712219, + "ref_absmax": 5.5229435, + "rel_max": 0.0268709942, + "scaled_max_abs": 0.0268709942 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "wide_range", + "index": 22 + } + }, + { + "band_ratio": 124.98691, + "index": 8, + "metrics": { + "corr": 0.99994281, + "finite": true, + "max_abs": 0.216041565, + "mean_abs": 0.00618349581, + "psnr_db": 68.5841455, + "ref_absmax": 17.2851353, + "rel_max": 0.012498691, + "scaled_max_abs": 0.012498691 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.7/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.7", + "ungated_probes": { + "band_ratio": 372.283566, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999638726, + "finite": true, + "max_abs": 0.110957146, + "mean_abs": 0.0125907517, + "psnr_db": 50.030731, + "ref_absmax": 2.98044705, + "rel_max": 0.0372283566, + "scaled_max_abs": 0.0372283566 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 183.309478, + "index": 9, + "metrics": { + "corr": 0.999915795, + "finite": true, + "max_abs": 0.306545496, + "mean_abs": 0.0082152609, + "psnr_db": 65.9671916, + "ref_absmax": 16.7228394, + "rel_max": 0.0183309478, + "scaled_max_abs": 0.0183309478 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.8/Add_output_0" + }, + "status": "fail", + "tap": "net.features.8", + "ungated_probes": { + "band_ratio": 278.226223, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.99967131, + "finite": true, + "max_abs": 0.130416751, + "mean_abs": 0.0139956225, + "psnr_db": 52.7835994, + "ref_absmax": 4.68743563, + "rel_max": 0.0278226223, + "scaled_max_abs": 0.0278226223 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 298.509586, + "index": 10, + "metrics": { + "corr": 0.999839856, + "finite": true, + "max_abs": 0.0808291063, + "mean_abs": 0.00420707477, + "psnr_db": 56.1997817, + "ref_absmax": 2.7077558, + "rel_max": 0.0298509586, + "scaled_max_abs": 0.0298509586 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.9/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.9", + "ungated_probes": { + "band_ratio": 326.661018, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999736923, + "finite": true, + "max_abs": 0.0397198796, + "mean_abs": 0.00675309483, + "psnr_db": 47.8421586, + "ref_absmax": 1.21593571, + "rel_max": 0.0326661018, + "scaled_max_abs": 0.0326661018 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 352.693991, + "index": 11, + "metrics": { + "corr": 0.999818299, + "finite": true, + "max_abs": 0.115872979, + "mean_abs": 0.00557980545, + "psnr_db": 55.0705946, + "ref_absmax": 3.28536868, + "rel_max": 0.0352693991, + "scaled_max_abs": 0.0352693991 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.10/Add_output_0" + }, + "status": "fail", + "tap": "net.features.10", + "ungated_probes": { + "band_ratio": 272.607746, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999726215, + "finite": true, + "max_abs": 0.0474356264, + "mean_abs": 0.00868066848, + "psnr_db": 48.8928083, + "ref_absmax": 1.74006891, + "rel_max": 0.0272607746, + "scaled_max_abs": 0.0272607746 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "wide_range", + "index": 22 + } + }, + { + "band_ratio": 424.804597, + "index": 12, + "metrics": { + "corr": 0.999811116, + "finite": true, + "max_abs": 0.168629915, + "mean_abs": 0.00676572052, + "psnr_db": 55.1748096, + "ref_absmax": 3.9695878, + "rel_max": 0.0424804597, + "scaled_max_abs": 0.0424804597 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.11/Add_output_0" + }, + "status": "fail", + "tap": "net.features.11", + "ungated_probes": { + "band_ratio": 284.954209, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999700802, + "finite": true, + "max_abs": 0.0518922806, + "mean_abs": 0.00993687563, + "psnr_db": 48.92412, + "ref_absmax": 1.82107437, + "rel_max": 0.0284954209, + "scaled_max_abs": 0.0284954209 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 582.480643, + "index": 13, + "metrics": { + "corr": 0.999730153, + "finite": true, + "max_abs": 0.539265156, + "mean_abs": 0.0040040075, + "psnr_db": 58.5457109, + "ref_absmax": 9.25807858, + "rel_max": 0.0582480643, + "scaled_max_abs": 0.0582480643 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.12/features.12.2/HardSwish_output_0" + }, + "status": "fail", + "tap": "net.features.12", + "ungated_probes": { + "band_ratio": 341.721417, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999565629, + "finite": true, + "max_abs": 0.210864782, + "mean_abs": 0.00460098579, + "psnr_db": 57.9927397, + "ref_absmax": 6.17066336, + "rel_max": 0.0341721417, + "scaled_max_abs": 0.0341721417 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 219.971823, + "index": 14, + "metrics": { + "corr": 0.999824455, + "finite": true, + "max_abs": 0.114154458, + "mean_abs": 0.00268179674, + "psnr_db": 57.5309434, + "ref_absmax": 5.18950367, + "rel_max": 0.0219971823, + "scaled_max_abs": 0.0219971823 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 209.163924, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999651817, + "finite": true, + "max_abs": 0.0411773324, + "mean_abs": 0.00351177026, + "psnr_db": 52.6742242, + "ref_absmax": 1.96866322, + "rel_max": 0.0209163924, + "scaled_max_abs": 0.0209163924 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 216.154874, + "index": 15, + "metrics": { + "corr": 0.999897649, + "finite": true, + "max_abs": 0.38962245, + "mean_abs": 0.0202840341, + "psnr_db": 57.434013, + "ref_absmax": 18.0251522, + "rel_max": 0.0216154874, + "scaled_max_abs": 0.0216154874 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier", + "ungated_probes": { + "band_ratio": 182.255663, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999705088, + "finite": true, + "max_abs": 0.0947920084, + "mean_abs": 0.0241040878, + "psnr_db": 48.2055108, + "ref_absmax": 5.20104599, + "rel_max": 0.0182255663, + "scaled_max_abs": 0.0182255663 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp16", + "id": "mobilenet_v3_small__fp16_as_fp32__onnx", + "model": "mobilenet_v3_small", + "path": "onnx", + "variant": "fp16_as_fp32" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/mobilenet_v3_small__input_hw_swap__coreml_fp16.json b/bench/verdicts_calibrated4/mobilenet_v3_small__input_hw_swap__coreml_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..0bf5c7c166855151a6e138d2ce93e941cda49950 --- /dev/null +++ b/bench/verdicts_calibrated4/mobilenet_v3_small__input_hw_swap__coreml_fp16.json @@ -0,0 +1,1296 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "baseline": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "faithful_output_rel_max": 0.0447572937, + "output_band": 0.0895145874, + "source": { + "bundle": "bundles/mobilenet_v3_small__clean__coreml_fp16.json", + "case": "mobilenet_v3_small__clean__coreml_fp16", + "digests": { + "192": { + "converted": "e8f4b313bc394828af089248d6d729f5cfb7d031d184bf665f719d1a66fcd7d8", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "807adc810963567dc9e14f27330f17d8d7cd30ffa6b8e35992534a3dbc2f65e9", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + } + } + }, + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "normalize", + "band_limit": 0.01, + "explained_by": "hw_transpose", + "nominal_band_ratio": 169.15457, + "results": [ + { + "band_ratio": 169.15457, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 119.778016, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 210.748392, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 0.130516105, + "explains": true, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 311.914062, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [ + "inputs[0]: dtype float16 (declared float32)", + "outputs[0]: dtype float16 (declared float32)" + ], + "status": "precision_narrowing" + }, + "status": "flag" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "_inversed_input_1_cast_fp16", + "basis": "interface hypothesis 'hw_transpose' explains the first over-band tap (normalize)", + "index": 0, + "neighbourhood": [ + { + "band_ratio": 111.131751, + "index": 0, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "status": "fail", + "tap": "normalize" + }, + { + "band_ratio": 101.899772, + "index": 1, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_7_cast_fp16" + }, + "status": "fail", + "tap": "net.features.0" + } + ], + "observed_first_over_band": { + "index": 0, + "tap": "normalize" + }, + "shape": 224, + "tap": "normalize" + }, + "fp16_floor": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "baseline": { + "bundle": "bundles/mobilenet_v3_small__clean__coreml_fp16.json", + "case": "mobilenet_v3_small__clean__coreml_fp16", + "digests": { + "192": { + "converted": "e8f4b313bc394828af089248d6d729f5cfb7d031d184bf665f719d1a66fcd7d8", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "807adc810963567dc9e14f27330f17d8d7cd30ffa6b8e35992534a3dbc2f65e9", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + } + }, + "envelopes_gate": true, + "faithful_output_rel_max": 0.0447572937, + "faithful_tap_rel_max": { + "net.avgpool": 0.0593494378, + "net.classifier": 0.0447572937, + "net.features.0": 0.0033139093, + "net.features.1": 0.0109594004, + "net.features.10": 0.0689930567, + "net.features.11": 0.097995766, + "net.features.12": 0.111351399, + "net.features.2": 0.0106091941, + "net.features.3": 0.0219511544, + "net.features.4": 0.0122644963, + "net.features.5": 0.0214109624, + "net.features.6": 0.0112218713, + "net.features.7": 0.0213995931, + "net.features.8": 0.0282643785, + "net.features.9": 0.0667671518, + "normalize": 0.00117570499 + }, + "floor": 0.01, + "k": 2.0, + "output_band": 0.0895145874, + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used", + "tap_envelopes": { + "net.avgpool": 0.118698876, + "net.classifier": 0.0895145874, + "net.features.0": 0.01, + "net.features.1": 0.0219188008, + "net.features.10": 0.137986113, + "net.features.11": 0.195991532, + "net.features.12": 0.222702798, + "net.features.2": 0.0212183882, + "net.features.3": 0.0439023088, + "net.features.4": 0.0245289926, + "net.features.5": 0.0428219248, + "net.features.6": 0.0224437425, + "net.features.7": 0.0427991863, + "net.features.8": 0.056528757, + "net.features.9": 0.133534304, + "normalize": 0.01 + } + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "fb288f2fe8b630f581fb87dce5e4469256277b0726ce9d098b34d22d5a30feaf", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "4022572138ba688ee1daa81417b2a9df54940ed0414ea608ca6391c15c045c91", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D3", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.46875, + "band_limit": 0.0895145874, + "band_ratio": 2.97035479, + "metrics": { + "corr": 0.971696777, + "finite": true, + "max_abs": 6.48365164, + "mean_abs": 0.363078632, + "psnr_db": 34.8362059, + "ref_absmax": 24.3847065, + "rel_max": 0.265890083, + "scaled_max_abs": 0.265890083 + }, + "per_op_band_ratio": 26.5890083, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 0, + "n_judged": 16, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 116.179894, + "index": 0, + "metrics": { + "corr": 0.675688296, + "finite": true, + "max_abs": 13.3942518, + "mean_abs": 0.90015469, + "psnr_db": 19.0467187, + "ref_absmax": 11.5288897, + "rel_max": 1.16179894, + "scaled_max_abs": 1.16179894 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "per_op_band_ratio": 116.179894, + "status": "fail", + "tap": "normalize", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 101.890474, + "index": 1, + "metrics": { + "corr": 0.363067615, + "finite": true, + "max_abs": 193.625, + "mean_abs": 0.954019075, + "psnr_db": 32.6068247, + "ref_absmax": 190.032486, + "rel_max": 1.01890474, + "scaled_max_abs": 1.01890474 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_7_cast_fp16" + }, + "per_op_band_ratio": 101.890474, + "status": "fail", + "tap": "net.features.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.0219188008, + "band_ratio": 48.2148967, + "index": 2, + "metrics": { + "corr": 0.457535374, + "finite": true, + "max_abs": 48.032042, + "mean_abs": 1.31101934, + "psnr_db": 29.9415009, + "ref_absmax": 45.4499092, + "rel_max": 1.05681272, + "scaled_max_abs": 1.05681272 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_27_cast_fp16" + }, + "per_op_band_ratio": 105.681272, + "status": "fail", + "tap": "net.features.1", + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_limit": 0.0212183882, + "band_ratio": 30.7933683, + "index": 3, + "metrics": { + "corr": 0.78659771, + "finite": true, + "max_abs": 16.9205444, + "mean_abs": 0.791647349, + "psnr_db": 30.383913, + "ref_absmax": 25.896719, + "rel_max": 0.653385643, + "scaled_max_abs": 0.653385643 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_43_cast_fp16" + }, + "per_op_band_ratio": 65.3385643, + "status": "fail", + "tap": "net.features.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.0439023088, + "band_ratio": 22.4965855, + "index": 4, + "metrics": { + "corr": 0.675710201, + "finite": true, + "max_abs": 25.3940043, + "mean_abs": 1.08726072, + "psnr_db": 29.1411362, + "ref_absmax": 25.7114887, + "rel_max": 0.987652042, + "scaled_max_abs": 0.987652042 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59_cast_fp16" + }, + "per_op_band_ratio": 98.7652042, + "status": "fail", + "tap": "net.features.3", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.0245289926, + "band_ratio": 24.9531277, + "index": 5, + "metrics": { + "corr": 0.808547366, + "finite": true, + "max_abs": 10.4713559, + "mean_abs": 0.447634638, + "psnr_db": 32.0832534, + "ref_absmax": 17.1079597, + "rel_max": 0.612075085, + "scaled_max_abs": 0.612075085 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85_cast_fp16" + }, + "per_op_band_ratio": 61.2075085, + "status": "fail", + "tap": "net.features.4", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.0428219248, + "band_ratio": 18.5097006, + "index": 6, + "metrics": { + "corr": 0.675125038, + "finite": true, + "max_abs": 17.6902137, + "mean_abs": 0.598521194, + "psnr_db": 31.1454074, + "ref_absmax": 22.3186283, + "rel_max": 0.792621008, + "scaled_max_abs": 0.792621008 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_111_cast_fp16" + }, + "per_op_band_ratio": 79.2621008, + "status": "fail", + "tap": "net.features.5", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.0224437425, + "band_ratio": 28.832877, + "index": 7, + "metrics": { + "corr": 0.863508749, + "finite": true, + "max_abs": 40.6196232, + "mean_abs": 0.973486837, + "psnr_db": 35.7874732, + "ref_absmax": 62.7700729, + "rel_max": 0.647117667, + "scaled_max_abs": 0.647117667 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_137_cast_fp16" + }, + "per_op_band_ratio": 64.7117667, + "status": "fail", + "tap": "net.features.6", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.0427991863, + "band_ratio": 14.5395786, + "index": 8, + "metrics": { + "corr": 0.719578742, + "finite": true, + "max_abs": 12.8714795, + "mean_abs": 0.538351556, + "psnr_db": 32.5576977, + "ref_absmax": 20.6843147, + "rel_max": 0.622282134, + "scaled_max_abs": 0.622282134 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_163_cast_fp16" + }, + "per_op_band_ratio": 62.2282134, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.056528757, + "band_ratio": 11.5169684, + "index": 9, + "metrics": { + "corr": 0.67173517, + "finite": true, + "max_abs": 12.6653096, + "mean_abs": 0.658812384, + "psnr_db": 30.8379961, + "ref_absmax": 19.453968, + "rel_max": 0.65103991, + "scaled_max_abs": 0.65103991 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_189_cast_fp16" + }, + "per_op_band_ratio": 65.103991, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.133534304, + "band_ratio": 6.20688664, + "index": 10, + "metrics": { + "corr": 0.806238219, + "finite": true, + "max_abs": 2.89650059, + "mean_abs": 0.18554648, + "psnr_db": 27.488687, + "ref_absmax": 3.49467635, + "rel_max": 0.828832285, + "scaled_max_abs": 0.828832285 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_215_cast_fp16" + }, + "per_op_band_ratio": 82.8832285, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.137986113, + "band_ratio": 5.73194181, + "index": 11, + "metrics": { + "corr": 0.819132667, + "finite": true, + "max_abs": 2.95767593, + "mean_abs": 0.219996276, + "psnr_db": 26.9056413, + "ref_absmax": 3.73949909, + "rel_max": 0.790928373, + "scaled_max_abs": 0.790928373 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_241_cast_fp16" + }, + "per_op_band_ratio": 79.0928373, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.195991532, + "band_ratio": 3.90951499, + "index": 12, + "metrics": { + "corr": 0.836015864, + "finite": true, + "max_abs": 3.47472715, + "mean_abs": 0.246900915, + "psnr_db": 27.7233235, + "ref_absmax": 4.53482485, + "rel_max": 0.766231833, + "scaled_max_abs": 0.766231833 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_267_cast_fp16" + }, + "per_op_band_ratio": 76.6231833, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.222702798, + "band_ratio": 3.61404724, + "index": 13, + "metrics": { + "corr": 0.79298428, + "finite": true, + "max_abs": 8.12887859, + "mean_abs": 0.147385946, + "psnr_db": 30.4681308, + "ref_absmax": 10.099762, + "rel_max": 0.804858434, + "scaled_max_abs": 0.804858434 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_273_cast_fp16" + }, + "per_op_band_ratio": 80.4858434, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.118698876, + "band_ratio": 2.1480521, + "index": 14, + "metrics": { + "corr": 0.967385596, + "finite": true, + "max_abs": 1.33755665, + "mean_abs": 0.0474340597, + "psnr_db": 35.1565749, + "ref_absmax": 5.24590921, + "rel_max": 0.254971369, + "scaled_max_abs": 0.254971369 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "per_op_band_ratio": 25.4971369, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.0895145874, + "band_ratio": 2.97035479, + "index": 15, + "metrics": { + "corr": 0.971696777, + "finite": true, + "max_abs": 6.48365164, + "mean_abs": 0.363078632, + "psnr_db": 34.8362059, + "ref_absmax": 24.3847065, + "rel_max": 0.265890083, + "scaled_max_abs": 0.265890083 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "per_op_band_ratio": 26.5890083, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.6875, + "band_limit": 0.0895145874, + "band_ratio": 6.72581786, + "metrics": { + "corr": 0.964704958, + "finite": true, + "max_abs": 10.8522017, + "mean_abs": 0.347250519, + "psnr_db": 32.493779, + "ref_absmax": 18.0251522, + "rel_max": 0.602058811, + "scaled_max_abs": 0.602058811 + }, + "per_op_band_ratio": 60.2058811, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 0, + "n_judged": 16, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 111.131751, + "index": 0, + "metrics": { + "corr": 0.709013383, + "finite": true, + "max_abs": 12.8122569, + "mean_abs": 0.853087416, + "psnr_db": 19.622833, + "ref_absmax": 11.5288897, + "rel_max": 1.11131751, + "scaled_max_abs": 1.11131751 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "per_op_band_ratio": 111.131751, + "status": "fail", + "tap": "normalize", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 101.899772, + "index": 1, + "metrics": { + "corr": 0.372302138, + "finite": true, + "max_abs": 172.25, + "mean_abs": 0.89880499, + "psnr_db": 32.126117, + "ref_absmax": 169.038651, + "rel_max": 1.01899772, + "scaled_max_abs": 1.01899772 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_7_cast_fp16" + }, + "per_op_band_ratio": 101.899772, + "status": "fail", + "tap": "net.features.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.0219188008, + "band_ratio": 51.5548846, + "index": 2, + "metrics": { + "corr": 0.465592207, + "finite": true, + "max_abs": 50.4488335, + "mean_abs": 1.224143, + "psnr_db": 30.0002842, + "ref_absmax": 44.644146, + "rel_max": 1.13002125, + "scaled_max_abs": 1.13002125 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_27_cast_fp16" + }, + "per_op_band_ratio": 113.002125, + "status": "fail", + "tap": "net.features.1", + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_limit": 0.0212183882, + "band_ratio": 32.4585447, + "index": 3, + "metrics": { + "corr": 0.780683701, + "finite": true, + "max_abs": 21.0848913, + "mean_abs": 0.748435448, + "psnr_db": 31.9598065, + "ref_absmax": 30.6146946, + "rel_max": 0.688718003, + "scaled_max_abs": 0.688718003 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_43_cast_fp16" + }, + "per_op_band_ratio": 68.8718003, + "status": "fail", + "tap": "net.features.2", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.0439023088, + "band_ratio": 21.5488796, + "index": 4, + "metrics": { + "corr": 0.691360585, + "finite": true, + "max_abs": 24.7548637, + "mean_abs": 1.04435144, + "psnr_db": 29.4463462, + "ref_absmax": 26.1666718, + "rel_max": 0.946045564, + "scaled_max_abs": 0.946045564 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59_cast_fp16" + }, + "per_op_band_ratio": 94.6045564, + "status": "fail", + "tap": "net.features.3", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.0245289926, + "band_ratio": 25.1884559, + "index": 5, + "metrics": { + "corr": 0.81581107, + "finite": true, + "max_abs": 12.0486969, + "mean_abs": 0.44160332, + "psnr_db": 33.1784263, + "ref_absmax": 19.5010872, + "rel_max": 0.617847447, + "scaled_max_abs": 0.617847447 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85_cast_fp16" + }, + "per_op_band_ratio": 61.7847447, + "status": "fail", + "tap": "net.features.4", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.0428219248, + "band_ratio": 20.9061916, + "index": 6, + "metrics": { + "corr": 0.695473034, + "finite": true, + "max_abs": 26.8985705, + "mean_abs": 0.593127922, + "psnr_db": 33.240972, + "ref_absmax": 30.0460987, + "rel_max": 0.895243366, + "scaled_max_abs": 0.895243366 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_111_cast_fp16" + }, + "per_op_band_ratio": 89.5243366, + "status": "fail", + "tap": "net.features.5", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.0224437425, + "band_ratio": 33.8321031, + "index": 7, + "metrics": { + "corr": 0.849208459, + "finite": true, + "max_abs": 51.3908615, + "mean_abs": 0.920997859, + "psnr_db": 37.2864144, + "ref_absmax": 67.6801987, + "rel_max": 0.759319011, + "scaled_max_abs": 0.759319011 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_137_cast_fp16" + }, + "per_op_band_ratio": 75.9319011, + "status": "fail", + "tap": "net.features.6", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.0427991863, + "band_ratio": 18.1385393, + "index": 8, + "metrics": { + "corr": 0.663475153, + "finite": true, + "max_abs": 13.418705, + "mean_abs": 0.532440942, + "psnr_db": 31.5064834, + "ref_absmax": 17.2851353, + "rel_max": 0.776314722, + "scaled_max_abs": 0.776314722 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_163_cast_fp16" + }, + "per_op_band_ratio": 77.6314722, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.056528757, + "band_ratio": 15.1358844, + "index": 9, + "metrics": { + "corr": 0.61670426, + "finite": true, + "max_abs": 14.3082743, + "mean_abs": 0.647189727, + "psnr_db": 29.9194757, + "ref_absmax": 16.7228394, + "rel_max": 0.855612732, + "scaled_max_abs": 0.855612732 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_189_cast_fp16" + }, + "per_op_band_ratio": 85.5612732, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.133534304, + "band_ratio": 7.76928032, + "index": 10, + "metrics": { + "corr": 0.80033437, + "finite": true, + "max_abs": 2.80920306, + "mean_abs": 0.181268879, + "psnr_db": 25.4679308, + "ref_absmax": 2.7077558, + "rel_max": 1.03746544, + "scaled_max_abs": 1.03746544 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_215_cast_fp16" + }, + "per_op_band_ratio": 103.746544, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.137986113, + "band_ratio": 7.15832585, + "index": 11, + "metrics": { + "corr": 0.828824591, + "finite": true, + "max_abs": 3.24512148, + "mean_abs": 0.214203435, + "psnr_db": 25.5322255, + "ref_absmax": 3.28536868, + "rel_max": 0.987749563, + "scaled_max_abs": 0.987749563 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_241_cast_fp16" + }, + "per_op_band_ratio": 98.7749563, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.195991532, + "band_ratio": 5.73598799, + "index": 12, + "metrics": { + "corr": 0.830678246, + "finite": true, + "max_abs": 4.46263075, + "mean_abs": 0.246143494, + "psnr_db": 25.9345365, + "ref_absmax": 3.9695878, + "rel_max": 1.12420507, + "scaled_max_abs": 1.12420507 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_267_cast_fp16" + }, + "per_op_band_ratio": 112.420507, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.222702798, + "band_ratio": 3.3155192, + "index": 13, + "metrics": { + "corr": 0.780368759, + "finite": true, + "max_abs": 6.8359375, + "mean_abs": 0.142962932, + "psnr_db": 29.8453496, + "ref_absmax": 9.25807858, + "rel_max": 0.738375403, + "scaled_max_abs": 0.738375403 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_273_cast_fp16" + }, + "per_op_band_ratio": 73.8375403, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.118698876, + "band_ratio": 4.79839161, + "index": 14, + "metrics": { + "corr": 0.953267347, + "finite": true, + "max_abs": 2.95575285, + "mean_abs": 0.043758838, + "psnr_db": 33.7928301, + "ref_absmax": 5.18950367, + "rel_max": 0.569563688, + "scaled_max_abs": 0.569563688 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "per_op_band_ratio": 56.9563688, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.0895145874, + "band_ratio": 6.72581786, + "index": 15, + "metrics": { + "corr": 0.964704958, + "finite": true, + "max_abs": 10.8522017, + "mean_abs": 0.347250519, + "psnr_db": 32.493779, + "ref_absmax": 18.0251522, + "rel_max": 0.602058811, + "scaled_max_abs": 0.602058811 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "per_op_band_ratio": 60.2058811, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp16", + "id": "mobilenet_v3_small__input_hw_swap__coreml_fp16", + "model": "mobilenet_v3_small", + "path": "coreml", + "variant": "input_hw_swap" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/mobilenet_v3_small__input_hw_swap__coreml_fp32.json b/bench/verdicts_calibrated4/mobilenet_v3_small__input_hw_swap__coreml_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..818405450a63d83ebfece3f8aae38ab0d5c0b2ad --- /dev/null +++ b/bench/verdicts_calibrated4/mobilenet_v3_small__input_hw_swap__coreml_fp32.json @@ -0,0 +1,1696 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "normalize", + "explained_by": "hw_transpose", + "nominal_band_ratio": 16910.1721, + "results": [ + { + "band_ratio": 16910.1721, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 11978.5595, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 21078.7917, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 0.000903100643, + "explains": true, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 31179.0395, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "flag" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "_inversed_input_1", + "basis": "interface hypothesis 'hw_transpose' explains the first over-band tap (normalize)", + "index": 0, + "neighbourhood": [ + { + "band_ratio": 11112.3355, + "index": 0, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "fail", + "tap": "normalize" + }, + { + "band_ratio": 10190.1009, + "index": 1, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_7" + }, + "status": "fail", + "tap": "net.features.0" + } + ], + "observed_first_over_band": { + "index": 0, + "tap": "normalize" + }, + "shape": 224, + "tap": "normalize" + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "be014e59adab9e379f322ad86658ab7d29abe463412edecc01c8b3fe54372866", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "3d5784f79c5bd3dd85cb04f87837d56f733ad4faa70438b9834036b69f70bf63", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "fp32 per-tap band on near-zero probes", + "reason": "C3-2: per-tap fp32 checks gate without the near_zero probes; they are measured and reported per tap ('ungated_probes'); the output gates on all probes. C4-1: when the output has failed and no gated tap fails, they localise the first divergence (earliest tap over band on all probes)" + }, + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D3", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.5625, + "band_ratio": 2698.74483, + "metrics": { + "corr": 0.972569326, + "finite": true, + "max_abs": 6.58081007, + "mean_abs": 0.331052267, + "psnr_db": 34.9704916, + "ref_absmax": 24.3847065, + "rel_max": 0.269874483, + "scaled_max_abs": 0.269874483 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 0, + "n_judged": 16, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 11616.7792, + "index": 0, + "metrics": { + "corr": 0.600839339, + "finite": true, + "max_abs": 13.3928566, + "mean_abs": 1.02808959, + "psnr_db": 18.4671497, + "ref_absmax": 11.5288897, + "rel_max": 1.16167792, + "scaled_max_abs": 1.16167792 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "fail", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 96.5222518, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999598821, + "finite": true, + "max_abs": 0.0204424858, + "mean_abs": 0.002907845, + "psnr_db": 38.9218202, + "ref_absmax": 2.11790395, + "rel_max": 0.00965222518, + "scaled_max_abs": 0.00965222518 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 10189.7307, + "index": 1, + "metrics": { + "corr": 0.352802429, + "finite": true, + "max_abs": 193.637985, + "mean_abs": 1.08927038, + "psnr_db": 32.0266622, + "ref_absmax": 190.032486, + "rel_max": 1.01897307, + "scaled_max_abs": 1.01897307 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_7" + }, + "status": "fail", + "tap": "net.features.0", + "ungated_probes": { + "band_ratio": 38.8766053, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999981956, + "finite": true, + "max_abs": 0.122963615, + "mean_abs": 0.00359425464, + "psnr_db": 71.8434477, + "ref_absmax": 31.6292057, + "rel_max": 0.00388766053, + "scaled_max_abs": 0.00388766053 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 10556.9616, + "index": 2, + "metrics": { + "corr": 0.450975738, + "finite": true, + "max_abs": 47.9812946, + "mean_abs": 1.49589953, + "psnr_db": 29.3617625, + "ref_absmax": 45.4499092, + "rel_max": 1.05569616, + "scaled_max_abs": 1.05569616 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_27" + }, + "status": "fail", + "tap": "net.features.1", + "ungated_probes": { + "band_ratio": 75.6676569, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999925384, + "finite": true, + "max_abs": 0.0554771647, + "mean_abs": 0.00585159001, + "psnr_db": 64.2770865, + "ref_absmax": 7.33168793, + "rel_max": 0.00756676569, + "scaled_max_abs": 0.00756676569 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 6543.96776, + "index": 3, + "metrics": { + "corr": 0.778893237, + "finite": true, + "max_abs": 16.9467294, + "mean_abs": 0.900340719, + "psnr_db": 29.8049655, + "ref_absmax": 25.896719, + "rel_max": 0.654396776, + "scaled_max_abs": 0.654396776 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_43" + }, + "status": "fail", + "tap": "net.features.2", + "ungated_probes": { + "band_ratio": 117.371164, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999983431, + "finite": true, + "max_abs": 0.0505592227, + "mean_abs": 0.00444636762, + "psnr_db": 61.2174819, + "ref_absmax": 4.30763578, + "rel_max": 0.0117371164, + "scaled_max_abs": 0.0117371164 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9893.66405, + "index": 4, + "metrics": { + "corr": 0.661975187, + "finite": true, + "max_abs": 25.4380832, + "mean_abs": 1.23244576, + "psnr_db": 28.5629381, + "ref_absmax": 25.7114887, + "rel_max": 0.989366405, + "scaled_max_abs": 0.989366405 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59" + }, + "status": "fail", + "tap": "net.features.3", + "ungated_probes": { + "band_ratio": 387.877888, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999647247, + "finite": true, + "max_abs": 0.261125326, + "mean_abs": 0.0220109993, + "psnr_db": 50.6824763, + "ref_absmax": 6.73215294, + "rel_max": 0.0387877888, + "scaled_max_abs": 0.0387877888 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6093.94667, + "index": 5, + "metrics": { + "corr": 0.781551066, + "finite": true, + "max_abs": 10.4254994, + "mean_abs": 0.502562272, + "psnr_db": 31.5092998, + "ref_absmax": 17.1079597, + "rel_max": 0.609394667, + "scaled_max_abs": 0.609394667 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85" + }, + "status": "fail", + "tap": "net.features.4", + "ungated_probes": { + "band_ratio": 390.776114, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999909409, + "finite": true, + "max_abs": 0.114499062, + "mean_abs": 0.011983435, + "psnr_db": 51.0230192, + "ref_absmax": 2.93004251, + "rel_max": 0.0390776114, + "scaled_max_abs": 0.0390776114 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7907.75074, + "index": 6, + "metrics": { + "corr": 0.651831565, + "finite": true, + "max_abs": 17.6490149, + "mean_abs": 0.668865017, + "psnr_db": 30.5758714, + "ref_absmax": 22.3186283, + "rel_max": 0.790775074, + "scaled_max_abs": 0.790775074 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_111" + }, + "status": "fail", + "tap": "net.features.5", + "ungated_probes": { + "band_ratio": 590.79162, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999475514, + "finite": true, + "max_abs": 0.170251846, + "mean_abs": 0.0213566412, + "psnr_db": 45.3313688, + "ref_absmax": 2.88175797, + "rel_max": 0.059079162, + "scaled_max_abs": 0.059079162 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6447.4456, + "index": 7, + "metrics": { + "corr": 0.861335778, + "finite": true, + "max_abs": 40.4706631, + "mean_abs": 1.08735206, + "psnr_db": 35.2201578, + "ref_absmax": 62.7700729, + "rel_max": 0.64474456, + "scaled_max_abs": 0.64474456 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_137" + }, + "status": "fail", + "tap": "net.features.6", + "ungated_probes": { + "band_ratio": 498.889151, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999641735, + "finite": true, + "max_abs": 0.272881389, + "mean_abs": 0.0269007383, + "psnr_db": 49.3805438, + "ref_absmax": 5.46977997, + "rel_max": 0.0498889151, + "scaled_max_abs": 0.0498889151 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6184.15994, + "index": 8, + "metrics": { + "corr": 0.707702939, + "finite": true, + "max_abs": 12.7915111, + "mean_abs": 0.604054281, + "psnr_db": 31.9848008, + "ref_absmax": 20.6843147, + "rel_max": 0.618415994, + "scaled_max_abs": 0.618415994 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_163" + }, + "status": "fail", + "tap": "net.features.7", + "ungated_probes": { + "band_ratio": 499.757063, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999593781, + "finite": true, + "max_abs": 0.144784629, + "mean_abs": 0.0137484289, + "psnr_db": 48.8033207, + "ref_absmax": 2.89710021, + "rel_max": 0.0499757063, + "scaled_max_abs": 0.0499757063 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6488.33425, + "index": 9, + "metrics": { + "corr": 0.656642637, + "finite": true, + "max_abs": 12.6223847, + "mean_abs": 0.738954211, + "psnr_db": 30.2661863, + "ref_absmax": 19.453968, + "rel_max": 0.648833425, + "scaled_max_abs": 0.648833425 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_189" + }, + "status": "fail", + "tap": "net.features.8", + "ungated_probes": { + "band_ratio": 329.904981, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999533908, + "finite": true, + "max_abs": 0.13928768, + "mean_abs": 0.0171454736, + "psnr_db": 50.6173987, + "ref_absmax": 4.22205448, + "rel_max": 0.0329904981, + "scaled_max_abs": 0.0329904981 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 8297.67457, + "index": 10, + "metrics": { + "corr": 0.787538436, + "finite": true, + "max_abs": 2.89976871, + "mean_abs": 0.205261899, + "psnr_db": 26.9212822, + "ref_absmax": 3.49467635, + "rel_max": 0.829767457, + "scaled_max_abs": 0.829767457 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_215" + }, + "status": "fail", + "tap": "net.features.9", + "ungated_probes": { + "band_ratio": 156.1776, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999949918, + "finite": true, + "max_abs": 0.0184105039, + "mean_abs": 0.00290327964, + "psnr_db": 54.7963546, + "ref_absmax": 1.17881846, + "rel_max": 0.01561776, + "scaled_max_abs": 0.01561776 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7958.85267, + "index": 11, + "metrics": { + "corr": 0.802099865, + "finite": true, + "max_abs": 2.97621223, + "mean_abs": 0.242288262, + "psnr_db": 26.3384814, + "ref_absmax": 3.73949909, + "rel_max": 0.795885267, + "scaled_max_abs": 0.795885267 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_241" + }, + "status": "fail", + "tap": "net.features.10", + "ungated_probes": { + "band_ratio": 132.83433, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999960226, + "finite": true, + "max_abs": 0.0216308385, + "mean_abs": 0.00315160307, + "psnr_db": 57.1818146, + "ref_absmax": 1.62840724, + "rel_max": 0.013283433, + "scaled_max_abs": 0.013283433 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7677.9966, + "index": 12, + "metrics": { + "corr": 0.823345557, + "finite": true, + "max_abs": 3.48183697, + "mean_abs": 0.271817906, + "psnr_db": 27.1555768, + "ref_absmax": 4.53482485, + "rel_max": 0.76779966, + "scaled_max_abs": 0.76779966 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_267" + }, + "status": "fail", + "tap": "net.features.11", + "ungated_probes": { + "band_ratio": 144.480426, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999959061, + "finite": true, + "max_abs": 0.0243794322, + "mean_abs": 0.00343546871, + "psnr_db": 57.4196292, + "ref_absmax": 1.68738651, + "rel_max": 0.0144480426, + "scaled_max_abs": 0.0144480426 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 8142.69155, + "index": 13, + "metrics": { + "corr": 0.782759857, + "finite": true, + "max_abs": 8.22392464, + "mean_abs": 0.162789192, + "psnr_db": 29.9024196, + "ref_absmax": 10.099762, + "rel_max": 0.814269155, + "scaled_max_abs": 0.814269155 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_273" + }, + "status": "fail", + "tap": "net.features.12", + "ungated_probes": { + "band_ratio": 98.790381, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999943923, + "finite": true, + "max_abs": 0.0557489395, + "mean_abs": 0.00161395102, + "psnr_db": 66.2017547, + "ref_absmax": 5.64315462, + "rel_max": 0.0098790381, + "scaled_max_abs": 0.0098790381 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 2538.00174, + "index": 14, + "metrics": { + "corr": 0.96601658, + "finite": true, + "max_abs": 1.33141267, + "mean_abs": 0.049962145, + "psnr_db": 34.6292792, + "ref_absmax": 5.24590921, + "rel_max": 0.253800174, + "scaled_max_abs": 0.253800174 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 49.6738204, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999992946, + "finite": true, + "max_abs": 0.00928114355, + "mean_abs": 0.000480832545, + "psnr_db": 68.9637593, + "ref_absmax": 1.8684175, + "rel_max": 0.00496738204, + "scaled_max_abs": 0.00496738204 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 2698.74483, + "index": 15, + "metrics": { + "corr": 0.971060754, + "finite": true, + "max_abs": 6.58081007, + "mean_abs": 0.377848738, + "psnr_db": 34.390604, + "ref_absmax": 24.3847065, + "rel_max": 0.269874483, + "scaled_max_abs": 0.269874483 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier", + "ungated_probes": { + "band_ratio": 39.3773752, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999992984, + "finite": true, + "max_abs": 0.0210835934, + "mean_abs": 0.0034769757, + "psnr_db": 64.4215858, + "ref_absmax": 5.35424042, + "rel_max": 0.00393773752, + "scaled_max_abs": 0.00393773752 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.6875, + "band_ratio": 5138.46718, + "metrics": { + "corr": 0.966819993, + "finite": true, + "max_abs": 9.26216531, + "mean_abs": 0.325558293, + "psnr_db": 32.7645777, + "ref_absmax": 18.0251522, + "rel_max": 0.513846718, + "scaled_max_abs": 0.513846718 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 0, + "n_judged": 16, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 11112.3355, + "index": 0, + "metrics": { + "corr": 0.634923999, + "finite": true, + "max_abs": 12.811289, + "mean_abs": 0.974299065, + "psnr_db": 19.0432516, + "ref_absmax": 11.5288897, + "rel_max": 1.11123355, + "scaled_max_abs": 1.11123355 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "fail", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 94.3721095, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999598458, + "finite": true, + "max_abs": 0.0199871063, + "mean_abs": 0.00290967977, + "psnr_db": 38.961759, + "ref_absmax": 2.11790395, + "rel_max": 0.00943721095, + "scaled_max_abs": 0.00943721095 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10190.1009, + "index": 1, + "metrics": { + "corr": 0.361127218, + "finite": true, + "max_abs": 172.25209, + "mean_abs": 1.02617197, + "psnr_db": 31.5460514, + "ref_absmax": 169.038651, + "rel_max": 1.01901009, + "scaled_max_abs": 1.01901009 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_7" + }, + "status": "fail", + "tap": "net.features.0", + "ungated_probes": { + "band_ratio": 53.3999972, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999981607, + "finite": true, + "max_abs": 0.169090271, + "mean_abs": 0.00361323622, + "psnr_db": 71.776067, + "ref_absmax": 31.6648464, + "rel_max": 0.00533999972, + "scaled_max_abs": 0.00533999972 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 11299.3129, + "index": 2, + "metrics": { + "corr": 0.458569042, + "finite": true, + "max_abs": 50.4448175, + "mean_abs": 1.39662335, + "psnr_db": 29.4207107, + "ref_absmax": 44.644146, + "rel_max": 1.12993129, + "scaled_max_abs": 1.12993129 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_27" + }, + "status": "fail", + "tap": "net.features.1", + "ungated_probes": { + "band_ratio": 72.4364609, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999921568, + "finite": true, + "max_abs": 0.0530757606, + "mean_abs": 0.0058314508, + "psnr_db": 64.3039177, + "ref_absmax": 7.32721615, + "rel_max": 0.00724364609, + "scaled_max_abs": 0.00724364609 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 6867.393, + "index": 3, + "metrics": { + "corr": 0.771826158, + "finite": true, + "max_abs": 21.0243139, + "mean_abs": 0.850780439, + "psnr_db": 31.3812152, + "ref_absmax": 30.6146946, + "rel_max": 0.6867393, + "scaled_max_abs": 0.6867393 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_43" + }, + "status": "fail", + "tap": "net.features.2", + "ungated_probes": { + "band_ratio": 117.174289, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999983165, + "finite": true, + "max_abs": 0.0505047441, + "mean_abs": 0.00446000621, + "psnr_db": 61.204204, + "ref_absmax": 4.31022406, + "rel_max": 0.0117174289, + "scaled_max_abs": 0.0117174289 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9467.07153, + "index": 4, + "metrics": { + "corr": 0.677882196, + "finite": true, + "max_abs": 24.7721753, + "mean_abs": 1.18356798, + "psnr_db": 28.8679375, + "ref_absmax": 26.1666718, + "rel_max": 0.946707153, + "scaled_max_abs": 0.946707153 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59" + }, + "status": "fail", + "tap": "net.features.3", + "ungated_probes": { + "band_ratio": 412.625995, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999643862, + "finite": true, + "max_abs": 0.277915478, + "mean_abs": 0.0219840103, + "psnr_db": 50.6676196, + "ref_absmax": 6.73528767, + "rel_max": 0.0412625995, + "scaled_max_abs": 0.0412625995 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6173.36159, + "index": 5, + "metrics": { + "corr": 0.790133084, + "finite": true, + "max_abs": 12.0387263, + "mean_abs": 0.495646714, + "psnr_db": 32.6048638, + "ref_absmax": 19.5010872, + "rel_max": 0.617336159, + "scaled_max_abs": 0.617336159 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85" + }, + "status": "fail", + "tap": "net.features.4", + "ungated_probes": { + "band_ratio": 397.448612, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999913013, + "finite": true, + "max_abs": 0.117768139, + "mean_abs": 0.0118499076, + "psnr_db": 51.2698764, + "ref_absmax": 2.96310353, + "rel_max": 0.0397448612, + "scaled_max_abs": 0.0397448612 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 8961.34128, + "index": 6, + "metrics": { + "corr": 0.675452108, + "finite": true, + "max_abs": 26.9253345, + "mean_abs": 0.662742288, + "psnr_db": 32.6718415, + "ref_absmax": 30.0460987, + "rel_max": 0.896134128, + "scaled_max_abs": 0.896134128 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_111" + }, + "status": "fail", + "tap": "net.features.5", + "ungated_probes": { + "band_ratio": 758.286504, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.99949285, + "finite": true, + "max_abs": 0.188589215, + "mean_abs": 0.0208455821, + "psnr_db": 44.8716087, + "ref_absmax": 2.48704433, + "rel_max": 0.0758286504, + "scaled_max_abs": 0.0758286504 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7564.11489, + "index": 7, + "metrics": { + "corr": 0.848045076, + "finite": true, + "max_abs": 51.1940799, + "mean_abs": 1.03109758, + "psnr_db": 36.7257833, + "ref_absmax": 67.6801987, + "rel_max": 0.756411489, + "scaled_max_abs": 0.756411489 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_137" + }, + "status": "fail", + "tap": "net.features.6", + "ungated_probes": { + "band_ratio": 469.56767, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999647543, + "finite": true, + "max_abs": 0.259339571, + "mean_abs": 0.0261403352, + "psnr_db": 49.5948982, + "ref_absmax": 5.5229435, + "rel_max": 0.046956767, + "scaled_max_abs": 0.046956767 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7734.77653, + "index": 8, + "metrics": { + "corr": 0.649566754, + "finite": true, + "max_abs": 13.3696659, + "mean_abs": 0.597655661, + "psnr_db": 30.9533368, + "ref_absmax": 17.2851353, + "rel_max": 0.773477653, + "scaled_max_abs": 0.773477653 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_163" + }, + "status": "fail", + "tap": "net.features.7", + "ungated_probes": { + "band_ratio": 442.5668, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999592799, + "finite": true, + "max_abs": 0.131904691, + "mean_abs": 0.0135282388, + "psnr_db": 49.5374639, + "ref_absmax": 2.98044705, + "rel_max": 0.04425668, + "scaled_max_abs": 0.04425668 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 8538.79658, + "index": 9, + "metrics": { + "corr": 0.599306549, + "finite": true, + "max_abs": 14.2792923, + "mean_abs": 0.727079729, + "psnr_db": 29.3639367, + "ref_absmax": 16.7228394, + "rel_max": 0.853879658, + "scaled_max_abs": 0.853879658 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_189" + }, + "status": "fail", + "tap": "net.features.8", + "ungated_probes": { + "band_ratio": 258.609254, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999530818, + "finite": true, + "max_abs": 0.121221423, + "mean_abs": 0.0169843685, + "psnr_db": 51.2434631, + "ref_absmax": 4.68743563, + "rel_max": 0.0258609254, + "scaled_max_abs": 0.0258609254 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10099.8328, + "index": 10, + "metrics": { + "corr": 0.78121462, + "finite": true, + "max_abs": 2.73478809, + "mean_abs": 0.201514907, + "psnr_db": 24.9370633, + "ref_absmax": 2.7077558, + "rel_max": 1.00998328, + "scaled_max_abs": 1.00998328 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_215" + }, + "status": "fail", + "tap": "net.features.9", + "ungated_probes": { + "band_ratio": 199.336363, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999949613, + "finite": true, + "max_abs": 0.0242380202, + "mean_abs": 0.00289743414, + "psnr_db": 55.0571169, + "ref_absmax": 1.21593571, + "rel_max": 0.0199336363, + "scaled_max_abs": 0.0199336363 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9466.98636, + "index": 11, + "metrics": { + "corr": 0.814542192, + "finite": true, + "max_abs": 3.11025405, + "mean_abs": 0.237107171, + "psnr_db": 25.0107089, + "ref_absmax": 3.28536868, + "rel_max": 0.946698636, + "scaled_max_abs": 0.946698636 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_241" + }, + "status": "fail", + "tap": "net.features.10", + "ungated_probes": { + "band_ratio": 159.871824, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999960726, + "finite": true, + "max_abs": 0.027818799, + "mean_abs": 0.00316461877, + "psnr_db": 57.4841866, + "ref_absmax": 1.74006891, + "rel_max": 0.0159871824, + "scaled_max_abs": 0.0159871824 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10371.1217, + "index": 12, + "metrics": { + "corr": 0.821349074, + "finite": true, + "max_abs": 4.11690784, + "mean_abs": 0.271635689, + "psnr_db": 25.4703495, + "ref_absmax": 3.9695878, + "rel_max": 1.03711217, + "scaled_max_abs": 1.03711217 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_267" + }, + "status": "fail", + "tap": "net.features.11", + "ungated_probes": { + "band_ratio": 170.180186, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999959538, + "finite": true, + "max_abs": 0.0309910774, + "mean_abs": 0.00346342083, + "psnr_db": 57.7494786, + "ref_absmax": 1.82107437, + "rel_max": 0.0170180186, + "scaled_max_abs": 0.0170180186 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7378.08721, + "index": 13, + "metrics": { + "corr": 0.77398548, + "finite": true, + "max_abs": 6.83069111, + "mean_abs": 0.158701705, + "psnr_db": 29.3815591, + "ref_absmax": 9.25807858, + "rel_max": 0.737808721, + "scaled_max_abs": 0.737808721 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_273" + }, + "status": "fail", + "tap": "net.features.12", + "ungated_probes": { + "band_ratio": 152.185113, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999940914, + "finite": true, + "max_abs": 0.0939083099, + "mean_abs": 0.00161660841, + "psnr_db": 66.704741, + "ref_absmax": 6.17066336, + "rel_max": 0.0152185113, + "scaled_max_abs": 0.0152185113 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "uniform", + "index": 16 + } + }, + { + "band_ratio": 5603.29299, + "index": 14, + "metrics": { + "corr": 0.956929284, + "finite": true, + "max_abs": 2.90783095, + "mean_abs": 0.0464694738, + "psnr_db": 33.7765659, + "ref_absmax": 5.18950367, + "rel_max": 0.560329299, + "scaled_max_abs": 0.560329299 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 38.0887064, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999993237, + "finite": true, + "max_abs": 0.00749838352, + "mean_abs": 0.000464384219, + "psnr_db": 69.8960554, + "ref_absmax": 1.96866322, + "rel_max": 0.00380887064, + "scaled_max_abs": 0.00380887064 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 5138.46718, + "index": 15, + "metrics": { + "corr": 0.964978348, + "finite": true, + "max_abs": 9.26216531, + "mean_abs": 0.371534691, + "psnr_db": 32.1846912, + "ref_absmax": 18.0251522, + "rel_max": 0.513846718, + "scaled_max_abs": 0.513846718 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier", + "ungated_probes": { + "band_ratio": 37.7485106, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999992682, + "finite": true, + "max_abs": 0.0196331739, + "mean_abs": 0.00372350571, + "psnr_db": 64.1617022, + "ref_absmax": 5.20104599, + "rel_max": 0.00377485106, + "scaled_max_abs": 0.00377485106 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp32", + "id": "mobilenet_v3_small__input_hw_swap__coreml_fp32", + "model": "mobilenet_v3_small", + "path": "coreml", + "variant": "input_hw_swap" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/mobilenet_v3_small__input_hw_swap__litert_fp16.json b/bench/verdicts_calibrated4/mobilenet_v3_small__input_hw_swap__litert_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..afca011a73c63d5a72b1c77e2a8b39670840d5a7 --- /dev/null +++ b/bench/verdicts_calibrated4/mobilenet_v3_small__input_hw_swap__litert_fp16.json @@ -0,0 +1,1462 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "baseline": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "faithful_output_rel_max": 0.0347403663, + "output_band": 0.0694807327, + "source": { + "bundle": "bundles/mobilenet_v3_small__clean__litert_fp16.json", + "case": "mobilenet_v3_small__clean__litert_fp16", + "digests": { + "192": { + "converted": "c1e0d3f6eacceb0f07eea7aaf062f75a642b665785bf323c4ed798c4c424167a", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "e68287c6bf447d1c5af1840f2957e8f25a438b576d35374a5a1e6bfa57051ad5", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + } + } + }, + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "normalize", + "band_limit": 0.01, + "explained_by": "hw_transpose", + "nominal_band_ratio": 169.101721, + "results": [ + { + "band_ratio": 169.101721, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 119.785595, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 210.787917, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 9.03100643e-06, + "explains": true, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 311.790395, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "flag" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 0.000814625376, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000145077705, + "mean_abs": 6.86047391e-06, + "psnr_db": 125.130599, + "ref_absmax": 17.8091316, + "rel_max": 8.14625376e-06, + "scaled_max_abs": 8.14625376e-06 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 116, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 1, + "n_ops_total": 169, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "zoo.Source/zoo.Normalize_normalize;5", + "basis": "interface hypothesis 'hw_transpose' explains the first over-band tap (normalize)", + "index": 0, + "neighbourhood": [ + { + "band_ratio": 111.123355, + "index": 0, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;5" + }, + "status": "fail", + "tap": "normalize" + }, + { + "band_ratio": 101.886295, + "index": 1, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_0/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "fail", + "tap": "net.features.0" + } + ], + "observed_first_over_band": { + "index": 0, + "tap": "normalize" + }, + "shape": 224, + "tap": "normalize" + }, + "fp16_floor": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "baseline": { + "bundle": "bundles/mobilenet_v3_small__clean__litert_fp16.json", + "case": "mobilenet_v3_small__clean__litert_fp16", + "digests": { + "192": { + "converted": "c1e0d3f6eacceb0f07eea7aaf062f75a642b665785bf323c4ed798c4c424167a", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "e68287c6bf447d1c5af1840f2957e8f25a438b576d35374a5a1e6bfa57051ad5", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + } + }, + "envelopes_gate": true, + "faithful_output_rel_max": 0.0347403663, + "faithful_tap_rel_max": { + "net.avgpool": 0.0392971952, + "net.classifier": 0.0347403663, + "net.features.0": 0.000915032087, + "net.features.1": 0.000755872648, + "net.features.10": 0.0518188833, + "net.features.11": 0.076462924, + "net.features.12": 0.0775258635, + "net.features.2": 0.0015302635, + "net.features.3": 0.00279809812, + "net.features.4": 0.00289036457, + "net.features.5": 0.00403152459, + "net.features.6": 0.00394882259, + "net.features.7": 0.0169154072, + "net.features.8": 0.0238189477, + "net.features.9": 0.0426980192, + "normalize": 8.27203959e-08 + }, + "floor": 0.01, + "k": 2.0, + "output_band": 0.0694807327, + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used", + "tap_envelopes": { + "net.avgpool": 0.0785943904, + "net.classifier": 0.0694807327, + "net.features.0": 0.01, + "net.features.1": 0.01, + "net.features.10": 0.103637767, + "net.features.11": 0.152925848, + "net.features.12": 0.155051727, + "net.features.2": 0.01, + "net.features.3": 0.01, + "net.features.4": 0.01, + "net.features.5": 0.01, + "net.features.6": 0.01, + "net.features.7": 0.0338308144, + "net.features.8": 0.0476378955, + "net.features.9": 0.0853960383, + "normalize": 0.01 + } + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "b08dcd30f0f03fc7ef38ef3eda4f2eb2dc76e9d2df14ed0751b364daba588101", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "e005c0344031287065c0c7fb33041f7bfb45c981fd92ab01fea8e91b0be19f62", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D3", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.5625, + "band_limit": 0.0694807327, + "band_ratio": 3.77303346, + "metrics": { + "corr": 0.972442933, + "finite": true, + "max_abs": 6.3925271, + "mean_abs": 0.340524203, + "psnr_db": 34.9519449, + "ref_absmax": 24.3847065, + "rel_max": 0.262153129, + "scaled_max_abs": 0.262153129 + }, + "per_op_band_ratio": 26.2153129, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 0, + "n_judged": 16, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 116.167792, + "index": 0, + "metrics": { + "corr": 0.675680702, + "finite": true, + "max_abs": 13.3928566, + "mean_abs": 0.899941872, + "psnr_db": 19.0470658, + "ref_absmax": 11.5288897, + "rel_max": 1.16167792, + "scaled_max_abs": 1.16167792 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;5" + }, + "per_op_band_ratio": 116.167792, + "status": "fail", + "tap": "normalize", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 101.87969, + "index": 1, + "metrics": { + "corr": 0.363051158, + "finite": true, + "max_abs": 193.604507, + "mean_abs": 0.953606988, + "psnr_db": 32.6073164, + "ref_absmax": 190.032486, + "rel_max": 1.0187969, + "scaled_max_abs": 1.0187969 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_0/torch.nn.modules.activation.Hardswish_2;" + }, + "per_op_band_ratio": 101.87969, + "status": "fail", + "tap": "net.features.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 105.568634, + "index": 2, + "metrics": { + "corr": 0.457491024, + "finite": true, + "max_abs": 47.9808483, + "mean_abs": 1.30982975, + "psnr_db": 29.9422614, + "ref_absmax": 45.4499092, + "rel_max": 1.05568634, + "scaled_max_abs": 1.05568634 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_1/torch.nn.modules.container.Sequential_block/t" + }, + "per_op_band_ratio": 105.568634, + "status": "fail", + "tap": "net.features.1", + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_limit": 0.01, + "band_ratio": 65.4583816, + "index": 3, + "metrics": { + "corr": 0.786653276, + "finite": true, + "max_abs": 16.9515731, + "mean_abs": 0.789059855, + "psnr_db": 30.3852712, + "ref_absmax": 25.896719, + "rel_max": 0.654583816, + "scaled_max_abs": 0.654583816 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_2/torch.nn.modules.container.Sequential_block/t" + }, + "per_op_band_ratio": 65.4583816, + "status": "fail", + "tap": "net.features.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 99.0291464, + "index": 4, + "metrics": { + "corr": 0.675928863, + "finite": true, + "max_abs": 25.4618678, + "mean_abs": 1.08253132, + "psnr_db": 29.142797, + "ref_absmax": 25.7114887, + "rel_max": 0.990291464, + "scaled_max_abs": 0.990291464 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_3;" + }, + "per_op_band_ratio": 99.0291464, + "status": "fail", + "tap": "net.features.3", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 61.0086791, + "index": 5, + "metrics": { + "corr": 0.808751105, + "finite": true, + "max_abs": 10.4373403, + "mean_abs": 0.443033568, + "psnr_db": 32.0878942, + "ref_absmax": 17.1079597, + "rel_max": 0.610086791, + "scaled_max_abs": 0.610086791 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_4/torch.nn.modules.container.Sequential_block/t" + }, + "per_op_band_ratio": 61.0086791, + "status": "fail", + "tap": "net.features.4", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 79.2182428, + "index": 6, + "metrics": { + "corr": 0.675702407, + "finite": true, + "max_abs": 17.6804252, + "mean_abs": 0.590791132, + "psnr_db": 31.1528672, + "ref_absmax": 22.3186283, + "rel_max": 0.792182428, + "scaled_max_abs": 0.792182428 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_5;" + }, + "per_op_band_ratio": 79.2182428, + "status": "fail", + "tap": "net.features.5", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 64.5517587, + "index": 7, + "metrics": { + "corr": 0.863557509, + "finite": true, + "max_abs": 40.519186, + "mean_abs": 0.962096969, + "psnr_db": 35.7960132, + "ref_absmax": 62.7700729, + "rel_max": 0.645517587, + "scaled_max_abs": 0.645517587 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_6;" + }, + "per_op_band_ratio": 64.5517587, + "status": "fail", + "tap": "net.features.6", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.0338308144, + "band_ratio": 18.2820239, + "index": 8, + "metrics": { + "corr": 0.719367426, + "finite": true, + "max_abs": 12.7931609, + "mean_abs": 0.532501167, + "psnr_db": 32.5646591, + "ref_absmax": 20.6843147, + "rel_max": 0.618495758, + "scaled_max_abs": 0.618495758 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_7/torch.nn.modules.container.Sequential_block/t" + }, + "per_op_band_ratio": 61.8495758, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.0476378955, + "band_ratio": 13.5918542, + "index": 9, + "metrics": { + "corr": 0.671517594, + "finite": true, + "max_abs": 12.5961978, + "mean_abs": 0.651926648, + "psnr_db": 30.8458691, + "ref_absmax": 19.453968, + "rel_max": 0.647487328, + "scaled_max_abs": 0.647487328 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_8;" + }, + "per_op_band_ratio": 64.7487328, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.0853960383, + "band_ratio": 9.70164155, + "index": 10, + "metrics": { + "corr": 0.806809356, + "finite": true, + "max_abs": 2.89527559, + "mean_abs": 0.181830302, + "psnr_db": 27.5002496, + "ref_absmax": 3.49467635, + "rel_max": 0.828481754, + "scaled_max_abs": 0.828481754 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_9/torch.nn.modules.container.Sequential_block/t" + }, + "per_op_band_ratio": 82.8481754, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.103637767, + "band_ratio": 7.65197231, + "index": 11, + "metrics": { + "corr": 0.819817603, + "finite": true, + "max_abs": 2.96554738, + "mean_abs": 0.214591924, + "psnr_db": 26.918565, + "ref_absmax": 3.73949909, + "rel_max": 0.793033321, + "scaled_max_abs": 0.793033321 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_10;" + }, + "per_op_band_ratio": 79.3033321, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.152925848, + "band_ratio": 5.00818054, + "index": 12, + "metrics": { + "corr": 0.83652496, + "finite": true, + "max_abs": 3.47313282, + "mean_abs": 0.24095052, + "psnr_db": 27.7357284, + "ref_absmax": 4.53482485, + "rel_max": 0.765880257, + "scaled_max_abs": 0.765880257 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_11;" + }, + "per_op_band_ratio": 76.5880257, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.155051727, + "band_ratio": 5.23760641, + "index": 13, + "metrics": { + "corr": 0.793624157, + "finite": true, + "max_abs": 8.20201588, + "mean_abs": 0.144098941, + "psnr_db": 30.481047, + "ref_absmax": 10.099762, + "rel_max": 0.812099919, + "scaled_max_abs": 0.812099919 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_12/torch.nn.modules.activation.Hardswish_2;" + }, + "per_op_band_ratio": 81.2099919, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.0785943904, + "band_ratio": 3.18639063, + "index": 14, + "metrics": { + "corr": 0.967776438, + "finite": true, + "max_abs": 1.31374579, + "mean_abs": 0.0449365598, + "psnr_db": 35.2158288, + "ref_absmax": 5.24590921, + "rel_max": 0.250432429, + "scaled_max_abs": 0.250432429 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;;zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Seque" + }, + "per_op_band_ratio": 25.0432429, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.0694807327, + "band_ratio": 3.77303346, + "index": 15, + "metrics": { + "corr": 0.972442933, + "finite": true, + "max_abs": 6.3925271, + "mean_abs": 0.340524203, + "psnr_db": 34.9519449, + "ref_absmax": 24.3847065, + "rel_max": 0.262153129, + "scaled_max_abs": 0.262153129 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "per_op_band_ratio": 26.2153129, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.5625, + "band_limit": 0.0694807327, + "band_ratio": 8.00014471, + "metrics": { + "corr": 0.965673201, + "finite": true, + "max_abs": 10.0193875, + "mean_abs": 0.333476162, + "psnr_db": 32.6072353, + "ref_absmax": 18.0251522, + "rel_max": 0.555855916, + "scaled_max_abs": 0.555855916 + }, + "per_op_band_ratio": 55.5855916, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 0, + "n_judged": 16, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 111.123355, + "index": 0, + "metrics": { + "corr": 0.709006651, + "finite": true, + "max_abs": 12.811289, + "mean_abs": 0.852875392, + "psnr_db": 19.6231673, + "ref_absmax": 11.5288897, + "rel_max": 1.11123355, + "scaled_max_abs": 1.11123355 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;5" + }, + "per_op_band_ratio": 111.123355, + "status": "fail", + "tap": "normalize", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 101.886295, + "index": 1, + "metrics": { + "corr": 0.372289079, + "finite": true, + "max_abs": 172.227219, + "mean_abs": 0.898391614, + "psnr_db": 32.1266824, + "ref_absmax": 169.038651, + "rel_max": 1.01886295, + "scaled_max_abs": 1.01886295 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_0/torch.nn.modules.activation.Hardswish_2;" + }, + "per_op_band_ratio": 101.886295, + "status": "fail", + "tap": "net.features.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 112.993057, + "index": 2, + "metrics": { + "corr": 0.465554096, + "finite": true, + "max_abs": 50.4447851, + "mean_abs": 1.22297535, + "psnr_db": 30.0012043, + "ref_absmax": 44.644146, + "rel_max": 1.12993057, + "scaled_max_abs": 1.12993057 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_1/torch.nn.modules.container.Sequential_block/t" + }, + "per_op_band_ratio": 112.993057, + "status": "fail", + "tap": "net.features.1", + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_limit": 0.01, + "band_ratio": 68.716021, + "index": 3, + "metrics": { + "corr": 0.780754403, + "finite": true, + "max_abs": 21.0372, + "mean_abs": 0.745731819, + "psnr_db": 31.9614338, + "ref_absmax": 30.6146946, + "rel_max": 0.68716021, + "scaled_max_abs": 0.68716021 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_2/torch.nn.modules.container.Sequential_block/t" + }, + "per_op_band_ratio": 68.716021, + "status": "fail", + "tap": "net.features.2", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 94.678789, + "index": 4, + "metrics": { + "corr": 0.691554751, + "finite": true, + "max_abs": 24.7742879, + "mean_abs": 1.03963028, + "psnr_db": 29.447784, + "ref_absmax": 26.1666718, + "rel_max": 0.94678789, + "scaled_max_abs": 0.94678789 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_3;" + }, + "per_op_band_ratio": 94.678789, + "status": "fail", + "tap": "net.features.3", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 61.7957334, + "index": 5, + "metrics": { + "corr": 0.81599157, + "finite": true, + "max_abs": 12.0508398, + "mean_abs": 0.436939513, + "psnr_db": 33.1835069, + "ref_absmax": 19.5010872, + "rel_max": 0.617957334, + "scaled_max_abs": 0.617957334 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_4/torch.nn.modules.container.Sequential_block/t" + }, + "per_op_band_ratio": 61.7957334, + "status": "fail", + "tap": "net.features.4", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 89.6876979, + "index": 6, + "metrics": { + "corr": 0.695777595, + "finite": true, + "max_abs": 26.9476542, + "mean_abs": 0.585337381, + "psnr_db": 33.2493166, + "ref_absmax": 30.0460987, + "rel_max": 0.896876979, + "scaled_max_abs": 0.896876979 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_5;" + }, + "per_op_band_ratio": 89.6876979, + "status": "fail", + "tap": "net.features.5", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 75.7323459, + "index": 7, + "metrics": { + "corr": 0.85025776, + "finite": true, + "max_abs": 51.2558022, + "mean_abs": 0.91026677, + "psnr_db": 37.2995733, + "ref_absmax": 67.6801987, + "rel_max": 0.757323459, + "scaled_max_abs": 0.757323459 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_6;" + }, + "per_op_band_ratio": 75.7323459, + "status": "fail", + "tap": "net.features.6", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.0338308144, + "band_ratio": 22.905404, + "index": 8, + "metrics": { + "corr": 0.665348108, + "finite": true, + "max_abs": 13.3943977, + "mean_abs": 0.526861207, + "psnr_db": 31.5223329, + "ref_absmax": 17.2851353, + "rel_max": 0.774908471, + "scaled_max_abs": 0.774908471 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_7/torch.nn.modules.container.Sequential_block/t" + }, + "per_op_band_ratio": 77.4908471, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.0476378955, + "band_ratio": 17.9411128, + "index": 9, + "metrics": { + "corr": 0.618764138, + "finite": true, + "max_abs": 14.2926238, + "mean_abs": 0.640988237, + "psnr_db": 29.9343776, + "ref_absmax": 16.7228394, + "rel_max": 0.854676856, + "scaled_max_abs": 0.854676856 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_8;" + }, + "per_op_band_ratio": 85.4676856, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.0853960383, + "band_ratio": 11.9336408, + "index": 10, + "metrics": { + "corr": 0.80192181, + "finite": true, + "max_abs": 2.75943509, + "mean_abs": 0.178248868, + "psnr_db": 25.4967866, + "ref_absmax": 2.7077558, + "rel_max": 1.01908565, + "scaled_max_abs": 1.01908565 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_9/torch.nn.modules.container.Sequential_block/t" + }, + "per_op_band_ratio": 101.908565, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.103637767, + "band_ratio": 9.45115046, + "index": 11, + "metrics": { + "corr": 0.830523376, + "finite": true, + "max_abs": 3.2180059, + "mean_abs": 0.209999753, + "psnr_db": 25.5658761, + "ref_absmax": 3.28536868, + "rel_max": 0.979496126, + "scaled_max_abs": 0.979496126 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_10;" + }, + "per_op_band_ratio": 97.9496126, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.152925848, + "band_ratio": 7.03512678, + "index": 12, + "metrics": { + "corr": 0.833596133, + "finite": true, + "max_abs": 4.27069187, + "mean_abs": 0.240823059, + "psnr_db": 26.0029489, + "ref_absmax": 3.9695878, + "rel_max": 1.07585273, + "scaled_max_abs": 1.07585273 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_11;" + }, + "per_op_band_ratio": 107.585273, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.155051727, + "band_ratio": 4.75160377, + "index": 13, + "metrics": { + "corr": 0.783822201, + "finite": true, + "max_abs": 6.82083727, + "mean_abs": 0.140389538, + "psnr_db": 29.914645, + "ref_absmax": 9.25807858, + "rel_max": 0.736744371, + "scaled_max_abs": 0.736744371 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_12/torch.nn.modules.activation.Hardswish_2;" + }, + "per_op_band_ratio": 73.6744371, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "uniform", + "index": 16 + } + }, + { + "band_limit": 0.0785943904, + "band_ratio": 7.16557923, + "index": 14, + "metrics": { + "corr": 0.956541959, + "finite": true, + "max_abs": 2.92259526, + "mean_abs": 0.0418745793, + "psnr_db": 34.1069841, + "ref_absmax": 5.18950367, + "rel_max": 0.563174332, + "scaled_max_abs": 0.563174332 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;;zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Seque" + }, + "per_op_band_ratio": 56.3174332, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.0694807327, + "band_ratio": 8.00014471, + "index": 15, + "metrics": { + "corr": 0.965673201, + "finite": true, + "max_abs": 10.0193875, + "mean_abs": 0.333476162, + "psnr_db": 32.6072353, + "ref_absmax": 18.0251522, + "rel_max": 0.555855916, + "scaled_max_abs": 0.555855916 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "per_op_band_ratio": 55.5855916, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp16", + "id": "mobilenet_v3_small__input_hw_swap__litert_fp16", + "model": "mobilenet_v3_small", + "path": "litert", + "variant": "input_hw_swap" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/mobilenet_v3_small__input_hw_swap__litert_fp32.json b/bench/verdicts_calibrated4/mobilenet_v3_small__input_hw_swap__litert_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..87675993515702a6589e29fa27b8445771449f0b --- /dev/null +++ b/bench/verdicts_calibrated4/mobilenet_v3_small__input_hw_swap__litert_fp32.json @@ -0,0 +1,1866 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "normalize", + "explained_by": "hw_transpose", + "nominal_band_ratio": 16910.1721, + "results": [ + { + "band_ratio": 16910.1721, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 11978.5595, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 21078.7917, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 0.000903100643, + "explains": true, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 31179.0395, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "flag" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 0.0772368847, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000137388706, + "mean_abs": 5.9094717e-06, + "psnr_db": 127.54598, + "ref_absmax": 17.7879658, + "rel_max": 7.72368847e-06, + "scaled_max_abs": 7.72368847e-06 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 116, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 1, + "n_ops_total": 115, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "zoo.Source/zoo.Normalize_normalize;5", + "basis": "interface hypothesis 'hw_transpose' explains the first over-band tap (normalize)", + "index": 0, + "neighbourhood": [ + { + "band_ratio": 11112.3355, + "index": 0, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;5" + }, + "status": "fail", + "tap": "normalize" + }, + { + "band_ratio": 10190.1018, + "index": 1, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_0/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "fail", + "tap": "net.features.0" + } + ], + "observed_first_over_band": { + "index": 0, + "tap": "normalize" + }, + "shape": 224, + "tap": "normalize" + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "98b2929386ef1945edc54d974d95025a70dbdb2956a870002d958ddd27d3417b", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "3672bd9f030b86cca1fdc6638d9dba697fd8be1d75abef76b9a7c1e5a2c10147", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "fp32 per-tap band on near-zero probes", + "reason": "C3-2: per-tap fp32 checks gate without the near_zero probes; they are measured and reported per tap ('ungated_probes'); the output gates on all probes. C4-1: when the output has failed and no gated tap fails, they localise the first divergence (earliest tap over band on all probes)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D3", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.5625, + "band_ratio": 2698.76243, + "metrics": { + "corr": 0.972569217, + "finite": true, + "max_abs": 6.58085299, + "mean_abs": 0.331052932, + "psnr_db": 34.9704749, + "ref_absmax": 24.3847065, + "rel_max": 0.269876243, + "scaled_max_abs": 0.269876243 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 0, + "n_judged": 16, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 11616.7792, + "index": 0, + "metrics": { + "corr": 0.600839339, + "finite": true, + "max_abs": 13.3928566, + "mean_abs": 1.02808959, + "psnr_db": 18.4671497, + "ref_absmax": 11.5288897, + "rel_max": 1.16167792, + "scaled_max_abs": 1.16167792 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;5" + }, + "status": "fail", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 96.5222518, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999598821, + "finite": true, + "max_abs": 0.0204424858, + "mean_abs": 0.002907845, + "psnr_db": 38.9218202, + "ref_absmax": 2.11790395, + "rel_max": 0.00965222518, + "scaled_max_abs": 0.00965222518 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 10189.7315, + "index": 1, + "metrics": { + "corr": 0.352802425, + "finite": true, + "max_abs": 193.638, + "mean_abs": 1.08927038, + "psnr_db": 32.026662, + "ref_absmax": 190.032486, + "rel_max": 1.01897315, + "scaled_max_abs": 1.01897315 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_0/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "fail", + "tap": "net.features.0", + "ungated_probes": { + "band_ratio": 38.8768833, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999981956, + "finite": true, + "max_abs": 0.122964494, + "mean_abs": 0.00359425771, + "psnr_db": 71.843438, + "ref_absmax": 31.6292057, + "rel_max": 0.00388768833, + "scaled_max_abs": 0.00388768833 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 10556.9614, + "index": 2, + "metrics": { + "corr": 0.450975701, + "finite": true, + "max_abs": 47.9812937, + "mean_abs": 1.49589953, + "psnr_db": 29.3617623, + "ref_absmax": 45.4499092, + "rel_max": 1.05569614, + "scaled_max_abs": 1.05569614 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_1/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.1", + "ungated_probes": { + "band_ratio": 75.6637242, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999925384, + "finite": true, + "max_abs": 0.0554742813, + "mean_abs": 0.00585159688, + "psnr_db": 64.2770831, + "ref_absmax": 7.33168793, + "rel_max": 0.00756637242, + "scaled_max_abs": 0.00756637242 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 6543.97034, + "index": 3, + "metrics": { + "corr": 0.778893217, + "finite": true, + "max_abs": 16.9467361, + "mean_abs": 0.900340695, + "psnr_db": 29.8049651, + "ref_absmax": 25.896719, + "rel_max": 0.654397034, + "scaled_max_abs": 0.654397034 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_2/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.2", + "ungated_probes": { + "band_ratio": 117.340861, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999983432, + "finite": true, + "max_abs": 0.0505461693, + "mean_abs": 0.00444631315, + "psnr_db": 61.217598, + "ref_absmax": 4.30763578, + "rel_max": 0.0117340861, + "scaled_max_abs": 0.0117340861 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9893.66257, + "index": 4, + "metrics": { + "corr": 0.661975156, + "finite": true, + "max_abs": 25.4380794, + "mean_abs": 1.23244581, + "psnr_db": 28.5629375, + "ref_absmax": 25.7114887, + "rel_max": 0.989366257, + "scaled_max_abs": 0.989366257 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_3;" + }, + "status": "fail", + "tap": "net.features.3", + "ungated_probes": { + "band_ratio": 387.892939, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.99964725, + "finite": true, + "max_abs": 0.261135459, + "mean_abs": 0.0220107302, + "psnr_db": 50.6825118, + "ref_absmax": 6.73215294, + "rel_max": 0.0387892939, + "scaled_max_abs": 0.0387892939 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6093.95113, + "index": 5, + "metrics": { + "corr": 0.781551053, + "finite": true, + "max_abs": 10.4255071, + "mean_abs": 0.502562235, + "psnr_db": 31.509299, + "ref_absmax": 17.1079597, + "rel_max": 0.609395113, + "scaled_max_abs": 0.609395113 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_4/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.4", + "ungated_probes": { + "band_ratio": 390.727546, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999909411, + "finite": true, + "max_abs": 0.114484832, + "mean_abs": 0.0119834142, + "psnr_db": 51.0230467, + "ref_absmax": 2.93004251, + "rel_max": 0.0390727546, + "scaled_max_abs": 0.0390727546 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7907.75587, + "index": 6, + "metrics": { + "corr": 0.651831589, + "finite": true, + "max_abs": 17.6490264, + "mean_abs": 0.668864892, + "psnr_db": 30.5758706, + "ref_absmax": 22.3186283, + "rel_max": 0.790775587, + "scaled_max_abs": 0.790775587 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_5;" + }, + "status": "fail", + "tap": "net.features.5", + "ungated_probes": { + "band_ratio": 590.77011, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999475526, + "finite": true, + "max_abs": 0.170245647, + "mean_abs": 0.0213564028, + "psnr_db": 45.3314621, + "ref_absmax": 2.88175797, + "rel_max": 0.059077011, + "scaled_max_abs": 0.059077011 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6447.45411, + "index": 7, + "metrics": { + "corr": 0.861335777, + "finite": true, + "max_abs": 40.4707165, + "mean_abs": 1.08735239, + "psnr_db": 35.2201561, + "ref_absmax": 62.7700729, + "rel_max": 0.644745411, + "scaled_max_abs": 0.644745411 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_6;" + }, + "status": "fail", + "tap": "net.features.6", + "ungated_probes": { + "band_ratio": 498.733759, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999641748, + "finite": true, + "max_abs": 0.272796392, + "mean_abs": 0.0269001816, + "psnr_db": 49.3807002, + "ref_absmax": 5.46977997, + "rel_max": 0.0498733759, + "scaled_max_abs": 0.0498733759 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6184.17147, + "index": 8, + "metrics": { + "corr": 0.707702991, + "finite": true, + "max_abs": 12.7915349, + "mean_abs": 0.604054402, + "psnr_db": 31.9847981, + "ref_absmax": 20.6843147, + "rel_max": 0.618417147, + "scaled_max_abs": 0.618417147 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_7/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.7", + "ungated_probes": { + "band_ratio": 499.721265, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999593792, + "finite": true, + "max_abs": 0.144774258, + "mean_abs": 0.0137481256, + "psnr_db": 48.8034362, + "ref_absmax": 2.89710021, + "rel_max": 0.0499721265, + "scaled_max_abs": 0.0499721265 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6488.34504, + "index": 9, + "metrics": { + "corr": 0.656642675, + "finite": true, + "max_abs": 12.6224057, + "mean_abs": 0.738954414, + "psnr_db": 30.266184, + "ref_absmax": 19.453968, + "rel_max": 0.648834504, + "scaled_max_abs": 0.648834504 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_8;" + }, + "status": "fail", + "tap": "net.features.8", + "ungated_probes": { + "band_ratio": 329.879499, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999533917, + "finite": true, + "max_abs": 0.139276922, + "mean_abs": 0.0171452461, + "psnr_db": 50.6174754, + "ref_absmax": 4.22205448, + "rel_max": 0.0329879499, + "scaled_max_abs": 0.0329879499 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 8297.6715, + "index": 10, + "metrics": { + "corr": 0.787538368, + "finite": true, + "max_abs": 2.89976764, + "mean_abs": 0.205261988, + "psnr_db": 26.9212806, + "ref_absmax": 3.49467635, + "rel_max": 0.82976715, + "scaled_max_abs": 0.82976715 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_9/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.9", + "ungated_probes": { + "band_ratio": 156.258501, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999949922, + "finite": true, + "max_abs": 0.0184200406, + "mean_abs": 0.00290318079, + "psnr_db": 54.7966488, + "ref_absmax": 1.17881846, + "rel_max": 0.0156258501, + "scaled_max_abs": 0.0156258501 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7958.84311, + "index": 11, + "metrics": { + "corr": 0.802099788, + "finite": true, + "max_abs": 2.97620866, + "mean_abs": 0.242288368, + "psnr_db": 26.3384794, + "ref_absmax": 3.73949909, + "rel_max": 0.795884311, + "scaled_max_abs": 0.795884311 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_10;" + }, + "status": "fail", + "tap": "net.features.10", + "ungated_probes": { + "band_ratio": 132.901222, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999960227, + "finite": true, + "max_abs": 0.0216417313, + "mean_abs": 0.00315154295, + "psnr_db": 57.1819372, + "ref_absmax": 1.62840724, + "rel_max": 0.0132901222, + "scaled_max_abs": 0.0132901222 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7677.98562, + "index": 12, + "metrics": { + "corr": 0.82334544, + "finite": true, + "max_abs": 3.481832, + "mean_abs": 0.271818112, + "psnr_db": 27.1555737, + "ref_absmax": 4.53482485, + "rel_max": 0.767798562, + "scaled_max_abs": 0.767798562 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_11;" + }, + "status": "fail", + "tap": "net.features.11", + "ungated_probes": { + "band_ratio": 144.547541, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999959061, + "finite": true, + "max_abs": 0.0243907571, + "mean_abs": 0.00343542012, + "psnr_db": 57.4196543, + "ref_absmax": 1.68738651, + "rel_max": 0.0144547541, + "scaled_max_abs": 0.0144547541 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 8142.68305, + "index": 13, + "metrics": { + "corr": 0.782759709, + "finite": true, + "max_abs": 8.22391605, + "mean_abs": 0.162789324, + "psnr_db": 29.9024161, + "ref_absmax": 10.099762, + "rel_max": 0.814268305, + "scaled_max_abs": 0.814268305 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_12/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "fail", + "tap": "net.features.12", + "ungated_probes": { + "band_ratio": 98.8039007, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.99994392, + "finite": true, + "max_abs": 0.0557565689, + "mean_abs": 0.00161395375, + "psnr_db": 66.2014263, + "ref_absmax": 5.64315462, + "rel_max": 0.00988039007, + "scaled_max_abs": 0.00988039007 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 2538.02174, + "index": 14, + "metrics": { + "corr": 0.966016482, + "finite": true, + "max_abs": 1.33142316, + "mean_abs": 0.0499622383, + "psnr_db": 34.6292666, + "ref_absmax": 5.24590921, + "rel_max": 0.253802174, + "scaled_max_abs": 0.253802174 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;;zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Seque" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 49.7058811, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999992947, + "finite": true, + "max_abs": 0.00928713381, + "mean_abs": 0.000480828039, + "psnr_db": 68.9639146, + "ref_absmax": 1.8684175, + "rel_max": 0.00497058811, + "scaled_max_abs": 0.00497058811 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 2698.76243, + "index": 15, + "metrics": { + "corr": 0.97106064, + "finite": true, + "max_abs": 6.58085299, + "mean_abs": 0.377849359, + "psnr_db": 34.3905873, + "ref_absmax": 24.3847065, + "rel_max": 0.269876243, + "scaled_max_abs": 0.269876243 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.classifier", + "ungated_probes": { + "band_ratio": 39.3916244, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999992981, + "finite": true, + "max_abs": 0.0210912228, + "mean_abs": 0.00347794195, + "psnr_db": 64.4194764, + "ref_absmax": 5.35424042, + "rel_max": 0.00393916244, + "scaled_max_abs": 0.00393916244 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.6875, + "band_ratio": 5138.60845, + "metrics": { + "corr": 0.966819629, + "finite": true, + "max_abs": 9.26241994, + "mean_abs": 0.325559513, + "psnr_db": 32.7645216, + "ref_absmax": 18.0251522, + "rel_max": 0.513860845, + "scaled_max_abs": 0.513860845 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 0, + "n_judged": 16, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 11112.3355, + "index": 0, + "metrics": { + "corr": 0.634923999, + "finite": true, + "max_abs": 12.811289, + "mean_abs": 0.974299065, + "psnr_db": 19.0432516, + "ref_absmax": 11.5288897, + "rel_max": 1.11123355, + "scaled_max_abs": 1.11123355 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;5" + }, + "status": "fail", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 94.3721095, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999598458, + "finite": true, + "max_abs": 0.0199871063, + "mean_abs": 0.00290967977, + "psnr_db": 38.961759, + "ref_absmax": 2.11790395, + "rel_max": 0.00943721095, + "scaled_max_abs": 0.00943721095 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10190.1018, + "index": 1, + "metrics": { + "corr": 0.361127213, + "finite": true, + "max_abs": 172.252106, + "mean_abs": 1.02617197, + "psnr_db": 31.5460512, + "ref_absmax": 169.038651, + "rel_max": 1.01901018, + "scaled_max_abs": 1.01901018 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_0/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "fail", + "tap": "net.features.0", + "ungated_probes": { + "band_ratio": 53.3993948, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999981607, + "finite": true, + "max_abs": 0.169088364, + "mean_abs": 0.00361323701, + "psnr_db": 71.7760606, + "ref_absmax": 31.6648464, + "rel_max": 0.00533993948, + "scaled_max_abs": 0.00533993948 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 11299.3129, + "index": 2, + "metrics": { + "corr": 0.458569007, + "finite": true, + "max_abs": 50.4448175, + "mean_abs": 1.39662335, + "psnr_db": 29.4207105, + "ref_absmax": 44.644146, + "rel_max": 1.12993129, + "scaled_max_abs": 1.12993129 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_1/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.1", + "ungated_probes": { + "band_ratio": 72.4352, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999921568, + "finite": true, + "max_abs": 0.0530748367, + "mean_abs": 0.00583145288, + "psnr_db": 64.3039103, + "ref_absmax": 7.32721615, + "rel_max": 0.00724352, + "scaled_max_abs": 0.00724352 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 6867.39549, + "index": 3, + "metrics": { + "corr": 0.77182614, + "finite": true, + "max_abs": 21.0243216, + "mean_abs": 0.850780415, + "psnr_db": 31.3812148, + "ref_absmax": 30.6146946, + "rel_max": 0.686739549, + "scaled_max_abs": 0.686739549 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_2/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.2", + "ungated_probes": { + "band_ratio": 117.130729, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999983165, + "finite": true, + "max_abs": 0.0504859686, + "mean_abs": 0.00446000213, + "psnr_db": 61.2042048, + "ref_absmax": 4.31022406, + "rel_max": 0.0117130729, + "scaled_max_abs": 0.0117130729 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9467.07189, + "index": 4, + "metrics": { + "corr": 0.677882191, + "finite": true, + "max_abs": 24.7721763, + "mean_abs": 1.18356799, + "psnr_db": 28.867937, + "ref_absmax": 26.1666718, + "rel_max": 0.946707189, + "scaled_max_abs": 0.946707189 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_3;" + }, + "status": "fail", + "tap": "net.features.3", + "ungated_probes": { + "band_ratio": 412.725111, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999643862, + "finite": true, + "max_abs": 0.277982235, + "mean_abs": 0.0219840371, + "psnr_db": 50.6676198, + "ref_absmax": 6.73528767, + "rel_max": 0.0412725111, + "scaled_max_abs": 0.0412725111 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6173.36502, + "index": 5, + "metrics": { + "corr": 0.790133108, + "finite": true, + "max_abs": 12.0387329, + "mean_abs": 0.495646669, + "psnr_db": 32.6048635, + "ref_absmax": 19.5010872, + "rel_max": 0.617336502, + "scaled_max_abs": 0.617336502 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_4/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.4", + "ungated_probes": { + "band_ratio": 397.413611, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999913011, + "finite": true, + "max_abs": 0.117757767, + "mean_abs": 0.0118500382, + "psnr_db": 51.269775, + "ref_absmax": 2.96310353, + "rel_max": 0.0397413611, + "scaled_max_abs": 0.0397413611 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 8961.34889, + "index": 6, + "metrics": { + "corr": 0.675452227, + "finite": true, + "max_abs": 26.9253573, + "mean_abs": 0.662742341, + "psnr_db": 32.6718404, + "ref_absmax": 30.0460987, + "rel_max": 0.896134889, + "scaled_max_abs": 0.896134889 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_5;" + }, + "status": "fail", + "tap": "net.features.5", + "ungated_probes": { + "band_ratio": 758.266851, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999492843, + "finite": true, + "max_abs": 0.188584328, + "mean_abs": 0.0208456805, + "psnr_db": 44.8715392, + "ref_absmax": 2.48704433, + "rel_max": 0.0758266851, + "scaled_max_abs": 0.0758266851 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7564.12166, + "index": 7, + "metrics": { + "corr": 0.848044823, + "finite": true, + "max_abs": 51.1941257, + "mean_abs": 1.0310978, + "psnr_db": 36.7257812, + "ref_absmax": 67.6801987, + "rel_max": 0.756412166, + "scaled_max_abs": 0.756412166 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_6;" + }, + "status": "fail", + "tap": "net.features.6", + "ungated_probes": { + "band_ratio": 469.6648, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.99964754, + "finite": true, + "max_abs": 0.259393215, + "mean_abs": 0.0261404847, + "psnr_db": 49.5948509, + "ref_absmax": 5.5229435, + "rel_max": 0.04696648, + "scaled_max_abs": 0.04696648 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7734.78329, + "index": 8, + "metrics": { + "corr": 0.649566221, + "finite": true, + "max_abs": 13.3696775, + "mean_abs": 0.5976559, + "psnr_db": 30.9533322, + "ref_absmax": 17.2851353, + "rel_max": 0.773478329, + "scaled_max_abs": 0.773478329 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_7/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.7", + "ungated_probes": { + "band_ratio": 442.550201, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999592795, + "finite": true, + "max_abs": 0.131899744, + "mean_abs": 0.0135283094, + "psnr_db": 49.5374158, + "ref_absmax": 2.98044705, + "rel_max": 0.0442550201, + "scaled_max_abs": 0.0442550201 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 8538.80413, + "index": 9, + "metrics": { + "corr": 0.599305958, + "finite": true, + "max_abs": 14.279305, + "mean_abs": 0.727080084, + "psnr_db": 29.3639327, + "ref_absmax": 16.7228394, + "rel_max": 0.853880413, + "scaled_max_abs": 0.853880413 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_8;" + }, + "status": "fail", + "tap": "net.features.8", + "ungated_probes": { + "band_ratio": 258.641044, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999530818, + "finite": true, + "max_abs": 0.121236324, + "mean_abs": 0.0169843091, + "psnr_db": 51.2434567, + "ref_absmax": 4.68743563, + "rel_max": 0.0258641044, + "scaled_max_abs": 0.0258641044 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10099.8601, + "index": 10, + "metrics": { + "corr": 0.781214149, + "finite": true, + "max_abs": 2.73479548, + "mean_abs": 0.201515165, + "psnr_db": 24.9370546, + "ref_absmax": 2.7077558, + "rel_max": 1.00998601, + "scaled_max_abs": 1.00998601 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_9/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.9", + "ungated_probes": { + "band_ratio": 199.245187, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999949614, + "finite": true, + "max_abs": 0.0242269337, + "mean_abs": 0.00289743927, + "psnr_db": 55.057176, + "ref_absmax": 1.21593571, + "rel_max": 0.0199245187, + "scaled_max_abs": 0.0199245187 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9467.11554, + "index": 11, + "metrics": { + "corr": 0.814541675, + "finite": true, + "max_abs": 3.11029649, + "mean_abs": 0.237107404, + "psnr_db": 25.0106984, + "ref_absmax": 3.28536868, + "rel_max": 0.946711554, + "scaled_max_abs": 0.946711554 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_10;" + }, + "status": "fail", + "tap": "net.features.10", + "ungated_probes": { + "band_ratio": 159.942387, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999960727, + "finite": true, + "max_abs": 0.0278310776, + "mean_abs": 0.00316460311, + "psnr_db": 57.4842212, + "ref_absmax": 1.74006891, + "rel_max": 0.0159942387, + "scaled_max_abs": 0.0159942387 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10371.3001, + "index": 12, + "metrics": { + "corr": 0.821348365, + "finite": true, + "max_abs": 4.11697865, + "mean_abs": 0.271636129, + "psnr_db": 25.4703317, + "ref_absmax": 3.9695878, + "rel_max": 1.03713001, + "scaled_max_abs": 1.03713001 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_11;" + }, + "status": "fail", + "tap": "net.features.11", + "ungated_probes": { + "band_ratio": 170.108833, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999959539, + "finite": true, + "max_abs": 0.0309780836, + "mean_abs": 0.00346339423, + "psnr_db": 57.749491, + "ref_absmax": 1.82107437, + "rel_max": 0.0170108833, + "scaled_max_abs": 0.0170108833 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7378.07125, + "index": 13, + "metrics": { + "corr": 0.773984683, + "finite": true, + "max_abs": 6.83067633, + "mean_abs": 0.158701958, + "psnr_db": 29.3815409, + "ref_absmax": 9.25807858, + "rel_max": 0.737807125, + "scaled_max_abs": 0.737807125 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_12/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "fail", + "tap": "net.features.12", + "ungated_probes": { + "band_ratio": 152.258138, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999940914, + "finite": true, + "max_abs": 0.093953371, + "mean_abs": 0.00161658979, + "psnr_db": 66.7047641, + "ref_absmax": 6.17066336, + "rel_max": 0.0152258138, + "scaled_max_abs": 0.0152258138 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "uniform", + "index": 16 + } + }, + { + "band_ratio": 5603.31688, + "index": 14, + "metrics": { + "corr": 0.956928433, + "finite": true, + "max_abs": 2.90784335, + "mean_abs": 0.0464696288, + "psnr_db": 33.776479, + "ref_absmax": 5.18950367, + "rel_max": 0.560331688, + "scaled_max_abs": 0.560331688 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;;zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Seque" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 38.1456266, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999993235, + "finite": true, + "max_abs": 0.0075095892, + "mean_abs": 0.000464481254, + "psnr_db": 69.8942384, + "ref_absmax": 1.96866322, + "rel_max": 0.00381456266, + "scaled_max_abs": 0.00381456266 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 5138.60845, + "index": 15, + "metrics": { + "corr": 0.964977964, + "finite": true, + "max_abs": 9.26241994, + "mean_abs": 0.371536006, + "psnr_db": 32.184635, + "ref_absmax": 18.0251522, + "rel_max": 0.513860845, + "scaled_max_abs": 0.513860845 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.classifier", + "ungated_probes": { + "band_ratio": 37.7505734, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999992681, + "finite": true, + "max_abs": 0.0196342468, + "mean_abs": 0.00372406577, + "psnr_db": 64.1605839, + "ref_absmax": 5.20104599, + "rel_max": 0.00377505734, + "scaled_max_abs": 0.00377505734 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp32", + "id": "mobilenet_v3_small__input_hw_swap__litert_fp32", + "model": "mobilenet_v3_small", + "path": "litert", + "variant": "input_hw_swap" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/mobilenet_v3_small__input_hw_swap__onnx_fp16.json b/bench/verdicts_calibrated4/mobilenet_v3_small__input_hw_swap__onnx_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..6d63a2c166934d15fff7fe00fd745c8f2fed3f40 --- /dev/null +++ b/bench/verdicts_calibrated4/mobilenet_v3_small__input_hw_swap__onnx_fp16.json @@ -0,0 +1,1293 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "baseline": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "faithful_output_rel_max": 0.0310759602, + "output_band": 0.0621519203, + "source": { + "bundle": "bundles/mobilenet_v3_small__clean__onnx_fp16.json", + "case": "mobilenet_v3_small__clean__onnx_fp16", + "digests": { + "192": { + "converted": "0f5c1e94183c9903ece898f192769178a20e4556d20c0b1ef4fc23502e5893f5", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "8ce44e6b921ee910b6c36de85b86a9608df76e3c1728f56afa10f6f5dd60ae3c", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + } + } + }, + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "normalize", + "band_limit": 0.01, + "explained_by": "hw_transpose", + "nominal_band_ratio": 169.080588, + "results": [ + { + "band_ratio": 169.080588, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 119.778016, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 210.748392, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 0.0933896374, + "explains": true, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 311.914062, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "flag" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "/normalize/Div_output_0", + "basis": "interface hypothesis 'hw_transpose' explains the first over-band tap (normalize)", + "index": 0, + "neighbourhood": [ + { + "band_ratio": 111.131751, + "index": 0, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "fail", + "tap": "normalize" + }, + { + "band_ratio": 101.899772, + "index": 1, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.0/features.0.2/HardSwish_output_0" + }, + "status": "fail", + "tap": "net.features.0" + } + ], + "observed_first_over_band": { + "index": 0, + "tap": "normalize" + }, + "shape": 224, + "tap": "normalize" + }, + "fp16_floor": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "baseline": { + "bundle": "bundles/mobilenet_v3_small__clean__onnx_fp16.json", + "case": "mobilenet_v3_small__clean__onnx_fp16", + "digests": { + "192": { + "converted": "0f5c1e94183c9903ece898f192769178a20e4556d20c0b1ef4fc23502e5893f5", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "8ce44e6b921ee910b6c36de85b86a9608df76e3c1728f56afa10f6f5dd60ae3c", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + } + }, + "envelopes_gate": true, + "faithful_output_rel_max": 0.0310759602, + "faithful_tap_rel_max": { + "net.avgpool": 0.0352594163, + "net.classifier": 0.0310759602, + "net.features.0": 0.000908058909, + "net.features.1": 0.000745469506, + "net.features.10": 0.0449988479, + "net.features.11": 0.0678471375, + "net.features.12": 0.0582480643, + "net.features.2": 0.00192673754, + "net.features.3": 0.00290781924, + "net.features.4": 0.00476705887, + "net.features.5": 0.00533482606, + "net.features.6": 0.00813875363, + "net.features.7": 0.012498691, + "net.features.8": 0.0198082609, + "net.features.9": 0.0376845229, + "normalize": 0.000441313312 + }, + "floor": 0.01, + "k": 2.0, + "output_band": 0.0621519203, + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used", + "tap_envelopes": { + "net.avgpool": 0.0705188325, + "net.classifier": 0.0621519203, + "net.features.0": 0.01, + "net.features.1": 0.01, + "net.features.10": 0.0899976958, + "net.features.11": 0.135694275, + "net.features.12": 0.116496129, + "net.features.2": 0.01, + "net.features.3": 0.01, + "net.features.4": 0.01, + "net.features.5": 0.0106696521, + "net.features.6": 0.0162775073, + "net.features.7": 0.024997382, + "net.features.8": 0.0396165217, + "net.features.9": 0.0753690458, + "normalize": 0.01 + } + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "85e0b88657c03cc9f397844a822969df83763ce2fe4671ecd5ef05f5f3d5e930", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "63f0cef96c8f216a29c290fcb114abde3efd6142a0e7bc61526e01cbe3aa1b98", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D3", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.5625, + "band_limit": 0.0621519203, + "band_ratio": 4.25178961, + "metrics": { + "corr": 0.972330167, + "finite": true, + "max_abs": 6.44382668, + "mean_abs": 0.347364495, + "psnr_db": 34.9341851, + "ref_absmax": 24.3847065, + "rel_max": 0.264256889, + "scaled_max_abs": 0.264256889 + }, + "per_op_band_ratio": 26.4256889, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 0, + "n_judged": 16, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 116.187157, + "index": 0, + "metrics": { + "corr": 0.675686237, + "finite": true, + "max_abs": 13.3950891, + "mean_abs": 0.900044108, + "psnr_db": 19.0469554, + "ref_absmax": 11.5288897, + "rel_max": 1.16187157, + "scaled_max_abs": 1.16187157 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "per_op_band_ratio": 116.187157, + "status": "fail", + "tap": "normalize", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 101.890474, + "index": 1, + "metrics": { + "corr": 0.363054952, + "finite": true, + "max_abs": 193.625, + "mean_abs": 0.953681082, + "psnr_db": 32.6072618, + "ref_absmax": 190.032486, + "rel_max": 1.01890474, + "scaled_max_abs": 1.01890474 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.0/features.0.2/HardSwish_output_0" + }, + "per_op_band_ratio": 101.890474, + "status": "fail", + "tap": "net.features.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 105.57051, + "index": 2, + "metrics": { + "corr": 0.457484149, + "finite": true, + "max_abs": 47.9817009, + "mean_abs": 1.30989908, + "psnr_db": 29.9422299, + "ref_absmax": 45.4499092, + "rel_max": 1.0557051, + "scaled_max_abs": 1.0557051 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.1/block/block.2/block.2.0/Conv_output_0" + }, + "per_op_band_ratio": 105.57051, + "status": "fail", + "tap": "net.features.1", + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_limit": 0.01, + "band_ratio": 65.459236, + "index": 3, + "metrics": { + "corr": 0.786660221, + "finite": true, + "max_abs": 16.9517944, + "mean_abs": 0.789361565, + "psnr_db": 30.3852922, + "ref_absmax": 25.896719, + "rel_max": 0.65459236, + "scaled_max_abs": 0.65459236 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.2/block/block.2/block.2.0/Conv_output_0" + }, + "per_op_band_ratio": 65.459236, + "status": "fail", + "tap": "net.features.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 99.0082862, + "index": 4, + "metrics": { + "corr": 0.675919264, + "finite": true, + "max_abs": 25.4565043, + "mean_abs": 1.08275882, + "psnr_db": 29.1431039, + "ref_absmax": 25.7114887, + "rel_max": 0.990082862, + "scaled_max_abs": 0.990082862 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.3/Add_output_0" + }, + "per_op_band_ratio": 99.0082862, + "status": "fail", + "tap": "net.features.3", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 60.9791791, + "index": 5, + "metrics": { + "corr": 0.808674172, + "finite": true, + "max_abs": 10.4322934, + "mean_abs": 0.443676799, + "psnr_db": 32.0881499, + "ref_absmax": 17.1079597, + "rel_max": 0.609791791, + "scaled_max_abs": 0.609791791 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.4/block/block.3/block.3.0/Conv_output_0" + }, + "per_op_band_ratio": 60.9791791, + "status": "fail", + "tap": "net.features.4", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.0106696521, + "band_ratio": 74.2218126, + "index": 6, + "metrics": { + "corr": 0.675547284, + "finite": true, + "max_abs": 17.6745887, + "mean_abs": 0.591670084, + "psnr_db": 31.1531908, + "ref_absmax": 22.3186283, + "rel_max": 0.791920921, + "scaled_max_abs": 0.791920921 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.5/Add_output_0" + }, + "per_op_band_ratio": 79.1920921, + "status": "fail", + "tap": "net.features.5", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.0162775073, + "band_ratio": 39.6329894, + "index": 7, + "metrics": { + "corr": 0.863514021, + "finite": true, + "max_abs": 40.4946232, + "mean_abs": 0.968672536, + "psnr_db": 35.7947947, + "ref_absmax": 62.7700729, + "rel_max": 0.645126273, + "scaled_max_abs": 0.645126273 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.6/Add_output_0" + }, + "per_op_band_ratio": 64.5126273, + "status": "fail", + "tap": "net.features.6", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.024997382, + "band_ratio": 24.7427957, + "index": 8, + "metrics": { + "corr": 0.719359704, + "finite": true, + "max_abs": 12.7933545, + "mean_abs": 0.534156374, + "psnr_db": 32.5636897, + "ref_absmax": 20.6843147, + "rel_max": 0.618505118, + "scaled_max_abs": 0.618505118 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.7/block/block.3/block.3.0/Conv_output_0" + }, + "per_op_band_ratio": 61.8505118, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.0396165217, + "band_ratio": 16.3625871, + "index": 9, + "metrics": { + "corr": 0.671565246, + "finite": true, + "max_abs": 12.6106221, + "mean_abs": 0.654689416, + "psnr_db": 30.8437231, + "ref_absmax": 19.453968, + "rel_max": 0.648228787, + "scaled_max_abs": 0.648228787 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.8/Add_output_0" + }, + "per_op_band_ratio": 64.8228787, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.0753690458, + "band_ratio": 10.9969853, + "index": 10, + "metrics": { + "corr": 0.806760668, + "finite": true, + "max_abs": 2.89650059, + "mean_abs": 0.183407761, + "psnr_db": 27.4964162, + "ref_absmax": 3.49467635, + "rel_max": 0.828832285, + "scaled_max_abs": 0.828832285 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.9/block/block.3/block.3.0/Conv_output_0" + }, + "per_op_band_ratio": 82.8832285, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.0899976958, + "band_ratio": 8.8071792, + "index": 11, + "metrics": { + "corr": 0.819692277, + "finite": true, + "max_abs": 2.96402359, + "mean_abs": 0.216393586, + "psnr_db": 26.9164965, + "ref_absmax": 3.73949909, + "rel_max": 0.792625835, + "scaled_max_abs": 0.792625835 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.10/Add_output_0" + }, + "per_op_band_ratio": 79.2625835, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.135694275, + "band_ratio": 5.64437086, + "index": 12, + "metrics": { + "corr": 0.836477004, + "finite": true, + "max_abs": 3.47326231, + "mean_abs": 0.243074575, + "psnr_db": 27.7324117, + "ref_absmax": 4.53482485, + "rel_max": 0.765908812, + "scaled_max_abs": 0.765908812 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.11/Add_output_0" + }, + "per_op_band_ratio": 76.5908812, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.116496129, + "band_ratio": 6.98856555, + "index": 13, + "metrics": { + "corr": 0.793535353, + "finite": true, + "max_abs": 8.22262859, + "mean_abs": 0.14534595, + "psnr_db": 30.4762448, + "ref_absmax": 10.099762, + "rel_max": 0.814140831, + "scaled_max_abs": 0.814140831 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.12/features.12.2/HardSwish_output_0" + }, + "per_op_band_ratio": 81.4140831, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.0705188325, + "band_ratio": 3.55508802, + "index": 14, + "metrics": { + "corr": 0.967539965, + "finite": true, + "max_abs": 1.31515288, + "mean_abs": 0.045934398, + "psnr_db": 35.1793523, + "ref_absmax": 5.24590921, + "rel_max": 0.250700656, + "scaled_max_abs": 0.250700656 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "per_op_band_ratio": 25.0700656, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.0621519203, + "band_ratio": 4.25178961, + "index": 15, + "metrics": { + "corr": 0.972330167, + "finite": true, + "max_abs": 6.44382668, + "mean_abs": 0.347364495, + "psnr_db": 34.9341851, + "ref_absmax": 24.3847065, + "rel_max": 0.264256889, + "scaled_max_abs": 0.264256889 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "per_op_band_ratio": 26.4256889, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.6875, + "band_limit": 0.0621519203, + "band_ratio": 8.63595079, + "metrics": { + "corr": 0.966261522, + "finite": true, + "max_abs": 9.67483687, + "mean_abs": 0.334341857, + "psnr_db": 32.6885775, + "ref_absmax": 18.0251522, + "rel_max": 0.536740925, + "scaled_max_abs": 0.536740925 + }, + "per_op_band_ratio": 53.6740925, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 0, + "n_judged": 16, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 111.131751, + "index": 0, + "metrics": { + "corr": 0.709012436, + "finite": true, + "max_abs": 12.8122569, + "mean_abs": 0.852976692, + "psnr_db": 19.6230811, + "ref_absmax": 11.5288897, + "rel_max": 1.11131751, + "scaled_max_abs": 1.11131751 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "per_op_band_ratio": 111.131751, + "status": "fail", + "tap": "normalize", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 101.899772, + "index": 1, + "metrics": { + "corr": 0.372294259, + "finite": true, + "max_abs": 172.25, + "mean_abs": 0.898463163, + "psnr_db": 32.1266287, + "ref_absmax": 169.038651, + "rel_max": 1.01899772, + "scaled_max_abs": 1.01899772 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.0/features.0.2/HardSwish_output_0" + }, + "per_op_band_ratio": 101.899772, + "status": "fail", + "tap": "net.features.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 112.993375, + "index": 2, + "metrics": { + "corr": 0.465547944, + "finite": true, + "max_abs": 50.4449272, + "mean_abs": 1.22304354, + "psnr_db": 30.0011827, + "ref_absmax": 44.644146, + "rel_max": 1.12993375, + "scaled_max_abs": 1.12993375 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.1/block/block.2/block.2.0/Conv_output_0" + }, + "per_op_band_ratio": 112.993375, + "status": "fail", + "tap": "net.features.1", + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_limit": 0.01, + "band_ratio": 68.7697251, + "index": 3, + "metrics": { + "corr": 0.780757354, + "finite": true, + "max_abs": 21.0536413, + "mean_abs": 0.74603061, + "psnr_db": 31.9614614, + "ref_absmax": 30.6146946, + "rel_max": 0.687697251, + "scaled_max_abs": 0.687697251 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.2/block/block.2/block.2.0/Conv_output_0" + }, + "per_op_band_ratio": 68.7697251, + "status": "fail", + "tap": "net.features.2", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 94.6866623, + "index": 4, + "metrics": { + "corr": 0.691532615, + "finite": true, + "max_abs": 24.7763481, + "mean_abs": 1.03984793, + "psnr_db": 29.4480599, + "ref_absmax": 26.1666718, + "rel_max": 0.946866623, + "scaled_max_abs": 0.946866623 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.3/Add_output_0" + }, + "per_op_band_ratio": 94.6866623, + "status": "fail", + "tap": "net.features.3", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 61.7847447, + "index": 5, + "metrics": { + "corr": 0.815873025, + "finite": true, + "max_abs": 12.0486969, + "mean_abs": 0.437623401, + "psnr_db": 33.1834068, + "ref_absmax": 19.5010872, + "rel_max": 0.617847447, + "scaled_max_abs": 0.617847447 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.4/block/block.3/block.3.0/Conv_output_0" + }, + "per_op_band_ratio": 61.7847447, + "status": "fail", + "tap": "net.features.4", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.0106696521, + "band_ratio": 84.0030606, + "index": 6, + "metrics": { + "corr": 0.695541693, + "finite": true, + "max_abs": 26.9298205, + "mean_abs": 0.586359649, + "psnr_db": 33.250061, + "ref_absmax": 30.0460987, + "rel_max": 0.896283434, + "scaled_max_abs": 0.896283434 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.5/Add_output_0" + }, + "per_op_band_ratio": 89.6283434, + "status": "fail", + "tap": "net.features.5", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.0162775073, + "band_ratio": 46.4985508, + "index": 7, + "metrics": { + "corr": 0.85056292, + "finite": true, + "max_abs": 51.2258224, + "mean_abs": 0.911780437, + "psnr_db": 37.3025663, + "ref_absmax": 67.6801987, + "rel_max": 0.756880498, + "scaled_max_abs": 0.756880498 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.6/Add_output_0" + }, + "per_op_band_ratio": 75.6880498, + "status": "fail", + "tap": "net.features.6", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.024997382, + "band_ratio": 30.9789967, + "index": 8, + "metrics": { + "corr": 0.666146045, + "finite": true, + "max_abs": 13.3855019, + "mean_abs": 0.527543749, + "psnr_db": 31.5280563, + "ref_absmax": 17.2851353, + "rel_max": 0.774393816, + "scaled_max_abs": 0.774393816 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.7/block/block.3/block.3.0/Conv_output_0" + }, + "per_op_band_ratio": 77.4393816, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.0396165217, + "band_ratio": 21.5678903, + "index": 9, + "metrics": { + "corr": 0.61962519, + "finite": true, + "max_abs": 14.288743, + "mean_abs": 0.642043924, + "psnr_db": 29.9388917, + "ref_absmax": 16.7228394, + "rel_max": 0.854444793, + "scaled_max_abs": 0.854444793 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.8/Add_output_0" + }, + "per_op_band_ratio": 85.4444793, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.0753690458, + "band_ratio": 13.468459, + "index": 10, + "metrics": { + "corr": 0.802587202, + "finite": true, + "max_abs": 2.74865618, + "mean_abs": 0.178809055, + "psnr_db": 25.5093157, + "ref_absmax": 2.7077558, + "rel_max": 1.0151049, + "scaled_max_abs": 1.0151049 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.9/block/block.3/block.3.0/Conv_output_0" + }, + "per_op_band_ratio": 101.51049, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.0899976958, + "band_ratio": 10.7374733, + "index": 11, + "metrics": { + "corr": 0.830987685, + "finite": true, + "max_abs": 3.17480898, + "mean_abs": 0.210788693, + "psnr_db": 25.5820392, + "ref_absmax": 3.28536868, + "rel_max": 0.966347855, + "scaled_max_abs": 0.966347855 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.10/Add_output_0" + }, + "per_op_band_ratio": 96.6347855, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.135694275, + "band_ratio": 7.79895917, + "index": 12, + "metrics": { + "corr": 0.834587814, + "finite": true, + "max_abs": 4.200912, + "mean_abs": 0.241603986, + "psnr_db": 26.0303976, + "ref_absmax": 3.9695878, + "rel_max": 1.05827411, + "scaled_max_abs": 1.05827411 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.11/Add_output_0" + }, + "per_op_band_ratio": 105.827411, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.116496129, + "band_ratio": 6.34176239, + "index": 13, + "metrics": { + "corr": 0.785169584, + "finite": true, + "max_abs": 6.83978297, + "mean_abs": 0.140814639, + "psnr_db": 29.9424678, + "ref_absmax": 9.25807858, + "rel_max": 0.738790767, + "scaled_max_abs": 0.738790767 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.12/features.12.2/HardSwish_output_0" + }, + "per_op_band_ratio": 73.8790767, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "uniform", + "index": 16 + } + }, + { + "band_limit": 0.0705188325, + "band_ratio": 7.9540085, + "index": 14, + "metrics": { + "corr": 0.957770657, + "finite": true, + "max_abs": 2.91083097, + "mean_abs": 0.0421924141, + "psnr_db": 34.2305118, + "ref_absmax": 5.18950367, + "rel_max": 0.560907393, + "scaled_max_abs": 0.560907393 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "per_op_band_ratio": 56.0907393, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.0621519203, + "band_ratio": 8.63595079, + "index": 15, + "metrics": { + "corr": 0.966261522, + "finite": true, + "max_abs": 9.67483687, + "mean_abs": 0.334341857, + "psnr_db": 32.6885775, + "ref_absmax": 18.0251522, + "rel_max": 0.536740925, + "scaled_max_abs": 0.536740925 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "per_op_band_ratio": 53.6740925, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp16", + "id": "mobilenet_v3_small__input_hw_swap__onnx_fp16", + "model": "mobilenet_v3_small", + "path": "onnx", + "variant": "input_hw_swap" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/mobilenet_v3_small__input_hw_swap__onnx_fp32.json b/bench/verdicts_calibrated4/mobilenet_v3_small__input_hw_swap__onnx_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..a599da8d4f58da0fee569f4df86f1ee50dc8f9ec --- /dev/null +++ b/bench/verdicts_calibrated4/mobilenet_v3_small__input_hw_swap__onnx_fp32.json @@ -0,0 +1,1696 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "normalize", + "explained_by": "hw_transpose", + "nominal_band_ratio": 16910.1721, + "results": [ + { + "band_ratio": 16910.1721, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 11978.5595, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 21078.7917, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 0.0, + "explains": true, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 31179.0395, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "flag" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "/normalize/Div_output_0", + "basis": "interface hypothesis 'hw_transpose' explains the first over-band tap (normalize)", + "index": 0, + "neighbourhood": [ + { + "band_ratio": 11112.3355, + "index": 0, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "fail", + "tap": "normalize" + }, + { + "band_ratio": 10190.1018, + "index": 1, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.0/features.0.2/HardSwish_output_0" + }, + "status": "fail", + "tap": "net.features.0" + } + ], + "observed_first_over_band": { + "index": 0, + "tap": "normalize" + }, + "shape": 224, + "tap": "normalize" + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "6a05ea1107a03fb5707300201aa773d4b3c474159a56ac98e0f7cd8ac2c53b95", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "a6735af5a3eebfd401ed50d018e7d6b496dacfd7e9785f229e7b48195057b975", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "fp32 per-tap band on near-zero probes", + "reason": "C3-2: per-tap fp32 checks gate without the near_zero probes; they are measured and reported per tap ('ungated_probes'); the output gates on all probes. C4-1: when the output has failed and no gated tap fails, they localise the first divergence (earliest tap over band on all probes)" + }, + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D3", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.5625, + "band_ratio": 2698.72059, + "metrics": { + "corr": 0.972569412, + "finite": true, + "max_abs": 6.58075094, + "mean_abs": 0.33105241, + "psnr_db": 34.970505, + "ref_absmax": 24.3847065, + "rel_max": 0.269872059, + "scaled_max_abs": 0.269872059 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 0, + "n_judged": 16, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 11616.7792, + "index": 0, + "metrics": { + "corr": 0.600839339, + "finite": true, + "max_abs": 13.3928566, + "mean_abs": 1.02808958, + "psnr_db": 18.4671496, + "ref_absmax": 11.5288897, + "rel_max": 1.16167792, + "scaled_max_abs": 1.16167792 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "fail", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 96.5222518, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999598821, + "finite": true, + "max_abs": 0.0204424858, + "mean_abs": 0.0029078448, + "psnr_db": 38.9218199, + "ref_absmax": 2.11790395, + "rel_max": 0.00965222518, + "scaled_max_abs": 0.00965222518 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 10189.7307, + "index": 1, + "metrics": { + "corr": 0.352802427, + "finite": true, + "max_abs": 193.637985, + "mean_abs": 1.08927037, + "psnr_db": 32.026662, + "ref_absmax": 190.032486, + "rel_max": 1.01897307, + "scaled_max_abs": 1.01897307 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.0/features.0.2/HardSwish_output_0" + }, + "status": "fail", + "tap": "net.features.0", + "ungated_probes": { + "band_ratio": 38.8772838, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999981956, + "finite": true, + "max_abs": 0.122965761, + "mean_abs": 0.00359425579, + "psnr_db": 71.8434473, + "ref_absmax": 31.6292057, + "rel_max": 0.00388772838, + "scaled_max_abs": 0.00388772838 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 10556.9614, + "index": 2, + "metrics": { + "corr": 0.45097573, + "finite": true, + "max_abs": 47.9812937, + "mean_abs": 1.49589953, + "psnr_db": 29.3617624, + "ref_absmax": 45.4499092, + "rel_max": 1.05569614, + "scaled_max_abs": 1.05569614 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.1/block/block.2/block.2.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.1", + "ungated_probes": { + "band_ratio": 75.6676265, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999925384, + "finite": true, + "max_abs": 0.0554771423, + "mean_abs": 0.00585159002, + "psnr_db": 64.2770855, + "ref_absmax": 7.33168793, + "rel_max": 0.00756676265, + "scaled_max_abs": 0.00756676265 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 6543.96961, + "index": 3, + "metrics": { + "corr": 0.778893233, + "finite": true, + "max_abs": 16.9467342, + "mean_abs": 0.900340827, + "psnr_db": 29.8049654, + "ref_absmax": 25.896719, + "rel_max": 0.654396961, + "scaled_max_abs": 0.654396961 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.2/block/block.2/block.2.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.2", + "ungated_probes": { + "band_ratio": 117.377944, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999983431, + "finite": true, + "max_abs": 0.0505621433, + "mean_abs": 0.00444634082, + "psnr_db": 61.2175583, + "ref_absmax": 4.30763578, + "rel_max": 0.0117377944, + "scaled_max_abs": 0.0117377944 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9893.66405, + "index": 4, + "metrics": { + "corr": 0.661975167, + "finite": true, + "max_abs": 25.4380832, + "mean_abs": 1.23244591, + "psnr_db": 28.562938, + "ref_absmax": 25.7114887, + "rel_max": 0.989366405, + "scaled_max_abs": 0.989366405 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.3/Add_output_0" + }, + "status": "fail", + "tap": "net.features.3", + "ungated_probes": { + "band_ratio": 387.92251, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999647244, + "finite": true, + "max_abs": 0.261155367, + "mean_abs": 0.0220108878, + "psnr_db": 50.6824463, + "ref_absmax": 6.73215294, + "rel_max": 0.038792251, + "scaled_max_abs": 0.038792251 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6093.94946, + "index": 5, + "metrics": { + "corr": 0.781551049, + "finite": true, + "max_abs": 10.4255042, + "mean_abs": 0.502562347, + "psnr_db": 31.5092997, + "ref_absmax": 17.1079597, + "rel_max": 0.609394946, + "scaled_max_abs": 0.609394946 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.4/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.4", + "ungated_probes": { + "band_ratio": 390.754245, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.99990941, + "finite": true, + "max_abs": 0.114492655, + "mean_abs": 0.0119834258, + "psnr_db": 51.0230345, + "ref_absmax": 2.93004251, + "rel_max": 0.0390754245, + "scaled_max_abs": 0.0390754245 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7907.7533, + "index": 6, + "metrics": { + "corr": 0.651831555, + "finite": true, + "max_abs": 17.6490207, + "mean_abs": 0.668865051, + "psnr_db": 30.5758714, + "ref_absmax": 22.3186283, + "rel_max": 0.79077533, + "scaled_max_abs": 0.79077533 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.5/Add_output_0" + }, + "status": "fail", + "tap": "net.features.5", + "ungated_probes": { + "band_ratio": 590.771351, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999475519, + "finite": true, + "max_abs": 0.170246005, + "mean_abs": 0.0213565127, + "psnr_db": 45.331408, + "ref_absmax": 2.88175797, + "rel_max": 0.0590771351, + "scaled_max_abs": 0.0590771351 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6447.44621, + "index": 7, + "metrics": { + "corr": 0.861335744, + "finite": true, + "max_abs": 40.4706669, + "mean_abs": 1.08735208, + "psnr_db": 35.2201576, + "ref_absmax": 62.7700729, + "rel_max": 0.644744621, + "scaled_max_abs": 0.644744621 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.6/Add_output_0" + }, + "status": "fail", + "tap": "net.features.6", + "ungated_probes": { + "band_ratio": 498.722862, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999641742, + "finite": true, + "max_abs": 0.272790432, + "mean_abs": 0.0269004272, + "psnr_db": 49.3806167, + "ref_absmax": 5.46977997, + "rel_max": 0.0498722862, + "scaled_max_abs": 0.0498722862 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6184.16271, + "index": 8, + "metrics": { + "corr": 0.707702846, + "finite": true, + "max_abs": 12.7915168, + "mean_abs": 0.604054259, + "psnr_db": 31.9848011, + "ref_absmax": 20.6843147, + "rel_max": 0.618416271, + "scaled_max_abs": 0.618416271 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.7/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.7", + "ungated_probes": { + "band_ratio": 499.684849, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999593786, + "finite": true, + "max_abs": 0.144763708, + "mean_abs": 0.013748298, + "psnr_db": 48.8033784, + "ref_absmax": 2.89710021, + "rel_max": 0.0499684849, + "scaled_max_abs": 0.0499684849 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6488.33229, + "index": 9, + "metrics": { + "corr": 0.656642536, + "finite": true, + "max_abs": 12.6223809, + "mean_abs": 0.7389542, + "psnr_db": 30.2661864, + "ref_absmax": 19.453968, + "rel_max": 0.648833229, + "scaled_max_abs": 0.648833229 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.8/Add_output_0" + }, + "status": "fail", + "tap": "net.features.8", + "ungated_probes": { + "band_ratio": 329.855923, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999533915, + "finite": true, + "max_abs": 0.139266968, + "mean_abs": 0.0171453156, + "psnr_db": 50.6174596, + "ref_absmax": 4.22205448, + "rel_max": 0.0329855923, + "scaled_max_abs": 0.0329855923 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 8297.66877, + "index": 10, + "metrics": { + "corr": 0.787538421, + "finite": true, + "max_abs": 2.89976668, + "mean_abs": 0.205261912, + "psnr_db": 26.9212824, + "ref_absmax": 3.49467635, + "rel_max": 0.829766877, + "scaled_max_abs": 0.829766877 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.9/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.9", + "ungated_probes": { + "band_ratio": 156.19732, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999949921, + "finite": true, + "max_abs": 0.0184128284, + "mean_abs": 0.00290323319, + "psnr_db": 54.7965675, + "ref_absmax": 1.17881846, + "rel_max": 0.015619732, + "scaled_max_abs": 0.015619732 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7958.85873, + "index": 11, + "metrics": { + "corr": 0.802099839, + "finite": true, + "max_abs": 2.9762145, + "mean_abs": 0.242288303, + "psnr_db": 26.3384813, + "ref_absmax": 3.73949909, + "rel_max": 0.795885873, + "scaled_max_abs": 0.795885873 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.10/Add_output_0" + }, + "status": "fail", + "tap": "net.features.10", + "ungated_probes": { + "band_ratio": 132.855286, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999960226, + "finite": true, + "max_abs": 0.0216342509, + "mean_abs": 0.00315158952, + "psnr_db": 57.1818791, + "ref_absmax": 1.62840724, + "rel_max": 0.0132855286, + "scaled_max_abs": 0.0132855286 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7678.00225, + "index": 12, + "metrics": { + "corr": 0.823345545, + "finite": true, + "max_abs": 3.48183954, + "mean_abs": 0.271817967, + "psnr_db": 27.1555772, + "ref_absmax": 4.53482485, + "rel_max": 0.767800225, + "scaled_max_abs": 0.767800225 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.11/Add_output_0" + }, + "status": "fail", + "tap": "net.features.11", + "ungated_probes": { + "band_ratio": 144.470182, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999959061, + "finite": true, + "max_abs": 0.0243777037, + "mean_abs": 0.0034354696, + "psnr_db": 57.4196633, + "ref_absmax": 1.68738651, + "rel_max": 0.0144470182, + "scaled_max_abs": 0.0144470182 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 8142.70571, + "index": 13, + "metrics": { + "corr": 0.782759868, + "finite": true, + "max_abs": 8.22393894, + "mean_abs": 0.162789239, + "psnr_db": 29.9024196, + "ref_absmax": 10.099762, + "rel_max": 0.814270571, + "scaled_max_abs": 0.814270571 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.12/features.12.2/HardSwish_output_0" + }, + "status": "fail", + "tap": "net.features.12", + "ungated_probes": { + "band_ratio": 98.8499523, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999943925, + "finite": true, + "max_abs": 0.0557825565, + "mean_abs": 0.00161393666, + "psnr_db": 66.2018579, + "ref_absmax": 5.64315462, + "rel_max": 0.00988499523, + "scaled_max_abs": 0.00988499523 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 2537.97811, + "index": 14, + "metrics": { + "corr": 0.966016639, + "finite": true, + "max_abs": 1.33140028, + "mean_abs": 0.0499621959, + "psnr_db": 34.6292871, + "ref_absmax": 5.24590921, + "rel_max": 0.253797811, + "scaled_max_abs": 0.253797811 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 49.6947954, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999992945, + "finite": true, + "max_abs": 0.00928506255, + "mean_abs": 0.000480859342, + "psnr_db": 68.9628289, + "ref_absmax": 1.8684175, + "rel_max": 0.00496947954, + "scaled_max_abs": 0.00496947954 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 2698.72059, + "index": 15, + "metrics": { + "corr": 0.971060845, + "finite": true, + "max_abs": 6.58075094, + "mean_abs": 0.377848829, + "psnr_db": 34.3906174, + "ref_absmax": 24.3847065, + "rel_max": 0.269872059, + "scaled_max_abs": 0.269872059 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier", + "ungated_probes": { + "band_ratio": 39.3867262, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999992982, + "finite": true, + "max_abs": 0.0210886002, + "mean_abs": 0.00347747597, + "psnr_db": 64.4203767, + "ref_absmax": 5.35424042, + "rel_max": 0.00393867262, + "scaled_max_abs": 0.00393867262 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.6875, + "band_ratio": 5138.47327, + "metrics": { + "corr": 0.966820031, + "finite": true, + "max_abs": 9.26217628, + "mean_abs": 0.325557592, + "psnr_db": 32.764582, + "ref_absmax": 18.0251522, + "rel_max": 0.513847327, + "scaled_max_abs": 0.513847327 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 0, + "n_judged": 16, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 11112.3355, + "index": 0, + "metrics": { + "corr": 0.634923999, + "finite": true, + "max_abs": 12.811289, + "mean_abs": 0.974299059, + "psnr_db": 19.0432516, + "ref_absmax": 11.5288897, + "rel_max": 1.11123355, + "scaled_max_abs": 1.11123355 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "fail", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 94.3709838, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999598458, + "finite": true, + "max_abs": 0.0199868679, + "mean_abs": 0.00290967938, + "psnr_db": 38.9617593, + "ref_absmax": 2.11790395, + "rel_max": 0.00943709838, + "scaled_max_abs": 0.00943709838 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10190.1018, + "index": 1, + "metrics": { + "corr": 0.361127214, + "finite": true, + "max_abs": 172.252106, + "mean_abs": 1.02617197, + "psnr_db": 31.5460512, + "ref_absmax": 169.038651, + "rel_max": 1.01901018, + "scaled_max_abs": 1.01901018 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.0/features.0.2/HardSwish_output_0" + }, + "status": "fail", + "tap": "net.features.0", + "ungated_probes": { + "band_ratio": 53.3987925, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999981607, + "finite": true, + "max_abs": 0.169086456, + "mean_abs": 0.00361323584, + "psnr_db": 71.7760682, + "ref_absmax": 31.6648464, + "rel_max": 0.00533987925, + "scaled_max_abs": 0.00533987925 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 11299.3128, + "index": 2, + "metrics": { + "corr": 0.458569036, + "finite": true, + "max_abs": 50.4448171, + "mean_abs": 1.39662335, + "psnr_db": 29.4207106, + "ref_absmax": 44.644146, + "rel_max": 1.12993128, + "scaled_max_abs": 1.12993128 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.1/block/block.2/block.2.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.1", + "ungated_probes": { + "band_ratio": 72.4338985, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999921568, + "finite": true, + "max_abs": 0.0530738831, + "mean_abs": 0.00583145312, + "psnr_db": 64.3039062, + "ref_absmax": 7.32721615, + "rel_max": 0.00724338985, + "scaled_max_abs": 0.00724338985 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 6867.40047, + "index": 3, + "metrics": { + "corr": 0.771826155, + "finite": true, + "max_abs": 21.0243368, + "mean_abs": 0.850780522, + "psnr_db": 31.381215, + "ref_absmax": 30.6146946, + "rel_max": 0.686740047, + "scaled_max_abs": 0.686740047 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.2/block/block.2/block.2.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.2", + "ungated_probes": { + "band_ratio": 117.145387, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999983165, + "finite": true, + "max_abs": 0.0504922867, + "mean_abs": 0.00446001812, + "psnr_db": 61.2041925, + "ref_absmax": 4.31022406, + "rel_max": 0.0117145387, + "scaled_max_abs": 0.0117145387 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9467.07262, + "index": 4, + "metrics": { + "corr": 0.677882193, + "finite": true, + "max_abs": 24.7721782, + "mean_abs": 1.18356807, + "psnr_db": 28.8679375, + "ref_absmax": 26.1666718, + "rel_max": 0.946707262, + "scaled_max_abs": 0.946707262 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.3/Add_output_0" + }, + "status": "fail", + "tap": "net.features.3", + "ungated_probes": { + "band_ratio": 412.755908, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999643861, + "finite": true, + "max_abs": 0.278002977, + "mean_abs": 0.0219840659, + "psnr_db": 50.6676118, + "ref_absmax": 6.73528767, + "rel_max": 0.0412755908, + "scaled_max_abs": 0.0412755908 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6173.36502, + "index": 5, + "metrics": { + "corr": 0.790133082, + "finite": true, + "max_abs": 12.0387329, + "mean_abs": 0.49564676, + "psnr_db": 32.6048639, + "ref_absmax": 19.5010872, + "rel_max": 0.617336502, + "scaled_max_abs": 0.617336502 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.4/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.4", + "ungated_probes": { + "band_ratio": 397.453842, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999913012, + "finite": true, + "max_abs": 0.117769688, + "mean_abs": 0.0118499524, + "psnr_db": 51.2698426, + "ref_absmax": 2.96310353, + "rel_max": 0.0397453842, + "scaled_max_abs": 0.0397453842 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 8961.35016, + "index": 6, + "metrics": { + "corr": 0.675452118, + "finite": true, + "max_abs": 26.9253612, + "mean_abs": 0.66274232, + "psnr_db": 32.6718415, + "ref_absmax": 30.0460987, + "rel_max": 0.896135016, + "scaled_max_abs": 0.896135016 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.5/Add_output_0" + }, + "status": "fail", + "tap": "net.features.5", + "ungated_probes": { + "band_ratio": 758.298726, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999492846, + "finite": true, + "max_abs": 0.188592255, + "mean_abs": 0.0208456864, + "psnr_db": 44.871582, + "ref_absmax": 2.48704433, + "rel_max": 0.0758298726, + "scaled_max_abs": 0.0758298726 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7564.11491, + "index": 7, + "metrics": { + "corr": 0.848045089, + "finite": true, + "max_abs": 51.19408, + "mean_abs": 1.03109764, + "psnr_db": 36.7257836, + "ref_absmax": 67.6801987, + "rel_max": 0.756411491, + "scaled_max_abs": 0.756411491 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.6/Add_output_0" + }, + "status": "fail", + "tap": "net.features.6", + "ungated_probes": { + "band_ratio": 469.599183, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.99964754, + "finite": true, + "max_abs": 0.259356976, + "mean_abs": 0.0261404764, + "psnr_db": 49.5948609, + "ref_absmax": 5.5229435, + "rel_max": 0.0469599183, + "scaled_max_abs": 0.0469599183 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7734.77639, + "index": 8, + "metrics": { + "corr": 0.649566719, + "finite": true, + "max_abs": 13.3696656, + "mean_abs": 0.597655644, + "psnr_db": 30.953337, + "ref_absmax": 17.2851353, + "rel_max": 0.773477639, + "scaled_max_abs": 0.773477639 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.7/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.7", + "ungated_probes": { + "band_ratio": 442.5682, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999592795, + "finite": true, + "max_abs": 0.131905109, + "mean_abs": 0.0135283067, + "psnr_db": 49.5374215, + "ref_absmax": 2.98044705, + "rel_max": 0.04425682, + "scaled_max_abs": 0.04425682 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 8538.79815, + "index": 9, + "metrics": { + "corr": 0.599306535, + "finite": true, + "max_abs": 14.279295, + "mean_abs": 0.727079703, + "psnr_db": 29.3639371, + "ref_absmax": 16.7228394, + "rel_max": 0.853879815, + "scaled_max_abs": 0.853879815 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.8/Add_output_0" + }, + "status": "fail", + "tap": "net.features.8", + "ungated_probes": { + "band_ratio": 258.627311, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999530815, + "finite": true, + "max_abs": 0.121229887, + "mean_abs": 0.0169844241, + "psnr_db": 51.2434327, + "ref_absmax": 4.68743563, + "rel_max": 0.0258627311, + "scaled_max_abs": 0.0258627311 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10099.8425, + "index": 10, + "metrics": { + "corr": 0.781214578, + "finite": true, + "max_abs": 2.73479071, + "mean_abs": 0.201514923, + "psnr_db": 24.9370636, + "ref_absmax": 2.7077558, + "rel_max": 1.00998425, + "scaled_max_abs": 1.00998425 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.9/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.9", + "ungated_probes": { + "band_ratio": 199.312344, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999949614, + "finite": true, + "max_abs": 0.0242350996, + "mean_abs": 0.00289739911, + "psnr_db": 55.0572308, + "ref_absmax": 1.21593571, + "rel_max": 0.0199312344, + "scaled_max_abs": 0.0199312344 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9466.99725, + "index": 11, + "metrics": { + "corr": 0.814542071, + "finite": true, + "max_abs": 3.11025763, + "mean_abs": 0.237107042, + "psnr_db": 25.0107093, + "ref_absmax": 3.28536868, + "rel_max": 0.946699725, + "scaled_max_abs": 0.946699725 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.10/Add_output_0" + }, + "status": "fail", + "tap": "net.features.10", + "ungated_probes": { + "band_ratio": 159.893404, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999960727, + "finite": true, + "max_abs": 0.0278225541, + "mean_abs": 0.00316458156, + "psnr_db": 57.4842862, + "ref_absmax": 1.74006891, + "rel_max": 0.0159893404, + "scaled_max_abs": 0.0159893404 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10371.1319, + "index": 12, + "metrics": { + "corr": 0.821349022, + "finite": true, + "max_abs": 4.11691189, + "mean_abs": 0.271635569, + "psnr_db": 25.4703497, + "ref_absmax": 3.9695878, + "rel_max": 1.03711319, + "scaled_max_abs": 1.03711319 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.11/Add_output_0" + }, + "status": "fail", + "tap": "net.features.11", + "ungated_probes": { + "band_ratio": 170.131745, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.99995954, + "finite": true, + "max_abs": 0.0309822559, + "mean_abs": 0.0034633649, + "psnr_db": 57.7496176, + "ref_absmax": 1.82107437, + "rel_max": 0.0170131745, + "scaled_max_abs": 0.0170131745 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7378.08721, + "index": 13, + "metrics": { + "corr": 0.773985488, + "finite": true, + "max_abs": 6.83069111, + "mean_abs": 0.158701646, + "psnr_db": 29.3815596, + "ref_absmax": 9.25807858, + "rel_max": 0.737808721, + "scaled_max_abs": 0.737808721 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.12/features.12.2/HardSwish_output_0" + }, + "status": "fail", + "tap": "net.features.12", + "ungated_probes": { + "band_ratio": 152.197863, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999940913, + "finite": true, + "max_abs": 0.0939161777, + "mean_abs": 0.00161658239, + "psnr_db": 66.7047258, + "ref_absmax": 6.17066336, + "rel_max": 0.0152197863, + "scaled_max_abs": 0.0152197863 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "uniform", + "index": 16 + } + }, + { + "band_ratio": 5603.30057, + "index": 14, + "metrics": { + "corr": 0.95692925, + "finite": true, + "max_abs": 2.90783489, + "mean_abs": 0.0464693986, + "psnr_db": 33.7765623, + "ref_absmax": 5.18950367, + "rel_max": 0.560330057, + "scaled_max_abs": 0.560330057 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 38.0862843, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999993237, + "finite": true, + "max_abs": 0.00749790668, + "mean_abs": 0.000464380161, + "psnr_db": 69.8961632, + "ref_absmax": 1.96866322, + "rel_max": 0.00380862843, + "scaled_max_abs": 0.00380862843 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 5138.47327, + "index": 15, + "metrics": { + "corr": 0.964978388, + "finite": true, + "max_abs": 9.26217628, + "mean_abs": 0.371533906, + "psnr_db": 32.1846954, + "ref_absmax": 18.0251522, + "rel_max": 0.513847327, + "scaled_max_abs": 0.513847327 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier", + "ungated_probes": { + "band_ratio": 37.7453017, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999992682, + "finite": true, + "max_abs": 0.019631505, + "mean_abs": 0.00372340072, + "psnr_db": 64.1615983, + "ref_absmax": 5.20104599, + "rel_max": 0.00377453017, + "scaled_max_abs": 0.00377453017 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp32", + "id": "mobilenet_v3_small__input_hw_swap__onnx_fp32", + "model": "mobilenet_v3_small", + "path": "onnx", + "variant": "input_hw_swap" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/mobilenet_v3_small__int8_clean__onnx_int8.json b/bench/verdicts_calibrated4/mobilenet_v3_small__int8_clean__onnx_int8.json new file mode 100644 index 0000000000000000000000000000000000000000..533994749e3c24643425e134d5e0a7daa0968cd3 --- /dev/null +++ b/bench/verdicts_calibrated4/mobilenet_v3_small__int8_clean__onnx_int8.json @@ -0,0 +1,1829 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "net.features.1", + "explained_by": null, + "nominal_band_ratio": 33.4542211, + "results": [ + { + "band_ratio": 45.2001718, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 40.0262955, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 93.1111614, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 88.4705935, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 58.2334035, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "status": "flag" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "int8", + "first_divergence": { + "artifact_tensor": "/net/features/features.1/block/block.2/block.2.0/Conv_output_0_DequantizeLinear_Output", + "basis": "earliest tap over the int8 band (natural probes, C3-3)", + "index": 2, + "neighbourhood": [ + { + "band_ratio": 0.188152999, + "index": 1, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.0/features.0.2/HardSwish_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_ratio": 30.6888523, + "index": 2, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.1/block/block.2/block.2.0/Conv_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.1" + }, + { + "band_ratio": 32.4794438, + "index": 3, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.2/block/block.2/block.2.0/Conv_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.2" + } + ], + "shape": 224, + "tap": "net.features.1" + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "c5a97a1042d2323f67ea980fba4a836a2ab918d1eeb9538a2c8063d102cf3d6e", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "df8f534c401886d7fe90a7a47c95dd0dc5f81cf5cfa90b03b57816db04875745", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "int8 band on non-natural probes", + "reason": "C3-3: a statically quantised model is specified on its calibration distribution; int8 gates on the natural probes only (the control-selection distribution); uniform, wide_range, near_zero and saturating are measured and reported ('ungated_probes') but do not gate" + }, + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D4", + "probe_gating": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.28125, + "band_ratio": 77.7986947, + "metrics": { + "corr": 0.222013053, + "finite": true, + "max_abs": 9.17079115, + "mean_abs": 1.76360838, + "psnr_db": 14.7898674, + "ref_absmax": 6.58562374, + "rel_max": 1.39254709, + "scaled_max_abs": 1.39254709 + }, + "status": "fail", + "ungated_probes": { + "band_ratio": 57.7974533, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.422025467, + "finite": true, + "max_abs": 22.2448335, + "mean_abs": 2.00909527, + "psnr_db": 20.8771908, + "ref_absmax": 24.3847065, + "rel_max": 0.912245283, + "scaled_max_abs": 0.912245283 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 5 + } + }, + "first_fail_index": 2, + "n_judged": 16, + "n_taps": 16, + "probe_gating": { + "output": { + "gated_categories_only": [ + "natural" + ], + "n_gated": 16 + }, + "tap": { + "gated_categories_only": [ + "natural" + ], + "n_gated": 16 + } + }, + "taps": [ + { + "band_ratio": 0.0358589471, + "index": 0, + "metrics": { + "corr": 0.999979409, + "finite": true, + "max_abs": 0.0093292594, + "mean_abs": 0.0046713164, + "psnr_db": 58.9080493, + "ref_absmax": 2.6400001, + "rel_max": 0.00353381024, + "scaled_max_abs": 0.00353381024 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 7.22459355, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.927754064, + "finite": true, + "max_abs": 8.8980484, + "mean_abs": 0.268040572, + "psnr_db": 22.3077725, + "ref_absmax": 11.5288897, + "rel_max": 0.771804455, + "scaled_max_abs": 0.771804455 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 0.168456417, + "index": 1, + "metrics": { + "corr": 0.998315436, + "finite": true, + "max_abs": 9.25769424, + "mean_abs": 0.108249407, + "psnr_db": 53.8481156, + "ref_absmax": 72.481842, + "rel_max": 0.127724324, + "scaled_max_abs": 0.127724324 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.0/features.0.2/HardSwish_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.features.0", + "ungated_probes": { + "band_ratio": 13.0978699, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.869021301, + "finite": true, + "max_abs": 182.968063, + "mean_abs": 0.343335964, + "psnr_db": 37.5240221, + "ref_absmax": 190.032486, + "rel_max": 0.962825182, + "scaled_max_abs": 0.962825182 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 31.1917838, + "index": 2, + "metrics": { + "corr": 0.688082162, + "finite": true, + "max_abs": 12.0532521, + "mean_abs": 0.844886676, + "psnr_db": 25.4548109, + "ref_absmax": 14.5231047, + "rel_max": 0.829936324, + "scaled_max_abs": 0.829936324 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.1/block/block.2/block.2.0/Conv_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.1", + "ungated_probes": { + "band_ratio": 28.5145285, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.714854715, + "finite": true, + "max_abs": 34.6556585, + "mean_abs": 0.903161073, + "psnr_db": 31.3553998, + "ref_absmax": 45.4499092, + "rel_max": 0.76250226, + "scaled_max_abs": 0.76250226 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 8 + } + }, + { + "band_ratio": 32.8927326, + "index": 3, + "metrics": { + "corr": 0.671072674, + "finite": true, + "max_abs": 11.1481857, + "mean_abs": 0.812803477, + "psnr_db": 22.2026465, + "ref_absmax": 8.86038685, + "rel_max": 1.2582053, + "scaled_max_abs": 1.2582053 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.2/block/block.2/block.2.0/Conv_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.2", + "ungated_probes": { + "band_ratio": 25.6793349, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.743206651, + "finite": true, + "max_abs": 17.183762, + "mean_abs": 0.950978367, + "psnr_db": 27.9284013, + "ref_absmax": 25.896719, + "rel_max": 0.663549771, + "scaled_max_abs": 0.663549771 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 15 + } + }, + { + "band_ratio": 46.8361789, + "index": 4, + "metrics": { + "corr": 0.531638211, + "finite": true, + "max_abs": 10.1793258, + "mean_abs": 1.10479574, + "psnr_db": 20.4202384, + "ref_absmax": 8.33359718, + "rel_max": 1.22148042, + "scaled_max_abs": 1.22148042 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.3/Add_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.3", + "ungated_probes": { + "band_ratio": 24.8415614, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.751584386, + "finite": true, + "max_abs": 24.9516305, + "mean_abs": 1.11282224, + "psnr_db": 28.7231423, + "ref_absmax": 25.7114887, + "rel_max": 0.970446745, + "scaled_max_abs": 0.970446745 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 9 + } + }, + { + "band_ratio": 94.131359, + "index": 5, + "metrics": { + "corr": 0.0586864101, + "finite": true, + "max_abs": 3.80840302, + "mean_abs": 0.856226324, + "psnr_db": 15.6272152, + "ref_absmax": 3.24331141, + "rel_max": 1.17423292, + "scaled_max_abs": 1.17423292 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.4/block/block.3/block.3.0/Conv_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.4", + "ungated_probes": { + "band_ratio": 54.5386338, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.454613662, + "finite": true, + "max_abs": 17.4586187, + "mean_abs": 0.992494914, + "psnr_db": 26.5473426, + "ref_absmax": 17.1079597, + "rel_max": 1.02049683, + "scaled_max_abs": 1.02049683 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 3 + } + }, + { + "band_ratio": 75.7770754, + "index": 6, + "metrics": { + "corr": 0.242229246, + "finite": true, + "max_abs": 4.472157, + "mean_abs": 0.855224491, + "psnr_db": 16.6175481, + "ref_absmax": 3.83453083, + "rel_max": 1.16628532, + "scaled_max_abs": 1.16628532 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.5/Add_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.5", + "ungated_probes": { + "band_ratio": 63.3013476, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.366986524, + "finite": true, + "max_abs": 20.1553373, + "mean_abs": 1.10893574, + "psnr_db": 27.1739547, + "ref_absmax": 22.3186283, + "rel_max": 0.903072404, + "scaled_max_abs": 0.903072404 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 13 + } + }, + { + "band_ratio": 65.5441704, + "index": 7, + "metrics": { + "corr": 0.344558296, + "finite": true, + "max_abs": 6.92493987, + "mean_abs": 1.16569099, + "psnr_db": 17.2691568, + "ref_absmax": 5.45194149, + "rel_max": 1.27017868, + "scaled_max_abs": 1.27017868 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.6/Add_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.6", + "ungated_probes": { + "band_ratio": 73.5624508, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.264375492, + "finite": true, + "max_abs": 62.5242316, + "mean_abs": 2.21488606, + "psnr_db": 27.6334289, + "ref_absmax": 62.7700729, + "rel_max": 0.996083463, + "scaled_max_abs": 0.996083463 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 7 + } + }, + { + "band_ratio": 68.2330571, + "index": 8, + "metrics": { + "corr": 0.317669429, + "finite": true, + "max_abs": 5.67223835, + "mean_abs": 0.688963481, + "psnr_db": 18.4646469, + "ref_absmax": 3.91752052, + "rel_max": 1.44791541, + "scaled_max_abs": 1.44791541 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.7/block/block.3/block.3.0/Conv_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.7", + "ungated_probes": { + "band_ratio": 67.7325733, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.322674267, + "finite": true, + "max_abs": 19.5892518, + "mean_abs": 0.806463409, + "psnr_db": 28.393991, + "ref_absmax": 20.6843147, + "rel_max": 0.947058291, + "scaled_max_abs": 0.947058291 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 8 + } + }, + { + "band_ratio": 64.1950431, + "index": 9, + "metrics": { + "corr": 0.358049569, + "finite": true, + "max_abs": 5.70869851, + "mean_abs": 0.804512875, + "psnr_db": 18.6183281, + "ref_absmax": 4.64480782, + "rel_max": 1.22904945, + "scaled_max_abs": 1.22904945 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.8/Add_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.8", + "ungated_probes": { + "band_ratio": 69.2173417, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.307826583, + "finite": true, + "max_abs": 18.6991002, + "mean_abs": 0.921089716, + "psnr_db": 27.4471466, + "ref_absmax": 19.453968, + "rel_max": 0.96119723, + "scaled_max_abs": 0.96119723 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 8 + } + }, + { + "band_ratio": 67.8356524, + "index": 10, + "metrics": { + "corr": 0.321643476, + "finite": true, + "max_abs": 2.82424152, + "mean_abs": 0.385952012, + "psnr_db": 17.7244169, + "ref_absmax": 1.95912504, + "rel_max": 1.44158308, + "scaled_max_abs": 1.44158308 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.9/block/block.3/block.3.0/Conv_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.9", + "ungated_probes": { + "band_ratio": 56.6709936, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.433290064, + "finite": true, + "max_abs": 3.61226396, + "mean_abs": 0.352531329, + "psnr_db": 22.4909401, + "ref_absmax": 3.49467635, + "rel_max": 1.03364764, + "scaled_max_abs": 1.03364764 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 8 + } + }, + { + "band_ratio": 72.0300254, + "index": 11, + "metrics": { + "corr": 0.279699746, + "finite": true, + "max_abs": 3.00405228, + "mean_abs": 0.505202308, + "psnr_db": 17.6173361, + "ref_absmax": 2.49726367, + "rel_max": 1.20293757, + "scaled_max_abs": 1.20293757 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.10/Add_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.10", + "ungated_probes": { + "band_ratio": 51.2308534, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.487691466, + "finite": true, + "max_abs": 4.01572141, + "mean_abs": 0.41560674, + "psnr_db": 21.9987361, + "ref_absmax": 3.73949909, + "rel_max": 1.07386613, + "scaled_max_abs": 1.07386613 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 6 + } + }, + { + "band_ratio": 74.6535989, + "index": 12, + "metrics": { + "corr": 0.253464011, + "finite": true, + "max_abs": 3.28430164, + "mean_abs": 0.598092595, + "psnr_db": 16.2665981, + "ref_absmax": 2.55655575, + "rel_max": 1.28465872, + "scaled_max_abs": 1.28465872 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.11/Add_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.11", + "ungated_probes": { + "band_ratio": 54.9429103, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.450570897, + "finite": true, + "max_abs": 4.68407673, + "mean_abs": 0.5169905, + "psnr_db": 22.0406898, + "ref_absmax": 4.53482485, + "rel_max": 1.03291238, + "scaled_max_abs": 1.03291238 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 11 + } + }, + { + "band_ratio": 73.2546489, + "index": 13, + "metrics": { + "corr": 0.267453511, + "finite": true, + "max_abs": 7.02913295, + "mean_abs": 0.338102919, + "psnr_db": 21.4375186, + "ref_absmax": 6.42993307, + "rel_max": 1.09318913, + "scaled_max_abs": 1.09318913 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.12/features.12.2/HardSwish_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.12", + "ungated_probes": { + "band_ratio": 64.5567533, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.354432467, + "finite": true, + "max_abs": 10.099762, + "mean_abs": 0.291778509, + "psnr_db": 25.2483232, + "ref_absmax": 10.099762, + "rel_max": 1.0, + "scaled_max_abs": 1.0 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 2 + } + }, + { + "band_ratio": 66.3396523, + "index": 14, + "metrics": { + "corr": 0.336603477, + "finite": true, + "max_abs": 2.77919528, + "mean_abs": 0.249722982, + "psnr_db": 17.3665347, + "ref_absmax": 2.65402794, + "rel_max": 1.04716127, + "scaled_max_abs": 1.04716127 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 60.0774913, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.399225087, + "finite": true, + "max_abs": 5.24590921, + "mean_abs": 0.226800374, + "psnr_db": 22.162513, + "ref_absmax": 5.24590921, + "rel_max": 1.0, + "scaled_max_abs": 1.0 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 15 + } + }, + { + "band_ratio": 77.7986947, + "index": 15, + "metrics": { + "corr": 0.222013053, + "finite": true, + "max_abs": 9.17079115, + "mean_abs": 1.76360838, + "psnr_db": 14.7898674, + "ref_absmax": 6.58562374, + "rel_max": 1.39254709, + "scaled_max_abs": 1.39254709 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier", + "ungated_probes": { + "band_ratio": 57.7974533, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.422025467, + "finite": true, + "max_abs": 22.2448335, + "mean_abs": 2.00909527, + "psnr_db": 20.8771908, + "ref_absmax": 24.3847065, + "rel_max": 0.912245283, + "scaled_max_abs": 0.912245283 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 5 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.125, + "band_ratio": 74.1282531, + "metrics": { + "corr": 0.258717469, + "finite": true, + "max_abs": 7.73075914, + "mean_abs": 1.58095039, + "psnr_db": 15.4545641, + "ref_absmax": 6.90093088, + "rel_max": 1.12024874, + "scaled_max_abs": 1.12024874 + }, + "status": "fail", + "ungated_probes": { + "band_ratio": 72.6575141, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.273424859, + "finite": true, + "max_abs": 16.5776234, + "mean_abs": 2.20920888, + "psnr_db": 18.7506677, + "ref_absmax": 18.0251522, + "rel_max": 0.919693946, + "scaled_max_abs": 0.919693946 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + "first_fail_index": 2, + "n_judged": 16, + "n_taps": 16, + "probe_gating": { + "output": { + "gated_categories_only": [ + "natural" + ], + "n_gated": 16 + }, + "tap": { + "gated_categories_only": [ + "natural" + ], + "n_gated": 16 + } + }, + "taps": [ + { + "band_ratio": 0.0358907272, + "index": 0, + "metrics": { + "corr": 0.999978106, + "finite": true, + "max_abs": 0.009329319, + "mean_abs": 0.00467719955, + "psnr_db": 58.9003548, + "ref_absmax": 2.6400001, + "rel_max": 0.00353383281, + "scaled_max_abs": 0.00353383281 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 6.36551683, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.936344832, + "finite": true, + "max_abs": 8.8980484, + "mean_abs": 0.261245939, + "psnr_db": 22.8630328, + "ref_absmax": 11.5288897, + "rel_max": 0.771804455, + "scaled_max_abs": 0.771804455 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 0.188152999, + "index": 1, + "metrics": { + "corr": 0.99811847, + "finite": true, + "max_abs": 7.62937927, + "mean_abs": 0.114743702, + "psnr_db": 53.1476134, + "ref_absmax": 70.4103012, + "rel_max": 0.10835601, + "scaled_max_abs": 0.10835601 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.0/features.0.2/HardSwish_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.features.0", + "ungated_probes": { + "band_ratio": 11.6622706, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.883377294, + "finite": true, + "max_abs": 147.390145, + "mean_abs": 0.327522159, + "psnr_db": 37.5213843, + "ref_absmax": 169.038651, + "rel_max": 0.871931622, + "scaled_max_abs": 0.871931622 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 30.6888523, + "index": 2, + "metrics": { + "corr": 0.693111477, + "finite": true, + "max_abs": 12.1677488, + "mean_abs": 0.819926185, + "psnr_db": 24.6748685, + "ref_absmax": 12.9388905, + "rel_max": 0.940401254, + "scaled_max_abs": 0.940401254 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.1/block/block.2/block.2.0/Conv_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.1", + "ungated_probes": { + "band_ratio": 28.3271922, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.716728078, + "finite": true, + "max_abs": 32.7971554, + "mean_abs": 0.842081178, + "psnr_db": 31.4291525, + "ref_absmax": 44.644146, + "rel_max": 0.734635072, + "scaled_max_abs": 0.734635072 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 9 + } + }, + { + "band_ratio": 32.4794438, + "index": 3, + "metrics": { + "corr": 0.675205562, + "finite": true, + "max_abs": 10.4439206, + "mean_abs": 0.789584634, + "psnr_db": 22.1539022, + "ref_absmax": 8.60218048, + "rel_max": 1.21410155, + "scaled_max_abs": 1.21410155 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.2/block/block.2/block.2.0/Conv_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.2", + "ungated_probes": { + "band_ratio": 25.8529938, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.741470062, + "finite": true, + "max_abs": 21.6841269, + "mean_abs": 0.911759373, + "psnr_db": 29.6365279, + "ref_absmax": 30.6146946, + "rel_max": 0.708291464, + "scaled_max_abs": 0.708291464 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 13 + } + }, + { + "band_ratio": 46.2816855, + "index": 4, + "metrics": { + "corr": 0.537183145, + "finite": true, + "max_abs": 9.75974154, + "mean_abs": 1.07205895, + "psnr_db": 20.4916918, + "ref_absmax": 8.15642738, + "rel_max": 1.19657064, + "scaled_max_abs": 1.19657064 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.3/Add_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.3", + "ungated_probes": { + "band_ratio": 22.968418, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.77031582, + "finite": true, + "max_abs": 23.2994709, + "mean_abs": 1.07967589, + "psnr_db": 29.0927289, + "ref_absmax": 26.1666718, + "rel_max": 0.890425467, + "scaled_max_abs": 0.890425467 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 15 + } + }, + { + "band_ratio": 90.9000301, + "index": 5, + "metrics": { + "corr": 0.0909996988, + "finite": true, + "max_abs": 3.69145763, + "mean_abs": 0.821730255, + "psnr_db": 15.7065167, + "ref_absmax": 3.33947659, + "rel_max": 1.10540006, + "scaled_max_abs": 1.10540006 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.4/block/block.3/block.3.0/Conv_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.4", + "ungated_probes": { + "band_ratio": 52.4858666, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.475141334, + "finite": true, + "max_abs": 19.9985257, + "mean_abs": 0.977064021, + "psnr_db": 27.5855009, + "ref_absmax": 19.5010872, + "rel_max": 1.02550825, + "scaled_max_abs": 1.02550825 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 5 + } + }, + { + "band_ratio": 72.4395362, + "index": 6, + "metrics": { + "corr": 0.275604638, + "finite": true, + "max_abs": 4.54587638, + "mean_abs": 0.835315341, + "psnr_db": 16.9727257, + "ref_absmax": 4.19286299, + "rel_max": 1.08419388, + "scaled_max_abs": 1.08419388 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.5/Add_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.5", + "ungated_probes": { + "band_ratio": 63.9592674, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.360407326, + "finite": true, + "max_abs": 29.4028873, + "mean_abs": 1.17685753, + "psnr_db": 28.9125143, + "ref_absmax": 30.0460987, + "rel_max": 0.978592516, + "scaled_max_abs": 0.978592516 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 12 + } + }, + { + "band_ratio": 63.1428112, + "index": 7, + "metrics": { + "corr": 0.368571888, + "finite": true, + "max_abs": 6.76949787, + "mean_abs": 1.13654727, + "psnr_db": 18.0649108, + "ref_absmax": 6.00839663, + "rel_max": 1.12667294, + "scaled_max_abs": 1.12667294 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.6/Add_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.6", + "ungated_probes": { + "band_ratio": 73.1298618, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.268701382, + "finite": true, + "max_abs": 67.0166258, + "mean_abs": 2.21512754, + "psnr_db": 29.371211, + "ref_absmax": 67.6801987, + "rel_max": 0.990195465, + "scaled_max_abs": 0.990195465 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 15 + } + }, + { + "band_ratio": 65.70995, + "index": 8, + "metrics": { + "corr": 0.3429005, + "finite": true, + "max_abs": 6.01789165, + "mean_abs": 0.661522941, + "psnr_db": 18.7774366, + "ref_absmax": 3.77111506, + "rel_max": 1.59578574, + "scaled_max_abs": 1.59578574 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.7/block/block.3/block.3.0/Conv_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.7", + "ungated_probes": { + "band_ratio": 69.8280167, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.301719833, + "finite": true, + "max_abs": 16.9826107, + "mean_abs": 0.796080266, + "psnr_db": 27.7974508, + "ref_absmax": 17.2851353, + "rel_max": 0.982497993, + "scaled_max_abs": 0.982497993 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 9 + } + }, + { + "band_ratio": 62.9086744, + "index": 9, + "metrics": { + "corr": 0.370913256, + "finite": true, + "max_abs": 6.56561947, + "mean_abs": 0.78751733, + "psnr_db": 18.7249524, + "ref_absmax": 4.65349197, + "rel_max": 1.41090164, + "scaled_max_abs": 1.41090164 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.8/Add_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.8", + "ungated_probes": { + "band_ratio": 71.943399, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.28056601, + "finite": true, + "max_abs": 16.2092239, + "mean_abs": 0.896213852, + "psnr_db": 26.9387772, + "ref_absmax": 16.7228394, + "rel_max": 0.969286588, + "scaled_max_abs": 0.969286588 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 9 + } + }, + { + "band_ratio": 65.8483797, + "index": 10, + "metrics": { + "corr": 0.341516203, + "finite": true, + "max_abs": 2.82255924, + "mean_abs": 0.374980687, + "psnr_db": 16.9495882, + "ref_absmax": 1.76286125, + "rel_max": 1.60112387, + "scaled_max_abs": 1.60112387 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.9/block/block.3/block.3.0/Conv_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.9", + "ungated_probes": { + "band_ratio": 60.5745695, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.394254305, + "finite": true, + "max_abs": 2.86973745, + "mean_abs": 0.363673039, + "psnr_db": 20.2760031, + "ref_absmax": 2.7077558, + "rel_max": 1.05982136, + "scaled_max_abs": 1.05982136 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 3 + } + }, + { + "band_ratio": 69.1145075, + "index": 11, + "metrics": { + "corr": 0.308854925, + "finite": true, + "max_abs": 2.8269217, + "mean_abs": 0.487458238, + "psnr_db": 17.2028284, + "ref_absmax": 2.4487865, + "rel_max": 1.15441738, + "scaled_max_abs": 1.15441738 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.10/Add_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.10", + "ungated_probes": { + "band_ratio": 57.4948519, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.425051481, + "finite": true, + "max_abs": 4.03412837, + "mean_abs": 0.463165916, + "psnr_db": 19.8403605, + "ref_absmax": 3.28536868, + "rel_max": 1.22790736, + "scaled_max_abs": 1.22790736 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 3 + } + }, + { + "band_ratio": 71.9816497, + "index": 12, + "metrics": { + "corr": 0.280183503, + "finite": true, + "max_abs": 3.59887183, + "mean_abs": 0.577227466, + "psnr_db": 17.4457216, + "ref_absmax": 2.86192513, + "rel_max": 1.25750034, + "scaled_max_abs": 1.25750034 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.11/Add_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.11", + "ungated_probes": { + "band_ratio": 60.6066187, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.393933813, + "finite": true, + "max_abs": 4.65196878, + "mean_abs": 0.556261464, + "psnr_db": 20.0292809, + "ref_absmax": 3.9695878, + "rel_max": 1.17190222, + "scaled_max_abs": 1.17190222 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 6 + } + }, + { + "band_ratio": 71.4370553, + "index": 13, + "metrics": { + "corr": 0.285629447, + "finite": true, + "max_abs": 6.8753888, + "mean_abs": 0.310919336, + "psnr_db": 22.4885319, + "ref_absmax": 6.71125937, + "rel_max": 1.02445583, + "scaled_max_abs": 1.02445583 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.12/features.12.2/HardSwish_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.12", + "ungated_probes": { + "band_ratio": 70.1849062, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.298150938, + "finite": true, + "max_abs": 9.62387198, + "mean_abs": 0.29247892, + "psnr_db": 24.6185951, + "ref_absmax": 9.25807858, + "rel_max": 1.03951073, + "scaled_max_abs": 1.03951073 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 12 + } + }, + { + "band_ratio": 63.4040577, + "index": 14, + "metrics": { + "corr": 0.365959423, + "finite": true, + "max_abs": 3.01983908, + "mean_abs": 0.226150522, + "psnr_db": 17.6299808, + "ref_absmax": 2.49862957, + "rel_max": 1.20859815, + "scaled_max_abs": 1.20859815 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 66.4925307, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.335074693, + "finite": true, + "max_abs": 5.52426839, + "mean_abs": 0.230082082, + "psnr_db": 21.9585918, + "ref_absmax": 5.18950367, + "rel_max": 1.06450804, + "scaled_max_abs": 1.06450804 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 3 + } + }, + { + "band_ratio": 74.1282531, + "index": 15, + "metrics": { + "corr": 0.258717469, + "finite": true, + "max_abs": 7.73075914, + "mean_abs": 1.58095039, + "psnr_db": 15.4545641, + "ref_absmax": 6.90093088, + "rel_max": 1.12024874, + "scaled_max_abs": 1.12024874 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier", + "ungated_probes": { + "band_ratio": 72.6575141, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.273424859, + "finite": true, + "max_abs": 16.5776234, + "mean_abs": 2.20920888, + "psnr_db": 18.7506677, + "ref_absmax": 18.0251522, + "rel_max": 0.919693946, + "scaled_max_abs": 0.919693946 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 0 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "int8", + "id": "mobilenet_v3_small__int8_clean__onnx_int8", + "model": "mobilenet_v3_small", + "path": "onnx", + "variant": "int8_clean" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/mobilenet_v3_small__layout_swap__coreml_fp16.json b/bench/verdicts_calibrated4/mobilenet_v3_small__layout_swap__coreml_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..6d8adb5cd91d5f597a13e4ed92b08dd7584635d0 --- /dev/null +++ b/bench/verdicts_calibrated4/mobilenet_v3_small__layout_swap__coreml_fp16.json @@ -0,0 +1,1218 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "baseline": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "faithful_output_rel_max": 0.0447572937, + "output_band": 0.0895145874, + "source": { + "bundle": "bundles/mobilenet_v3_small__clean__coreml_fp16.json", + "case": "mobilenet_v3_small__clean__coreml_fp16", + "digests": { + "192": { + "converted": "e8f4b313bc394828af089248d6d729f5cfb7d031d184bf665f719d1a66fcd7d8", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "807adc810963567dc9e14f27330f17d8d7cd30ffa6b8e35992534a3dbc2f65e9", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + } + } + }, + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "reason": "first divergence at tap 7 is beyond the hypothesis taps (first 3) \u2014 interface faults surface earlier", + "status": "not_evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [ + "inputs[0]: dtype float16 (declared float32)", + "outputs[0]: dtype float16 (declared float32)" + ], + "status": "precision_narrowing" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "input_137_cast_fp16", + "basis": "earliest tap over band with in-band predecessors (fp16: the tap's faithful envelope gates, C3-1)", + "index": 7, + "neighbourhood": [ + { + "band_ratio": 0.316127148, + "index": 6, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_111_cast_fp16" + }, + "status": "pass", + "tap": "net.features.5" + }, + { + "band_ratio": 36.8305867, + "index": 7, + "op": { + "candidates": 4, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_137_cast_fp16" + }, + "status": "fail", + "tap": "net.features.6" + }, + { + "band_ratio": 14.3389503, + "index": 8, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_163_cast_fp16" + }, + "status": "fail", + "tap": "net.features.7" + } + ], + "shape": 224, + "tap": "net.features.6" + }, + "fp16_floor": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "baseline": { + "bundle": "bundles/mobilenet_v3_small__clean__coreml_fp16.json", + "case": "mobilenet_v3_small__clean__coreml_fp16", + "digests": { + "192": { + "converted": "e8f4b313bc394828af089248d6d729f5cfb7d031d184bf665f719d1a66fcd7d8", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "807adc810963567dc9e14f27330f17d8d7cd30ffa6b8e35992534a3dbc2f65e9", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + } + }, + "envelopes_gate": true, + "faithful_output_rel_max": 0.0447572937, + "faithful_tap_rel_max": { + "net.avgpool": 0.0593494378, + "net.classifier": 0.0447572937, + "net.features.0": 0.0033139093, + "net.features.1": 0.0109594004, + "net.features.10": 0.0689930567, + "net.features.11": 0.097995766, + "net.features.12": 0.111351399, + "net.features.2": 0.0106091941, + "net.features.3": 0.0219511544, + "net.features.4": 0.0122644963, + "net.features.5": 0.0214109624, + "net.features.6": 0.0112218713, + "net.features.7": 0.0213995931, + "net.features.8": 0.0282643785, + "net.features.9": 0.0667671518, + "normalize": 0.00117570499 + }, + "floor": 0.01, + "k": 2.0, + "output_band": 0.0895145874, + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used", + "tap_envelopes": { + "net.avgpool": 0.118698876, + "net.classifier": 0.0895145874, + "net.features.0": 0.01, + "net.features.1": 0.0219188008, + "net.features.10": 0.137986113, + "net.features.11": 0.195991532, + "net.features.12": 0.222702798, + "net.features.2": 0.0212183882, + "net.features.3": 0.0439023088, + "net.features.4": 0.0245289926, + "net.features.5": 0.0428219248, + "net.features.6": 0.0224437425, + "net.features.7": 0.0427991863, + "net.features.8": 0.056528757, + "net.features.9": 0.133534304, + "normalize": 0.01 + } + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "ed548b17c5c9ec1bd9522fc16c042f2034dbf39d8b4e84999236f34fa0b0bc13", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "b51b5bd692b7f42370e7c0cffa0d75890b102cd2dded2256d210141271fc16d5", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D2", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.34375, + "band_limit": 0.0895145874, + "band_ratio": 1.86876021, + "metrics": { + "corr": 0.964496403, + "finite": true, + "max_abs": 4.07910538, + "mean_abs": 0.539675587, + "psnr_db": 33.5586623, + "ref_absmax": 24.3847065, + "rel_max": 0.167281299, + "scaled_max_abs": 0.167281299 + }, + "per_op_band_ratio": 16.7281299, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 7, + "n_judged": 16, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 0.117570499, + "index": 0, + "metrics": { + "corr": 0.999999914, + "finite": true, + "max_abs": 0.0135545731, + "mean_abs": 0.000674526699, + "psnr_db": 83.5827466, + "ref_absmax": 11.5288897, + "rel_max": 0.00117570499, + "scaled_max_abs": 0.00117570499 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "per_op_band_ratio": 0.117570499, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 0.264822202, + "index": 1, + "metrics": { + "corr": 0.999998648, + "finite": true, + "max_abs": 0.503248215, + "mean_abs": 0.00245742044, + "psnr_db": 89.2955159, + "ref_absmax": 190.032486, + "rel_max": 0.00264822202, + "scaled_max_abs": 0.00264822202 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_7_cast_fp16" + }, + "per_op_band_ratio": 0.264822202, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_limit": 0.0219188008, + "band_ratio": 0.468941544, + "index": 2, + "metrics": { + "corr": 0.999955391, + "finite": true, + "max_abs": 0.467163086, + "mean_abs": 0.0108745644, + "psnr_db": 70.7611788, + "ref_absmax": 45.4499092, + "rel_max": 0.0102786363, + "scaled_max_abs": 0.0102786363 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_27_cast_fp16" + }, + "per_op_band_ratio": 1.02786363, + "status": "pass", + "tap": "net.features.1" + }, + { + "band_limit": 0.0212183882, + "band_ratio": 0.5, + "index": 3, + "metrics": { + "corr": 0.999939329, + "finite": true, + "max_abs": 0.274743319, + "mean_abs": 0.0150893866, + "psnr_db": 65.8230603, + "ref_absmax": 25.896719, + "rel_max": 0.0106091941, + "scaled_max_abs": 0.0106091941 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_43_cast_fp16" + }, + "per_op_band_ratio": 1.06091941, + "status": "pass", + "tap": "net.features.2" + }, + { + "band_limit": 0.0439023088, + "band_ratio": 0.5, + "index": 4, + "metrics": { + "corr": 0.999841065, + "finite": true, + "max_abs": 0.564396858, + "mean_abs": 0.0266718961, + "psnr_db": 62.2128125, + "ref_absmax": 25.7114887, + "rel_max": 0.0219511544, + "scaled_max_abs": 0.0219511544 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59_cast_fp16" + }, + "per_op_band_ratio": 2.19511544, + "status": "pass", + "tap": "net.features.3" + }, + { + "band_limit": 0.0245289926, + "band_ratio": 0.5, + "index": 5, + "metrics": { + "corr": 0.999799843, + "finite": true, + "max_abs": 0.209820509, + "mean_abs": 0.0157979565, + "psnr_db": 61.8903255, + "ref_absmax": 17.1079597, + "rel_max": 0.0122644963, + "scaled_max_abs": 0.0122644963 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85_cast_fp16" + }, + "per_op_band_ratio": 1.22644963, + "status": "pass", + "tap": "net.features.4" + }, + { + "band_limit": 0.0428219248, + "band_ratio": 0.5, + "index": 6, + "metrics": { + "corr": 0.999504987, + "finite": true, + "max_abs": 0.477863312, + "mean_abs": 0.0243805949, + "psnr_db": 59.3153124, + "ref_absmax": 22.3186283, + "rel_max": 0.0214109624, + "scaled_max_abs": 0.0214109624 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_111_cast_fp16" + }, + "per_op_band_ratio": 2.14109624, + "status": "pass", + "tap": "net.features.5" + }, + { + "band_limit": 0.0224437425, + "band_ratio": 32.5594651, + "index": 7, + "metrics": { + "corr": 0.840036827, + "finite": true, + "max_abs": 45.8696232, + "mean_abs": 1.13472148, + "psnr_db": 35.1090801, + "ref_absmax": 62.7700729, + "rel_max": 0.730756251, + "scaled_max_abs": 0.730756251 + }, + "op": { + "candidates": 4, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_137_cast_fp16" + }, + "per_op_band_ratio": 73.0756251, + "status": "fail", + "tap": "net.features.6", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.0427991863, + "band_ratio": 15.0847286, + "index": 8, + "metrics": { + "corr": 0.680934369, + "finite": true, + "max_abs": 13.3540854, + "mean_abs": 0.620226663, + "psnr_db": 32.0315137, + "ref_absmax": 20.6843147, + "rel_max": 0.64561411, + "scaled_max_abs": 0.64561411 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_163_cast_fp16" + }, + "per_op_band_ratio": 64.561411, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.056528757, + "band_ratio": 13.0514658, + "index": 9, + "metrics": { + "corr": 0.611187384, + "finite": true, + "max_abs": 14.3528096, + "mean_abs": 0.774588963, + "psnr_db": 30.1796531, + "ref_absmax": 19.453968, + "rel_max": 0.737783139, + "scaled_max_abs": 0.737783139 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_189_cast_fp16" + }, + "per_op_band_ratio": 73.7783139, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.133534304, + "band_ratio": 4.93629514, + "index": 10, + "metrics": { + "corr": 0.770585869, + "finite": true, + "max_abs": 2.30356741, + "mean_abs": 0.221830253, + "psnr_db": 26.6341419, + "ref_absmax": 3.49467635, + "rel_max": 0.659164735, + "scaled_max_abs": 0.659164735 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_215_cast_fp16" + }, + "per_op_band_ratio": 65.9164735, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.137986113, + "band_ratio": 5.38830509, + "index": 11, + "metrics": { + "corr": 0.784438489, + "finite": true, + "max_abs": 2.78035975, + "mean_abs": 0.267661433, + "psnr_db": 25.9725339, + "ref_absmax": 3.73949909, + "rel_max": 0.743511277, + "scaled_max_abs": 0.743511277 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_241_cast_fp16" + }, + "per_op_band_ratio": 74.3511277, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.195991532, + "band_ratio": 3.79991384, + "index": 12, + "metrics": { + "corr": 0.797285795, + "finite": true, + "max_abs": 3.37731504, + "mean_abs": 0.309219323, + "psnr_db": 26.6334479, + "ref_absmax": 4.53482485, + "rel_max": 0.744750935, + "scaled_max_abs": 0.744750935 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_267_cast_fp16" + }, + "per_op_band_ratio": 74.4750935, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.222702798, + "band_ratio": 3.95536039, + "index": 13, + "metrics": { + "corr": 0.762083739, + "finite": true, + "max_abs": 8.89657557, + "mean_abs": 0.1795187, + "psnr_db": 29.6537818, + "ref_absmax": 10.099762, + "rel_max": 0.880869827, + "scaled_max_abs": 0.880869827 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_273_cast_fp16" + }, + "per_op_band_ratio": 88.0869827, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_limit": 0.118698876, + "band_ratio": 1.9553118, + "index": 14, + "metrics": { + "corr": 0.966445133, + "finite": true, + "max_abs": 1.21754044, + "mean_abs": 0.06128933, + "psnr_db": 34.9476438, + "ref_absmax": 5.24590921, + "rel_max": 0.232093312, + "scaled_max_abs": 0.232093312 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "per_op_band_ratio": 23.2093312, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "natural", + "index": 3 + } + }, + { + "band_limit": 0.0895145874, + "band_ratio": 1.86876021, + "index": 15, + "metrics": { + "corr": 0.964496403, + "finite": true, + "max_abs": 4.07910538, + "mean_abs": 0.539675587, + "psnr_db": 33.5586623, + "ref_absmax": 24.3847065, + "rel_max": 0.167281299, + "scaled_max_abs": 0.167281299 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "per_op_band_ratio": 16.7281299, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.65625, + "band_limit": 0.0895145874, + "band_ratio": 1.6986875, + "metrics": { + "corr": 0.973459475, + "finite": true, + "max_abs": 2.74085617, + "mean_abs": 0.441873597, + "psnr_db": 33.3973167, + "ref_absmax": 18.0251522, + "rel_max": 0.152057311, + "scaled_max_abs": 0.152057311 + }, + "per_op_band_ratio": 15.2057311, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 8 + } + }, + "first_fail_index": 7, + "n_judged": 16, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 0.116213884, + "index": 0, + "metrics": { + "corr": 0.999999912, + "finite": true, + "max_abs": 0.0133981705, + "mean_abs": 0.000679588388, + "psnr_db": 83.6184843, + "ref_absmax": 11.5288897, + "rel_max": 0.00116213884, + "scaled_max_abs": 0.00116213884 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "per_op_band_ratio": 0.116213884, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 0.33139093, + "index": 1, + "metrics": { + "corr": 0.999998561, + "finite": true, + "max_abs": 0.560178757, + "mean_abs": 0.00245733429, + "psnr_db": 88.488319, + "ref_absmax": 169.038651, + "rel_max": 0.0033139093, + "scaled_max_abs": 0.0033139093 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_7_cast_fp16" + }, + "per_op_band_ratio": 0.33139093, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_limit": 0.0219188008, + "band_ratio": 0.5, + "index": 2, + "metrics": { + "corr": 0.999947809, + "finite": true, + "max_abs": 0.489273071, + "mean_abs": 0.0109243768, + "psnr_db": 70.0800625, + "ref_absmax": 44.644146, + "rel_max": 0.0109594004, + "scaled_max_abs": 0.0109594004 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_27_cast_fp16" + }, + "per_op_band_ratio": 1.09594004, + "status": "pass", + "tap": "net.features.1" + }, + { + "band_limit": 0.0212183882, + "band_ratio": 0.472423312, + "index": 3, + "metrics": { + "corr": 0.999928562, + "finite": true, + "max_abs": 0.306883574, + "mean_abs": 0.0154189054, + "psnr_db": 66.8123424, + "ref_absmax": 30.6146946, + "rel_max": 0.0100240612, + "scaled_max_abs": 0.0100240612 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_43_cast_fp16" + }, + "per_op_band_ratio": 1.00240612, + "status": "pass", + "tap": "net.features.2" + }, + { + "band_limit": 0.0439023088, + "band_ratio": 0.395740738, + "index": 4, + "metrics": { + "corr": 0.999826151, + "finite": true, + "max_abs": 0.454617977, + "mean_abs": 0.0275043068, + "psnr_db": 61.9146954, + "ref_absmax": 26.1666718, + "rel_max": 0.0173739321, + "scaled_max_abs": 0.0173739321 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59_cast_fp16" + }, + "per_op_band_ratio": 1.73739321, + "status": "pass", + "tap": "net.features.3" + }, + { + "band_limit": 0.0245289926, + "band_ratio": 0.421120473, + "index": 5, + "metrics": { + "corr": 0.99979303, + "finite": true, + "max_abs": 0.201439619, + "mean_abs": 0.016404368, + "psnr_db": 62.6750818, + "ref_absmax": 19.5010872, + "rel_max": 0.010329661, + "scaled_max_abs": 0.010329661 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85_cast_fp16" + }, + "per_op_band_ratio": 1.0329661, + "status": "pass", + "tap": "net.features.4" + }, + { + "band_limit": 0.0428219248, + "band_ratio": 0.316127148, + "index": 6, + "metrics": { + "corr": 0.999513853, + "finite": true, + "max_abs": 0.406739235, + "mean_abs": 0.0253501789, + "psnr_db": 61.2191237, + "ref_absmax": 30.0460987, + "rel_max": 0.013537173, + "scaled_max_abs": 0.013537173 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_111_cast_fp16" + }, + "per_op_band_ratio": 1.3537173, + "status": "pass", + "tap": "net.features.5" + }, + { + "band_limit": 0.0224437425, + "band_ratio": 36.8305867, + "index": 7, + "metrics": { + "corr": 0.831392185, + "finite": true, + "max_abs": 55.945549, + "mean_abs": 1.10240856, + "psnr_db": 36.6084963, + "ref_absmax": 67.6801987, + "rel_max": 0.826616205, + "scaled_max_abs": 0.826616205 + }, + "op": { + "candidates": 4, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_137_cast_fp16" + }, + "per_op_band_ratio": 82.6616205, + "status": "fail", + "tap": "net.features.6", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.0427991863, + "band_ratio": 14.3389503, + "index": 8, + "metrics": { + "corr": 0.642824182, + "finite": true, + "max_abs": 10.6078081, + "mean_abs": 0.612760024, + "psnr_db": 31.0082047, + "ref_absmax": 17.2851353, + "rel_max": 0.613695406, + "scaled_max_abs": 0.613695406 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_163_cast_fp16" + }, + "per_op_band_ratio": 61.3695406, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.056528757, + "band_ratio": 11.5381861, + "index": 9, + "metrics": { + "corr": 0.57628143, + "finite": true, + "max_abs": 10.9072933, + "mean_abs": 0.75831416, + "psnr_db": 29.3109862, + "ref_absmax": 16.7228394, + "rel_max": 0.652239317, + "scaled_max_abs": 0.652239317 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_189_cast_fp16" + }, + "per_op_band_ratio": 65.2239317, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.133534304, + "band_ratio": 7.48569444, + "index": 10, + "metrics": { + "corr": 0.768517144, + "finite": true, + "max_abs": 2.70666456, + "mean_abs": 0.217284887, + "psnr_db": 24.694237, + "ref_absmax": 2.7077558, + "rel_max": 0.999596994, + "scaled_max_abs": 0.999596994 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_215_cast_fp16" + }, + "per_op_band_ratio": 99.9596994, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.137986113, + "band_ratio": 5.76934349, + "index": 11, + "metrics": { + "corr": 0.780790258, + "finite": true, + "max_abs": 2.61544681, + "mean_abs": 0.269198887, + "psnr_db": 24.4122682, + "ref_absmax": 3.28536868, + "rel_max": 0.796089286, + "scaled_max_abs": 0.796089286 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_241_cast_fp16" + }, + "per_op_band_ratio": 79.6089286, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.195991532, + "band_ratio": 4.61962402, + "index": 12, + "metrics": { + "corr": 0.799586662, + "finite": true, + "max_abs": 3.59409334, + "mean_abs": 0.304495291, + "psnr_db": 25.1538306, + "ref_absmax": 3.9695878, + "rel_max": 0.90540719, + "scaled_max_abs": 0.90540719 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_267_cast_fp16" + }, + "per_op_band_ratio": 90.540719, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "uniform", + "index": 17 + } + }, + { + "band_limit": 0.222702798, + "band_ratio": 3.37636732, + "index": 13, + "metrics": { + "corr": 0.762774438, + "finite": true, + "max_abs": 6.96139416, + "mean_abs": 0.170640637, + "psnr_db": 29.3704607, + "ref_absmax": 9.25807858, + "rel_max": 0.75192645, + "scaled_max_abs": 0.75192645 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_273_cast_fp16" + }, + "per_op_band_ratio": 75.192645, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "uniform", + "index": 17 + } + }, + { + "band_limit": 0.118698876, + "band_ratio": 1.22034758, + "index": 14, + "metrics": { + "corr": 0.974324806, + "finite": true, + "max_abs": 0.751719773, + "mean_abs": 0.0527290075, + "psnr_db": 36.2976735, + "ref_absmax": 5.18950367, + "rel_max": 0.144853886, + "scaled_max_abs": 0.144853886 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "per_op_band_ratio": 14.4853886, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "natural", + "index": 2 + } + }, + { + "band_limit": 0.0895145874, + "band_ratio": 1.6986875, + "index": 15, + "metrics": { + "corr": 0.973459475, + "finite": true, + "max_abs": 2.74085617, + "mean_abs": 0.441873597, + "psnr_db": 33.3973167, + "ref_absmax": 18.0251522, + "rel_max": 0.152057311, + "scaled_max_abs": 0.152057311 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "per_op_band_ratio": 15.2057311, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "natural", + "index": 8 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp16", + "id": "mobilenet_v3_small__layout_swap__coreml_fp16", + "model": "mobilenet_v3_small", + "path": "coreml", + "variant": "layout_swap" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/mobilenet_v3_small__layout_swap__coreml_fp32.json b/bench/verdicts_calibrated4/mobilenet_v3_small__layout_swap__coreml_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..714baed8ca1c271875c442f7504e7520c46f13a5 --- /dev/null +++ b/bench/verdicts_calibrated4/mobilenet_v3_small__layout_swap__coreml_fp32.json @@ -0,0 +1,1619 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "reason": "first divergence at tap 7 is beyond the hypothesis taps (first 3) \u2014 interface faults surface earlier", + "status": "not_evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "input_137", + "basis": "earliest tap over band with in-band predecessors", + "index": 7, + "neighbourhood": [ + { + "band_ratio": 0.0244400856, + "index": 6, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_111" + }, + "status": "pass", + "tap": "net.features.5" + }, + { + "band_ratio": 8249.98191, + "index": 7, + "op": { + "candidates": 4, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_137" + }, + "status": "fail", + "tap": "net.features.6" + }, + { + "band_ratio": 6166.2458, + "index": 8, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_163" + }, + "status": "fail", + "tap": "net.features.7" + } + ], + "shape": 224, + "tap": "net.features.6" + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "e7c7b38b4fab5b595d7fe0fd5c1bded28917544a332d878c06117069e45e6552", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "0b9ac60992765f63ba85e16a8f35fa7bfbce6374a8d5b4e734ce57ce7e1c6fe5", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "fp32 per-tap band on near-zero probes", + "reason": "C3-2: per-tap fp32 checks gate without the near_zero probes; they are measured and reported per tap ('ungated_probes'); the output gates on all probes. C4-1: when the output has failed and no gated tap fails, they localise the first divergence (earliest tap over band on all probes)" + }, + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D2", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.34375, + "band_ratio": 1627.39783, + "metrics": { + "corr": 0.96454014, + "finite": true, + "max_abs": 3.96836185, + "mean_abs": 0.530406957, + "psnr_db": 33.5907671, + "ref_absmax": 24.3847065, + "rel_max": 0.162739783, + "scaled_max_abs": 0.162739783 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 7, + "n_judged": 16, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.06644368e-08, + "psnr_db": 164.113247, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.00112572895, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.38418579e-07, + "mean_abs": 4.66593688e-08, + "psnr_db": 130.397207, + "ref_absmax": 2.11790395, + "rel_max": 1.12572895e-07, + "scaled_max_abs": 1.12572895e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00401478436, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.62939453e-05, + "mean_abs": 3.24115959e-07, + "psnr_db": 165.981806, + "ref_absmax": 190.032486, + "rel_max": 4.01478436e-07, + "scaled_max_abs": 4.01478436e-07 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_7" + }, + "status": "pass", + "tap": "net.features.0", + "ungated_probes": { + "band_ratio": 0.00361820398, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.14440918e-05, + "mean_abs": 3.57559764e-07, + "psnr_db": 154.819305, + "ref_absmax": 31.6292057, + "rel_max": 3.61820398e-07, + "scaled_max_abs": 3.61820398e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0140782649, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.39855862e-05, + "mean_abs": 1.68588111e-06, + "psnr_db": 146.919123, + "ref_absmax": 45.4499092, + "rel_max": 1.40782649e-06, + "scaled_max_abs": 1.40782649e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_27" + }, + "status": "pass", + "tap": "net.features.1", + "ungated_probes": { + "band_ratio": 0.0551195708, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.04119492e-05, + "mean_abs": 2.21933378e-06, + "psnr_db": 131.19673, + "ref_absmax": 7.33168793, + "rel_max": 5.51195708e-06, + "scaled_max_abs": 5.51195708e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0168018932, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.35113907e-05, + "mean_abs": 2.364716e-06, + "psnr_db": 141.953623, + "ref_absmax": 25.896719, + "rel_max": 1.68018932e-06, + "scaled_max_abs": 1.68018932e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_43" + }, + "status": "pass", + "tap": "net.features.2", + "ungated_probes": { + "band_ratio": 0.0935379449, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.02927399e-05, + "mean_abs": 3.91170222e-06, + "psnr_db": 121.942109, + "ref_absmax": 4.30763578, + "rel_max": 9.35379449e-06, + "scaled_max_abs": 9.35379449e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0496097061, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.00012755394, + "mean_abs": 3.98352299e-06, + "psnr_db": 138.819026, + "ref_absmax": 25.7114887, + "rel_max": 4.96097061e-06, + "scaled_max_abs": 4.96097061e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59" + }, + "status": "pass", + "tap": "net.features.3", + "ungated_probes": { + "band_ratio": 0.332723064, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000223994255, + "mean_abs": 1.24484625e-05, + "psnr_db": 115.698552, + "ref_absmax": 6.73215294, + "rel_max": 3.32723064e-05, + "scaled_max_abs": 3.32723064e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0150858498, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.58088112e-05, + "mean_abs": 2.13908043e-06, + "psnr_db": 139.557552, + "ref_absmax": 17.1079597, + "rel_max": 1.50858498e-06, + "scaled_max_abs": 1.50858498e-06 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85" + }, + "status": "pass", + "tap": "net.features.4", + "ungated_probes": { + "band_ratio": 0.288051033, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.4400177e-05, + "mean_abs": 7.77968791e-06, + "psnr_db": 115.200941, + "ref_absmax": 2.93004251, + "rel_max": 2.88051033e-05, + "scaled_max_abs": 2.88051033e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0275608306, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.15119934e-05, + "mean_abs": 3.17559211e-06, + "psnr_db": 137.135406, + "ref_absmax": 22.3186283, + "rel_max": 2.75608306e-06, + "scaled_max_abs": 2.75608306e-06 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_111" + }, + "status": "pass", + "tap": "net.features.5", + "ungated_probes": { + "band_ratio": 0.47075491, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000135660172, + "mean_abs": 1.22802891e-05, + "psnr_db": 110.412785, + "ref_absmax": 2.88175797, + "rel_max": 4.7075491e-05, + "scaled_max_abs": 4.7075491e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 7272.9094, + "index": 7, + "metrics": { + "corr": 0.841140779, + "finite": true, + "max_abs": 45.6521053, + "mean_abs": 1.2317805, + "psnr_db": 34.6417498, + "ref_absmax": 62.7700729, + "rel_max": 0.72729094, + "scaled_max_abs": 0.72729094 + }, + "op": { + "candidates": 4, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_137" + }, + "status": "fail", + "tap": "net.features.6", + "ungated_probes": { + "band_ratio": 11085.4861, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.760930803, + "finite": true, + "max_abs": 6.06351697, + "mean_abs": 0.400147872, + "psnr_db": 21.1482246, + "ref_absmax": 5.46977997, + "rel_max": 1.10854861, + "scaled_max_abs": 1.10854861 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6447.83923, + "index": 8, + "metrics": { + "corr": 0.671104172, + "finite": true, + "max_abs": 13.3369136, + "mean_abs": 0.683836692, + "psnr_db": 31.508438, + "ref_absmax": 20.6843147, + "rel_max": 0.644783923, + "scaled_max_abs": 0.644783923 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_163" + }, + "status": "fail", + "tap": "net.features.7", + "ungated_probes": { + "band_ratio": 6050.66907, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.909563015, + "finite": true, + "max_abs": 1.75293946, + "mean_abs": 0.155567341, + "psnr_db": 25.3324267, + "ref_absmax": 2.89710021, + "rel_max": 0.605066907, + "scaled_max_abs": 0.605066907 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7362.28403, + "index": 9, + "metrics": { + "corr": 0.599577164, + "finite": true, + "max_abs": 14.3225638, + "mean_abs": 0.849208792, + "psnr_db": 29.683012, + "ref_absmax": 19.453968, + "rel_max": 0.736228403, + "scaled_max_abs": 0.736228403 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_189" + }, + "status": "fail", + "tap": "net.features.8", + "ungated_probes": { + "band_ratio": 6225.07169, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.853557782, + "finite": true, + "max_abs": 2.62825918, + "mean_abs": 0.233080603, + "psnr_db": 25.5918281, + "ref_absmax": 4.22205448, + "rel_max": 0.622507169, + "scaled_max_abs": 0.622507169 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6631.18969, + "index": 10, + "metrics": { + "corr": 0.753788292, + "finite": true, + "max_abs": 2.31738618, + "mean_abs": 0.23954134, + "psnr_db": 26.1584068, + "ref_absmax": 3.49467635, + "rel_max": 0.663118969, + "scaled_max_abs": 0.663118969 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_215" + }, + "status": "fail", + "tap": "net.features.9", + "ungated_probes": { + "band_ratio": 4320.72949, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.946520245, + "finite": true, + "max_abs": 0.50933557, + "mean_abs": 0.0884228945, + "psnr_db": 24.4121309, + "ref_absmax": 1.17881846, + "rel_max": 0.432072949, + "scaled_max_abs": 0.432072949 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7513.62085, + "index": 11, + "metrics": { + "corr": 0.770333821, + "finite": true, + "max_abs": 2.80971783, + "mean_abs": 0.28808246, + "psnr_db": 25.506083, + "ref_absmax": 3.73949909, + "rel_max": 0.751362085, + "scaled_max_abs": 0.751362085 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_241" + }, + "status": "fail", + "tap": "net.features.10", + "ungated_probes": { + "band_ratio": 3990.25618, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.948750178, + "finite": true, + "max_abs": 0.649776205, + "mean_abs": 0.110591969, + "psnr_db": 26.0344051, + "ref_absmax": 1.62840724, + "rel_max": 0.399025618, + "scaled_max_abs": 0.399025618 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7555.36848, + "index": 12, + "metrics": { + "corr": 0.786805434, + "finite": true, + "max_abs": 3.42622727, + "mean_abs": 0.333037783, + "psnr_db": 26.1641513, + "ref_absmax": 4.53482485, + "rel_max": 0.755536848, + "scaled_max_abs": 0.755536848 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_267" + }, + "status": "fail", + "tap": "net.features.11", + "ungated_probes": { + "band_ratio": 5005.19964, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.941706062, + "finite": true, + "max_abs": 0.844570637, + "mean_abs": 0.128390536, + "psnr_db": 25.7533304, + "ref_absmax": 1.68738651, + "rel_max": 0.500519964, + "scaled_max_abs": 0.500519964 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 8713.10386, + "index": 13, + "metrics": { + "corr": 0.752626118, + "finite": true, + "max_abs": 8.80002749, + "mean_abs": 0.196309056, + "psnr_db": 29.1145054, + "ref_absmax": 10.099762, + "rel_max": 0.871310386, + "scaled_max_abs": 0.871310386 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_273" + }, + "status": "fail", + "tap": "net.features.12", + "ungated_probes": { + "band_ratio": 2856.66556, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.940033979, + "finite": true, + "max_abs": 1.61206055, + "mean_abs": 0.0573140061, + "psnr_db": 35.7138747, + "ref_absmax": 5.64315462, + "rel_max": 0.285666556, + "scaled_max_abs": 0.285666556 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_ratio": 2341.74079, + "index": 14, + "metrics": { + "corr": 0.965845689, + "finite": true, + "max_abs": 1.22845596, + "mean_abs": 0.064577327, + "psnr_db": 34.5055978, + "ref_absmax": 5.24590921, + "rel_max": 0.234174079, + "scaled_max_abs": 0.234174079 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 1821.46056, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.976932743, + "finite": true, + "max_abs": 0.340324879, + "mean_abs": 0.0312209954, + "psnr_db": 33.6522937, + "ref_absmax": 1.8684175, + "rel_max": 0.182146056, + "scaled_max_abs": 0.182146056 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 3 + } + }, + { + "band_ratio": 1627.39783, + "index": 15, + "metrics": { + "corr": 0.963739134, + "finite": true, + "max_abs": 3.96836185, + "mean_abs": 0.57445017, + "psnr_db": 33.0960812, + "ref_absmax": 24.3847065, + "rel_max": 0.162739783, + "scaled_max_abs": 0.162739783 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier", + "ungated_probes": { + "band_ratio": 1605.80789, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.973802661, + "finite": true, + "max_abs": 0.85978815, + "mean_abs": 0.222104467, + "psnr_db": 28.8100043, + "ref_absmax": 5.35424042, + "rel_max": 0.160580789, + "scaled_max_abs": 0.160580789 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.625, + "band_ratio": 1520.01599, + "metrics": { + "corr": 0.973850743, + "finite": true, + "max_abs": 2.73985195, + "mean_abs": 0.433899731, + "psnr_db": 33.4352885, + "ref_absmax": 18.0251522, + "rel_max": 0.152001599, + "scaled_max_abs": 0.152001599 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 8 + } + }, + "first_fail_index": 7, + "n_judged": 16, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.08107465e-08, + "psnr_db": 164.245493, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.00112572895, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.38418579e-07, + "mean_abs": 4.66724468e-08, + "psnr_db": 130.436578, + "ref_absmax": 2.11790395, + "rel_max": 1.12572895e-07, + "scaled_max_abs": 1.12572895e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00361072193, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.10351562e-05, + "mean_abs": 3.23075084e-07, + "psnr_db": 165.187819, + "ref_absmax": 169.038651, + "rel_max": 3.61072193e-07, + "scaled_max_abs": 3.61072193e-07 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_7" + }, + "status": "pass", + "tap": "net.features.0", + "ungated_probes": { + "band_ratio": 0.00301177623, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-06, + "mean_abs": 3.57725008e-07, + "psnr_db": 154.82564, + "ref_absmax": 31.6648464, + "rel_max": 3.01177623e-07, + "scaled_max_abs": 3.01177623e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0153937664, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.87241554e-05, + "mean_abs": 1.68878429e-06, + "psnr_db": 146.318516, + "ref_absmax": 44.644146, + "rel_max": 1.53937664e-06, + "scaled_max_abs": 1.53937664e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_27" + }, + "status": "pass", + "tap": "net.features.1", + "ungated_probes": { + "band_ratio": 0.055234557, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.04715538e-05, + "mean_abs": 2.20760109e-06, + "psnr_db": 131.255547, + "ref_absmax": 7.32721615, + "rel_max": 5.5234557e-06, + "scaled_max_abs": 5.5234557e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0136285048, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.17232513e-05, + "mean_abs": 2.43601888e-06, + "psnr_db": 142.906833, + "ref_absmax": 30.6146946, + "rel_max": 1.36285048e-06, + "scaled_max_abs": 1.36285048e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_43" + }, + "status": "pass", + "tap": "net.features.2", + "ungated_probes": { + "band_ratio": 0.0861525833, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.71336937e-05, + "mean_abs": 3.88479582e-06, + "psnr_db": 122.05109, + "ref_absmax": 4.31022406, + "rel_max": 8.61525833e-06, + "scaled_max_abs": 8.61525833e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0355349915, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.29832458e-05, + "mean_abs": 4.135614e-06, + "psnr_db": 138.490513, + "ref_absmax": 26.1666718, + "rel_max": 3.55349915e-06, + "scaled_max_abs": 3.55349915e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59" + }, + "status": "pass", + "tap": "net.features.3", + "ungated_probes": { + "band_ratio": 0.253806711, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000170946121, + "mean_abs": 1.23293088e-05, + "psnr_db": 115.888091, + "ref_absmax": 6.73528767, + "rel_max": 2.53806711e-05, + "scaled_max_abs": 2.53806711e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0155269085, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.02791595e-05, + "mean_abs": 2.25469907e-06, + "psnr_db": 140.112892, + "ref_absmax": 19.5010872, + "rel_max": 1.55269085e-06, + "scaled_max_abs": 1.55269085e-06 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85" + }, + "status": "pass", + "tap": "net.features.4", + "ungated_probes": { + "band_ratio": 0.273572341, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.10623169e-05, + "mean_abs": 7.7233452e-06, + "psnr_db": 115.367168, + "ref_absmax": 2.96310353, + "rel_max": 2.73572341e-05, + "scaled_max_abs": 2.73572341e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0244400856, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.34329224e-05, + "mean_abs": 3.53038242e-06, + "psnr_db": 138.023101, + "ref_absmax": 30.0460987, + "rel_max": 2.44400856e-06, + "scaled_max_abs": 2.44400856e-06 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_111" + }, + "status": "pass", + "tap": "net.features.5", + "ungated_probes": { + "band_ratio": 0.579499244, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000144124031, + "mean_abs": 1.20314098e-05, + "psnr_db": 109.823176, + "ref_absmax": 2.48704433, + "rel_max": 5.79499244e-05, + "scaled_max_abs": 5.79499244e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 8249.98191, + "index": 7, + "metrics": { + "corr": 0.832077985, + "finite": true, + "max_abs": 55.8360415, + "mean_abs": 1.20337084, + "psnr_db": 36.1290825, + "ref_absmax": 67.6801987, + "rel_max": 0.824998191, + "scaled_max_abs": 0.824998191 + }, + "op": { + "candidates": 4, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_137" + }, + "status": "fail", + "tap": "net.features.6", + "ungated_probes": { + "band_ratio": 10829.6792, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.781412109, + "finite": true, + "max_abs": 5.98117065, + "mean_abs": 0.352587243, + "psnr_db": 21.6692416, + "ref_absmax": 5.5229435, + "rel_max": 1.08296792, + "scaled_max_abs": 1.08296792 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6166.2458, + "index": 8, + "metrics": { + "corr": 0.630540692, + "finite": true, + "max_abs": 10.6584393, + "mean_abs": 0.677315118, + "psnr_db": 30.4834515, + "ref_absmax": 17.2851353, + "rel_max": 0.61662458, + "scaled_max_abs": 0.61662458 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_163" + }, + "status": "fail", + "tap": "net.features.7", + "ungated_probes": { + "band_ratio": 6235.37435, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.913263911, + "finite": true, + "max_abs": 1.85842031, + "mean_abs": 0.140964559, + "psnr_db": 26.2608803, + "ref_absmax": 2.98044705, + "rel_max": 0.623537435, + "scaled_max_abs": 0.623537435 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6552.52309, + "index": 9, + "metrics": { + "corr": 0.561910805, + "finite": true, + "max_abs": 10.9576791, + "mean_abs": 0.833242035, + "psnr_db": 28.8133605, + "ref_absmax": 16.7228394, + "rel_max": 0.655252309, + "scaled_max_abs": 0.655252309 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_189" + }, + "status": "fail", + "tap": "net.features.8", + "ungated_probes": { + "band_ratio": 5630.69027, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.858817787, + "finite": true, + "max_abs": 2.63934982, + "mean_abs": 0.214826354, + "psnr_db": 26.3973974, + "ref_absmax": 4.68743563, + "rel_max": 0.563069027, + "scaled_max_abs": 0.563069027 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9945.89532, + "index": 10, + "metrics": { + "corr": 0.750201661, + "finite": true, + "max_abs": 2.69310558, + "mean_abs": 0.234866881, + "psnr_db": 24.2269515, + "ref_absmax": 2.7077558, + "rel_max": 0.994589532, + "scaled_max_abs": 0.994589532 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_215" + }, + "status": "fail", + "tap": "net.features.9", + "ungated_probes": { + "band_ratio": 4387.20808, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.945696853, + "finite": true, + "max_abs": 0.533456296, + "mean_abs": 0.0858844794, + "psnr_db": 24.6364396, + "ref_absmax": 1.21593571, + "rel_max": 0.438720808, + "scaled_max_abs": 0.438720808 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7865.50311, + "index": 11, + "metrics": { + "corr": 0.765816709, + "finite": true, + "max_abs": 2.58410776, + "mean_abs": 0.289569997, + "psnr_db": 23.9568546, + "ref_absmax": 3.28536868, + "rel_max": 0.786550311, + "scaled_max_abs": 0.786550311 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_241" + }, + "status": "fail", + "tap": "net.features.10", + "ungated_probes": { + "band_ratio": 4213.36974, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.946721069, + "finite": true, + "max_abs": 0.73315537, + "mean_abs": 0.111982766, + "psnr_db": 26.1334187, + "ref_absmax": 1.74006891, + "rel_max": 0.421336974, + "scaled_max_abs": 0.421336974 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9032.70449, + "index": 12, + "metrics": { + "corr": 0.789560829, + "finite": true, + "max_abs": 3.58561136, + "mean_abs": 0.326330593, + "psnr_db": 24.7147161, + "ref_absmax": 3.9695878, + "rel_max": 0.903270449, + "scaled_max_abs": 0.903270449 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_267" + }, + "status": "fail", + "tap": "net.features.11", + "ungated_probes": { + "band_ratio": 5666.59496, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.940618083, + "finite": true, + "max_abs": 1.03192908, + "mean_abs": 0.131127729, + "psnr_db": 25.9822126, + "ref_absmax": 1.82107437, + "rel_max": 0.566659496, + "scaled_max_abs": 0.566659496 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "uniform", + "index": 17 + } + }, + { + "band_ratio": 7446.0646, + "index": 13, + "metrics": { + "corr": 0.754682505, + "finite": true, + "max_abs": 6.89362511, + "mean_abs": 0.185388669, + "psnr_db": 28.8767303, + "ref_absmax": 9.25807858, + "rel_max": 0.74460646, + "scaled_max_abs": 0.74460646 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_273" + }, + "status": "fail", + "tap": "net.features.12", + "ungated_probes": { + "band_ratio": 3822.75052, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.932576713, + "finite": true, + "max_abs": 2.35889065, + "mean_abs": 0.0580208242, + "psnr_db": 36.0043297, + "ref_absmax": 6.17066336, + "rel_max": 0.382275052, + "scaled_max_abs": 0.382275052 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "uniform", + "index": 17 + } + }, + { + "band_ratio": 1470.68784, + "index": 14, + "metrics": { + "corr": 0.974922476, + "finite": true, + "max_abs": 0.763213992, + "mean_abs": 0.0545803828, + "psnr_db": 36.023935, + "ref_absmax": 5.18950367, + "rel_max": 0.147068784, + "scaled_max_abs": 0.147068784 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 1707.78203, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.973719597, + "finite": true, + "max_abs": 0.336204767, + "mean_abs": 0.0315901776, + "psnr_db": 33.9475312, + "ref_absmax": 1.96866322, + "rel_max": 0.170778203, + "scaled_max_abs": 0.170778203 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 2 + } + }, + { + "band_ratio": 1520.01599, + "index": 15, + "metrics": { + "corr": 0.973875491, + "finite": true, + "max_abs": 2.73985195, + "mean_abs": 0.46184873, + "psnr_db": 33.0127344, + "ref_absmax": 18.0251522, + "rel_max": 0.152001599, + "scaled_max_abs": 0.152001599 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier", + "ungated_probes": { + "band_ratio": 1804.09817, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.970861689, + "finite": true, + "max_abs": 0.938319758, + "mean_abs": 0.238256738, + "psnr_db": 28.1154978, + "ref_absmax": 5.20104599, + "rel_max": 0.180409817, + "scaled_max_abs": 0.180409817 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 8 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp32", + "id": "mobilenet_v3_small__layout_swap__coreml_fp32", + "model": "mobilenet_v3_small", + "path": "coreml", + "variant": "layout_swap" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/mobilenet_v3_small__layout_swap__litert_fp16.json b/bench/verdicts_calibrated4/mobilenet_v3_small__layout_swap__litert_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..dce4cc0a57ecc26dd37e62af3ef8f5c613bc13d8 --- /dev/null +++ b/bench/verdicts_calibrated4/mobilenet_v3_small__layout_swap__litert_fp16.json @@ -0,0 +1,1381 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "baseline": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "faithful_output_rel_max": 0.0347403663, + "output_band": 0.0694807327, + "source": { + "bundle": "bundles/mobilenet_v3_small__clean__litert_fp16.json", + "case": "mobilenet_v3_small__clean__litert_fp16", + "digests": { + "192": { + "converted": "c1e0d3f6eacceb0f07eea7aaf062f75a642b665785bf323c4ed798c4c424167a", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "e68287c6bf447d1c5af1840f2957e8f25a438b576d35374a5a1e6bfa57051ad5", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + } + } + }, + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "reason": "first divergence at tap 8 is beyond the hypothesis taps (first 3) \u2014 interface faults surface earlier", + "status": "not_evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 0.000911087498, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000173091888, + "mean_abs": 7.93089959e-06, + "psnr_db": 124.261647, + "ref_absmax": 18.9983826, + "rel_max": 9.11087498e-06, + "scaled_max_abs": 9.11087498e-06 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 117, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 1, + "n_ops_total": 170, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_7/torch.nn.modules.container.Sequential_block/t", + "basis": "earliest tap over band with in-band predecessors (fp16: the tap's faithful envelope gates, C3-1)", + "index": 8, + "neighbourhood": [ + { + "band_ratio": 0.292023152, + "index": 7, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/zoo.HWSwap_6/torchvision.models.mobilenetv3.InvertedResidual_inner;" + }, + "status": "pass", + "tap": "net.features.6" + }, + { + "band_ratio": 18.2178239, + "index": 8, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_7/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.7" + }, + { + "band_ratio": 13.7464446, + "index": 9, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_8;" + }, + "status": "fail", + "tap": "net.features.8" + } + ], + "shape": 224, + "tap": "net.features.7" + }, + "fp16_floor": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "baseline": { + "bundle": "bundles/mobilenet_v3_small__clean__litert_fp16.json", + "case": "mobilenet_v3_small__clean__litert_fp16", + "digests": { + "192": { + "converted": "c1e0d3f6eacceb0f07eea7aaf062f75a642b665785bf323c4ed798c4c424167a", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "e68287c6bf447d1c5af1840f2957e8f25a438b576d35374a5a1e6bfa57051ad5", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + } + }, + "envelopes_gate": true, + "faithful_output_rel_max": 0.0347403663, + "faithful_tap_rel_max": { + "net.avgpool": 0.0392971952, + "net.classifier": 0.0347403663, + "net.features.0": 0.000915032087, + "net.features.1": 0.000755872648, + "net.features.10": 0.0518188833, + "net.features.11": 0.076462924, + "net.features.12": 0.0775258635, + "net.features.2": 0.0015302635, + "net.features.3": 0.00279809812, + "net.features.4": 0.00289036457, + "net.features.5": 0.00403152459, + "net.features.6": 0.00394882259, + "net.features.7": 0.0169154072, + "net.features.8": 0.0238189477, + "net.features.9": 0.0426980192, + "normalize": 8.27203959e-08 + }, + "floor": 0.01, + "k": 2.0, + "output_band": 0.0694807327, + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used", + "tap_envelopes": { + "net.avgpool": 0.0785943904, + "net.classifier": 0.0694807327, + "net.features.0": 0.01, + "net.features.1": 0.01, + "net.features.10": 0.103637767, + "net.features.11": 0.152925848, + "net.features.12": 0.155051727, + "net.features.2": 0.01, + "net.features.3": 0.01, + "net.features.4": 0.01, + "net.features.5": 0.01, + "net.features.6": 0.01, + "net.features.7": 0.0338308144, + "net.features.8": 0.0476378955, + "net.features.9": 0.0853960383, + "normalize": 0.01 + } + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "6d24192206804b830c6ac3b3ace08fd3001ce6e83bf79d254f7116fde24f965e", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "8cb7f246b5e80296c972d0e5ae61411c6510ba8367f400252cfcd0e072d3fda5", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D2", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.34375, + "band_limit": 0.0694807327, + "band_ratio": 2.34133565, + "metrics": { + "corr": 0.964457426, + "finite": true, + "max_abs": 3.96684837, + "mean_abs": 0.533774297, + "psnr_db": 33.5569774, + "ref_absmax": 24.3847065, + "rel_max": 0.162677717, + "scaled_max_abs": 0.162677717 + }, + "per_op_band_ratio": 16.2677717, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 8, + "n_judged": 16, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 8.27203959e-06, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.26638033e-08, + "psnr_db": 163.904618, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "per_op_band_ratio": 8.27203959e-06, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0915032087, + "index": 1, + "metrics": { + "corr": 0.999999786, + "finite": true, + "max_abs": 0.173885822, + "mean_abs": 0.000502268084, + "psnr_db": 96.9119524, + "ref_absmax": 190.032486, + "rel_max": 0.000915032087, + "scaled_max_abs": 0.000915032087 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_0/torch.nn.modules.activation.Hardswish_2;" + }, + "per_op_band_ratio": 0.0915032087, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0727773511, + "index": 2, + "metrics": { + "corr": 0.999999501, + "finite": true, + "max_abs": 0.03307724, + "mean_abs": 0.00172972956, + "psnr_db": 89.9446481, + "ref_absmax": 45.4499092, + "rel_max": 0.000727773511, + "scaled_max_abs": 0.000727773511 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_1/torch.nn.modules.container.Sequential_block/t" + }, + "per_op_band_ratio": 0.0727773511, + "status": "pass", + "tap": "net.features.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.15302635, + "index": 3, + "metrics": { + "corr": 0.99999802, + "finite": true, + "max_abs": 0.0396288037, + "mean_abs": 0.00251701601, + "psnr_db": 80.5863503, + "ref_absmax": 25.896719, + "rel_max": 0.0015302635, + "scaled_max_abs": 0.0015302635 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_2/torch.nn.modules.container.Sequential_block/t" + }, + "per_op_band_ratio": 0.15302635, + "status": "pass", + "tap": "net.features.2" + }, + { + "band_limit": 0.01, + "band_ratio": 0.244577705, + "index": 4, + "metrics": { + "corr": 0.999994624, + "finite": true, + "max_abs": 0.0628845692, + "mean_abs": 0.00432135067, + "psnr_db": 76.8433382, + "ref_absmax": 25.7114887, + "rel_max": 0.00244577705, + "scaled_max_abs": 0.00244577705 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_3;" + }, + "per_op_band_ratio": 0.244577705, + "status": "pass", + "tap": "net.features.3" + }, + { + "band_limit": 0.01, + "band_ratio": 0.273230174, + "index": 5, + "metrics": { + "corr": 0.999981879, + "finite": true, + "max_abs": 0.0467441082, + "mean_abs": 0.0038035588, + "psnr_db": 72.274713, + "ref_absmax": 17.1079597, + "rel_max": 0.00273230174, + "scaled_max_abs": 0.00273230174 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_4/torch.nn.modules.container.Sequential_block/t" + }, + "per_op_band_ratio": 0.273230174, + "status": "pass", + "tap": "net.features.4" + }, + { + "band_limit": 0.01, + "band_ratio": 0.403152459, + "index": 6, + "metrics": { + "corr": 0.999956004, + "finite": true, + "max_abs": 0.0899780989, + "mean_abs": 0.00600733947, + "psnr_db": 69.8085829, + "ref_absmax": 22.3186283, + "rel_max": 0.00403152459, + "scaled_max_abs": 0.00403152459 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_5;" + }, + "per_op_band_ratio": 0.403152459, + "status": "pass", + "tap": "net.features.5" + }, + { + "band_limit": 0.01, + "band_ratio": 0.394882259, + "index": 7, + "metrics": { + "corr": 0.999974444, + "finite": true, + "max_abs": 0.247867882, + "mean_abs": 0.0121702154, + "psnr_db": 73.0406073, + "ref_absmax": 62.7700729, + "rel_max": 0.00394882259, + "scaled_max_abs": 0.00394882259 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/zoo.HWSwap_6/torchvision.models.mobilenetv3.InvertedResidual_inner;" + }, + "per_op_band_ratio": 0.394882259, + "status": "pass", + "tap": "net.features.6" + }, + { + "band_limit": 0.0338308144, + "band_ratio": 18.9888349, + "index": 8, + "metrics": { + "corr": 0.680538763, + "finite": true, + "max_abs": 13.2877641, + "mean_abs": 0.618094969, + "psnr_db": 32.0398385, + "ref_absmax": 20.6843147, + "rel_max": 0.642407749, + "scaled_max_abs": 0.642407749 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_7/torch.nn.modules.container.Sequential_block/t" + }, + "per_op_band_ratio": 64.2407749, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.0476378955, + "band_ratio": 15.4155804, + "index": 9, + "metrics": { + "corr": 0.610860656, + "finite": true, + "max_abs": 14.286329, + "mean_abs": 0.772608053, + "psnr_db": 30.1896007, + "ref_absmax": 19.453968, + "rel_max": 0.734365808, + "scaled_max_abs": 0.734365808 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_8;" + }, + "per_op_band_ratio": 73.4365808, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.0853960383, + "band_ratio": 7.74061476, + "index": 10, + "metrics": { + "corr": 0.771180541, + "finite": true, + "max_abs": 2.31004339, + "mean_abs": 0.220800071, + "psnr_db": 26.6452742, + "ref_absmax": 3.49467635, + "rel_max": 0.661017835, + "scaled_max_abs": 0.661017835 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_9/torch.nn.modules.container.Sequential_block/t" + }, + "per_op_band_ratio": 66.1017835, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.103637767, + "band_ratio": 7.23260099, + "index": 11, + "metrics": { + "corr": 0.785519837, + "finite": true, + "max_abs": 2.80301863, + "mean_abs": 0.266153851, + "psnr_db": 25.9913879, + "ref_absmax": 3.73949909, + "rel_max": 0.749570614, + "scaled_max_abs": 0.749570614 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_10;" + }, + "per_op_band_ratio": 74.9570614, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.152925848, + "band_ratio": 4.91867993, + "index": 12, + "metrics": { + "corr": 0.797907187, + "finite": true, + "max_abs": 3.41106486, + "mean_abs": 0.307795362, + "psnr_db": 26.6452156, + "ref_absmax": 4.53482485, + "rel_max": 0.752193299, + "scaled_max_abs": 0.752193299 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_11;" + }, + "per_op_band_ratio": 75.2193299, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.155051727, + "band_ratio": 5.6409502, + "index": 13, + "metrics": { + "corr": 0.762391819, + "finite": true, + "max_abs": 8.83364642, + "mean_abs": 0.179010941, + "psnr_db": 29.6513694, + "ref_absmax": 10.099762, + "rel_max": 0.874639071, + "scaled_max_abs": 0.874639071 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_12/torch.nn.modules.activation.Hardswish_2;" + }, + "per_op_band_ratio": 87.4639071, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_limit": 0.0785943904, + "band_ratio": 2.99527687, + "index": 14, + "metrics": { + "corr": 0.966690057, + "finite": true, + "max_abs": 1.23494977, + "mean_abs": 0.0605709507, + "psnr_db": 34.9696828, + "ref_absmax": 5.24590921, + "rel_max": 0.23541196, + "scaled_max_abs": 0.23541196 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;;zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Seque" + }, + "per_op_band_ratio": 23.541196, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "natural", + "index": 3 + } + }, + { + "band_limit": 0.0694807327, + "band_ratio": 2.34133565, + "index": 15, + "metrics": { + "corr": 0.964457426, + "finite": true, + "max_abs": 3.96684837, + "mean_abs": 0.533774297, + "psnr_db": 33.5569774, + "ref_absmax": 24.3847065, + "rel_max": 0.162677717, + "scaled_max_abs": 0.162677717 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "per_op_band_ratio": 16.2677717, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.625, + "band_limit": 0.0694807327, + "band_ratio": 2.18983806, + "metrics": { + "corr": 0.973580909, + "finite": true, + "max_abs": 2.7425549, + "mean_abs": 0.437478455, + "psnr_db": 33.3833201, + "ref_absmax": 18.0251522, + "rel_max": 0.152151553, + "scaled_max_abs": 0.152151553 + }, + "per_op_band_ratio": 15.2151553, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 8 + } + }, + "first_fail_index": 8, + "n_judged": 16, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 8.27203959e-06, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.2793459e-08, + "psnr_db": 164.013874, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "per_op_band_ratio": 8.27203959e-06, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0868202319, + "index": 1, + "metrics": { + "corr": 0.999999767, + "finite": true, + "max_abs": 0.146759748, + "mean_abs": 0.000503267604, + "psnr_db": 96.0452891, + "ref_absmax": 169.038651, + "rel_max": 0.000868202319, + "scaled_max_abs": 0.000868202319 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_0/torch.nn.modules.activation.Hardswish_2;" + }, + "per_op_band_ratio": 0.0868202319, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0755872648, + "index": 2, + "metrics": { + "corr": 0.999999435, + "finite": true, + "max_abs": 0.0337452888, + "mean_abs": 0.00172548561, + "psnr_db": 89.4320948, + "ref_absmax": 44.644146, + "rel_max": 0.000755872648, + "scaled_max_abs": 0.000755872648 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_1/torch.nn.modules.container.Sequential_block/t" + }, + "per_op_band_ratio": 0.0755872648, + "status": "pass", + "tap": "net.features.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.127885996, + "index": 3, + "metrics": { + "corr": 0.999997629, + "finite": true, + "max_abs": 0.039151907, + "mean_abs": 0.00258047824, + "psnr_db": 81.5125813, + "ref_absmax": 30.6146946, + "rel_max": 0.00127885996, + "scaled_max_abs": 0.00127885996 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_2/torch.nn.modules.container.Sequential_block/t" + }, + "per_op_band_ratio": 0.127885996, + "status": "pass", + "tap": "net.features.2" + }, + { + "band_limit": 0.01, + "band_ratio": 0.279809812, + "index": 4, + "metrics": { + "corr": 0.999994277, + "finite": true, + "max_abs": 0.0732169151, + "mean_abs": 0.00442955329, + "psnr_db": 76.6613702, + "ref_absmax": 26.1666718, + "rel_max": 0.00279809812, + "scaled_max_abs": 0.00279809812 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_3;" + }, + "per_op_band_ratio": 0.279809812, + "status": "pass", + "tap": "net.features.3" + }, + { + "band_limit": 0.01, + "band_ratio": 0.289036457, + "index": 5, + "metrics": { + "corr": 0.999980992, + "finite": true, + "max_abs": 0.0563652515, + "mean_abs": 0.00400878569, + "psnr_db": 72.9879694, + "ref_absmax": 19.5010872, + "rel_max": 0.00289036457, + "scaled_max_abs": 0.00289036457 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_4/torch.nn.modules.container.Sequential_block/t" + }, + "per_op_band_ratio": 0.289036457, + "status": "pass", + "tap": "net.features.4" + }, + { + "band_limit": 0.01, + "band_ratio": 0.310832262, + "index": 6, + "metrics": { + "corr": 0.999956355, + "finite": true, + "max_abs": 0.0933929682, + "mean_abs": 0.00625826495, + "psnr_db": 71.6653247, + "ref_absmax": 30.0460987, + "rel_max": 0.00310832262, + "scaled_max_abs": 0.00310832262 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_5;" + }, + "per_op_band_ratio": 0.310832262, + "status": "pass", + "tap": "net.features.5" + }, + { + "band_limit": 0.01, + "band_ratio": 0.292023152, + "index": 7, + "metrics": { + "corr": 0.999987205, + "finite": true, + "max_abs": 0.19764185, + "mean_abs": 0.00882840116, + "psnr_db": 77.7884462, + "ref_absmax": 67.6801987, + "rel_max": 0.00292023152, + "scaled_max_abs": 0.00292023152 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/zoo.HWSwap_6/torchvision.models.mobilenetv3.InvertedResidual_inner;" + }, + "per_op_band_ratio": 0.292023152, + "status": "pass", + "tap": "net.features.6" + }, + { + "band_limit": 0.0338308144, + "band_ratio": 18.2178239, + "index": 8, + "metrics": { + "corr": 0.643084313, + "finite": true, + "max_abs": 10.6532406, + "mean_abs": 0.610727632, + "psnr_db": 31.0113026, + "ref_absmax": 17.2851353, + "rel_max": 0.616323818, + "scaled_max_abs": 0.616323818 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_7/torch.nn.modules.container.Sequential_block/t" + }, + "per_op_band_ratio": 61.6323818, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.0476378955, + "band_ratio": 13.7464446, + "index": 9, + "metrics": { + "corr": 0.576588924, + "finite": true, + "max_abs": 10.9509797, + "mean_abs": 0.756522413, + "psnr_db": 29.3157056, + "ref_absmax": 16.7228394, + "rel_max": 0.654851692, + "scaled_max_abs": 0.654851692 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_8;" + }, + "per_op_band_ratio": 65.4851692, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.0853960383, + "band_ratio": 11.762862, + "index": 10, + "metrics": { + "corr": 0.769068354, + "finite": true, + "max_abs": 2.71994561, + "mean_abs": 0.216404919, + "psnr_db": 24.70265, + "ref_absmax": 2.7077558, + "rel_max": 1.00450181, + "scaled_max_abs": 1.00450181 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_9/torch.nn.modules.container.Sequential_block/t" + }, + "per_op_band_ratio": 100.450181, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.103637767, + "band_ratio": 7.612096, + "index": 11, + "metrics": { + "corr": 0.781531927, + "finite": true, + "max_abs": 2.59182942, + "mean_abs": 0.267854646, + "psnr_db": 24.4251178, + "ref_absmax": 3.28536868, + "rel_max": 0.788900629, + "scaled_max_abs": 0.788900629 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_10;" + }, + "per_op_band_ratio": 78.8900629, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.152925848, + "band_ratio": 5.89460441, + "index": 12, + "metrics": { + "corr": 0.800788093, + "finite": true, + "max_abs": 3.57833482, + "mean_abs": 0.302640747, + "psnr_db": 25.173937, + "ref_absmax": 3.9695878, + "rel_max": 0.901437379, + "scaled_max_abs": 0.901437379 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_11;" + }, + "per_op_band_ratio": 90.1437379, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "uniform", + "index": 17 + } + }, + { + "band_limit": 0.155051727, + "band_ratio": 4.80432401, + "index": 13, + "metrics": { + "corr": 0.763877768, + "finite": true, + "max_abs": 6.89651617, + "mean_abs": 0.169883306, + "psnr_db": 29.3853114, + "ref_absmax": 9.25807858, + "rel_max": 0.744918734, + "scaled_max_abs": 0.744918734 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_12/torch.nn.modules.activation.Hardswish_2;" + }, + "per_op_band_ratio": 74.4918734, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "uniform", + "index": 17 + } + }, + { + "band_limit": 0.0785943904, + "band_ratio": 1.86022983, + "index": 14, + "metrics": { + "corr": 0.974805249, + "finite": true, + "max_abs": 0.758724272, + "mean_abs": 0.052067962, + "psnr_db": 36.3691868, + "ref_absmax": 5.18950367, + "rel_max": 0.14620363, + "scaled_max_abs": 0.14620363 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;;zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Seque" + }, + "per_op_band_ratio": 14.620363, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "natural", + "index": 2 + } + }, + { + "band_limit": 0.0694807327, + "band_ratio": 2.18983806, + "index": 15, + "metrics": { + "corr": 0.973580909, + "finite": true, + "max_abs": 2.7425549, + "mean_abs": 0.437478455, + "psnr_db": 33.3833201, + "ref_absmax": 18.0251522, + "rel_max": 0.152151553, + "scaled_max_abs": 0.152151553 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "per_op_band_ratio": 15.2151553, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "natural", + "index": 8 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp16", + "id": "mobilenet_v3_small__layout_swap__litert_fp16", + "model": "mobilenet_v3_small", + "path": "litert", + "variant": "layout_swap" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/mobilenet_v3_small__layout_swap__litert_fp32.json b/bench/verdicts_calibrated4/mobilenet_v3_small__layout_swap__litert_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..18a4f90a9b92fe908a0e9f30d800ce3c40635e54 --- /dev/null +++ b/bench/verdicts_calibrated4/mobilenet_v3_small__layout_swap__litert_fp32.json @@ -0,0 +1,1786 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "reason": "first divergence at tap 8 is beyond the hypothesis taps (first 3) \u2014 interface faults surface earlier", + "status": "not_evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 0.0547518365, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0001039505, + "mean_abs": 5.58531939e-06, + "psnr_db": 129.217231, + "ref_absmax": 18.9857559, + "rel_max": 5.47518365e-06, + "scaled_max_abs": 5.47518365e-06 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 117, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 1, + "n_ops_total": 116, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_7/torch.nn.modules.container.Sequential_block/t", + "basis": "earliest tap over band with in-band predecessors", + "index": 8, + "neighbourhood": [ + { + "band_ratio": 0.0154295259, + "index": 7, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/zoo.HWSwap_6/torchvision.models.mobilenetv3.InvertedResidual_inner;" + }, + "status": "pass", + "tap": "net.features.6" + }, + { + "band_ratio": 6166.24159, + "index": 8, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_7/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.7" + }, + { + "band_ratio": 6552.51795, + "index": 9, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_8;" + }, + "status": "fail", + "tap": "net.features.8" + } + ], + "shape": 224, + "tap": "net.features.7" + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "c13f8a5796b6667b528c1a82cbb22bc58f4a35b40ef1970022c02fe4b2ed4d61", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "6a328f36a304e374e80b64e51f4bef2e3b3720a1b6479502e7647343aa40b742", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "fp32 per-tap band on near-zero probes", + "reason": "C3-2: per-tap fp32 checks gate without the near_zero probes; they are measured and reported per tap ('ungated_probes'); the output gates on all probes. C4-1: when the output has failed and no gated tap fails, they localise the first divergence (earliest tap over band on all probes)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D2", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.34375, + "band_ratio": 1627.42091, + "metrics": { + "corr": 0.964539966, + "finite": true, + "max_abs": 3.96841812, + "mean_abs": 0.530407957, + "psnr_db": 33.5907431, + "ref_absmax": 24.3847065, + "rel_max": 0.162742091, + "scaled_max_abs": 0.162742091 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 8, + "n_judged": 16, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.06644368e-08, + "psnr_db": 164.113247, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.00112572895, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.38418579e-07, + "mean_abs": 4.66593688e-08, + "psnr_db": 130.397207, + "ref_absmax": 2.11790395, + "rel_max": 1.12572895e-07, + "scaled_max_abs": 1.12572895e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00421552358, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.01086426e-05, + "mean_abs": 2.23370674e-07, + "psnr_db": 165.657432, + "ref_absmax": 190.032486, + "rel_max": 4.21552358e-07, + "scaled_max_abs": 4.21552358e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_0/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "pass", + "tap": "net.features.0", + "ungated_probes": { + "band_ratio": 0.00361820398, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.14440918e-05, + "mean_abs": 2.56149109e-07, + "psnr_db": 155.713417, + "ref_absmax": 31.6292057, + "rel_max": 3.61820398e-07, + "scaled_max_abs": 3.61820398e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00902267932, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.10079956e-05, + "mean_abs": 9.67378308e-07, + "psnr_db": 153.228025, + "ref_absmax": 45.4499092, + "rel_max": 9.02267932e-07, + "scaled_max_abs": 9.02267932e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_1/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.1", + "ungated_probes": { + "band_ratio": 0.025039569, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.83582306e-05, + "mean_abs": 1.29241986e-06, + "psnr_db": 136.937056, + "ref_absmax": 7.33168793, + "rel_max": 2.5039569e-06, + "scaled_max_abs": 2.5039569e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0102192337, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.64644623e-05, + "mean_abs": 1.372611e-06, + "psnr_db": 146.859391, + "ref_absmax": 25.896719, + "rel_max": 1.02192337e-06, + "scaled_max_abs": 1.02192337e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_2/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.2", + "ungated_probes": { + "band_ratio": 0.0581152912, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.50339508e-05, + "mean_abs": 2.65888499e-06, + "psnr_db": 125.664736, + "ref_absmax": 4.30763578, + "rel_max": 5.81152912e-06, + "scaled_max_abs": 5.81152912e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0246657604, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.3419342e-05, + "mean_abs": 2.49627755e-06, + "psnr_db": 142.510585, + "ref_absmax": 25.7114887, + "rel_max": 2.46657604e-06, + "scaled_max_abs": 2.46657604e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_3;" + }, + "status": "pass", + "tap": "net.features.3", + "ungated_probes": { + "band_ratio": 0.122535583, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.24928284e-05, + "mean_abs": 7.32266306e-06, + "psnr_db": 120.811448, + "ref_absmax": 6.73215294, + "rel_max": 1.22535583e-05, + "scaled_max_abs": 1.22535583e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0202770545, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.46899033e-05, + "mean_abs": 1.53729991e-06, + "psnr_db": 141.607714, + "ref_absmax": 17.1079597, + "rel_max": 2.02770545e-06, + "scaled_max_abs": 2.02770545e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_4/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.4", + "ungated_probes": { + "band_ratio": 0.136702185, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.00543213e-05, + "mean_abs": 5.31280869e-06, + "psnr_db": 118.349861, + "ref_absmax": 2.93004251, + "rel_max": 1.36702185e-05, + "scaled_max_abs": 1.36702185e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0216320473, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.82797623e-05, + "mean_abs": 2.23640806e-06, + "psnr_db": 139.894542, + "ref_absmax": 22.3186283, + "rel_max": 2.16320473e-06, + "scaled_max_abs": 2.16320473e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_5;" + }, + "status": "pass", + "tap": "net.features.5", + "ungated_probes": { + "band_ratio": 0.196906272, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.67436218e-05, + "mean_abs": 8.17938514e-06, + "psnr_db": 114.200378, + "ref_absmax": 2.88175797, + "rel_max": 1.96906272e-05, + "scaled_max_abs": 1.96906272e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0144334801, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.05990601e-05, + "mean_abs": 4.67391164e-06, + "psnr_db": 142.305302, + "ref_absmax": 62.7700729, + "rel_max": 1.44334801e-06, + "scaled_max_abs": 1.44334801e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/zoo.HWSwap_6/torchvision.models.mobilenetv3.InvertedResidual_inner;" + }, + "status": "pass", + "tap": "net.features.6", + "ungated_probes": { + "band_ratio": 0.134252059, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.34329224e-05, + "mean_abs": 1.08538985e-05, + "psnr_db": 117.608597, + "ref_absmax": 5.46977997, + "rel_max": 1.34252059e-05, + "scaled_max_abs": 1.34252059e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 6447.83969, + "index": 8, + "metrics": { + "corr": 0.671104254, + "finite": true, + "max_abs": 13.3369145, + "mean_abs": 0.683836803, + "psnr_db": 31.5084363, + "ref_absmax": 20.6843147, + "rel_max": 0.644783969, + "scaled_max_abs": 0.644783969 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_7/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.7", + "ungated_probes": { + "band_ratio": 6050.66845, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.909562899, + "finite": true, + "max_abs": 1.75293928, + "mean_abs": 0.155567546, + "psnr_db": 25.3324171, + "ref_absmax": 2.89710021, + "rel_max": 0.605066845, + "scaled_max_abs": 0.605066845 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7362.28501, + "index": 9, + "metrics": { + "corr": 0.59957728, + "finite": true, + "max_abs": 14.3225657, + "mean_abs": 0.849208829, + "psnr_db": 29.6830112, + "ref_absmax": 19.453968, + "rel_max": 0.736228501, + "scaled_max_abs": 0.736228501 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_8;" + }, + "status": "fail", + "tap": "net.features.8", + "ungated_probes": { + "band_ratio": 6225.08524, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.853557403, + "finite": true, + "max_abs": 2.6282649, + "mean_abs": 0.233080882, + "psnr_db": 25.5918112, + "ref_absmax": 4.22205448, + "rel_max": 0.622508524, + "scaled_max_abs": 0.622508524 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6631.1902, + "index": 10, + "metrics": { + "corr": 0.753788307, + "finite": true, + "max_abs": 2.31738636, + "mean_abs": 0.239541377, + "psnr_db": 26.1584059, + "ref_absmax": 3.49467635, + "rel_max": 0.66311902, + "scaled_max_abs": 0.66311902 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_9/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.9", + "ungated_probes": { + "band_ratio": 4320.72443, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.946519939, + "finite": true, + "max_abs": 0.509334974, + "mean_abs": 0.08842306, + "psnr_db": 24.4121033, + "ref_absmax": 1.17881846, + "rel_max": 0.432072443, + "scaled_max_abs": 0.432072443 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7513.62611, + "index": 11, + "metrics": { + "corr": 0.770333834, + "finite": true, + "max_abs": 2.8097198, + "mean_abs": 0.288082466, + "psnr_db": 25.5060829, + "ref_absmax": 3.73949909, + "rel_max": 0.751362611, + "scaled_max_abs": 0.751362611 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_10;" + }, + "status": "fail", + "tap": "net.features.10", + "ungated_probes": { + "band_ratio": 3990.29919, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.94874988, + "finite": true, + "max_abs": 0.649783209, + "mean_abs": 0.11059224, + "psnr_db": 26.0343783, + "ref_absmax": 1.62840724, + "rel_max": 0.399029919, + "scaled_max_abs": 0.399029919 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7555.36283, + "index": 12, + "metrics": { + "corr": 0.786805368, + "finite": true, + "max_abs": 3.42622471, + "mean_abs": 0.333037829, + "psnr_db": 26.1641505, + "ref_absmax": 4.53482485, + "rel_max": 0.755536283, + "scaled_max_abs": 0.755536283 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_11;" + }, + "status": "fail", + "tap": "net.features.11", + "ungated_probes": { + "band_ratio": 5005.23638, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.941705703, + "finite": true, + "max_abs": 0.844576836, + "mean_abs": 0.128390941, + "psnr_db": 25.7533038, + "ref_absmax": 1.68738651, + "rel_max": 0.500523638, + "scaled_max_abs": 0.500523638 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 8713.09913, + "index": 13, + "metrics": { + "corr": 0.752626014, + "finite": true, + "max_abs": 8.80002272, + "mean_abs": 0.196309099, + "psnr_db": 29.1145042, + "ref_absmax": 10.099762, + "rel_max": 0.871309913, + "scaled_max_abs": 0.871309913 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_12/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "fail", + "tap": "net.features.12", + "ungated_probes": { + "band_ratio": 2856.66984, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.940033612, + "finite": true, + "max_abs": 1.61206296, + "mean_abs": 0.0573142123, + "psnr_db": 35.7138339, + "ref_absmax": 5.64315462, + "rel_max": 0.285666984, + "scaled_max_abs": 0.285666984 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_ratio": 2341.73579, + "index": 14, + "metrics": { + "corr": 0.965845601, + "finite": true, + "max_abs": 1.22845334, + "mean_abs": 0.0645773262, + "psnr_db": 34.5055867, + "ref_absmax": 5.24590921, + "rel_max": 0.234173579, + "scaled_max_abs": 0.234173579 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;;zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Seque" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 1821.51415, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.976932367, + "finite": true, + "max_abs": 0.340334892, + "mean_abs": 0.0312211679, + "psnr_db": 33.6522062, + "ref_absmax": 1.8684175, + "rel_max": 0.182151415, + "scaled_max_abs": 0.182151415 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 3 + } + }, + { + "band_ratio": 1627.42091, + "index": 15, + "metrics": { + "corr": 0.963738971, + "finite": true, + "max_abs": 3.96841812, + "mean_abs": 0.574451046, + "psnr_db": 33.0960582, + "ref_absmax": 24.3847065, + "rel_max": 0.162742091, + "scaled_max_abs": 0.162742091 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.classifier", + "ungated_probes": { + "band_ratio": 1605.82136, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.973802247, + "finite": true, + "max_abs": 0.859795362, + "mean_abs": 0.222106327, + "psnr_db": 28.8099347, + "ref_absmax": 5.35424042, + "rel_max": 0.160582136, + "scaled_max_abs": 0.160582136 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.625, + "band_ratio": 1520.0062, + "metrics": { + "corr": 0.973850754, + "finite": true, + "max_abs": 2.73983431, + "mean_abs": 0.433899568, + "psnr_db": 33.4352953, + "ref_absmax": 18.0251522, + "rel_max": 0.15200062, + "scaled_max_abs": 0.15200062 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 8 + } + }, + "first_fail_index": 8, + "n_judged": 16, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.08107465e-08, + "psnr_db": 164.245493, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.00112572895, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.38418579e-07, + "mean_abs": 4.66724468e-08, + "psnr_db": 130.436578, + "ref_absmax": 2.11790395, + "rel_max": 1.12572895e-07, + "scaled_max_abs": 1.12572895e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00530324784, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.96453857e-05, + "mean_abs": 2.21019027e-07, + "psnr_db": 164.991666, + "ref_absmax": 169.038651, + "rel_max": 5.30324784e-07, + "scaled_max_abs": 5.30324784e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_0/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "pass", + "tap": "net.features.0", + "ungated_probes": { + "band_ratio": 0.00301177623, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-06, + "mean_abs": 2.5584388e-07, + "psnr_db": 155.735357, + "ref_absmax": 31.6648464, + "rel_max": 3.01177623e-07, + "scaled_max_abs": 3.01177623e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00747659079, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.33786011e-05, + "mean_abs": 9.63280999e-07, + "psnr_db": 152.706072, + "ref_absmax": 44.644146, + "rel_max": 7.47659079e-07, + "scaled_max_abs": 7.47659079e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_1/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.1", + "ungated_probes": { + "band_ratio": 0.0260310136, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.90734863e-05, + "mean_abs": 1.29547133e-06, + "psnr_db": 136.91535, + "ref_absmax": 7.32721615, + "rel_max": 2.60310136e-06, + "scaled_max_abs": 2.60310136e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0121488386, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.71932983e-05, + "mean_abs": 1.43917319e-06, + "psnr_db": 147.492171, + "ref_absmax": 30.6146946, + "rel_max": 1.21488386e-06, + "scaled_max_abs": 1.21488386e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_2/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.2", + "ungated_probes": { + "band_ratio": 0.0467408879, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.01463699e-05, + "mean_abs": 2.6522391e-06, + "psnr_db": 125.699938, + "ref_absmax": 4.31022406, + "rel_max": 4.67408879e-06, + "scaled_max_abs": 4.67408879e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0325737422, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.5234642e-05, + "mean_abs": 2.62922129e-06, + "psnr_db": 141.896281, + "ref_absmax": 26.1666718, + "rel_max": 3.25737422e-06, + "scaled_max_abs": 3.25737422e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_3;" + }, + "status": "pass", + "tap": "net.features.3", + "ungated_probes": { + "band_ratio": 0.126018395, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.48770142e-05, + "mean_abs": 7.31913275e-06, + "psnr_db": 120.856015, + "ref_absmax": 6.73528767, + "rel_max": 1.26018395e-05, + "scaled_max_abs": 1.26018395e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0219455123, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.27961349e-05, + "mean_abs": 1.68728369e-06, + "psnr_db": 141.5239, + "ref_absmax": 19.5010872, + "rel_max": 2.19455123e-06, + "scaled_max_abs": 2.19455123e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_4/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.4", + "ungated_probes": { + "band_ratio": 0.1279353, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.79085541e-05, + "mean_abs": 5.26862247e-06, + "psnr_db": 118.522554, + "ref_absmax": 2.96310353, + "rel_max": 1.279353e-05, + "scaled_max_abs": 1.279353e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0270586662, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.13007355e-05, + "mean_abs": 2.59491651e-06, + "psnr_db": 140.10937, + "ref_absmax": 30.0460987, + "rel_max": 2.70586662e-06, + "scaled_max_abs": 2.70586662e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_5;" + }, + "status": "pass", + "tap": "net.features.5", + "ungated_probes": { + "band_ratio": 0.218091113, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.42402267e-05, + "mean_abs": 8.09668706e-06, + "psnr_db": 113.577923, + "ref_absmax": 2.48704433, + "rel_max": 2.18091113e-05, + "scaled_max_abs": 2.18091113e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0154295259, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000104427338, + "mean_abs": 3.95868159e-06, + "psnr_db": 145.876093, + "ref_absmax": 67.6801987, + "rel_max": 1.54295259e-06, + "scaled_max_abs": 1.54295259e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/zoo.HWSwap_6/torchvision.models.mobilenetv3.InvertedResidual_inner;" + }, + "status": "pass", + "tap": "net.features.6", + "ungated_probes": { + "band_ratio": 0.130585475, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.21216202e-05, + "mean_abs": 1.07203002e-05, + "psnr_db": 117.71359, + "ref_absmax": 5.5229435, + "rel_max": 1.30585475e-05, + "scaled_max_abs": 1.30585475e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 6166.24159, + "index": 8, + "metrics": { + "corr": 0.630540736, + "finite": true, + "max_abs": 10.658432, + "mean_abs": 0.67731511, + "psnr_db": 30.4834512, + "ref_absmax": 17.2851353, + "rel_max": 0.616624159, + "scaled_max_abs": 0.616624159 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_7/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.7", + "ungated_probes": { + "band_ratio": 6235.33996, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.9132638, + "finite": true, + "max_abs": 1.85841006, + "mean_abs": 0.140964777, + "psnr_db": 26.2608717, + "ref_absmax": 2.98044705, + "rel_max": 0.623533996, + "scaled_max_abs": 0.623533996 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6552.51795, + "index": 9, + "metrics": { + "corr": 0.56191085, + "finite": true, + "max_abs": 10.9576705, + "mean_abs": 0.833241988, + "psnr_db": 28.8133604, + "ref_absmax": 16.7228394, + "rel_max": 0.655251795, + "scaled_max_abs": 0.655251795 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_8;" + }, + "status": "fail", + "tap": "net.features.8", + "ungated_probes": { + "band_ratio": 5630.6918, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.858817528, + "finite": true, + "max_abs": 2.63935053, + "mean_abs": 0.21482657, + "psnr_db": 26.3973835, + "ref_absmax": 4.68743563, + "rel_max": 0.56306918, + "scaled_max_abs": 0.56306918 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9945.87023, + "index": 10, + "metrics": { + "corr": 0.750201677, + "finite": true, + "max_abs": 2.69309878, + "mean_abs": 0.234866873, + "psnr_db": 24.2269518, + "ref_absmax": 2.7077558, + "rel_max": 0.994587023, + "scaled_max_abs": 0.994587023 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_9/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.9", + "ungated_probes": { + "band_ratio": 4387.2272, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.945696594, + "finite": true, + "max_abs": 0.53345862, + "mean_abs": 0.0858846294, + "psnr_db": 24.6364138, + "ref_absmax": 1.21593571, + "rel_max": 0.43872272, + "scaled_max_abs": 0.43872272 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7865.50274, + "index": 11, + "metrics": { + "corr": 0.765816761, + "finite": true, + "max_abs": 2.58410764, + "mean_abs": 0.289569902, + "psnr_db": 23.9568571, + "ref_absmax": 3.28536868, + "rel_max": 0.786550274, + "scaled_max_abs": 0.786550274 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_10;" + }, + "status": "fail", + "tap": "net.features.10", + "ungated_probes": { + "band_ratio": 4213.35963, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.946720753, + "finite": true, + "max_abs": 0.733153611, + "mean_abs": 0.111983071, + "psnr_db": 26.1333915, + "ref_absmax": 1.74006891, + "rel_max": 0.421335963, + "scaled_max_abs": 0.421335963 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9032.70269, + "index": 12, + "metrics": { + "corr": 0.789560933, + "finite": true, + "max_abs": 3.58561064, + "mean_abs": 0.326330455, + "psnr_db": 24.714719, + "ref_absmax": 3.9695878, + "rel_max": 0.903270269, + "scaled_max_abs": 0.903270269 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_11;" + }, + "status": "fail", + "tap": "net.features.11", + "ungated_probes": { + "band_ratio": 5666.55564, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.940617671, + "finite": true, + "max_abs": 1.03192192, + "mean_abs": 0.131128411, + "psnr_db": 25.9821858, + "ref_absmax": 1.82107437, + "rel_max": 0.566655564, + "scaled_max_abs": 0.566655564 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "uniform", + "index": 17 + } + }, + { + "band_ratio": 7446.05842, + "index": 13, + "metrics": { + "corr": 0.754682553, + "finite": true, + "max_abs": 6.89361939, + "mean_abs": 0.185388609, + "psnr_db": 28.876732, + "ref_absmax": 9.25807858, + "rel_max": 0.744605842, + "scaled_max_abs": 0.744605842 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_12/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "fail", + "tap": "net.features.12", + "ungated_probes": { + "band_ratio": 3822.72782, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.932576301, + "finite": true, + "max_abs": 2.35887665, + "mean_abs": 0.0580210395, + "psnr_db": 36.0042899, + "ref_absmax": 6.17066336, + "rel_max": 0.382272782, + "scaled_max_abs": 0.382272782 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "uniform", + "index": 17 + } + }, + { + "band_ratio": 1470.68473, + "index": 14, + "metrics": { + "corr": 0.974922549, + "finite": true, + "max_abs": 0.763212383, + "mean_abs": 0.054580329, + "psnr_db": 36.0239487, + "ref_absmax": 5.18950367, + "rel_max": 0.147068473, + "scaled_max_abs": 0.147068473 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;;zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Seque" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 1707.85954, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.973719085, + "finite": true, + "max_abs": 0.336220026, + "mean_abs": 0.0315903927, + "psnr_db": 33.9474311, + "ref_absmax": 1.96866322, + "rel_max": 0.170785954, + "scaled_max_abs": 0.170785954 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 2 + } + }, + { + "band_ratio": 1520.0062, + "index": 15, + "metrics": { + "corr": 0.973875516, + "finite": true, + "max_abs": 2.73983431, + "mean_abs": 0.461848315, + "psnr_db": 33.0127435, + "ref_absmax": 18.0251522, + "rel_max": 0.15200062, + "scaled_max_abs": 0.15200062 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.classifier", + "ungated_probes": { + "band_ratio": 1804.10832, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.970861273, + "finite": true, + "max_abs": 0.938325033, + "mean_abs": 0.238258337, + "psnr_db": 28.1154443, + "ref_absmax": 5.20104599, + "rel_max": 0.180410832, + "scaled_max_abs": 0.180410832 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 8 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp32", + "id": "mobilenet_v3_small__layout_swap__litert_fp32", + "model": "mobilenet_v3_small", + "path": "litert", + "variant": "layout_swap" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/mobilenet_v3_small__layout_swap__onnx_fp16.json b/bench/verdicts_calibrated4/mobilenet_v3_small__layout_swap__onnx_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..663d91751558dfed4a97556d69a68a6c28d18046 --- /dev/null +++ b/bench/verdicts_calibrated4/mobilenet_v3_small__layout_swap__onnx_fp16.json @@ -0,0 +1,1215 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "baseline": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "faithful_output_rel_max": 0.0310759602, + "output_band": 0.0621519203, + "source": { + "bundle": "bundles/mobilenet_v3_small__clean__onnx_fp16.json", + "case": "mobilenet_v3_small__clean__onnx_fp16", + "digests": { + "192": { + "converted": "0f5c1e94183c9903ece898f192769178a20e4556d20c0b1ef4fc23502e5893f5", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "8ce44e6b921ee910b6c36de85b86a9608df76e3c1728f56afa10f6f5dd60ae3c", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + } + } + }, + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "reason": "first divergence at tap 7 is beyond the hypothesis taps (first 3) \u2014 interface faults surface earlier", + "status": "not_evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "/net/features/features.6/Transpose_output_0", + "basis": "earliest tap over band with in-band predecessors (fp16: the tap's faithful envelope gates, C3-1)", + "index": 7, + "neighbourhood": [ + { + "band_ratio": 0.347952146, + "index": 6, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.5/Add_output_0" + }, + "status": "pass", + "tap": "net.features.5" + }, + { + "band_ratio": 50.70472, + "index": 7, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.6/Transpose_output_0" + }, + "status": "fail", + "tap": "net.features.6" + }, + { + "band_ratio": 24.6430523, + "index": 8, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.7/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.7" + } + ], + "shape": 224, + "tap": "net.features.6" + }, + "fp16_floor": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "baseline": { + "bundle": "bundles/mobilenet_v3_small__clean__onnx_fp16.json", + "case": "mobilenet_v3_small__clean__onnx_fp16", + "digests": { + "192": { + "converted": "0f5c1e94183c9903ece898f192769178a20e4556d20c0b1ef4fc23502e5893f5", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "8ce44e6b921ee910b6c36de85b86a9608df76e3c1728f56afa10f6f5dd60ae3c", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + } + }, + "envelopes_gate": true, + "faithful_output_rel_max": 0.0310759602, + "faithful_tap_rel_max": { + "net.avgpool": 0.0352594163, + "net.classifier": 0.0310759602, + "net.features.0": 0.000908058909, + "net.features.1": 0.000745469506, + "net.features.10": 0.0449988479, + "net.features.11": 0.0678471375, + "net.features.12": 0.0582480643, + "net.features.2": 0.00192673754, + "net.features.3": 0.00290781924, + "net.features.4": 0.00476705887, + "net.features.5": 0.00533482606, + "net.features.6": 0.00813875363, + "net.features.7": 0.012498691, + "net.features.8": 0.0198082609, + "net.features.9": 0.0376845229, + "normalize": 0.000441313312 + }, + "floor": 0.01, + "k": 2.0, + "output_band": 0.0621519203, + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used", + "tap_envelopes": { + "net.avgpool": 0.0705188325, + "net.classifier": 0.0621519203, + "net.features.0": 0.01, + "net.features.1": 0.01, + "net.features.10": 0.0899976958, + "net.features.11": 0.135694275, + "net.features.12": 0.116496129, + "net.features.2": 0.01, + "net.features.3": 0.01, + "net.features.4": 0.01, + "net.features.5": 0.0106696521, + "net.features.6": 0.0162775073, + "net.features.7": 0.024997382, + "net.features.8": 0.0396165217, + "net.features.9": 0.0753690458, + "normalize": 0.01 + } + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "68dfd7d2abd6a0f8ebc7966f2746406a75c168d22e002c15dafd353c9467a52e", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "0e3e5641e838f835b1a192d7cb7b3872d0c01900222401dfefa17723ab100bff", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0116386414, + "224": 0.00447177887 + }, + "primary_class": "D2", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.34375, + "band_limit": 0.0621519203, + "band_ratio": 2.62159194, + "metrics": { + "corr": 0.964895574, + "finite": true, + "max_abs": 3.97317028, + "mean_abs": 0.531149492, + "psnr_db": 33.6099927, + "ref_absmax": 24.3847065, + "rel_max": 0.162936974, + "scaled_max_abs": 0.162936974 + }, + "per_op_band_ratio": 16.2936974, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 7, + "n_judged": 16, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 0.0441313312, + "index": 0, + "metrics": { + "corr": 0.999999966, + "finite": true, + "max_abs": 0.00508785248, + "mean_abs": 0.000405953078, + "psnr_db": 88.0186903, + "ref_absmax": 11.5288897, + "rel_max": 0.000441313312, + "scaled_max_abs": 0.000441313312 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "per_op_band_ratio": 0.0441313312, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0908058909, + "index": 1, + "metrics": { + "corr": 0.999999747, + "finite": true, + "max_abs": 0.172560692, + "mean_abs": 0.000883766055, + "psnr_db": 96.2909345, + "ref_absmax": 190.032486, + "rel_max": 0.000908058909, + "scaled_max_abs": 0.000908058909 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.0/features.0.2/HardSwish_output_0" + }, + "per_op_band_ratio": 0.0908058909, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0726273228, + "index": 2, + "metrics": { + "corr": 0.99999925, + "finite": true, + "max_abs": 0.0330090523, + "mean_abs": 0.0021913404, + "psnr_db": 88.346094, + "ref_absmax": 45.4499092, + "rel_max": 0.000726273228, + "scaled_max_abs": 0.000726273228 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.1/block/block.2/block.2.0/Conv_output_0" + }, + "per_op_band_ratio": 0.0726273228, + "status": "pass", + "tap": "net.features.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.192673754, + "index": 3, + "metrics": { + "corr": 0.99999661, + "finite": true, + "max_abs": 0.0498961806, + "mean_abs": 0.00335121535, + "psnr_db": 78.3312341, + "ref_absmax": 25.896719, + "rel_max": 0.00192673754, + "scaled_max_abs": 0.00192673754 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.2/block/block.2/block.2.0/Conv_output_0" + }, + "per_op_band_ratio": 0.192673754, + "status": "pass", + "tap": "net.features.2" + }, + { + "band_limit": 0.01, + "band_ratio": 0.281512363, + "index": 4, + "metrics": { + "corr": 0.999992632, + "finite": true, + "max_abs": 0.0723810196, + "mean_abs": 0.00526209009, + "psnr_db": 75.4762491, + "ref_absmax": 25.7114887, + "rel_max": 0.00281512363, + "scaled_max_abs": 0.00281512363 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.3/Add_output_0" + }, + "per_op_band_ratio": 0.281512363, + "status": "pass", + "tap": "net.features.3" + }, + { + "band_limit": 0.01, + "band_ratio": 0.476705887, + "index": 5, + "metrics": { + "corr": 0.999968504, + "finite": true, + "max_abs": 0.0815546513, + "mean_abs": 0.00506719657, + "psnr_db": 69.8638336, + "ref_absmax": 17.1079597, + "rel_max": 0.00476705887, + "scaled_max_abs": 0.00476705887 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.4/block/block.3/block.3.0/Conv_output_0" + }, + "per_op_band_ratio": 0.476705887, + "status": "pass", + "tap": "net.features.4" + }, + { + "band_limit": 0.0106696521, + "band_ratio": 0.5, + "index": 6, + "metrics": { + "corr": 0.999933184, + "finite": true, + "max_abs": 0.119066, + "mean_abs": 0.00772219183, + "psnr_db": 67.9874935, + "ref_absmax": 22.3186283, + "rel_max": 0.00533482606, + "scaled_max_abs": 0.00533482606 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.5/Add_output_0" + }, + "per_op_band_ratio": 0.533482606, + "status": "pass", + "tap": "net.features.5" + }, + { + "band_limit": 0.0162775073, + "band_ratio": 44.7012646, + "index": 7, + "metrics": { + "corr": 0.839883759, + "finite": true, + "max_abs": 45.6730843, + "mean_abs": 1.13135886, + "psnr_db": 35.1127899, + "ref_absmax": 62.7700729, + "rel_max": 0.727625158, + "scaled_max_abs": 0.727625158 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.6/Transpose_output_0" + }, + "per_op_band_ratio": 72.7625158, + "status": "fail", + "tap": "net.features.6", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.024997382, + "band_ratio": 25.7215015, + "index": 8, + "metrics": { + "corr": 0.680532538, + "finite": true, + "max_abs": 13.2993979, + "mean_abs": 0.618189902, + "psnr_db": 32.0386556, + "ref_absmax": 20.6843147, + "rel_max": 0.642970198, + "scaled_max_abs": 0.642970198 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.7/block/block.3/block.3.0/Conv_output_0" + }, + "per_op_band_ratio": 64.2970198, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.0396165217, + "band_ratio": 18.5521592, + "index": 9, + "metrics": { + "corr": 0.610858379, + "finite": true, + "max_abs": 14.2981221, + "mean_abs": 0.772957618, + "psnr_db": 30.1867163, + "ref_absmax": 19.453968, + "rel_max": 0.734972016, + "scaled_max_abs": 0.734972016 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.8/Add_output_0" + }, + "per_op_band_ratio": 73.4972016, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.0753690458, + "band_ratio": 8.77178194, + "index": 10, + "metrics": { + "corr": 0.771244571, + "finite": true, + "max_abs": 2.31040335, + "mean_abs": 0.220876285, + "psnr_db": 26.6455367, + "ref_absmax": 3.49467635, + "rel_max": 0.661120835, + "scaled_max_abs": 0.661120835 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.9/block/block.3/block.3.0/Conv_output_0" + }, + "per_op_band_ratio": 66.1120835, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.0899976958, + "band_ratio": 8.33254001, + "index": 11, + "metrics": { + "corr": 0.78542802, + "finite": true, + "max_abs": 2.80428553, + "mean_abs": 0.266223607, + "psnr_db": 25.9914938, + "ref_absmax": 3.73949909, + "rel_max": 0.749909402, + "scaled_max_abs": 0.749909402 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.10/Add_output_0" + }, + "per_op_band_ratio": 74.9909402, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.135694275, + "band_ratio": 5.54405486, + "index": 12, + "metrics": { + "corr": 0.797972634, + "finite": true, + "max_abs": 3.41153288, + "mean_abs": 0.30785826, + "psnr_db": 26.6453014, + "ref_absmax": 4.53482485, + "rel_max": 0.752296504, + "scaled_max_abs": 0.752296504 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.11/Add_output_0" + }, + "per_op_band_ratio": 75.2296504, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.116496129, + "band_ratio": 7.52152573, + "index": 13, + "metrics": { + "corr": 0.762514907, + "finite": true, + "max_abs": 8.84970057, + "mean_abs": 0.178993514, + "psnr_db": 29.6525846, + "ref_absmax": 10.099762, + "rel_max": 0.876228628, + "scaled_max_abs": 0.876228628 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.12/features.12.2/HardSwish_output_0" + }, + "per_op_band_ratio": 87.6228628, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_limit": 0.0705188325, + "band_ratio": 3.30706345, + "index": 14, + "metrics": { + "corr": 0.966937773, + "finite": true, + "max_abs": 1.22339982, + "mean_abs": 0.0605297611, + "psnr_db": 34.9999773, + "ref_absmax": 5.24590921, + "rel_max": 0.233210254, + "scaled_max_abs": 0.233210254 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "per_op_band_ratio": 23.3210254, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "natural", + "index": 3 + } + }, + { + "band_limit": 0.0621519203, + "band_ratio": 2.62163348, + "index": 15, + "metrics": { + "corr": 0.964901335, + "finite": true, + "max_abs": 3.97323322, + "mean_abs": 0.53116459, + "psnr_db": 33.6101416, + "ref_absmax": 24.3847065, + "rel_max": 0.162939555, + "scaled_max_abs": 0.162939555 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "per_op_band_ratio": 16.2939555, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.65625, + "band_limit": 0.0621519203, + "band_ratio": 2.43318774, + "metrics": { + "corr": 0.974062315, + "finite": true, + "max_abs": 2.72589493, + "mean_abs": 0.433542801, + "psnr_db": 33.4798078, + "ref_absmax": 18.0251522, + "rel_max": 0.15122729, + "scaled_max_abs": 0.15122729 + }, + "per_op_band_ratio": 15.122729, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 8 + } + }, + "first_fail_index": 7, + "n_judged": 16, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 0.0439328023, + "index": 0, + "metrics": { + "corr": 0.999999965, + "finite": true, + "max_abs": 0.00506496429, + "mean_abs": 0.000406712054, + "psnr_db": 88.0749992, + "ref_absmax": 11.5288897, + "rel_max": 0.000439328023, + "scaled_max_abs": 0.000439328023 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "per_op_band_ratio": 0.0439328023, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0867140259, + "index": 1, + "metrics": { + "corr": 0.999999726, + "finite": true, + "max_abs": 0.146580219, + "mean_abs": 0.000882941117, + "psnr_db": 95.4408227, + "ref_absmax": 169.038651, + "rel_max": 0.000867140259, + "scaled_max_abs": 0.000867140259 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.0/features.0.2/HardSwish_output_0" + }, + "per_op_band_ratio": 0.0867140259, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0745469506, + "index": 2, + "metrics": { + "corr": 0.999999152, + "finite": true, + "max_abs": 0.0332808495, + "mean_abs": 0.00218689379, + "psnr_db": 87.8352672, + "ref_absmax": 44.644146, + "rel_max": 0.000745469506, + "scaled_max_abs": 0.000745469506 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.1/block/block.2/block.2.0/Conv_output_0" + }, + "per_op_band_ratio": 0.0745469506, + "status": "pass", + "tap": "net.features.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.155432319, + "index": 3, + "metrics": { + "corr": 0.999995967, + "finite": true, + "max_abs": 0.0475851297, + "mean_abs": 0.00342715191, + "psnr_db": 79.2772077, + "ref_absmax": 30.6146946, + "rel_max": 0.00155432319, + "scaled_max_abs": 0.00155432319 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.2/block/block.2/block.2.0/Conv_output_0" + }, + "per_op_band_ratio": 0.155432319, + "status": "pass", + "tap": "net.features.2" + }, + { + "band_limit": 0.01, + "band_ratio": 0.290781924, + "index": 4, + "metrics": { + "corr": 0.999991914, + "finite": true, + "max_abs": 0.0760879517, + "mean_abs": 0.00542803163, + "psnr_db": 75.1554022, + "ref_absmax": 26.1666718, + "rel_max": 0.00290781924, + "scaled_max_abs": 0.00290781924 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.3/Add_output_0" + }, + "per_op_band_ratio": 0.290781924, + "status": "pass", + "tap": "net.features.3" + }, + { + "band_limit": 0.01, + "band_ratio": 0.4599975, + "index": 5, + "metrics": { + "corr": 0.99996609, + "finite": true, + "max_abs": 0.0897045135, + "mean_abs": 0.00541450367, + "psnr_db": 70.4385356, + "ref_absmax": 19.5010872, + "rel_max": 0.004599975, + "scaled_max_abs": 0.004599975 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.4/block/block.3/block.3.0/Conv_output_0" + }, + "per_op_band_ratio": 0.4599975, + "status": "pass", + "tap": "net.features.4" + }, + { + "band_limit": 0.0106696521, + "band_ratio": 0.347952146, + "index": 6, + "metrics": { + "corr": 0.999930178, + "finite": true, + "max_abs": 0.111546993, + "mean_abs": 0.00825263387, + "psnr_db": 69.5801725, + "ref_absmax": 30.0460987, + "rel_max": 0.00371252835, + "scaled_max_abs": 0.00371252835 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.5/Add_output_0" + }, + "per_op_band_ratio": 0.371252835, + "status": "pass", + "tap": "net.features.5" + }, + { + "band_limit": 0.0162775073, + "band_ratio": 50.70472, + "index": 7, + "metrics": { + "corr": 0.831250494, + "finite": true, + "max_abs": 55.8596115, + "mean_abs": 1.09800683, + "psnr_db": 36.6068854, + "ref_absmax": 67.6801987, + "rel_max": 0.825346447, + "scaled_max_abs": 0.825346447 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.6/Transpose_output_0" + }, + "per_op_band_ratio": 82.5346447, + "status": "fail", + "tap": "net.features.6", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.024997382, + "band_ratio": 24.6430523, + "index": 8, + "metrics": { + "corr": 0.643234938, + "finite": true, + "max_abs": 10.6478472, + "mean_abs": 0.610820228, + "psnr_db": 31.0108111, + "ref_absmax": 17.2851353, + "rel_max": 0.616011793, + "scaled_max_abs": 0.616011793 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.7/block/block.3/block.3.0/Conv_output_0" + }, + "per_op_band_ratio": 61.6011793, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.0396165217, + "band_ratio": 16.5210787, + "index": 9, + "metrics": { + "corr": 0.576673332, + "finite": true, + "max_abs": 10.9452267, + "mean_abs": 0.756783409, + "psnr_db": 29.3141884, + "ref_absmax": 16.7228394, + "rel_max": 0.654507673, + "scaled_max_abs": 0.654507673 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.8/Add_output_0" + }, + "per_op_band_ratio": 65.4507673, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.0753690458, + "band_ratio": 13.2997844, + "index": 10, + "metrics": { + "corr": 0.769213022, + "finite": true, + "max_abs": 2.71423292, + "mean_abs": 0.216383291, + "psnr_db": 24.7039864, + "ref_absmax": 2.7077558, + "rel_max": 1.00239206, + "scaled_max_abs": 1.00239206 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.9/block/block.3/block.3.0/Conv_output_0" + }, + "per_op_band_ratio": 100.239206, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.0899976958, + "band_ratio": 8.75648691, + "index": 11, + "metrics": { + "corr": 0.781260361, + "finite": true, + "max_abs": 2.58907962, + "mean_abs": 0.267973345, + "psnr_db": 24.423364, + "ref_absmax": 3.28536868, + "rel_max": 0.788063645, + "scaled_max_abs": 0.788063645 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.10/Add_output_0" + }, + "per_op_band_ratio": 78.8063645, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.135694275, + "band_ratio": 6.65427543, + "index": 12, + "metrics": { + "corr": 0.800691529, + "finite": true, + "max_abs": 3.58432771, + "mean_abs": 0.302767422, + "psnr_db": 25.1726108, + "ref_absmax": 3.9695878, + "rel_max": 0.902947079, + "scaled_max_abs": 0.902947079 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.11/Add_output_0" + }, + "per_op_band_ratio": 90.2947079, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "uniform", + "index": 17 + } + }, + { + "band_limit": 0.116496129, + "band_ratio": 6.41467869, + "index": 13, + "metrics": { + "corr": 0.764086404, + "finite": true, + "max_abs": 6.91842541, + "mean_abs": 0.169940392, + "psnr_db": 29.3887646, + "ref_absmax": 9.25807858, + "rel_max": 0.747285234, + "scaled_max_abs": 0.747285234 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.12/features.12.2/HardSwish_output_0" + }, + "per_op_band_ratio": 74.7285234, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "uniform", + "index": 17 + } + }, + { + "band_limit": 0.0705188325, + "band_ratio": 2.03943952, + "index": 14, + "metrics": { + "corr": 0.975121352, + "finite": true, + "max_abs": 0.746348679, + "mean_abs": 0.0518787585, + "psnr_db": 36.4223448, + "ref_absmax": 5.18950367, + "rel_max": 0.143818894, + "scaled_max_abs": 0.143818894 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "per_op_band_ratio": 14.3818894, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "natural", + "index": 2 + } + }, + { + "band_limit": 0.0621519203, + "band_ratio": 2.43313283, + "index": 15, + "metrics": { + "corr": 0.974064233, + "finite": true, + "max_abs": 2.72583342, + "mean_abs": 0.433563169, + "psnr_db": 33.4794238, + "ref_absmax": 18.0251522, + "rel_max": 0.151223878, + "scaled_max_abs": 0.151223878 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "per_op_band_ratio": 15.1223878, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "natural", + "index": 8 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp16", + "id": "mobilenet_v3_small__layout_swap__onnx_fp16", + "model": "mobilenet_v3_small", + "path": "onnx", + "variant": "layout_swap" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/mobilenet_v3_small__layout_swap__onnx_fp32.json b/bench/verdicts_calibrated4/mobilenet_v3_small__layout_swap__onnx_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..ac35ecf12db2320c13da11db779fb6d9be6c8857 --- /dev/null +++ b/bench/verdicts_calibrated4/mobilenet_v3_small__layout_swap__onnx_fp32.json @@ -0,0 +1,1619 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "reason": "first divergence at tap 7 is beyond the hypothesis taps (first 3) \u2014 interface faults surface earlier", + "status": "not_evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "/net/features/features.6/Transpose_output_0", + "basis": "earliest tap over band with in-band predecessors", + "index": 7, + "neighbourhood": [ + { + "band_ratio": 0.0253129458, + "index": 6, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.5/Add_output_0" + }, + "status": "pass", + "tap": "net.features.5" + }, + { + "band_ratio": 8249.98022, + "index": 7, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.6/Transpose_output_0" + }, + "status": "fail", + "tap": "net.features.6" + }, + { + "band_ratio": 6166.24139, + "index": 8, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.7/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.7" + } + ], + "shape": 224, + "tap": "net.features.6" + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "9fa2a4b2ace0e46205ff1a05180c760d67e984bf4e22c8081550d90f7382fd97", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "b7e5578f7277da36e0dd702a781772e0972c0cf8e74a5e2f7fd088240c61e09f", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "fp32 per-tap band on near-zero probes", + "reason": "C3-2: per-tap fp32 checks gate without the near_zero probes; they are measured and reported per tap ('ungated_probes'); the output gates on all probes. C4-1: when the output has failed and no gated tap fails, they localise the first divergence (earliest tap over band on all probes)" + }, + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D2", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.34375, + "band_ratio": 1627.39901, + "metrics": { + "corr": 0.964540073, + "finite": true, + "max_abs": 3.96836472, + "mean_abs": 0.530407211, + "psnr_db": 33.5907633, + "ref_absmax": 24.3847065, + "rel_max": 0.162739901, + "scaled_max_abs": 0.162739901 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 7, + "n_judged": 16, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.0, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 11.5288897, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.0, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 2.11790395, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00321182749, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.10351562e-05, + "mean_abs": 1.89537677e-07, + "psnr_db": 167.344678, + "ref_absmax": 190.032486, + "rel_max": 3.21182749e-07, + "scaled_max_abs": 3.21182749e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.0/features.0.2/HardSwish_output_0" + }, + "status": "pass", + "tap": "net.features.0", + "ungated_probes": { + "band_ratio": 0.00241213599, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.62939453e-06, + "mean_abs": 2.16881618e-07, + "psnr_db": 157.366824, + "ref_absmax": 31.6292057, + "rel_max": 2.41213599e-07, + "scaled_max_abs": 2.41213599e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00797353056, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.6239624e-05, + "mean_abs": 9.98075285e-07, + "psnr_db": 153.072648, + "ref_absmax": 45.4499092, + "rel_max": 7.97353056e-07, + "scaled_max_abs": 7.97353056e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.1/block/block.2/block.2.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.1", + "ungated_probes": { + "band_ratio": 0.0227632446, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.66893005e-05, + "mean_abs": 1.24961924e-06, + "psnr_db": 137.172128, + "ref_absmax": 7.33168793, + "rel_max": 2.27632446e-06, + "scaled_max_abs": 2.27632446e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00846999548, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.19345093e-05, + "mean_abs": 1.54983388e-06, + "psnr_db": 144.766529, + "ref_absmax": 25.896719, + "rel_max": 8.46999548e-07, + "scaled_max_abs": 8.46999548e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.2/block/block.2/block.2.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.2", + "ungated_probes": { + "band_ratio": 0.0644802993, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.77757645e-05, + "mean_abs": 2.75313276e-06, + "psnr_db": 124.749923, + "ref_absmax": 4.30763578, + "rel_max": 6.44802993e-06, + "scaled_max_abs": 6.44802993e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0153001897, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.93390656e-05, + "mean_abs": 2.63761359e-06, + "psnr_db": 141.695642, + "ref_absmax": 25.7114887, + "rel_max": 1.53001897e-06, + "scaled_max_abs": 1.53001897e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.3/Add_output_0" + }, + "status": "pass", + "tap": "net.features.3", + "ungated_probes": { + "band_ratio": 0.12165021, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.18967819e-05, + "mean_abs": 7.36337757e-06, + "psnr_db": 120.768056, + "ref_absmax": 6.73215294, + "rel_max": 1.2165021e-05, + "scaled_max_abs": 1.2165021e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0169323857, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.89678574e-05, + "mean_abs": 1.63707645e-06, + "psnr_db": 140.134058, + "ref_absmax": 17.1079597, + "rel_max": 1.69323857e-06, + "scaled_max_abs": 1.69323857e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.4/block/block.3/block.3.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.4", + "ungated_probes": { + "band_ratio": 0.116359598, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.40938568e-05, + "mean_abs": 6.37992748e-06, + "psnr_db": 117.100851, + "ref_absmax": 2.93004251, + "rel_max": 1.16359598e-05, + "scaled_max_abs": 1.16359598e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0264925814, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.91278076e-05, + "mean_abs": 2.44822543e-06, + "psnr_db": 137.863896, + "ref_absmax": 22.3186283, + "rel_max": 2.64925814e-06, + "scaled_max_abs": 2.64925814e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.5/Add_output_0" + }, + "status": "pass", + "tap": "net.features.5", + "ungated_probes": { + "band_ratio": 0.20642065, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.94854355e-05, + "mean_abs": 8.9967604e-06, + "psnr_db": 113.391462, + "ref_absmax": 2.88175797, + "rel_max": 2.0642065e-05, + "scaled_max_abs": 2.0642065e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 7272.90514, + "index": 7, + "metrics": { + "corr": 0.841140778, + "finite": true, + "max_abs": 45.6520786, + "mean_abs": 1.23178043, + "psnr_db": 34.6417497, + "ref_absmax": 62.7700729, + "rel_max": 0.727290514, + "scaled_max_abs": 0.727290514 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.6/Transpose_output_0" + }, + "status": "fail", + "tap": "net.features.6", + "ungated_probes": { + "band_ratio": 11085.4712, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.760930967, + "finite": true, + "max_abs": 6.06350881, + "mean_abs": 0.40014694, + "psnr_db": 21.1482291, + "ref_absmax": 5.46977997, + "rel_max": 1.10854712, + "scaled_max_abs": 1.10854712 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6447.84199, + "index": 8, + "metrics": { + "corr": 0.6711042, + "finite": true, + "max_abs": 13.3369193, + "mean_abs": 0.683836692, + "psnr_db": 31.5084373, + "ref_absmax": 20.6843147, + "rel_max": 0.644784199, + "scaled_max_abs": 0.644784199 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.7/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.7", + "ungated_probes": { + "band_ratio": 6050.68409, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.909563061, + "finite": true, + "max_abs": 1.75294381, + "mean_abs": 0.155567252, + "psnr_db": 25.3324286, + "ref_absmax": 2.89710021, + "rel_max": 0.605068409, + "scaled_max_abs": 0.605068409 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7362.28501, + "index": 9, + "metrics": { + "corr": 0.599577173, + "finite": true, + "max_abs": 14.3225657, + "mean_abs": 0.849208751, + "psnr_db": 29.6830118, + "ref_absmax": 19.453968, + "rel_max": 0.736228501, + "scaled_max_abs": 0.736228501 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.8/Add_output_0" + }, + "status": "fail", + "tap": "net.features.8", + "ungated_probes": { + "band_ratio": 6225.08891, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.853557758, + "finite": true, + "max_abs": 2.62826645, + "mean_abs": 0.233080525, + "psnr_db": 25.5918273, + "ref_absmax": 4.22205448, + "rel_max": 0.622508891, + "scaled_max_abs": 0.622508891 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6631.19916, + "index": 10, + "metrics": { + "corr": 0.75378829, + "finite": true, + "max_abs": 2.31738949, + "mean_abs": 0.239541321, + "psnr_db": 26.1584074, + "ref_absmax": 3.49467635, + "rel_max": 0.663119916, + "scaled_max_abs": 0.663119916 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.9/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.9", + "ungated_probes": { + "band_ratio": 4320.71685, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.94652024, + "finite": true, + "max_abs": 0.50933408, + "mean_abs": 0.0884228262, + "psnr_db": 24.4121332, + "ref_absmax": 1.17881846, + "rel_max": 0.432071685, + "scaled_max_abs": 0.432071685 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7513.63312, + "index": 11, + "metrics": { + "corr": 0.770333828, + "finite": true, + "max_abs": 2.80972242, + "mean_abs": 0.288082428, + "psnr_db": 25.5060838, + "ref_absmax": 3.73949909, + "rel_max": 0.751363312, + "scaled_max_abs": 0.751363312 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.10/Add_output_0" + }, + "status": "fail", + "tap": "net.features.10", + "ungated_probes": { + "band_ratio": 3990.26149, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.948750169, + "finite": true, + "max_abs": 0.64977707, + "mean_abs": 0.110591949, + "psnr_db": 26.0344054, + "ref_absmax": 1.62840724, + "rel_max": 0.399026149, + "scaled_max_abs": 0.399026149 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7555.38465, + "index": 12, + "metrics": { + "corr": 0.786805437, + "finite": true, + "max_abs": 3.4262346, + "mean_abs": 0.33303776, + "psnr_db": 26.1641521, + "ref_absmax": 4.53482485, + "rel_max": 0.755538465, + "scaled_max_abs": 0.755538465 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.11/Add_output_0" + }, + "status": "fail", + "tap": "net.features.11", + "ungated_probes": { + "band_ratio": 5005.2166, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.941706004, + "finite": true, + "max_abs": 0.844573498, + "mean_abs": 0.128390484, + "psnr_db": 25.7533247, + "ref_absmax": 1.68738651, + "rel_max": 0.50052166, + "scaled_max_abs": 0.50052166 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 8713.09819, + "index": 13, + "metrics": { + "corr": 0.752626099, + "finite": true, + "max_abs": 8.80002177, + "mean_abs": 0.196309057, + "psnr_db": 29.1145049, + "ref_absmax": 10.099762, + "rel_max": 0.871309819, + "scaled_max_abs": 0.871309819 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.12/features.12.2/HardSwish_output_0" + }, + "status": "fail", + "tap": "net.features.12", + "ungated_probes": { + "band_ratio": 2856.67612, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.940033895, + "finite": true, + "max_abs": 1.61206651, + "mean_abs": 0.0573140518, + "psnr_db": 35.7138679, + "ref_absmax": 5.64315462, + "rel_max": 0.285667612, + "scaled_max_abs": 0.285667612 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_ratio": 2341.74398, + "index": 14, + "metrics": { + "corr": 0.965845679, + "finite": true, + "max_abs": 1.22845763, + "mean_abs": 0.0645773276, + "psnr_db": 34.5055967, + "ref_absmax": 5.24590921, + "rel_max": 0.234174398, + "scaled_max_abs": 0.234174398 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 1821.47204, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.976932622, + "finite": true, + "max_abs": 0.340327024, + "mean_abs": 0.0312210704, + "psnr_db": 33.6522764, + "ref_absmax": 1.8684175, + "rel_max": 0.182147204, + "scaled_max_abs": 0.182147204 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 3 + } + }, + { + "band_ratio": 1627.39901, + "index": 15, + "metrics": { + "corr": 0.963739072, + "finite": true, + "max_abs": 3.96836472, + "mean_abs": 0.574450332, + "psnr_db": 33.096078, + "ref_absmax": 24.3847065, + "rel_max": 0.162739901, + "scaled_max_abs": 0.162739901 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier", + "ungated_probes": { + "band_ratio": 1605.81607, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.97380245, + "finite": true, + "max_abs": 0.859792531, + "mean_abs": 0.222105366, + "psnr_db": 28.8099697, + "ref_absmax": 5.35424042, + "rel_max": 0.160581607, + "scaled_max_abs": 0.160581607 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.625, + "band_ratio": 1520.01162, + "metrics": { + "corr": 0.973850743, + "finite": true, + "max_abs": 2.73984408, + "mean_abs": 0.433899629, + "psnr_db": 33.4352917, + "ref_absmax": 18.0251522, + "rel_max": 0.152001162, + "scaled_max_abs": 0.152001162 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 8 + } + }, + "first_fail_index": 7, + "n_judged": 16, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.0, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 11.5288897, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.0, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 2.11790395, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00362482631, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.12735748e-05, + "mean_abs": 1.87428373e-07, + "psnr_db": 166.603887, + "ref_absmax": 169.038651, + "rel_max": 3.62482631e-07, + "scaled_max_abs": 3.62482631e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.0/features.0.2/HardSwish_output_0" + }, + "status": "pass", + "tap": "net.features.0", + "ungated_probes": { + "band_ratio": 0.00240942098, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.62939453e-06, + "mean_abs": 2.17489598e-07, + "psnr_db": 157.375654, + "ref_absmax": 31.6648464, + "rel_max": 2.40942098e-07, + "scaled_max_abs": 2.40942098e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00790382455, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.52859497e-05, + "mean_abs": 9.92377723e-07, + "psnr_db": 152.56663, + "ref_absmax": 44.644146, + "rel_max": 7.90382455e-07, + "scaled_max_abs": 7.90382455e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.1/block/block.2/block.2.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.1", + "ungated_probes": { + "band_ratio": 0.0237532999, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.74045563e-05, + "mean_abs": 1.25099652e-06, + "psnr_db": 137.146217, + "ref_absmax": 7.32721615, + "rel_max": 2.37532999e-06, + "scaled_max_abs": 2.37532999e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00837179583, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.56299973e-05, + "mean_abs": 1.58629216e-06, + "psnr_db": 145.698877, + "ref_absmax": 30.6146946, + "rel_max": 8.37179583e-07, + "scaled_max_abs": 8.37179583e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.2/block/block.2/block.2.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.2", + "ungated_probes": { + "band_ratio": 0.068866752, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.96831131e-05, + "mean_abs": 2.76051356e-06, + "psnr_db": 124.708734, + "ref_absmax": 4.31022406, + "rel_max": 6.8866752e-06, + "scaled_max_abs": 6.8866752e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0188153224, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.92334366e-05, + "mean_abs": 2.72670566e-06, + "psnr_db": 141.34389, + "ref_absmax": 26.1666718, + "rel_max": 1.88153224e-06, + "scaled_max_abs": 1.88153224e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.3/Add_output_0" + }, + "status": "pass", + "tap": "net.features.3", + "ungated_probes": { + "band_ratio": 0.112213009, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.55786896e-05, + "mean_abs": 7.28417024e-06, + "psnr_db": 120.917242, + "ref_absmax": 6.73528767, + "rel_max": 1.12213009e-05, + "scaled_max_abs": 1.12213009e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0167494997, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.26633453e-05, + "mean_abs": 1.75695061e-06, + "psnr_db": 140.578099, + "ref_absmax": 19.5010872, + "rel_max": 1.67494997e-06, + "scaled_max_abs": 1.67494997e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.4/block/block.3/block.3.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.4", + "ungated_probes": { + "band_ratio": 0.116670557, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.4570694e-05, + "mean_abs": 6.45323937e-06, + "psnr_db": 117.131366, + "ref_absmax": 2.96310353, + "rel_max": 1.16670557e-05, + "scaled_max_abs": 1.16670557e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0253129458, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.60555267e-05, + "mean_abs": 2.76670381e-06, + "psnr_db": 138.577881, + "ref_absmax": 30.0460987, + "rel_max": 2.53129458e-06, + "scaled_max_abs": 2.53129458e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.5/Add_output_0" + }, + "status": "pass", + "tap": "net.features.5", + "ungated_probes": { + "band_ratio": 0.252602234, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.28232956e-05, + "mean_abs": 8.99899466e-06, + "psnr_db": 112.649286, + "ref_absmax": 2.48704433, + "rel_max": 2.52602234e-05, + "scaled_max_abs": 2.52602234e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 8249.98022, + "index": 7, + "metrics": { + "corr": 0.832077973, + "finite": true, + "max_abs": 55.83603, + "mean_abs": 1.20337082, + "psnr_db": 36.1290823, + "ref_absmax": 67.6801987, + "rel_max": 0.824998022, + "scaled_max_abs": 0.824998022 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.6/Transpose_output_0" + }, + "status": "fail", + "tap": "net.features.6", + "ungated_probes": { + "band_ratio": 10829.6668, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.7814121, + "finite": true, + "max_abs": 5.9811638, + "mean_abs": 0.352586995, + "psnr_db": 21.6692412, + "ref_absmax": 5.5229435, + "rel_max": 1.08296668, + "scaled_max_abs": 1.08296668 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6166.24139, + "index": 8, + "metrics": { + "corr": 0.630540708, + "finite": true, + "max_abs": 10.6584316, + "mean_abs": 0.677315078, + "psnr_db": 30.483452, + "ref_absmax": 17.2851353, + "rel_max": 0.616624139, + "scaled_max_abs": 0.616624139 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.7/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.7", + "ungated_probes": { + "band_ratio": 6235.35196, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.913263899, + "finite": true, + "max_abs": 1.85841364, + "mean_abs": 0.140964595, + "psnr_db": 26.2608797, + "ref_absmax": 2.98044705, + "rel_max": 0.623535196, + "scaled_max_abs": 0.623535196 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6552.51758, + "index": 9, + "metrics": { + "corr": 0.561910843, + "finite": true, + "max_abs": 10.9576699, + "mean_abs": 0.833241963, + "psnr_db": 28.8133612, + "ref_absmax": 16.7228394, + "rel_max": 0.655251758, + "scaled_max_abs": 0.655251758 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.8/Add_output_0" + }, + "status": "fail", + "tap": "net.features.8", + "ungated_probes": { + "band_ratio": 5630.68366, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.858817772, + "finite": true, + "max_abs": 2.63934672, + "mean_abs": 0.214826373, + "psnr_db": 26.3973965, + "ref_absmax": 4.68743563, + "rel_max": 0.563068366, + "scaled_max_abs": 0.563068366 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9945.89268, + "index": 10, + "metrics": { + "corr": 0.750201676, + "finite": true, + "max_abs": 2.69310486, + "mean_abs": 0.234866862, + "psnr_db": 24.2269527, + "ref_absmax": 2.7077558, + "rel_max": 0.994589268, + "scaled_max_abs": 0.994589268 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.9/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.9", + "ungated_probes": { + "band_ratio": 4387.22426, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.945696845, + "finite": true, + "max_abs": 0.533458263, + "mean_abs": 0.0858844695, + "psnr_db": 24.6364396, + "ref_absmax": 1.21593571, + "rel_max": 0.438722426, + "scaled_max_abs": 0.438722426 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7865.50075, + "index": 11, + "metrics": { + "corr": 0.765816638, + "finite": true, + "max_abs": 2.58410698, + "mean_abs": 0.28956996, + "psnr_db": 23.956856, + "ref_absmax": 3.28536868, + "rel_max": 0.786550075, + "scaled_max_abs": 0.786550075 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.10/Add_output_0" + }, + "status": "fail", + "tap": "net.features.10", + "ungated_probes": { + "band_ratio": 4213.35287, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.946721069, + "finite": true, + "max_abs": 0.733152434, + "mean_abs": 0.111982755, + "psnr_db": 26.133419, + "ref_absmax": 1.74006891, + "rel_max": 0.421335287, + "scaled_max_abs": 0.421335287 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9032.69428, + "index": 12, + "metrics": { + "corr": 0.789560889, + "finite": true, + "max_abs": 3.58560731, + "mean_abs": 0.326330514, + "psnr_db": 24.7147187, + "ref_absmax": 3.9695878, + "rel_max": 0.903269428, + "scaled_max_abs": 0.903269428 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.11/Add_output_0" + }, + "status": "fail", + "tap": "net.features.11", + "ungated_probes": { + "band_ratio": 5666.53241, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.940618085, + "finite": true, + "max_abs": 1.03191769, + "mean_abs": 0.131127723, + "psnr_db": 25.9822114, + "ref_absmax": 1.82107437, + "rel_max": 0.566653241, + "scaled_max_abs": 0.566653241 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "uniform", + "index": 17 + } + }, + { + "band_ratio": 7446.04348, + "index": 13, + "metrics": { + "corr": 0.754682616, + "finite": true, + "max_abs": 6.89360556, + "mean_abs": 0.185388615, + "psnr_db": 28.8767334, + "ref_absmax": 9.25807858, + "rel_max": 0.744604348, + "scaled_max_abs": 0.744604348 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.12/features.12.2/HardSwish_output_0" + }, + "status": "fail", + "tap": "net.features.12", + "ungated_probes": { + "band_ratio": 3822.73216, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.932576718, + "finite": true, + "max_abs": 2.35887933, + "mean_abs": 0.0580208524, + "psnr_db": 36.0043284, + "ref_absmax": 6.17066336, + "rel_max": 0.382273216, + "scaled_max_abs": 0.382273216 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "uniform", + "index": 17 + } + }, + { + "band_ratio": 1470.68428, + "index": 14, + "metrics": { + "corr": 0.974922496, + "finite": true, + "max_abs": 0.763212144, + "mean_abs": 0.0545803632, + "psnr_db": 36.0239391, + "ref_absmax": 5.18950367, + "rel_max": 0.147068428, + "scaled_max_abs": 0.147068428 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 1707.79899, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.973719531, + "finite": true, + "max_abs": 0.336208105, + "mean_abs": 0.0315902213, + "psnr_db": 33.9475183, + "ref_absmax": 1.96866322, + "rel_max": 0.170779899, + "scaled_max_abs": 0.170779899 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 2 + } + }, + { + "band_ratio": 1520.01162, + "index": 15, + "metrics": { + "corr": 0.973875497, + "finite": true, + "max_abs": 2.73984408, + "mean_abs": 0.461848551, + "psnr_db": 33.0127384, + "ref_absmax": 18.0251522, + "rel_max": 0.152001162, + "scaled_max_abs": 0.152001162 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier", + "ungated_probes": { + "band_ratio": 1804.10299, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.970861583, + "finite": true, + "max_abs": 0.938322261, + "mean_abs": 0.238257174, + "psnr_db": 28.115481, + "ref_absmax": 5.20104599, + "rel_max": 0.180410299, + "scaled_max_abs": 0.180410299 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 8 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp32", + "id": "mobilenet_v3_small__layout_swap__onnx_fp32", + "model": "mobilenet_v3_small", + "path": "onnx", + "variant": "layout_swap" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/mobilenet_v3_small__pool_divisor__coreml_fp16.json b/bench/verdicts_calibrated4/mobilenet_v3_small__pool_divisor__coreml_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..a503ef0aae7ef7a5be5b848545c08db37c124dcf --- /dev/null +++ b/bench/verdicts_calibrated4/mobilenet_v3_small__pool_divisor__coreml_fp16.json @@ -0,0 +1,1090 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "baseline": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "faithful_output_rel_max": 0.0447572937, + "output_band": 0.0895145874, + "source": { + "bundle": "bundles/mobilenet_v3_small__clean__coreml_fp16.json", + "case": "mobilenet_v3_small__clean__coreml_fp16", + "digests": { + "192": { + "converted": "e8f4b313bc394828af089248d6d729f5cfb7d031d184bf665f719d1a66fcd7d8", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "807adc810963567dc9e14f27330f17d8d7cd30ffa6b8e35992534a3dbc2f65e9", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + } + } + }, + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": false, + "note": null, + "status": "clear" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [ + "inputs[0]: dtype float16 (declared float32)", + "outputs[0]: dtype float16 (declared float32)" + ], + "status": "precision_narrowing" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "status": "clear" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp16", + "first_divergence": null, + "fp16_floor": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "baseline": { + "bundle": "bundles/mobilenet_v3_small__clean__coreml_fp16.json", + "case": "mobilenet_v3_small__clean__coreml_fp16", + "digests": { + "192": { + "converted": "e8f4b313bc394828af089248d6d729f5cfb7d031d184bf665f719d1a66fcd7d8", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "807adc810963567dc9e14f27330f17d8d7cd30ffa6b8e35992534a3dbc2f65e9", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + } + }, + "envelopes_gate": true, + "faithful_output_rel_max": 0.0447572937, + "faithful_tap_rel_max": { + "net.avgpool": 0.0593494378, + "net.classifier": 0.0447572937, + "net.features.0": 0.0033139093, + "net.features.1": 0.0109594004, + "net.features.10": 0.0689930567, + "net.features.11": 0.097995766, + "net.features.12": 0.111351399, + "net.features.2": 0.0106091941, + "net.features.3": 0.0219511544, + "net.features.4": 0.0122644963, + "net.features.5": 0.0214109624, + "net.features.6": 0.0112218713, + "net.features.7": 0.0213995931, + "net.features.8": 0.0282643785, + "net.features.9": 0.0667671518, + "normalize": 0.00117570499 + }, + "floor": 0.01, + "k": 2.0, + "output_band": 0.0895145874, + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used", + "tap_envelopes": { + "net.avgpool": 0.118698876, + "net.classifier": 0.0895145874, + "net.features.0": 0.01, + "net.features.1": 0.0219188008, + "net.features.10": 0.137986113, + "net.features.11": 0.195991532, + "net.features.12": 0.222702798, + "net.features.2": 0.0212183882, + "net.features.3": 0.0439023088, + "net.features.4": 0.0245289926, + "net.features.5": 0.0428219248, + "net.features.6": 0.0224437425, + "net.features.7": 0.0427991863, + "net.features.8": 0.056528757, + "net.features.9": 0.133534304, + "normalize": 0.01 + } + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "9cde7d9d307d395a60e64ec8d2aeff7951c24d96c923980dd6b2698a98fa49fd", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "066bc3dbf358cb49f5591b7e68da2c648b9f7abfbff7c9d6d6b339b39e2ae46c", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": null, + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.90625, + "band_limit": 0.0895145874, + "band_ratio": 0.5, + "metrics": { + "corr": 0.999319526, + "finite": true, + "max_abs": 1.09139347, + "mean_abs": 0.0562833202, + "psnr_db": 50.6735352, + "ref_absmax": 24.3847065, + "rel_max": 0.0447572937, + "scaled_max_abs": 0.0447572937 + }, + "per_op_band_ratio": 4.47572937, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 16, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 0.117570499, + "index": 0, + "metrics": { + "corr": 0.999999914, + "finite": true, + "max_abs": 0.0135545731, + "mean_abs": 0.000674526699, + "psnr_db": 83.5827466, + "ref_absmax": 11.5288897, + "rel_max": 0.00117570499, + "scaled_max_abs": 0.00117570499 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "per_op_band_ratio": 0.117570499, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 0.264822202, + "index": 1, + "metrics": { + "corr": 0.999998648, + "finite": true, + "max_abs": 0.503248215, + "mean_abs": 0.00245742044, + "psnr_db": 89.2955159, + "ref_absmax": 190.032486, + "rel_max": 0.00264822202, + "scaled_max_abs": 0.00264822202 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_7_cast_fp16" + }, + "per_op_band_ratio": 0.264822202, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_limit": 0.0219188008, + "band_ratio": 0.468941544, + "index": 2, + "metrics": { + "corr": 0.999955391, + "finite": true, + "max_abs": 0.467163086, + "mean_abs": 0.0108745644, + "psnr_db": 70.7611788, + "ref_absmax": 45.4499092, + "rel_max": 0.0102786363, + "scaled_max_abs": 0.0102786363 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_27_cast_fp16" + }, + "per_op_band_ratio": 1.02786363, + "status": "pass", + "tap": "net.features.1" + }, + { + "band_limit": 0.0212183882, + "band_ratio": 0.5, + "index": 3, + "metrics": { + "corr": 0.999939329, + "finite": true, + "max_abs": 0.274743319, + "mean_abs": 0.0150893866, + "psnr_db": 65.8230603, + "ref_absmax": 25.896719, + "rel_max": 0.0106091941, + "scaled_max_abs": 0.0106091941 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_43_cast_fp16" + }, + "per_op_band_ratio": 1.06091941, + "status": "pass", + "tap": "net.features.2" + }, + { + "band_limit": 0.0439023088, + "band_ratio": 0.5, + "index": 4, + "metrics": { + "corr": 0.999841065, + "finite": true, + "max_abs": 0.564396858, + "mean_abs": 0.0266718961, + "psnr_db": 62.2128125, + "ref_absmax": 25.7114887, + "rel_max": 0.0219511544, + "scaled_max_abs": 0.0219511544 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59_cast_fp16" + }, + "per_op_band_ratio": 2.19511544, + "status": "pass", + "tap": "net.features.3" + }, + { + "band_limit": 0.0245289926, + "band_ratio": 0.620690875, + "index": 5, + "metrics": { + "corr": 0.999759723, + "finite": true, + "max_abs": 0.26046735, + "mean_abs": 0.0164695043, + "psnr_db": 61.0597426, + "ref_absmax": 17.1079597, + "rel_max": 0.0152249219, + "scaled_max_abs": 0.0152249219 + }, + "op": { + "candidates": 4, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_83_cast_fp16" + }, + "per_op_band_ratio": 1.52249219, + "status": "pass", + "tap": "net.features.4" + }, + { + "band_limit": 0.0428219248, + "band_ratio": 0.492847392, + "index": 6, + "metrics": { + "corr": 0.999447351, + "finite": true, + "max_abs": 0.471027374, + "mean_abs": 0.0248036537, + "psnr_db": 58.8381999, + "ref_absmax": 22.3186283, + "rel_max": 0.021104674, + "scaled_max_abs": 0.021104674 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_109_cast_fp16" + }, + "per_op_band_ratio": 2.1104674, + "status": "pass", + "tap": "net.features.5" + }, + { + "band_limit": 0.0224437425, + "band_ratio": 0.405302597, + "index": 7, + "metrics": { + "corr": 0.999853196, + "finite": true, + "max_abs": 0.570988417, + "mean_abs": 0.0399705316, + "psnr_db": 65.410923, + "ref_absmax": 62.7700729, + "rel_max": 0.00909650714, + "scaled_max_abs": 0.00909650714 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_135_cast_fp16" + }, + "per_op_band_ratio": 0.909650714, + "status": "pass", + "tap": "net.features.6" + }, + { + "band_limit": 0.0427991863, + "band_ratio": 0.359311702, + "index": 8, + "metrics": { + "corr": 0.999625919, + "finite": true, + "max_abs": 0.318088531, + "mean_abs": 0.0213923881, + "psnr_db": 61.3762014, + "ref_absmax": 20.6843147, + "rel_max": 0.0153782485, + "scaled_max_abs": 0.0153782485 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_161_cast_fp16" + }, + "per_op_band_ratio": 1.53782485, + "status": "pass", + "tap": "net.features.7" + }, + { + "band_limit": 0.056528757, + "band_ratio": 0.374795531, + "index": 9, + "metrics": { + "corr": 0.999520738, + "finite": true, + "max_abs": 0.41216588, + "mean_abs": 0.0268162284, + "psnr_db": 59.2518108, + "ref_absmax": 19.453968, + "rel_max": 0.0211867255, + "scaled_max_abs": 0.0211867255 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_187_cast_fp16" + }, + "per_op_band_ratio": 2.11867255, + "status": "pass", + "tap": "net.features.8" + }, + { + "band_limit": 0.133534304, + "band_ratio": 0.357544586, + "index": 10, + "metrics": { + "corr": 0.999219809, + "finite": true, + "max_abs": 0.166851461, + "mean_abs": 0.0114757947, + "psnr_db": 51.4189906, + "ref_absmax": 3.49467635, + "rel_max": 0.0477444673, + "scaled_max_abs": 0.0477444673 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_213_cast_fp16" + }, + "per_op_band_ratio": 4.77444673, + "status": "pass", + "tap": "net.features.9" + }, + { + "band_limit": 0.137986113, + "band_ratio": 0.44973864, + "index": 11, + "metrics": { + "corr": 0.999094061, + "finite": true, + "max_abs": 0.232064664, + "mean_abs": 0.0150175555, + "psnr_db": 49.9018713, + "ref_absmax": 3.73949909, + "rel_max": 0.062057687, + "scaled_max_abs": 0.062057687 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_239_cast_fp16" + }, + "per_op_band_ratio": 6.2057687, + "status": "pass", + "tap": "net.features.10" + }, + { + "band_limit": 0.195991532, + "band_ratio": 0.5, + "index": 12, + "metrics": { + "corr": 0.999010097, + "finite": true, + "max_abs": 0.444393635, + "mean_abs": 0.0180254892, + "psnr_db": 49.8811481, + "ref_absmax": 4.53482485, + "rel_max": 0.097995766, + "scaled_max_abs": 0.097995766 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_265_cast_fp16" + }, + "per_op_band_ratio": 9.7995766, + "status": "pass", + "tap": "net.features.11" + }, + { + "band_limit": 0.222702798, + "band_ratio": 0.351382399, + "index": 13, + "metrics": { + "corr": 0.998635748, + "finite": true, + "max_abs": 0.790345192, + "mean_abs": 0.0107832593, + "psnr_db": 52.2431642, + "ref_absmax": 10.099762, + "rel_max": 0.0782538435, + "scaled_max_abs": 0.0782538435 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_271_cast_fp16" + }, + "per_op_band_ratio": 7.82538435, + "status": "pass", + "tap": "net.features.12" + }, + { + "band_limit": 0.118698876, + "band_ratio": 0.5, + "index": 14, + "metrics": { + "corr": 0.999149208, + "finite": true, + "max_abs": 0.311341763, + "mean_abs": 0.00660600486, + "psnr_db": 50.9603603, + "ref_absmax": 5.24590921, + "rel_max": 0.0593494378, + "scaled_max_abs": 0.0593494378 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "per_op_band_ratio": 5.93494378, + "status": "pass", + "tap": "net.avgpool" + }, + { + "band_limit": 0.0895145874, + "band_ratio": 0.5, + "index": 15, + "metrics": { + "corr": 0.999319526, + "finite": true, + "max_abs": 1.09139347, + "mean_abs": 0.0562833202, + "psnr_db": 50.6735352, + "ref_absmax": 24.3847065, + "rel_max": 0.0447572937, + "scaled_max_abs": 0.0447572937 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "per_op_band_ratio": 4.47572937, + "status": "pass", + "tap": "net.classifier" + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_limit": 0.0895145874, + "band_ratio": 0.204827776, + "metrics": { + "corr": 0.999757484, + "finite": true, + "max_abs": 0.330492496, + "mean_abs": 0.0361106457, + "psnr_db": 53.9567107, + "ref_absmax": 18.0251522, + "rel_max": 0.0183350738, + "scaled_max_abs": 0.0183350738 + }, + "per_op_band_ratio": 1.83350738, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 16, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 0.116213884, + "index": 0, + "metrics": { + "corr": 0.999999912, + "finite": true, + "max_abs": 0.0133981705, + "mean_abs": 0.000679588388, + "psnr_db": 83.6184843, + "ref_absmax": 11.5288897, + "rel_max": 0.00116213884, + "scaled_max_abs": 0.00116213884 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "per_op_band_ratio": 0.116213884, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 0.33139093, + "index": 1, + "metrics": { + "corr": 0.999998561, + "finite": true, + "max_abs": 0.560178757, + "mean_abs": 0.00245733429, + "psnr_db": 88.488319, + "ref_absmax": 169.038651, + "rel_max": 0.0033139093, + "scaled_max_abs": 0.0033139093 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_7_cast_fp16" + }, + "per_op_band_ratio": 0.33139093, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_limit": 0.0219188008, + "band_ratio": 0.5, + "index": 2, + "metrics": { + "corr": 0.999947809, + "finite": true, + "max_abs": 0.489273071, + "mean_abs": 0.0109243768, + "psnr_db": 70.0800625, + "ref_absmax": 44.644146, + "rel_max": 0.0109594004, + "scaled_max_abs": 0.0109594004 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_27_cast_fp16" + }, + "per_op_band_ratio": 1.09594004, + "status": "pass", + "tap": "net.features.1" + }, + { + "band_limit": 0.0212183882, + "band_ratio": 0.472423312, + "index": 3, + "metrics": { + "corr": 0.999928562, + "finite": true, + "max_abs": 0.306883574, + "mean_abs": 0.0154189054, + "psnr_db": 66.8123424, + "ref_absmax": 30.6146946, + "rel_max": 0.0100240612, + "scaled_max_abs": 0.0100240612 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_43_cast_fp16" + }, + "per_op_band_ratio": 1.00240612, + "status": "pass", + "tap": "net.features.2" + }, + { + "band_limit": 0.0439023088, + "band_ratio": 0.395740738, + "index": 4, + "metrics": { + "corr": 0.999826151, + "finite": true, + "max_abs": 0.454617977, + "mean_abs": 0.0275043068, + "psnr_db": 61.9146954, + "ref_absmax": 26.1666718, + "rel_max": 0.0173739321, + "scaled_max_abs": 0.0173739321 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59_cast_fp16" + }, + "per_op_band_ratio": 1.73739321, + "status": "pass", + "tap": "net.features.3" + }, + { + "band_limit": 0.0245289926, + "band_ratio": 0.550759342, + "index": 5, + "metrics": { + "corr": 0.999760602, + "finite": true, + "max_abs": 0.263451338, + "mean_abs": 0.0169155159, + "psnr_db": 62.0012665, + "ref_absmax": 19.5010872, + "rel_max": 0.0135095718, + "scaled_max_abs": 0.0135095718 + }, + "op": { + "candidates": 4, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_83_cast_fp16" + }, + "per_op_band_ratio": 1.35095718, + "status": "pass", + "tap": "net.features.4" + }, + { + "band_limit": 0.0428219248, + "band_ratio": 0.316127148, + "index": 6, + "metrics": { + "corr": 0.999466814, + "finite": true, + "max_abs": 0.406739235, + "mean_abs": 0.025745665, + "psnr_db": 60.821415, + "ref_absmax": 30.0460987, + "rel_max": 0.013537173, + "scaled_max_abs": 0.013537173 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_109_cast_fp16" + }, + "per_op_band_ratio": 1.3537173, + "status": "pass", + "tap": "net.features.5" + }, + { + "band_limit": 0.0224437425, + "band_ratio": 0.36564733, + "index": 7, + "metrics": { + "corr": 0.999869972, + "finite": true, + "max_abs": 0.55541718, + "mean_abs": 0.0362369712, + "psnr_db": 67.7357211, + "ref_absmax": 67.6801987, + "rel_max": 0.00820649453, + "scaled_max_abs": 0.00820649453 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_135_cast_fp16" + }, + "per_op_band_ratio": 0.820649453, + "status": "pass", + "tap": "net.features.6" + }, + { + "band_limit": 0.0427991863, + "band_ratio": 0.465215961, + "index": 8, + "metrics": { + "corr": 0.999611423, + "finite": true, + "max_abs": 0.344161987, + "mean_abs": 0.0206660012, + "psnr_db": 60.6545893, + "ref_absmax": 17.2851353, + "rel_max": 0.0199108646, + "scaled_max_abs": 0.0199108646 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_161_cast_fp16" + }, + "per_op_band_ratio": 1.99108646, + "status": "pass", + "tap": "net.features.7" + }, + { + "band_limit": 0.056528757, + "band_ratio": 0.416433941, + "index": 9, + "metrics": { + "corr": 0.999548596, + "finite": true, + "max_abs": 0.393663883, + "mean_abs": 0.0250305922, + "psnr_db": 59.028162, + "ref_absmax": 16.7228394, + "rel_max": 0.023540493, + "scaled_max_abs": 0.023540493 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_187_cast_fp16" + }, + "per_op_band_ratio": 2.3540493, + "status": "pass", + "tap": "net.features.8" + }, + { + "band_limit": 0.133534304, + "band_ratio": 0.328150775, + "index": 10, + "metrics": { + "corr": 0.999523738, + "finite": true, + "max_abs": 0.118652195, + "mean_abs": 0.0095388501, + "psnr_db": 51.6614998, + "ref_absmax": 2.7077558, + "rel_max": 0.0438193852, + "scaled_max_abs": 0.0438193852 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_213_cast_fp16" + }, + "per_op_band_ratio": 4.38193852, + "status": "pass", + "tap": "net.features.9" + }, + { + "band_limit": 0.137986113, + "band_ratio": 0.40796476, + "index": 11, + "metrics": { + "corr": 0.999462721, + "finite": true, + "max_abs": 0.184944808, + "mean_abs": 0.0124173898, + "psnr_db": 50.5313684, + "ref_absmax": 3.28536868, + "rel_max": 0.0562934716, + "scaled_max_abs": 0.0562934716 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_239_cast_fp16" + }, + "per_op_band_ratio": 5.62934716, + "status": "pass", + "tap": "net.features.10" + }, + { + "band_limit": 0.195991532, + "band_ratio": 0.328410957, + "index": 12, + "metrics": { + "corr": 0.999472625, + "finite": true, + "max_abs": 0.255505562, + "mean_abs": 0.0146104823, + "psnr_db": 50.9579502, + "ref_absmax": 3.9695878, + "rel_max": 0.0643657666, + "scaled_max_abs": 0.0643657666 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_265_cast_fp16" + }, + "per_op_band_ratio": 6.43657666, + "status": "pass", + "tap": "net.features.11" + }, + { + "band_limit": 0.222702798, + "band_ratio": 0.443907109, + "index": 13, + "metrics": { + "corr": 0.999401631, + "finite": true, + "max_abs": 0.915247679, + "mean_abs": 0.0080544773, + "psnr_db": 55.4743789, + "ref_absmax": 9.25807858, + "rel_max": 0.0988593552, + "scaled_max_abs": 0.0988593552 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_271_cast_fp16" + }, + "per_op_band_ratio": 9.88593552, + "status": "pass", + "tap": "net.features.12" + }, + { + "band_limit": 0.118698876, + "band_ratio": 0.208340882, + "index": 14, + "metrics": { + "corr": 0.999738832, + "finite": true, + "max_abs": 0.128335536, + "mean_abs": 0.00433290907, + "psnr_db": 56.2337952, + "ref_absmax": 5.18950367, + "rel_max": 0.0247298285, + "scaled_max_abs": 0.0247298285 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "per_op_band_ratio": 2.47298285, + "status": "pass", + "tap": "net.avgpool" + }, + { + "band_limit": 0.0895145874, + "band_ratio": 0.204827776, + "index": 15, + "metrics": { + "corr": 0.999757484, + "finite": true, + "max_abs": 0.330492496, + "mean_abs": 0.0361106457, + "psnr_db": 53.9567107, + "ref_absmax": 18.0251522, + "rel_max": 0.0183350738, + "scaled_max_abs": 0.0183350738 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "per_op_band_ratio": 1.83350738, + "status": "pass", + "tap": "net.classifier" + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp16", + "id": "mobilenet_v3_small__pool_divisor__coreml_fp16", + "model": "mobilenet_v3_small", + "path": "coreml", + "variant": "pool_divisor" + }, + "tap_bands_gate": true, + "verdict": "PASS" +} diff --git a/bench/verdicts_calibrated4/mobilenet_v3_small__pool_divisor__coreml_fp32.json b/bench/verdicts_calibrated4/mobilenet_v3_small__pool_divisor__coreml_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..fda42089a812b4f058bb2f665b1c7d7bfbb4134c --- /dev/null +++ b/bench/verdicts_calibrated4/mobilenet_v3_small__pool_divisor__coreml_fp32.json @@ -0,0 +1,1596 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "reason": "first divergence at tap 5 is beyond the hypothesis taps (first 3) \u2014 interface faults surface earlier", + "status": "not_evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "input_83", + "basis": "earliest tap over band with in-band predecessors; localised on all probes (C4-1): no tap is over band on the gated probes but the output is, and this is the earliest tap over band on all probes (near-zero evidence localises)", + "index": 5, + "localisation": { + "all_probe_band_ratios": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "tap": "normalize" + }, + { + "band_ratio": 0.00361072193, + "index": 1, + "tap": "net.features.0" + }, + { + "band_ratio": 0.0153937664, + "index": 2, + "tap": "net.features.1" + }, + { + "band_ratio": 0.0136285048, + "index": 3, + "tap": "net.features.2" + }, + { + "band_ratio": 0.0653297152, + "index": 4, + "tap": "net.features.3" + }, + { + "band_ratio": 60.1799742, + "index": 5, + "tap": "net.features.4" + } + ], + "classified_on": "all probes (DECISIONS.md 11.B')", + "localised": true, + "localised_metrics": { + "corr": 0.999932921, + "finite": true, + "max_abs": 0.117357492, + "mean_abs": 0.00400841999, + "psnr_db": 67.4738744, + "ref_absmax": 19.5010872, + "rel_max": 0.00601799742, + "scaled_max_abs": 0.00601799742 + }, + "n_probes": 32, + "probes": "all (the C3-2 gated probes and near_zero)", + "rule": "C4-1 (a1)" + }, + "neighbourhood": [ + { + "band_ratio": 0.0355349915, + "index": 4, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59" + }, + "status": "pass", + "tap": "net.features.3" + }, + { + "band_ratio": 0.0155269085, + "index": 5, + "op": { + "candidates": 4, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_83" + }, + "status": "pass", + "tap": "net.features.4" + }, + { + "band_ratio": 0.0244400856, + "index": 6, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_109" + }, + "status": "pass", + "tap": "net.features.5" + } + ], + "shape": 224, + "tap": "net.features.4" + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "770a7b8e7fc1be9caaf63f93b5df31be8c81862476e8252d3e9c0bb0f89742b8", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "331c577acf0c2b844056eca7996d753007b77a44a241b894d13f350a00cb09fd", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "fp32 per-tap band on near-zero probes", + "reason": "C3-2: per-tap fp32 checks gate without the near_zero probes; they are measured and reported per tap ('ungated_probes'); the output gates on all probes. C4-1: when the output has failed and no gated tap fails, they localise the first divergence (earliest tap over band on all probes)" + }, + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D2", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 48.0323645, + "metrics": { + "corr": 0.999989974, + "finite": true, + "max_abs": 0.117125511, + "mean_abs": 0.00323300816, + "psnr_db": 69.2831926, + "ref_absmax": 24.3847065, + "rel_max": 0.00480323645, + "scaled_max_abs": 0.00480323645 + }, + "status": "fail", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + "first_fail_index": null, + "n_judged": 16, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.06644368e-08, + "psnr_db": 164.113247, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.00112572895, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.38418579e-07, + "mean_abs": 4.66593688e-08, + "psnr_db": 130.397207, + "ref_absmax": 2.11790395, + "rel_max": 1.12572895e-07, + "scaled_max_abs": 1.12572895e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00401478436, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.62939453e-05, + "mean_abs": 3.24115959e-07, + "psnr_db": 165.981806, + "ref_absmax": 190.032486, + "rel_max": 4.01478436e-07, + "scaled_max_abs": 4.01478436e-07 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_7" + }, + "status": "pass", + "tap": "net.features.0", + "ungated_probes": { + "band_ratio": 0.00361820398, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.14440918e-05, + "mean_abs": 3.57559764e-07, + "psnr_db": 154.819305, + "ref_absmax": 31.6292057, + "rel_max": 3.61820398e-07, + "scaled_max_abs": 3.61820398e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0140782649, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.39855862e-05, + "mean_abs": 1.68588111e-06, + "psnr_db": 146.919123, + "ref_absmax": 45.4499092, + "rel_max": 1.40782649e-06, + "scaled_max_abs": 1.40782649e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_27" + }, + "status": "pass", + "tap": "net.features.1", + "ungated_probes": { + "band_ratio": 0.0551195708, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.04119492e-05, + "mean_abs": 2.21933378e-06, + "psnr_db": 131.19673, + "ref_absmax": 7.33168793, + "rel_max": 5.51195708e-06, + "scaled_max_abs": 5.51195708e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0168018932, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.35113907e-05, + "mean_abs": 2.364716e-06, + "psnr_db": 141.953623, + "ref_absmax": 25.896719, + "rel_max": 1.68018932e-06, + "scaled_max_abs": 1.68018932e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_43" + }, + "status": "pass", + "tap": "net.features.2", + "ungated_probes": { + "band_ratio": 0.0935379449, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.02927399e-05, + "mean_abs": 3.91170222e-06, + "psnr_db": 121.942109, + "ref_absmax": 4.30763578, + "rel_max": 9.35379449e-06, + "scaled_max_abs": 9.35379449e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0496097061, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.00012755394, + "mean_abs": 3.98352299e-06, + "psnr_db": 138.819026, + "ref_absmax": 25.7114887, + "rel_max": 4.96097061e-06, + "scaled_max_abs": 4.96097061e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59" + }, + "status": "pass", + "tap": "net.features.3", + "ungated_probes": { + "band_ratio": 0.332723064, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000223994255, + "mean_abs": 1.24484625e-05, + "psnr_db": 115.698552, + "ref_absmax": 6.73215294, + "rel_max": 3.32723064e-05, + "scaled_max_abs": 3.32723064e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0150858498, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.58088112e-05, + "mean_abs": 2.13908043e-06, + "psnr_db": 139.557552, + "ref_absmax": 17.1079597, + "rel_max": 1.50858498e-06, + "scaled_max_abs": 1.50858498e-06 + }, + "op": { + "candidates": 4, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_83" + }, + "status": "pass", + "tap": "net.features.4", + "ungated_probes": { + "band_ratio": 422.4423, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999484833, + "finite": true, + "max_abs": 0.12377739, + "mean_abs": 0.0338041255, + "psnr_db": 42.6379619, + "ref_absmax": 2.93004251, + "rel_max": 0.04224423, + "scaled_max_abs": 0.04224423 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0275608306, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.15119934e-05, + "mean_abs": 3.17559211e-06, + "psnr_db": 137.135406, + "ref_absmax": 22.3186283, + "rel_max": 2.75608306e-06, + "scaled_max_abs": 2.75608306e-06 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_109" + }, + "status": "pass", + "tap": "net.features.5", + "ungated_probes": { + "band_ratio": 999.736989, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.998065028, + "finite": true, + "max_abs": 0.288100004, + "mean_abs": 0.0417173451, + "psnr_db": 39.6131359, + "ref_absmax": 2.88175797, + "rel_max": 0.0999736989, + "scaled_max_abs": 0.0999736989 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0158008625, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.91821289e-05, + "mean_abs": 5.04242062e-06, + "psnr_db": 143.735769, + "ref_absmax": 62.7700729, + "rel_max": 1.58008625e-06, + "scaled_max_abs": 1.58008625e-06 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_135" + }, + "status": "pass", + "tap": "net.features.6", + "ungated_probes": { + "band_ratio": 1256.44628, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.998674092, + "finite": true, + "max_abs": 0.687248468, + "mean_abs": 0.0506530431, + "psnr_db": 43.5669697, + "ref_absmax": 5.46977997, + "rel_max": 0.125644628, + "scaled_max_abs": 0.125644628 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.028585819, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.91278076e-05, + "mean_abs": 3.125392e-06, + "psnr_db": 138.047215, + "ref_absmax": 20.6843147, + "rel_max": 2.8585819e-06, + "scaled_max_abs": 2.8585819e-06 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_161" + }, + "status": "pass", + "tap": "net.features.7", + "ungated_probes": { + "band_ratio": 870.165617, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999009996, + "finite": true, + "max_abs": 0.252095699, + "mean_abs": 0.0208228222, + "psnr_db": 44.9324617, + "ref_absmax": 2.89710021, + "rel_max": 0.0870165617, + "scaled_max_abs": 0.0870165617 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0318643633, + "index": 9, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.19888306e-05, + "mean_abs": 3.99878499e-06, + "psnr_db": 135.595055, + "ref_absmax": 19.453968, + "rel_max": 3.18643633e-06, + "scaled_max_abs": 3.18643633e-06 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_187" + }, + "status": "pass", + "tap": "net.features.8", + "ungated_probes": { + "band_ratio": 907.152352, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.998945745, + "finite": true, + "max_abs": 0.383004665, + "mean_abs": 0.0233281018, + "psnr_db": 47.0423796, + "ref_absmax": 4.22205448, + "rel_max": 0.0907152352, + "scaled_max_abs": 0.0907152352 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0685644815, + "index": 10, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.39610672e-05, + "mean_abs": 1.60867426e-06, + "psnr_db": 128.642248, + "ref_absmax": 3.49467635, + "rel_max": 6.85644815e-06, + "scaled_max_abs": 6.85644815e-06 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_213" + }, + "status": "pass", + "tap": "net.features.9", + "ungated_probes": { + "band_ratio": 957.650825, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999297293, + "finite": true, + "max_abs": 0.112889647, + "mean_abs": 0.0108781872, + "psnr_db": 43.2681617, + "ref_absmax": 1.17881846, + "rel_max": 0.0957650825, + "scaled_max_abs": 0.0957650825 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.101373347, + "index": 11, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.79085541e-05, + "mean_abs": 2.04077571e-06, + "psnr_db": 127.38104, + "ref_absmax": 3.73949909, + "rel_max": 1.01373347e-05, + "scaled_max_abs": 1.01373347e-05 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_239" + }, + "status": "pass", + "tap": "net.features.10", + "ungated_probes": { + "band_ratio": 711.769047, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999454488, + "finite": true, + "max_abs": 0.115904987, + "mean_abs": 0.011436917, + "psnr_db": 45.7961355, + "ref_absmax": 1.62840724, + "rel_max": 0.0711769047, + "scaled_max_abs": 0.0711769047 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0977895667, + "index": 12, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.43458557e-05, + "mean_abs": 2.44803287e-06, + "psnr_db": 127.471406, + "ref_absmax": 4.53482485, + "rel_max": 9.77895667e-06, + "scaled_max_abs": 9.77895667e-06 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_265" + }, + "status": "pass", + "tap": "net.features.11", + "ungated_probes": { + "band_ratio": 738.027898, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.99935919, + "finite": true, + "max_abs": 0.124533832, + "mean_abs": 0.0135667192, + "psnr_db": 45.4200489, + "ref_absmax": 1.68738651, + "rel_max": 0.0738027898, + "scaled_max_abs": 0.0738027898 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.104340095, + "index": 13, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000105381012, + "mean_abs": 1.53428941e-06, + "psnr_db": 129.472015, + "ref_absmax": 10.099762, + "rel_max": 1.04340095e-05, + "scaled_max_abs": 1.04340095e-05 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_271" + }, + "status": "pass", + "tap": "net.features.12", + "ungated_probes": { + "band_ratio": 477.80702, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.998954625, + "finite": true, + "max_abs": 0.269633889, + "mean_abs": 0.0066684631, + "psnr_db": 53.4513183, + "ref_absmax": 5.64315462, + "rel_max": 0.047780702, + "scaled_max_abs": 0.047780702 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0569242162, + "index": 14, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.9861927e-05, + "mean_abs": 8.47039061e-07, + "psnr_db": 128.667895, + "ref_absmax": 5.24590921, + "rel_max": 5.69242162e-06, + "scaled_max_abs": 5.69242162e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x" + }, + "status": "pass", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 263.400679, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999671083, + "finite": true, + "max_abs": 0.0492142439, + "mean_abs": 0.0042076068, + "psnr_db": 51.1514638, + "ref_absmax": 1.8684175, + "rel_max": 0.0263400679, + "scaled_max_abs": 0.0263400679 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0588598369, + "index": 15, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000143527985, + "mean_abs": 7.40784811e-06, + "psnr_db": 128.453753, + "ref_absmax": 24.3847065, + "rel_max": 5.88598369e-06, + "scaled_max_abs": 5.88598369e-06 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "pass", + "tap": "net.classifier", + "ungated_probes": { + "band_ratio": 218.752805, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999637667, + "finite": true, + "max_abs": 0.117125511, + "mean_abs": 0.0258122104, + "psnr_db": 47.3881518, + "ref_absmax": 5.35424042, + "rel_max": 0.0218752805, + "scaled_max_abs": 0.0218752805 + }, + "n_probes": 4 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.875, + "band_ratio": 94.1307952, + "metrics": { + "corr": 0.999967687, + "finite": true, + "max_abs": 0.169672191, + "mean_abs": 0.00540374165, + "psnr_db": 62.9237493, + "ref_absmax": 18.0251522, + "rel_max": 0.00941307952, + "scaled_max_abs": 0.00941307952 + }, + "status": "fail", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + }, + "first_fail_index": null, + "n_judged": 16, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.08107465e-08, + "psnr_db": 164.245493, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.00112572895, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.38418579e-07, + "mean_abs": 4.66724468e-08, + "psnr_db": 130.436578, + "ref_absmax": 2.11790395, + "rel_max": 1.12572895e-07, + "scaled_max_abs": 1.12572895e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00361072193, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.10351562e-05, + "mean_abs": 3.23075084e-07, + "psnr_db": 165.187819, + "ref_absmax": 169.038651, + "rel_max": 3.61072193e-07, + "scaled_max_abs": 3.61072193e-07 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_7" + }, + "status": "pass", + "tap": "net.features.0", + "ungated_probes": { + "band_ratio": 0.00301177623, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-06, + "mean_abs": 3.57725008e-07, + "psnr_db": 154.82564, + "ref_absmax": 31.6648464, + "rel_max": 3.01177623e-07, + "scaled_max_abs": 3.01177623e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0153937664, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.87241554e-05, + "mean_abs": 1.68878429e-06, + "psnr_db": 146.318516, + "ref_absmax": 44.644146, + "rel_max": 1.53937664e-06, + "scaled_max_abs": 1.53937664e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_27" + }, + "status": "pass", + "tap": "net.features.1", + "ungated_probes": { + "band_ratio": 0.055234557, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.04715538e-05, + "mean_abs": 2.20760109e-06, + "psnr_db": 131.255547, + "ref_absmax": 7.32721615, + "rel_max": 5.5234557e-06, + "scaled_max_abs": 5.5234557e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0136285048, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.17232513e-05, + "mean_abs": 2.43601888e-06, + "psnr_db": 142.906833, + "ref_absmax": 30.6146946, + "rel_max": 1.36285048e-06, + "scaled_max_abs": 1.36285048e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_43" + }, + "status": "pass", + "tap": "net.features.2", + "ungated_probes": { + "band_ratio": 0.0861525833, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.71336937e-05, + "mean_abs": 3.88479582e-06, + "psnr_db": 122.05109, + "ref_absmax": 4.31022406, + "rel_max": 8.61525833e-06, + "scaled_max_abs": 8.61525833e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0355349915, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.29832458e-05, + "mean_abs": 4.135614e-06, + "psnr_db": 138.490513, + "ref_absmax": 26.1666718, + "rel_max": 3.55349915e-06, + "scaled_max_abs": 3.55349915e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59" + }, + "status": "pass", + "tap": "net.features.3", + "ungated_probes": { + "band_ratio": 0.253806711, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000170946121, + "mean_abs": 1.23293088e-05, + "psnr_db": 115.888091, + "ref_absmax": 6.73528767, + "rel_max": 2.53806711e-05, + "scaled_max_abs": 2.53806711e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0155269085, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.02791595e-05, + "mean_abs": 2.25469907e-06, + "psnr_db": 140.112892, + "ref_absmax": 19.5010872, + "rel_max": 1.55269085e-06, + "scaled_max_abs": 1.55269085e-06 + }, + "op": { + "candidates": 4, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_83" + }, + "status": "pass", + "tap": "net.features.4", + "ungated_probes": { + "band_ratio": 396.062747, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999547539, + "finite": true, + "max_abs": 0.117357492, + "mean_abs": 0.032051577, + "psnr_db": 43.2130272, + "ref_absmax": 2.96310353, + "rel_max": 0.0396062747, + "scaled_max_abs": 0.0396062747 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0244400856, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.34329224e-05, + "mean_abs": 3.53038242e-06, + "psnr_db": 138.023101, + "ref_absmax": 30.0460987, + "rel_max": 2.44400856e-06, + "scaled_max_abs": 2.44400856e-06 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_109" + }, + "status": "pass", + "tap": "net.features.5", + "ungated_probes": { + "band_ratio": 1035.49661, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.998401436, + "finite": true, + "max_abs": 0.257532597, + "mean_abs": 0.0383253628, + "psnr_db": 39.7670976, + "ref_absmax": 2.48704433, + "rel_max": 0.103549661, + "scaled_max_abs": 0.103549661 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0157817982, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000106811523, + "mean_abs": 5.2917976e-06, + "psnr_db": 144.026315, + "ref_absmax": 67.6801987, + "rel_max": 1.57817982e-06, + "scaled_max_abs": 1.57817982e-06 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_135" + }, + "status": "pass", + "tap": "net.features.6", + "ungated_probes": { + "band_ratio": 1048.84009, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.998853488, + "finite": true, + "max_abs": 0.579268456, + "mean_abs": 0.0468460139, + "psnr_db": 44.2589584, + "ref_absmax": 5.5229435, + "rel_max": 0.104884009, + "scaled_max_abs": 0.104884009 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0573800132, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.91821289e-05, + "mean_abs": 3.26225295e-06, + "psnr_db": 136.104186, + "ref_absmax": 17.2851353, + "rel_max": 5.73800132e-06, + "scaled_max_abs": 5.73800132e-06 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_161" + }, + "status": "pass", + "tap": "net.features.7", + "ungated_probes": { + "band_ratio": 905.211327, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999252832, + "finite": true, + "max_abs": 0.269793443, + "mean_abs": 0.0177971333, + "psnr_db": 46.753318, + "ref_absmax": 2.98044705, + "rel_max": 0.0905211327, + "scaled_max_abs": 0.0905211327 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0631587904, + "index": 9, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000105619431, + "mean_abs": 4.09940611e-06, + "psnr_db": 133.980045, + "ref_absmax": 16.7228394, + "rel_max": 6.31587904e-06, + "scaled_max_abs": 6.31587904e-06 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_187" + }, + "status": "pass", + "tap": "net.features.8", + "ungated_probes": { + "band_ratio": 837.761177, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999256733, + "finite": true, + "max_abs": 0.392695159, + "mean_abs": 0.0189912491, + "psnr_db": 49.1960513, + "ref_absmax": 4.68743563, + "rel_max": 0.0837761177, + "scaled_max_abs": 0.0837761177 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.110888285, + "index": 10, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.00258398e-05, + "mean_abs": 1.52256342e-06, + "psnr_db": 126.715513, + "ref_absmax": 2.7077558, + "rel_max": 1.10888285e-05, + "scaled_max_abs": 1.10888285e-05 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_213" + }, + "status": "pass", + "tap": "net.features.9", + "ungated_probes": { + "band_ratio": 1155.85203, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999375558, + "finite": true, + "max_abs": 0.140544176, + "mean_abs": 0.00986159629, + "psnr_db": 44.1261875, + "ref_absmax": 1.21593571, + "rel_max": 0.115585203, + "scaled_max_abs": 0.115585203 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.126997167, + "index": 11, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.17232513e-05, + "mean_abs": 2.09874024e-06, + "psnr_db": 125.01337, + "ref_absmax": 3.28536868, + "rel_max": 1.26997167e-05, + "scaled_max_abs": 1.26997167e-05 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_239" + }, + "status": "pass", + "tap": "net.features.10", + "ungated_probes": { + "band_ratio": 786.474406, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999368413, + "finite": true, + "max_abs": 0.136851966, + "mean_abs": 0.012483248, + "psnr_db": 45.402352, + "ref_absmax": 1.74006891, + "rel_max": 0.0786474406, + "scaled_max_abs": 0.0786474406 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.129450857, + "index": 12, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.13866544e-05, + "mean_abs": 2.43962019e-06, + "psnr_db": 125.504408, + "ref_absmax": 3.9695878, + "rel_max": 1.29450857e-05, + "scaled_max_abs": 1.29450857e-05 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_265" + }, + "status": "pass", + "tap": "net.features.11", + "ungated_probes": { + "band_ratio": 829.342015, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999301018, + "finite": true, + "max_abs": 0.151029348, + "mean_abs": 0.0144305369, + "psnr_db": 45.3350368, + "ref_absmax": 1.82107437, + "rel_max": 0.0829342015, + "scaled_max_abs": 0.0829342015 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.170481486, + "index": 13, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000157833099, + "mean_abs": 1.41514613e-06, + "psnr_db": 129.031824, + "ref_absmax": 9.25807858, + "rel_max": 1.70481486e-05, + "scaled_max_abs": 1.70481486e-05 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_271" + }, + "status": "pass", + "tap": "net.features.12", + "ungated_probes": { + "band_ratio": 516.163621, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.998709302, + "finite": true, + "max_abs": 0.318507195, + "mean_abs": 0.00678885144, + "psnr_db": 53.1966312, + "ref_absmax": 6.17066336, + "rel_max": 0.0516163621, + "scaled_max_abs": 0.0516163621 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0590360646, + "index": 14, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.06367874e-05, + "mean_abs": 7.14702252e-07, + "psnr_db": 130.106476, + "ref_absmax": 5.18950367, + "rel_max": 5.90360646e-06, + "scaled_max_abs": 5.90360646e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x" + }, + "status": "pass", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 391.703721, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999205213, + "finite": true, + "max_abs": 0.0771132708, + "mean_abs": 0.00484239939, + "psnr_db": 49.062689, + "ref_absmax": 1.96866322, + "rel_max": 0.0391703721, + "scaled_max_abs": 0.0391703721 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0583310433, + "index": 15, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000105142593, + "mean_abs": 6.17033079e-06, + "psnr_db": 128.377023, + "ref_absmax": 18.0251522, + "rel_max": 5.83310433e-06, + "scaled_max_abs": 5.83310433e-06 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "pass", + "tap": "net.classifier", + "ungated_probes": { + "band_ratio": 326.227054, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999042515, + "finite": true, + "max_abs": 0.169672191, + "mean_abs": 0.0431867409, + "psnr_db": 43.1167642, + "ref_absmax": 5.20104599, + "rel_max": 0.0326227054, + "scaled_max_abs": 0.0326227054 + }, + "n_probes": 4 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp32", + "id": "mobilenet_v3_small__pool_divisor__coreml_fp32", + "model": "mobilenet_v3_small", + "path": "coreml", + "variant": "pool_divisor" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/mobilenet_v3_small__pool_divisor__litert_fp16.json b/bench/verdicts_calibrated4/mobilenet_v3_small__pool_divisor__litert_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..7e5688f441a384700c43d0928fdcfbd55dbd7825 --- /dev/null +++ b/bench/verdicts_calibrated4/mobilenet_v3_small__pool_divisor__litert_fp16.json @@ -0,0 +1,1344 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "baseline": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "faithful_output_rel_max": 0.0347403663, + "output_band": 0.0694807327, + "source": { + "bundle": "bundles/mobilenet_v3_small__clean__litert_fp16.json", + "case": "mobilenet_v3_small__clean__litert_fp16", + "digests": { + "192": { + "converted": "c1e0d3f6eacceb0f07eea7aaf062f75a642b665785bf323c4ed798c4c424167a", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "e68287c6bf447d1c5af1840f2957e8f25a438b576d35374a5a1e6bfa57051ad5", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + } + } + }, + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": false, + "note": null, + "status": "clear" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "reason": "first divergence at tap 6 is beyond the hypothesis taps (first 3) \u2014 interface faults surface earlier", + "status": "not_evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 0.000819612491, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000147819519, + "mean_abs": 7.20026933e-06, + "psnr_db": 125.067281, + "ref_absmax": 18.0352936, + "rel_max": 8.19612491e-06, + "scaled_max_abs": 8.19612491e-06 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 120, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 1, + "n_ops_total": 172, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "margin": { + "clear_margin": false, + "failing_shape": 192, + "locations_over_margin": [ + { + "band_ratio": 0.917698631, + "index": 6, + "location": "net.features.5" + }, + { + "band_ratio": 0.831146991, + "index": 7, + "location": "net.features.6" + } + ], + "margin": 0.707106781, + "n_locations": 17, + "nominal_output_band_ratio": 0.390894098, + "nominal_output_judgeable": true, + "rule": "C4-2 (b1)", + "scope": "every gated location of the nominal shape", + "worst_location": { + "band_ratio": 0.917698631, + "index": 6, + "location": "net.features.5" + } + }, + "reason": "grey zone (C4-2): 2 nominal gated location(s) over 0.7071, worst net.features.5 at ratio 0.918, so shape dependence is not inferred; classified by its own signature at shape 192", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_5;", + "basis": "earliest tap over band with in-band predecessors (fp16: the tap's faithful envelope gates, C3-1); grey zone (C4-2): 2 nominal gated location(s) over 0.7071, worst net.features.5 at ratio 0.918, so shape dependence is not inferred; classified by its own signature at shape 192", + "index": 6, + "neighbourhood": [ + { + "band_ratio": 0.662557983, + "index": 5, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_4/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.4" + }, + { + "band_ratio": 1.33693744, + "index": 6, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_5;" + }, + "status": "fail", + "tap": "net.features.5" + }, + { + "band_ratio": 1.03979019, + "index": 7, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_6;" + }, + "status": "fail", + "tap": "net.features.6" + } + ], + "shape": 192, + "tap": "net.features.5" + }, + "fp16_floor": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "baseline": { + "bundle": "bundles/mobilenet_v3_small__clean__litert_fp16.json", + "case": "mobilenet_v3_small__clean__litert_fp16", + "digests": { + "192": { + "converted": "c1e0d3f6eacceb0f07eea7aaf062f75a642b665785bf323c4ed798c4c424167a", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "e68287c6bf447d1c5af1840f2957e8f25a438b576d35374a5a1e6bfa57051ad5", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + } + }, + "envelopes_gate": true, + "faithful_output_rel_max": 0.0347403663, + "faithful_tap_rel_max": { + "net.avgpool": 0.0392971952, + "net.classifier": 0.0347403663, + "net.features.0": 0.000915032087, + "net.features.1": 0.000755872648, + "net.features.10": 0.0518188833, + "net.features.11": 0.076462924, + "net.features.12": 0.0775258635, + "net.features.2": 0.0015302635, + "net.features.3": 0.00279809812, + "net.features.4": 0.00289036457, + "net.features.5": 0.00403152459, + "net.features.6": 0.00394882259, + "net.features.7": 0.0169154072, + "net.features.8": 0.0238189477, + "net.features.9": 0.0426980192, + "normalize": 8.27203959e-08 + }, + "floor": 0.01, + "k": 2.0, + "output_band": 0.0694807327, + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used", + "tap_envelopes": { + "net.avgpool": 0.0785943904, + "net.classifier": 0.0694807327, + "net.features.0": 0.01, + "net.features.1": 0.01, + "net.features.10": 0.103637767, + "net.features.11": 0.152925848, + "net.features.12": 0.155051727, + "net.features.2": 0.01, + "net.features.3": 0.01, + "net.features.4": 0.01, + "net.features.5": 0.01, + "net.features.6": 0.01, + "net.features.7": 0.0338308144, + "net.features.8": 0.0476378955, + "net.features.9": 0.0853960383, + "normalize": 0.01 + } + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "6bb018d70a7278d81434bac4e919ff23b535b08931a5951af52a1a231b6f028a", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "47a6d63e19b39108e9030b22ece2a0439e7abd477262465d67f87929ecaa65c6", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D2", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_limit": 0.0694807327, + "band_ratio": 0.5, + "metrics": { + "corr": 0.999783978, + "finite": true, + "max_abs": 0.847133636, + "mean_abs": 0.0226378028, + "psnr_db": 55.5247978, + "ref_absmax": 24.3847065, + "rel_max": 0.0347403663, + "scaled_max_abs": 0.0347403663 + }, + "per_op_band_ratio": 3.47403663, + "status": "pass" + }, + "first_fail_index": 6, + "n_judged": 16, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 8.27203959e-06, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.26638033e-08, + "psnr_db": 163.904618, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "per_op_band_ratio": 8.27203959e-06, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0915032087, + "index": 1, + "metrics": { + "corr": 0.999999786, + "finite": true, + "max_abs": 0.173885822, + "mean_abs": 0.000502268084, + "psnr_db": 96.9119524, + "ref_absmax": 190.032486, + "rel_max": 0.000915032087, + "scaled_max_abs": 0.000915032087 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_0/torch.nn.modules.activation.Hardswish_2;" + }, + "per_op_band_ratio": 0.0915032087, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0727773511, + "index": 2, + "metrics": { + "corr": 0.999999501, + "finite": true, + "max_abs": 0.03307724, + "mean_abs": 0.00172972956, + "psnr_db": 89.9446481, + "ref_absmax": 45.4499092, + "rel_max": 0.000727773511, + "scaled_max_abs": 0.000727773511 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_1/torch.nn.modules.container.Sequential_block/t" + }, + "per_op_band_ratio": 0.0727773511, + "status": "pass", + "tap": "net.features.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.15302635, + "index": 3, + "metrics": { + "corr": 0.99999802, + "finite": true, + "max_abs": 0.0396288037, + "mean_abs": 0.00251701601, + "psnr_db": 80.5863503, + "ref_absmax": 25.896719, + "rel_max": 0.0015302635, + "scaled_max_abs": 0.0015302635 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_2/torch.nn.modules.container.Sequential_block/t" + }, + "per_op_band_ratio": 0.15302635, + "status": "pass", + "tap": "net.features.2" + }, + { + "band_limit": 0.01, + "band_ratio": 0.244577705, + "index": 4, + "metrics": { + "corr": 0.999994624, + "finite": true, + "max_abs": 0.0628845692, + "mean_abs": 0.00432135067, + "psnr_db": 76.8433382, + "ref_absmax": 25.7114887, + "rel_max": 0.00244577705, + "scaled_max_abs": 0.00244577705 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_3;" + }, + "per_op_band_ratio": 0.244577705, + "status": "pass", + "tap": "net.features.3" + }, + { + "band_limit": 0.01, + "band_ratio": 0.662557983, + "index": 5, + "metrics": { + "corr": 0.999910406, + "finite": true, + "max_abs": 0.113350153, + "mean_abs": 0.00666417415, + "psnr_db": 65.2811627, + "ref_absmax": 17.1079597, + "rel_max": 0.00662557983, + "scaled_max_abs": 0.00662557983 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_4/torch.nn.modules.container.Sequential_block/t" + }, + "per_op_band_ratio": 0.662557983, + "status": "pass", + "tap": "net.features.4" + }, + { + "band_limit": 0.01, + "band_ratio": 1.33693744, + "index": 6, + "metrics": { + "corr": 0.999828621, + "finite": true, + "max_abs": 0.298386097, + "mean_abs": 0.00920554799, + "psnr_db": 63.916568, + "ref_absmax": 22.3186283, + "rel_max": 0.0133693744, + "scaled_max_abs": 0.0133693744 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_5;" + }, + "per_op_band_ratio": 1.33693744, + "status": "fail", + "tap": "net.features.5", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_limit": 0.01, + "band_ratio": 1.03979019, + "index": 7, + "metrics": { + "corr": 0.999954346, + "finite": true, + "max_abs": 0.652677059, + "mean_abs": 0.0161376378, + "psnr_db": 70.5090311, + "ref_absmax": 62.7700729, + "rel_max": 0.0103979019, + "scaled_max_abs": 0.0103979019 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_6;" + }, + "per_op_band_ratio": 1.03979019, + "status": "fail", + "tap": "net.features.6", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + }, + { + "band_limit": 0.0338308144, + "band_ratio": 0.420242827, + "index": 8, + "metrics": { + "corr": 0.999907322, + "finite": true, + "max_abs": 0.294072151, + "mean_abs": 0.00715816317, + "psnr_db": 67.4079996, + "ref_absmax": 20.6843147, + "rel_max": 0.0142171571, + "scaled_max_abs": 0.0142171571 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_7/torch.nn.modules.container.Sequential_block/t" + }, + "per_op_band_ratio": 1.42171571, + "status": "pass", + "tap": "net.features.7" + }, + { + "band_limit": 0.0476378955, + "band_ratio": 0.403933616, + "index": 9, + "metrics": { + "corr": 0.999877187, + "finite": true, + "max_abs": 0.374343902, + "mean_abs": 0.00904548656, + "psnr_db": 65.1892036, + "ref_absmax": 19.453968, + "rel_max": 0.0192425474, + "scaled_max_abs": 0.0192425474 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_8;" + }, + "per_op_band_ratio": 1.92425474, + "status": "pass", + "tap": "net.features.8" + }, + { + "band_limit": 0.0853960383, + "band_ratio": 0.5, + "index": 10, + "metrics": { + "corr": 0.999764868, + "finite": true, + "max_abs": 0.149215758, + "mean_abs": 0.00456089229, + "psnr_db": 56.602194, + "ref_absmax": 3.49467635, + "rel_max": 0.0426980192, + "scaled_max_abs": 0.0426980192 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_9/torch.nn.modules.container.Sequential_block/t" + }, + "per_op_band_ratio": 4.26980192, + "status": "pass", + "tap": "net.features.9" + }, + { + "band_limit": 0.103637767, + "band_ratio": 0.5, + "index": 11, + "metrics": { + "corr": 0.999777166, + "finite": true, + "max_abs": 0.193776667, + "mean_abs": 0.00543595598, + "psnr_db": 55.9838564, + "ref_absmax": 3.73949909, + "rel_max": 0.0518188833, + "scaled_max_abs": 0.0518188833 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_10;" + }, + "per_op_band_ratio": 5.18188833, + "status": "pass", + "tap": "net.features.10" + }, + { + "band_limit": 0.152925848, + "band_ratio": 0.5, + "index": 12, + "metrics": { + "corr": 0.999704481, + "finite": true, + "max_abs": 0.346745968, + "mean_abs": 0.00688931738, + "psnr_db": 55.1287945, + "ref_absmax": 4.53482485, + "rel_max": 0.076462924, + "scaled_max_abs": 0.076462924 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_11;" + }, + "per_op_band_ratio": 7.6462924, + "status": "pass", + "tap": "net.features.11" + }, + { + "band_limit": 0.155051727, + "band_ratio": 0.40802078, + "index": 13, + "metrics": { + "corr": 0.999509836, + "finite": true, + "max_abs": 0.638954639, + "mean_abs": 0.00428957866, + "psnr_db": 56.6971487, + "ref_absmax": 10.099762, + "rel_max": 0.0632643266, + "scaled_max_abs": 0.0632643266 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_12/torch.nn.modules.activation.Hardswish_2;" + }, + "per_op_band_ratio": 6.32643266, + "status": "pass", + "tap": "net.features.12" + }, + { + "band_limit": 0.0785943904, + "band_ratio": 0.5, + "index": 14, + "metrics": { + "corr": 0.999718435, + "finite": true, + "max_abs": 0.206149518, + "mean_abs": 0.00284099015, + "psnr_db": 55.7584866, + "ref_absmax": 5.24590921, + "rel_max": 0.0392971952, + "scaled_max_abs": 0.0392971952 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;;zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Seque" + }, + "per_op_band_ratio": 3.92971952, + "status": "pass", + "tap": "net.avgpool" + }, + { + "band_limit": 0.0694807327, + "band_ratio": 0.5, + "index": 15, + "metrics": { + "corr": 0.999783978, + "finite": true, + "max_abs": 0.847133636, + "mean_abs": 0.0226378028, + "psnr_db": 55.5247978, + "ref_absmax": 24.3847065, + "rel_max": 0.0347403663, + "scaled_max_abs": 0.0347403663 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "per_op_band_ratio": 3.47403663, + "status": "pass", + "tap": "net.classifier" + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.875, + "band_limit": 0.0694807327, + "band_ratio": 0.390894098, + "metrics": { + "corr": 0.999889613, + "finite": true, + "max_abs": 0.489556074, + "mean_abs": 0.016861891, + "psnr_db": 57.523063, + "ref_absmax": 18.0251522, + "rel_max": 0.0271596083, + "scaled_max_abs": 0.0271596083 + }, + "per_op_band_ratio": 2.71596083, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 16, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 8.27203959e-06, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.2793459e-08, + "psnr_db": 164.013874, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "per_op_band_ratio": 8.27203959e-06, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0868202319, + "index": 1, + "metrics": { + "corr": 0.999999767, + "finite": true, + "max_abs": 0.146759748, + "mean_abs": 0.000503267604, + "psnr_db": 96.0452891, + "ref_absmax": 169.038651, + "rel_max": 0.000868202319, + "scaled_max_abs": 0.000868202319 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_0/torch.nn.modules.activation.Hardswish_2;" + }, + "per_op_band_ratio": 0.0868202319, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0755872648, + "index": 2, + "metrics": { + "corr": 0.999999435, + "finite": true, + "max_abs": 0.0337452888, + "mean_abs": 0.00172548561, + "psnr_db": 89.4320948, + "ref_absmax": 44.644146, + "rel_max": 0.000755872648, + "scaled_max_abs": 0.000755872648 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_1/torch.nn.modules.container.Sequential_block/t" + }, + "per_op_band_ratio": 0.0755872648, + "status": "pass", + "tap": "net.features.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.127885996, + "index": 3, + "metrics": { + "corr": 0.999997629, + "finite": true, + "max_abs": 0.039151907, + "mean_abs": 0.00258047824, + "psnr_db": 81.5125813, + "ref_absmax": 30.6146946, + "rel_max": 0.00127885996, + "scaled_max_abs": 0.00127885996 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_2/torch.nn.modules.container.Sequential_block/t" + }, + "per_op_band_ratio": 0.127885996, + "status": "pass", + "tap": "net.features.2" + }, + { + "band_limit": 0.01, + "band_ratio": 0.279809812, + "index": 4, + "metrics": { + "corr": 0.999994277, + "finite": true, + "max_abs": 0.0732169151, + "mean_abs": 0.00442955329, + "psnr_db": 76.6613702, + "ref_absmax": 26.1666718, + "rel_max": 0.00279809812, + "scaled_max_abs": 0.00279809812 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_3;" + }, + "per_op_band_ratio": 0.279809812, + "status": "pass", + "tap": "net.features.3" + }, + { + "band_limit": 0.01, + "band_ratio": 0.552790951, + "index": 5, + "metrics": { + "corr": 0.999918761, + "finite": true, + "max_abs": 0.107800245, + "mean_abs": 0.00666001628, + "psnr_db": 66.6167854, + "ref_absmax": 19.5010872, + "rel_max": 0.00552790951, + "scaled_max_abs": 0.00552790951 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_4/torch.nn.modules.container.Sequential_block/t" + }, + "per_op_band_ratio": 0.552790951, + "status": "pass", + "tap": "net.features.4" + }, + { + "band_limit": 0.01, + "band_ratio": 0.917698631, + "index": 6, + "metrics": { + "corr": 0.99985763, + "finite": true, + "max_abs": 0.275732636, + "mean_abs": 0.0090928604, + "psnr_db": 66.5403073, + "ref_absmax": 30.0460987, + "rel_max": 0.00917698631, + "scaled_max_abs": 0.00917698631 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_5;" + }, + "per_op_band_ratio": 0.917698631, + "status": "pass", + "tap": "net.features.5" + }, + { + "band_limit": 0.01, + "band_ratio": 0.831146991, + "index": 7, + "metrics": { + "corr": 0.999966687, + "finite": true, + "max_abs": 0.562521935, + "mean_abs": 0.0125108859, + "psnr_db": 73.6159084, + "ref_absmax": 67.6801987, + "rel_max": 0.00831146991, + "scaled_max_abs": 0.00831146991 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_6;" + }, + "per_op_band_ratio": 0.831146991, + "status": "pass", + "tap": "net.features.6" + }, + { + "band_limit": 0.0338308144, + "band_ratio": 0.5, + "index": 8, + "metrics": { + "corr": 0.999913676, + "finite": true, + "max_abs": 0.292385101, + "mean_abs": 0.00649481758, + "psnr_db": 67.1187941, + "ref_absmax": 17.2851353, + "rel_max": 0.0169154072, + "scaled_max_abs": 0.0169154072 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_7/torch.nn.modules.container.Sequential_block/t" + }, + "per_op_band_ratio": 1.69154072, + "status": "pass", + "tap": "net.features.7" + }, + { + "band_limit": 0.0476378955, + "band_ratio": 0.5, + "index": 9, + "metrics": { + "corr": 0.999897611, + "finite": true, + "max_abs": 0.398320436, + "mean_abs": 0.0076583814, + "psnr_db": 65.4624192, + "ref_absmax": 16.7228394, + "rel_max": 0.0238189477, + "scaled_max_abs": 0.0238189477 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_8;" + }, + "per_op_band_ratio": 2.38189477, + "status": "pass", + "tap": "net.features.8" + }, + { + "band_limit": 0.0853960383, + "band_ratio": 0.590511943, + "index": 10, + "metrics": { + "corr": 0.999825624, + "finite": true, + "max_abs": 0.136545032, + "mean_abs": 0.0037909954, + "psnr_db": 56.0139251, + "ref_absmax": 2.7077558, + "rel_max": 0.0504273805, + "scaled_max_abs": 0.0504273805 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_9/torch.nn.modules.container.Sequential_block/t" + }, + "per_op_band_ratio": 5.04273805, + "status": "pass", + "tap": "net.features.9" + }, + { + "band_limit": 0.103637767, + "band_ratio": 0.412840365, + "index": 11, + "metrics": { + "corr": 0.999820881, + "finite": true, + "max_abs": 0.140567303, + "mean_abs": 0.00499213333, + "psnr_db": 55.3146637, + "ref_absmax": 3.28536868, + "rel_max": 0.0427858534, + "scaled_max_abs": 0.0427858534 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_10;" + }, + "per_op_band_ratio": 4.27858534, + "status": "pass", + "tap": "net.features.10" + }, + { + "band_limit": 0.152925848, + "band_ratio": 0.355596578, + "index": 12, + "metrics": { + "corr": 0.999797403, + "finite": true, + "max_abs": 0.215865821, + "mean_abs": 0.00601336992, + "psnr_db": 55.1167121, + "ref_absmax": 3.9695878, + "rel_max": 0.0543799083, + "scaled_max_abs": 0.0543799083 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_11;" + }, + "per_op_band_ratio": 5.43799083, + "status": "pass", + "tap": "net.features.11" + }, + { + "band_limit": 0.155051727, + "band_ratio": 0.5, + "index": 13, + "metrics": { + "corr": 0.999699358, + "finite": true, + "max_abs": 0.717740536, + "mean_abs": 0.0034071655, + "psnr_db": 58.4571252, + "ref_absmax": 9.25807858, + "rel_max": 0.0775258635, + "scaled_max_abs": 0.0775258635 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_12/torch.nn.modules.activation.Hardswish_2;" + }, + "per_op_band_ratio": 7.75258635, + "status": "pass", + "tap": "net.features.12" + }, + { + "band_limit": 0.0785943904, + "band_ratio": 0.340164794, + "index": 14, + "metrics": { + "corr": 0.99984639, + "finite": true, + "max_abs": 0.138741612, + "mean_abs": 0.0022313646, + "psnr_db": 58.5199262, + "ref_absmax": 5.18950367, + "rel_max": 0.0267350447, + "scaled_max_abs": 0.0267350447 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;;zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Seque" + }, + "per_op_band_ratio": 2.67350447, + "status": "pass", + "tap": "net.avgpool" + }, + { + "band_limit": 0.0694807327, + "band_ratio": 0.390894098, + "index": 15, + "metrics": { + "corr": 0.999889613, + "finite": true, + "max_abs": 0.489556074, + "mean_abs": 0.016861891, + "psnr_db": 57.523063, + "ref_absmax": 18.0251522, + "rel_max": 0.0271596083, + "scaled_max_abs": 0.0271596083 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "per_op_band_ratio": 2.71596083, + "status": "pass", + "tap": "net.classifier" + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp16", + "id": "mobilenet_v3_small__pool_divisor__litert_fp16", + "model": "mobilenet_v3_small", + "path": "litert", + "variant": "pool_divisor" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/mobilenet_v3_small__pool_divisor__litert_fp32.json b/bench/verdicts_calibrated4/mobilenet_v3_small__pool_divisor__litert_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..4b7700b1f34b33d483d064e9980b68dffef12d22 --- /dev/null +++ b/bench/verdicts_calibrated4/mobilenet_v3_small__pool_divisor__litert_fp32.json @@ -0,0 +1,1771 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "reason": "first divergence at tap 5 is beyond the hypothesis taps (first 3) \u2014 interface faults surface earlier", + "status": "not_evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 0.0424586551, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.65323639e-05, + "mean_abs": 5.26701162e-06, + "psnr_db": 129.368364, + "ref_absmax": 18.0251503, + "rel_max": 4.24586551e-06, + "scaled_max_abs": 4.24586551e-06 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 120, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 1, + "n_ops_total": 118, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_4/torch.nn.modules.container.Sequential_block/t", + "basis": "earliest tap over band with in-band predecessors; localised on all probes (C4-1): no tap is over band on the gated probes but the output is, and this is the earliest tap over band on all probes (near-zero evidence localises)", + "index": 5, + "localisation": { + "all_probe_band_ratios": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "tap": "normalize" + }, + { + "band_ratio": 0.00530324784, + "index": 1, + "tap": "net.features.0" + }, + { + "band_ratio": 0.00747659079, + "index": 2, + "tap": "net.features.1" + }, + { + "band_ratio": 0.0121488386, + "index": 3, + "tap": "net.features.2" + }, + { + "band_ratio": 0.0325737422, + "index": 4, + "tap": "net.features.3" + }, + { + "band_ratio": 60.1748393, + "index": 5, + "tap": "net.features.4" + } + ], + "classified_on": "all probes (DECISIONS.md 11.B')", + "localised": true, + "localised_metrics": { + "corr": 0.999932927, + "finite": true, + "max_abs": 0.117347479, + "mean_abs": 0.00400764871, + "psnr_db": 67.474334, + "ref_absmax": 19.5010872, + "rel_max": 0.00601748393, + "scaled_max_abs": 0.00601748393 + }, + "n_probes": 32, + "probes": "all (the C3-2 gated probes and near_zero)", + "rule": "C4-1 (a1)" + }, + "neighbourhood": [ + { + "band_ratio": 0.0325737422, + "index": 4, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_3;" + }, + "status": "pass", + "tap": "net.features.3" + }, + { + "band_ratio": 0.0219455123, + "index": 5, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_4/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.4" + }, + { + "band_ratio": 0.0270586662, + "index": 6, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_5;" + }, + "status": "pass", + "tap": "net.features.5" + } + ], + "shape": 224, + "tap": "net.features.4" + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "8c91246048a8d1c49b8aa012ab114861ca1b0d7d58a7757b9da312666a3fbc4f", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "da69e1535b6a96f1c3924b06319fcdb306f4a69463c74a6a772c1e7f019a71ea", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "fp32 per-tap band on near-zero probes", + "reason": "C3-2: per-tap fp32 checks gate without the near_zero probes; they are measured and reported per tap ('ungated_probes'); the output gates on all probes. C4-1: when the output has failed and no gated tap fails, they localise the first divergence (earliest tap over band on all probes)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D2", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 48.0275492, + "metrics": { + "corr": 0.999989973, + "finite": true, + "max_abs": 0.117113769, + "mean_abs": 0.00323363752, + "psnr_db": 69.2827138, + "ref_absmax": 24.3847065, + "rel_max": 0.00480275492, + "scaled_max_abs": 0.00480275492 + }, + "status": "fail", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + "first_fail_index": null, + "n_judged": 16, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.06644368e-08, + "psnr_db": 164.113247, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.00112572895, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.38418579e-07, + "mean_abs": 4.66593688e-08, + "psnr_db": 130.397207, + "ref_absmax": 2.11790395, + "rel_max": 1.12572895e-07, + "scaled_max_abs": 1.12572895e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00421552358, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.01086426e-05, + "mean_abs": 2.23370674e-07, + "psnr_db": 165.657432, + "ref_absmax": 190.032486, + "rel_max": 4.21552358e-07, + "scaled_max_abs": 4.21552358e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_0/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "pass", + "tap": "net.features.0", + "ungated_probes": { + "band_ratio": 0.00361820398, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.14440918e-05, + "mean_abs": 2.56149109e-07, + "psnr_db": 155.713417, + "ref_absmax": 31.6292057, + "rel_max": 3.61820398e-07, + "scaled_max_abs": 3.61820398e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00902267932, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.10079956e-05, + "mean_abs": 9.67378308e-07, + "psnr_db": 153.228025, + "ref_absmax": 45.4499092, + "rel_max": 9.02267932e-07, + "scaled_max_abs": 9.02267932e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_1/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.1", + "ungated_probes": { + "band_ratio": 0.025039569, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.83582306e-05, + "mean_abs": 1.29241986e-06, + "psnr_db": 136.937056, + "ref_absmax": 7.33168793, + "rel_max": 2.5039569e-06, + "scaled_max_abs": 2.5039569e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0102192337, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.64644623e-05, + "mean_abs": 1.372611e-06, + "psnr_db": 146.859391, + "ref_absmax": 25.896719, + "rel_max": 1.02192337e-06, + "scaled_max_abs": 1.02192337e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_2/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.2", + "ungated_probes": { + "band_ratio": 0.0581152912, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.50339508e-05, + "mean_abs": 2.65888499e-06, + "psnr_db": 125.664736, + "ref_absmax": 4.30763578, + "rel_max": 5.81152912e-06, + "scaled_max_abs": 5.81152912e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0246657604, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.3419342e-05, + "mean_abs": 2.49627755e-06, + "psnr_db": 142.510585, + "ref_absmax": 25.7114887, + "rel_max": 2.46657604e-06, + "scaled_max_abs": 2.46657604e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_3;" + }, + "status": "pass", + "tap": "net.features.3", + "ungated_probes": { + "band_ratio": 0.122535583, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.24928284e-05, + "mean_abs": 7.32266306e-06, + "psnr_db": 120.811448, + "ref_absmax": 6.73215294, + "rel_max": 1.22535583e-05, + "scaled_max_abs": 1.22535583e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0202770545, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.46899033e-05, + "mean_abs": 1.53729991e-06, + "psnr_db": 141.607714, + "ref_absmax": 17.1079597, + "rel_max": 2.02770545e-06, + "scaled_max_abs": 2.02770545e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_4/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.4", + "ungated_probes": { + "band_ratio": 422.387782, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999484867, + "finite": true, + "max_abs": 0.123761415, + "mean_abs": 0.0338019389, + "psnr_db": 42.6383946, + "ref_absmax": 2.93004251, + "rel_max": 0.0422387782, + "scaled_max_abs": 0.0422387782 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0216320473, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.82797623e-05, + "mean_abs": 2.23640806e-06, + "psnr_db": 139.894542, + "ref_absmax": 22.3186283, + "rel_max": 2.16320473e-06, + "scaled_max_abs": 2.16320473e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_5;" + }, + "status": "pass", + "tap": "net.features.5", + "ungated_probes": { + "band_ratio": 999.60627, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.998065245, + "finite": true, + "max_abs": 0.288062334, + "mean_abs": 0.041715479, + "psnr_db": 39.6136579, + "ref_absmax": 2.88175797, + "rel_max": 0.099960627, + "scaled_max_abs": 0.099960627 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0144334801, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.05990601e-05, + "mean_abs": 4.67391164e-06, + "psnr_db": 142.305302, + "ref_absmax": 62.7700729, + "rel_max": 1.44334801e-06, + "scaled_max_abs": 1.44334801e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_6;" + }, + "status": "pass", + "tap": "net.features.6", + "ungated_probes": { + "band_ratio": 1256.35474, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.998674271, + "finite": true, + "max_abs": 0.6871984, + "mean_abs": 0.0506495318, + "psnr_db": 43.5675168, + "ref_absmax": 5.46977997, + "rel_max": 0.125635474, + "scaled_max_abs": 0.125635474 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0253583878, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.24520874e-05, + "mean_abs": 2.47024943e-06, + "psnr_db": 139.355167, + "ref_absmax": 20.6843147, + "rel_max": 2.53583878e-06, + "scaled_max_abs": 2.53583878e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_7/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.7", + "ungated_probes": { + "band_ratio": 870.142369, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999010147, + "finite": true, + "max_abs": 0.252088964, + "mean_abs": 0.0208210337, + "psnr_db": 44.9331221, + "ref_absmax": 2.89710021, + "rel_max": 0.0870142369, + "scaled_max_abs": 0.0870142369 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0509829813, + "index": 9, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.91821289e-05, + "mean_abs": 3.40678931e-06, + "psnr_db": 135.508004, + "ref_absmax": 19.453968, + "rel_max": 5.09829813e-06, + "scaled_max_abs": 5.09829813e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_8;" + }, + "status": "pass", + "tap": "net.features.8", + "ungated_probes": { + "band_ratio": 907.078941, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.998945904, + "finite": true, + "max_abs": 0.382973671, + "mean_abs": 0.0233261278, + "psnr_db": 47.0430429, + "ref_absmax": 4.22205448, + "rel_max": 0.0907078941, + "scaled_max_abs": 0.0907078941 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0743634675, + "index": 10, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.59876251e-05, + "mean_abs": 1.4874841e-06, + "psnr_db": 127.724578, + "ref_absmax": 3.49467635, + "rel_max": 7.43634675e-06, + "scaled_max_abs": 7.43634675e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_9/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.9", + "ungated_probes": { + "band_ratio": 957.620487, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999297381, + "finite": true, + "max_abs": 0.112886071, + "mean_abs": 0.0108774272, + "psnr_db": 43.2687092, + "ref_absmax": 1.17881846, + "rel_max": 0.0957620487, + "scaled_max_abs": 0.0957620487 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0946788811, + "index": 11, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.5405159e-05, + "mean_abs": 1.91990474e-06, + "psnr_db": 126.7358, + "ref_absmax": 3.73949909, + "rel_max": 9.46788811e-06, + "scaled_max_abs": 9.46788811e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_10;" + }, + "status": "pass", + "tap": "net.features.10", + "ungated_probes": { + "band_ratio": 711.740496, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999454528, + "finite": true, + "max_abs": 0.115900338, + "mean_abs": 0.0114364996, + "psnr_db": 45.7964453, + "ref_absmax": 1.62840724, + "rel_max": 0.0711740496, + "scaled_max_abs": 0.0711740496 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0855001521, + "index": 12, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.87728214e-05, + "mean_abs": 2.38909974e-06, + "psnr_db": 126.721429, + "ref_absmax": 4.53482485, + "rel_max": 8.55001521e-06, + "scaled_max_abs": 8.55001521e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_11;" + }, + "status": "pass", + "tap": "net.features.11", + "ungated_probes": { + "band_ratio": 738.003171, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999359228, + "finite": true, + "max_abs": 0.12452966, + "mean_abs": 0.0135664222, + "psnr_db": 45.4203142, + "ref_absmax": 1.68738651, + "rel_max": 0.0738003171, + "scaled_max_abs": 0.0738003171 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0878156453, + "index": 13, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.86917114e-05, + "mean_abs": 1.47052641e-06, + "psnr_db": 129.026003, + "ref_absmax": 10.099762, + "rel_max": 8.78156453e-06, + "scaled_max_abs": 8.78156453e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_12/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "pass", + "tap": "net.features.12", + "ungated_probes": { + "band_ratio": 477.746815, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.998954742, + "finite": true, + "max_abs": 0.269599915, + "mean_abs": 0.00666827715, + "psnr_db": 53.4518082, + "ref_absmax": 5.64315462, + "rel_max": 0.0477746815, + "scaled_max_abs": 0.0477746815 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0679454716, + "index": 14, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.56435776e-05, + "mean_abs": 9.18996696e-07, + "psnr_db": 127.07966, + "ref_absmax": 5.24590921, + "rel_max": 6.79454716e-06, + "scaled_max_abs": 6.79454716e-06 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;;zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Seque" + }, + "status": "pass", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 263.384729, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999671087, + "finite": true, + "max_abs": 0.0492112637, + "mean_abs": 0.00420738166, + "psnr_db": 51.1517142, + "ref_absmax": 1.8684175, + "rel_max": 0.0263384729, + "scaled_max_abs": 0.0263384729 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0465403361, + "index": 15, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000113487244, + "mean_abs": 7.9073423e-06, + "psnr_db": 127.369954, + "ref_absmax": 24.3847065, + "rel_max": 4.65403361e-06, + "scaled_max_abs": 4.65403361e-06 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "pass", + "tap": "net.classifier", + "ungated_probes": { + "band_ratio": 218.730875, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999637625, + "finite": true, + "max_abs": 0.117113769, + "mean_abs": 0.0258137488, + "psnr_db": 47.3876742, + "ref_absmax": 5.35424042, + "rel_max": 0.0218730875, + "scaled_max_abs": 0.0218730875 + }, + "n_probes": 4 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.875, + "band_ratio": 94.1203459, + "metrics": { + "corr": 0.999967688, + "finite": true, + "max_abs": 0.169653356, + "mean_abs": 0.00540382581, + "psnr_db": 62.923917, + "ref_absmax": 18.0251522, + "rel_max": 0.00941203459, + "scaled_max_abs": 0.00941203459 + }, + "status": "fail", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + }, + "first_fail_index": null, + "n_judged": 16, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.08107465e-08, + "psnr_db": 164.245493, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.00112572895, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.38418579e-07, + "mean_abs": 4.66724468e-08, + "psnr_db": 130.436578, + "ref_absmax": 2.11790395, + "rel_max": 1.12572895e-07, + "scaled_max_abs": 1.12572895e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00530324784, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.96453857e-05, + "mean_abs": 2.21019027e-07, + "psnr_db": 164.991666, + "ref_absmax": 169.038651, + "rel_max": 5.30324784e-07, + "scaled_max_abs": 5.30324784e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_0/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "pass", + "tap": "net.features.0", + "ungated_probes": { + "band_ratio": 0.00301177623, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-06, + "mean_abs": 2.5584388e-07, + "psnr_db": 155.735357, + "ref_absmax": 31.6648464, + "rel_max": 3.01177623e-07, + "scaled_max_abs": 3.01177623e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00747659079, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.33786011e-05, + "mean_abs": 9.63280999e-07, + "psnr_db": 152.706072, + "ref_absmax": 44.644146, + "rel_max": 7.47659079e-07, + "scaled_max_abs": 7.47659079e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_1/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.1", + "ungated_probes": { + "band_ratio": 0.0260310136, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.90734863e-05, + "mean_abs": 1.29547133e-06, + "psnr_db": 136.91535, + "ref_absmax": 7.32721615, + "rel_max": 2.60310136e-06, + "scaled_max_abs": 2.60310136e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0121488386, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.71932983e-05, + "mean_abs": 1.43917319e-06, + "psnr_db": 147.492171, + "ref_absmax": 30.6146946, + "rel_max": 1.21488386e-06, + "scaled_max_abs": 1.21488386e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_2/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.2", + "ungated_probes": { + "band_ratio": 0.0467408879, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.01463699e-05, + "mean_abs": 2.6522391e-06, + "psnr_db": 125.699938, + "ref_absmax": 4.31022406, + "rel_max": 4.67408879e-06, + "scaled_max_abs": 4.67408879e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0325737422, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.5234642e-05, + "mean_abs": 2.62922129e-06, + "psnr_db": 141.896281, + "ref_absmax": 26.1666718, + "rel_max": 3.25737422e-06, + "scaled_max_abs": 3.25737422e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_3;" + }, + "status": "pass", + "tap": "net.features.3", + "ungated_probes": { + "band_ratio": 0.126018395, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.48770142e-05, + "mean_abs": 7.31913275e-06, + "psnr_db": 120.856015, + "ref_absmax": 6.73528767, + "rel_max": 1.26018395e-05, + "scaled_max_abs": 1.26018395e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0219455123, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.27961349e-05, + "mean_abs": 1.68728369e-06, + "psnr_db": 141.5239, + "ref_absmax": 19.5010872, + "rel_max": 2.19455123e-06, + "scaled_max_abs": 2.19455123e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_4/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.4", + "ungated_probes": { + "band_ratio": 396.028953, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999547572, + "finite": true, + "max_abs": 0.117347479, + "mean_abs": 0.0320493787, + "psnr_db": 43.2134868, + "ref_absmax": 2.96310353, + "rel_max": 0.0396028953, + "scaled_max_abs": 0.0396028953 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0270586662, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.13007355e-05, + "mean_abs": 2.59491651e-06, + "psnr_db": 140.10937, + "ref_absmax": 30.0460987, + "rel_max": 2.70586662e-06, + "scaled_max_abs": 2.70586662e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_5;" + }, + "status": "pass", + "tap": "net.features.5", + "ungated_probes": { + "band_ratio": 1035.47647, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.998401604, + "finite": true, + "max_abs": 0.25752759, + "mean_abs": 0.0383239052, + "psnr_db": 39.7675876, + "ref_absmax": 2.48704433, + "rel_max": 0.103547647, + "scaled_max_abs": 0.103547647 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0154295259, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000104427338, + "mean_abs": 3.95868159e-06, + "psnr_db": 145.876093, + "ref_absmax": 67.6801987, + "rel_max": 1.54295259e-06, + "scaled_max_abs": 1.54295259e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_6;" + }, + "status": "pass", + "tap": "net.features.6", + "ungated_probes": { + "band_ratio": 1048.81937, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.998853592, + "finite": true, + "max_abs": 0.579257011, + "mean_abs": 0.0468436919, + "psnr_db": 44.2593136, + "ref_absmax": 5.5229435, + "rel_max": 0.104881937, + "scaled_max_abs": 0.104881937 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0446902026, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.72476196e-05, + "mean_abs": 2.57999328e-06, + "psnr_db": 137.359282, + "ref_absmax": 17.2851353, + "rel_max": 4.46902026e-06, + "scaled_max_abs": 4.46902026e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_7/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.7", + "ungated_probes": { + "band_ratio": 905.199153, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999252871, + "finite": true, + "max_abs": 0.269789815, + "mean_abs": 0.0177963791, + "psnr_db": 46.753543, + "ref_absmax": 2.98044705, + "rel_max": 0.0905199153, + "scaled_max_abs": 0.0905199153 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.053606558, + "index": 9, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.96453857e-05, + "mean_abs": 3.31185025e-06, + "psnr_db": 134.885689, + "ref_absmax": 16.7228394, + "rel_max": 5.3606558e-06, + "scaled_max_abs": 5.3606558e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_8;" + }, + "status": "pass", + "tap": "net.features.8", + "ungated_probes": { + "band_ratio": 837.753357, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999256764, + "finite": true, + "max_abs": 0.392691493, + "mean_abs": 0.01899063, + "psnr_db": 49.1962518, + "ref_absmax": 4.68743563, + "rel_max": 0.0837753357, + "scaled_max_abs": 0.0837753357 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.120188593, + "index": 10, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.2544136e-05, + "mean_abs": 1.39313289e-06, + "psnr_db": 126.65141, + "ref_absmax": 2.7077558, + "rel_max": 1.20188593e-05, + "scaled_max_abs": 1.20188593e-05 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_9/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.9", + "ungated_probes": { + "band_ratio": 1155.86527, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.99937558, + "finite": true, + "max_abs": 0.140545785, + "mean_abs": 0.00986135998, + "psnr_db": 44.1263345, + "ref_absmax": 1.21593571, + "rel_max": 0.115586527, + "scaled_max_abs": 0.115586527 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.149856656, + "index": 11, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.92334366e-05, + "mean_abs": 1.8963299e-06, + "psnr_db": 125.385663, + "ref_absmax": 3.28536868, + "rel_max": 1.49856656e-05, + "scaled_max_abs": 1.49856656e-05 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_10;" + }, + "status": "pass", + "tap": "net.features.10", + "ungated_probes": { + "band_ratio": 786.458306, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999368427, + "finite": true, + "max_abs": 0.136849165, + "mean_abs": 0.0124831316, + "psnr_db": 45.4024378, + "ref_absmax": 1.74006891, + "rel_max": 0.0786458306, + "scaled_max_abs": 0.0786458306 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.148051089, + "index": 12, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.87701797e-05, + "mean_abs": 2.31454396e-06, + "psnr_db": 125.234491, + "ref_absmax": 3.9695878, + "rel_max": 1.48051089e-05, + "scaled_max_abs": 1.48051089e-05 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_11;" + }, + "status": "pass", + "tap": "net.features.11", + "ungated_probes": { + "band_ratio": 829.328922, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999301024, + "finite": true, + "max_abs": 0.151026964, + "mean_abs": 0.0144305325, + "psnr_db": 45.3350696, + "ref_absmax": 1.82107437, + "rel_max": 0.0829328922, + "scaled_max_abs": 0.0829328922 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.210784133, + "index": 13, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000195145607, + "mean_abs": 1.3946212e-06, + "psnr_db": 128.36759, + "ref_absmax": 9.25807858, + "rel_max": 2.10784133e-05, + "scaled_max_abs": 2.10784133e-05 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_12/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "pass", + "tap": "net.features.12", + "ungated_probes": { + "band_ratio": 516.119575, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.998709364, + "finite": true, + "max_abs": 0.318480015, + "mean_abs": 0.00678885216, + "psnr_db": 53.1968497, + "ref_absmax": 6.17066336, + "rel_max": 0.0516119575, + "scaled_max_abs": 0.0516119575 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0721296665, + "index": 14, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.74317169e-05, + "mean_abs": 8.19987514e-07, + "psnr_db": 128.444302, + "ref_absmax": 5.18950367, + "rel_max": 7.21296665e-06, + "scaled_max_abs": 7.21296665e-06 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;;zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Seque" + }, + "status": "pass", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 391.644985, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999205259, + "finite": true, + "max_abs": 0.0771017075, + "mean_abs": 0.00484236301, + "psnr_db": 49.0629187, + "ref_absmax": 1.96866322, + "rel_max": 0.0391644985, + "scaled_max_abs": 0.0391644985 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0833300619, + "index": 15, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000150203705, + "mean_abs": 6.37644037e-06, + "psnr_db": 127.520704, + "ref_absmax": 18.0251522, + "rel_max": 8.33300619e-06, + "scaled_max_abs": 8.33300619e-06 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "pass", + "tap": "net.classifier", + "ungated_probes": { + "band_ratio": 326.19084, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999042554, + "finite": true, + "max_abs": 0.169653356, + "mean_abs": 0.0431859714, + "psnr_db": 43.1169321, + "ref_absmax": 5.20104599, + "rel_max": 0.032619084, + "scaled_max_abs": 0.032619084 + }, + "n_probes": 4 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp32", + "id": "mobilenet_v3_small__pool_divisor__litert_fp32", + "model": "mobilenet_v3_small", + "path": "litert", + "variant": "pool_divisor" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/mobilenet_v3_small__pool_divisor__onnx_fp16.json b/bench/verdicts_calibrated4/mobilenet_v3_small__pool_divisor__onnx_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..05aba2d7cb91a4cbbafb95f7390655397fb7f2c9 --- /dev/null +++ b/bench/verdicts_calibrated4/mobilenet_v3_small__pool_divisor__onnx_fp16.json @@ -0,0 +1,1161 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "baseline": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "faithful_output_rel_max": 0.0310759602, + "output_band": 0.0621519203, + "source": { + "bundle": "bundles/mobilenet_v3_small__clean__onnx_fp16.json", + "case": "mobilenet_v3_small__clean__onnx_fp16", + "digests": { + "192": { + "converted": "0f5c1e94183c9903ece898f192769178a20e4556d20c0b1ef4fc23502e5893f5", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "8ce44e6b921ee910b6c36de85b86a9608df76e3c1728f56afa10f6f5dd60ae3c", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + } + } + }, + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": false, + "note": null, + "status": "clear" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "reason": "first divergence at tap 6 is beyond the hypothesis taps (first 3) \u2014 interface faults surface earlier", + "status": "not_evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "margin": { + "clear_margin": false, + "failing_shape": 192, + "locations_over_margin": [ + { + "band_ratio": 0.860639064, + "index": 6, + "location": "net.features.5" + } + ], + "margin": 0.707106781, + "n_locations": 17, + "nominal_output_band_ratio": 0.347784707, + "nominal_output_judgeable": true, + "rule": "C4-2 (b1)", + "scope": "every gated location of the nominal shape", + "worst_location": { + "band_ratio": 0.860639064, + "index": 6, + "location": "net.features.5" + } + }, + "reason": "grey zone (C4-2): 1 nominal gated location(s) over 0.7071, worst net.features.5 at ratio 0.861, so shape dependence is not inferred; classified by its own signature at shape 192", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "/net/features/features.5/Add_output_0", + "basis": "earliest tap over band with in-band predecessors (fp16: the tap's faithful envelope gates, C3-1); grey zone (C4-2): 1 nominal gated location(s) over 0.7071, worst net.features.5 at ratio 0.861, so shape dependence is not inferred; classified by its own signature at shape 192", + "index": 6, + "neighbourhood": [ + { + "band_ratio": 0.723435135, + "index": 5, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.4/block/block.3/block.3.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.4" + }, + { + "band_ratio": 1.25518123, + "index": 6, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.5/Add_output_0" + }, + "status": "fail", + "tap": "net.features.5" + }, + { + "band_ratio": 0.5815072, + "index": 7, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.6/Add_output_0" + }, + "status": "pass", + "tap": "net.features.6" + } + ], + "shape": 192, + "tap": "net.features.5" + }, + "fp16_floor": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "baseline": { + "bundle": "bundles/mobilenet_v3_small__clean__onnx_fp16.json", + "case": "mobilenet_v3_small__clean__onnx_fp16", + "digests": { + "192": { + "converted": "0f5c1e94183c9903ece898f192769178a20e4556d20c0b1ef4fc23502e5893f5", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "8ce44e6b921ee910b6c36de85b86a9608df76e3c1728f56afa10f6f5dd60ae3c", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + } + }, + "envelopes_gate": true, + "faithful_output_rel_max": 0.0310759602, + "faithful_tap_rel_max": { + "net.avgpool": 0.0352594163, + "net.classifier": 0.0310759602, + "net.features.0": 0.000908058909, + "net.features.1": 0.000745469506, + "net.features.10": 0.0449988479, + "net.features.11": 0.0678471375, + "net.features.12": 0.0582480643, + "net.features.2": 0.00192673754, + "net.features.3": 0.00290781924, + "net.features.4": 0.00476705887, + "net.features.5": 0.00533482606, + "net.features.6": 0.00813875363, + "net.features.7": 0.012498691, + "net.features.8": 0.0198082609, + "net.features.9": 0.0376845229, + "normalize": 0.000441313312 + }, + "floor": 0.01, + "k": 2.0, + "output_band": 0.0621519203, + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used", + "tap_envelopes": { + "net.avgpool": 0.0705188325, + "net.classifier": 0.0621519203, + "net.features.0": 0.01, + "net.features.1": 0.01, + "net.features.10": 0.0899976958, + "net.features.11": 0.135694275, + "net.features.12": 0.116496129, + "net.features.2": 0.01, + "net.features.3": 0.01, + "net.features.4": 0.01, + "net.features.5": 0.0106696521, + "net.features.6": 0.0162775073, + "net.features.7": 0.024997382, + "net.features.8": 0.0396165217, + "net.features.9": 0.0753690458, + "normalize": 0.01 + } + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "526a9e2d8fca86bd6016f76da0c0898a29c11bd662ac970af390c7ecb4481981", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "6522d4f075fe13aed414dcfb01a24d222ee8dbf515c0c0eb563fee454c5fa666", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D2", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_limit": 0.0621519203, + "band_ratio": 0.5, + "metrics": { + "corr": 0.99967926, + "finite": true, + "max_abs": 0.757778168, + "mean_abs": 0.0340288915, + "psnr_db": 53.8879014, + "ref_absmax": 24.3847065, + "rel_max": 0.0310759602, + "scaled_max_abs": 0.0310759602 + }, + "per_op_band_ratio": 3.10759602, + "status": "pass" + }, + "first_fail_index": 6, + "n_judged": 16, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 0.0441313312, + "index": 0, + "metrics": { + "corr": 0.999999966, + "finite": true, + "max_abs": 0.00508785248, + "mean_abs": 0.000405953078, + "psnr_db": 88.0186903, + "ref_absmax": 11.5288897, + "rel_max": 0.000441313312, + "scaled_max_abs": 0.000441313312 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "per_op_band_ratio": 0.0441313312, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0908058909, + "index": 1, + "metrics": { + "corr": 0.999999747, + "finite": true, + "max_abs": 0.172560692, + "mean_abs": 0.000883766055, + "psnr_db": 96.2909345, + "ref_absmax": 190.032486, + "rel_max": 0.000908058909, + "scaled_max_abs": 0.000908058909 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.0/features.0.2/HardSwish_output_0" + }, + "per_op_band_ratio": 0.0908058909, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0726273228, + "index": 2, + "metrics": { + "corr": 0.99999925, + "finite": true, + "max_abs": 0.0330090523, + "mean_abs": 0.0021913404, + "psnr_db": 88.346094, + "ref_absmax": 45.4499092, + "rel_max": 0.000726273228, + "scaled_max_abs": 0.000726273228 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.1/block/block.2/block.2.0/Conv_output_0" + }, + "per_op_band_ratio": 0.0726273228, + "status": "pass", + "tap": "net.features.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.192673754, + "index": 3, + "metrics": { + "corr": 0.99999661, + "finite": true, + "max_abs": 0.0498961806, + "mean_abs": 0.00335121535, + "psnr_db": 78.3312341, + "ref_absmax": 25.896719, + "rel_max": 0.00192673754, + "scaled_max_abs": 0.00192673754 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.2/block/block.2/block.2.0/Conv_output_0" + }, + "per_op_band_ratio": 0.192673754, + "status": "pass", + "tap": "net.features.2" + }, + { + "band_limit": 0.01, + "band_ratio": 0.281512363, + "index": 4, + "metrics": { + "corr": 0.999992632, + "finite": true, + "max_abs": 0.0723810196, + "mean_abs": 0.00526209009, + "psnr_db": 75.4762491, + "ref_absmax": 25.7114887, + "rel_max": 0.00281512363, + "scaled_max_abs": 0.00281512363 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.3/Add_output_0" + }, + "per_op_band_ratio": 0.281512363, + "status": "pass", + "tap": "net.features.3" + }, + { + "band_limit": 0.01, + "band_ratio": 0.723435135, + "index": 5, + "metrics": { + "corr": 0.999891401, + "finite": true, + "max_abs": 0.123764992, + "mean_abs": 0.0080127156, + "psnr_db": 64.4266583, + "ref_absmax": 17.1079597, + "rel_max": 0.00723435135, + "scaled_max_abs": 0.00723435135 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.4/block/block.3/block.3.0/Conv_output_0" + }, + "per_op_band_ratio": 0.723435135, + "status": "pass", + "tap": "net.features.4" + }, + { + "band_limit": 0.0106696521, + "band_ratio": 1.25518123, + "index": 6, + "metrics": { + "corr": 0.999801751, + "finite": true, + "max_abs": 0.298898816, + "mean_abs": 0.0107983143, + "psnr_db": 63.2774739, + "ref_absmax": 22.3186283, + "rel_max": 0.0133923471, + "scaled_max_abs": 0.0133923471 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.5/Add_output_0" + }, + "per_op_band_ratio": 1.33923471, + "status": "fail", + "tap": "net.features.5", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_limit": 0.0162775073, + "band_ratio": 0.5815072, + "index": 7, + "metrics": { + "corr": 0.999893546, + "finite": true, + "max_abs": 0.594149351, + "mean_abs": 0.0237026246, + "psnr_db": 66.8326793, + "ref_absmax": 62.7700729, + "rel_max": 0.00946548767, + "scaled_max_abs": 0.00946548767 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.6/Add_output_0" + }, + "per_op_band_ratio": 0.946548767, + "status": "pass", + "tap": "net.features.6" + }, + { + "band_limit": 0.024997382, + "band_ratio": 0.497022043, + "index": 8, + "metrics": { + "corr": 0.99986423, + "finite": true, + "max_abs": 0.256987095, + "mean_abs": 0.00950482209, + "psnr_db": 65.7707031, + "ref_absmax": 20.6843147, + "rel_max": 0.0124242499, + "scaled_max_abs": 0.0124242499 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.7/block/block.3/block.3.0/Conv_output_0" + }, + "per_op_band_ratio": 1.24242499, + "status": "pass", + "tap": "net.features.7" + }, + { + "band_limit": 0.0396165217, + "band_ratio": 0.5, + "index": 9, + "metrics": { + "corr": 0.9997707, + "finite": true, + "max_abs": 0.385349274, + "mean_abs": 0.0128459221, + "psnr_db": 62.4748196, + "ref_absmax": 19.453968, + "rel_max": 0.0198082609, + "scaled_max_abs": 0.0198082609 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.8/Add_output_0" + }, + "per_op_band_ratio": 1.98082609, + "status": "pass", + "tap": "net.features.8" + }, + { + "band_limit": 0.0753690458, + "band_ratio": 0.5, + "index": 10, + "metrics": { + "corr": 0.999552374, + "finite": true, + "max_abs": 0.131695211, + "mean_abs": 0.00668364877, + "psnr_db": 53.805937, + "ref_absmax": 3.49467635, + "rel_max": 0.0376845229, + "scaled_max_abs": 0.0376845229 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.9/block/block.3/block.3.0/Conv_output_0" + }, + "per_op_band_ratio": 3.76845229, + "status": "pass", + "tap": "net.features.9" + }, + { + "band_limit": 0.0899976958, + "band_ratio": 0.5, + "index": 11, + "metrics": { + "corr": 0.999593553, + "finite": true, + "max_abs": 0.168273151, + "mean_abs": 0.00800514046, + "psnr_db": 53.381276, + "ref_absmax": 3.73949909, + "rel_max": 0.0449988479, + "scaled_max_abs": 0.0449988479 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.10/Add_output_0" + }, + "per_op_band_ratio": 4.49988479, + "status": "pass", + "tap": "net.features.10" + }, + { + "band_limit": 0.135694275, + "band_ratio": 0.5, + "index": 12, + "metrics": { + "corr": 0.999532763, + "finite": true, + "max_abs": 0.307674885, + "mean_abs": 0.0100131042, + "psnr_db": 53.1348577, + "ref_absmax": 4.53482485, + "rel_max": 0.0678471375, + "scaled_max_abs": 0.0678471375 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.11/Add_output_0" + }, + "per_op_band_ratio": 6.78471375, + "status": "pass", + "tap": "net.features.11" + }, + { + "band_limit": 0.116496129, + "band_ratio": 0.474189443, + "index": 13, + "metrics": { + "corr": 0.999316347, + "finite": true, + "max_abs": 0.557923317, + "mean_abs": 0.00610226394, + "psnr_db": 55.2507553, + "ref_absmax": 10.099762, + "rel_max": 0.0552412343, + "scaled_max_abs": 0.0552412343 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.12/features.12.2/HardSwish_output_0" + }, + "per_op_band_ratio": 5.52412343, + "status": "pass", + "tap": "net.features.12" + }, + { + "band_limit": 0.0705188325, + "band_ratio": 0.5, + "index": 14, + "metrics": { + "corr": 0.999540422, + "finite": true, + "max_abs": 0.184967697, + "mean_abs": 0.00421079609, + "psnr_db": 53.6164206, + "ref_absmax": 5.24590921, + "rel_max": 0.0352594163, + "scaled_max_abs": 0.0352594163 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "per_op_band_ratio": 3.52594163, + "status": "pass", + "tap": "net.avgpool" + }, + { + "band_limit": 0.0621519203, + "band_ratio": 0.5, + "index": 15, + "metrics": { + "corr": 0.99967926, + "finite": true, + "max_abs": 0.757778168, + "mean_abs": 0.0340288915, + "psnr_db": 53.8879014, + "ref_absmax": 24.3847065, + "rel_max": 0.0310759602, + "scaled_max_abs": 0.0310759602 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "per_op_band_ratio": 3.10759602, + "status": "pass", + "tap": "net.classifier" + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.875, + "band_limit": 0.0621519203, + "band_ratio": 0.347784707, + "metrics": { + "corr": 0.999862643, + "finite": true, + "max_abs": 0.38962245, + "mean_abs": 0.0236361643, + "psnr_db": 56.5552821, + "ref_absmax": 18.0251522, + "rel_max": 0.0216154874, + "scaled_max_abs": 0.0216154874 + }, + "per_op_band_ratio": 2.16154874, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 16, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 0.0439328023, + "index": 0, + "metrics": { + "corr": 0.999999965, + "finite": true, + "max_abs": 0.00506496429, + "mean_abs": 0.000406712054, + "psnr_db": 88.0749992, + "ref_absmax": 11.5288897, + "rel_max": 0.000439328023, + "scaled_max_abs": 0.000439328023 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "per_op_band_ratio": 0.0439328023, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0867140259, + "index": 1, + "metrics": { + "corr": 0.999999726, + "finite": true, + "max_abs": 0.146580219, + "mean_abs": 0.000882941117, + "psnr_db": 95.4408227, + "ref_absmax": 169.038651, + "rel_max": 0.000867140259, + "scaled_max_abs": 0.000867140259 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.0/features.0.2/HardSwish_output_0" + }, + "per_op_band_ratio": 0.0867140259, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0745469506, + "index": 2, + "metrics": { + "corr": 0.999999152, + "finite": true, + "max_abs": 0.0332808495, + "mean_abs": 0.00218689379, + "psnr_db": 87.8352672, + "ref_absmax": 44.644146, + "rel_max": 0.000745469506, + "scaled_max_abs": 0.000745469506 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.1/block/block.2/block.2.0/Conv_output_0" + }, + "per_op_band_ratio": 0.0745469506, + "status": "pass", + "tap": "net.features.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.155432319, + "index": 3, + "metrics": { + "corr": 0.999995967, + "finite": true, + "max_abs": 0.0475851297, + "mean_abs": 0.00342715191, + "psnr_db": 79.2772077, + "ref_absmax": 30.6146946, + "rel_max": 0.00155432319, + "scaled_max_abs": 0.00155432319 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.2/block/block.2/block.2.0/Conv_output_0" + }, + "per_op_band_ratio": 0.155432319, + "status": "pass", + "tap": "net.features.2" + }, + { + "band_limit": 0.01, + "band_ratio": 0.290781924, + "index": 4, + "metrics": { + "corr": 0.999991914, + "finite": true, + "max_abs": 0.0760879517, + "mean_abs": 0.00542803163, + "psnr_db": 75.1554022, + "ref_absmax": 26.1666718, + "rel_max": 0.00290781924, + "scaled_max_abs": 0.00290781924 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.3/Add_output_0" + }, + "per_op_band_ratio": 0.290781924, + "status": "pass", + "tap": "net.features.3" + }, + { + "band_limit": 0.01, + "band_ratio": 0.602733802, + "index": 5, + "metrics": { + "corr": 0.999898585, + "finite": true, + "max_abs": 0.117539644, + "mean_abs": 0.00815392941, + "psnr_db": 65.6173271, + "ref_absmax": 19.5010872, + "rel_max": 0.00602733802, + "scaled_max_abs": 0.00602733802 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.4/block/block.3/block.3.0/Conv_output_0" + }, + "per_op_band_ratio": 0.602733802, + "status": "pass", + "tap": "net.features.4" + }, + { + "band_limit": 0.0106696521, + "band_ratio": 0.860639064, + "index": 6, + "metrics": { + "corr": 0.999828159, + "finite": true, + "max_abs": 0.275904894, + "mean_abs": 0.0109572827, + "psnr_db": 65.693428, + "ref_absmax": 30.0460987, + "rel_max": 0.00918271941, + "scaled_max_abs": 0.00918271941 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.5/Add_output_0" + }, + "per_op_band_ratio": 0.918271941, + "status": "pass", + "tap": "net.features.5" + }, + { + "band_limit": 0.0162775073, + "band_ratio": 0.470078717, + "index": 7, + "metrics": { + "corr": 0.999956783, + "finite": true, + "max_abs": 0.517869234, + "mean_abs": 0.0154316848, + "psnr_db": 72.4806457, + "ref_absmax": 67.6801987, + "rel_max": 0.00765170972, + "scaled_max_abs": 0.00765170972 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.6/Add_output_0" + }, + "per_op_band_ratio": 0.765170972, + "status": "pass", + "tap": "net.features.6" + }, + { + "band_limit": 0.024997382, + "band_ratio": 0.597778471, + "index": 8, + "metrics": { + "corr": 0.999902421, + "finite": true, + "max_abs": 0.258289993, + "mean_abs": 0.00800122389, + "psnr_db": 66.6263946, + "ref_absmax": 17.2851353, + "rel_max": 0.0149428968, + "scaled_max_abs": 0.0149428968 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.7/block/block.3/block.3.0/Conv_output_0" + }, + "per_op_band_ratio": 1.49428968, + "status": "pass", + "tap": "net.features.7" + }, + { + "band_limit": 0.0396165217, + "band_ratio": 0.580342393, + "index": 9, + "metrics": { + "corr": 0.999875501, + "finite": true, + "max_abs": 0.384477258, + "mean_abs": 0.00989508978, + "psnr_db": 64.6238588, + "ref_absmax": 16.7228394, + "rel_max": 0.022991147, + "scaled_max_abs": 0.022991147 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.8/Add_output_0" + }, + "per_op_band_ratio": 2.2991147, + "status": "pass", + "tap": "net.features.8" + }, + { + "band_limit": 0.0753690458, + "band_ratio": 0.621460748, + "index": 10, + "metrics": { + "corr": 0.999791677, + "finite": true, + "max_abs": 0.126828313, + "mean_abs": 0.00496563794, + "psnr_db": 55.2213144, + "ref_absmax": 2.7077558, + "rel_max": 0.0468389035, + "scaled_max_abs": 0.0468389035 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.9/block/block.3/block.3.0/Conv_output_0" + }, + "per_op_band_ratio": 4.68389035, + "status": "pass", + "tap": "net.features.9" + }, + { + "band_limit": 0.0899976958, + "band_ratio": 0.462680666, + "index": 11, + "metrics": { + "corr": 0.999770496, + "finite": true, + "max_abs": 0.136803389, + "mean_abs": 0.00655460957, + "psnr_db": 54.2293779, + "ref_absmax": 3.28536868, + "rel_max": 0.0416401938, + "scaled_max_abs": 0.0416401938 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.10/Add_output_0" + }, + "per_op_band_ratio": 4.16401938, + "status": "pass", + "tap": "net.features.10" + }, + { + "band_limit": 0.135694275, + "band_ratio": 0.313060073, + "index": 12, + "metrics": { + "corr": 0.999762791, + "finite": true, + "max_abs": 0.168629915, + "mean_abs": 0.00786256873, + "psnr_db": 54.4311391, + "ref_absmax": 3.9695878, + "rel_max": 0.0424804597, + "scaled_max_abs": 0.0424804597 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.11/Add_output_0" + }, + "per_op_band_ratio": 4.24804597, + "status": "pass", + "tap": "net.features.11" + }, + { + "band_limit": 0.116496129, + "band_ratio": 0.5, + "index": 13, + "metrics": { + "corr": 0.999676647, + "finite": true, + "max_abs": 0.539265156, + "mean_abs": 0.00445141193, + "psnr_db": 58.1317291, + "ref_absmax": 9.25807858, + "rel_max": 0.0582480643, + "scaled_max_abs": 0.0582480643 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.12/features.12.2/HardSwish_output_0" + }, + "per_op_band_ratio": 5.82480643, + "status": "pass", + "tap": "net.features.12" + }, + { + "band_limit": 0.0705188325, + "band_ratio": 0.311933443, + "index": 14, + "metrics": { + "corr": 0.999797556, + "finite": true, + "max_abs": 0.114154458, + "mean_abs": 0.00303609851, + "psnr_db": 57.3009375, + "ref_absmax": 5.18950367, + "rel_max": 0.0219971823, + "scaled_max_abs": 0.0219971823 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "per_op_band_ratio": 2.19971823, + "status": "pass", + "tap": "net.avgpool" + }, + { + "band_limit": 0.0621519203, + "band_ratio": 0.347784707, + "index": 15, + "metrics": { + "corr": 0.999862643, + "finite": true, + "max_abs": 0.38962245, + "mean_abs": 0.0236361643, + "psnr_db": 56.5552821, + "ref_absmax": 18.0251522, + "rel_max": 0.0216154874, + "scaled_max_abs": 0.0216154874 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "per_op_band_ratio": 2.16154874, + "status": "pass", + "tap": "net.classifier" + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp16", + "id": "mobilenet_v3_small__pool_divisor__onnx_fp16", + "model": "mobilenet_v3_small", + "path": "onnx", + "variant": "pool_divisor" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/mobilenet_v3_small__pool_divisor__onnx_fp32.json b/bench/verdicts_calibrated4/mobilenet_v3_small__pool_divisor__onnx_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..ba9468c926c2f40bf7b54c0afca31c7b611dc032 --- /dev/null +++ b/bench/verdicts_calibrated4/mobilenet_v3_small__pool_divisor__onnx_fp32.json @@ -0,0 +1,1596 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "reason": "first divergence at tap 5 is beyond the hypothesis taps (first 3) \u2014 interface faults surface earlier", + "status": "not_evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "/net/features/features.4/block/block.3/block.3.0/Conv_output_0", + "basis": "earliest tap over band with in-band predecessors; localised on all probes (C4-1): no tap is over band on the gated probes but the output is, and this is the earliest tap over band on all probes (near-zero evidence localises)", + "index": 5, + "localisation": { + "all_probe_band_ratios": [ + { + "band_ratio": 0.0, + "index": 0, + "tap": "normalize" + }, + { + "band_ratio": 0.00362482631, + "index": 1, + "tap": "net.features.0" + }, + { + "band_ratio": 0.00790382455, + "index": 2, + "tap": "net.features.1" + }, + { + "band_ratio": 0.00969570773, + "index": 3, + "tap": "net.features.2" + }, + { + "band_ratio": 0.02888357, + "index": 4, + "tap": "net.features.3" + }, + { + "band_ratio": 60.1789962, + "index": 5, + "tap": "net.features.4" + } + ], + "classified_on": "all probes (DECISIONS.md 11.B')", + "localised": true, + "localised_metrics": { + "corr": 0.999932921, + "finite": true, + "max_abs": 0.117355585, + "mean_abs": 0.00400797188, + "psnr_db": 67.4739353, + "ref_absmax": 19.5010872, + "rel_max": 0.00601789962, + "scaled_max_abs": 0.00601789962 + }, + "n_probes": 32, + "probes": "all (the C3-2 gated probes and near_zero)", + "rule": "C4-1 (a1)" + }, + "neighbourhood": [ + { + "band_ratio": 0.0188153224, + "index": 4, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.3/Add_output_0" + }, + "status": "pass", + "tap": "net.features.3" + }, + { + "band_ratio": 0.0167494997, + "index": 5, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.4/block/block.3/block.3.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.4" + }, + { + "band_ratio": 0.0253129458, + "index": 6, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.5/Add_output_0" + }, + "status": "pass", + "tap": "net.features.5" + } + ], + "shape": 224, + "tap": "net.features.4" + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "c4c11bc403105fc28ebff70f235bf632561531237461ea30fb6a4f265a272a32", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "8465d611bb6d7cfa9eee224de23f17cb05bbf5f56a9dc62632a3bed8c56f6e09", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "fp32 per-tap band on near-zero probes", + "reason": "C3-2: per-tap fp32 checks gate without the near_zero probes; they are measured and reported per tap ('ungated_probes'); the output gates on all probes. C4-1: when the output has failed and no gated tap fails, they localise the first divergence (earliest tap over band on all probes)" + }, + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D2", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 48.0306535, + "metrics": { + "corr": 0.999989975, + "finite": true, + "max_abs": 0.117121339, + "mean_abs": 0.00323244529, + "psnr_db": 69.2834384, + "ref_absmax": 24.3847065, + "rel_max": 0.00480306535, + "scaled_max_abs": 0.00480306535 + }, + "status": "fail", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + "first_fail_index": null, + "n_judged": 16, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.0, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 11.5288897, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.0, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 2.11790395, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00321182749, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.10351562e-05, + "mean_abs": 1.89537677e-07, + "psnr_db": 167.344678, + "ref_absmax": 190.032486, + "rel_max": 3.21182749e-07, + "scaled_max_abs": 3.21182749e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.0/features.0.2/HardSwish_output_0" + }, + "status": "pass", + "tap": "net.features.0", + "ungated_probes": { + "band_ratio": 0.00241213599, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.62939453e-06, + "mean_abs": 2.16881618e-07, + "psnr_db": 157.366824, + "ref_absmax": 31.6292057, + "rel_max": 2.41213599e-07, + "scaled_max_abs": 2.41213599e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00797353056, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.6239624e-05, + "mean_abs": 9.98075285e-07, + "psnr_db": 153.072648, + "ref_absmax": 45.4499092, + "rel_max": 7.97353056e-07, + "scaled_max_abs": 7.97353056e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.1/block/block.2/block.2.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.1", + "ungated_probes": { + "band_ratio": 0.0227632446, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.66893005e-05, + "mean_abs": 1.24961924e-06, + "psnr_db": 137.172128, + "ref_absmax": 7.33168793, + "rel_max": 2.27632446e-06, + "scaled_max_abs": 2.27632446e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00846999548, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.19345093e-05, + "mean_abs": 1.54983388e-06, + "psnr_db": 144.766529, + "ref_absmax": 25.896719, + "rel_max": 8.46999548e-07, + "scaled_max_abs": 8.46999548e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.2/block/block.2/block.2.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.2", + "ungated_probes": { + "band_ratio": 0.0644802993, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.77757645e-05, + "mean_abs": 2.75313276e-06, + "psnr_db": 124.749923, + "ref_absmax": 4.30763578, + "rel_max": 6.44802993e-06, + "scaled_max_abs": 6.44802993e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0153001897, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.93390656e-05, + "mean_abs": 2.63761359e-06, + "psnr_db": 141.695642, + "ref_absmax": 25.7114887, + "rel_max": 1.53001897e-06, + "scaled_max_abs": 1.53001897e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.3/Add_output_0" + }, + "status": "pass", + "tap": "net.features.3", + "ungated_probes": { + "band_ratio": 0.12165021, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.18967819e-05, + "mean_abs": 7.36337757e-06, + "psnr_db": 120.768056, + "ref_absmax": 6.73215294, + "rel_max": 1.2165021e-05, + "scaled_max_abs": 1.2165021e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0169323857, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.89678574e-05, + "mean_abs": 1.63707645e-06, + "psnr_db": 140.134058, + "ref_absmax": 17.1079597, + "rel_max": 1.69323857e-06, + "scaled_max_abs": 1.69323857e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.4/block/block.3/block.3.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.4", + "ungated_probes": { + "band_ratio": 422.426026, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999484836, + "finite": true, + "max_abs": 0.123772621, + "mean_abs": 0.0338040719, + "psnr_db": 42.637994, + "ref_absmax": 2.93004251, + "rel_max": 0.0422426026, + "scaled_max_abs": 0.0422426026 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0264925814, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.91278076e-05, + "mean_abs": 2.44822543e-06, + "psnr_db": 137.863896, + "ref_absmax": 22.3186283, + "rel_max": 2.64925814e-06, + "scaled_max_abs": 2.64925814e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.5/Add_output_0" + }, + "status": "pass", + "tap": "net.features.5", + "ungated_probes": { + "band_ratio": 999.613716, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.998065122, + "finite": true, + "max_abs": 0.28806448, + "mean_abs": 0.041716376, + "psnr_db": 39.6133406, + "ref_absmax": 2.88175797, + "rel_max": 0.0999613716, + "scaled_max_abs": 0.0999613716 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0150412056, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.44137573e-05, + "mean_abs": 4.0992821e-06, + "psnr_db": 143.729101, + "ref_absmax": 62.7700729, + "rel_max": 1.50412056e-06, + "scaled_max_abs": 1.50412056e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.6/Add_output_0" + }, + "status": "pass", + "tap": "net.features.6", + "ungated_probes": { + "band_ratio": 1256.35474, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.998674189, + "finite": true, + "max_abs": 0.6871984, + "mean_abs": 0.0506513023, + "psnr_db": 43.5672953, + "ref_absmax": 5.46977997, + "rel_max": 0.125635474, + "scaled_max_abs": 0.125635474 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0368849277, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.62939453e-05, + "mean_abs": 2.39065772e-06, + "psnr_db": 139.203407, + "ref_absmax": 20.6843147, + "rel_max": 3.68849277e-06, + "scaled_max_abs": 3.68849277e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.7/block/block.3/block.3.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.7", + "ungated_probes": { + "band_ratio": 870.11336, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999010092, + "finite": true, + "max_abs": 0.25208056, + "mean_abs": 0.0208218777, + "psnr_db": 44.9328824, + "ref_absmax": 2.89710021, + "rel_max": 0.087011336, + "scaled_max_abs": 0.087011336 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.037256794, + "index": 9, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.2479248e-05, + "mean_abs": 3.14239863e-06, + "psnr_db": 136.409477, + "ref_absmax": 19.453968, + "rel_max": 3.7256794e-06, + "scaled_max_abs": 3.7256794e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.8/Add_output_0" + }, + "status": "pass", + "tap": "net.features.8", + "ungated_probes": { + "band_ratio": 907.113388, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.998945842, + "finite": true, + "max_abs": 0.382988214, + "mean_abs": 0.0233271384, + "psnr_db": 47.0427783, + "ref_absmax": 4.22205448, + "rel_max": 0.0907113388, + "scaled_max_abs": 0.0907113388 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.061742145, + "index": 10, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.15768814e-05, + "mean_abs": 1.37282175e-06, + "psnr_db": 128.665641, + "ref_absmax": 3.49467635, + "rel_max": 6.1742145e-06, + "scaled_max_abs": 6.1742145e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.9/block/block.3/block.3.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.9", + "ungated_probes": { + "band_ratio": 957.593942, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999297352, + "finite": true, + "max_abs": 0.112882942, + "mean_abs": 0.0108777183, + "psnr_db": 43.2685386, + "ref_absmax": 1.17881846, + "rel_max": 0.0957593942, + "scaled_max_abs": 0.0957593942 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0838402213, + "index": 11, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.13520432e-05, + "mean_abs": 1.83222124e-06, + "psnr_db": 127.011191, + "ref_absmax": 3.73949909, + "rel_max": 8.38402213e-06, + "scaled_max_abs": 8.38402213e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.10/Add_output_0" + }, + "status": "pass", + "tap": "net.features.10", + "ungated_probes": { + "band_ratio": 711.747085, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.99945453, + "finite": true, + "max_abs": 0.115901411, + "mean_abs": 0.0114364943, + "psnr_db": 45.7964771, + "ref_absmax": 1.62840724, + "rel_max": 0.0711747085, + "scaled_max_abs": 0.0711747085 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0744265352, + "index": 12, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.37511301e-05, + "mean_abs": 2.20671628e-06, + "psnr_db": 127.188558, + "ref_absmax": 4.53482485, + "rel_max": 7.44265352e-06, + "scaled_max_abs": 7.44265352e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.11/Add_output_0" + }, + "status": "pass", + "tap": "net.features.11", + "ungated_probes": { + "band_ratio": 737.95937, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999359247, + "finite": true, + "max_abs": 0.124522269, + "mean_abs": 0.0135661364, + "psnr_db": 45.4204309, + "ref_absmax": 1.68738651, + "rel_max": 0.073795937, + "scaled_max_abs": 0.073795937 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0891139949, + "index": 13, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.00030136e-05, + "mean_abs": 1.40610995e-06, + "psnr_db": 129.123618, + "ref_absmax": 10.099762, + "rel_max": 8.91139949e-06, + "scaled_max_abs": 8.91139949e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.12/features.12.2/HardSwish_output_0" + }, + "status": "pass", + "tap": "net.features.12", + "ungated_probes": { + "band_ratio": 477.78336, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.998954739, + "finite": true, + "max_abs": 0.269620538, + "mean_abs": 0.00666816216, + "psnr_db": 53.4517862, + "ref_absmax": 5.64315462, + "rel_max": 0.047778336, + "scaled_max_abs": 0.047778336 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0522657474, + "index": 14, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.74181366e-05, + "mean_abs": 8.35797113e-07, + "psnr_db": 128.083859, + "ref_absmax": 5.24590921, + "rel_max": 5.22657474e-06, + "scaled_max_abs": 5.22657474e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "status": "pass", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 263.386005, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999671104, + "finite": true, + "max_abs": 0.0492115021, + "mean_abs": 0.00420738232, + "psnr_db": 51.1518744, + "ref_absmax": 1.8684175, + "rel_max": 0.0263386005, + "scaled_max_abs": 0.0263386005 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.041847193, + "index": 15, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000102043152, + "mean_abs": 6.86412547e-06, + "psnr_db": 128.332281, + "ref_absmax": 24.3847065, + "rel_max": 4.1847193e-06, + "scaled_max_abs": 4.1847193e-06 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "pass", + "tap": "net.classifier", + "ungated_probes": { + "band_ratio": 218.745013, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999637686, + "finite": true, + "max_abs": 0.117121339, + "mean_abs": 0.0258115135, + "psnr_db": 47.3883976, + "ref_absmax": 5.35424042, + "rel_max": 0.0218745013, + "scaled_max_abs": 0.0218745013 + }, + "n_probes": 4 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.875, + "band_ratio": 94.1277861, + "metrics": { + "corr": 0.999967689, + "finite": true, + "max_abs": 0.169666767, + "mean_abs": 0.00540276715, + "psnr_db": 62.9240043, + "ref_absmax": 18.0251522, + "rel_max": 0.00941277861, + "scaled_max_abs": 0.00941277861 + }, + "status": "fail", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + }, + "first_fail_index": null, + "n_judged": 16, + "n_taps": 16, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.0, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 11.5288897, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.0, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 2.11790395, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00362482631, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.12735748e-05, + "mean_abs": 1.87428373e-07, + "psnr_db": 166.603887, + "ref_absmax": 169.038651, + "rel_max": 3.62482631e-07, + "scaled_max_abs": 3.62482631e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.0/features.0.2/HardSwish_output_0" + }, + "status": "pass", + "tap": "net.features.0", + "ungated_probes": { + "band_ratio": 0.00240942098, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.62939453e-06, + "mean_abs": 2.17489598e-07, + "psnr_db": 157.375654, + "ref_absmax": 31.6648464, + "rel_max": 2.40942098e-07, + "scaled_max_abs": 2.40942098e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00790382455, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.52859497e-05, + "mean_abs": 9.92377723e-07, + "psnr_db": 152.56663, + "ref_absmax": 44.644146, + "rel_max": 7.90382455e-07, + "scaled_max_abs": 7.90382455e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.1/block/block.2/block.2.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.1", + "ungated_probes": { + "band_ratio": 0.0237532999, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.74045563e-05, + "mean_abs": 1.25099652e-06, + "psnr_db": 137.146217, + "ref_absmax": 7.32721615, + "rel_max": 2.37532999e-06, + "scaled_max_abs": 2.37532999e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00837179583, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.56299973e-05, + "mean_abs": 1.58629216e-06, + "psnr_db": 145.698877, + "ref_absmax": 30.6146946, + "rel_max": 8.37179583e-07, + "scaled_max_abs": 8.37179583e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.2/block/block.2/block.2.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.2", + "ungated_probes": { + "band_ratio": 0.068866752, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.96831131e-05, + "mean_abs": 2.76051356e-06, + "psnr_db": 124.708734, + "ref_absmax": 4.31022406, + "rel_max": 6.8866752e-06, + "scaled_max_abs": 6.8866752e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0188153224, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.92334366e-05, + "mean_abs": 2.72670566e-06, + "psnr_db": 141.34389, + "ref_absmax": 26.1666718, + "rel_max": 1.88153224e-06, + "scaled_max_abs": 1.88153224e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.3/Add_output_0" + }, + "status": "pass", + "tap": "net.features.3", + "ungated_probes": { + "band_ratio": 0.112213009, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.55786896e-05, + "mean_abs": 7.28417024e-06, + "psnr_db": 120.917242, + "ref_absmax": 6.73528767, + "rel_max": 1.12213009e-05, + "scaled_max_abs": 1.12213009e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0167494997, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.26633453e-05, + "mean_abs": 1.75695061e-06, + "psnr_db": 140.578099, + "ref_absmax": 19.5010872, + "rel_max": 1.67494997e-06, + "scaled_max_abs": 1.67494997e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.4/block/block.3/block.3.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.4", + "ungated_probes": { + "band_ratio": 396.05631, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999547545, + "finite": true, + "max_abs": 0.117355585, + "mean_abs": 0.0320514764, + "psnr_db": 43.2130881, + "ref_absmax": 2.96310353, + "rel_max": 0.039605631, + "scaled_max_abs": 0.039605631 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0253129458, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.60555267e-05, + "mean_abs": 2.76670381e-06, + "psnr_db": 138.577881, + "ref_absmax": 30.0460987, + "rel_max": 2.53129458e-06, + "scaled_max_abs": 2.53129458e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.5/Add_output_0" + }, + "status": "pass", + "tap": "net.features.5", + "ungated_probes": { + "band_ratio": 1035.49996, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.998401474, + "finite": true, + "max_abs": 0.257533431, + "mean_abs": 0.0383249511, + "psnr_db": 39.7671988, + "ref_absmax": 2.48704433, + "rel_max": 0.103549996, + "scaled_max_abs": 0.103549996 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0159931615, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000108242035, + "mean_abs": 4.20943605e-06, + "psnr_db": 144.342961, + "ref_absmax": 67.6801987, + "rel_max": 1.59931615e-06, + "scaled_max_abs": 1.59931615e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.6/Add_output_0" + }, + "status": "pass", + "tap": "net.features.6", + "ungated_probes": { + "band_ratio": 1048.85563, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.998853501, + "finite": true, + "max_abs": 0.579277039, + "mean_abs": 0.0468455701, + "psnr_db": 44.2590147, + "ref_absmax": 5.5229435, + "rel_max": 0.104885563, + "scaled_max_abs": 0.104885563 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0380694318, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.58035278e-05, + "mean_abs": 2.40805624e-06, + "psnr_db": 137.787698, + "ref_absmax": 17.2851353, + "rel_max": 3.80694318e-06, + "scaled_max_abs": 3.80694318e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.7/block/block.3/block.3.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.7", + "ungated_probes": { + "band_ratio": 905.236751, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999252837, + "finite": true, + "max_abs": 0.269801021, + "mean_abs": 0.0177969729, + "psnr_db": 46.7533456, + "ref_absmax": 2.98044705, + "rel_max": 0.0905236751, + "scaled_max_abs": 0.0905236751 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0399197772, + "index": 9, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.67572021e-05, + "mean_abs": 3.02321038e-06, + "psnr_db": 135.588047, + "ref_absmax": 16.7228394, + "rel_max": 3.99197772e-06, + "scaled_max_abs": 3.99197772e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.8/Add_output_0" + }, + "status": "pass", + "tap": "net.features.8", + "ungated_probes": { + "band_ratio": 837.783112, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999256733, + "finite": true, + "max_abs": 0.392705441, + "mean_abs": 0.0189911842, + "psnr_db": 49.1960539, + "ref_absmax": 4.68743563, + "rel_max": 0.0837783112, + "scaled_max_abs": 0.0837783112 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0777043468, + "index": 10, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.10404396e-05, + "mean_abs": 1.18193059e-06, + "psnr_db": 128.468326, + "ref_absmax": 2.7077558, + "rel_max": 7.77043468e-06, + "scaled_max_abs": 7.77043468e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.9/block/block.3/block.3.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.9", + "ungated_probes": { + "band_ratio": 1155.86846, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999375568, + "finite": true, + "max_abs": 0.140546173, + "mean_abs": 0.00986148632, + "psnr_db": 44.1262562, + "ref_absmax": 1.21593571, + "rel_max": 0.115586846, + "scaled_max_abs": 0.115586846 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0888980166, + "index": 11, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.92062759e-05, + "mean_abs": 1.54103465e-06, + "psnr_db": 127.582863, + "ref_absmax": 3.28536868, + "rel_max": 8.88980166e-06, + "scaled_max_abs": 8.88980166e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.10/Add_output_0" + }, + "status": "pass", + "tap": "net.features.10", + "ungated_probes": { + "band_ratio": 786.481599, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999368424, + "finite": true, + "max_abs": 0.136853218, + "mean_abs": 0.012483096, + "psnr_db": 45.4024285, + "ref_absmax": 1.74006891, + "rel_max": 0.0786481599, + "scaled_max_abs": 0.0786481599 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0888907148, + "index": 12, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.52859497e-05, + "mean_abs": 1.82586186e-06, + "psnr_db": 127.870942, + "ref_absmax": 3.9695878, + "rel_max": 8.88907148e-06, + "scaled_max_abs": 8.88907148e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.11/Add_output_0" + }, + "status": "pass", + "tap": "net.features.11", + "ungated_probes": { + "band_ratio": 829.298156, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999301031, + "finite": true, + "max_abs": 0.151021361, + "mean_abs": 0.0144303791, + "psnr_db": 45.3351138, + "ref_absmax": 1.82107437, + "rel_max": 0.0829298156, + "scaled_max_abs": 0.0829298156 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.117173831, + "index": 13, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000108480453, + "mean_abs": 1.0775267e-06, + "psnr_db": 131.316433, + "ref_absmax": 9.25807858, + "rel_max": 1.17173831e-05, + "scaled_max_abs": 1.17173831e-05 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.12/features.12.2/HardSwish_output_0" + }, + "status": "pass", + "tap": "net.features.12", + "ungated_probes": { + "band_ratio": 516.14353, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.99870933, + "finite": true, + "max_abs": 0.318494797, + "mean_abs": 0.00678879006, + "psnr_db": 53.196719, + "ref_absmax": 6.17066336, + "rel_max": 0.051614353, + "scaled_max_abs": 0.051614353 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0447939012, + "index": 14, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.32458115e-05, + "mean_abs": 5.77779401e-07, + "psnr_db": 132.29571, + "ref_absmax": 5.18950367, + "rel_max": 4.47939012e-06, + "scaled_max_abs": 4.47939012e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "status": "pass", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 391.700088, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999205245, + "finite": true, + "max_abs": 0.0771125555, + "mean_abs": 0.00484231345, + "psnr_db": 49.0628688, + "ref_absmax": 1.96866322, + "rel_max": 0.0391700088, + "scaled_max_abs": 0.0391700088 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0391519021, + "index": 15, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.05718994e-05, + "mean_abs": 5.24369485e-06, + "psnr_db": 129.730406, + "ref_absmax": 18.0251522, + "rel_max": 3.91519021e-06, + "scaled_max_abs": 3.91519021e-06 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "pass", + "tap": "net.classifier", + "ungated_probes": { + "band_ratio": 326.216625, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999042572, + "finite": true, + "max_abs": 0.169666767, + "mean_abs": 0.0431854313, + "psnr_db": 43.1170189, + "ref_absmax": 5.20104599, + "rel_max": 0.0326216625, + "scaled_max_abs": 0.0326216625 + }, + "n_probes": 4 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp32", + "id": "mobilenet_v3_small__pool_divisor__onnx_fp32", + "model": "mobilenet_v3_small", + "path": "onnx", + "variant": "pool_divisor" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/resnet18__baked_shape__coreml_fp16.json b/bench/verdicts_calibrated4/resnet18__baked_shape__coreml_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..cb9578357760fd30709e39f35b1ef860744946e7 --- /dev/null +++ b/bench/verdicts_calibrated4/resnet18__baked_shape__coreml_fp16.json @@ -0,0 +1,962 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "baseline": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "faithful_output_rel_max": 0.00652165202, + "output_band": 0.013043304, + "source": { + "bundle": "bundles/resnet18__clean__coreml_fp16.json", + "case": "resnet18__clean__coreml_fp16", + "digests": { + "192": { + "converted": "d6e8f11106d7868c4acdddd4c89bb934bd08cc14049682fea972c885765295e4", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "aa676247fae9c779d0ab1c7cd4fb20d3d1c91b615ff304ed67889a259a1af32e", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + } + } + }, + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [ + "inputs[0]: dtype float16 (declared float32)", + "outputs[0]: dtype float16 (declared float32)" + ], + "status": "precision_narrowing" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "margin": { + "clear_margin": true, + "failing_shape": 192, + "locations_over_margin": [], + "margin": 0.707106781, + "n_locations": 13, + "nominal_output_band_ratio": 0.5, + "nominal_output_judgeable": true, + "rule": "C4-2 (b1)", + "scope": "every gated location of the nominal shape", + "worst_location": { + "band_ratio": 0.5, + "index": null, + "location": "output" + } + }, + "status": "flag" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "_inversed_x_cast_fp16", + "basis": "nominal shape 224 inside band with a clear margin at every gated location (worst output at ratio 0.5 <= 0.7071); shape 192 over band", + "index": 10, + "neighbourhood": [ + { + "band_ratio": 0.5, + "index": 9, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_3_cast_fp16" + }, + "status": "pass", + "tap": "net.layer4.1" + }, + { + "band_ratio": 15.1113199, + "index": 10, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_x_cast_fp16" + }, + "status": "fail", + "tap": "net.avgpool" + }, + { + "band_ratio": 20.5057506, + "index": 11, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc" + } + ], + "shape": 192, + "tap": "net.avgpool" + }, + "fp16_floor": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "baseline": { + "bundle": "bundles/resnet18__clean__coreml_fp16.json", + "case": "resnet18__clean__coreml_fp16", + "digests": { + "192": { + "converted": "d6e8f11106d7868c4acdddd4c89bb934bd08cc14049682fea972c885765295e4", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "aa676247fae9c779d0ab1c7cd4fb20d3d1c91b615ff304ed67889a259a1af32e", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + } + }, + "envelopes_gate": true, + "faithful_output_rel_max": 0.00652165202, + "faithful_tap_rel_max": { + "net.avgpool": 0.00870158006, + "net.fc": 0.00652165202, + "net.layer1.0": 0.00480211137, + "net.layer1.1": 0.0048244139, + "net.layer2.0": 0.00485763828, + "net.layer2.1": 0.00605789942, + "net.layer3.0": 0.00577717049, + "net.layer3.1": 0.0171483417, + "net.layer4.0": 0.0243476768, + "net.layer4.1": 0.014049191, + "net.maxpool": 0.00459322342, + "normalize": 0.00117570499 + }, + "floor": 0.01, + "k": 2.0, + "output_band": 0.013043304, + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used", + "tap_envelopes": { + "net.avgpool": 0.0174031601, + "net.fc": 0.013043304, + "net.layer1.0": 0.01, + "net.layer1.1": 0.01, + "net.layer2.0": 0.01, + "net.layer2.1": 0.0121157988, + "net.layer3.0": 0.011554341, + "net.layer3.1": 0.0342966833, + "net.layer4.0": 0.0486953535, + "net.layer4.1": 0.028098382, + "net.maxpool": 0.01, + "normalize": 0.01 + } + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "e47371cbc43dba7f9207ee7699b4b583bce68f17c626f53c218b445b82fa7494", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "aa676247fae9c779d0ab1c7cd4fb20d3d1c91b615ff304ed67889a259a1af32e", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D6", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_limit": 0.013043304, + "band_ratio": 20.5057506, + "metrics": { + "corr": 0.999971803, + "finite": true, + "max_abs": 6.18419075, + "mean_abs": 0.451475455, + "psnr_db": 35.2596445, + "ref_absmax": 23.1216908, + "rel_max": 0.26746274, + "scaled_max_abs": 0.26746274 + }, + "per_op_band_ratio": 26.746274, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 10, + "n_judged": 12, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 0.117570499, + "index": 0, + "metrics": { + "corr": 0.999999914, + "finite": true, + "max_abs": 0.0135545731, + "mean_abs": 0.000674526699, + "psnr_db": 83.5827466, + "ref_absmax": 11.5288897, + "rel_max": 0.00117570499, + "scaled_max_abs": 0.00117570499 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "per_op_band_ratio": 0.117570499, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 0.459322342, + "index": 1, + "metrics": { + "corr": 0.999996447, + "finite": true, + "max_abs": 0.0424165726, + "mean_abs": 0.000952223367, + "psnr_db": 75.0364552, + "ref_absmax": 9.23459816, + "rel_max": 0.00459322342, + "scaled_max_abs": 0.00459322342 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_9_cast_fp16" + }, + "per_op_band_ratio": 0.459322342, + "status": "pass", + "tap": "net.maxpool" + }, + { + "band_limit": 0.01, + "band_ratio": 0.480211137, + "index": 2, + "metrics": { + "corr": 0.99998717, + "finite": true, + "max_abs": 0.0764093399, + "mean_abs": 0.00215436701, + "psnr_db": 73.3099338, + "ref_absmax": 15.9116135, + "rel_max": 0.00480211137, + "scaled_max_abs": 0.00480211137 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_21_cast_fp16" + }, + "per_op_band_ratio": 0.480211137, + "status": "pass", + "tap": "net.layer1.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.441904939, + "index": 3, + "metrics": { + "corr": 0.999962955, + "finite": true, + "max_abs": 0.0831634402, + "mean_abs": 0.0038022016, + "psnr_db": 69.3862926, + "ref_absmax": 18.8193054, + "rel_max": 0.00441904939, + "scaled_max_abs": 0.00441904939 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_33_cast_fp16" + }, + "per_op_band_ratio": 0.441904939, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.482464821, + "index": 4, + "metrics": { + "corr": 0.999939928, + "finite": true, + "max_abs": 0.0564466715, + "mean_abs": 0.00186217433, + "psnr_db": 69.8477445, + "ref_absmax": 11.699645, + "rel_max": 0.00482464821, + "scaled_max_abs": 0.00482464821 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_47_cast_fp16" + }, + "per_op_band_ratio": 0.482464821, + "status": "pass", + "tap": "net.layer2.0" + }, + { + "band_limit": 0.0121157988, + "band_ratio": 0.48685367, + "index": 5, + "metrics": { + "corr": 0.999930102, + "finite": true, + "max_abs": 0.0685622394, + "mean_abs": 0.00200145403, + "psnr_db": 69.0183736, + "ref_absmax": 11.623435, + "rel_max": 0.00589862113, + "scaled_max_abs": 0.00589862113 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59_cast_fp16" + }, + "per_op_band_ratio": 0.589862113, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_limit": 0.011554341, + "band_ratio": 0.34500175, + "index": 6, + "metrics": { + "corr": 0.999943674, + "finite": true, + "max_abs": 0.054576993, + "mean_abs": 0.00120694028, + "psnr_db": 74.2042645, + "ref_absmax": 13.6912508, + "rel_max": 0.00398626786, + "scaled_max_abs": 0.00398626786 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_73_cast_fp16" + }, + "per_op_band_ratio": 0.398626786, + "status": "pass", + "tap": "net.layer3.0" + }, + { + "band_limit": 0.0342966833, + "band_ratio": 0.352596193, + "index": 7, + "metrics": { + "corr": 0.999914514, + "finite": true, + "max_abs": 0.100722998, + "mean_abs": 0.00143564133, + "psnr_db": 67.8457217, + "ref_absmax": 8.32911587, + "rel_max": 0.01209288, + "scaled_max_abs": 0.01209288 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85_cast_fp16" + }, + "per_op_band_ratio": 1.209288, + "status": "pass", + "tap": "net.layer3.1" + }, + { + "band_limit": 0.0486953535, + "band_ratio": 0.423383838, + "index": 8, + "metrics": { + "corr": 0.999844894, + "finite": true, + "max_abs": 0.125895381, + "mean_abs": 0.000886009569, + "psnr_db": 65.7722773, + "ref_absmax": 6.10643864, + "rel_max": 0.0206168257, + "scaled_max_abs": 0.0206168257 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_99_cast_fp16" + }, + "per_op_band_ratio": 2.06168257, + "status": "pass", + "tap": "net.layer4.0" + }, + { + "band_limit": 0.028098382, + "band_ratio": 0.5, + "index": 9, + "metrics": { + "corr": 0.999917714, + "finite": true, + "max_abs": 0.2492342, + "mean_abs": 0.00654935488, + "psnr_db": 61.7269115, + "ref_absmax": 17.7401104, + "rel_max": 0.014049191, + "scaled_max_abs": 0.014049191 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_3_cast_fp16" + }, + "per_op_band_ratio": 1.4049191, + "status": "pass", + "tap": "net.layer4.1" + }, + { + "band_limit": 0.0174031601, + "band_ratio": 15.1113199, + "index": 10, + "metrics": { + "corr": 0.999970868, + "finite": true, + "max_abs": 2.868536, + "mean_abs": 0.140787554, + "psnr_db": 31.3286088, + "ref_absmax": 10.9076147, + "rel_max": 0.26298472, + "scaled_max_abs": 0.26298472 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_x_cast_fp16" + }, + "per_op_band_ratio": 26.298472, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "wide_range", + "index": 21 + } + }, + { + "band_limit": 0.013043304, + "band_ratio": 20.5057506, + "index": 11, + "metrics": { + "corr": 0.999971803, + "finite": true, + "max_abs": 6.18419075, + "mean_abs": 0.451475455, + "psnr_db": 35.2596445, + "ref_absmax": 23.1216908, + "rel_max": 0.26746274, + "scaled_max_abs": 0.26746274 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "per_op_band_ratio": 26.746274, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_limit": 0.013043304, + "band_ratio": 0.5, + "metrics": { + "corr": 0.999976106, + "finite": true, + "max_abs": 0.139695168, + "mean_abs": 0.01166934, + "psnr_db": 66.9644292, + "ref_absmax": 21.4202118, + "rel_max": 0.00652165202, + "scaled_max_abs": 0.00652165202 + }, + "per_op_band_ratio": 0.652165202, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 12, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 0.116213884, + "index": 0, + "metrics": { + "corr": 0.999999912, + "finite": true, + "max_abs": 0.0133981705, + "mean_abs": 0.000679588388, + "psnr_db": 83.6184843, + "ref_absmax": 11.5288897, + "rel_max": 0.00116213884, + "scaled_max_abs": 0.00116213884 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "per_op_band_ratio": 0.116213884, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 0.430958027, + "index": 1, + "metrics": { + "corr": 0.999996278, + "finite": true, + "max_abs": 0.0362386703, + "mean_abs": 0.000924325333, + "psnr_db": 74.6037105, + "ref_absmax": 8.40886307, + "rel_max": 0.00430958027, + "scaled_max_abs": 0.00430958027 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_9_cast_fp16" + }, + "per_op_band_ratio": 0.430958027, + "status": "pass", + "tap": "net.maxpool" + }, + { + "band_limit": 0.01, + "band_ratio": 0.384801236, + "index": 2, + "metrics": { + "corr": 0.999985791, + "finite": true, + "max_abs": 0.0657682419, + "mean_abs": 0.00216025527, + "psnr_db": 73.9813907, + "ref_absmax": 17.0914841, + "rel_max": 0.00384801236, + "scaled_max_abs": 0.00384801236 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_21_cast_fp16" + }, + "per_op_band_ratio": 0.384801236, + "status": "pass", + "tap": "net.layer1.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.48244139, + "index": 3, + "metrics": { + "corr": 0.999957868, + "finite": true, + "max_abs": 0.0905132294, + "mean_abs": 0.003858105, + "psnr_db": 69.2665621, + "ref_absmax": 18.7614975, + "rel_max": 0.0048244139, + "scaled_max_abs": 0.0048244139 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_33_cast_fp16" + }, + "per_op_band_ratio": 0.48244139, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.485763828, + "index": 4, + "metrics": { + "corr": 0.999932954, + "finite": true, + "max_abs": 0.0540696979, + "mean_abs": 0.00188201915, + "psnr_db": 69.3375532, + "ref_absmax": 11.1308613, + "rel_max": 0.00485763828, + "scaled_max_abs": 0.00485763828 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_47_cast_fp16" + }, + "per_op_band_ratio": 0.485763828, + "status": "pass", + "tap": "net.layer2.0" + }, + { + "band_limit": 0.0121157988, + "band_ratio": 0.5, + "index": 5, + "metrics": { + "corr": 0.999922136, + "finite": true, + "max_abs": 0.068922922, + "mean_abs": 0.0019962136, + "psnr_db": 68.8164661, + "ref_absmax": 11.3773632, + "rel_max": 0.00605789942, + "scaled_max_abs": 0.00605789942 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59_cast_fp16" + }, + "per_op_band_ratio": 0.605789942, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_limit": 0.011554341, + "band_ratio": 0.5, + "index": 6, + "metrics": { + "corr": 0.999937803, + "finite": true, + "max_abs": 0.0689224005, + "mean_abs": 0.00120167353, + "psnr_db": 73.0529363, + "ref_absmax": 11.930131, + "rel_max": 0.00577717049, + "scaled_max_abs": 0.00577717049 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_73_cast_fp16" + }, + "per_op_band_ratio": 0.577717049, + "status": "pass", + "tap": "net.layer3.0" + }, + { + "band_limit": 0.0342966833, + "band_ratio": 0.5, + "index": 7, + "metrics": { + "corr": 0.999901973, + "finite": true, + "max_abs": 0.119288564, + "mean_abs": 0.00145777084, + "psnr_db": 66.2038957, + "ref_absmax": 6.95627403, + "rel_max": 0.0171483417, + "scaled_max_abs": 0.0171483417 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85_cast_fp16" + }, + "per_op_band_ratio": 1.71483417, + "status": "pass", + "tap": "net.layer3.1" + }, + { + "band_limit": 0.0486953535, + "band_ratio": 0.5, + "index": 8, + "metrics": { + "corr": 0.999831858, + "finite": true, + "max_abs": 0.11771512, + "mean_abs": 0.00085839442, + "psnr_db": 63.9868246, + "ref_absmax": 4.8347578, + "rel_max": 0.0243476768, + "scaled_max_abs": 0.0243476768 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_99_cast_fp16" + }, + "per_op_band_ratio": 2.43476768, + "status": "pass", + "tap": "net.layer4.0" + }, + { + "band_limit": 0.028098382, + "band_ratio": 0.461224882, + "index": 9, + "metrics": { + "corr": 0.999905255, + "finite": true, + "max_abs": 0.274329185, + "mean_abs": 0.00667376417, + "psnr_db": 62.9871787, + "ref_absmax": 21.1679096, + "rel_max": 0.0129596729, + "scaled_max_abs": 0.0129596729 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_3_cast_fp16" + }, + "per_op_band_ratio": 1.29596729, + "status": "pass", + "tap": "net.layer4.1" + }, + { + "band_limit": 0.0174031601, + "band_ratio": 0.488430689, + "index": 10, + "metrics": { + "corr": 0.999972488, + "finite": true, + "max_abs": 0.0910148621, + "mean_abs": 0.0036676624, + "psnr_db": 63.7343799, + "ref_absmax": 10.7073317, + "rel_max": 0.0085002375, + "scaled_max_abs": 0.0085002375 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_x_cast_fp16" + }, + "per_op_band_ratio": 0.85002375, + "status": "pass", + "tap": "net.avgpool" + }, + { + "band_limit": 0.013043304, + "band_ratio": 0.5, + "index": 11, + "metrics": { + "corr": 0.999976106, + "finite": true, + "max_abs": 0.139695168, + "mean_abs": 0.01166934, + "psnr_db": 66.9644292, + "ref_absmax": 21.4202118, + "rel_max": 0.00652165202, + "scaled_max_abs": 0.00652165202 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "per_op_band_ratio": 0.652165202, + "status": "pass", + "tap": "net.fc" + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp16", + "id": "resnet18__baked_shape__coreml_fp16", + "model": "resnet18", + "path": "coreml", + "variant": "baked_shape" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/resnet18__baked_shape__coreml_fp32.json b/bench/verdicts_calibrated4/resnet18__baked_shape__coreml_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..af53aac2564bd0d265ae87274e3389278dc92b10 --- /dev/null +++ b/bench/verdicts_calibrated4/resnet18__baked_shape__coreml_fp32.json @@ -0,0 +1,1251 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "margin": { + "clear_margin": true, + "failing_shape": 192, + "locations_over_margin": [], + "margin": 0.707106781, + "n_locations": 13, + "nominal_output_band_ratio": 0.00801399065, + "nominal_output_judgeable": true, + "rule": "C4-2 (b1)", + "scope": "every gated location of the nominal shape", + "worst_location": { + "band_ratio": 0.0205643347, + "index": 7, + "location": "net.layer3.1" + } + }, + "status": "flag" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "_inversed_x", + "basis": "nominal shape 224 inside band with a clear margin at every gated location (worst net.layer3.1 at ratio 0.0206 <= 0.7071); shape 192 over band", + "index": 10, + "neighbourhood": [ + { + "band_ratio": 0.0193529097, + "index": 9, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_3" + }, + "status": "pass", + "tap": "net.layer4.1" + }, + { + "band_ratio": 2653.06126, + "index": 10, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_x" + }, + "status": "fail", + "tap": "net.avgpool" + }, + { + "band_ratio": 2648.76458, + "index": 11, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc" + } + ], + "shape": 192, + "tap": "net.avgpool" + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "84cbfe32f87c7eafdc7d82101e7e329d479ac0dd941d73f797631cf25c0cbf74", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "133b5f0442afcb4e07765159debccf827b4ad7305a3fc3b8c09fc35b3f47bbd5", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "fp32 per-tap band on near-zero probes", + "reason": "C3-2: per-tap fp32 checks gate without the near_zero probes; they are measured and reported per tap ('ungated_probes'); the output gates on all probes. C4-1: when the output has failed and no gated tap fails, they localise the first divergence (earliest tap over band on all probes)" + }, + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D6", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 2648.76458, + "metrics": { + "corr": 0.9999971, + "finite": true, + "max_abs": 6.12439156, + "mean_abs": 0.452428902, + "psnr_db": 35.2508754, + "ref_absmax": 23.1216908, + "rel_max": 0.264876458, + "scaled_max_abs": 0.264876458 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 10, + "n_judged": 12, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.06644368e-08, + "psnr_db": 164.113247, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.00112572895, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.38418579e-07, + "mean_abs": 4.66593688e-08, + "psnr_db": 130.397207, + "ref_absmax": 2.11790395, + "rel_max": 1.12572895e-07, + "scaled_max_abs": 1.12572895e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00671267222, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.19888306e-06, + "mean_abs": 1.46632216e-07, + "psnr_db": 150.987992, + "ref_absmax": 9.23459816, + "rel_max": 6.71267222e-07, + "scaled_max_abs": 6.71267222e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_9" + }, + "status": "pass", + "tap": "net.maxpool", + "ungated_probes": { + "band_ratio": 0.00841418618, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.78813934e-06, + "mean_abs": 1.16446061e-07, + "psnr_db": 141.439489, + "ref_absmax": 2.1251483, + "rel_max": 8.41418618e-07, + "scaled_max_abs": 8.41418618e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00719228872, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.14440918e-05, + "mean_abs": 3.06402715e-07, + "psnr_db": 149.773687, + "ref_absmax": 15.9116135, + "rel_max": 7.19228872e-07, + "scaled_max_abs": 7.19228872e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_21" + }, + "status": "pass", + "tap": "net.layer1.0", + "ungated_probes": { + "band_ratio": 0.021311339, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.31809235e-06, + "mean_abs": 4.89821877e-07, + "psnr_db": 132.727186, + "ref_absmax": 2.96466231, + "rel_max": 2.1311339e-06, + "scaled_max_abs": 2.1311339e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00912155752, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.71661377e-05, + "mean_abs": 4.85733463e-07, + "psnr_db": 147.259644, + "ref_absmax": 18.8193054, + "rel_max": 9.12155752e-07, + "scaled_max_abs": 9.12155752e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_33" + }, + "status": "pass", + "tap": "net.layer1.1", + "ungated_probes": { + "band_ratio": 0.0597004613, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.348423e-05, + "mean_abs": 1.66013091e-06, + "psnr_db": 123.828902, + "ref_absmax": 3.93367648, + "rel_max": 5.97004613e-06, + "scaled_max_abs": 5.97004613e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00697955904, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.16583633e-06, + "mean_abs": 2.34065489e-07, + "psnr_db": 148.192522, + "ref_absmax": 11.699645, + "rel_max": 6.97955904e-07, + "scaled_max_abs": 6.97955904e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_47" + }, + "status": "pass", + "tap": "net.layer2.0", + "ungated_probes": { + "band_ratio": 0.0483415241, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.34259462e-05, + "mean_abs": 7.55778647e-07, + "psnr_db": 126.373546, + "ref_absmax": 2.77731133, + "rel_max": 4.83415241e-06, + "scaled_max_abs": 4.83415241e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0086149923, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.00135803e-05, + "mean_abs": 2.63314739e-07, + "psnr_db": 147.057013, + "ref_absmax": 11.623435, + "rel_max": 8.6149923e-07, + "scaled_max_abs": 8.6149923e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59" + }, + "status": "pass", + "tap": "net.layer2.1", + "ungated_probes": { + "band_ratio": 0.0265487626, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.35600567e-05, + "mean_abs": 7.15253358e-07, + "psnr_db": 131.341764, + "ref_absmax": 5.10760403, + "rel_max": 2.65487626e-06, + "scaled_max_abs": 2.65487626e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00626901733, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.58306885e-06, + "mean_abs": 1.49177653e-07, + "psnr_db": 153.186643, + "ref_absmax": 13.6912508, + "rel_max": 6.26901733e-07, + "scaled_max_abs": 6.26901733e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_73" + }, + "status": "pass", + "tap": "net.layer3.0", + "ungated_probes": { + "band_ratio": 0.0205685048, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.05990601e-06, + "mean_abs": 3.20289824e-07, + "psnr_db": 136.930443, + "ref_absmax": 4.40474701, + "rel_max": 2.05685048e-06, + "scaled_max_abs": 2.05685048e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0166023355, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.38282776e-05, + "mean_abs": 1.76829959e-07, + "psnr_db": 147.062265, + "ref_absmax": 8.32911587, + "rel_max": 1.66023355e-06, + "scaled_max_abs": 1.66023355e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85" + }, + "status": "pass", + "tap": "net.layer3.1", + "ungated_probes": { + "band_ratio": 0.0315190865, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.21593475e-05, + "mean_abs": 3.21340238e-07, + "psnr_db": 135.079279, + "ref_absmax": 3.85777283, + "rel_max": 3.15190865e-06, + "scaled_max_abs": 3.15190865e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0101513884, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.19888306e-06, + "mean_abs": 1.04797542e-07, + "psnr_db": 146.132795, + "ref_absmax": 6.10643864, + "rel_max": 1.01513884e-06, + "scaled_max_abs": 1.01513884e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_99" + }, + "status": "pass", + "tap": "net.layer4.0", + "ungated_probes": { + "band_ratio": 0.0373068776, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.86781311e-06, + "mean_abs": 1.74996555e-07, + "psnr_db": 131.268956, + "ref_absmax": 2.10894442, + "rel_max": 3.73068776e-06, + "scaled_max_abs": 3.73068776e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0193529097, + "index": 9, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.43322754e-05, + "mean_abs": 9.84009557e-07, + "psnr_db": 138.975535, + "ref_absmax": 17.7401104, + "rel_max": 1.93529097e-06, + "scaled_max_abs": 1.93529097e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_3" + }, + "status": "pass", + "tap": "net.layer4.1", + "ungated_probes": { + "band_ratio": 0.030009709, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.43186951e-05, + "mean_abs": 4.97568928e-07, + "psnr_db": 134.640799, + "ref_absmax": 8.10360909, + "rel_max": 3.0009709e-06, + "scaled_max_abs": 3.0009709e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 2653.06126, + "index": 10, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.893857, + "mean_abs": 0.155864671, + "psnr_db": 30.8702422, + "ref_absmax": 10.9076147, + "rel_max": 0.265306126, + "scaled_max_abs": 0.265306126 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_x" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 2653.05378, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.55344105, + "mean_abs": 0.0360673309, + "psnr_db": 32.2811143, + "ref_absmax": 5.85529423, + "rel_max": 0.265305378, + "scaled_max_abs": 0.265305378 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "wide_range", + "index": 21 + } + }, + { + "band_ratio": 2648.76458, + "index": 11, + "metrics": { + "corr": 0.999997363, + "finite": true, + "max_abs": 6.12439156, + "mean_abs": 0.47840383, + "psnr_db": 34.8303957, + "ref_absmax": 23.1216908, + "rel_max": 0.264876458, + "scaled_max_abs": 0.264876458 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc", + "ungated_probes": { + "band_ratio": 2635.33881, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999990439, + "finite": true, + "max_abs": 1.47807074, + "mean_abs": 0.270604412, + "psnr_db": 28.2177253, + "ref_absmax": 5.60865545, + "rel_max": 0.263533881, + "scaled_max_abs": 0.263533881 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.00801399065, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.71661377e-05, + "mean_abs": 1.59114503e-06, + "psnr_db": 144.269715, + "ref_absmax": 21.4202118, + "rel_max": 8.01399065e-07, + "scaled_max_abs": 8.01399065e-07 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 12, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.08107465e-08, + "psnr_db": 164.245493, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.00112572895, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.38418579e-07, + "mean_abs": 4.66724468e-08, + "psnr_db": 130.436578, + "ref_absmax": 2.11790395, + "rel_max": 1.12572895e-07, + "scaled_max_abs": 1.12572895e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0064503639, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.42402267e-06, + "mean_abs": 1.41653613e-07, + "psnr_db": 150.592801, + "ref_absmax": 8.40886307, + "rel_max": 6.4503639e-07, + "scaled_max_abs": 6.4503639e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_9" + }, + "status": "pass", + "tap": "net.maxpool", + "ungated_probes": { + "band_ratio": 0.00954179514, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.02655792e-06, + "mean_abs": 1.16505097e-07, + "psnr_db": 141.425183, + "ref_absmax": 2.1238749, + "rel_max": 9.54179514e-07, + "scaled_max_abs": 9.54179514e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00781175021, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33514404e-05, + "mean_abs": 3.04504955e-07, + "psnr_db": 150.557561, + "ref_absmax": 17.0914841, + "rel_max": 7.81175021e-07, + "scaled_max_abs": 7.81175021e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_21" + }, + "status": "pass", + "tap": "net.layer1.0", + "ungated_probes": { + "band_ratio": 0.0193052678, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.7220459e-06, + "mean_abs": 4.91511212e-07, + "psnr_db": 132.704415, + "ref_absmax": 2.96398163, + "rel_max": 1.93052678e-06, + "scaled_max_abs": 1.93052678e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00864134826, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.62124634e-05, + "mean_abs": 4.90960911e-07, + "psnr_db": 147.159135, + "ref_absmax": 18.7614975, + "rel_max": 8.64134826e-07, + "scaled_max_abs": 8.64134826e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_33" + }, + "status": "pass", + "tap": "net.layer1.1", + "ungated_probes": { + "band_ratio": 0.0557220015, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.19345093e-05, + "mean_abs": 1.67574729e-06, + "psnr_db": 123.763507, + "ref_absmax": 3.93641806, + "rel_max": 5.57220015e-06, + "scaled_max_abs": 5.57220015e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00838041789, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.32812691e-06, + "mean_abs": 2.3925383e-07, + "psnr_db": 147.505666, + "ref_absmax": 11.1308613, + "rel_max": 8.38041789e-07, + "scaled_max_abs": 8.38041789e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_47" + }, + "status": "pass", + "tap": "net.layer2.0", + "ungated_probes": { + "band_ratio": 0.0473845284, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.31726265e-05, + "mean_abs": 7.53269184e-07, + "psnr_db": 126.422079, + "ref_absmax": 2.77994251, + "rel_max": 4.73845284e-06, + "scaled_max_abs": 4.73845284e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00958715108, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.090765e-05, + "mean_abs": 2.66645971e-07, + "psnr_db": 146.609757, + "ref_absmax": 11.3773632, + "rel_max": 9.58715108e-07, + "scaled_max_abs": 9.58715108e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59" + }, + "status": "pass", + "tap": "net.layer2.1", + "ungated_probes": { + "band_ratio": 0.0267042708, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.36680901e-05, + "mean_abs": 7.04819918e-07, + "psnr_db": 131.457256, + "ref_absmax": 5.11831617, + "rel_max": 2.67042708e-06, + "scaled_max_abs": 2.67042708e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00919290381, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.09672546e-05, + "mean_abs": 1.53058776e-07, + "psnr_db": 151.711257, + "ref_absmax": 11.930131, + "rel_max": 9.19290381e-07, + "scaled_max_abs": 9.19290381e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_73" + }, + "status": "pass", + "tap": "net.layer3.0", + "ungated_probes": { + "band_ratio": 0.0221752012, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.77516174e-06, + "mean_abs": 3.11827975e-07, + "psnr_db": 137.077085, + "ref_absmax": 4.4081502, + "rel_max": 2.21752012e-06, + "scaled_max_abs": 2.21752012e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0205643347, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-05, + "mean_abs": 1.84066172e-07, + "psnr_db": 145.131181, + "ref_absmax": 6.95627403, + "rel_max": 2.05643347e-06, + "scaled_max_abs": 2.05643347e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85" + }, + "status": "pass", + "tap": "net.layer3.1", + "ungated_probes": { + "band_ratio": 0.0498233047, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.92523003e-05, + "mean_abs": 3.19355241e-07, + "psnr_db": 135.033056, + "ref_absmax": 3.86411548, + "rel_max": 4.98233047e-06, + "scaled_max_abs": 4.98233047e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0119585112, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.78165054e-06, + "mean_abs": 1.07760226e-07, + "psnr_db": 143.729404, + "ref_absmax": 4.8347578, + "rel_max": 1.19585112e-06, + "scaled_max_abs": 1.19585112e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_99" + }, + "status": "pass", + "tap": "net.layer4.0", + "ungated_probes": { + "band_ratio": 0.0474991074, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.0073185e-05, + "mean_abs": 1.72458371e-07, + "psnr_db": 131.185119, + "ref_absmax": 2.12071037, + "rel_max": 4.74991074e-06, + "scaled_max_abs": 4.74991074e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0180211336, + "index": 9, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.81469727e-05, + "mean_abs": 1.00194121e-06, + "psnr_db": 140.151425, + "ref_absmax": 21.1679096, + "rel_max": 1.80211336e-06, + "scaled_max_abs": 1.80211336e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_3" + }, + "status": "pass", + "tap": "net.layer4.1", + "ungated_probes": { + "band_ratio": 0.0291536201, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.44379044e-05, + "mean_abs": 6.16358907e-07, + "psnr_db": 133.688777, + "ref_absmax": 8.38245964, + "rel_max": 2.91536201e-06, + "scaled_max_abs": 2.91536201e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00801606705, + "index": 10, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.58306885e-06, + "mean_abs": 5.44542617e-07, + "psnr_db": 140.659822, + "ref_absmax": 10.7073317, + "rel_max": 8.01606705e-07, + "scaled_max_abs": 8.01606705e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_x" + }, + "status": "pass", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 0.0105585917, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.19888306e-06, + "mean_abs": 3.20352679e-07, + "psnr_db": 139.614484, + "ref_absmax": 5.87093735, + "rel_max": 1.05585917e-06, + "scaled_max_abs": 1.05585917e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00801399065, + "index": 11, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.71661377e-05, + "mean_abs": 1.65862527e-06, + "psnr_db": 143.924262, + "ref_absmax": 21.4202118, + "rel_max": 8.01399065e-07, + "scaled_max_abs": 8.01399065e-07 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "pass", + "tap": "net.fc", + "ungated_probes": { + "band_ratio": 0.00832865402, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 1.11878337e-06, + "psnr_db": 136.051046, + "ref_absmax": 5.72526073, + "rel_max": 8.32865402e-07, + "scaled_max_abs": 8.32865402e-07 + }, + "n_probes": 4 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp32", + "id": "resnet18__baked_shape__coreml_fp32", + "model": "resnet18", + "path": "coreml", + "variant": "baked_shape" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/resnet18__baked_shape__litert_fp16.json b/bench/verdicts_calibrated4/resnet18__baked_shape__litert_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..10eedef638762355ae85518369aa782a0e93a242 --- /dev/null +++ b/bench/verdicts_calibrated4/resnet18__baked_shape__litert_fp16.json @@ -0,0 +1,1092 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "baseline": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "faithful_output_rel_max": 0.000479681862, + "output_band": 0.01, + "source": { + "bundle": "bundles/resnet18__clean__litert_fp16.json", + "case": "resnet18__clean__litert_fp16", + "digests": { + "192": { + "converted": "5518083a49acade5bb9995f1d28be7f32b0a23e8e42c5e39dfdbe59cfc6b794d", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "8d2974be0ffdfd9646dac16768c8f2eaa45593bd0207920e3d4230bc7750498d", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + } + } + }, + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 8.01471716e-05, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.71661377e-05, + "mean_abs": 1.32579838e-06, + "psnr_db": 145.461536, + "ref_absmax": 21.4182701, + "rel_max": 8.01471716e-07, + "scaled_max_abs": 8.01471716e-07 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 27, + "outputs": [ + "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models.res", + "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.linear.Linear_fc;1_dequant", + "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.B", + "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.B" + ] + }, + { + "inputs": 43, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 2, + "n_ops_total": 60, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "margin": { + "clear_margin": true, + "failing_shape": 192, + "locations_over_margin": [], + "margin": 0.707106781, + "n_locations": 13, + "nominal_output_band_ratio": 0.0479681862, + "nominal_output_judgeable": true, + "rule": "C4-2 (b1)", + "scope": "every gated location of the nominal shape", + "worst_location": { + "band_ratio": 0.15225034, + "index": 8, + "location": "net.layer4.0" + } + }, + "status": "flag" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/zoo.BakedMeanPool_avgpool;1", + "basis": "nominal shape 224 inside band with a clear margin at every gated location (worst net.layer4.0 at ratio 0.152 <= 0.7071); shape 192 over band", + "index": 10, + "neighbourhood": [ + { + "band_ratio": 0.121889732, + "index": 9, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer4.1" + }, + { + "band_ratio": 3499.54959, + "index": 10, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/zoo.BakedMeanPool_avgpool;1" + }, + "status": "fail", + "tap": "net.avgpool" + }, + { + "band_ratio": 26.5085327, + "index": 11, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.fc" + } + ], + "shape": 192, + "tap": "net.avgpool" + }, + "fp16_floor": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "baseline": { + "bundle": "bundles/resnet18__clean__litert_fp16.json", + "case": "resnet18__clean__litert_fp16", + "digests": { + "192": { + "converted": "5518083a49acade5bb9995f1d28be7f32b0a23e8e42c5e39dfdbe59cfc6b794d", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "8d2974be0ffdfd9646dac16768c8f2eaa45593bd0207920e3d4230bc7750498d", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + } + }, + "envelopes_gate": true, + "faithful_output_rel_max": 0.000479681862, + "faithful_tap_rel_max": { + "net.avgpool": 0.000675608743, + "net.fc": 0.000479681862, + "net.layer1.0": 0.000285533862, + "net.layer1.1": 0.000262599506, + "net.layer2.0": 0.000592551772, + "net.layer2.1": 0.000620361493, + "net.layer3.0": 0.000279544214, + "net.layer3.1": 0.000620957223, + "net.layer4.0": 0.0015225034, + "net.layer4.1": 0.00121889732, + "net.maxpool": 0.000583793374, + "normalize": 8.27203959e-08 + }, + "floor": 0.01, + "k": 2.0, + "output_band": 0.01, + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used", + "tap_envelopes": { + "net.avgpool": 0.01, + "net.fc": 0.01, + "net.layer1.0": 0.01, + "net.layer1.1": 0.01, + "net.layer2.0": 0.01, + "net.layer2.1": 0.01, + "net.layer3.0": 0.01, + "net.layer3.1": 0.01, + "net.layer4.0": 0.01, + "net.layer4.1": 0.01, + "net.maxpool": 0.01, + "normalize": 0.01 + } + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "3d069217881c55867b86c83c36ea9b7c42f9545c4f9013c35bf515d628dc2b81", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "8d2974be0ffdfd9646dac16768c8f2eaa45593bd0207920e3d4230bc7750498d", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D6", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_limit": 0.01, + "band_ratio": 26.5085327, + "metrics": { + "corr": 0.999996881, + "finite": true, + "max_abs": 6.12922096, + "mean_abs": 0.45262532, + "psnr_db": 35.246858, + "ref_absmax": 23.1216908, + "rel_max": 0.265085327, + "scaled_max_abs": 0.265085327 + }, + "per_op_band_ratio": 26.5085327, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 10, + "n_judged": 12, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 8.27203959e-06, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.26638033e-08, + "psnr_db": 163.904618, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "per_op_band_ratio": 8.27203959e-06, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0552685286, + "index": 1, + "metrics": { + "corr": 0.999999962, + "finite": true, + "max_abs": 0.00510382652, + "mean_abs": 7.6244338e-05, + "psnr_db": 94.6749001, + "ref_absmax": 9.23459816, + "rel_max": 0.000552685286, + "scaled_max_abs": 0.000552685286 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.MaxPool2d_maxpool;2" + }, + "per_op_band_ratio": 0.0552685286, + "status": "pass", + "tap": "net.maxpool" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0285533862, + "index": 2, + "metrics": { + "corr": 0.999999915, + "finite": true, + "max_abs": 0.00454330444, + "mean_abs": 0.000158366689, + "psnr_db": 95.091453, + "ref_absmax": 15.9116135, + "rel_max": 0.000285533862, + "scaled_max_abs": 0.000285533862 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 0.0285533862, + "status": "pass", + "tap": "net.layer1.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0262599506, + "index": 3, + "metrics": { + "corr": 0.999999807, + "finite": true, + "max_abs": 0.00494194031, + "mean_abs": 0.000244943041, + "psnr_db": 92.1941427, + "ref_absmax": 18.8193054, + "rel_max": 0.000262599506, + "scaled_max_abs": 0.000262599506 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 0.0262599506, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0526554237, + "index": 4, + "metrics": { + "corr": 0.999999711, + "finite": true, + "max_abs": 0.00616049767, + "mean_abs": 0.000116616282, + "psnr_db": 93.01523, + "ref_absmax": 11.699645, + "rel_max": 0.000526554237, + "scaled_max_abs": 0.000526554237 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 0.0526554237, + "status": "pass", + "tap": "net.layer2.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0620361493, + "index": 5, + "metrics": { + "corr": 0.999999676, + "finite": true, + "max_abs": 0.00721073151, + "mean_abs": 0.000130509692, + "psnr_db": 92.3595398, + "ref_absmax": 11.623435, + "rel_max": 0.000620361493, + "scaled_max_abs": 0.000620361493 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 0.0620361493, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0244031295, + "index": 6, + "metrics": { + "corr": 0.999999722, + "finite": true, + "max_abs": 0.00334109366, + "mean_abs": 8.5855404e-05, + "psnr_db": 97.27591, + "ref_absmax": 13.6912508, + "rel_max": 0.000244031295, + "scaled_max_abs": 0.000244031295 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 0.0244031295, + "status": "pass", + "tap": "net.layer3.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0515205535, + "index": 7, + "metrics": { + "corr": 0.999999649, + "finite": true, + "max_abs": 0.0042912066, + "mean_abs": 9.51070798e-05, + "psnr_db": 91.7208003, + "ref_absmax": 8.32911587, + "rel_max": 0.000515205535, + "scaled_max_abs": 0.000515205535 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 0.0515205535, + "status": "pass", + "tap": "net.layer3.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.117556982, + "index": 8, + "metrics": { + "corr": 0.999999304, + "finite": true, + "max_abs": 0.007178545, + "mean_abs": 6.1036483e-05, + "psnr_db": 89.2698291, + "ref_absmax": 6.10643864, + "rel_max": 0.00117556982, + "scaled_max_abs": 0.00117556982 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 0.117556982, + "status": "pass", + "tap": "net.layer4.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.121889732, + "index": 9, + "metrics": { + "corr": 0.999999557, + "finite": true, + "max_abs": 0.021623373, + "mean_abs": 0.00049812914, + "psnr_db": 84.290483, + "ref_absmax": 17.7401104, + "rel_max": 0.00121889732, + "scaled_max_abs": 0.00121889732 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 0.121889732, + "status": "pass", + "tap": "net.layer4.1" + }, + { + "band_limit": 0.01, + "band_ratio": 3499.54959, + "index": 10, + "metrics": { + "corr": 0.999999775, + "finite": true, + "max_abs": 381.717385, + "mean_abs": 18.5836569, + "psnr_db": -11.0820615, + "ref_absmax": 10.9076147, + "rel_max": 34.9954959, + "scaled_max_abs": 34.9954959 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/zoo.BakedMeanPool_avgpool;1" + }, + "per_op_band_ratio": 3499.54959, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "wide_range", + "index": 22 + } + }, + { + "band_limit": 0.01, + "band_ratio": 26.5085327, + "index": 11, + "metrics": { + "corr": 0.999996881, + "finite": true, + "max_abs": 6.12922096, + "mean_abs": 0.45262532, + "psnr_db": 35.246858, + "ref_absmax": 23.1216908, + "rel_max": 0.265085327, + "scaled_max_abs": 0.265085327 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "per_op_band_ratio": 26.5085327, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_limit": 0.01, + "band_ratio": 0.0479681862, + "metrics": { + "corr": 0.9999998, + "finite": true, + "max_abs": 0.0102748871, + "mean_abs": 0.00113285037, + "psnr_db": 87.5940613, + "ref_absmax": 21.4202118, + "rel_max": 0.000479681862, + "scaled_max_abs": 0.000479681862 + }, + "per_op_band_ratio": 0.0479681862, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 12, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 8.27203959e-06, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.2793459e-08, + "psnr_db": 164.013874, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "per_op_band_ratio": 8.27203959e-06, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0583793374, + "index": 1, + "metrics": { + "corr": 0.999999956, + "finite": true, + "max_abs": 0.00490903854, + "mean_abs": 7.63929271e-05, + "psnr_db": 93.8421926, + "ref_absmax": 8.40886307, + "rel_max": 0.000583793374, + "scaled_max_abs": 0.000583793374 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.MaxPool2d_maxpool;2" + }, + "per_op_band_ratio": 0.0583793374, + "status": "pass", + "tap": "net.maxpool" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0274063399, + "index": 2, + "metrics": { + "corr": 0.999999901, + "finite": true, + "max_abs": 0.00468415022, + "mean_abs": 0.000161921874, + "psnr_db": 95.5433913, + "ref_absmax": 17.0914841, + "rel_max": 0.000274063399, + "scaled_max_abs": 0.000274063399 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 0.0274063399, + "status": "pass", + "tap": "net.layer1.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0251223373, + "index": 3, + "metrics": { + "corr": 0.999999774, + "finite": true, + "max_abs": 0.00471332669, + "mean_abs": 0.000250456457, + "psnr_db": 91.9597734, + "ref_absmax": 18.7614975, + "rel_max": 0.000251223373, + "scaled_max_abs": 0.000251223373 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 0.0251223373, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0592551772, + "index": 4, + "metrics": { + "corr": 0.999999672, + "finite": true, + "max_abs": 0.00659561157, + "mean_abs": 0.000118937706, + "psnr_db": 92.4349706, + "ref_absmax": 11.1308613, + "rel_max": 0.000592551772, + "scaled_max_abs": 0.000592551772 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 0.0592551772, + "status": "pass", + "tap": "net.layer2.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0609826631, + "index": 5, + "metrics": { + "corr": 0.999999644, + "finite": true, + "max_abs": 0.00693821907, + "mean_abs": 0.000130281217, + "psnr_db": 92.2134029, + "ref_absmax": 11.3773632, + "rel_max": 0.000609826631, + "scaled_max_abs": 0.000609826631 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 0.0609826631, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0279544214, + "index": 6, + "metrics": { + "corr": 0.999999683, + "finite": true, + "max_abs": 0.00333499908, + "mean_abs": 8.74087713e-05, + "psnr_db": 95.9804734, + "ref_absmax": 11.930131, + "rel_max": 0.000279544214, + "scaled_max_abs": 0.000279544214 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 0.0279544214, + "status": "pass", + "tap": "net.layer3.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0620957223, + "index": 7, + "metrics": { + "corr": 0.999999592, + "finite": true, + "max_abs": 0.00431954861, + "mean_abs": 9.86995916e-05, + "psnr_db": 90.0056449, + "ref_absmax": 6.95627403, + "rel_max": 0.000620957223, + "scaled_max_abs": 0.000620957223 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 0.0620957223, + "status": "pass", + "tap": "net.layer3.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.15225034, + "index": 8, + "metrics": { + "corr": 0.999999218, + "finite": true, + "max_abs": 0.00736093521, + "mean_abs": 6.06419468e-05, + "psnr_db": 87.3266954, + "ref_absmax": 4.8347578, + "rel_max": 0.0015225034, + "scaled_max_abs": 0.0015225034 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 0.15225034, + "status": "pass", + "tap": "net.layer4.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0953705138, + "index": 9, + "metrics": { + "corr": 0.999999449, + "finite": true, + "max_abs": 0.0201879442, + "mean_abs": 0.000519985361, + "psnr_db": 85.3111292, + "ref_absmax": 21.1679096, + "rel_max": 0.000953705138, + "scaled_max_abs": 0.000953705138 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 0.0953705138, + "status": "pass", + "tap": "net.layer4.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0629439398, + "index": 10, + "metrics": { + "corr": 0.999999746, + "finite": true, + "max_abs": 0.00673961639, + "mean_abs": 0.00037416964, + "psnr_db": 83.9774555, + "ref_absmax": 10.7073317, + "rel_max": 0.000629439398, + "scaled_max_abs": 0.000629439398 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/zoo.BakedMeanPool_avgpool;;zoo.Source/torchvision.models.resnet.ResNet_net/zoo.BakedMeanPool_avgpool;1" + }, + "per_op_band_ratio": 0.0629439398, + "status": "pass", + "tap": "net.avgpool" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0479681862, + "index": 11, + "metrics": { + "corr": 0.9999998, + "finite": true, + "max_abs": 0.0102748871, + "mean_abs": 0.00113285037, + "psnr_db": 87.5940613, + "ref_absmax": 21.4202118, + "rel_max": 0.000479681862, + "scaled_max_abs": 0.000479681862 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "per_op_band_ratio": 0.0479681862, + "status": "pass", + "tap": "net.fc" + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp16", + "id": "resnet18__baked_shape__litert_fp16", + "model": "resnet18", + "path": "litert", + "variant": "baked_shape" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/resnet18__baked_shape__litert_fp32.json b/bench/verdicts_calibrated4/resnet18__baked_shape__litert_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..4a96bd869dd81f869f5a44ce4a041328b5bdcfce --- /dev/null +++ b/bench/verdicts_calibrated4/resnet18__baked_shape__litert_fp32.json @@ -0,0 +1,1382 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 0.00790268663, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.69277191e-05, + "mean_abs": 1.31826861e-06, + "psnr_db": 145.77134, + "ref_absmax": 21.420208, + "rel_max": 7.90268663e-07, + "scaled_max_abs": 7.90268663e-07 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 7, + "outputs": [ + "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models.res" + ] + }, + { + "inputs": 43, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 2, + "n_ops_total": 39, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "margin": { + "clear_margin": true, + "failing_shape": 192, + "locations_over_margin": [], + "margin": 0.707106781, + "n_locations": 13, + "nominal_output_band_ratio": 0.00534266043, + "nominal_output_judgeable": true, + "rule": "C4-2 (b1)", + "scope": "every gated location of the nominal shape", + "worst_location": { + "band_ratio": 0.0185079012, + "index": 7, + "location": "net.layer3.1" + } + }, + "status": "flag" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/zoo.BakedMeanPool_avgpool;1", + "basis": "nominal shape 224 inside band with a clear margin at every gated location (worst net.layer3.1 at ratio 0.0185 <= 0.7071); shape 192 over band", + "index": 10, + "neighbourhood": [ + { + "band_ratio": 0.0180089576, + "index": 9, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer4.1" + }, + { + "band_ratio": 349999.836, + "index": 10, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/zoo.BakedMeanPool_avgpool;1" + }, + "status": "fail", + "tap": "net.avgpool" + }, + { + "band_ratio": 2648.76376, + "index": 11, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.fc" + } + ], + "shape": 192, + "tap": "net.avgpool" + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "f338620c9f7966ee8ce7f39fc6fe13372f7557f8f3427f0b24795711b8156dbd", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "688080e91b21b7268b2d1d38c3895e9cf228b42212c011df252fb079d4ffb559", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "fp32 per-tap band on near-zero probes", + "reason": "C3-2: per-tap fp32 checks gate without the near_zero probes; they are measured and reported per tap ('ungated_probes'); the output gates on all probes. C4-1: when the output has failed and no gated tap fails, they localise the first divergence (earliest tap over band on all probes)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D6", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 2648.76376, + "metrics": { + "corr": 0.9999971, + "finite": true, + "max_abs": 6.12438965, + "mean_abs": 0.452429064, + "psnr_db": 35.2508717, + "ref_absmax": 23.1216908, + "rel_max": 0.264876376, + "scaled_max_abs": 0.264876376 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 10, + "n_judged": 12, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.06644368e-08, + "psnr_db": 164.113247, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.00112572895, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.38418579e-07, + "mean_abs": 4.66593688e-08, + "psnr_db": 130.397207, + "ref_absmax": 2.11790395, + "rel_max": 1.12572895e-07, + "scaled_max_abs": 1.12572895e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00645449252, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.96046448e-06, + "mean_abs": 1.10938487e-07, + "psnr_db": 152.355037, + "ref_absmax": 9.23459816, + "rel_max": 6.45449252e-07, + "scaled_max_abs": 6.45449252e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.MaxPool2d_maxpool;2" + }, + "status": "pass", + "tap": "net.maxpool", + "ungated_probes": { + "band_ratio": 0.00673134895, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-06, + "mean_abs": 1.13613737e-07, + "psnr_db": 141.814136, + "ref_absmax": 2.1251483, + "rel_max": 6.73134895e-07, + "scaled_max_abs": 6.73134895e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00659293132, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.04904175e-05, + "mean_abs": 2.76797242e-07, + "psnr_db": 150.327237, + "ref_absmax": 15.9116135, + "rel_max": 6.59293132e-07, + "scaled_max_abs": 6.59293132e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer1.0", + "ungated_probes": { + "band_ratio": 0.0159332416, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.7236681e-06, + "mean_abs": 4.39231993e-07, + "psnr_db": 133.714953, + "ref_absmax": 2.96466231, + "rel_max": 1.59332416e-06, + "scaled_max_abs": 1.59332416e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00760129794, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-05, + "mean_abs": 4.3881845e-07, + "psnr_db": 147.941588, + "ref_absmax": 18.8193054, + "rel_max": 7.60129794e-07, + "scaled_max_abs": 7.60129794e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer1.1", + "ungated_probes": { + "band_ratio": 0.0542455968, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.13384628e-05, + "mean_abs": 1.45986695e-06, + "psnr_db": 124.90685, + "ref_absmax": 3.93367648, + "rel_max": 5.42455968e-06, + "scaled_max_abs": 5.42455968e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00743807022, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.70227814e-06, + "mean_abs": 2.08361957e-07, + "psnr_db": 148.998972, + "ref_absmax": 11.699645, + "rel_max": 7.43807022e-07, + "scaled_max_abs": 7.43807022e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer2.0", + "ungated_probes": { + "band_ratio": 0.0452832923, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.257658e-05, + "mean_abs": 6.72263901e-07, + "psnr_db": 127.366784, + "ref_absmax": 2.77731133, + "rel_max": 4.52832923e-06, + "scaled_max_abs": 4.52832923e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00635868479, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.39097595e-06, + "mean_abs": 2.32858621e-07, + "psnr_db": 147.984134, + "ref_absmax": 11.623435, + "rel_max": 6.35868479e-07, + "scaled_max_abs": 6.35868479e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer2.1", + "ungated_probes": { + "band_ratio": 0.025440133, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.29938126e-05, + "mean_abs": 6.44654951e-07, + "psnr_db": 132.262737, + "ref_absmax": 5.10760403, + "rel_max": 2.5440133e-06, + "scaled_max_abs": 2.5440133e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00835868977, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.14440918e-05, + "mean_abs": 1.32668077e-07, + "psnr_db": 153.937558, + "ref_absmax": 13.6912508, + "rel_max": 8.35868977e-07, + "scaled_max_abs": 8.35868977e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer3.0", + "ungated_probes": { + "band_ratio": 0.0200272284, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.82148743e-06, + "mean_abs": 2.86842755e-07, + "psnr_db": 137.795591, + "ref_absmax": 4.40474701, + "rel_max": 2.00272284e-06, + "scaled_max_abs": 2.00272284e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0137398638, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.14440918e-05, + "mean_abs": 1.57584205e-07, + "psnr_db": 147.875315, + "ref_absmax": 8.32911587, + "rel_max": 1.37398638e-06, + "scaled_max_abs": 1.37398638e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer3.1", + "ungated_probes": { + "band_ratio": 0.0254933788, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.83476639e-06, + "mean_abs": 2.90260179e-07, + "psnr_db": 135.847165, + "ref_absmax": 3.85777283, + "rel_max": 2.54933788e-06, + "scaled_max_abs": 2.54933788e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0093705124, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.7220459e-06, + "mean_abs": 9.37541042e-08, + "psnr_db": 146.959324, + "ref_absmax": 6.10643864, + "rel_max": 9.3705124e-07, + "scaled_max_abs": 9.3705124e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer4.0", + "ungated_probes": { + "band_ratio": 0.0391439586, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.2552433e-06, + "mean_abs": 1.59796766e-07, + "psnr_db": 131.950164, + "ref_absmax": 2.10894442, + "rel_max": 3.91439586e-06, + "scaled_max_abs": 3.91439586e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0180089576, + "index": 9, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.19480896e-05, + "mean_abs": 8.41430526e-07, + "psnr_db": 140.19098, + "ref_absmax": 17.7401104, + "rel_max": 1.80089576e-06, + "scaled_max_abs": 1.80089576e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer4.1", + "ungated_probes": { + "band_ratio": 0.0258907294, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.0980835e-05, + "mean_abs": 4.58520137e-07, + "psnr_db": 135.358757, + "ref_absmax": 8.10360909, + "rel_max": 2.58907294e-06, + "scaled_max_abs": 2.58907294e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 349999.836, + "index": 10, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 381.766335, + "mean_abs": 20.5621387, + "psnr_db": -11.5361701, + "ref_absmax": 10.9076147, + "rel_max": 34.9999836, + "scaled_max_abs": 34.9999836 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/zoo.BakedMeanPool_avgpool;1" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 350000.254, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 204.935447, + "mean_abs": 4.75811052, + "psnr_db": -10.125296, + "ref_absmax": 5.85529423, + "rel_max": 35.0000254, + "scaled_max_abs": 35.0000254 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "wide_range", + "index": 22 + } + }, + { + "band_ratio": 2648.76376, + "index": 11, + "metrics": { + "corr": 0.999997363, + "finite": true, + "max_abs": 6.12438965, + "mean_abs": 0.478404013, + "psnr_db": 34.8303919, + "ref_absmax": 23.1216908, + "rel_max": 0.264876376, + "scaled_max_abs": 0.264876376 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.fc", + "ungated_probes": { + "band_ratio": 2635.3371, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999990438, + "finite": true, + "max_abs": 1.47806978, + "mean_abs": 0.270604421, + "psnr_db": 28.217725, + "ref_absmax": 5.60865545, + "rel_max": 0.26353371, + "scaled_max_abs": 0.26353371 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.00534266043, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.14440918e-05, + "mean_abs": 1.26083469e-06, + "psnr_db": 146.577169, + "ref_absmax": 21.4202118, + "rel_max": 5.34266043e-07, + "scaled_max_abs": 5.34266043e-07 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 12, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.08107465e-08, + "psnr_db": 164.245493, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.00112572895, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.38418579e-07, + "mean_abs": 4.66724468e-08, + "psnr_db": 130.436578, + "ref_absmax": 2.11790395, + "rel_max": 1.12572895e-07, + "scaled_max_abs": 1.12572895e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00623771454, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.24520874e-06, + "mean_abs": 1.06644131e-07, + "psnr_db": 152.000278, + "ref_absmax": 8.40886307, + "rel_max": 6.23771454e-07, + "scaled_max_abs": 6.23771454e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.MaxPool2d_maxpool;2" + }, + "status": "pass", + "tap": "net.maxpool", + "ungated_probes": { + "band_ratio": 0.00729666687, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.54972076e-06, + "mean_abs": 1.13617345e-07, + "psnr_db": 141.810399, + "ref_absmax": 2.1238749, + "rel_max": 7.29666687e-07, + "scaled_max_abs": 7.29666687e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00892771453, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.52587891e-05, + "mean_abs": 2.76290454e-07, + "psnr_db": 151.089531, + "ref_absmax": 17.0914841, + "rel_max": 8.92771453e-07, + "scaled_max_abs": 8.92771453e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer1.0", + "ungated_probes": { + "band_ratio": 0.0166910128, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.94718552e-06, + "mean_abs": 4.4247302e-07, + "psnr_db": 133.650346, + "ref_absmax": 2.96398163, + "rel_max": 1.66910128e-06, + "scaled_max_abs": 1.66910128e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00965797747, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.8119812e-05, + "mean_abs": 4.43970185e-07, + "psnr_db": 147.823488, + "ref_absmax": 18.7614975, + "rel_max": 9.65797747e-07, + "scaled_max_abs": 9.65797747e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer1.1", + "ungated_probes": { + "band_ratio": 0.0590532081, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.32458115e-05, + "mean_abs": 1.47861575e-06, + "psnr_db": 124.805612, + "ref_absmax": 3.93641806, + "rel_max": 5.90532081e-06, + "scaled_max_abs": 5.90532081e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00856783938, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-06, + "mean_abs": 2.11702523e-07, + "psnr_db": 148.365791, + "ref_absmax": 11.1308613, + "rel_max": 8.56783938e-07, + "scaled_max_abs": 8.56783938e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer2.0", + "ungated_probes": { + "band_ratio": 0.0419170828, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.16527081e-05, + "mean_abs": 6.78429001e-07, + "psnr_db": 127.302904, + "ref_absmax": 2.77994251, + "rel_max": 4.19170828e-06, + "scaled_max_abs": 4.19170828e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00880131902, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.00135803e-05, + "mean_abs": 2.35542557e-07, + "psnr_db": 147.570649, + "ref_absmax": 11.3773632, + "rel_max": 8.80131902e-07, + "scaled_max_abs": 8.80131902e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer2.1", + "ungated_probes": { + "band_ratio": 0.0260273841, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33216381e-05, + "mean_abs": 6.46717913e-07, + "psnr_db": 132.203977, + "ref_absmax": 5.11831617, + "rel_max": 2.60273841e-06, + "scaled_max_abs": 2.60273841e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0079938294, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-06, + "mean_abs": 1.35383347e-07, + "psnr_db": 152.516445, + "ref_absmax": 11.930131, + "rel_max": 7.9938294e-07, + "scaled_max_abs": 7.9938294e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer3.0", + "ungated_probes": { + "band_ratio": 0.0340740896, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.50203705e-05, + "mean_abs": 2.83523179e-07, + "psnr_db": 137.857746, + "ref_absmax": 4.4081502, + "rel_max": 3.40740896e-06, + "scaled_max_abs": 3.40740896e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0185079012, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.28746033e-05, + "mean_abs": 1.61410029e-07, + "psnr_db": 146.134532, + "ref_absmax": 6.95627403, + "rel_max": 1.85079012e-06, + "scaled_max_abs": 1.85079012e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer3.1", + "ungated_probes": { + "band_ratio": 0.0314673503, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.21593475e-05, + "mean_abs": 2.88037593e-07, + "psnr_db": 135.921122, + "ref_absmax": 3.86411548, + "rel_max": 3.14673503e-06, + "scaled_max_abs": 3.14673503e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0106023914, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.12599945e-06, + "mean_abs": 9.18378973e-08, + "psnr_db": 145.080615, + "ref_absmax": 4.8347578, + "rel_max": 1.06023914e-06, + "scaled_max_abs": 1.06023914e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer4.0", + "ungated_probes": { + "band_ratio": 0.039348373, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.34465027e-06, + "mean_abs": 1.56652073e-07, + "psnr_db": 131.993997, + "ref_absmax": 2.12071037, + "rel_max": 3.9348373e-06, + "scaled_max_abs": 3.9348373e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0144169069, + "index": 9, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.05175781e-05, + "mean_abs": 8.11505878e-07, + "psnr_db": 142.058081, + "ref_absmax": 21.1679096, + "rel_max": 1.44169069e-06, + "scaled_max_abs": 1.44169069e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer4.1", + "ungated_probes": { + "band_ratio": 0.0254560878, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.13384628e-05, + "mean_abs": 5.4595315e-07, + "psnr_db": 134.785056, + "ref_absmax": 8.38245964, + "rel_max": 2.54560878e-06, + "scaled_max_abs": 2.54560878e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00823873558, + "index": 10, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.82148743e-06, + "mean_abs": 4.51589127e-07, + "psnr_db": 142.600779, + "ref_absmax": 10.7073317, + "rel_max": 8.23873558e-07, + "scaled_max_abs": 8.23873558e-07 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/zoo.BakedMeanPool_avgpool;;zoo.Source/torchvision.models.resnet.ResNet_net/zoo.BakedMeanPool_avgpool;1" + }, + "status": "pass", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 0.00700521952, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.11272049e-06, + "mean_abs": 2.8953733e-07, + "psnr_db": 140.621209, + "ref_absmax": 5.87093735, + "rel_max": 7.00521952e-07, + "scaled_max_abs": 7.00521952e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00534266043, + "index": 11, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.14440918e-05, + "mean_abs": 1.3114639e-06, + "psnr_db": 146.259003, + "ref_absmax": 21.4202118, + "rel_max": 5.34266043e-07, + "scaled_max_abs": 5.34266043e-07 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "pass", + "tap": "net.fc", + "ungated_probes": { + "band_ratio": 0.00874508672, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.00679016e-06, + "mean_abs": 9.06430185e-07, + "psnr_db": 137.893889, + "ref_absmax": 5.72526073, + "rel_max": 8.74508672e-07, + "scaled_max_abs": 8.74508672e-07 + }, + "n_probes": 4 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp32", + "id": "resnet18__baked_shape__litert_fp32", + "model": "resnet18", + "path": "litert", + "variant": "baked_shape" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/resnet18__baked_shape__onnx_fp16.json b/bench/verdicts_calibrated4/resnet18__baked_shape__onnx_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..1156b8f84913d6699866bd4d04cf62005824c909 --- /dev/null +++ b/bench/verdicts_calibrated4/resnet18__baked_shape__onnx_fp16.json @@ -0,0 +1,959 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "baseline": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "faithful_output_rel_max": 0.00057913326, + "output_band": 0.01, + "source": { + "bundle": "bundles/resnet18__clean__onnx_fp16.json", + "case": "resnet18__clean__onnx_fp16", + "digests": { + "192": { + "converted": "4f79899b2d94647c7a27acca5e2e048d6822448df0daac039062b5f5ac153fb2", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "441b70243dcc6533ecfb651f068a5b92f6a087252f2b8a01eebcf8972fcb76c6", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + } + } + }, + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "margin": { + "clear_margin": true, + "failing_shape": 192, + "locations_over_margin": [], + "margin": 0.707106781, + "n_locations": 13, + "nominal_output_band_ratio": 0.0579099869, + "nominal_output_judgeable": true, + "rule": "C4-2 (b1)", + "scope": "every gated location of the nominal shape", + "worst_location": { + "band_ratio": 0.179190277, + "index": 8, + "location": "net.layer4.0" + } + }, + "status": "flag" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "/net/avgpool/Div_output_0", + "basis": "nominal shape 224 inside band with a clear margin at every gated location (worst net.layer4.0 at ratio 0.179 <= 0.7071); shape 192 over band", + "index": 10, + "neighbourhood": [ + { + "band_ratio": 0.158067242, + "index": 9, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer4.1" + }, + { + "band_ratio": 26.5134934, + "index": 10, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/Div_output_0" + }, + "status": "fail", + "tap": "net.avgpool" + }, + { + "band_ratio": 26.5080543, + "index": 11, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc" + } + ], + "shape": 192, + "tap": "net.avgpool" + }, + "fp16_floor": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "baseline": { + "bundle": "bundles/resnet18__clean__onnx_fp16.json", + "case": "resnet18__clean__onnx_fp16", + "digests": { + "192": { + "converted": "4f79899b2d94647c7a27acca5e2e048d6822448df0daac039062b5f5ac153fb2", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "441b70243dcc6533ecfb651f068a5b92f6a087252f2b8a01eebcf8972fcb76c6", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + } + }, + "envelopes_gate": true, + "faithful_output_rel_max": 0.00057913326, + "faithful_tap_rel_max": { + "net.avgpool": 0.000879095353, + "net.fc": 0.00057913326, + "net.layer1.0": 0.000506201414, + "net.layer1.1": 0.000535356941, + "net.layer2.0": 0.000613549091, + "net.layer2.1": 0.000629964887, + "net.layer3.0": 0.000475472973, + "net.layer3.1": 0.000795143564, + "net.layer4.0": 0.00179190277, + "net.layer4.1": 0.00158067242, + "net.maxpool": 0.000650593626, + "normalize": 0.000441313312 + }, + "floor": 0.01, + "k": 2.0, + "output_band": 0.01, + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used", + "tap_envelopes": { + "net.avgpool": 0.01, + "net.fc": 0.01, + "net.layer1.0": 0.01, + "net.layer1.1": 0.01, + "net.layer2.0": 0.01, + "net.layer2.1": 0.01, + "net.layer3.0": 0.01, + "net.layer3.1": 0.01, + "net.layer4.0": 0.01, + "net.layer4.1": 0.01, + "net.maxpool": 0.01, + "normalize": 0.01 + } + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "22cc4af7c8d987860a6c0dd07f6cbfbec17a36316a9637ff3a7d79fcc73f6fd2", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "d678f204714affed53bcccf299188d323c1fb076d31f679a4da375224ed21423", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D6", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_limit": 0.01, + "band_ratio": 26.5080543, + "metrics": { + "corr": 0.999996632, + "finite": true, + "max_abs": 6.12911034, + "mean_abs": 0.452623641, + "psnr_db": 35.2467709, + "ref_absmax": 23.1216908, + "rel_max": 0.265080543, + "scaled_max_abs": 0.265080543 + }, + "per_op_band_ratio": 26.5080543, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 10, + "n_judged": 12, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 0.0441313312, + "index": 0, + "metrics": { + "corr": 0.999999966, + "finite": true, + "max_abs": 0.00508785248, + "mean_abs": 0.000405953078, + "psnr_db": 88.0186903, + "ref_absmax": 11.5288897, + "rel_max": 0.000441313312, + "scaled_max_abs": 0.000441313312 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "per_op_band_ratio": 0.0441313312, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0640982743, + "index": 1, + "metrics": { + "corr": 0.999999909, + "finite": true, + "max_abs": 0.00591921806, + "mean_abs": 0.000156664105, + "psnr_db": 90.9101891, + "ref_absmax": 9.23459816, + "rel_max": 0.000640982743, + "scaled_max_abs": 0.000640982743 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/maxpool/MaxPool_output_0" + }, + "per_op_band_ratio": 0.0640982743, + "status": "pass", + "tap": "net.maxpool" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0384577671, + "index": 2, + "metrics": { + "corr": 0.999999849, + "finite": true, + "max_abs": 0.00611925125, + "mean_abs": 0.000234829637, + "psnr_db": 92.5526304, + "ref_absmax": 15.9116135, + "rel_max": 0.000384577671, + "scaled_max_abs": 0.000384577671 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.0/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 0.0384577671, + "status": "pass", + "tap": "net.layer1.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0524185506, + "index": 3, + "metrics": { + "corr": 0.999999705, + "finite": true, + "max_abs": 0.00986480713, + "mean_abs": 0.000332652643, + "psnr_db": 90.3693126, + "ref_absmax": 18.8193054, + "rel_max": 0.000524185506, + "scaled_max_abs": 0.000524185506 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.1/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 0.0524185506, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0613549091, + "index": 4, + "metrics": { + "corr": 0.999999522, + "finite": true, + "max_abs": 0.00717830658, + "mean_abs": 0.000162431505, + "psnr_db": 90.8349286, + "ref_absmax": 11.699645, + "rel_max": 0.000613549091, + "scaled_max_abs": 0.000613549091 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.0/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 0.0613549091, + "status": "pass", + "tap": "net.layer2.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0555682387, + "index": 5, + "metrics": { + "corr": 0.999999447, + "finite": true, + "max_abs": 0.00645893812, + "mean_abs": 0.000178505766, + "psnr_db": 90.0284719, + "ref_absmax": 11.623435, + "rel_max": 0.000555682387, + "scaled_max_abs": 0.000555682387 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.1/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 0.0555682387, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0408548376, + "index": 6, + "metrics": { + "corr": 0.999999446, + "finite": true, + "max_abs": 0.00559353828, + "mean_abs": 0.000124051904, + "psnr_db": 94.267843, + "ref_absmax": 13.6912508, + "rel_max": 0.000408548376, + "scaled_max_abs": 0.000408548376 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.0/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 0.0408548376, + "status": "pass", + "tap": "net.layer3.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0652819754, + "index": 7, + "metrics": { + "corr": 0.99999922, + "finite": true, + "max_abs": 0.00543741137, + "mean_abs": 0.000147396744, + "psnr_db": 88.2202678, + "ref_absmax": 8.32911587, + "rel_max": 0.000652819754, + "scaled_max_abs": 0.000652819754 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.1/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 0.0652819754, + "status": "pass", + "tap": "net.layer3.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.141629438, + "index": 8, + "metrics": { + "corr": 0.999998468, + "finite": true, + "max_abs": 0.00864851475, + "mean_abs": 9.56121682e-05, + "psnr_db": 85.8471326, + "ref_absmax": 6.10643864, + "rel_max": 0.00141629438, + "scaled_max_abs": 0.00141629438 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.0/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 0.141629438, + "status": "pass", + "tap": "net.layer4.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.158067242, + "index": 9, + "metrics": { + "corr": 0.999998786, + "finite": true, + "max_abs": 0.0280413032, + "mean_abs": 0.000834968418, + "psnr_db": 79.9927633, + "ref_absmax": 17.7401104, + "rel_max": 0.00158067242, + "scaled_max_abs": 0.00158067242 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.1/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 0.158067242, + "status": "pass", + "tap": "net.layer4.1" + }, + { + "band_limit": 0.01, + "band_ratio": 26.5134934, + "index": 10, + "metrics": { + "corr": 0.999999309, + "finite": true, + "max_abs": 2.89198971, + "mean_abs": 0.140948914, + "psnr_db": 31.3189234, + "ref_absmax": 10.9076147, + "rel_max": 0.265134934, + "scaled_max_abs": 0.265134934 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/Div_output_0" + }, + "per_op_band_ratio": 26.5134934, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "wide_range", + "index": 22 + } + }, + { + "band_limit": 0.01, + "band_ratio": 26.5080543, + "index": 11, + "metrics": { + "corr": 0.999996632, + "finite": true, + "max_abs": 6.12911034, + "mean_abs": 0.452623641, + "psnr_db": 35.2467709, + "ref_absmax": 23.1216908, + "rel_max": 0.265080543, + "scaled_max_abs": 0.265080543 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "per_op_band_ratio": 26.5080543, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_limit": 0.01, + "band_ratio": 0.0579099869, + "metrics": { + "corr": 0.999999426, + "finite": true, + "max_abs": 0.0124044418, + "mean_abs": 0.00191654657, + "psnr_db": 83.1427478, + "ref_absmax": 21.4202118, + "rel_max": 0.000579099869, + "scaled_max_abs": 0.000579099869 + }, + "per_op_band_ratio": 0.0579099869, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 12, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 0.0439328023, + "index": 0, + "metrics": { + "corr": 0.999999965, + "finite": true, + "max_abs": 0.00506496429, + "mean_abs": 0.000406712054, + "psnr_db": 88.0749992, + "ref_absmax": 11.5288897, + "rel_max": 0.000439328023, + "scaled_max_abs": 0.000439328023 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "per_op_band_ratio": 0.0439328023, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0650593626, + "index": 1, + "metrics": { + "corr": 0.999999901, + "finite": true, + "max_abs": 0.00547075272, + "mean_abs": 0.000153226313, + "psnr_db": 90.3189603, + "ref_absmax": 8.40886307, + "rel_max": 0.000650593626, + "scaled_max_abs": 0.000650593626 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/maxpool/MaxPool_output_0" + }, + "per_op_band_ratio": 0.0650593626, + "status": "pass", + "tap": "net.maxpool" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0506201414, + "index": 2, + "metrics": { + "corr": 0.999999831, + "finite": true, + "max_abs": 0.0086517334, + "mean_abs": 0.000236261028, + "psnr_db": 93.1783463, + "ref_absmax": 17.0914841, + "rel_max": 0.000506201414, + "scaled_max_abs": 0.000506201414 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.0/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 0.0506201414, + "status": "pass", + "tap": "net.layer1.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0535356941, + "index": 3, + "metrics": { + "corr": 0.999999662, + "finite": true, + "max_abs": 0.0100440979, + "mean_abs": 0.000337286326, + "psnr_db": 90.2185942, + "ref_absmax": 18.7614975, + "rel_max": 0.000535356941, + "scaled_max_abs": 0.000535356941 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.1/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 0.0535356941, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0610469266, + "index": 4, + "metrics": { + "corr": 0.999999468, + "finite": true, + "max_abs": 0.00679504871, + "mean_abs": 0.000164360102, + "psnr_db": 90.3342488, + "ref_absmax": 11.1308613, + "rel_max": 0.000610469266, + "scaled_max_abs": 0.000610469266 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.0/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 0.0610469266, + "status": "pass", + "tap": "net.layer2.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0629964887, + "index": 5, + "metrics": { + "corr": 0.999999391, + "finite": true, + "max_abs": 0.00716733932, + "mean_abs": 0.000177770421, + "psnr_db": 89.8777049, + "ref_absmax": 11.3773632, + "rel_max": 0.000629964887, + "scaled_max_abs": 0.000629964887 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.1/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 0.0629964887, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0475472973, + "index": 6, + "metrics": { + "corr": 0.999999383, + "finite": true, + "max_abs": 0.00567245483, + "mean_abs": 0.000124959044, + "psnr_db": 93.0830986, + "ref_absmax": 11.930131, + "rel_max": 0.000475472973, + "scaled_max_abs": 0.000475472973 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.0/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 0.0475472973, + "status": "pass", + "tap": "net.layer3.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0795143564, + "index": 7, + "metrics": { + "corr": 0.999999133, + "finite": true, + "max_abs": 0.00553123653, + "mean_abs": 0.000148407515, + "psnr_db": 86.7217411, + "ref_absmax": 6.95627403, + "rel_max": 0.000795143564, + "scaled_max_abs": 0.000795143564 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.1/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 0.0795143564, + "status": "pass", + "tap": "net.layer3.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.179190277, + "index": 8, + "metrics": { + "corr": 0.999998311, + "finite": true, + "max_abs": 0.00866341591, + "mean_abs": 9.38812919e-05, + "psnr_db": 83.9777606, + "ref_absmax": 4.8347578, + "rel_max": 0.00179190277, + "scaled_max_abs": 0.00179190277 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.0/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 0.179190277, + "status": "pass", + "tap": "net.layer4.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.131329292, + "index": 9, + "metrics": { + "corr": 0.999998568, + "finite": true, + "max_abs": 0.0277996659, + "mean_abs": 0.000860812905, + "psnr_db": 81.1920091, + "ref_absmax": 21.1679096, + "rel_max": 0.00131329292, + "scaled_max_abs": 0.00131329292 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.1/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 0.131329292, + "status": "pass", + "tap": "net.layer4.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0879095353, + "index": 10, + "metrics": { + "corr": 0.999999265, + "finite": true, + "max_abs": 0.0094127655, + "mean_abs": 0.000650968439, + "psnr_db": 79.4555287, + "ref_absmax": 10.7073317, + "rel_max": 0.000879095353, + "scaled_max_abs": 0.000879095353 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/Div_output_0" + }, + "per_op_band_ratio": 0.0879095353, + "status": "pass", + "tap": "net.avgpool" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0579099869, + "index": 11, + "metrics": { + "corr": 0.999999426, + "finite": true, + "max_abs": 0.0124044418, + "mean_abs": 0.00191654657, + "psnr_db": 83.1427478, + "ref_absmax": 21.4202118, + "rel_max": 0.000579099869, + "scaled_max_abs": 0.000579099869 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "per_op_band_ratio": 0.0579099869, + "status": "pass", + "tap": "net.fc" + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp16", + "id": "resnet18__baked_shape__onnx_fp16", + "model": "resnet18", + "path": "onnx", + "variant": "baked_shape" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/resnet18__baked_shape__onnx_fp32.json b/bench/verdicts_calibrated4/resnet18__baked_shape__onnx_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..2563d804b75bc37c294abd7c0751755909719e69 --- /dev/null +++ b/bench/verdicts_calibrated4/resnet18__baked_shape__onnx_fp32.json @@ -0,0 +1,1251 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "margin": { + "clear_margin": true, + "failing_shape": 192, + "locations_over_margin": [], + "margin": 0.707106781, + "n_locations": 13, + "nominal_output_band_ratio": 0.00623310384, + "nominal_output_judgeable": true, + "rule": "C4-2 (b1)", + "scope": "every gated location of the nominal shape", + "worst_location": { + "band_ratio": 0.015423251, + "index": 7, + "location": "net.layer3.1" + } + }, + "status": "flag" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "/net/avgpool/Div_output_0", + "basis": "nominal shape 224 inside band with a clear margin at every gated location (worst net.layer3.1 at ratio 0.0154 <= 0.7071); shape 192 over band", + "index": 10, + "neighbourhood": [ + { + "band_ratio": 0.0166650055, + "index": 9, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer4.1" + }, + { + "band_ratio": 2653.05951, + "index": 10, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/Div_output_0" + }, + "status": "fail", + "tap": "net.avgpool" + }, + { + "band_ratio": 2648.76458, + "index": 11, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc" + } + ], + "shape": 192, + "tap": "net.avgpool" + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "2c456550ada7acba39a722d86ba9d95a0b7c50148e08e39fbedd5576d56e2c5d", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "c1a041662a9117ab3513a057e297992727dc4f7be1425c750cf3dd00262964ae", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "fp32 per-tap band on near-zero probes", + "reason": "C3-2: per-tap fp32 checks gate without the near_zero probes; they are measured and reported per tap ('ungated_probes'); the output gates on all probes. C4-1: when the output has failed and no gated tap fails, they localise the first divergence (earliest tap over band on all probes)" + }, + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D6", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 2648.76458, + "metrics": { + "corr": 0.9999971, + "finite": true, + "max_abs": 6.12439156, + "mean_abs": 0.45242878, + "psnr_db": 35.2508779, + "ref_absmax": 23.1216908, + "rel_max": 0.264876458, + "scaled_max_abs": 0.264876458 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 10, + "n_judged": 12, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.0, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 11.5288897, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.0, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 2.11790395, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00645449252, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.96046448e-06, + "mean_abs": 1.03648297e-07, + "psnr_db": 152.802431, + "ref_absmax": 9.23459816, + "rel_max": 6.45449252e-07, + "scaled_max_abs": 6.45449252e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/maxpool/MaxPool_output_0" + }, + "status": "pass", + "tap": "net.maxpool", + "ungated_probes": { + "band_ratio": 0.00701182182, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.49011612e-06, + "mean_abs": 9.31340386e-08, + "psnr_db": 142.770503, + "ref_absmax": 2.1251483, + "rel_max": 7.01182182e-07, + "scaled_max_abs": 7.01182182e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00599357393, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-06, + "mean_abs": 2.28623993e-07, + "psnr_db": 151.909626, + "ref_absmax": 15.9116135, + "rel_max": 5.99357393e-07, + "scaled_max_abs": 5.99357393e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer1.0", + "ungated_probes": { + "band_ratio": 0.0104546191, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.09944153e-06, + "mean_abs": 3.41602528e-07, + "psnr_db": 135.958902, + "ref_absmax": 2.96466231, + "rel_max": 1.04546191e-06, + "scaled_max_abs": 1.04546191e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00785467453, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.47819519e-05, + "mean_abs": 3.5602081e-07, + "psnr_db": 149.65463, + "ref_absmax": 18.8193054, + "rel_max": 7.85467453e-07, + "scaled_max_abs": 7.85467453e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer1.1", + "ungated_probes": { + "band_ratio": 0.0506847825, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.99377537e-05, + "mean_abs": 1.18350056e-06, + "psnr_db": 126.723322, + "ref_absmax": 3.93367648, + "rel_max": 5.06847825e-06, + "scaled_max_abs": 5.06847825e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00703050473, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.22544098e-06, + "mean_abs": 1.68181236e-07, + "psnr_db": 150.833466, + "ref_absmax": 11.699645, + "rel_max": 7.03050473e-07, + "scaled_max_abs": 7.03050473e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer2.0", + "ungated_probes": { + "band_ratio": 0.0344453479, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.56654549e-06, + "mean_abs": 5.28147274e-07, + "psnr_db": 129.430246, + "ref_absmax": 2.77731133, + "rel_max": 3.44453479e-06, + "scaled_max_abs": 3.44453479e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00635868479, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.39097595e-06, + "mean_abs": 1.87650168e-07, + "psnr_db": 149.83625, + "ref_absmax": 11.623435, + "rel_max": 6.35868479e-07, + "scaled_max_abs": 6.35868479e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer2.1", + "ungated_probes": { + "band_ratio": 0.024564899, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.25467777e-05, + "mean_abs": 4.99122864e-07, + "psnr_db": 134.432516, + "ref_absmax": 5.10760403, + "rel_max": 2.4564899e-06, + "scaled_max_abs": 2.4564899e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00696557481, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-06, + "mean_abs": 1.0565963e-07, + "psnr_db": 155.913392, + "ref_absmax": 13.6912508, + "rel_max": 6.96557481e-07, + "scaled_max_abs": 6.96557481e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer3.0", + "ungated_probes": { + "band_ratio": 0.0167795697, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.39097595e-06, + "mean_abs": 2.18991145e-07, + "psnr_db": 140.166624, + "ref_absmax": 4.40474701, + "rel_max": 1.67795697e-06, + "scaled_max_abs": 1.67795697e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0135967403, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.13248825e-05, + "mean_abs": 1.25842787e-07, + "psnr_db": 149.742917, + "ref_absmax": 8.32911587, + "rel_max": 1.35967403e-06, + "scaled_max_abs": 1.35967403e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer3.1", + "ungated_probes": { + "band_ratio": 0.0222487669, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.58306885e-06, + "mean_abs": 2.21315161e-07, + "psnr_db": 138.237007, + "ref_absmax": 3.85777283, + "rel_max": 2.22487669e-06, + "scaled_max_abs": 2.22487669e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00780876034, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 7.57780122e-08, + "psnr_db": 148.743144, + "ref_absmax": 6.10643864, + "rel_max": 7.80876034e-07, + "scaled_max_abs": 7.80876034e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer4.0", + "ungated_probes": { + "band_ratio": 0.0329261457, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.94394112e-06, + "mean_abs": 1.22103744e-07, + "psnr_db": 134.365311, + "ref_absmax": 2.10894442, + "rel_max": 3.29261457e-06, + "scaled_max_abs": 3.29261457e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0166650055, + "index": 9, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.95639038e-05, + "mean_abs": 6.72978724e-07, + "psnr_db": 142.2235, + "ref_absmax": 17.7401104, + "rel_max": 1.66650055e-06, + "scaled_max_abs": 1.66650055e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer4.1", + "ungated_probes": { + "band_ratio": 0.0167701315, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.3589859e-05, + "mean_abs": 3.47767329e-07, + "psnr_db": 137.798495, + "ref_absmax": 8.10360909, + "rel_max": 1.67701315e-06, + "scaled_max_abs": 1.67701315e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 2653.05951, + "index": 10, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.89385509, + "mean_abs": 0.155864636, + "psnr_db": 30.8702441, + "ref_absmax": 10.9076147, + "rel_max": 0.265305951, + "scaled_max_abs": 0.265305951 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/Div_output_0" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 2653.05785, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.55344343, + "mean_abs": 0.0360673278, + "psnr_db": 32.2811165, + "ref_absmax": 5.85529423, + "rel_max": 0.265305785, + "scaled_max_abs": 0.265305785 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "wide_range", + "index": 22 + } + }, + { + "band_ratio": 2648.76458, + "index": 11, + "metrics": { + "corr": 0.999997363, + "finite": true, + "max_abs": 6.12439156, + "mean_abs": 0.478403704, + "psnr_db": 34.8303981, + "ref_absmax": 23.1216908, + "rel_max": 0.264876458, + "scaled_max_abs": 0.264876458 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc", + "ungated_probes": { + "band_ratio": 2635.33455, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999990438, + "finite": true, + "max_abs": 1.47806835, + "mean_abs": 0.270604313, + "psnr_db": 28.2177288, + "ref_absmax": 5.60865545, + "rel_max": 0.263533455, + "scaled_max_abs": 0.263533455 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.00623310384, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33514404e-05, + "mean_abs": 1.17591019e-06, + "psnr_db": 146.883012, + "ref_absmax": 21.4202118, + "rel_max": 6.23310384e-07, + "scaled_max_abs": 6.23310384e-07 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 12, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.0, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 11.5288897, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.0, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 2.11790395, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0068047795, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.7220459e-06, + "mean_abs": 9.92709198e-08, + "psnr_db": 152.4428, + "ref_absmax": 8.40886307, + "rel_max": 6.8047795e-07, + "scaled_max_abs": 6.8047795e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/maxpool/MaxPool_output_0" + }, + "status": "pass", + "tap": "net.maxpool", + "ungated_probes": { + "band_ratio": 0.00701602584, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.49011612e-06, + "mean_abs": 9.30897618e-08, + "psnr_db": 142.752775, + "ref_absmax": 2.1238749, + "rel_max": 7.01602584e-07, + "scaled_max_abs": 7.01602584e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00781175021, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33514404e-05, + "mean_abs": 2.25790913e-07, + "psnr_db": 152.750581, + "ref_absmax": 17.0914841, + "rel_max": 7.81175021e-07, + "scaled_max_abs": 7.81175021e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer1.0", + "ungated_probes": { + "band_ratio": 0.0117641475, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.48687172e-06, + "mean_abs": 3.42795438e-07, + "psnr_db": 135.932253, + "ref_absmax": 2.96398163, + "rel_max": 1.17641475e-06, + "scaled_max_abs": 1.17641475e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00914966287, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.71661377e-05, + "mean_abs": 3.56863543e-07, + "psnr_db": 149.674124, + "ref_absmax": 18.7614975, + "rel_max": 9.14966287e-07, + "scaled_max_abs": 9.14966287e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer1.1", + "ungated_probes": { + "band_ratio": 0.0502709361, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.97887421e-05, + "mean_abs": 1.19605396e-06, + "psnr_db": 126.659021, + "ref_absmax": 3.93641806, + "rel_max": 5.02709361e-06, + "scaled_max_abs": 5.02709361e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00642587954, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.15255737e-06, + "mean_abs": 1.70434883e-07, + "psnr_db": 150.271873, + "ref_absmax": 11.1308613, + "rel_max": 6.42587954e-07, + "scaled_max_abs": 6.42587954e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer2.0", + "ungated_probes": { + "band_ratio": 0.0439807755, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.22264028e-05, + "mean_abs": 5.2606399e-07, + "psnr_db": 129.494095, + "ref_absmax": 2.77994251, + "rel_max": 4.39807755e-06, + "scaled_max_abs": 4.39807755e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00670576688, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.62939453e-06, + "mean_abs": 1.88401909e-07, + "psnr_db": 149.546272, + "ref_absmax": 11.3773632, + "rel_max": 6.70576688e-07, + "scaled_max_abs": 6.70576688e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer2.1", + "ungated_probes": { + "band_ratio": 0.0258818171, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.32471323e-05, + "mean_abs": 4.93638685e-07, + "psnr_db": 134.503181, + "ref_absmax": 5.11831617, + "rel_max": 2.58818171e-06, + "scaled_max_abs": 2.58818171e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00559568058, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.67572021e-06, + "mean_abs": 1.07205076e-07, + "psnr_db": 154.591684, + "ref_absmax": 11.930131, + "rel_max": 5.59568058e-07, + "scaled_max_abs": 5.59568058e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer3.0", + "ungated_probes": { + "band_ratio": 0.0156848984, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.91413879e-06, + "mean_abs": 2.1738138e-07, + "psnr_db": 140.237236, + "ref_absmax": 4.4081502, + "rel_max": 1.56848984e-06, + "scaled_max_abs": 1.56848984e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.015423251, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.07288361e-05, + "mean_abs": 1.2900221e-07, + "psnr_db": 148.038478, + "ref_absmax": 6.95627403, + "rel_max": 1.5423251e-06, + "scaled_max_abs": 1.5423251e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer3.1", + "ungated_probes": { + "band_ratio": 0.0217494921, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.40425491e-06, + "mean_abs": 2.26300265e-07, + "psnr_db": 138.00117, + "ref_absmax": 3.86411548, + "rel_max": 2.17494921e-06, + "scaled_max_abs": 2.17494921e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00881477889, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.2617321e-06, + "mean_abs": 7.52994362e-08, + "psnr_db": 146.716468, + "ref_absmax": 4.8347578, + "rel_max": 8.81477889e-07, + "scaled_max_abs": 8.81477889e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer4.0", + "ungated_probes": { + "band_ratio": 0.0399104926, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.46385956e-06, + "mean_abs": 1.23341699e-07, + "psnr_db": 134.054085, + "ref_absmax": 2.12071037, + "rel_max": 3.99104926e-06, + "scaled_max_abs": 3.99104926e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0117137368, + "index": 9, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.47955322e-05, + "mean_abs": 6.80852735e-07, + "psnr_db": 143.465601, + "ref_absmax": 21.1679096, + "rel_max": 1.17137368e-06, + "scaled_max_abs": 1.17137368e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer4.1", + "ungated_probes": { + "band_ratio": 0.0187720871, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.57356262e-05, + "mean_abs": 4.35400728e-07, + "psnr_db": 136.707345, + "ref_absmax": 8.38245964, + "rel_max": 1.87720871e-06, + "scaled_max_abs": 1.87720871e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00734806146, + "index": 10, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.86781311e-06, + "mean_abs": 3.84933269e-07, + "psnr_db": 143.526723, + "ref_absmax": 10.7073317, + "rel_max": 7.34806146e-07, + "scaled_max_abs": 7.34806146e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/Div_output_0" + }, + "status": "pass", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 0.00730979428, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.29153442e-06, + "mean_abs": 2.37088551e-07, + "psnr_db": 141.909868, + "ref_absmax": 5.87093735, + "rel_max": 7.30979428e-07, + "scaled_max_abs": 7.30979428e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00623310384, + "index": 11, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33514404e-05, + "mean_abs": 1.22593924e-06, + "psnr_db": 146.547724, + "ref_absmax": 21.4202118, + "rel_max": 6.23310384e-07, + "scaled_max_abs": 6.23310384e-07 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "pass", + "tap": "net.fc", + "ungated_probes": { + "band_ratio": 0.0108272502, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.19888306e-06, + "mean_abs": 8.25706869e-07, + "psnr_db": 138.485067, + "ref_absmax": 5.72526073, + "rel_max": 1.08272502e-06, + "scaled_max_abs": 1.08272502e-06 + }, + "n_probes": 4 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp32", + "id": "resnet18__baked_shape__onnx_fp32", + "model": "resnet18", + "path": "onnx", + "variant": "baked_shape" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/resnet18__clean__coreml_fp16.json b/bench/verdicts_calibrated4/resnet18__clean__coreml_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..649dac0e5b270fa341210ae4b9dfc7a59b48682f --- /dev/null +++ b/bench/verdicts_calibrated4/resnet18__clean__coreml_fp16.json @@ -0,0 +1,890 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "baseline": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "faithful_output_rel_max": 0.00652165202, + "output_band": 0.013043304, + "source": { + "bundle": "bundles/resnet18__clean__coreml_fp16.json", + "case": "resnet18__clean__coreml_fp16", + "digests": { + "192": { + "converted": "d6e8f11106d7868c4acdddd4c89bb934bd08cc14049682fea972c885765295e4", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "aa676247fae9c779d0ab1c7cd4fb20d3d1c91b615ff304ed67889a259a1af32e", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + } + } + }, + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": false, + "note": null, + "status": "clear" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [ + "inputs[0]: dtype float16 (declared float32)", + "outputs[0]: dtype float16 (declared float32)" + ], + "status": "precision_narrowing" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "status": "clear" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp16", + "first_divergence": null, + "fp16_floor": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "baseline": { + "bundle": "bundles/resnet18__clean__coreml_fp16.json", + "case": "resnet18__clean__coreml_fp16", + "digests": { + "192": { + "converted": "d6e8f11106d7868c4acdddd4c89bb934bd08cc14049682fea972c885765295e4", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "aa676247fae9c779d0ab1c7cd4fb20d3d1c91b615ff304ed67889a259a1af32e", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + } + }, + "envelopes_gate": true, + "faithful_output_rel_max": 0.00652165202, + "faithful_tap_rel_max": { + "net.avgpool": 0.00870158006, + "net.fc": 0.00652165202, + "net.layer1.0": 0.00480211137, + "net.layer1.1": 0.0048244139, + "net.layer2.0": 0.00485763828, + "net.layer2.1": 0.00605789942, + "net.layer3.0": 0.00577717049, + "net.layer3.1": 0.0171483417, + "net.layer4.0": 0.0243476768, + "net.layer4.1": 0.014049191, + "net.maxpool": 0.00459322342, + "normalize": 0.00117570499 + }, + "floor": 0.01, + "k": 2.0, + "output_band": 0.013043304, + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used", + "tap_envelopes": { + "net.avgpool": 0.0174031601, + "net.fc": 0.013043304, + "net.layer1.0": 0.01, + "net.layer1.1": 0.01, + "net.layer2.0": 0.01, + "net.layer2.1": 0.0121157988, + "net.layer3.0": 0.011554341, + "net.layer3.1": 0.0342966833, + "net.layer4.0": 0.0486953535, + "net.layer4.1": 0.028098382, + "net.maxpool": 0.01, + "normalize": 0.01 + } + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "d6e8f11106d7868c4acdddd4c89bb934bd08cc14049682fea972c885765295e4", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "aa676247fae9c779d0ab1c7cd4fb20d3d1c91b615ff304ed67889a259a1af32e", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": null, + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_limit": 0.013043304, + "band_ratio": 0.403506339, + "metrics": { + "corr": 0.999974293, + "finite": true, + "max_abs": 0.12169075, + "mean_abs": 0.0123914789, + "psnr_db": 66.5600825, + "ref_absmax": 23.1216908, + "rel_max": 0.00526305587, + "scaled_max_abs": 0.00526305587 + }, + "per_op_band_ratio": 0.526305587, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 12, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 0.117570499, + "index": 0, + "metrics": { + "corr": 0.999999914, + "finite": true, + "max_abs": 0.0135545731, + "mean_abs": 0.000674526699, + "psnr_db": 83.5827466, + "ref_absmax": 11.5288897, + "rel_max": 0.00117570499, + "scaled_max_abs": 0.00117570499 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "per_op_band_ratio": 0.117570499, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 0.459322342, + "index": 1, + "metrics": { + "corr": 0.999996447, + "finite": true, + "max_abs": 0.0424165726, + "mean_abs": 0.000952223367, + "psnr_db": 75.0364552, + "ref_absmax": 9.23459816, + "rel_max": 0.00459322342, + "scaled_max_abs": 0.00459322342 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_9_cast_fp16" + }, + "per_op_band_ratio": 0.459322342, + "status": "pass", + "tap": "net.maxpool" + }, + { + "band_limit": 0.01, + "band_ratio": 0.480211137, + "index": 2, + "metrics": { + "corr": 0.99998717, + "finite": true, + "max_abs": 0.0764093399, + "mean_abs": 0.00215436701, + "psnr_db": 73.3099338, + "ref_absmax": 15.9116135, + "rel_max": 0.00480211137, + "scaled_max_abs": 0.00480211137 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_21_cast_fp16" + }, + "per_op_band_ratio": 0.480211137, + "status": "pass", + "tap": "net.layer1.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.441904939, + "index": 3, + "metrics": { + "corr": 0.999962955, + "finite": true, + "max_abs": 0.0831634402, + "mean_abs": 0.0038022016, + "psnr_db": 69.3862926, + "ref_absmax": 18.8193054, + "rel_max": 0.00441904939, + "scaled_max_abs": 0.00441904939 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_33_cast_fp16" + }, + "per_op_band_ratio": 0.441904939, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.482464821, + "index": 4, + "metrics": { + "corr": 0.999939928, + "finite": true, + "max_abs": 0.0564466715, + "mean_abs": 0.00186217433, + "psnr_db": 69.8477445, + "ref_absmax": 11.699645, + "rel_max": 0.00482464821, + "scaled_max_abs": 0.00482464821 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_47_cast_fp16" + }, + "per_op_band_ratio": 0.482464821, + "status": "pass", + "tap": "net.layer2.0" + }, + { + "band_limit": 0.0121157988, + "band_ratio": 0.48685367, + "index": 5, + "metrics": { + "corr": 0.999930102, + "finite": true, + "max_abs": 0.0685622394, + "mean_abs": 0.00200145403, + "psnr_db": 69.0183736, + "ref_absmax": 11.623435, + "rel_max": 0.00589862113, + "scaled_max_abs": 0.00589862113 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59_cast_fp16" + }, + "per_op_band_ratio": 0.589862113, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_limit": 0.011554341, + "band_ratio": 0.34500175, + "index": 6, + "metrics": { + "corr": 0.999943674, + "finite": true, + "max_abs": 0.054576993, + "mean_abs": 0.00120694028, + "psnr_db": 74.2042645, + "ref_absmax": 13.6912508, + "rel_max": 0.00398626786, + "scaled_max_abs": 0.00398626786 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_73_cast_fp16" + }, + "per_op_band_ratio": 0.398626786, + "status": "pass", + "tap": "net.layer3.0" + }, + { + "band_limit": 0.0342966833, + "band_ratio": 0.352596193, + "index": 7, + "metrics": { + "corr": 0.999914514, + "finite": true, + "max_abs": 0.100722998, + "mean_abs": 0.00143564133, + "psnr_db": 67.8457217, + "ref_absmax": 8.32911587, + "rel_max": 0.01209288, + "scaled_max_abs": 0.01209288 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85_cast_fp16" + }, + "per_op_band_ratio": 1.209288, + "status": "pass", + "tap": "net.layer3.1" + }, + { + "band_limit": 0.0486953535, + "band_ratio": 0.423383838, + "index": 8, + "metrics": { + "corr": 0.999844894, + "finite": true, + "max_abs": 0.125895381, + "mean_abs": 0.000886009569, + "psnr_db": 65.7722773, + "ref_absmax": 6.10643864, + "rel_max": 0.0206168257, + "scaled_max_abs": 0.0206168257 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_99_cast_fp16" + }, + "per_op_band_ratio": 2.06168257, + "status": "pass", + "tap": "net.layer4.0" + }, + { + "band_limit": 0.028098382, + "band_ratio": 0.5, + "index": 9, + "metrics": { + "corr": 0.999917714, + "finite": true, + "max_abs": 0.2492342, + "mean_abs": 0.00654935488, + "psnr_db": 61.7269115, + "ref_absmax": 17.7401104, + "rel_max": 0.014049191, + "scaled_max_abs": 0.014049191 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_111_cast_fp16" + }, + "per_op_band_ratio": 1.4049191, + "status": "pass", + "tap": "net.layer4.1" + }, + { + "band_limit": 0.0174031601, + "band_ratio": 0.5, + "index": 10, + "metrics": { + "corr": 0.999970902, + "finite": true, + "max_abs": 0.0949134827, + "mean_abs": 0.00389845734, + "psnr_db": 63.2187815, + "ref_absmax": 10.9076147, + "rel_max": 0.00870158006, + "scaled_max_abs": 0.00870158006 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "per_op_band_ratio": 0.870158006, + "status": "pass", + "tap": "net.avgpool" + }, + { + "band_limit": 0.013043304, + "band_ratio": 0.403506339, + "index": 11, + "metrics": { + "corr": 0.999974293, + "finite": true, + "max_abs": 0.12169075, + "mean_abs": 0.0123914789, + "psnr_db": 66.5600825, + "ref_absmax": 23.1216908, + "rel_max": 0.00526305587, + "scaled_max_abs": 0.00526305587 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "per_op_band_ratio": 0.526305587, + "status": "pass", + "tap": "net.fc" + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_limit": 0.013043304, + "band_ratio": 0.5, + "metrics": { + "corr": 0.999976106, + "finite": true, + "max_abs": 0.139695168, + "mean_abs": 0.01166934, + "psnr_db": 66.9644292, + "ref_absmax": 21.4202118, + "rel_max": 0.00652165202, + "scaled_max_abs": 0.00652165202 + }, + "per_op_band_ratio": 0.652165202, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 12, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 0.116213884, + "index": 0, + "metrics": { + "corr": 0.999999912, + "finite": true, + "max_abs": 0.0133981705, + "mean_abs": 0.000679588388, + "psnr_db": 83.6184843, + "ref_absmax": 11.5288897, + "rel_max": 0.00116213884, + "scaled_max_abs": 0.00116213884 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "per_op_band_ratio": 0.116213884, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 0.430958027, + "index": 1, + "metrics": { + "corr": 0.999996278, + "finite": true, + "max_abs": 0.0362386703, + "mean_abs": 0.000924325333, + "psnr_db": 74.6037105, + "ref_absmax": 8.40886307, + "rel_max": 0.00430958027, + "scaled_max_abs": 0.00430958027 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_9_cast_fp16" + }, + "per_op_band_ratio": 0.430958027, + "status": "pass", + "tap": "net.maxpool" + }, + { + "band_limit": 0.01, + "band_ratio": 0.384801236, + "index": 2, + "metrics": { + "corr": 0.999985791, + "finite": true, + "max_abs": 0.0657682419, + "mean_abs": 0.00216025527, + "psnr_db": 73.9813907, + "ref_absmax": 17.0914841, + "rel_max": 0.00384801236, + "scaled_max_abs": 0.00384801236 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_21_cast_fp16" + }, + "per_op_band_ratio": 0.384801236, + "status": "pass", + "tap": "net.layer1.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.48244139, + "index": 3, + "metrics": { + "corr": 0.999957868, + "finite": true, + "max_abs": 0.0905132294, + "mean_abs": 0.003858105, + "psnr_db": 69.2665621, + "ref_absmax": 18.7614975, + "rel_max": 0.0048244139, + "scaled_max_abs": 0.0048244139 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_33_cast_fp16" + }, + "per_op_band_ratio": 0.48244139, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.485763828, + "index": 4, + "metrics": { + "corr": 0.999932954, + "finite": true, + "max_abs": 0.0540696979, + "mean_abs": 0.00188201915, + "psnr_db": 69.3375532, + "ref_absmax": 11.1308613, + "rel_max": 0.00485763828, + "scaled_max_abs": 0.00485763828 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_47_cast_fp16" + }, + "per_op_band_ratio": 0.485763828, + "status": "pass", + "tap": "net.layer2.0" + }, + { + "band_limit": 0.0121157988, + "band_ratio": 0.5, + "index": 5, + "metrics": { + "corr": 0.999922136, + "finite": true, + "max_abs": 0.068922922, + "mean_abs": 0.0019962136, + "psnr_db": 68.8164661, + "ref_absmax": 11.3773632, + "rel_max": 0.00605789942, + "scaled_max_abs": 0.00605789942 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59_cast_fp16" + }, + "per_op_band_ratio": 0.605789942, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_limit": 0.011554341, + "band_ratio": 0.5, + "index": 6, + "metrics": { + "corr": 0.999937803, + "finite": true, + "max_abs": 0.0689224005, + "mean_abs": 0.00120167353, + "psnr_db": 73.0529363, + "ref_absmax": 11.930131, + "rel_max": 0.00577717049, + "scaled_max_abs": 0.00577717049 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_73_cast_fp16" + }, + "per_op_band_ratio": 0.577717049, + "status": "pass", + "tap": "net.layer3.0" + }, + { + "band_limit": 0.0342966833, + "band_ratio": 0.5, + "index": 7, + "metrics": { + "corr": 0.999901973, + "finite": true, + "max_abs": 0.119288564, + "mean_abs": 0.00145777084, + "psnr_db": 66.2038957, + "ref_absmax": 6.95627403, + "rel_max": 0.0171483417, + "scaled_max_abs": 0.0171483417 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85_cast_fp16" + }, + "per_op_band_ratio": 1.71483417, + "status": "pass", + "tap": "net.layer3.1" + }, + { + "band_limit": 0.0486953535, + "band_ratio": 0.5, + "index": 8, + "metrics": { + "corr": 0.999831858, + "finite": true, + "max_abs": 0.11771512, + "mean_abs": 0.00085839442, + "psnr_db": 63.9868246, + "ref_absmax": 4.8347578, + "rel_max": 0.0243476768, + "scaled_max_abs": 0.0243476768 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_99_cast_fp16" + }, + "per_op_band_ratio": 2.43476768, + "status": "pass", + "tap": "net.layer4.0" + }, + { + "band_limit": 0.028098382, + "band_ratio": 0.461224882, + "index": 9, + "metrics": { + "corr": 0.999905255, + "finite": true, + "max_abs": 0.274329185, + "mean_abs": 0.00667376417, + "psnr_db": 62.9871787, + "ref_absmax": 21.1679096, + "rel_max": 0.0129596729, + "scaled_max_abs": 0.0129596729 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_111_cast_fp16" + }, + "per_op_band_ratio": 1.29596729, + "status": "pass", + "tap": "net.layer4.1" + }, + { + "band_limit": 0.0174031601, + "band_ratio": 0.488430689, + "index": 10, + "metrics": { + "corr": 0.999972488, + "finite": true, + "max_abs": 0.0910148621, + "mean_abs": 0.0036676624, + "psnr_db": 63.7343799, + "ref_absmax": 10.7073317, + "rel_max": 0.0085002375, + "scaled_max_abs": 0.0085002375 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "per_op_band_ratio": 0.85002375, + "status": "pass", + "tap": "net.avgpool" + }, + { + "band_limit": 0.013043304, + "band_ratio": 0.5, + "index": 11, + "metrics": { + "corr": 0.999976106, + "finite": true, + "max_abs": 0.139695168, + "mean_abs": 0.01166934, + "psnr_db": 66.9644292, + "ref_absmax": 21.4202118, + "rel_max": 0.00652165202, + "scaled_max_abs": 0.00652165202 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "per_op_band_ratio": 0.652165202, + "status": "pass", + "tap": "net.fc" + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp16", + "id": "resnet18__clean__coreml_fp16", + "model": "resnet18", + "path": "coreml", + "variant": "clean" + }, + "tap_bands_gate": true, + "verdict": "PASS" +} diff --git a/bench/verdicts_calibrated4/resnet18__clean__coreml_fp32.json b/bench/verdicts_calibrated4/resnet18__clean__coreml_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..bfa787579d37781e1fdf1e619cc47dbe91c5cb4e --- /dev/null +++ b/bench/verdicts_calibrated4/resnet18__clean__coreml_fp32.json @@ -0,0 +1,1179 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": false, + "note": null, + "status": "clear" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "status": "clear" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp32", + "first_divergence": null, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "105dab71b371c7535011c1ba6bef70ff6199e8700a3866025feca2f0340afc70", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "133b5f0442afcb4e07765159debccf827b4ad7305a3fc3b8c09fc35b3f47bbd5", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "fp32 per-tap band on near-zero probes", + "reason": "C3-2: per-tap fp32 checks gate without the near_zero probes; they are measured and reported per tap ('ungated_probes'); the output gates on all probes. C4-1: when the output has failed and no gated tap fails, they localise the first divergence (earliest tap over band on all probes)" + }, + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": null, + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.00907409202, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.0980835e-05, + "mean_abs": 1.61414529e-06, + "psnr_db": 144.505227, + "ref_absmax": 23.1216908, + "rel_max": 9.07409202e-07, + "scaled_max_abs": 9.07409202e-07 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 12, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.06644368e-08, + "psnr_db": 164.113247, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.00112572895, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.38418579e-07, + "mean_abs": 4.66593688e-08, + "psnr_db": 130.397207, + "ref_absmax": 2.11790395, + "rel_max": 1.12572895e-07, + "scaled_max_abs": 1.12572895e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00671267222, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.19888306e-06, + "mean_abs": 1.46632216e-07, + "psnr_db": 150.987992, + "ref_absmax": 9.23459816, + "rel_max": 6.71267222e-07, + "scaled_max_abs": 6.71267222e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_9" + }, + "status": "pass", + "tap": "net.maxpool", + "ungated_probes": { + "band_ratio": 0.00841418618, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.78813934e-06, + "mean_abs": 1.16446061e-07, + "psnr_db": 141.439489, + "ref_absmax": 2.1251483, + "rel_max": 8.41418618e-07, + "scaled_max_abs": 8.41418618e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00719228872, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.14440918e-05, + "mean_abs": 3.06402715e-07, + "psnr_db": 149.773687, + "ref_absmax": 15.9116135, + "rel_max": 7.19228872e-07, + "scaled_max_abs": 7.19228872e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_21" + }, + "status": "pass", + "tap": "net.layer1.0", + "ungated_probes": { + "band_ratio": 0.021311339, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.31809235e-06, + "mean_abs": 4.89821877e-07, + "psnr_db": 132.727186, + "ref_absmax": 2.96466231, + "rel_max": 2.1311339e-06, + "scaled_max_abs": 2.1311339e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00912155752, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.71661377e-05, + "mean_abs": 4.85733463e-07, + "psnr_db": 147.259644, + "ref_absmax": 18.8193054, + "rel_max": 9.12155752e-07, + "scaled_max_abs": 9.12155752e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_33" + }, + "status": "pass", + "tap": "net.layer1.1", + "ungated_probes": { + "band_ratio": 0.0597004613, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.348423e-05, + "mean_abs": 1.66013091e-06, + "psnr_db": 123.828902, + "ref_absmax": 3.93367648, + "rel_max": 5.97004613e-06, + "scaled_max_abs": 5.97004613e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00697955904, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.16583633e-06, + "mean_abs": 2.34065489e-07, + "psnr_db": 148.192522, + "ref_absmax": 11.699645, + "rel_max": 6.97955904e-07, + "scaled_max_abs": 6.97955904e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_47" + }, + "status": "pass", + "tap": "net.layer2.0", + "ungated_probes": { + "band_ratio": 0.0483415241, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.34259462e-05, + "mean_abs": 7.55778647e-07, + "psnr_db": 126.373546, + "ref_absmax": 2.77731133, + "rel_max": 4.83415241e-06, + "scaled_max_abs": 4.83415241e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0086149923, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.00135803e-05, + "mean_abs": 2.63314739e-07, + "psnr_db": 147.057013, + "ref_absmax": 11.623435, + "rel_max": 8.6149923e-07, + "scaled_max_abs": 8.6149923e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59" + }, + "status": "pass", + "tap": "net.layer2.1", + "ungated_probes": { + "band_ratio": 0.0265487626, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.35600567e-05, + "mean_abs": 7.15253358e-07, + "psnr_db": 131.341764, + "ref_absmax": 5.10760403, + "rel_max": 2.65487626e-06, + "scaled_max_abs": 2.65487626e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00626901733, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.58306885e-06, + "mean_abs": 1.49177653e-07, + "psnr_db": 153.186643, + "ref_absmax": 13.6912508, + "rel_max": 6.26901733e-07, + "scaled_max_abs": 6.26901733e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_73" + }, + "status": "pass", + "tap": "net.layer3.0", + "ungated_probes": { + "band_ratio": 0.0205685048, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.05990601e-06, + "mean_abs": 3.20289824e-07, + "psnr_db": 136.930443, + "ref_absmax": 4.40474701, + "rel_max": 2.05685048e-06, + "scaled_max_abs": 2.05685048e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0166023355, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.38282776e-05, + "mean_abs": 1.76829959e-07, + "psnr_db": 147.062265, + "ref_absmax": 8.32911587, + "rel_max": 1.66023355e-06, + "scaled_max_abs": 1.66023355e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85" + }, + "status": "pass", + "tap": "net.layer3.1", + "ungated_probes": { + "band_ratio": 0.0315190865, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.21593475e-05, + "mean_abs": 3.21340238e-07, + "psnr_db": 135.079279, + "ref_absmax": 3.85777283, + "rel_max": 3.15190865e-06, + "scaled_max_abs": 3.15190865e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0101513884, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.19888306e-06, + "mean_abs": 1.04797542e-07, + "psnr_db": 146.132795, + "ref_absmax": 6.10643864, + "rel_max": 1.01513884e-06, + "scaled_max_abs": 1.01513884e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_99" + }, + "status": "pass", + "tap": "net.layer4.0", + "ungated_probes": { + "band_ratio": 0.0373068776, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.86781311e-06, + "mean_abs": 1.74996555e-07, + "psnr_db": 131.268956, + "ref_absmax": 2.10894442, + "rel_max": 3.73068776e-06, + "scaled_max_abs": 3.73068776e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0193529097, + "index": 9, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.43322754e-05, + "mean_abs": 9.84009557e-07, + "psnr_db": 138.975535, + "ref_absmax": 17.7401104, + "rel_max": 1.93529097e-06, + "scaled_max_abs": 1.93529097e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_111" + }, + "status": "pass", + "tap": "net.layer4.1", + "ungated_probes": { + "band_ratio": 0.030009709, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.43186951e-05, + "mean_abs": 4.97568928e-07, + "psnr_db": 134.640799, + "ref_absmax": 8.10360909, + "rel_max": 3.0009709e-06, + "scaled_max_abs": 3.0009709e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0083060378, + "index": 10, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.05990601e-06, + "mean_abs": 5.61202782e-07, + "psnr_db": 140.888025, + "ref_absmax": 10.9076147, + "rel_max": 8.3060378e-07, + "scaled_max_abs": 8.3060378e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x" + }, + "status": "pass", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 0.0105868003, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.19888306e-06, + "mean_abs": 2.72693173e-07, + "psnr_db": 140.194383, + "ref_absmax": 5.85529423, + "rel_max": 1.05868003e-06, + "scaled_max_abs": 1.05868003e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00907409202, + "index": 11, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.0980835e-05, + "mean_abs": 1.71106776e-06, + "psnr_db": 144.096056, + "ref_absmax": 23.1216908, + "rel_max": 9.07409202e-07, + "scaled_max_abs": 9.07409202e-07 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "pass", + "tap": "net.fc", + "ungated_probes": { + "band_ratio": 0.0119025322, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.67572021e-06, + "mean_abs": 9.35688033e-07, + "psnr_db": 137.180097, + "ref_absmax": 5.60865545, + "rel_max": 1.19025322e-06, + "scaled_max_abs": 1.19025322e-06 + }, + "n_probes": 4 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.00801399065, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.71661377e-05, + "mean_abs": 1.59114503e-06, + "psnr_db": 144.269715, + "ref_absmax": 21.4202118, + "rel_max": 8.01399065e-07, + "scaled_max_abs": 8.01399065e-07 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 12, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.08107465e-08, + "psnr_db": 164.245493, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.00112572895, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.38418579e-07, + "mean_abs": 4.66724468e-08, + "psnr_db": 130.436578, + "ref_absmax": 2.11790395, + "rel_max": 1.12572895e-07, + "scaled_max_abs": 1.12572895e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0064503639, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.42402267e-06, + "mean_abs": 1.41653613e-07, + "psnr_db": 150.592801, + "ref_absmax": 8.40886307, + "rel_max": 6.4503639e-07, + "scaled_max_abs": 6.4503639e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_9" + }, + "status": "pass", + "tap": "net.maxpool", + "ungated_probes": { + "band_ratio": 0.00954179514, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.02655792e-06, + "mean_abs": 1.16505097e-07, + "psnr_db": 141.425183, + "ref_absmax": 2.1238749, + "rel_max": 9.54179514e-07, + "scaled_max_abs": 9.54179514e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00781175021, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33514404e-05, + "mean_abs": 3.04504955e-07, + "psnr_db": 150.557561, + "ref_absmax": 17.0914841, + "rel_max": 7.81175021e-07, + "scaled_max_abs": 7.81175021e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_21" + }, + "status": "pass", + "tap": "net.layer1.0", + "ungated_probes": { + "band_ratio": 0.0193052678, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.7220459e-06, + "mean_abs": 4.91511212e-07, + "psnr_db": 132.704415, + "ref_absmax": 2.96398163, + "rel_max": 1.93052678e-06, + "scaled_max_abs": 1.93052678e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00864134826, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.62124634e-05, + "mean_abs": 4.90960911e-07, + "psnr_db": 147.159135, + "ref_absmax": 18.7614975, + "rel_max": 8.64134826e-07, + "scaled_max_abs": 8.64134826e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_33" + }, + "status": "pass", + "tap": "net.layer1.1", + "ungated_probes": { + "band_ratio": 0.0557220015, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.19345093e-05, + "mean_abs": 1.67574729e-06, + "psnr_db": 123.763507, + "ref_absmax": 3.93641806, + "rel_max": 5.57220015e-06, + "scaled_max_abs": 5.57220015e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00838041789, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.32812691e-06, + "mean_abs": 2.3925383e-07, + "psnr_db": 147.505666, + "ref_absmax": 11.1308613, + "rel_max": 8.38041789e-07, + "scaled_max_abs": 8.38041789e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_47" + }, + "status": "pass", + "tap": "net.layer2.0", + "ungated_probes": { + "band_ratio": 0.0473845284, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.31726265e-05, + "mean_abs": 7.53269184e-07, + "psnr_db": 126.422079, + "ref_absmax": 2.77994251, + "rel_max": 4.73845284e-06, + "scaled_max_abs": 4.73845284e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00958715108, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.090765e-05, + "mean_abs": 2.66645971e-07, + "psnr_db": 146.609757, + "ref_absmax": 11.3773632, + "rel_max": 9.58715108e-07, + "scaled_max_abs": 9.58715108e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59" + }, + "status": "pass", + "tap": "net.layer2.1", + "ungated_probes": { + "band_ratio": 0.0267042708, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.36680901e-05, + "mean_abs": 7.04819918e-07, + "psnr_db": 131.457256, + "ref_absmax": 5.11831617, + "rel_max": 2.67042708e-06, + "scaled_max_abs": 2.67042708e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00919290381, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.09672546e-05, + "mean_abs": 1.53058776e-07, + "psnr_db": 151.711257, + "ref_absmax": 11.930131, + "rel_max": 9.19290381e-07, + "scaled_max_abs": 9.19290381e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_73" + }, + "status": "pass", + "tap": "net.layer3.0", + "ungated_probes": { + "band_ratio": 0.0221752012, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.77516174e-06, + "mean_abs": 3.11827975e-07, + "psnr_db": 137.077085, + "ref_absmax": 4.4081502, + "rel_max": 2.21752012e-06, + "scaled_max_abs": 2.21752012e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0205643347, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-05, + "mean_abs": 1.84066172e-07, + "psnr_db": 145.131181, + "ref_absmax": 6.95627403, + "rel_max": 2.05643347e-06, + "scaled_max_abs": 2.05643347e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85" + }, + "status": "pass", + "tap": "net.layer3.1", + "ungated_probes": { + "band_ratio": 0.0498233047, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.92523003e-05, + "mean_abs": 3.19355241e-07, + "psnr_db": 135.033056, + "ref_absmax": 3.86411548, + "rel_max": 4.98233047e-06, + "scaled_max_abs": 4.98233047e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0119585112, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.78165054e-06, + "mean_abs": 1.07760226e-07, + "psnr_db": 143.729404, + "ref_absmax": 4.8347578, + "rel_max": 1.19585112e-06, + "scaled_max_abs": 1.19585112e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_99" + }, + "status": "pass", + "tap": "net.layer4.0", + "ungated_probes": { + "band_ratio": 0.0474991074, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.0073185e-05, + "mean_abs": 1.72458371e-07, + "psnr_db": 131.185119, + "ref_absmax": 2.12071037, + "rel_max": 4.74991074e-06, + "scaled_max_abs": 4.74991074e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0180211336, + "index": 9, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.81469727e-05, + "mean_abs": 1.00194121e-06, + "psnr_db": 140.151425, + "ref_absmax": 21.1679096, + "rel_max": 1.80211336e-06, + "scaled_max_abs": 1.80211336e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_111" + }, + "status": "pass", + "tap": "net.layer4.1", + "ungated_probes": { + "band_ratio": 0.0291536201, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.44379044e-05, + "mean_abs": 6.16358907e-07, + "psnr_db": 133.688777, + "ref_absmax": 8.38245964, + "rel_max": 2.91536201e-06, + "scaled_max_abs": 2.91536201e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00801606705, + "index": 10, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.58306885e-06, + "mean_abs": 5.44542617e-07, + "psnr_db": 140.659822, + "ref_absmax": 10.7073317, + "rel_max": 8.01606705e-07, + "scaled_max_abs": 8.01606705e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x" + }, + "status": "pass", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 0.0105585917, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.19888306e-06, + "mean_abs": 3.20352679e-07, + "psnr_db": 139.614484, + "ref_absmax": 5.87093735, + "rel_max": 1.05585917e-06, + "scaled_max_abs": 1.05585917e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00801399065, + "index": 11, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.71661377e-05, + "mean_abs": 1.65862527e-06, + "psnr_db": 143.924262, + "ref_absmax": 21.4202118, + "rel_max": 8.01399065e-07, + "scaled_max_abs": 8.01399065e-07 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "pass", + "tap": "net.fc", + "ungated_probes": { + "band_ratio": 0.00832865402, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 1.11878337e-06, + "psnr_db": 136.051046, + "ref_absmax": 5.72526073, + "rel_max": 8.32865402e-07, + "scaled_max_abs": 8.32865402e-07 + }, + "n_probes": 4 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp32", + "id": "resnet18__clean__coreml_fp32", + "model": "resnet18", + "path": "coreml", + "variant": "clean" + }, + "tap_bands_gate": true, + "verdict": "PASS" +} diff --git a/bench/verdicts_calibrated4/resnet18__clean__litert_fp16.json b/bench/verdicts_calibrated4/resnet18__clean__litert_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..715fc697c85b650233eabd8c25c6b9b848fe8c60 --- /dev/null +++ b/bench/verdicts_calibrated4/resnet18__clean__litert_fp16.json @@ -0,0 +1,1015 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "baseline": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "faithful_output_rel_max": 0.000479681862, + "output_band": 0.01, + "source": { + "bundle": "bundles/resnet18__clean__litert_fp16.json", + "case": "resnet18__clean__litert_fp16", + "digests": { + "192": { + "converted": "5518083a49acade5bb9995f1d28be7f32b0a23e8e42c5e39dfdbe59cfc6b794d", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "8d2974be0ffdfd9646dac16768c8f2eaa45593bd0207920e3d4230bc7750498d", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + } + } + }, + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": false, + "note": null, + "status": "clear" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 8.01471716e-05, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.71661377e-05, + "mean_abs": 1.32579838e-06, + "psnr_db": 145.461536, + "ref_absmax": 21.4182701, + "rel_max": 8.01471716e-07, + "scaled_max_abs": 8.01471716e-07 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 27, + "outputs": [ + "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models.res", + "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.linear.Linear_fc;1_dequant", + "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.B", + "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.B" + ] + }, + { + "inputs": 43, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 2, + "n_ops_total": 60, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "status": "clear" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp16", + "first_divergence": null, + "fp16_floor": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "baseline": { + "bundle": "bundles/resnet18__clean__litert_fp16.json", + "case": "resnet18__clean__litert_fp16", + "digests": { + "192": { + "converted": "5518083a49acade5bb9995f1d28be7f32b0a23e8e42c5e39dfdbe59cfc6b794d", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "8d2974be0ffdfd9646dac16768c8f2eaa45593bd0207920e3d4230bc7750498d", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + } + }, + "envelopes_gate": true, + "faithful_output_rel_max": 0.000479681862, + "faithful_tap_rel_max": { + "net.avgpool": 0.000675608743, + "net.fc": 0.000479681862, + "net.layer1.0": 0.000285533862, + "net.layer1.1": 0.000262599506, + "net.layer2.0": 0.000592551772, + "net.layer2.1": 0.000620361493, + "net.layer3.0": 0.000279544214, + "net.layer3.1": 0.000620957223, + "net.layer4.0": 0.0015225034, + "net.layer4.1": 0.00121889732, + "net.maxpool": 0.000583793374, + "normalize": 8.27203959e-08 + }, + "floor": 0.01, + "k": 2.0, + "output_band": 0.01, + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used", + "tap_envelopes": { + "net.avgpool": 0.01, + "net.fc": 0.01, + "net.layer1.0": 0.01, + "net.layer1.1": 0.01, + "net.layer2.0": 0.01, + "net.layer2.1": 0.01, + "net.layer3.0": 0.01, + "net.layer3.1": 0.01, + "net.layer4.0": 0.01, + "net.layer4.1": 0.01, + "net.maxpool": 0.01, + "normalize": 0.01 + } + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "5518083a49acade5bb9995f1d28be7f32b0a23e8e42c5e39dfdbe59cfc6b794d", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "8d2974be0ffdfd9646dac16768c8f2eaa45593bd0207920e3d4230bc7750498d", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": null, + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_limit": 0.01, + "band_ratio": 0.0469419279, + "metrics": { + "corr": 0.999999821, + "finite": true, + "max_abs": 0.0108537674, + "mean_abs": 0.00112806203, + "psnr_db": 87.8386721, + "ref_absmax": 23.1216908, + "rel_max": 0.000469419279, + "scaled_max_abs": 0.000469419279 + }, + "per_op_band_ratio": 0.0469419279, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 12, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 8.27203959e-06, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.26638033e-08, + "psnr_db": 163.904618, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "per_op_band_ratio": 8.27203959e-06, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0552685286, + "index": 1, + "metrics": { + "corr": 0.999999962, + "finite": true, + "max_abs": 0.00510382652, + "mean_abs": 7.6244338e-05, + "psnr_db": 94.6749001, + "ref_absmax": 9.23459816, + "rel_max": 0.000552685286, + "scaled_max_abs": 0.000552685286 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.MaxPool2d_maxpool;2" + }, + "per_op_band_ratio": 0.0552685286, + "status": "pass", + "tap": "net.maxpool" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0285533862, + "index": 2, + "metrics": { + "corr": 0.999999915, + "finite": true, + "max_abs": 0.00454330444, + "mean_abs": 0.000158366689, + "psnr_db": 95.091453, + "ref_absmax": 15.9116135, + "rel_max": 0.000285533862, + "scaled_max_abs": 0.000285533862 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 0.0285533862, + "status": "pass", + "tap": "net.layer1.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0262599506, + "index": 3, + "metrics": { + "corr": 0.999999807, + "finite": true, + "max_abs": 0.00494194031, + "mean_abs": 0.000244943041, + "psnr_db": 92.1941427, + "ref_absmax": 18.8193054, + "rel_max": 0.000262599506, + "scaled_max_abs": 0.000262599506 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 0.0262599506, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0526554237, + "index": 4, + "metrics": { + "corr": 0.999999711, + "finite": true, + "max_abs": 0.00616049767, + "mean_abs": 0.000116616282, + "psnr_db": 93.01523, + "ref_absmax": 11.699645, + "rel_max": 0.000526554237, + "scaled_max_abs": 0.000526554237 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 0.0526554237, + "status": "pass", + "tap": "net.layer2.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0620361493, + "index": 5, + "metrics": { + "corr": 0.999999676, + "finite": true, + "max_abs": 0.00721073151, + "mean_abs": 0.000130509692, + "psnr_db": 92.3595398, + "ref_absmax": 11.623435, + "rel_max": 0.000620361493, + "scaled_max_abs": 0.000620361493 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 0.0620361493, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0244031295, + "index": 6, + "metrics": { + "corr": 0.999999722, + "finite": true, + "max_abs": 0.00334109366, + "mean_abs": 8.5855404e-05, + "psnr_db": 97.27591, + "ref_absmax": 13.6912508, + "rel_max": 0.000244031295, + "scaled_max_abs": 0.000244031295 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 0.0244031295, + "status": "pass", + "tap": "net.layer3.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0515205535, + "index": 7, + "metrics": { + "corr": 0.999999649, + "finite": true, + "max_abs": 0.0042912066, + "mean_abs": 9.51070798e-05, + "psnr_db": 91.7208003, + "ref_absmax": 8.32911587, + "rel_max": 0.000515205535, + "scaled_max_abs": 0.000515205535 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 0.0515205535, + "status": "pass", + "tap": "net.layer3.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.117556982, + "index": 8, + "metrics": { + "corr": 0.999999304, + "finite": true, + "max_abs": 0.007178545, + "mean_abs": 6.1036483e-05, + "psnr_db": 89.2698291, + "ref_absmax": 6.10643864, + "rel_max": 0.00117556982, + "scaled_max_abs": 0.00117556982 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 0.117556982, + "status": "pass", + "tap": "net.layer4.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.121889732, + "index": 9, + "metrics": { + "corr": 0.999999557, + "finite": true, + "max_abs": 0.021623373, + "mean_abs": 0.00049812914, + "psnr_db": 84.290483, + "ref_absmax": 17.7401104, + "rel_max": 0.00121889732, + "scaled_max_abs": 0.00121889732 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 0.121889732, + "status": "pass", + "tap": "net.layer4.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0675608743, + "index": 10, + "metrics": { + "corr": 0.999999775, + "finite": true, + "max_abs": 0.00736927986, + "mean_abs": 0.000378536389, + "psnr_db": 84.0350689, + "ref_absmax": 10.9076147, + "rel_max": 0.000675608743, + "scaled_max_abs": 0.000675608743 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;1" + }, + "per_op_band_ratio": 0.0675608743, + "status": "pass", + "tap": "net.avgpool" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0469419279, + "index": 11, + "metrics": { + "corr": 0.999999821, + "finite": true, + "max_abs": 0.0108537674, + "mean_abs": 0.00112806203, + "psnr_db": 87.8386721, + "ref_absmax": 23.1216908, + "rel_max": 0.000469419279, + "scaled_max_abs": 0.000469419279 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "per_op_band_ratio": 0.0469419279, + "status": "pass", + "tap": "net.fc" + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_limit": 0.01, + "band_ratio": 0.0479681862, + "metrics": { + "corr": 0.9999998, + "finite": true, + "max_abs": 0.0102748871, + "mean_abs": 0.00113285037, + "psnr_db": 87.5940613, + "ref_absmax": 21.4202118, + "rel_max": 0.000479681862, + "scaled_max_abs": 0.000479681862 + }, + "per_op_band_ratio": 0.0479681862, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 12, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 8.27203959e-06, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.2793459e-08, + "psnr_db": 164.013874, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "per_op_band_ratio": 8.27203959e-06, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0583793374, + "index": 1, + "metrics": { + "corr": 0.999999956, + "finite": true, + "max_abs": 0.00490903854, + "mean_abs": 7.63929271e-05, + "psnr_db": 93.8421926, + "ref_absmax": 8.40886307, + "rel_max": 0.000583793374, + "scaled_max_abs": 0.000583793374 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.MaxPool2d_maxpool;2" + }, + "per_op_band_ratio": 0.0583793374, + "status": "pass", + "tap": "net.maxpool" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0274063399, + "index": 2, + "metrics": { + "corr": 0.999999901, + "finite": true, + "max_abs": 0.00468415022, + "mean_abs": 0.000161921874, + "psnr_db": 95.5433913, + "ref_absmax": 17.0914841, + "rel_max": 0.000274063399, + "scaled_max_abs": 0.000274063399 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 0.0274063399, + "status": "pass", + "tap": "net.layer1.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0251223373, + "index": 3, + "metrics": { + "corr": 0.999999774, + "finite": true, + "max_abs": 0.00471332669, + "mean_abs": 0.000250456457, + "psnr_db": 91.9597734, + "ref_absmax": 18.7614975, + "rel_max": 0.000251223373, + "scaled_max_abs": 0.000251223373 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 0.0251223373, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0592551772, + "index": 4, + "metrics": { + "corr": 0.999999672, + "finite": true, + "max_abs": 0.00659561157, + "mean_abs": 0.000118937706, + "psnr_db": 92.4349706, + "ref_absmax": 11.1308613, + "rel_max": 0.000592551772, + "scaled_max_abs": 0.000592551772 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 0.0592551772, + "status": "pass", + "tap": "net.layer2.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0609826631, + "index": 5, + "metrics": { + "corr": 0.999999644, + "finite": true, + "max_abs": 0.00693821907, + "mean_abs": 0.000130281217, + "psnr_db": 92.2134029, + "ref_absmax": 11.3773632, + "rel_max": 0.000609826631, + "scaled_max_abs": 0.000609826631 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 0.0609826631, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0279544214, + "index": 6, + "metrics": { + "corr": 0.999999683, + "finite": true, + "max_abs": 0.00333499908, + "mean_abs": 8.74087713e-05, + "psnr_db": 95.9804734, + "ref_absmax": 11.930131, + "rel_max": 0.000279544214, + "scaled_max_abs": 0.000279544214 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 0.0279544214, + "status": "pass", + "tap": "net.layer3.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0620957223, + "index": 7, + "metrics": { + "corr": 0.999999592, + "finite": true, + "max_abs": 0.00431954861, + "mean_abs": 9.86995916e-05, + "psnr_db": 90.0056449, + "ref_absmax": 6.95627403, + "rel_max": 0.000620957223, + "scaled_max_abs": 0.000620957223 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 0.0620957223, + "status": "pass", + "tap": "net.layer3.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.15225034, + "index": 8, + "metrics": { + "corr": 0.999999218, + "finite": true, + "max_abs": 0.00736093521, + "mean_abs": 6.06419468e-05, + "psnr_db": 87.3266954, + "ref_absmax": 4.8347578, + "rel_max": 0.0015225034, + "scaled_max_abs": 0.0015225034 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 0.15225034, + "status": "pass", + "tap": "net.layer4.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0953705138, + "index": 9, + "metrics": { + "corr": 0.999999449, + "finite": true, + "max_abs": 0.0201879442, + "mean_abs": 0.000519985361, + "psnr_db": 85.3111292, + "ref_absmax": 21.1679096, + "rel_max": 0.000953705138, + "scaled_max_abs": 0.000953705138 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 0.0953705138, + "status": "pass", + "tap": "net.layer4.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0629439398, + "index": 10, + "metrics": { + "corr": 0.999999746, + "finite": true, + "max_abs": 0.00673961639, + "mean_abs": 0.00037416964, + "psnr_db": 83.9774555, + "ref_absmax": 10.7073317, + "rel_max": 0.000629439398, + "scaled_max_abs": 0.000629439398 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;1" + }, + "per_op_band_ratio": 0.0629439398, + "status": "pass", + "tap": "net.avgpool" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0479681862, + "index": 11, + "metrics": { + "corr": 0.9999998, + "finite": true, + "max_abs": 0.0102748871, + "mean_abs": 0.00113285037, + "psnr_db": 87.5940613, + "ref_absmax": 21.4202118, + "rel_max": 0.000479681862, + "scaled_max_abs": 0.000479681862 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "per_op_band_ratio": 0.0479681862, + "status": "pass", + "tap": "net.fc" + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp16", + "id": "resnet18__clean__litert_fp16", + "model": "resnet18", + "path": "litert", + "variant": "clean" + }, + "tap_bands_gate": true, + "verdict": "PASS" +} diff --git a/bench/verdicts_calibrated4/resnet18__clean__litert_fp32.json b/bench/verdicts_calibrated4/resnet18__clean__litert_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..9eee4d0b5c1a818e961567feb82342ba39d68503 --- /dev/null +++ b/bench/verdicts_calibrated4/resnet18__clean__litert_fp32.json @@ -0,0 +1,1305 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": false, + "note": null, + "status": "clear" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 0.00790268663, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.69277191e-05, + "mean_abs": 1.31826861e-06, + "psnr_db": 145.77134, + "ref_absmax": 21.420208, + "rel_max": 7.90268663e-07, + "scaled_max_abs": 7.90268663e-07 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 7, + "outputs": [ + "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models.res" + ] + }, + { + "inputs": 43, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 2, + "n_ops_total": 39, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "status": "clear" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp32", + "first_divergence": null, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "2ac5bd033ee7691569c748a72538d87fb27c1ac503e12233be0eba9bd6e2cafe", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "688080e91b21b7268b2d1d38c3895e9cf228b42212c011df252fb079d4ffb559", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "fp32 per-tap band on near-zero probes", + "reason": "C3-2: per-tap fp32 checks gate without the near_zero probes; they are measured and reported per tap ('ungated_probes'); the output gates on all probes. C4-1: when the output has failed and no gated tap fails, they localise the first divergence (earliest tap over band on all probes)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": null, + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.00536196347, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.23977661e-05, + "mean_abs": 1.37574371e-06, + "psnr_db": 145.808931, + "ref_absmax": 23.1216908, + "rel_max": 5.36196347e-07, + "scaled_max_abs": 5.36196347e-07 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 12, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.06644368e-08, + "psnr_db": 164.113247, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.00112572895, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.38418579e-07, + "mean_abs": 4.66593688e-08, + "psnr_db": 130.397207, + "ref_absmax": 2.11790395, + "rel_max": 1.12572895e-07, + "scaled_max_abs": 1.12572895e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00645449252, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.96046448e-06, + "mean_abs": 1.10938487e-07, + "psnr_db": 152.355037, + "ref_absmax": 9.23459816, + "rel_max": 6.45449252e-07, + "scaled_max_abs": 6.45449252e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.MaxPool2d_maxpool;2" + }, + "status": "pass", + "tap": "net.maxpool", + "ungated_probes": { + "band_ratio": 0.00673134895, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-06, + "mean_abs": 1.13613737e-07, + "psnr_db": 141.814136, + "ref_absmax": 2.1251483, + "rel_max": 6.73134895e-07, + "scaled_max_abs": 6.73134895e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00659293132, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.04904175e-05, + "mean_abs": 2.76797242e-07, + "psnr_db": 150.327237, + "ref_absmax": 15.9116135, + "rel_max": 6.59293132e-07, + "scaled_max_abs": 6.59293132e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer1.0", + "ungated_probes": { + "band_ratio": 0.0159332416, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.7236681e-06, + "mean_abs": 4.39231993e-07, + "psnr_db": 133.714953, + "ref_absmax": 2.96466231, + "rel_max": 1.59332416e-06, + "scaled_max_abs": 1.59332416e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00760129794, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-05, + "mean_abs": 4.3881845e-07, + "psnr_db": 147.941588, + "ref_absmax": 18.8193054, + "rel_max": 7.60129794e-07, + "scaled_max_abs": 7.60129794e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer1.1", + "ungated_probes": { + "band_ratio": 0.0542455968, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.13384628e-05, + "mean_abs": 1.45986695e-06, + "psnr_db": 124.90685, + "ref_absmax": 3.93367648, + "rel_max": 5.42455968e-06, + "scaled_max_abs": 5.42455968e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00743807022, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.70227814e-06, + "mean_abs": 2.08361957e-07, + "psnr_db": 148.998972, + "ref_absmax": 11.699645, + "rel_max": 7.43807022e-07, + "scaled_max_abs": 7.43807022e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer2.0", + "ungated_probes": { + "band_ratio": 0.0452832923, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.257658e-05, + "mean_abs": 6.72263901e-07, + "psnr_db": 127.366784, + "ref_absmax": 2.77731133, + "rel_max": 4.52832923e-06, + "scaled_max_abs": 4.52832923e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00635868479, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.39097595e-06, + "mean_abs": 2.32858621e-07, + "psnr_db": 147.984134, + "ref_absmax": 11.623435, + "rel_max": 6.35868479e-07, + "scaled_max_abs": 6.35868479e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer2.1", + "ungated_probes": { + "band_ratio": 0.025440133, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.29938126e-05, + "mean_abs": 6.44654951e-07, + "psnr_db": 132.262737, + "ref_absmax": 5.10760403, + "rel_max": 2.5440133e-06, + "scaled_max_abs": 2.5440133e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00835868977, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.14440918e-05, + "mean_abs": 1.32668077e-07, + "psnr_db": 153.937558, + "ref_absmax": 13.6912508, + "rel_max": 8.35868977e-07, + "scaled_max_abs": 8.35868977e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer3.0", + "ungated_probes": { + "band_ratio": 0.0200272284, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.82148743e-06, + "mean_abs": 2.86842755e-07, + "psnr_db": 137.795591, + "ref_absmax": 4.40474701, + "rel_max": 2.00272284e-06, + "scaled_max_abs": 2.00272284e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0137398638, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.14440918e-05, + "mean_abs": 1.57584205e-07, + "psnr_db": 147.875315, + "ref_absmax": 8.32911587, + "rel_max": 1.37398638e-06, + "scaled_max_abs": 1.37398638e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer3.1", + "ungated_probes": { + "band_ratio": 0.0254933788, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.83476639e-06, + "mean_abs": 2.90260179e-07, + "psnr_db": 135.847165, + "ref_absmax": 3.85777283, + "rel_max": 2.54933788e-06, + "scaled_max_abs": 2.54933788e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0093705124, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.7220459e-06, + "mean_abs": 9.37541042e-08, + "psnr_db": 146.959324, + "ref_absmax": 6.10643864, + "rel_max": 9.3705124e-07, + "scaled_max_abs": 9.3705124e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer4.0", + "ungated_probes": { + "band_ratio": 0.0391439586, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.2552433e-06, + "mean_abs": 1.59796766e-07, + "psnr_db": 131.950164, + "ref_absmax": 2.10894442, + "rel_max": 3.91439586e-06, + "scaled_max_abs": 3.91439586e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0180089576, + "index": 9, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.19480896e-05, + "mean_abs": 8.41430526e-07, + "psnr_db": 140.19098, + "ref_absmax": 17.7401104, + "rel_max": 1.80089576e-06, + "scaled_max_abs": 1.80089576e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer4.1", + "ungated_probes": { + "band_ratio": 0.0258907294, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.0980835e-05, + "mean_abs": 4.58520137e-07, + "psnr_db": 135.358757, + "ref_absmax": 8.10360909, + "rel_max": 2.58907294e-06, + "scaled_max_abs": 2.58907294e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00874319768, + "index": 10, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-06, + "mean_abs": 5.04289741e-07, + "psnr_db": 141.468844, + "ref_absmax": 10.9076147, + "rel_max": 8.74319768e-07, + "scaled_max_abs": 8.74319768e-07 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;1" + }, + "status": "pass", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 0.00977243103, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.7220459e-06, + "mean_abs": 2.67882131e-07, + "psnr_db": 140.025969, + "ref_absmax": 5.85529423, + "rel_max": 9.77243103e-07, + "scaled_max_abs": 9.77243103e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00536196347, + "index": 11, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.23977661e-05, + "mean_abs": 1.43670936e-06, + "psnr_db": 145.464904, + "ref_absmax": 23.1216908, + "rel_max": 5.36196347e-07, + "scaled_max_abs": 5.36196347e-07 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "pass", + "tap": "net.fc", + "ungated_probes": { + "band_ratio": 0.00935198959, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.24520874e-06, + "mean_abs": 9.48984176e-07, + "psnr_db": 137.112544, + "ref_absmax": 5.60865545, + "rel_max": 9.35198959e-07, + "scaled_max_abs": 9.35198959e-07 + }, + "n_probes": 4 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.00534266043, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.14440918e-05, + "mean_abs": 1.26083469e-06, + "psnr_db": 146.577169, + "ref_absmax": 21.4202118, + "rel_max": 5.34266043e-07, + "scaled_max_abs": 5.34266043e-07 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 12, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.08107465e-08, + "psnr_db": 164.245493, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.00112572895, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.38418579e-07, + "mean_abs": 4.66724468e-08, + "psnr_db": 130.436578, + "ref_absmax": 2.11790395, + "rel_max": 1.12572895e-07, + "scaled_max_abs": 1.12572895e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00623771454, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.24520874e-06, + "mean_abs": 1.06644131e-07, + "psnr_db": 152.000278, + "ref_absmax": 8.40886307, + "rel_max": 6.23771454e-07, + "scaled_max_abs": 6.23771454e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.MaxPool2d_maxpool;2" + }, + "status": "pass", + "tap": "net.maxpool", + "ungated_probes": { + "band_ratio": 0.00729666687, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.54972076e-06, + "mean_abs": 1.13617345e-07, + "psnr_db": 141.810399, + "ref_absmax": 2.1238749, + "rel_max": 7.29666687e-07, + "scaled_max_abs": 7.29666687e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00892771453, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.52587891e-05, + "mean_abs": 2.76290454e-07, + "psnr_db": 151.089531, + "ref_absmax": 17.0914841, + "rel_max": 8.92771453e-07, + "scaled_max_abs": 8.92771453e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer1.0", + "ungated_probes": { + "band_ratio": 0.0166910128, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.94718552e-06, + "mean_abs": 4.4247302e-07, + "psnr_db": 133.650346, + "ref_absmax": 2.96398163, + "rel_max": 1.66910128e-06, + "scaled_max_abs": 1.66910128e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00965797747, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.8119812e-05, + "mean_abs": 4.43970185e-07, + "psnr_db": 147.823488, + "ref_absmax": 18.7614975, + "rel_max": 9.65797747e-07, + "scaled_max_abs": 9.65797747e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer1.1", + "ungated_probes": { + "band_ratio": 0.0590532081, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.32458115e-05, + "mean_abs": 1.47861575e-06, + "psnr_db": 124.805612, + "ref_absmax": 3.93641806, + "rel_max": 5.90532081e-06, + "scaled_max_abs": 5.90532081e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00856783938, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-06, + "mean_abs": 2.11702523e-07, + "psnr_db": 148.365791, + "ref_absmax": 11.1308613, + "rel_max": 8.56783938e-07, + "scaled_max_abs": 8.56783938e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer2.0", + "ungated_probes": { + "band_ratio": 0.0419170828, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.16527081e-05, + "mean_abs": 6.78429001e-07, + "psnr_db": 127.302904, + "ref_absmax": 2.77994251, + "rel_max": 4.19170828e-06, + "scaled_max_abs": 4.19170828e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00880131902, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.00135803e-05, + "mean_abs": 2.35542557e-07, + "psnr_db": 147.570649, + "ref_absmax": 11.3773632, + "rel_max": 8.80131902e-07, + "scaled_max_abs": 8.80131902e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer2.1", + "ungated_probes": { + "band_ratio": 0.0260273841, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33216381e-05, + "mean_abs": 6.46717913e-07, + "psnr_db": 132.203977, + "ref_absmax": 5.11831617, + "rel_max": 2.60273841e-06, + "scaled_max_abs": 2.60273841e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0079938294, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-06, + "mean_abs": 1.35383347e-07, + "psnr_db": 152.516445, + "ref_absmax": 11.930131, + "rel_max": 7.9938294e-07, + "scaled_max_abs": 7.9938294e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer3.0", + "ungated_probes": { + "band_ratio": 0.0340740896, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.50203705e-05, + "mean_abs": 2.83523179e-07, + "psnr_db": 137.857746, + "ref_absmax": 4.4081502, + "rel_max": 3.40740896e-06, + "scaled_max_abs": 3.40740896e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0185079012, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.28746033e-05, + "mean_abs": 1.61410029e-07, + "psnr_db": 146.134532, + "ref_absmax": 6.95627403, + "rel_max": 1.85079012e-06, + "scaled_max_abs": 1.85079012e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer3.1", + "ungated_probes": { + "band_ratio": 0.0314673503, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.21593475e-05, + "mean_abs": 2.88037593e-07, + "psnr_db": 135.921122, + "ref_absmax": 3.86411548, + "rel_max": 3.14673503e-06, + "scaled_max_abs": 3.14673503e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0106023914, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.12599945e-06, + "mean_abs": 9.18378973e-08, + "psnr_db": 145.080615, + "ref_absmax": 4.8347578, + "rel_max": 1.06023914e-06, + "scaled_max_abs": 1.06023914e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer4.0", + "ungated_probes": { + "band_ratio": 0.039348373, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.34465027e-06, + "mean_abs": 1.56652073e-07, + "psnr_db": 131.993997, + "ref_absmax": 2.12071037, + "rel_max": 3.9348373e-06, + "scaled_max_abs": 3.9348373e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0144169069, + "index": 9, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.05175781e-05, + "mean_abs": 8.11505878e-07, + "psnr_db": 142.058081, + "ref_absmax": 21.1679096, + "rel_max": 1.44169069e-06, + "scaled_max_abs": 1.44169069e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer4.1", + "ungated_probes": { + "band_ratio": 0.0254560878, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.13384628e-05, + "mean_abs": 5.4595315e-07, + "psnr_db": 134.785056, + "ref_absmax": 8.38245964, + "rel_max": 2.54560878e-06, + "scaled_max_abs": 2.54560878e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00823873558, + "index": 10, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.82148743e-06, + "mean_abs": 4.51589127e-07, + "psnr_db": 142.600779, + "ref_absmax": 10.7073317, + "rel_max": 8.23873558e-07, + "scaled_max_abs": 8.23873558e-07 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;1" + }, + "status": "pass", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 0.00700521952, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.11272049e-06, + "mean_abs": 2.8953733e-07, + "psnr_db": 140.621209, + "ref_absmax": 5.87093735, + "rel_max": 7.00521952e-07, + "scaled_max_abs": 7.00521952e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00534266043, + "index": 11, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.14440918e-05, + "mean_abs": 1.3114639e-06, + "psnr_db": 146.259003, + "ref_absmax": 21.4202118, + "rel_max": 5.34266043e-07, + "scaled_max_abs": 5.34266043e-07 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "pass", + "tap": "net.fc", + "ungated_probes": { + "band_ratio": 0.00874508672, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.00679016e-06, + "mean_abs": 9.06430185e-07, + "psnr_db": 137.893889, + "ref_absmax": 5.72526073, + "rel_max": 8.74508672e-07, + "scaled_max_abs": 8.74508672e-07 + }, + "n_probes": 4 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp32", + "id": "resnet18__clean__litert_fp32", + "model": "resnet18", + "path": "litert", + "variant": "clean" + }, + "tap_bands_gate": true, + "verdict": "PASS" +} diff --git a/bench/verdicts_calibrated4/resnet18__clean__onnx_fp16.json b/bench/verdicts_calibrated4/resnet18__clean__onnx_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..90df82542e861744fef92590a07aa0370ba5cae0 --- /dev/null +++ b/bench/verdicts_calibrated4/resnet18__clean__onnx_fp16.json @@ -0,0 +1,887 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "baseline": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "faithful_output_rel_max": 0.00057913326, + "output_band": 0.01, + "source": { + "bundle": "bundles/resnet18__clean__onnx_fp16.json", + "case": "resnet18__clean__onnx_fp16", + "digests": { + "192": { + "converted": "4f79899b2d94647c7a27acca5e2e048d6822448df0daac039062b5f5ac153fb2", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "441b70243dcc6533ecfb651f068a5b92f6a087252f2b8a01eebcf8972fcb76c6", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + } + } + }, + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": false, + "note": null, + "status": "clear" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "status": "clear" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp16", + "first_divergence": null, + "fp16_floor": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "baseline": { + "bundle": "bundles/resnet18__clean__onnx_fp16.json", + "case": "resnet18__clean__onnx_fp16", + "digests": { + "192": { + "converted": "4f79899b2d94647c7a27acca5e2e048d6822448df0daac039062b5f5ac153fb2", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "441b70243dcc6533ecfb651f068a5b92f6a087252f2b8a01eebcf8972fcb76c6", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + } + }, + "envelopes_gate": true, + "faithful_output_rel_max": 0.00057913326, + "faithful_tap_rel_max": { + "net.avgpool": 0.000879095353, + "net.fc": 0.00057913326, + "net.layer1.0": 0.000506201414, + "net.layer1.1": 0.000535356941, + "net.layer2.0": 0.000613549091, + "net.layer2.1": 0.000629964887, + "net.layer3.0": 0.000475472973, + "net.layer3.1": 0.000795143564, + "net.layer4.0": 0.00179190277, + "net.layer4.1": 0.00158067242, + "net.maxpool": 0.000650593626, + "normalize": 0.000441313312 + }, + "floor": 0.01, + "k": 2.0, + "output_band": 0.01, + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used", + "tap_envelopes": { + "net.avgpool": 0.01, + "net.fc": 0.01, + "net.layer1.0": 0.01, + "net.layer1.1": 0.01, + "net.layer2.0": 0.01, + "net.layer2.1": 0.01, + "net.layer3.0": 0.01, + "net.layer3.1": 0.01, + "net.layer4.0": 0.01, + "net.layer4.1": 0.01, + "net.maxpool": 0.01, + "normalize": 0.01 + } + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "4f79899b2d94647c7a27acca5e2e048d6822448df0daac039062b5f5ac153fb2", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "441b70243dcc6533ecfb651f068a5b92f6a087252f2b8a01eebcf8972fcb76c6", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": null, + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_limit": 0.01, + "band_ratio": 0.0544321784, + "metrics": { + "corr": 0.999999467, + "finite": true, + "max_abs": 0.01258564, + "mean_abs": 0.0019200106, + "psnr_db": 83.331005, + "ref_absmax": 23.1216908, + "rel_max": 0.000544321784, + "scaled_max_abs": 0.000544321784 + }, + "per_op_band_ratio": 0.0544321784, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 12, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 0.0441313312, + "index": 0, + "metrics": { + "corr": 0.999999966, + "finite": true, + "max_abs": 0.00508785248, + "mean_abs": 0.000405953078, + "psnr_db": 88.0186903, + "ref_absmax": 11.5288897, + "rel_max": 0.000441313312, + "scaled_max_abs": 0.000441313312 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "per_op_band_ratio": 0.0441313312, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0640982743, + "index": 1, + "metrics": { + "corr": 0.999999909, + "finite": true, + "max_abs": 0.00591921806, + "mean_abs": 0.000156664105, + "psnr_db": 90.9101891, + "ref_absmax": 9.23459816, + "rel_max": 0.000640982743, + "scaled_max_abs": 0.000640982743 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/maxpool/MaxPool_output_0" + }, + "per_op_band_ratio": 0.0640982743, + "status": "pass", + "tap": "net.maxpool" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0384577671, + "index": 2, + "metrics": { + "corr": 0.999999849, + "finite": true, + "max_abs": 0.00611925125, + "mean_abs": 0.000234829637, + "psnr_db": 92.5526304, + "ref_absmax": 15.9116135, + "rel_max": 0.000384577671, + "scaled_max_abs": 0.000384577671 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.0/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 0.0384577671, + "status": "pass", + "tap": "net.layer1.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0524185506, + "index": 3, + "metrics": { + "corr": 0.999999705, + "finite": true, + "max_abs": 0.00986480713, + "mean_abs": 0.000332652643, + "psnr_db": 90.3693126, + "ref_absmax": 18.8193054, + "rel_max": 0.000524185506, + "scaled_max_abs": 0.000524185506 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.1/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 0.0524185506, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0613549091, + "index": 4, + "metrics": { + "corr": 0.999999522, + "finite": true, + "max_abs": 0.00717830658, + "mean_abs": 0.000162431505, + "psnr_db": 90.8349286, + "ref_absmax": 11.699645, + "rel_max": 0.000613549091, + "scaled_max_abs": 0.000613549091 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.0/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 0.0613549091, + "status": "pass", + "tap": "net.layer2.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0555682387, + "index": 5, + "metrics": { + "corr": 0.999999447, + "finite": true, + "max_abs": 0.00645893812, + "mean_abs": 0.000178505766, + "psnr_db": 90.0284719, + "ref_absmax": 11.623435, + "rel_max": 0.000555682387, + "scaled_max_abs": 0.000555682387 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.1/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 0.0555682387, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0408548376, + "index": 6, + "metrics": { + "corr": 0.999999446, + "finite": true, + "max_abs": 0.00559353828, + "mean_abs": 0.000124051904, + "psnr_db": 94.267843, + "ref_absmax": 13.6912508, + "rel_max": 0.000408548376, + "scaled_max_abs": 0.000408548376 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.0/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 0.0408548376, + "status": "pass", + "tap": "net.layer3.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0652819754, + "index": 7, + "metrics": { + "corr": 0.99999922, + "finite": true, + "max_abs": 0.00543741137, + "mean_abs": 0.000147396744, + "psnr_db": 88.2202678, + "ref_absmax": 8.32911587, + "rel_max": 0.000652819754, + "scaled_max_abs": 0.000652819754 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.1/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 0.0652819754, + "status": "pass", + "tap": "net.layer3.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.141629438, + "index": 8, + "metrics": { + "corr": 0.999998468, + "finite": true, + "max_abs": 0.00864851475, + "mean_abs": 9.56121682e-05, + "psnr_db": 85.8471326, + "ref_absmax": 6.10643864, + "rel_max": 0.00141629438, + "scaled_max_abs": 0.00141629438 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.0/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 0.141629438, + "status": "pass", + "tap": "net.layer4.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.158067242, + "index": 9, + "metrics": { + "corr": 0.999998786, + "finite": true, + "max_abs": 0.0280413032, + "mean_abs": 0.000834968418, + "psnr_db": 79.9927633, + "ref_absmax": 17.7401104, + "rel_max": 0.00158067242, + "scaled_max_abs": 0.00158067242 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.1/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 0.158067242, + "status": "pass", + "tap": "net.layer4.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0816352368, + "index": 10, + "metrics": { + "corr": 0.999999318, + "finite": true, + "max_abs": 0.00890445709, + "mean_abs": 0.000658168612, + "psnr_db": 79.4337766, + "ref_absmax": 10.9076147, + "rel_max": 0.000816352368, + "scaled_max_abs": 0.000816352368 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "per_op_band_ratio": 0.0816352368, + "status": "pass", + "tap": "net.avgpool" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0544321784, + "index": 11, + "metrics": { + "corr": 0.999999467, + "finite": true, + "max_abs": 0.01258564, + "mean_abs": 0.0019200106, + "psnr_db": 83.331005, + "ref_absmax": 23.1216908, + "rel_max": 0.000544321784, + "scaled_max_abs": 0.000544321784 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "per_op_band_ratio": 0.0544321784, + "status": "pass", + "tap": "net.fc" + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_limit": 0.01, + "band_ratio": 0.057913326, + "metrics": { + "corr": 0.999999426, + "finite": true, + "max_abs": 0.0124051571, + "mean_abs": 0.00191654548, + "psnr_db": 83.1427519, + "ref_absmax": 21.4202118, + "rel_max": 0.00057913326, + "scaled_max_abs": 0.00057913326 + }, + "per_op_band_ratio": 0.057913326, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 12, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 0.0439328023, + "index": 0, + "metrics": { + "corr": 0.999999965, + "finite": true, + "max_abs": 0.00506496429, + "mean_abs": 0.000406712054, + "psnr_db": 88.0749992, + "ref_absmax": 11.5288897, + "rel_max": 0.000439328023, + "scaled_max_abs": 0.000439328023 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "per_op_band_ratio": 0.0439328023, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0650593626, + "index": 1, + "metrics": { + "corr": 0.999999901, + "finite": true, + "max_abs": 0.00547075272, + "mean_abs": 0.000153226313, + "psnr_db": 90.3189603, + "ref_absmax": 8.40886307, + "rel_max": 0.000650593626, + "scaled_max_abs": 0.000650593626 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/maxpool/MaxPool_output_0" + }, + "per_op_band_ratio": 0.0650593626, + "status": "pass", + "tap": "net.maxpool" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0506201414, + "index": 2, + "metrics": { + "corr": 0.999999831, + "finite": true, + "max_abs": 0.0086517334, + "mean_abs": 0.000236261028, + "psnr_db": 93.1783463, + "ref_absmax": 17.0914841, + "rel_max": 0.000506201414, + "scaled_max_abs": 0.000506201414 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.0/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 0.0506201414, + "status": "pass", + "tap": "net.layer1.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0535356941, + "index": 3, + "metrics": { + "corr": 0.999999662, + "finite": true, + "max_abs": 0.0100440979, + "mean_abs": 0.000337286326, + "psnr_db": 90.2185942, + "ref_absmax": 18.7614975, + "rel_max": 0.000535356941, + "scaled_max_abs": 0.000535356941 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.1/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 0.0535356941, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0610469266, + "index": 4, + "metrics": { + "corr": 0.999999468, + "finite": true, + "max_abs": 0.00679504871, + "mean_abs": 0.000164360102, + "psnr_db": 90.3342488, + "ref_absmax": 11.1308613, + "rel_max": 0.000610469266, + "scaled_max_abs": 0.000610469266 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.0/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 0.0610469266, + "status": "pass", + "tap": "net.layer2.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0629964887, + "index": 5, + "metrics": { + "corr": 0.999999391, + "finite": true, + "max_abs": 0.00716733932, + "mean_abs": 0.000177770421, + "psnr_db": 89.8777049, + "ref_absmax": 11.3773632, + "rel_max": 0.000629964887, + "scaled_max_abs": 0.000629964887 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.1/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 0.0629964887, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0475472973, + "index": 6, + "metrics": { + "corr": 0.999999383, + "finite": true, + "max_abs": 0.00567245483, + "mean_abs": 0.000124959044, + "psnr_db": 93.0830986, + "ref_absmax": 11.930131, + "rel_max": 0.000475472973, + "scaled_max_abs": 0.000475472973 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.0/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 0.0475472973, + "status": "pass", + "tap": "net.layer3.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0795143564, + "index": 7, + "metrics": { + "corr": 0.999999133, + "finite": true, + "max_abs": 0.00553123653, + "mean_abs": 0.000148407515, + "psnr_db": 86.7217411, + "ref_absmax": 6.95627403, + "rel_max": 0.000795143564, + "scaled_max_abs": 0.000795143564 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.1/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 0.0795143564, + "status": "pass", + "tap": "net.layer3.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.179190277, + "index": 8, + "metrics": { + "corr": 0.999998311, + "finite": true, + "max_abs": 0.00866341591, + "mean_abs": 9.38812919e-05, + "psnr_db": 83.9777606, + "ref_absmax": 4.8347578, + "rel_max": 0.00179190277, + "scaled_max_abs": 0.00179190277 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.0/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 0.179190277, + "status": "pass", + "tap": "net.layer4.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.131329292, + "index": 9, + "metrics": { + "corr": 0.999998568, + "finite": true, + "max_abs": 0.0277996659, + "mean_abs": 0.000860812905, + "psnr_db": 81.1920091, + "ref_absmax": 21.1679096, + "rel_max": 0.00131329292, + "scaled_max_abs": 0.00131329292 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.1/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 0.131329292, + "status": "pass", + "tap": "net.layer4.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0879095353, + "index": 10, + "metrics": { + "corr": 0.999999265, + "finite": true, + "max_abs": 0.0094127655, + "mean_abs": 0.000650968439, + "psnr_db": 79.4555287, + "ref_absmax": 10.7073317, + "rel_max": 0.000879095353, + "scaled_max_abs": 0.000879095353 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "per_op_band_ratio": 0.0879095353, + "status": "pass", + "tap": "net.avgpool" + }, + { + "band_limit": 0.01, + "band_ratio": 0.057913326, + "index": 11, + "metrics": { + "corr": 0.999999426, + "finite": true, + "max_abs": 0.0124051571, + "mean_abs": 0.00191654548, + "psnr_db": 83.1427519, + "ref_absmax": 21.4202118, + "rel_max": 0.00057913326, + "scaled_max_abs": 0.00057913326 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "per_op_band_ratio": 0.057913326, + "status": "pass", + "tap": "net.fc" + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp16", + "id": "resnet18__clean__onnx_fp16", + "model": "resnet18", + "path": "onnx", + "variant": "clean" + }, + "tap_bands_gate": true, + "verdict": "PASS" +} diff --git a/bench/verdicts_calibrated4/resnet18__clean__onnx_fp32.json b/bench/verdicts_calibrated4/resnet18__clean__onnx_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..fcb032ec5e0f405589adb18d3987380d3cb80dfc --- /dev/null +++ b/bench/verdicts_calibrated4/resnet18__clean__onnx_fp32.json @@ -0,0 +1,1179 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": false, + "note": null, + "status": "clear" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "status": "clear" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp32", + "first_divergence": null, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "0336acd37f7ef6f21e21a64d903c059312f09c05544d6ab5ed2b5c4604ad4a40", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "af9b6d09a8b83db8d9c097607605c4641ff4ba98f421f6bdd2d7193a326e55fd", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "fp32 per-tap band on near-zero probes", + "reason": "C3-2: per-tap fp32 checks gate without the near_zero probes; they are measured and reported per tap ('ungated_probes'); the output gates on all probes. C4-1: when the output has failed and no gated tap fails, they localise the first divergence (earliest tap over band on all probes)" + }, + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": null, + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.0057744222, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33514404e-05, + "mean_abs": 1.16660814e-06, + "psnr_db": 147.374179, + "ref_absmax": 23.1216908, + "rel_max": 5.7744222e-07, + "scaled_max_abs": 5.7744222e-07 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 12, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.0, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 11.5288897, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.0, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 2.11790395, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00645449252, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.96046448e-06, + "mean_abs": 1.03648297e-07, + "psnr_db": 152.802431, + "ref_absmax": 9.23459816, + "rel_max": 6.45449252e-07, + "scaled_max_abs": 6.45449252e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/maxpool/MaxPool_output_0" + }, + "status": "pass", + "tap": "net.maxpool", + "ungated_probes": { + "band_ratio": 0.00701182182, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.49011612e-06, + "mean_abs": 9.31340386e-08, + "psnr_db": 142.770503, + "ref_absmax": 2.1251483, + "rel_max": 7.01182182e-07, + "scaled_max_abs": 7.01182182e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00599357393, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-06, + "mean_abs": 2.28623993e-07, + "psnr_db": 151.909626, + "ref_absmax": 15.9116135, + "rel_max": 5.99357393e-07, + "scaled_max_abs": 5.99357393e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer1.0", + "ungated_probes": { + "band_ratio": 0.0104546191, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.09944153e-06, + "mean_abs": 3.41602528e-07, + "psnr_db": 135.958902, + "ref_absmax": 2.96466231, + "rel_max": 1.04546191e-06, + "scaled_max_abs": 1.04546191e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00785467453, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.47819519e-05, + "mean_abs": 3.5602081e-07, + "psnr_db": 149.65463, + "ref_absmax": 18.8193054, + "rel_max": 7.85467453e-07, + "scaled_max_abs": 7.85467453e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer1.1", + "ungated_probes": { + "band_ratio": 0.0506847825, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.99377537e-05, + "mean_abs": 1.18350056e-06, + "psnr_db": 126.723322, + "ref_absmax": 3.93367648, + "rel_max": 5.06847825e-06, + "scaled_max_abs": 5.06847825e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00703050473, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.22544098e-06, + "mean_abs": 1.68181236e-07, + "psnr_db": 150.833466, + "ref_absmax": 11.699645, + "rel_max": 7.03050473e-07, + "scaled_max_abs": 7.03050473e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer2.0", + "ungated_probes": { + "band_ratio": 0.0344453479, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.56654549e-06, + "mean_abs": 5.28147274e-07, + "psnr_db": 129.430246, + "ref_absmax": 2.77731133, + "rel_max": 3.44453479e-06, + "scaled_max_abs": 3.44453479e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00635868479, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.39097595e-06, + "mean_abs": 1.87650168e-07, + "psnr_db": 149.83625, + "ref_absmax": 11.623435, + "rel_max": 6.35868479e-07, + "scaled_max_abs": 6.35868479e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer2.1", + "ungated_probes": { + "band_ratio": 0.024564899, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.25467777e-05, + "mean_abs": 4.99122864e-07, + "psnr_db": 134.432516, + "ref_absmax": 5.10760403, + "rel_max": 2.4564899e-06, + "scaled_max_abs": 2.4564899e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00696557481, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-06, + "mean_abs": 1.0565963e-07, + "psnr_db": 155.913392, + "ref_absmax": 13.6912508, + "rel_max": 6.96557481e-07, + "scaled_max_abs": 6.96557481e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer3.0", + "ungated_probes": { + "band_ratio": 0.0167795697, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.39097595e-06, + "mean_abs": 2.18991145e-07, + "psnr_db": 140.166624, + "ref_absmax": 4.40474701, + "rel_max": 1.67795697e-06, + "scaled_max_abs": 1.67795697e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0135967403, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.13248825e-05, + "mean_abs": 1.25842787e-07, + "psnr_db": 149.742917, + "ref_absmax": 8.32911587, + "rel_max": 1.35967403e-06, + "scaled_max_abs": 1.35967403e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer3.1", + "ungated_probes": { + "band_ratio": 0.0222487669, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.58306885e-06, + "mean_abs": 2.21315161e-07, + "psnr_db": 138.237007, + "ref_absmax": 3.85777283, + "rel_max": 2.22487669e-06, + "scaled_max_abs": 2.22487669e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00780876034, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 7.57780122e-08, + "psnr_db": 148.743144, + "ref_absmax": 6.10643864, + "rel_max": 7.80876034e-07, + "scaled_max_abs": 7.80876034e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer4.0", + "ungated_probes": { + "band_ratio": 0.0329261457, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.94394112e-06, + "mean_abs": 1.22103744e-07, + "psnr_db": 134.365311, + "ref_absmax": 2.10894442, + "rel_max": 3.29261457e-06, + "scaled_max_abs": 3.29261457e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0166650055, + "index": 9, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.95639038e-05, + "mean_abs": 6.72978724e-07, + "psnr_db": 142.2235, + "ref_absmax": 17.7401104, + "rel_max": 1.66650055e-06, + "scaled_max_abs": 1.66650055e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer4.1", + "ungated_probes": { + "band_ratio": 0.0167701315, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.3589859e-05, + "mean_abs": 3.47767329e-07, + "psnr_db": 137.798495, + "ref_absmax": 8.10360909, + "rel_max": 1.67701315e-06, + "scaled_max_abs": 1.67701315e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00546449855, + "index": 10, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.96046448e-06, + "mean_abs": 3.96288347e-07, + "psnr_db": 143.907462, + "ref_absmax": 10.9076147, + "rel_max": 5.46449855e-07, + "scaled_max_abs": 5.46449855e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "status": "pass", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 0.00732932327, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.29153442e-06, + "mean_abs": 2.00053096e-07, + "psnr_db": 142.880439, + "ref_absmax": 5.85529423, + "rel_max": 7.32932327e-07, + "scaled_max_abs": 7.32932327e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0057744222, + "index": 11, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33514404e-05, + "mean_abs": 1.22760572e-06, + "psnr_db": 146.998678, + "ref_absmax": 23.1216908, + "rel_max": 5.7744222e-07, + "scaled_max_abs": 5.7744222e-07 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "pass", + "tap": "net.fc", + "ungated_probes": { + "band_ratio": 0.00935198959, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.24520874e-06, + "mean_abs": 7.39625073e-07, + "psnr_db": 139.284142, + "ref_absmax": 5.60865545, + "rel_max": 9.35198959e-07, + "scaled_max_abs": 9.35198959e-07 + }, + "n_probes": 4 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.00623310384, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33514404e-05, + "mean_abs": 1.17255403e-06, + "psnr_db": 146.901257, + "ref_absmax": 21.4202118, + "rel_max": 6.23310384e-07, + "scaled_max_abs": 6.23310384e-07 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 12, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.0, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 11.5288897, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.0, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 2.11790395, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0068047795, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.7220459e-06, + "mean_abs": 9.92709198e-08, + "psnr_db": 152.4428, + "ref_absmax": 8.40886307, + "rel_max": 6.8047795e-07, + "scaled_max_abs": 6.8047795e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/maxpool/MaxPool_output_0" + }, + "status": "pass", + "tap": "net.maxpool", + "ungated_probes": { + "band_ratio": 0.00701602584, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.49011612e-06, + "mean_abs": 9.30897618e-08, + "psnr_db": 142.752775, + "ref_absmax": 2.1238749, + "rel_max": 7.01602584e-07, + "scaled_max_abs": 7.01602584e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00781175021, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33514404e-05, + "mean_abs": 2.25790913e-07, + "psnr_db": 152.750581, + "ref_absmax": 17.0914841, + "rel_max": 7.81175021e-07, + "scaled_max_abs": 7.81175021e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer1.0", + "ungated_probes": { + "band_ratio": 0.0117641475, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.48687172e-06, + "mean_abs": 3.42795438e-07, + "psnr_db": 135.932253, + "ref_absmax": 2.96398163, + "rel_max": 1.17641475e-06, + "scaled_max_abs": 1.17641475e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00914966287, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.71661377e-05, + "mean_abs": 3.56863543e-07, + "psnr_db": 149.674124, + "ref_absmax": 18.7614975, + "rel_max": 9.14966287e-07, + "scaled_max_abs": 9.14966287e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer1.1", + "ungated_probes": { + "band_ratio": 0.0502709361, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.97887421e-05, + "mean_abs": 1.19605396e-06, + "psnr_db": 126.659021, + "ref_absmax": 3.93641806, + "rel_max": 5.02709361e-06, + "scaled_max_abs": 5.02709361e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00642587954, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.15255737e-06, + "mean_abs": 1.70434883e-07, + "psnr_db": 150.271873, + "ref_absmax": 11.1308613, + "rel_max": 6.42587954e-07, + "scaled_max_abs": 6.42587954e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer2.0", + "ungated_probes": { + "band_ratio": 0.0439807755, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.22264028e-05, + "mean_abs": 5.2606399e-07, + "psnr_db": 129.494095, + "ref_absmax": 2.77994251, + "rel_max": 4.39807755e-06, + "scaled_max_abs": 4.39807755e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00670576688, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.62939453e-06, + "mean_abs": 1.88401909e-07, + "psnr_db": 149.546272, + "ref_absmax": 11.3773632, + "rel_max": 6.70576688e-07, + "scaled_max_abs": 6.70576688e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer2.1", + "ungated_probes": { + "band_ratio": 0.0258818171, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.32471323e-05, + "mean_abs": 4.93638685e-07, + "psnr_db": 134.503181, + "ref_absmax": 5.11831617, + "rel_max": 2.58818171e-06, + "scaled_max_abs": 2.58818171e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00559568058, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.67572021e-06, + "mean_abs": 1.07205076e-07, + "psnr_db": 154.591684, + "ref_absmax": 11.930131, + "rel_max": 5.59568058e-07, + "scaled_max_abs": 5.59568058e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer3.0", + "ungated_probes": { + "band_ratio": 0.0156848984, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.91413879e-06, + "mean_abs": 2.1738138e-07, + "psnr_db": 140.237236, + "ref_absmax": 4.4081502, + "rel_max": 1.56848984e-06, + "scaled_max_abs": 1.56848984e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.015423251, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.07288361e-05, + "mean_abs": 1.2900221e-07, + "psnr_db": 148.038478, + "ref_absmax": 6.95627403, + "rel_max": 1.5423251e-06, + "scaled_max_abs": 1.5423251e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer3.1", + "ungated_probes": { + "band_ratio": 0.0217494921, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.40425491e-06, + "mean_abs": 2.26300265e-07, + "psnr_db": 138.00117, + "ref_absmax": 3.86411548, + "rel_max": 2.17494921e-06, + "scaled_max_abs": 2.17494921e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00881477889, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.2617321e-06, + "mean_abs": 7.52994362e-08, + "psnr_db": 146.716468, + "ref_absmax": 4.8347578, + "rel_max": 8.81477889e-07, + "scaled_max_abs": 8.81477889e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer4.0", + "ungated_probes": { + "band_ratio": 0.0399104926, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.46385956e-06, + "mean_abs": 1.23341699e-07, + "psnr_db": 134.054085, + "ref_absmax": 2.12071037, + "rel_max": 3.99104926e-06, + "scaled_max_abs": 3.99104926e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0117137368, + "index": 9, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.47955322e-05, + "mean_abs": 6.80852735e-07, + "psnr_db": 143.465601, + "ref_absmax": 21.1679096, + "rel_max": 1.17137368e-06, + "scaled_max_abs": 1.17137368e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer4.1", + "ungated_probes": { + "band_ratio": 0.0187720871, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.57356262e-05, + "mean_abs": 4.35400728e-07, + "psnr_db": 136.707345, + "ref_absmax": 8.38245964, + "rel_max": 1.87720871e-06, + "scaled_max_abs": 1.87720871e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0069027244, + "index": 10, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.39097595e-06, + "mean_abs": 3.83942114e-07, + "psnr_db": 143.55953, + "ref_absmax": 10.7073317, + "rel_max": 6.9027244e-07, + "scaled_max_abs": 6.9027244e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "status": "pass", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 0.00730979428, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.29153442e-06, + "mean_abs": 2.36831619e-07, + "psnr_db": 141.906659, + "ref_absmax": 5.87093735, + "rel_max": 7.30979428e-07, + "scaled_max_abs": 7.30979428e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00623310384, + "index": 11, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33514404e-05, + "mean_abs": 1.2217109e-06, + "psnr_db": 146.567608, + "ref_absmax": 21.4202118, + "rel_max": 6.23310384e-07, + "scaled_max_abs": 6.23310384e-07 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "pass", + "tap": "net.fc", + "ungated_probes": { + "band_ratio": 0.0108272502, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.19888306e-06, + "mean_abs": 8.28455901e-07, + "psnr_db": 138.475119, + "ref_absmax": 5.72526073, + "rel_max": 1.08272502e-06, + "scaled_max_abs": 1.08272502e-06 + }, + "n_probes": 4 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp32", + "id": "resnet18__clean__onnx_fp32", + "model": "resnet18", + "path": "onnx", + "variant": "clean" + }, + "tap_bands_gate": true, + "verdict": "PASS" +} diff --git a/bench/verdicts_calibrated4/resnet18__drop_normalize__coreml_fp16.json b/bench/verdicts_calibrated4/resnet18__drop_normalize__coreml_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..2da050bf9e3fe799b29254a265a6fa3f3ee5b255 --- /dev/null +++ b/bench/verdicts_calibrated4/resnet18__drop_normalize__coreml_fp16.json @@ -0,0 +1,1039 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "baseline": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "faithful_output_rel_max": 0.00652165202, + "output_band": 0.013043304, + "source": { + "bundle": "bundles/resnet18__clean__coreml_fp16.json", + "case": "resnet18__clean__coreml_fp16", + "digests": { + "192": { + "converted": "d6e8f11106d7868c4acdddd4c89bb934bd08cc14049682fea972c885765295e4", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "aa676247fae9c779d0ab1c7cd4fb20d3d1c91b615ff304ed67889a259a1af32e", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + } + } + }, + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "net.maxpool", + "band_limit": 0.01, + "explained_by": "no_normalize", + "nominal_band_ratio": 75.7277506, + "results": [ + { + "band_ratio": 97.3712004, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 94.4037455, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 94.5794987, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 91.1852432, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 0.398042587, + "explains": true, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [ + "inputs[0]: dtype float16 (declared float32)", + "outputs[0]: dtype float16 (declared float32)" + ], + "status": "precision_narrowing" + }, + "status": "flag" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": null, + "basis": "interface hypothesis 'no_normalize' explains the first over-band tap (net.maxpool)", + "index": 0, + "neighbourhood": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": null + }, + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 72.1404842, + "index": 1, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_7_cast_fp16" + }, + "status": "fail", + "tap": "net.maxpool" + } + ], + "observed_first_over_band": { + "index": 1, + "tap": "net.maxpool" + }, + "shape": 224, + "tap": "normalize" + }, + "fp16_floor": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "baseline": { + "bundle": "bundles/resnet18__clean__coreml_fp16.json", + "case": "resnet18__clean__coreml_fp16", + "digests": { + "192": { + "converted": "d6e8f11106d7868c4acdddd4c89bb934bd08cc14049682fea972c885765295e4", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "aa676247fae9c779d0ab1c7cd4fb20d3d1c91b615ff304ed67889a259a1af32e", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + } + }, + "envelopes_gate": true, + "faithful_output_rel_max": 0.00652165202, + "faithful_tap_rel_max": { + "net.avgpool": 0.00870158006, + "net.fc": 0.00652165202, + "net.layer1.0": 0.00480211137, + "net.layer1.1": 0.0048244139, + "net.layer2.0": 0.00485763828, + "net.layer2.1": 0.00605789942, + "net.layer3.0": 0.00577717049, + "net.layer3.1": 0.0171483417, + "net.layer4.0": 0.0243476768, + "net.layer4.1": 0.014049191, + "net.maxpool": 0.00459322342, + "normalize": 0.00117570499 + }, + "floor": 0.01, + "k": 2.0, + "output_band": 0.013043304, + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used", + "tap_envelopes": { + "net.avgpool": 0.0174031601, + "net.fc": 0.013043304, + "net.layer1.0": 0.01, + "net.layer1.1": 0.01, + "net.layer2.0": 0.01, + "net.layer2.1": 0.0121157988, + "net.layer3.0": 0.011554341, + "net.layer3.1": 0.0342966833, + "net.layer4.0": 0.0486953535, + "net.layer4.1": 0.028098382, + "net.maxpool": 0.01, + "normalize": 0.01 + } + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "43acd9206c97462a3da5c07a3ecce84ddbd3b986053f505b6e7a4c70e8ff71b1", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "933b964bf20403eb8b5da53b7b5fd6da5c0fd9ad3f32c4e61de646467826218e", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + }, + { + "item": "tap normalize @ 224", + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)" + }, + { + "item": "tap normalize @ 192", + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D3", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.0, + "band_limit": 0.013043304, + "band_ratio": 74.0707191, + "metrics": { + "corr": 0.498318572, + "finite": true, + "max_abs": 22.3384876, + "mean_abs": 1.4774095, + "psnr_db": 24.9191666, + "ref_absmax": 23.1216908, + "rel_max": 0.966126909, + "scaled_max_abs": 0.966126909 + }, + "per_op_band_ratio": 96.6126909, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 1, + "n_judged": 11, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": null + }, + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)", + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 75.2544051, + "index": 1, + "metrics": { + "corr": 0.810465522, + "finite": true, + "max_abs": 6.94944191, + "mean_abs": 0.295534491, + "psnr_db": 25.2377629, + "ref_absmax": 9.23459816, + "rel_max": 0.752544051, + "scaled_max_abs": 0.752544051 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_7_cast_fp16" + }, + "per_op_band_ratio": 75.2544051, + "status": "fail", + "tap": "net.maxpool", + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_limit": 0.01, + "band_ratio": 87.8970083, + "index": 2, + "metrics": { + "corr": 0.685507913, + "finite": true, + "max_abs": 13.9858322, + "mean_abs": 0.286138769, + "psnr_db": 29.4180593, + "ref_absmax": 15.9116135, + "rel_max": 0.878970083, + "scaled_max_abs": 0.878970083 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_19_cast_fp16" + }, + "per_op_band_ratio": 87.8970083, + "status": "fail", + "tap": "net.layer1.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 90.9661209, + "index": 3, + "metrics": { + "corr": 0.717357172, + "finite": true, + "max_abs": 17.1191921, + "mean_abs": 0.290107628, + "psnr_db": 30.6922147, + "ref_absmax": 18.8193054, + "rel_max": 0.909661209, + "scaled_max_abs": 0.909661209 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_31_cast_fp16" + }, + "per_op_band_ratio": 90.9661209, + "status": "fail", + "tap": "net.layer1.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 83.4062808, + "index": 4, + "metrics": { + "corr": 0.749834613, + "finite": true, + "max_abs": 9.75823879, + "mean_abs": 0.109417223, + "psnr_db": 34.1085212, + "ref_absmax": 11.699645, + "rel_max": 0.834062808, + "scaled_max_abs": 0.834062808 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_45_cast_fp16" + }, + "per_op_band_ratio": 83.4062808, + "status": "fail", + "tap": "net.layer2.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.0121157988, + "band_ratio": 69.9012678, + "index": 5, + "metrics": { + "corr": 0.711042055, + "finite": true, + "max_abs": 9.84399986, + "mean_abs": 0.11280135, + "psnr_db": 33.3802032, + "ref_absmax": 11.623435, + "rel_max": 0.8469097, + "scaled_max_abs": 0.8469097 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_57_cast_fp16" + }, + "per_op_band_ratio": 84.69097, + "status": "fail", + "tap": "net.layer2.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.011554341, + "band_ratio": 76.9235088, + "index": 6, + "metrics": { + "corr": 0.589927035, + "finite": true, + "max_abs": 12.1687899, + "mean_abs": 0.0835549048, + "psnr_db": 36.5014098, + "ref_absmax": 13.6912508, + "rel_max": 0.888800449, + "scaled_max_abs": 0.888800449 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_71_cast_fp16" + }, + "per_op_band_ratio": 88.8800449, + "status": "fail", + "tap": "net.layer3.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.0342966833, + "band_ratio": 27.1865122, + "index": 7, + "metrics": { + "corr": 0.616883459, + "finite": true, + "max_abs": 7.76612759, + "mean_abs": 0.0894692328, + "psnr_db": 32.1678233, + "ref_absmax": 8.32911587, + "rel_max": 0.932407198, + "scaled_max_abs": 0.932407198 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_83_cast_fp16" + }, + "per_op_band_ratio": 93.2407198, + "status": "fail", + "tap": "net.layer3.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.0486953535, + "band_ratio": 20.5358402, + "index": 8, + "metrics": { + "corr": 0.463878354, + "finite": true, + "max_abs": 6.10643864, + "mean_abs": 0.0550177105, + "psnr_db": 31.4848798, + "ref_absmax": 6.10643864, + "rel_max": 1.0, + "scaled_max_abs": 1.0 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_97_cast_fp16" + }, + "per_op_band_ratio": 100.0, + "status": "fail", + "tap": "net.layer4.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.028098382, + "band_ratio": 35.5892378, + "index": 9, + "metrics": { + "corr": 0.380011038, + "finite": true, + "max_abs": 17.7401104, + "mean_abs": 0.512283357, + "psnr_db": 24.1840474, + "ref_absmax": 17.7401104, + "rel_max": 1.0, + "scaled_max_abs": 1.0 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_109_cast_fp16" + }, + "per_op_band_ratio": 100.0, + "status": "fail", + "tap": "net.layer4.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.0174031601, + "band_ratio": 55.239289, + "index": 10, + "metrics": { + "corr": 0.42832947, + "finite": true, + "max_abs": 10.4859066, + "mean_abs": 0.466689478, + "psnr_db": 21.3632796, + "ref_absmax": 10.9076147, + "rel_max": 0.961338192, + "scaled_max_abs": 0.961338192 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "per_op_band_ratio": 96.1338192, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.013043304, + "band_ratio": 74.0707191, + "index": 11, + "metrics": { + "corr": 0.498318572, + "finite": true, + "max_abs": 22.3384876, + "mean_abs": 1.4774095, + "psnr_db": 24.9191666, + "ref_absmax": 23.1216908, + "rel_max": 0.966126909, + "scaled_max_abs": 0.966126909 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "per_op_band_ratio": 96.6126909, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.0, + "band_limit": 0.013043304, + "band_ratio": 70.2677344, + "metrics": { + "corr": 0.500958333, + "finite": true, + "max_abs": 19.6321259, + "mean_abs": 1.42092132, + "psnr_db": 24.9608657, + "ref_absmax": 21.4202118, + "rel_max": 0.916523424, + "scaled_max_abs": 0.916523424 + }, + "per_op_band_ratio": 91.6523424, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 1, + "n_judged": 11, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": null + }, + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)", + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 72.1404842, + "index": 1, + "metrics": { + "corr": 0.806059827, + "finite": true, + "max_abs": 6.06619453, + "mean_abs": 0.277438917, + "psnr_db": 25.0989216, + "ref_absmax": 8.40886307, + "rel_max": 0.721404842, + "scaled_max_abs": 0.721404842 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_7_cast_fp16" + }, + "per_op_band_ratio": 72.1404842, + "status": "fail", + "tap": "net.maxpool", + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_limit": 0.01, + "band_ratio": 86.2298931, + "index": 2, + "metrics": { + "corr": 0.68393002, + "finite": true, + "max_abs": 14.7379684, + "mean_abs": 0.271089136, + "psnr_db": 30.5936541, + "ref_absmax": 17.0914841, + "rel_max": 0.862298931, + "scaled_max_abs": 0.862298931 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_19_cast_fp16" + }, + "per_op_band_ratio": 86.2298931, + "status": "fail", + "tap": "net.layer1.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 87.799931, + "index": 3, + "metrics": { + "corr": 0.716842377, + "finite": true, + "max_abs": 16.4725819, + "mean_abs": 0.275028101, + "psnr_db": 31.1788798, + "ref_absmax": 18.7614975, + "rel_max": 0.87799931, + "scaled_max_abs": 0.87799931 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_31_cast_fp16" + }, + "per_op_band_ratio": 87.799931, + "status": "fail", + "tap": "net.layer1.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 82.3565568, + "index": 4, + "metrics": { + "corr": 0.750219194, + "finite": true, + "max_abs": 9.16699409, + "mean_abs": 0.105256621, + "psnr_db": 34.0941981, + "ref_absmax": 11.1308613, + "rel_max": 0.823565568, + "scaled_max_abs": 0.823565568 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_45_cast_fp16" + }, + "per_op_band_ratio": 82.3565568, + "status": "fail", + "tap": "net.layer2.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.0121157988, + "band_ratio": 68.1979262, + "index": 5, + "metrics": { + "corr": 0.712386598, + "finite": true, + "max_abs": 9.4008007, + "mean_abs": 0.107105825, + "psnr_db": 33.6771759, + "ref_absmax": 11.3773632, + "rel_max": 0.826272356, + "scaled_max_abs": 0.826272356 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_57_cast_fp16" + }, + "per_op_band_ratio": 82.6272356, + "status": "fail", + "tap": "net.layer2.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.011554341, + "band_ratio": 77.8832059, + "index": 6, + "metrics": { + "corr": 0.612670118, + "finite": true, + "max_abs": 10.735795, + "mean_abs": 0.0787880834, + "psnr_db": 35.967785, + "ref_absmax": 11.930131, + "rel_max": 0.899889118, + "scaled_max_abs": 0.899889118 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_71_cast_fp16" + }, + "per_op_band_ratio": 89.9889118, + "status": "fail", + "tap": "net.layer3.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.0342966833, + "band_ratio": 24.6321416, + "index": 7, + "metrics": { + "corr": 0.647719677, + "finite": true, + "max_abs": 5.87666559, + "mean_abs": 0.0838244737, + "psnr_db": 31.4061422, + "ref_absmax": 6.95627403, + "rel_max": 0.84480076, + "scaled_max_abs": 0.84480076 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_83_cast_fp16" + }, + "per_op_band_ratio": 84.480076, + "status": "fail", + "tap": "net.layer3.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.0486953535, + "band_ratio": 20.2724428, + "index": 8, + "metrics": { + "corr": 0.493667427, + "finite": true, + "max_abs": 4.77274609, + "mean_abs": 0.0506589114, + "psnr_db": 30.1825707, + "ref_absmax": 4.8347578, + "rel_max": 0.987173769, + "scaled_max_abs": 0.987173769 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_97_cast_fp16" + }, + "per_op_band_ratio": 98.7173769, + "status": "fail", + "tap": "net.layer4.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.028098382, + "band_ratio": 34.702624, + "index": 9, + "metrics": { + "corr": 0.3829061, + "finite": true, + "max_abs": 20.6405659, + "mean_abs": 0.494019433, + "psnr_db": 26.0572067, + "ref_absmax": 21.1679096, + "rel_max": 0.975087585, + "scaled_max_abs": 0.975087585 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_109_cast_fp16" + }, + "per_op_band_ratio": 97.5087585, + "status": "fail", + "tap": "net.layer4.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.0174031601, + "band_ratio": 56.5712169, + "index": 10, + "metrics": { + "corr": 0.431615939, + "finite": true, + "max_abs": 10.5415602, + "mean_abs": 0.444597535, + "psnr_db": 21.6528843, + "ref_absmax": 10.7073317, + "rel_max": 0.984517946, + "scaled_max_abs": 0.984517946 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "per_op_band_ratio": 98.4517946, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.013043304, + "band_ratio": 70.2677344, + "index": 11, + "metrics": { + "corr": 0.500958333, + "finite": true, + "max_abs": 19.6321259, + "mean_abs": 1.42092132, + "psnr_db": 24.9608657, + "ref_absmax": 21.4202118, + "rel_max": 0.916523424, + "scaled_max_abs": 0.916523424 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "per_op_band_ratio": 91.6523424, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp16", + "id": "resnet18__drop_normalize__coreml_fp16", + "model": "resnet18", + "path": "coreml", + "variant": "drop_normalize" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/resnet18__drop_normalize__coreml_fp32.json b/bench/verdicts_calibrated4/resnet18__drop_normalize__coreml_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..e671f4ad9b1e126f45b8676affe4ab0b632b6f55 --- /dev/null +++ b/bench/verdicts_calibrated4/resnet18__drop_normalize__coreml_fp32.json @@ -0,0 +1,1297 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "net.maxpool", + "explained_by": "no_normalize", + "nominal_band_ratio": 7572.13723, + "results": [ + { + "band_ratio": 9737.69044, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 9440.2275, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 9460.60722, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 9120.15785, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 0.00457382212, + "explains": true, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "flag" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": null, + "basis": "interface hypothesis 'no_normalize' explains the first over-band tap (net.maxpool)", + "index": 0, + "neighbourhood": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": null + }, + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 7213.44081, + "index": 1, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_7" + }, + "status": "fail", + "tap": "net.maxpool" + } + ], + "observed_first_over_band": { + "index": 1, + "tap": "net.maxpool" + }, + "shape": 224, + "tap": "normalize" + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "8179ed8a0dc89af98cb8147feaff8760c529e43fadb67437b05b7665b2b4deab", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "54d19b3869ed02ee0872694fffb2c33a12332f9dbe5f78c7faa2e005dcd5381b", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "fp32 per-tap band on near-zero probes", + "reason": "C3-2: per-tap fp32 checks gate without the near_zero probes; they are measured and reported per tap ('ungated_probes'); the output gates on all probes. C4-1: when the output has failed and no gated tap fails, they localise the first divergence (earliest tap over band on all probes)" + }, + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + }, + { + "item": "tap normalize @ 224", + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)" + }, + { + "item": "tap normalize @ 192", + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D3", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.0, + "band_ratio": 9651.55618, + "metrics": { + "corr": 0.498004447, + "finite": true, + "max_abs": 22.3160297, + "mean_abs": 1.47798919, + "psnr_db": 24.9171897, + "ref_absmax": 23.1216908, + "rel_max": 0.965155618, + "scaled_max_abs": 0.965155618 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 1, + "n_judged": 11, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": null + }, + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)", + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 7524.41864, + "index": 1, + "metrics": { + "corr": 0.82657624, + "finite": true, + "max_abs": 6.94849825, + "mean_abs": 0.311852139, + "psnr_db": 24.7923041, + "ref_absmax": 9.23459816, + "rel_max": 0.752441864, + "scaled_max_abs": 0.752441864 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_7" + }, + "status": "fail", + "tap": "net.maxpool", + "ungated_probes": { + "band_ratio": 8578.37514, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.534408001, + "finite": true, + "max_abs": 1.82303193, + "mean_abs": 0.181530332, + "psnr_db": 18.58625, + "ref_absmax": 2.1251483, + "rel_max": 0.857837514, + "scaled_max_abs": 0.857837514 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_ratio": 8789.06881, + "index": 2, + "metrics": { + "corr": 0.69612002, + "finite": true, + "max_abs": 13.9848266, + "mean_abs": 0.298007122, + "psnr_db": 28.9797393, + "ref_absmax": 15.9116135, + "rel_max": 0.878906881, + "scaled_max_abs": 0.878906881 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_19" + }, + "status": "fail", + "tap": "net.layer1.0", + "ungated_probes": { + "band_ratio": 7919.79699, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.554093106, + "finite": true, + "max_abs": 2.34795237, + "mean_abs": 0.202546256, + "psnr_db": 20.7463388, + "ref_absmax": 2.96466231, + "rel_max": 0.791979699, + "scaled_max_abs": 0.791979699 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9097.67057, + "index": 3, + "metrics": { + "corr": 0.718462378, + "finite": true, + "max_abs": 17.1211841, + "mean_abs": 0.31000063, + "psnr_db": 30.2126666, + "ref_absmax": 18.8193054, + "rel_max": 0.909767057, + "scaled_max_abs": 0.909767057 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_31" + }, + "status": "fail", + "tap": "net.layer1.1", + "ungated_probes": { + "band_ratio": 9683.31051, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.797234658, + "finite": true, + "max_abs": 3.80910108, + "mean_abs": 0.150221233, + "psnr_db": 24.5342764, + "ref_absmax": 3.93367648, + "rel_max": 0.968331051, + "scaled_max_abs": 0.968331051 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 8345.50276, + "index": 4, + "metrics": { + "corr": 0.752866983, + "finite": true, + "max_abs": 9.763942, + "mean_abs": 0.114765088, + "psnr_db": 33.7039905, + "ref_absmax": 11.699645, + "rel_max": 0.834550276, + "scaled_max_abs": 0.834550276 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_45" + }, + "status": "fail", + "tap": "net.layer2.0", + "ungated_probes": { + "band_ratio": 5668.44095, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.710368652, + "finite": true, + "max_abs": 1.57430252, + "mean_abs": 0.0716969107, + "psnr_db": 26.6418776, + "ref_absmax": 2.77731133, + "rel_max": 0.566844095, + "scaled_max_abs": 0.566844095 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 8464.0763, + "index": 5, + "metrics": { + "corr": 0.707549181, + "finite": true, + "max_abs": 9.83816409, + "mean_abs": 0.12071614, + "psnr_db": 32.9193574, + "ref_absmax": 11.623435, + "rel_max": 0.84640763, + "scaled_max_abs": 0.84640763 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_57" + }, + "status": "fail", + "tap": "net.layer2.1", + "ungated_probes": { + "band_ratio": 3092.22517, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.810508564, + "finite": true, + "max_abs": 1.57938617, + "mean_abs": 0.0574159, + "psnr_db": 32.8923703, + "ref_absmax": 5.10760403, + "rel_max": 0.309222517, + "scaled_max_abs": 0.309222517 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 8893.23076, + "index": 6, + "metrics": { + "corr": 0.57400172, + "finite": true, + "max_abs": 12.1759453, + "mean_abs": 0.0875420589, + "psnr_db": 36.0676228, + "ref_absmax": 13.6912508, + "rel_max": 0.889323076, + "scaled_max_abs": 0.889323076 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_71" + }, + "status": "fail", + "tap": "net.layer3.0", + "ungated_probes": { + "band_ratio": 2628.65688, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.834761329, + "finite": true, + "max_abs": 1.15785685, + "mean_abs": 0.0557386956, + "psnr_db": 32.4033438, + "ref_absmax": 4.40474701, + "rel_max": 0.262865688, + "scaled_max_abs": 0.262865688 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9325.31465, + "index": 7, + "metrics": { + "corr": 0.590542474, + "finite": true, + "max_abs": 7.76716262, + "mean_abs": 0.0946466998, + "psnr_db": 31.7284534, + "ref_absmax": 8.32911587, + "rel_max": 0.932531465, + "scaled_max_abs": 0.932531465 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_83" + }, + "status": "fail", + "tap": "net.layer3.1", + "ungated_probes": { + "band_ratio": 3393.24257, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.888681379, + "finite": true, + "max_abs": 1.3090359, + "mean_abs": 0.0532013079, + "psnr_db": 31.486342, + "ref_absmax": 3.85777283, + "rel_max": 0.339324257, + "scaled_max_abs": 0.339324257 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10000.0, + "index": 8, + "metrics": { + "corr": 0.450209294, + "finite": true, + "max_abs": 6.10643864, + "mean_abs": 0.058138711, + "psnr_db": 31.1109868, + "ref_absmax": 6.10643864, + "rel_max": 1.0, + "scaled_max_abs": 1.0 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_97" + }, + "status": "fail", + "tap": "net.layer4.0", + "ungated_probes": { + "band_ratio": 7897.39427, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.648928016, + "finite": true, + "max_abs": 1.66551656, + "mean_abs": 0.0330545156, + "psnr_db": 26.5820136, + "ref_absmax": 2.10894442, + "rel_max": 0.789739427, + "scaled_max_abs": 0.789739427 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10000.0, + "index": 9, + "metrics": { + "corr": 0.373390172, + "finite": true, + "max_abs": 17.7401104, + "mean_abs": 0.559677445, + "psnr_db": 23.7511595, + "ref_absmax": 17.7401104, + "rel_max": 1.0, + "scaled_max_abs": 1.0 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_109" + }, + "status": "fail", + "tap": "net.layer4.1", + "ungated_probes": { + "band_ratio": 9206.81029, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.453839837, + "finite": true, + "max_abs": 7.46083915, + "mean_abs": 0.182035884, + "psnr_db": 23.0589108, + "ref_absmax": 8.10360909, + "rel_max": 0.920681029, + "scaled_max_abs": 0.920681029 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9614.2291, + "index": 10, + "metrics": { + "corr": 0.42159182, + "finite": true, + "max_abs": 10.4868307, + "mean_abs": 0.509764474, + "psnr_db": 20.9427133, + "ref_absmax": 10.9076147, + "rel_max": 0.96142291, + "scaled_max_abs": 0.96142291 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 7799.12678, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.483936225, + "finite": true, + "max_abs": 4.5666182, + "mean_abs": 0.166256385, + "psnr_db": 21.3138463, + "ref_absmax": 5.85529423, + "rel_max": 0.779912678, + "scaled_max_abs": 0.779912678 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9651.55618, + "index": 11, + "metrics": { + "corr": 0.500339342, + "finite": true, + "max_abs": 22.3160297, + "mean_abs": 1.55159805, + "psnr_db": 24.528553, + "ref_absmax": 23.1216908, + "rel_max": 0.965155618, + "scaled_max_abs": 0.965155618 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc", + "ungated_probes": { + "band_ratio": 8157.0625, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.529859852, + "finite": true, + "max_abs": 4.57501531, + "mean_abs": 0.962727181, + "psnr_db": 17.1090613, + "ref_absmax": 5.60865545, + "rel_max": 0.81570625, + "scaled_max_abs": 0.81570625 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.0, + "band_ratio": 9167.75881, + "metrics": { + "corr": 0.500810571, + "finite": true, + "max_abs": 19.6375335, + "mean_abs": 1.4214616, + "psnr_db": 24.9592093, + "ref_absmax": 21.4202118, + "rel_max": 0.916775881, + "scaled_max_abs": 0.916775881 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 1, + "n_judged": 11, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": null + }, + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)", + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 7213.44081, + "index": 1, + "metrics": { + "corr": 0.822997158, + "finite": true, + "max_abs": 6.0656836, + "mean_abs": 0.291297115, + "psnr_db": 24.6734161, + "ref_absmax": 8.40886307, + "rel_max": 0.721344081, + "scaled_max_abs": 0.721344081 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_7" + }, + "status": "fail", + "tap": "net.maxpool", + "ungated_probes": { + "band_ratio": 8579.49107, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.537322169, + "finite": true, + "max_abs": 1.82217658, + "mean_abs": 0.180685468, + "psnr_db": 18.6635087, + "ref_absmax": 2.1238749, + "rel_max": 0.857949107, + "scaled_max_abs": 0.857949107 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 8620.68401, + "index": 2, + "metrics": { + "corr": 0.694449043, + "finite": true, + "max_abs": 14.7340283, + "mean_abs": 0.281034897, + "psnr_db": 30.171544, + "ref_absmax": 17.0914841, + "rel_max": 0.862068401, + "scaled_max_abs": 0.862068401 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_19" + }, + "status": "fail", + "tap": "net.layer1.0", + "ungated_probes": { + "band_ratio": 7924.11019, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.556600716, + "finite": true, + "max_abs": 2.3486917, + "mean_abs": 0.200948339, + "psnr_db": 20.8374266, + "ref_absmax": 2.96398163, + "rel_max": 0.792411019, + "scaled_max_abs": 0.792411019 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 8784.71496, + "index": 3, + "metrics": { + "corr": 0.717157711, + "finite": true, + "max_abs": 16.4814408, + "mean_abs": 0.293192677, + "psnr_db": 30.7073055, + "ref_absmax": 18.7614975, + "rel_max": 0.878471496, + "scaled_max_abs": 0.878471496 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_31" + }, + "status": "fail", + "tap": "net.layer1.1", + "ungated_probes": { + "band_ratio": 9686.69557, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.802867332, + "finite": true, + "max_abs": 3.81308834, + "mean_abs": 0.14724485, + "psnr_db": 24.7311541, + "ref_absmax": 3.93641806, + "rel_max": 0.968669557, + "scaled_max_abs": 0.968669557 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 8236.16033, + "index": 4, + "metrics": { + "corr": 0.753228156, + "finite": true, + "max_abs": 9.16755581, + "mean_abs": 0.110243665, + "psnr_db": 33.6998622, + "ref_absmax": 11.1308613, + "rel_max": 0.823616033, + "scaled_max_abs": 0.823616033 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_45" + }, + "status": "fail", + "tap": "net.layer2.0", + "ungated_probes": { + "band_ratio": 5657.93755, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.712758849, + "finite": true, + "max_abs": 1.57287411, + "mean_abs": 0.0700371631, + "psnr_db": 26.8338812, + "ref_absmax": 2.77994251, + "rel_max": 0.565793755, + "scaled_max_abs": 0.565793755 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 8262.43417, + "index": 5, + "metrics": { + "corr": 0.708599076, + "finite": true, + "max_abs": 9.40047145, + "mean_abs": 0.114553523, + "psnr_db": 33.2221727, + "ref_absmax": 11.3773632, + "rel_max": 0.826243417, + "scaled_max_abs": 0.826243417 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_57" + }, + "status": "fail", + "tap": "net.layer2.1", + "ungated_probes": { + "band_ratio": 3079.55799, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.813357451, + "finite": true, + "max_abs": 1.57621515, + "mean_abs": 0.0548625741, + "psnr_db": 33.2279251, + "ref_absmax": 5.11831617, + "rel_max": 0.307955799, + "scaled_max_abs": 0.307955799 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 8997.51564, + "index": 6, + "metrics": { + "corr": 0.597823167, + "finite": true, + "max_abs": 10.734154, + "mean_abs": 0.0824557397, + "psnr_db": 35.5446173, + "ref_absmax": 11.930131, + "rel_max": 0.899751564, + "scaled_max_abs": 0.899751564 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_71" + }, + "status": "fail", + "tap": "net.layer3.0", + "ungated_probes": { + "band_ratio": 2631.04584, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.835011571, + "finite": true, + "max_abs": 1.15980452, + "mean_abs": 0.0531209404, + "psnr_db": 32.7899888, + "ref_absmax": 4.4081502, + "rel_max": 0.263104584, + "scaled_max_abs": 0.263104584 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 8448.0076, + "index": 7, + "metrics": { + "corr": 0.624962635, + "finite": true, + "max_abs": 5.87666559, + "mean_abs": 0.0884236701, + "psnr_db": 30.9817067, + "ref_absmax": 6.95627403, + "rel_max": 0.84480076, + "scaled_max_abs": 0.84480076 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_83" + }, + "status": "fail", + "tap": "net.layer3.1", + "ungated_probes": { + "band_ratio": 3378.37669, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.884855407, + "finite": true, + "max_abs": 1.30544376, + "mean_abs": 0.0517945851, + "psnr_db": 31.8248208, + "ref_absmax": 3.86411548, + "rel_max": 0.337837669, + "scaled_max_abs": 0.337837669 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9853.54417, + "index": 8, + "metrics": { + "corr": 0.482044311, + "finite": true, + "max_abs": 4.76394996, + "mean_abs": 0.0535384235, + "psnr_db": 29.8165172, + "ref_absmax": 4.8347578, + "rel_max": 0.985354417, + "scaled_max_abs": 0.985354417 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_97" + }, + "status": "fail", + "tap": "net.layer4.0", + "ungated_probes": { + "band_ratio": 7900.77049, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.655727085, + "finite": true, + "max_abs": 1.67552459, + "mean_abs": 0.0304611941, + "psnr_db": 27.2195849, + "ref_absmax": 2.12071037, + "rel_max": 0.790077049, + "scaled_max_abs": 0.790077049 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9751.84218, + "index": 9, + "metrics": { + "corr": 0.376321501, + "finite": true, + "max_abs": 20.6426114, + "mean_abs": 0.536010438, + "psnr_db": 25.649279, + "ref_absmax": 21.1679096, + "rel_max": 0.975184218, + "scaled_max_abs": 0.975184218 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_109" + }, + "status": "fail", + "tap": "net.layer4.1", + "ungated_probes": { + "band_ratio": 9571.23017, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.470581601, + "finite": true, + "max_abs": 8.02304506, + "mean_abs": 0.201187927, + "psnr_db": 23.0978797, + "ref_absmax": 8.38245964, + "rel_max": 0.957123017, + "scaled_max_abs": 0.957123017 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9850.35915, + "index": 10, + "metrics": { + "corr": 0.424361212, + "finite": true, + "max_abs": 10.5471062, + "mean_abs": 0.482510852, + "psnr_db": 21.2547588, + "ref_absmax": 10.7073317, + "rel_max": 0.985035915, + "scaled_max_abs": 0.985035915 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 7463.33549, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.507522081, + "finite": true, + "max_abs": 4.38167751, + "mean_abs": 0.179925199, + "psnr_db": 21.2862963, + "ref_absmax": 5.87093735, + "rel_max": 0.746333549, + "scaled_max_abs": 0.746333549 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9167.75881, + "index": 11, + "metrics": { + "corr": 0.501169373, + "finite": true, + "max_abs": 19.6375335, + "mean_abs": 1.48249262, + "psnr_db": 24.5939636, + "ref_absmax": 21.4202118, + "rel_max": 0.916775881, + "scaled_max_abs": 0.916775881 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc", + "ungated_probes": { + "band_ratio": 7963.40985, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.555835725, + "finite": true, + "max_abs": 4.55925977, + "mean_abs": 0.99424445, + "psnr_db": 17.113749, + "ref_absmax": 5.72526073, + "rel_max": 0.796340985, + "scaled_max_abs": 0.796340985 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp32", + "id": "resnet18__drop_normalize__coreml_fp32", + "model": "resnet18", + "path": "coreml", + "variant": "drop_normalize" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/resnet18__drop_normalize__litert_fp16.json b/bench/verdicts_calibrated4/resnet18__drop_normalize__litert_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..cd42435bb273089a7424cd19d092b28768d0da5a --- /dev/null +++ b/bench/verdicts_calibrated4/resnet18__drop_normalize__litert_fp16.json @@ -0,0 +1,1160 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "baseline": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "faithful_output_rel_max": 0.000479681862, + "output_band": 0.01, + "source": { + "bundle": "bundles/resnet18__clean__litert_fp16.json", + "case": "resnet18__clean__litert_fp16", + "digests": { + "192": { + "converted": "5518083a49acade5bb9995f1d28be7f32b0a23e8e42c5e39dfdbe59cfc6b794d", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "8d2974be0ffdfd9646dac16768c8f2eaa45593bd0207920e3d4230bc7750498d", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + } + } + }, + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "net.maxpool", + "band_limit": 0.01, + "explained_by": "no_normalize", + "nominal_band_ratio": 75.7215732, + "results": [ + { + "band_ratio": 97.377358, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 94.4023213, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 94.6086333, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 91.2021367, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 0.0286021108, + "explains": true, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "flag" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 0.000165520438, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-05, + "mean_abs": 1.59931125e-06, + "psnr_db": 136.419111, + "ref_absmax": 8.6425066, + "rel_max": 1.65520438e-06, + "scaled_max_abs": 1.65520438e-06 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 25, + "outputs": [ + "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models.res", + "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.linear.Linear_fc;1_dequant", + "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.B", + "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.B" + ] + }, + { + "inputs": 43, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 2, + "n_ops_total": 58, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": null, + "basis": "interface hypothesis 'no_normalize' explains the first over-band tap (net.maxpool)", + "index": 0, + "neighbourhood": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": null + }, + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 72.1345995, + "index": 1, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.MaxPool2d_maxpool;2" + }, + "status": "fail", + "tap": "net.maxpool" + } + ], + "observed_first_over_band": { + "index": 1, + "tap": "net.maxpool" + }, + "shape": 224, + "tap": "normalize" + }, + "fp16_floor": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "baseline": { + "bundle": "bundles/resnet18__clean__litert_fp16.json", + "case": "resnet18__clean__litert_fp16", + "digests": { + "192": { + "converted": "5518083a49acade5bb9995f1d28be7f32b0a23e8e42c5e39dfdbe59cfc6b794d", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "8d2974be0ffdfd9646dac16768c8f2eaa45593bd0207920e3d4230bc7750498d", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + } + }, + "envelopes_gate": true, + "faithful_output_rel_max": 0.000479681862, + "faithful_tap_rel_max": { + "net.avgpool": 0.000675608743, + "net.fc": 0.000479681862, + "net.layer1.0": 0.000285533862, + "net.layer1.1": 0.000262599506, + "net.layer2.0": 0.000592551772, + "net.layer2.1": 0.000620361493, + "net.layer3.0": 0.000279544214, + "net.layer3.1": 0.000620957223, + "net.layer4.0": 0.0015225034, + "net.layer4.1": 0.00121889732, + "net.maxpool": 0.000583793374, + "normalize": 8.27203959e-08 + }, + "floor": 0.01, + "k": 2.0, + "output_band": 0.01, + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used", + "tap_envelopes": { + "net.avgpool": 0.01, + "net.fc": 0.01, + "net.layer1.0": 0.01, + "net.layer1.1": 0.01, + "net.layer2.0": 0.01, + "net.layer2.1": 0.01, + "net.layer3.0": 0.01, + "net.layer3.1": 0.01, + "net.layer4.0": 0.01, + "net.layer4.1": 0.01, + "net.maxpool": 0.01, + "normalize": 0.01 + } + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "43bedc205e3283436461e451c82c21fe3e246ec3aac355ea947aeae52bc17066", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "632f0c1ce60d28d258118ca682a819464a6c7f6e1c6382fc79ec42912946899b", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "tap normalize @ 224", + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)" + }, + { + "item": "tap normalize @ 192", + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D3", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.0, + "band_limit": 0.01, + "band_ratio": 96.5213592, + "metrics": { + "corr": 0.497883932, + "finite": true, + "max_abs": 22.3173702, + "mean_abs": 1.47817217, + "psnr_db": 24.9164882, + "ref_absmax": 23.1216908, + "rel_max": 0.965213592, + "scaled_max_abs": 0.965213592 + }, + "per_op_band_ratio": 96.5213592, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 1, + "n_judged": 11, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": null + }, + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)", + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 75.2451313, + "index": 1, + "metrics": { + "corr": 0.810482799, + "finite": true, + "max_abs": 6.94858551, + "mean_abs": 0.295556683, + "psnr_db": 25.2372939, + "ref_absmax": 9.23459816, + "rel_max": 0.752451313, + "scaled_max_abs": 0.752451313 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.MaxPool2d_maxpool;2" + }, + "per_op_band_ratio": 75.2451313, + "status": "fail", + "tap": "net.maxpool", + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_limit": 0.01, + "band_ratio": 87.8903135, + "index": 2, + "metrics": { + "corr": 0.685621013, + "finite": true, + "max_abs": 13.984767, + "mean_abs": 0.286072464, + "psnr_db": 29.4184966, + "ref_absmax": 15.9116135, + "rel_max": 0.878903135, + "scaled_max_abs": 0.878903135 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 87.8903135, + "status": "fail", + "tap": "net.layer1.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 90.9758316, + "index": 3, + "metrics": { + "corr": 0.717400079, + "finite": true, + "max_abs": 17.1210196, + "mean_abs": 0.290031865, + "psnr_db": 30.6933715, + "ref_absmax": 18.8193054, + "rel_max": 0.909758316, + "scaled_max_abs": 0.909758316 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 90.9758316, + "status": "fail", + "tap": "net.layer1.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 83.4546669, + "index": 4, + "metrics": { + "corr": 0.749891214, + "finite": true, + "max_abs": 9.7638998, + "mean_abs": 0.10937767, + "psnr_db": 34.1099211, + "ref_absmax": 11.699645, + "rel_max": 0.834546669, + "scaled_max_abs": 0.834546669 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 83.4546669, + "status": "fail", + "tap": "net.layer2.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 84.6386718, + "index": 5, + "metrics": { + "corr": 0.711010142, + "finite": true, + "max_abs": 9.83792102, + "mean_abs": 0.112803531, + "psnr_db": 33.3804492, + "ref_absmax": 11.623435, + "rel_max": 0.846386718, + "scaled_max_abs": 0.846386718 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 84.6386718, + "status": "fail", + "tap": "net.layer2.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 88.9308971, + "index": 6, + "metrics": { + "corr": 0.5898486, + "finite": true, + "max_abs": 12.1757522, + "mean_abs": 0.0835701148, + "psnr_db": 36.5007017, + "ref_absmax": 13.6912508, + "rel_max": 0.889308971, + "scaled_max_abs": 0.889308971 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 88.9308971, + "status": "fail", + "tap": "net.layer3.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 93.2589881, + "index": 7, + "metrics": { + "corr": 0.61713966, + "finite": true, + "max_abs": 7.76764917, + "mean_abs": 0.0894724931, + "psnr_db": 32.1698896, + "ref_absmax": 8.32911587, + "rel_max": 0.932589881, + "scaled_max_abs": 0.932589881 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 93.2589881, + "status": "fail", + "tap": "net.layer3.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 100.0, + "index": 8, + "metrics": { + "corr": 0.463898844, + "finite": true, + "max_abs": 6.10643864, + "mean_abs": 0.0550040936, + "psnr_db": 31.4857781, + "ref_absmax": 6.10643864, + "rel_max": 1.0, + "scaled_max_abs": 1.0 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 100.0, + "status": "fail", + "tap": "net.layer4.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 100.0, + "index": 9, + "metrics": { + "corr": 0.379320491, + "finite": true, + "max_abs": 17.7401104, + "mean_abs": 0.512501494, + "psnr_db": 24.1810642, + "ref_absmax": 17.7401104, + "rel_max": 1.0, + "scaled_max_abs": 1.0 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 100.0, + "status": "fail", + "tap": "net.layer4.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 96.1421557, + "index": 10, + "metrics": { + "corr": 0.427683536, + "finite": true, + "max_abs": 10.4868159, + "mean_abs": 0.466878214, + "psnr_db": 21.3605371, + "ref_absmax": 10.9076147, + "rel_max": 0.961421557, + "scaled_max_abs": 0.961421557 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;1" + }, + "per_op_band_ratio": 96.1421557, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 96.5213592, + "index": 11, + "metrics": { + "corr": 0.497883932, + "finite": true, + "max_abs": 22.3173702, + "mean_abs": 1.47817217, + "psnr_db": 24.9164882, + "ref_absmax": 23.1216908, + "rel_max": 0.965213592, + "scaled_max_abs": 0.965213592 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "per_op_band_ratio": 96.5213592, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.0, + "band_limit": 0.01, + "band_ratio": 91.6759814, + "metrics": { + "corr": 0.50069293, + "finite": true, + "max_abs": 19.6371894, + "mean_abs": 1.42168305, + "psnr_db": 24.9584782, + "ref_absmax": 21.4202118, + "rel_max": 0.916759814, + "scaled_max_abs": 0.916759814 + }, + "per_op_band_ratio": 91.6759814, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 1, + "n_judged": 11, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": null + }, + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)", + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 72.1345995, + "index": 1, + "metrics": { + "corr": 0.806069702, + "finite": true, + "max_abs": 6.0656997, + "mean_abs": 0.277465322, + "psnr_db": 25.0983317, + "ref_absmax": 8.40886307, + "rel_max": 0.721345995, + "scaled_max_abs": 0.721345995 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.MaxPool2d_maxpool;2" + }, + "per_op_band_ratio": 72.1345995, + "status": "fail", + "tap": "net.maxpool", + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_limit": 0.01, + "band_ratio": 86.205579, + "index": 2, + "metrics": { + "corr": 0.684054617, + "finite": true, + "max_abs": 14.7338128, + "mean_abs": 0.271021308, + "psnr_db": 30.5942129, + "ref_absmax": 17.0914841, + "rel_max": 0.86205579, + "scaled_max_abs": 0.86205579 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 86.205579, + "status": "fail", + "tap": "net.layer1.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 87.8455586, + "index": 3, + "metrics": { + "corr": 0.716888991, + "finite": true, + "max_abs": 16.4811423, + "mean_abs": 0.274952402, + "psnr_db": 31.1802597, + "ref_absmax": 18.7614975, + "rel_max": 0.878455586, + "scaled_max_abs": 0.878455586 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 87.8455586, + "status": "fail", + "tap": "net.layer1.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 82.3602838, + "index": 4, + "metrics": { + "corr": 0.750297873, + "finite": true, + "max_abs": 9.16740894, + "mean_abs": 0.105214783, + "psnr_db": 34.0958339, + "ref_absmax": 11.1308613, + "rel_max": 0.823602838, + "scaled_max_abs": 0.823602838 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 82.3602838, + "status": "fail", + "tap": "net.layer2.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 82.6242537, + "index": 5, + "metrics": { + "corr": 0.712459699, + "finite": true, + "max_abs": 9.40046144, + "mean_abs": 0.107093999, + "psnr_db": 33.6784413, + "ref_absmax": 11.3773632, + "rel_max": 0.826242537, + "scaled_max_abs": 0.826242537 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 82.6242537, + "status": "fail", + "tap": "net.layer2.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 89.9813606, + "index": 6, + "metrics": { + "corr": 0.612659837, + "finite": true, + "max_abs": 10.7348942, + "mean_abs": 0.0787930883, + "psnr_db": 35.9675631, + "ref_absmax": 11.930131, + "rel_max": 0.899813606, + "scaled_max_abs": 0.899813606 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 89.9813606, + "status": "fail", + "tap": "net.layer3.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 84.480076, + "index": 7, + "metrics": { + "corr": 0.647772802, + "finite": true, + "max_abs": 5.87666559, + "mean_abs": 0.0838550907, + "psnr_db": 31.4064197, + "ref_absmax": 6.95627403, + "rel_max": 0.84480076, + "scaled_max_abs": 0.84480076 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 84.480076, + "status": "fail", + "tap": "net.layer3.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 98.5569221, + "index": 8, + "metrics": { + "corr": 0.493919602, + "finite": true, + "max_abs": 4.76498848, + "mean_abs": 0.050655256, + "psnr_db": 30.1843463, + "ref_absmax": 4.8347578, + "rel_max": 0.985569221, + "scaled_max_abs": 0.985569221 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 98.5569221, + "status": "fail", + "tap": "net.layer4.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 97.5283511, + "index": 9, + "metrics": { + "corr": 0.382762192, + "finite": true, + "max_abs": 20.6447132, + "mean_abs": 0.494190881, + "psnr_db": 26.0566675, + "ref_absmax": 21.1679096, + "rel_max": 0.975283511, + "scaled_max_abs": 0.975283511 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 97.5283511, + "status": "fail", + "tap": "net.layer4.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 98.5012188, + "index": 10, + "metrics": { + "corr": 0.431398628, + "finite": true, + "max_abs": 10.5468522, + "mean_abs": 0.444737448, + "psnr_db": 21.652162, + "ref_absmax": 10.7073317, + "rel_max": 0.985012188, + "scaled_max_abs": 0.985012188 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;1" + }, + "per_op_band_ratio": 98.5012188, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 91.6759814, + "index": 11, + "metrics": { + "corr": 0.50069293, + "finite": true, + "max_abs": 19.6371894, + "mean_abs": 1.42168305, + "psnr_db": 24.9584782, + "ref_absmax": 21.4202118, + "rel_max": 0.916759814, + "scaled_max_abs": 0.916759814 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "per_op_band_ratio": 91.6759814, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp16", + "id": "resnet18__drop_normalize__litert_fp16", + "model": "resnet18", + "path": "litert", + "variant": "drop_normalize" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/resnet18__drop_normalize__litert_fp32.json b/bench/verdicts_calibrated4/resnet18__drop_normalize__litert_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..47439e7ba1c10d964b0b8ed4236d8eec3b87be06 --- /dev/null +++ b/bench/verdicts_calibrated4/resnet18__drop_normalize__litert_fp32.json @@ -0,0 +1,1418 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "net.maxpool", + "explained_by": "no_normalize", + "nominal_band_ratio": 7572.13693, + "results": [ + { + "band_ratio": 9737.69045, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 9440.22743, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 9460.60771, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 9120.15778, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 0.00400209435, + "explains": true, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "flag" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 0.0137929558, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.1920929e-05, + "mean_abs": 1.70033572e-06, + "psnr_db": 135.933954, + "ref_absmax": 8.642766, + "rel_max": 1.37929558e-06, + "scaled_max_abs": 1.37929558e-06 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 5, + "outputs": [ + "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models.res" + ] + }, + { + "inputs": 43, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 2, + "n_ops_total": 37, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": null, + "basis": "interface hypothesis 'no_normalize' explains the first over-band tap (net.maxpool)", + "index": 0, + "neighbourhood": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": null + }, + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 7213.44053, + "index": 1, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.MaxPool2d_maxpool;2" + }, + "status": "fail", + "tap": "net.maxpool" + } + ], + "observed_first_over_band": { + "index": 1, + "tap": "net.maxpool" + }, + "shape": 224, + "tap": "normalize" + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "776d579e38e9dfdb7bf8f1e72a1eb70afc76facb90720a529ce8f60908f60a38", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "4b0b9cf26b2eb5cc0647557aacc4db4bacc1769bc5bb99920bbac559c52708cb", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "fp32 per-tap band on near-zero probes", + "reason": "C3-2: per-tap fp32 checks gate without the near_zero probes; they are measured and reported per tap ('ungated_probes'); the output gates on all probes. C4-1: when the output has failed and no gated tap fails, they localise the first divergence (earliest tap over band on all probes)" + }, + { + "item": "tap normalize @ 224", + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)" + }, + { + "item": "tap normalize @ 192", + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D3", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.0, + "band_ratio": 9651.55739, + "metrics": { + "corr": 0.498004393, + "finite": true, + "max_abs": 22.3160325, + "mean_abs": 1.47798923, + "psnr_db": 24.9171894, + "ref_absmax": 23.1216908, + "rel_max": 0.965155739, + "scaled_max_abs": 0.965155739 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 1, + "n_judged": 11, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": null + }, + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)", + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 7524.41915, + "index": 1, + "metrics": { + "corr": 0.826576246, + "finite": true, + "max_abs": 6.94849873, + "mean_abs": 0.311852138, + "psnr_db": 24.7923041, + "ref_absmax": 9.23459816, + "rel_max": 0.752441915, + "scaled_max_abs": 0.752441915 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.MaxPool2d_maxpool;2" + }, + "status": "fail", + "tap": "net.maxpool", + "ungated_probes": { + "band_ratio": 8578.37542, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.534408002, + "finite": true, + "max_abs": 1.82303199, + "mean_abs": 0.181530332, + "psnr_db": 18.58625, + "ref_absmax": 2.1251483, + "rel_max": 0.857837542, + "scaled_max_abs": 0.857837542 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_ratio": 8789.06881, + "index": 2, + "metrics": { + "corr": 0.696120024, + "finite": true, + "max_abs": 13.9848266, + "mean_abs": 0.298007119, + "psnr_db": 28.9797393, + "ref_absmax": 15.9116135, + "rel_max": 0.878906881, + "scaled_max_abs": 0.878906881 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer1.0", + "ungated_probes": { + "band_ratio": 7919.79699, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.554093094, + "finite": true, + "max_abs": 2.34795237, + "mean_abs": 0.20254626, + "psnr_db": 20.7463387, + "ref_absmax": 2.96466231, + "rel_max": 0.791979699, + "scaled_max_abs": 0.791979699 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9097.67083, + "index": 3, + "metrics": { + "corr": 0.71846238, + "finite": true, + "max_abs": 17.1211846, + "mean_abs": 0.310000627, + "psnr_db": 30.2126666, + "ref_absmax": 18.8193054, + "rel_max": 0.909767083, + "scaled_max_abs": 0.909767083 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer1.1", + "ungated_probes": { + "band_ratio": 9683.30716, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.79723469, + "finite": true, + "max_abs": 3.80909976, + "mean_abs": 0.150221212, + "psnr_db": 24.5342769, + "ref_absmax": 3.93367648, + "rel_max": 0.968330716, + "scaled_max_abs": 0.968330716 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 8345.50337, + "index": 4, + "metrics": { + "corr": 0.752866977, + "finite": true, + "max_abs": 9.76394272, + "mean_abs": 0.11476509, + "psnr_db": 33.7039904, + "ref_absmax": 11.699645, + "rel_max": 0.834550337, + "scaled_max_abs": 0.834550337 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer2.0", + "ungated_probes": { + "band_ratio": 5668.4432, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.710368643, + "finite": true, + "max_abs": 1.57430315, + "mean_abs": 0.0716969084, + "psnr_db": 26.6418777, + "ref_absmax": 2.77731133, + "rel_max": 0.56684432, + "scaled_max_abs": 0.56684432 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 8464.07579, + "index": 5, + "metrics": { + "corr": 0.707549186, + "finite": true, + "max_abs": 9.8381635, + "mean_abs": 0.120716136, + "psnr_db": 32.9193574, + "ref_absmax": 11.623435, + "rel_max": 0.846407579, + "scaled_max_abs": 0.846407579 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer2.1", + "ungated_probes": { + "band_ratio": 3092.22739, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.810508554, + "finite": true, + "max_abs": 1.57938731, + "mean_abs": 0.057415896, + "psnr_db": 32.8923703, + "ref_absmax": 5.10760403, + "rel_max": 0.309222739, + "scaled_max_abs": 0.309222739 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 8893.23146, + "index": 6, + "metrics": { + "corr": 0.57400173, + "finite": true, + "max_abs": 12.1759462, + "mean_abs": 0.0875420564, + "psnr_db": 36.0676229, + "ref_absmax": 13.6912508, + "rel_max": 0.889323146, + "scaled_max_abs": 0.889323146 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer3.0", + "ungated_probes": { + "band_ratio": 2628.65363, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.834761343, + "finite": true, + "max_abs": 1.15785542, + "mean_abs": 0.0557386933, + "psnr_db": 32.4033438, + "ref_absmax": 4.40474701, + "rel_max": 0.262865363, + "scaled_max_abs": 0.262865363 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9325.31608, + "index": 7, + "metrics": { + "corr": 0.590542462, + "finite": true, + "max_abs": 7.76716381, + "mean_abs": 0.0946467018, + "psnr_db": 31.7284533, + "ref_absmax": 8.32911587, + "rel_max": 0.932531608, + "scaled_max_abs": 0.932531608 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer3.1", + "ungated_probes": { + "band_ratio": 3393.24937, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.888681409, + "finite": true, + "max_abs": 1.30903852, + "mean_abs": 0.0532013007, + "psnr_db": 31.4863417, + "ref_absmax": 3.85777283, + "rel_max": 0.339324937, + "scaled_max_abs": 0.339324937 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10000.0, + "index": 8, + "metrics": { + "corr": 0.450209289, + "finite": true, + "max_abs": 6.10643864, + "mean_abs": 0.0581387129, + "psnr_db": 31.1109867, + "ref_absmax": 6.10643864, + "rel_max": 1.0, + "scaled_max_abs": 1.0 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer4.0", + "ungated_probes": { + "band_ratio": 7897.39116, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.648928108, + "finite": true, + "max_abs": 1.6655159, + "mean_abs": 0.0330545078, + "psnr_db": 26.5820148, + "ref_absmax": 2.10894442, + "rel_max": 0.789739116, + "scaled_max_abs": 0.789739116 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10000.0, + "index": 9, + "metrics": { + "corr": 0.373390139, + "finite": true, + "max_abs": 17.7401104, + "mean_abs": 0.559677466, + "psnr_db": 23.7511594, + "ref_absmax": 17.7401104, + "rel_max": 1.0, + "scaled_max_abs": 1.0 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer4.1", + "ungated_probes": { + "band_ratio": 9206.80441, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.453839764, + "finite": true, + "max_abs": 7.46083438, + "mean_abs": 0.182035869, + "psnr_db": 23.0589111, + "ref_absmax": 8.10360909, + "rel_max": 0.920680441, + "scaled_max_abs": 0.920680441 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9614.2297, + "index": 10, + "metrics": { + "corr": 0.421591772, + "finite": true, + "max_abs": 10.4868313, + "mean_abs": 0.509764479, + "psnr_db": 20.9427132, + "ref_absmax": 10.9076147, + "rel_max": 0.96142297, + "scaled_max_abs": 0.96142297 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;1" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 7799.1278, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.483936157, + "finite": true, + "max_abs": 4.5666188, + "mean_abs": 0.166256361, + "psnr_db": 21.3138466, + "ref_absmax": 5.85529423, + "rel_max": 0.77991278, + "scaled_max_abs": 0.77991278 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9651.55739, + "index": 11, + "metrics": { + "corr": 0.500339281, + "finite": true, + "max_abs": 22.3160325, + "mean_abs": 1.55159811, + "psnr_db": 24.5285526, + "ref_absmax": 23.1216908, + "rel_max": 0.965155739, + "scaled_max_abs": 0.965155739 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.fc", + "ungated_probes": { + "band_ratio": 8157.06122, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.529859821, + "finite": true, + "max_abs": 4.57501459, + "mean_abs": 0.962727079, + "psnr_db": 17.109062, + "ref_absmax": 5.60865545, + "rel_max": 0.815706122, + "scaled_max_abs": 0.815706122 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.0, + "band_ratio": 9167.75943, + "metrics": { + "corr": 0.500810465, + "finite": true, + "max_abs": 19.6375349, + "mean_abs": 1.42146173, + "psnr_db": 24.9592087, + "ref_absmax": 21.4202118, + "rel_max": 0.916775943, + "scaled_max_abs": 0.916775943 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 1, + "n_judged": 11, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": null + }, + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)", + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 7213.44053, + "index": 1, + "metrics": { + "corr": 0.822997163, + "finite": true, + "max_abs": 6.06568336, + "mean_abs": 0.291297114, + "psnr_db": 24.6734161, + "ref_absmax": 8.40886307, + "rel_max": 0.721344053, + "scaled_max_abs": 0.721344053 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.MaxPool2d_maxpool;2" + }, + "status": "fail", + "tap": "net.maxpool", + "ungated_probes": { + "band_ratio": 8579.49065, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.53732217, + "finite": true, + "max_abs": 1.82217649, + "mean_abs": 0.180685468, + "psnr_db": 18.6635087, + "ref_absmax": 2.1238749, + "rel_max": 0.857949065, + "scaled_max_abs": 0.857949065 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 8620.68429, + "index": 2, + "metrics": { + "corr": 0.694449045, + "finite": true, + "max_abs": 14.7340288, + "mean_abs": 0.281034894, + "psnr_db": 30.171544, + "ref_absmax": 17.0914841, + "rel_max": 0.862068429, + "scaled_max_abs": 0.862068429 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer1.0", + "ungated_probes": { + "band_ratio": 7924.11019, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.556600702, + "finite": true, + "max_abs": 2.3486917, + "mean_abs": 0.200948342, + "psnr_db": 20.8374265, + "ref_absmax": 2.96398163, + "rel_max": 0.792411019, + "scaled_max_abs": 0.792411019 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 8784.71439, + "index": 3, + "metrics": { + "corr": 0.71715771, + "finite": true, + "max_abs": 16.4814397, + "mean_abs": 0.293192675, + "psnr_db": 30.7073055, + "ref_absmax": 18.7614975, + "rel_max": 0.878471439, + "scaled_max_abs": 0.878471439 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer1.1", + "ungated_probes": { + "band_ratio": 9686.69843, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.802867355, + "finite": true, + "max_abs": 3.81308946, + "mean_abs": 0.147244831, + "psnr_db": 24.7311544, + "ref_absmax": 3.93641806, + "rel_max": 0.968669843, + "scaled_max_abs": 0.968669843 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 8236.16118, + "index": 4, + "metrics": { + "corr": 0.753228156, + "finite": true, + "max_abs": 9.16755676, + "mean_abs": 0.110243665, + "psnr_db": 33.6998622, + "ref_absmax": 11.1308613, + "rel_max": 0.823616118, + "scaled_max_abs": 0.823616118 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer2.0", + "ungated_probes": { + "band_ratio": 5657.93986, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.712758822, + "finite": true, + "max_abs": 1.57287475, + "mean_abs": 0.0700371658, + "psnr_db": 26.833881, + "ref_absmax": 2.77994251, + "rel_max": 0.565793986, + "scaled_max_abs": 0.565793986 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 8262.4348, + "index": 5, + "metrics": { + "corr": 0.708599063, + "finite": true, + "max_abs": 9.40047216, + "mean_abs": 0.114553526, + "psnr_db": 33.2221725, + "ref_absmax": 11.3773632, + "rel_max": 0.82624348, + "scaled_max_abs": 0.82624348 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer2.1", + "ungated_probes": { + "band_ratio": 3079.55898, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.813357445, + "finite": true, + "max_abs": 1.57621565, + "mean_abs": 0.0548625746, + "psnr_db": 33.2279251, + "ref_absmax": 5.11831617, + "rel_max": 0.307955898, + "scaled_max_abs": 0.307955898 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 8997.51734, + "index": 6, + "metrics": { + "corr": 0.597823143, + "finite": true, + "max_abs": 10.734156, + "mean_abs": 0.0824557412, + "psnr_db": 35.5446171, + "ref_absmax": 11.930131, + "rel_max": 0.899751734, + "scaled_max_abs": 0.899751734 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer3.0", + "ungated_probes": { + "band_ratio": 2631.03854, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.835011566, + "finite": true, + "max_abs": 1.1598013, + "mean_abs": 0.05312094, + "psnr_db": 32.7899888, + "ref_absmax": 4.4081502, + "rel_max": 0.263103854, + "scaled_max_abs": 0.263103854 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 8448.0076, + "index": 7, + "metrics": { + "corr": 0.624962563, + "finite": true, + "max_abs": 5.87666559, + "mean_abs": 0.0884236794, + "psnr_db": 30.981706, + "ref_absmax": 6.95627403, + "rel_max": 0.84480076, + "scaled_max_abs": 0.84480076 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer3.1", + "ungated_probes": { + "band_ratio": 3378.37175, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.884855415, + "finite": true, + "max_abs": 1.30544186, + "mean_abs": 0.051794578, + "psnr_db": 31.8248211, + "ref_absmax": 3.86411548, + "rel_max": 0.337837175, + "scaled_max_abs": 0.337837175 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9853.54652, + "index": 8, + "metrics": { + "corr": 0.482044204, + "finite": true, + "max_abs": 4.76395109, + "mean_abs": 0.0535384309, + "psnr_db": 29.8165163, + "ref_absmax": 4.8347578, + "rel_max": 0.985354652, + "scaled_max_abs": 0.985354652 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer4.0", + "ungated_probes": { + "band_ratio": 7900.76936, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.655727103, + "finite": true, + "max_abs": 1.67552435, + "mean_abs": 0.0304611944, + "psnr_db": 27.2195851, + "ref_absmax": 2.12071037, + "rel_max": 0.790076936, + "scaled_max_abs": 0.790076936 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9751.84215, + "index": 9, + "metrics": { + "corr": 0.376321397, + "finite": true, + "max_abs": 20.6426113, + "mean_abs": 0.536010468, + "psnr_db": 25.6492786, + "ref_absmax": 21.1679096, + "rel_max": 0.975184215, + "scaled_max_abs": 0.975184215 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer4.1", + "ungated_probes": { + "band_ratio": 9571.23472, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.470581485, + "finite": true, + "max_abs": 8.02304888, + "mean_abs": 0.201187905, + "psnr_db": 23.0978792, + "ref_absmax": 8.38245964, + "rel_max": 0.957123472, + "scaled_max_abs": 0.957123472 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9850.35929, + "index": 10, + "metrics": { + "corr": 0.424361093, + "finite": true, + "max_abs": 10.5471064, + "mean_abs": 0.482510887, + "psnr_db": 21.2547582, + "ref_absmax": 10.7073317, + "rel_max": 0.985035929, + "scaled_max_abs": 0.985035929 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;1" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 7463.33468, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.507521906, + "finite": true, + "max_abs": 4.38167703, + "mean_abs": 0.179925201, + "psnr_db": 21.2862952, + "ref_absmax": 5.87093735, + "rel_max": 0.746333468, + "scaled_max_abs": 0.746333468 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9167.75943, + "index": 11, + "metrics": { + "corr": 0.501169273, + "finite": true, + "max_abs": 19.6375349, + "mean_abs": 1.48249275, + "psnr_db": 24.593963, + "ref_absmax": 21.4202118, + "rel_max": 0.916775943, + "scaled_max_abs": 0.916775943 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.fc", + "ungated_probes": { + "band_ratio": 7963.40506, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.555835504, + "finite": true, + "max_abs": 4.55925703, + "mean_abs": 0.994244637, + "psnr_db": 17.1137474, + "ref_absmax": 5.72526073, + "rel_max": 0.796340506, + "scaled_max_abs": 0.796340506 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp32", + "id": "resnet18__drop_normalize__litert_fp32", + "model": "resnet18", + "path": "litert", + "variant": "drop_normalize" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/resnet18__drop_normalize__onnx_fp16.json b/bench/verdicts_calibrated4/resnet18__drop_normalize__onnx_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..193caba4d559ec9d609e5948194dc4176d8566c3 --- /dev/null +++ b/bench/verdicts_calibrated4/resnet18__drop_normalize__onnx_fp16.json @@ -0,0 +1,1036 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "baseline": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "faithful_output_rel_max": 0.00057913326, + "output_band": 0.01, + "source": { + "bundle": "bundles/resnet18__clean__onnx_fp16.json", + "case": "resnet18__clean__onnx_fp16", + "digests": { + "192": { + "converted": "4f79899b2d94647c7a27acca5e2e048d6822448df0daac039062b5f5ac153fb2", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "441b70243dcc6533ecfb651f068a5b92f6a087252f2b8a01eebcf8972fcb76c6", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + } + } + }, + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "net.maxpool", + "band_limit": 0.01, + "explained_by": "no_normalize", + "nominal_band_ratio": 75.7277506, + "results": [ + { + "band_ratio": 97.377241, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 94.4037455, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 94.6082314, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 91.2029911, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 0.0415646085, + "explains": true, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "flag" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": null, + "basis": "interface hypothesis 'no_normalize' explains the first over-band tap (net.maxpool)", + "index": 0, + "neighbourhood": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": null + }, + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 72.1404842, + "index": 1, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/maxpool/MaxPool_output_0" + }, + "status": "fail", + "tap": "net.maxpool" + } + ], + "observed_first_over_band": { + "index": 1, + "tap": "net.maxpool" + }, + "shape": 224, + "tap": "normalize" + }, + "fp16_floor": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "baseline": { + "bundle": "bundles/resnet18__clean__onnx_fp16.json", + "case": "resnet18__clean__onnx_fp16", + "digests": { + "192": { + "converted": "4f79899b2d94647c7a27acca5e2e048d6822448df0daac039062b5f5ac153fb2", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "441b70243dcc6533ecfb651f068a5b92f6a087252f2b8a01eebcf8972fcb76c6", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + } + }, + "envelopes_gate": true, + "faithful_output_rel_max": 0.00057913326, + "faithful_tap_rel_max": { + "net.avgpool": 0.000879095353, + "net.fc": 0.00057913326, + "net.layer1.0": 0.000506201414, + "net.layer1.1": 0.000535356941, + "net.layer2.0": 0.000613549091, + "net.layer2.1": 0.000629964887, + "net.layer3.0": 0.000475472973, + "net.layer3.1": 0.000795143564, + "net.layer4.0": 0.00179190277, + "net.layer4.1": 0.00158067242, + "net.maxpool": 0.000650593626, + "normalize": 0.000441313312 + }, + "floor": 0.01, + "k": 2.0, + "output_band": 0.01, + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used", + "tap_envelopes": { + "net.avgpool": 0.01, + "net.fc": 0.01, + "net.layer1.0": 0.01, + "net.layer1.1": 0.01, + "net.layer2.0": 0.01, + "net.layer2.1": 0.01, + "net.layer3.0": 0.01, + "net.layer3.1": 0.01, + "net.layer4.0": 0.01, + "net.layer4.1": 0.01, + "net.maxpool": 0.01, + "normalize": 0.01 + } + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "b66ec5b3b71f23184b086d10f8415c2d80777491ae12e4161d1bb30cc2c09853", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "b74d99fb291942ba5db49e51bf0943365e97b4781d743457818cbd2dcef3ce90", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + }, + { + "item": "tap normalize @ 224", + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)" + }, + { + "item": "tap normalize @ 192", + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D3", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.0, + "band_limit": 0.01, + "band_ratio": 96.5254505, + "metrics": { + "corr": 0.498059122, + "finite": true, + "max_abs": 22.3183162, + "mean_abs": 1.4777688, + "psnr_db": 24.9177908, + "ref_absmax": 23.1216908, + "rel_max": 0.965254505, + "scaled_max_abs": 0.965254505 + }, + "per_op_band_ratio": 96.5254505, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 1, + "n_judged": 11, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": null + }, + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)", + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 75.2544051, + "index": 1, + "metrics": { + "corr": 0.810486161, + "finite": true, + "max_abs": 6.94944191, + "mean_abs": 0.295552543, + "psnr_db": 25.2373676, + "ref_absmax": 9.23459816, + "rel_max": 0.752544051, + "scaled_max_abs": 0.752544051 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/maxpool/MaxPool_output_0" + }, + "per_op_band_ratio": 75.2544051, + "status": "fail", + "tap": "net.maxpool", + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_limit": 0.01, + "band_ratio": 87.8908709, + "index": 2, + "metrics": { + "corr": 0.68564484, + "finite": true, + "max_abs": 13.9848557, + "mean_abs": 0.286049572, + "psnr_db": 29.4188469, + "ref_absmax": 15.9116135, + "rel_max": 0.878908709, + "scaled_max_abs": 0.878908709 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.0/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 87.8908709, + "status": "fail", + "tap": "net.layer1.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 90.9764992, + "index": 3, + "metrics": { + "corr": 0.717395086, + "finite": true, + "max_abs": 17.1211452, + "mean_abs": 0.290024348, + "psnr_db": 30.6934859, + "ref_absmax": 18.8193054, + "rel_max": 0.909764992, + "scaled_max_abs": 0.909764992 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.1/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 90.9764992, + "status": "fail", + "tap": "net.layer1.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 83.4563624, + "index": 4, + "metrics": { + "corr": 0.749876442, + "finite": true, + "max_abs": 9.76409817, + "mean_abs": 0.109380383, + "psnr_db": 34.1097725, + "ref_absmax": 11.699645, + "rel_max": 0.834563624, + "scaled_max_abs": 0.834563624 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.0/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 83.4563624, + "status": "fail", + "tap": "net.layer2.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 84.64056, + "index": 5, + "metrics": { + "corr": 0.710981214, + "finite": true, + "max_abs": 9.83814049, + "mean_abs": 0.112805307, + "psnr_db": 33.3802761, + "ref_absmax": 11.623435, + "rel_max": 0.8464056, + "scaled_max_abs": 0.8464056 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.1/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 84.64056, + "status": "fail", + "tap": "net.layer2.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 88.9299742, + "index": 6, + "metrics": { + "corr": 0.5898015, + "finite": true, + "max_abs": 12.1756258, + "mean_abs": 0.0835752939, + "psnr_db": 36.5003281, + "ref_absmax": 13.6912508, + "rel_max": 0.889299742, + "scaled_max_abs": 0.889299742 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.0/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 88.9299742, + "status": "fail", + "tap": "net.layer3.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 93.2641691, + "index": 7, + "metrics": { + "corr": 0.617101836, + "finite": true, + "max_abs": 7.76808071, + "mean_abs": 0.0894744604, + "psnr_db": 32.1695423, + "ref_absmax": 8.32911587, + "rel_max": 0.932641691, + "scaled_max_abs": 0.932641691 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.1/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 93.2641691, + "status": "fail", + "tap": "net.layer3.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 100.0, + "index": 8, + "metrics": { + "corr": 0.463884015, + "finite": true, + "max_abs": 6.10643864, + "mean_abs": 0.0550053666, + "psnr_db": 31.4855758, + "ref_absmax": 6.10643864, + "rel_max": 1.0, + "scaled_max_abs": 1.0 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.0/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 100.0, + "status": "fail", + "tap": "net.layer4.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 100.0, + "index": 9, + "metrics": { + "corr": 0.379385208, + "finite": true, + "max_abs": 17.7401104, + "mean_abs": 0.512461216, + "psnr_db": 24.1813508, + "ref_absmax": 17.7401104, + "rel_max": 1.0, + "scaled_max_abs": 1.0 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.1/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 100.0, + "status": "fail", + "tap": "net.layer4.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 96.1394148, + "index": 10, + "metrics": { + "corr": 0.427788052, + "finite": true, + "max_abs": 10.486517, + "mean_abs": 0.466854879, + "psnr_db": 21.3609456, + "ref_absmax": 10.9076147, + "rel_max": 0.961394148, + "scaled_max_abs": 0.961394148 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "per_op_band_ratio": 96.1394148, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 96.5254505, + "index": 11, + "metrics": { + "corr": 0.498059122, + "finite": true, + "max_abs": 22.3183162, + "mean_abs": 1.4777688, + "psnr_db": 24.9177908, + "ref_absmax": 23.1216908, + "rel_max": 0.965254505, + "scaled_max_abs": 0.965254505 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "per_op_band_ratio": 96.5254505, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.0, + "band_limit": 0.01, + "band_ratio": 91.6709627, + "metrics": { + "corr": 0.500847501, + "finite": true, + "max_abs": 19.6361144, + "mean_abs": 1.42125081, + "psnr_db": 24.959907, + "ref_absmax": 21.4202118, + "rel_max": 0.916709627, + "scaled_max_abs": 0.916709627 + }, + "per_op_band_ratio": 91.6709627, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 1, + "n_judged": 11, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": null + }, + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)", + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 72.1404842, + "index": 1, + "metrics": { + "corr": 0.806073517, + "finite": true, + "max_abs": 6.06619453, + "mean_abs": 0.277461456, + "psnr_db": 25.0984104, + "ref_absmax": 8.40886307, + "rel_max": 0.721404842, + "scaled_max_abs": 0.721404842 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/maxpool/MaxPool_output_0" + }, + "per_op_band_ratio": 72.1404842, + "status": "fail", + "tap": "net.maxpool", + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_limit": 0.01, + "band_ratio": 86.2070382, + "index": 2, + "metrics": { + "corr": 0.684080055, + "finite": true, + "max_abs": 14.7340622, + "mean_abs": 0.270998542, + "psnr_db": 30.5945801, + "ref_absmax": 17.0914841, + "rel_max": 0.862070382, + "scaled_max_abs": 0.862070382 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.0/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 86.2070382, + "status": "fail", + "tap": "net.layer1.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 87.8467773, + "index": 3, + "metrics": { + "corr": 0.7168855, + "finite": true, + "max_abs": 16.4813709, + "mean_abs": 0.274944555, + "psnr_db": 31.1803946, + "ref_absmax": 18.7614975, + "rel_max": 0.878467773, + "scaled_max_abs": 0.878467773 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.1/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 87.8467773, + "status": "fail", + "tap": "net.layer1.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 82.3653303, + "index": 4, + "metrics": { + "corr": 0.750281483, + "finite": true, + "max_abs": 9.16797066, + "mean_abs": 0.105217975, + "psnr_db": 34.0956562, + "ref_absmax": 11.1308613, + "rel_max": 0.823653303, + "scaled_max_abs": 0.823653303 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.0/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 82.3653303, + "status": "fail", + "tap": "net.layer2.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 82.6272356, + "index": 5, + "metrics": { + "corr": 0.71243327, + "finite": true, + "max_abs": 9.4008007, + "mean_abs": 0.107095215, + "psnr_db": 33.6782794, + "ref_absmax": 11.3773632, + "rel_max": 0.826272356, + "scaled_max_abs": 0.826272356 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.1/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 82.6272356, + "status": "fail", + "tap": "net.layer2.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 89.9889118, + "index": 6, + "metrics": { + "corr": 0.612623924, + "finite": true, + "max_abs": 10.735795, + "mean_abs": 0.0787973276, + "psnr_db": 35.9672573, + "ref_absmax": 11.930131, + "rel_max": 0.899889118, + "scaled_max_abs": 0.899889118 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.0/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 89.9889118, + "status": "fail", + "tap": "net.layer3.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 84.480076, + "index": 7, + "metrics": { + "corr": 0.647743549, + "finite": true, + "max_abs": 5.87666559, + "mean_abs": 0.0838559069, + "psnr_db": 31.4061166, + "ref_absmax": 6.95627403, + "rel_max": 0.84480076, + "scaled_max_abs": 0.84480076 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.1/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 84.480076, + "status": "fail", + "tap": "net.layer3.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 98.5646236, + "index": 8, + "metrics": { + "corr": 0.493903646, + "finite": true, + "max_abs": 4.76536083, + "mean_abs": 0.050655903, + "psnr_db": 30.184122, + "ref_absmax": 4.8347578, + "rel_max": 0.985646236, + "scaled_max_abs": 0.985646236 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.0/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 98.5646236, + "status": "fail", + "tap": "net.layer4.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 97.5179853, + "index": 9, + "metrics": { + "corr": 0.38281199, + "finite": true, + "max_abs": 20.642519, + "mean_abs": 0.494148411, + "psnr_db": 26.0570335, + "ref_absmax": 21.1679096, + "rel_max": 0.975179853, + "scaled_max_abs": 0.975179853 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.1/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 97.5179853, + "status": "fail", + "tap": "net.layer4.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 98.4939769, + "index": 10, + "metrics": { + "corr": 0.431469729, + "finite": true, + "max_abs": 10.5460768, + "mean_abs": 0.444718349, + "psnr_db": 21.6525111, + "ref_absmax": 10.7073317, + "rel_max": 0.984939769, + "scaled_max_abs": 0.984939769 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "per_op_band_ratio": 98.4939769, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 91.6709627, + "index": 11, + "metrics": { + "corr": 0.500847501, + "finite": true, + "max_abs": 19.6361144, + "mean_abs": 1.42125081, + "psnr_db": 24.959907, + "ref_absmax": 21.4202118, + "rel_max": 0.916709627, + "scaled_max_abs": 0.916709627 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "per_op_band_ratio": 91.6709627, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp16", + "id": "resnet18__drop_normalize__onnx_fp16", + "model": "resnet18", + "path": "onnx", + "variant": "drop_normalize" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/resnet18__drop_normalize__onnx_fp32.json b/bench/verdicts_calibrated4/resnet18__drop_normalize__onnx_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..ebab67093c28d892af991d4bffe01d255d834f34 --- /dev/null +++ b/bench/verdicts_calibrated4/resnet18__drop_normalize__onnx_fp32.json @@ -0,0 +1,1297 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "net.maxpool", + "explained_by": "no_normalize", + "nominal_band_ratio": 7572.13723, + "results": [ + { + "band_ratio": 9737.69042, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 9440.2275, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 9460.60722, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 9120.15785, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 0.00514554988, + "explains": true, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "flag" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": null, + "basis": "interface hypothesis 'no_normalize' explains the first over-band tap (net.maxpool)", + "index": 0, + "neighbourhood": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": null + }, + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 7213.44081, + "index": 1, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/maxpool/MaxPool_output_0" + }, + "status": "fail", + "tap": "net.maxpool" + } + ], + "observed_first_over_band": { + "index": 1, + "tap": "net.maxpool" + }, + "shape": 224, + "tap": "normalize" + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "3d838989719a6fca687009002bfea93e7be887424f8dbab814076b313655f3c3", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "0fd41f0c37945acd482518765bc5c895c27541a9af826617657113d985a56c5d", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "fp32 per-tap band on near-zero probes", + "reason": "C3-2: per-tap fp32 checks gate without the near_zero probes; they are measured and reported per tap ('ungated_probes'); the output gates on all probes. C4-1: when the output has failed and no gated tap fails, they localise the first divergence (earliest tap over band on all probes)" + }, + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + }, + { + "item": "tap normalize @ 224", + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)" + }, + { + "item": "tap normalize @ 192", + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D3", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.0, + "band_ratio": 9651.55703, + "metrics": { + "corr": 0.498004457, + "finite": true, + "max_abs": 22.3160317, + "mean_abs": 1.47798918, + "psnr_db": 24.9171898, + "ref_absmax": 23.1216908, + "rel_max": 0.965155703, + "scaled_max_abs": 0.965155703 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 1, + "n_judged": 11, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": null + }, + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)", + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 7524.41889, + "index": 1, + "metrics": { + "corr": 0.826576244, + "finite": true, + "max_abs": 6.94849849, + "mean_abs": 0.311852138, + "psnr_db": 24.7923041, + "ref_absmax": 9.23459816, + "rel_max": 0.752441889, + "scaled_max_abs": 0.752441889 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/maxpool/MaxPool_output_0" + }, + "status": "fail", + "tap": "net.maxpool", + "ungated_probes": { + "band_ratio": 8578.37542, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.534408002, + "finite": true, + "max_abs": 1.82303199, + "mean_abs": 0.181530332, + "psnr_db": 18.58625, + "ref_absmax": 2.1251483, + "rel_max": 0.857837542, + "scaled_max_abs": 0.857837542 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_ratio": 8789.06866, + "index": 2, + "metrics": { + "corr": 0.696120028, + "finite": true, + "max_abs": 13.9848263, + "mean_abs": 0.298007117, + "psnr_db": 28.9797394, + "ref_absmax": 15.9116135, + "rel_max": 0.878906866, + "scaled_max_abs": 0.878906866 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.0/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer1.0", + "ungated_probes": { + "band_ratio": 7919.79699, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.554093105, + "finite": true, + "max_abs": 2.34795237, + "mean_abs": 0.202546258, + "psnr_db": 20.7463387, + "ref_absmax": 2.96466231, + "rel_max": 0.791979699, + "scaled_max_abs": 0.791979699 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9097.67057, + "index": 3, + "metrics": { + "corr": 0.718462383, + "finite": true, + "max_abs": 17.1211841, + "mean_abs": 0.310000625, + "psnr_db": 30.2126667, + "ref_absmax": 18.8193054, + "rel_max": 0.909767057, + "scaled_max_abs": 0.909767057 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer1.1", + "ungated_probes": { + "band_ratio": 9683.30803, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.797234668, + "finite": true, + "max_abs": 3.80910011, + "mean_abs": 0.150221228, + "psnr_db": 24.5342766, + "ref_absmax": 3.93367648, + "rel_max": 0.968330803, + "scaled_max_abs": 0.968330803 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 8345.50337, + "index": 4, + "metrics": { + "corr": 0.752866983, + "finite": true, + "max_abs": 9.76394272, + "mean_abs": 0.114765089, + "psnr_db": 33.7039906, + "ref_absmax": 11.699645, + "rel_max": 0.834550337, + "scaled_max_abs": 0.834550337 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.0/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer2.0", + "ungated_probes": { + "band_ratio": 5668.4424, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.710368672, + "finite": true, + "max_abs": 1.57430293, + "mean_abs": 0.0716969061, + "psnr_db": 26.6418779, + "ref_absmax": 2.77731133, + "rel_max": 0.56684424, + "scaled_max_abs": 0.56684424 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 8464.0762, + "index": 5, + "metrics": { + "corr": 0.707549189, + "finite": true, + "max_abs": 9.83816397, + "mean_abs": 0.120716137, + "psnr_db": 32.9193575, + "ref_absmax": 11.623435, + "rel_max": 0.84640762, + "scaled_max_abs": 0.84640762 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer2.1", + "ungated_probes": { + "band_ratio": 3092.22663, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.810508558, + "finite": true, + "max_abs": 1.57938692, + "mean_abs": 0.0574158993, + "psnr_db": 32.8923703, + "ref_absmax": 5.10760403, + "rel_max": 0.309222663, + "scaled_max_abs": 0.309222663 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 8893.23103, + "index": 6, + "metrics": { + "corr": 0.574001762, + "finite": true, + "max_abs": 12.1759456, + "mean_abs": 0.0875420534, + "psnr_db": 36.0676231, + "ref_absmax": 13.6912508, + "rel_max": 0.889323103, + "scaled_max_abs": 0.889323103 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.0/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer3.0", + "ungated_probes": { + "band_ratio": 2628.65363, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.834761332, + "finite": true, + "max_abs": 1.15785542, + "mean_abs": 0.0557386936, + "psnr_db": 32.4033438, + "ref_absmax": 4.40474701, + "rel_max": 0.262865363, + "scaled_max_abs": 0.262865363 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9325.31579, + "index": 7, + "metrics": { + "corr": 0.590542533, + "finite": true, + "max_abs": 7.76716357, + "mean_abs": 0.0946466935, + "psnr_db": 31.7284539, + "ref_absmax": 8.32911587, + "rel_max": 0.932531579, + "scaled_max_abs": 0.932531579 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer3.1", + "ungated_probes": { + "band_ratio": 3393.24504, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.888681371, + "finite": true, + "max_abs": 1.30903685, + "mean_abs": 0.0532013138, + "psnr_db": 31.4863408, + "ref_absmax": 3.85777283, + "rel_max": 0.339324504, + "scaled_max_abs": 0.339324504 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10000.0, + "index": 8, + "metrics": { + "corr": 0.450209381, + "finite": true, + "max_abs": 6.10643864, + "mean_abs": 0.0581387071, + "psnr_db": 31.1109874, + "ref_absmax": 6.10643864, + "rel_max": 1.0, + "scaled_max_abs": 1.0 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.0/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer4.0", + "ungated_probes": { + "band_ratio": 7897.3906, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.64892805, + "finite": true, + "max_abs": 1.66551578, + "mean_abs": 0.0330545134, + "psnr_db": 26.5820139, + "ref_absmax": 2.10894442, + "rel_max": 0.78973906, + "scaled_max_abs": 0.78973906 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10000.0, + "index": 9, + "metrics": { + "corr": 0.373390232, + "finite": true, + "max_abs": 17.7401104, + "mean_abs": 0.559677424, + "psnr_db": 23.7511598, + "ref_absmax": 17.7401104, + "rel_max": 1.0, + "scaled_max_abs": 1.0 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer4.1", + "ungated_probes": { + "band_ratio": 9206.80911, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.45383986, + "finite": true, + "max_abs": 7.4608382, + "mean_abs": 0.182035923, + "psnr_db": 23.0589099, + "ref_absmax": 8.10360909, + "rel_max": 0.920680911, + "scaled_max_abs": 0.920680911 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9614.22931, + "index": 10, + "metrics": { + "corr": 0.421591888, + "finite": true, + "max_abs": 10.4868309, + "mean_abs": 0.509764449, + "psnr_db": 20.9427137, + "ref_absmax": 10.9076147, + "rel_max": 0.961422931, + "scaled_max_abs": 0.961422931 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 7799.12638, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.483936264, + "finite": true, + "max_abs": 4.56661797, + "mean_abs": 0.166256404, + "psnr_db": 21.3138457, + "ref_absmax": 5.85529423, + "rel_max": 0.779912638, + "scaled_max_abs": 0.779912638 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9651.55703, + "index": 11, + "metrics": { + "corr": 0.500339358, + "finite": true, + "max_abs": 22.3160317, + "mean_abs": 1.55159802, + "psnr_db": 24.5285531, + "ref_absmax": 23.1216908, + "rel_max": 0.965155703, + "scaled_max_abs": 0.965155703 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc", + "ungated_probes": { + "band_ratio": 8157.06399, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.529859878, + "finite": true, + "max_abs": 4.57501614, + "mean_abs": 0.962727313, + "psnr_db": 17.1090602, + "ref_absmax": 5.60865545, + "rel_max": 0.815706399, + "scaled_max_abs": 0.815706399 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.0, + "band_ratio": 9167.76009, + "metrics": { + "corr": 0.50081051, + "finite": true, + "max_abs": 19.6375363, + "mean_abs": 1.42146169, + "psnr_db": 24.9592089, + "ref_absmax": 21.4202118, + "rel_max": 0.916776009, + "scaled_max_abs": 0.916776009 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 1, + "n_judged": 11, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": null + }, + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)", + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 7213.44081, + "index": 1, + "metrics": { + "corr": 0.822997162, + "finite": true, + "max_abs": 6.0656836, + "mean_abs": 0.291297114, + "psnr_db": 24.6734161, + "ref_absmax": 8.40886307, + "rel_max": 0.721344081, + "scaled_max_abs": 0.721344081 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/maxpool/MaxPool_output_0" + }, + "status": "fail", + "tap": "net.maxpool", + "ungated_probes": { + "band_ratio": 8579.49065, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.53732217, + "finite": true, + "max_abs": 1.82217649, + "mean_abs": 0.180685468, + "psnr_db": 18.6635087, + "ref_absmax": 2.1238749, + "rel_max": 0.857949065, + "scaled_max_abs": 0.857949065 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 8620.68289, + "index": 2, + "metrics": { + "corr": 0.69444905, + "finite": true, + "max_abs": 14.7340264, + "mean_abs": 0.281034892, + "psnr_db": 30.1715441, + "ref_absmax": 17.0914841, + "rel_max": 0.862068289, + "scaled_max_abs": 0.862068289 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.0/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer1.0", + "ungated_probes": { + "band_ratio": 7924.11019, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.556600712, + "finite": true, + "max_abs": 2.3486917, + "mean_abs": 0.20094834, + "psnr_db": 20.8374266, + "ref_absmax": 2.96398163, + "rel_max": 0.792411019, + "scaled_max_abs": 0.792411019 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 8784.71433, + "index": 3, + "metrics": { + "corr": 0.717157714, + "finite": true, + "max_abs": 16.4814396, + "mean_abs": 0.293192673, + "psnr_db": 30.7073056, + "ref_absmax": 18.7614975, + "rel_max": 0.878471433, + "scaled_max_abs": 0.878471433 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer1.1", + "ungated_probes": { + "band_ratio": 9686.69725, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.802867336, + "finite": true, + "max_abs": 3.813089, + "mean_abs": 0.147244847, + "psnr_db": 24.7311543, + "ref_absmax": 3.93641806, + "rel_max": 0.968669725, + "scaled_max_abs": 0.968669725 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 8236.16033, + "index": 4, + "metrics": { + "corr": 0.753228159, + "finite": true, + "max_abs": 9.16755581, + "mean_abs": 0.110243665, + "psnr_db": 33.6998623, + "ref_absmax": 11.1308613, + "rel_max": 0.823616033, + "scaled_max_abs": 0.823616033 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.0/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer2.0", + "ungated_probes": { + "band_ratio": 5657.93895, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.712758856, + "finite": true, + "max_abs": 1.5728745, + "mean_abs": 0.070037163, + "psnr_db": 26.8338812, + "ref_absmax": 2.77994251, + "rel_max": 0.565793895, + "scaled_max_abs": 0.565793895 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 8262.43427, + "index": 5, + "metrics": { + "corr": 0.708599069, + "finite": true, + "max_abs": 9.40047157, + "mean_abs": 0.114553526, + "psnr_db": 33.2221726, + "ref_absmax": 11.3773632, + "rel_max": 0.826243427, + "scaled_max_abs": 0.826243427 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer2.1", + "ungated_probes": { + "band_ratio": 3079.55857, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.813357442, + "finite": true, + "max_abs": 1.57621545, + "mean_abs": 0.0548625804, + "psnr_db": 33.2279249, + "ref_absmax": 5.11831617, + "rel_max": 0.307955857, + "scaled_max_abs": 0.307955857 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 8997.51634, + "index": 6, + "metrics": { + "corr": 0.597823169, + "finite": true, + "max_abs": 10.7341548, + "mean_abs": 0.0824557388, + "psnr_db": 35.5446173, + "ref_absmax": 11.930131, + "rel_max": 0.899751634, + "scaled_max_abs": 0.899751634 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.0/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer3.0", + "ungated_probes": { + "band_ratio": 2631.04205, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.835011547, + "finite": true, + "max_abs": 1.15980285, + "mean_abs": 0.0531209435, + "psnr_db": 32.7899882, + "ref_absmax": 4.4081502, + "rel_max": 0.263104205, + "scaled_max_abs": 0.263104205 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 8448.0076, + "index": 7, + "metrics": { + "corr": 0.624962612, + "finite": true, + "max_abs": 5.87666559, + "mean_abs": 0.0884236727, + "psnr_db": 30.9817064, + "ref_absmax": 6.95627403, + "rel_max": 0.84480076, + "scaled_max_abs": 0.84480076 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer3.1", + "ungated_probes": { + "band_ratio": 3378.38286, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.88485536, + "finite": true, + "max_abs": 1.30544615, + "mean_abs": 0.0517945983, + "psnr_db": 31.8248191, + "ref_absmax": 3.86411548, + "rel_max": 0.337838286, + "scaled_max_abs": 0.337838286 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9853.54515, + "index": 8, + "metrics": { + "corr": 0.482044295, + "finite": true, + "max_abs": 4.76395043, + "mean_abs": 0.0535384251, + "psnr_db": 29.816517, + "ref_absmax": 4.8347578, + "rel_max": 0.985354515, + "scaled_max_abs": 0.985354515 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.0/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer4.0", + "ungated_probes": { + "band_ratio": 7900.77639, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.655727082, + "finite": true, + "max_abs": 1.67552584, + "mean_abs": 0.030461196, + "psnr_db": 27.2195847, + "ref_absmax": 2.12071037, + "rel_max": 0.790077639, + "scaled_max_abs": 0.790077639 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9751.84246, + "index": 9, + "metrics": { + "corr": 0.376321479, + "finite": true, + "max_abs": 20.642612, + "mean_abs": 0.536010445, + "psnr_db": 25.6492789, + "ref_absmax": 21.1679096, + "rel_max": 0.975184246, + "scaled_max_abs": 0.975184246 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer4.1", + "ungated_probes": { + "band_ratio": 9571.23472, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.470581521, + "finite": true, + "max_abs": 8.02304888, + "mean_abs": 0.201187982, + "psnr_db": 23.0978767, + "ref_absmax": 8.38245964, + "rel_max": 0.957123472, + "scaled_max_abs": 0.957123472 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9850.35911, + "index": 10, + "metrics": { + "corr": 0.424361186, + "finite": true, + "max_abs": 10.5471062, + "mean_abs": 0.482510862, + "psnr_db": 21.2547587, + "ref_absmax": 10.7073317, + "rel_max": 0.985035911, + "scaled_max_abs": 0.985035911 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 7463.33306, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.507521986, + "finite": true, + "max_abs": 4.38167608, + "mean_abs": 0.17992526, + "psnr_db": 21.2862932, + "ref_absmax": 5.87093735, + "rel_max": 0.746333306, + "scaled_max_abs": 0.746333306 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9167.76009, + "index": 11, + "metrics": { + "corr": 0.501169336, + "finite": true, + "max_abs": 19.6375363, + "mean_abs": 1.48249264, + "psnr_db": 24.5939634, + "ref_absmax": 21.4202118, + "rel_max": 0.916776009, + "scaled_max_abs": 0.916776009 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc", + "ungated_probes": { + "band_ratio": 7963.40485, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.555835494, + "finite": true, + "max_abs": 4.55925691, + "mean_abs": 0.994245073, + "psnr_db": 17.1137439, + "ref_absmax": 5.72526073, + "rel_max": 0.796340485, + "scaled_max_abs": 0.796340485 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp32", + "id": "resnet18__drop_normalize__onnx_fp32", + "model": "resnet18", + "path": "onnx", + "variant": "drop_normalize" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/resnet18__fp16_as_fp32__coreml.json b/bench/verdicts_calibrated4/resnet18__fp16_as_fp32__coreml.json new file mode 100644 index 0000000000000000000000000000000000000000..90715f5905a83c140776c53cceb74f48c6f889c4 --- /dev/null +++ b/bench/verdicts_calibrated4/resnet18__fp16_as_fp32__coreml.json @@ -0,0 +1,1328 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": "artifact computes in fp16 (declared fp32); the drift onset (normalize) is the size fp16 explains: distributed precision drift, not a single-op fault; note: taps over the fp16 band too: ['net.layer3.1', 'net.layer4.1']", + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "normalize", + "explained_by": null, + "nominal_band_ratio": 13.0516105, + "results": [ + { + "band_ratio": 16835.9372, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 8135.60838, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 20992.1961, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 16915.457, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 21192.4062, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [ + "inputs[0]: dtype float16 (declared float32)", + "outputs[0]: dtype float16 (declared float32)" + ], + "status": "precision_narrowing" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp32", + "first_divergence": { + "basis": "artifact computes in fp16 (declared fp32); the drift onset (normalize) is the size fp16 explains: distributed precision drift, not a single-op fault; note: taps over the fp16 band too: ['net.layer3.1', 'net.layer4.1']", + "index": null, + "onset": { + "index": 0, + "tap": "normalize" + }, + "shape": 224, + "tap": null + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "d6e8f11106d7868c4acdddd4c89bb934bd08cc14049682fea972c885765295e4", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "aa676247fae9c779d0ab1c7cd4fb20d3d1c91b615ff304ed67889a259a1af32e", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "fp32 per-tap band on near-zero probes", + "reason": "C3-2: per-tap fp32 checks gate without the near_zero probes; they are measured and reported per tap ('ungated_probes'); the output gates on all probes. C4-1: when the output has failed and no gated tap fails, they localise the first divergence (earliest tap over band on all probes)" + }, + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D1", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 52.6305587, + "metrics": { + "corr": 0.999974293, + "finite": true, + "max_abs": 0.12169075, + "mean_abs": 0.0123914789, + "psnr_db": 66.5600825, + "ref_absmax": 23.1216908, + "rel_max": 0.00526305587, + "scaled_max_abs": 0.00526305587 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 0, + "n_judged": 12, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 11.7570499, + "index": 0, + "metrics": { + "corr": 0.999999902, + "finite": true, + "max_abs": 0.0135545731, + "mean_abs": 0.000673314916, + "psnr_db": 83.5088008, + "ref_absmax": 11.5288897, + "rel_max": 0.00117570499, + "scaled_max_abs": 0.00117570499 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "status": "fail", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 10.0369993, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999989865, + "finite": true, + "max_abs": 0.00212574005, + "mean_abs": 0.000683009185, + "psnr_db": 51.8645591, + "ref_absmax": 2.11790395, + "rel_max": 0.00100369993, + "scaled_max_abs": 0.00100369993 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 45.9322342, + "index": 1, + "metrics": { + "corr": 0.999996393, + "finite": true, + "max_abs": 0.0424165726, + "mean_abs": 0.000995722369, + "psnr_db": 74.6699782, + "ref_absmax": 9.23459816, + "rel_max": 0.00459322342, + "scaled_max_abs": 0.00459322342 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_9_cast_fp16" + }, + "status": "fail", + "tap": "net.maxpool", + "ungated_probes": { + "band_ratio": 37.5979495, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.9999941, + "finite": true, + "max_abs": 0.00799012184, + "mean_abs": 0.000647730354, + "psnr_db": 66.4362975, + "ref_absmax": 2.1251483, + "rel_max": 0.00375979495, + "scaled_max_abs": 0.00375979495 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 48.0211137, + "index": 2, + "metrics": { + "corr": 0.999989661, + "finite": true, + "max_abs": 0.0764093399, + "mean_abs": 0.00197698571, + "psnr_db": 73.8020916, + "ref_absmax": 15.9116135, + "rel_max": 0.00480211137, + "scaled_max_abs": 0.00480211137 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_21_cast_fp16" + }, + "status": "fail", + "tap": "net.layer1.0", + "ungated_probes": { + "band_ratio": 90.4000862, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999889402, + "finite": true, + "max_abs": 0.0268005729, + "mean_abs": 0.00339603608, + "psnr_db": 56.2848539, + "ref_absmax": 2.96466231, + "rel_max": 0.00904000862, + "scaled_max_abs": 0.00904000862 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_ratio": 40.8128889, + "index": 3, + "metrics": { + "corr": 0.999977487, + "finite": true, + "max_abs": 0.0768070221, + "mean_abs": 0.0031400097, + "psnr_db": 71.1355439, + "ref_absmax": 18.8193054, + "rel_max": 0.00408128889, + "scaled_max_abs": 0.00408128889 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_33_cast_fp16" + }, + "status": "fail", + "tap": "net.layer1.1", + "ungated_probes": { + "band_ratio": 211.414031, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999500149, + "finite": true, + "max_abs": 0.0831634402, + "mean_abs": 0.00843754485, + "psnr_db": 50.5777848, + "ref_absmax": 3.93367648, + "rel_max": 0.0211414031, + "scaled_max_abs": 0.0211414031 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 38.5978785, + "index": 4, + "metrics": { + "corr": 0.999965992, + "finite": true, + "max_abs": 0.0451581478, + "mean_abs": 0.00154358799, + "psnr_db": 71.9062329, + "ref_absmax": 11.699645, + "rel_max": 0.00385978785, + "scaled_max_abs": 0.00385978785 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_47_cast_fp16" + }, + "status": "fail", + "tap": "net.layer2.0", + "ungated_probes": { + "band_ratio": 203.242146, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999157142, + "finite": true, + "max_abs": 0.0564466715, + "mean_abs": 0.00409227871, + "psnr_db": 51.7429278, + "ref_absmax": 2.77731133, + "rel_max": 0.0203242146, + "scaled_max_abs": 0.0203242146 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 40.7937321, + "index": 5, + "metrics": { + "corr": 0.99995755, + "finite": true, + "max_abs": 0.0474163294, + "mean_abs": 0.00172229247, + "psnr_db": 70.8028314, + "ref_absmax": 11.623435, + "rel_max": 0.00407937321, + "scaled_max_abs": 0.00407937321 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59_cast_fp16" + }, + "status": "fail", + "tap": "net.layer2.1", + "ungated_probes": { + "band_ratio": 134.23562, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.99923378, + "finite": true, + "max_abs": 0.0685622394, + "mean_abs": 0.00395558495, + "psnr_db": 56.6144905, + "ref_absmax": 5.10760403, + "rel_max": 0.013423562, + "scaled_max_abs": 0.013423562 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 38.1863259, + "index": 6, + "metrics": { + "corr": 0.999972389, + "finite": true, + "max_abs": 0.0522818565, + "mean_abs": 0.000972191602, + "psnr_db": 76.9996972, + "ref_absmax": 13.6912508, + "rel_max": 0.00381863259, + "scaled_max_abs": 0.00381863259 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_73_cast_fp16" + }, + "status": "fail", + "tap": "net.layer3.0", + "ungated_probes": { + "band_ratio": 123.904944, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999500213, + "finite": true, + "max_abs": 0.054576993, + "mean_abs": 0.00285018101, + "psnr_db": 57.9964892, + "ref_absmax": 4.40474701, + "rel_max": 0.0123904944, + "scaled_max_abs": 0.0123904944 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 78.8525061, + "index": 7, + "metrics": { + "corr": 0.999960101, + "finite": true, + "max_abs": 0.065677166, + "mean_abs": 0.00114564971, + "psnr_db": 70.9423549, + "ref_absmax": 8.32911587, + "rel_max": 0.00788525061, + "scaled_max_abs": 0.00788525061 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85_cast_fp16" + }, + "status": "fail", + "tap": "net.layer3.1", + "ungated_probes": { + "band_ratio": 261.091057, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999404114, + "finite": true, + "max_abs": 0.100722998, + "mean_abs": 0.00346558269, + "psnr_db": 54.5623701, + "ref_absmax": 3.85777283, + "rel_max": 0.0261091057, + "scaled_max_abs": 0.0261091057 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 58.962778, + "index": 8, + "metrics": { + "corr": 0.999941366, + "finite": true, + "max_abs": 0.0360052586, + "mean_abs": 0.000696261576, + "psnr_db": 69.6131422, + "ref_absmax": 6.10643864, + "rel_max": 0.0058962778, + "scaled_max_abs": 0.0058962778 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_99_cast_fp16" + }, + "status": "fail", + "tap": "net.layer4.0", + "ungated_probes": { + "band_ratio": 596.959218, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.998201928, + "finite": true, + "max_abs": 0.125895381, + "mean_abs": 0.00221424552, + "psnr_db": 49.4542542, + "ref_absmax": 2.10894442, + "rel_max": 0.0596959218, + "scaled_max_abs": 0.0596959218 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "wide_range", + "index": 23 + } + }, + { + "band_ratio": 140.49191, + "index": 9, + "metrics": { + "corr": 0.999939871, + "finite": true, + "max_abs": 0.2492342, + "mean_abs": 0.00637494498, + "psnr_db": 62.7320097, + "ref_absmax": 17.7401104, + "rel_max": 0.014049191, + "scaled_max_abs": 0.014049191 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_111_cast_fp16" + }, + "status": "fail", + "tap": "net.layer4.1", + "ungated_probes": { + "band_ratio": 306.373238, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999260067, + "finite": true, + "max_abs": 0.248272896, + "mean_abs": 0.00777022415, + "psnr_db": 51.0363896, + "ref_absmax": 8.10360909, + "rel_max": 0.0306373238, + "scaled_max_abs": 0.0306373238 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "wide_range", + "index": 21 + } + }, + { + "band_ratio": 84.0251899, + "index": 10, + "metrics": { + "corr": 0.999979126, + "finite": true, + "max_abs": 0.0916514397, + "mean_abs": 0.00364200016, + "psnr_db": 64.3655771, + "ref_absmax": 10.9076147, + "rel_max": 0.00840251899, + "scaled_max_abs": 0.00840251899 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 162.098571, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999797892, + "finite": true, + "max_abs": 0.0949134827, + "mean_abs": 0.00569365757, + "psnr_db": 53.6246865, + "ref_absmax": 5.85529423, + "rel_max": 0.0162098571, + "scaled_max_abs": 0.0162098571 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "wide_range", + "index": 23 + } + }, + { + "band_ratio": 52.6305587, + "index": 11, + "metrics": { + "corr": 0.999980278, + "finite": true, + "max_abs": 0.12169075, + "mean_abs": 0.0113250597, + "psnr_db": 67.3218561, + "ref_absmax": 23.1216908, + "rel_max": 0.00526305587, + "scaled_max_abs": 0.00526305587 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc", + "ungated_probes": { + "band_ratio": 182.818644, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999883181, + "finite": true, + "max_abs": 0.102536678, + "mean_abs": 0.0198564129, + "psnr_db": 50.8504796, + "ref_absmax": 5.60865545, + "rel_max": 0.0182818644, + "scaled_max_abs": 0.0182818644 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 65.2165202, + "metrics": { + "corr": 0.999976106, + "finite": true, + "max_abs": 0.139695168, + "mean_abs": 0.01166934, + "psnr_db": 66.9644292, + "ref_absmax": 21.4202118, + "rel_max": 0.00652165202, + "scaled_max_abs": 0.00652165202 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 7 + } + }, + "first_fail_index": 0, + "n_judged": 12, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 11.6213884, + "index": 0, + "metrics": { + "corr": 0.999999897, + "finite": true, + "max_abs": 0.0133981705, + "mean_abs": 0.000679052144, + "psnr_db": 83.5479136, + "ref_absmax": 11.5288897, + "rel_max": 0.00116213884, + "scaled_max_abs": 0.00116213884 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "status": "fail", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 10.0369993, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999989885, + "finite": true, + "max_abs": 0.00212574005, + "mean_abs": 0.000683342096, + "psnr_db": 51.9168588, + "ref_absmax": 2.11790395, + "rel_max": 0.00100369993, + "scaled_max_abs": 0.00100369993 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 43.0958027, + "index": 1, + "metrics": { + "corr": 0.999996227, + "finite": true, + "max_abs": 0.0362386703, + "mean_abs": 0.000963766332, + "psnr_db": 74.2575629, + "ref_absmax": 8.40886307, + "rel_max": 0.00430958027, + "scaled_max_abs": 0.00430958027 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_9_cast_fp16" + }, + "status": "fail", + "tap": "net.maxpool", + "ungated_probes": { + "band_ratio": 36.7527497, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999994014, + "finite": true, + "max_abs": 0.00780582428, + "mean_abs": 0.000648238337, + "psnr_db": 66.4269257, + "ref_absmax": 2.1238749, + "rel_max": 0.00367527497, + "scaled_max_abs": 0.00367527497 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 38.4801236, + "index": 2, + "metrics": { + "corr": 0.999988577, + "finite": true, + "max_abs": 0.0657682419, + "mean_abs": 0.00198198545, + "psnr_db": 74.4922929, + "ref_absmax": 17.0914841, + "rel_max": 0.00384801236, + "scaled_max_abs": 0.00384801236 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_21_cast_fp16" + }, + "status": "fail", + "tap": "net.layer1.0", + "ungated_probes": { + "band_ratio": 100.54827, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.99988704, + "finite": true, + "max_abs": 0.0298023224, + "mean_abs": 0.00340814403, + "psnr_db": 56.2667117, + "ref_absmax": 2.96398163, + "rel_max": 0.010054827, + "scaled_max_abs": 0.010054827 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 48.244139, + "index": 3, + "metrics": { + "corr": 0.999974097, + "finite": true, + "max_abs": 0.0905132294, + "mean_abs": 0.00319741884, + "psnr_db": 70.9759552, + "ref_absmax": 18.7614975, + "rel_max": 0.0048244139, + "scaled_max_abs": 0.0048244139 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_33_cast_fp16" + }, + "status": "fail", + "tap": "net.layer1.1", + "ungated_probes": { + "band_ratio": 211.14308, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999486825, + "finite": true, + "max_abs": 0.0831147432, + "mean_abs": 0.00848290814, + "psnr_db": 50.5476187, + "ref_absmax": 3.93641806, + "rel_max": 0.021114308, + "scaled_max_abs": 0.021114308 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 41.811913, + "index": 4, + "metrics": { + "corr": 0.999961523, + "finite": true, + "max_abs": 0.0465402603, + "mean_abs": 0.00156556953, + "psnr_db": 71.3450125, + "ref_absmax": 11.1308613, + "rel_max": 0.0041811913, + "scaled_max_abs": 0.0041811913 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_47_cast_fp16" + }, + "status": "fail", + "tap": "net.layer2.0", + "ungated_probes": { + "band_ratio": 194.499338, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999125644, + "finite": true, + "max_abs": 0.0540696979, + "mean_abs": 0.00409716644, + "psnr_db": 51.7356876, + "ref_absmax": 2.77994251, + "rel_max": 0.0194499338, + "scaled_max_abs": 0.0194499338 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 47.1289678, + "index": 5, + "metrics": { + "corr": 0.999952469, + "finite": true, + "max_abs": 0.0536203384, + "mean_abs": 0.00172047522, + "psnr_db": 70.5844585, + "ref_absmax": 11.3773632, + "rel_max": 0.00471289678, + "scaled_max_abs": 0.00471289678 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59_cast_fp16" + }, + "status": "fail", + "tap": "net.layer2.1", + "ungated_probes": { + "band_ratio": 134.659368, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999192545, + "finite": true, + "max_abs": 0.068922922, + "mean_abs": 0.00392638224, + "psnr_db": 56.6394959, + "ref_absmax": 5.11831617, + "rel_max": 0.0134659368, + "scaled_max_abs": 0.0134659368 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "wide_range", + "index": 21 + } + }, + { + "band_ratio": 51.97428, + "index": 6, + "metrics": { + "corr": 0.999968811, + "finite": true, + "max_abs": 0.0620059967, + "mean_abs": 0.000974450837, + "psnr_db": 75.7597373, + "ref_absmax": 11.930131, + "rel_max": 0.005197428, + "scaled_max_abs": 0.005197428 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_73_cast_fp16" + }, + "status": "fail", + "tap": "net.layer3.0", + "ungated_probes": { + "band_ratio": 156.352205, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999475679, + "finite": true, + "max_abs": 0.0689224005, + "mean_abs": 0.00279223237, + "psnr_db": 58.124685, + "ref_absmax": 4.4081502, + "rel_max": 0.0156352205, + "scaled_max_abs": 0.0156352205 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 122.442105, + "index": 7, + "metrics": { + "corr": 0.999954552, + "finite": true, + "max_abs": 0.0851740837, + "mean_abs": 0.00116070062, + "psnr_db": 69.3280871, + "ref_absmax": 6.95627403, + "rel_max": 0.0122442105, + "scaled_max_abs": 0.0122442105 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85_cast_fp16" + }, + "status": "fail", + "tap": "net.layer3.1", + "ungated_probes": { + "band_ratio": 308.708589, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999324923, + "finite": true, + "max_abs": 0.119288564, + "mean_abs": 0.00353726243, + "psnr_db": 54.4786765, + "ref_absmax": 3.86411548, + "rel_max": 0.0308708589, + "scaled_max_abs": 0.0308708589 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 74.7707763, + "index": 8, + "metrics": { + "corr": 0.999937013, + "finite": true, + "max_abs": 0.0361498594, + "mean_abs": 0.000673962805, + "psnr_db": 67.9106945, + "ref_absmax": 4.8347578, + "rel_max": 0.00747707763, + "scaled_max_abs": 0.00747707763 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_99_cast_fp16" + }, + "status": "fail", + "tap": "net.layer4.0", + "ungated_probes": { + "band_ratio": 555.074006, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.998078866, + "finite": true, + "max_abs": 0.11771512, + "mean_abs": 0.00214941572, + "psnr_db": 49.6991215, + "ref_absmax": 2.12071037, + "rel_max": 0.0555074006, + "scaled_max_abs": 0.0555074006 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 115.206404, + "index": 9, + "metrics": { + "corr": 0.999936184, + "finite": true, + "max_abs": 0.243867874, + "mean_abs": 0.006296916, + "psnr_db": 64.3521764, + "ref_absmax": 21.1679096, + "rel_max": 0.0115206404, + "scaled_max_abs": 0.0115206404 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_111_cast_fp16" + }, + "status": "fail", + "tap": "net.layer4.1", + "ungated_probes": { + "band_ratio": 327.26574, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999081266, + "finite": true, + "max_abs": 0.274329185, + "mean_abs": 0.00931170133, + "psnr_db": 50.3352083, + "ref_absmax": 8.38245964, + "rel_max": 0.032726574, + "scaled_max_abs": 0.032726574 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "wide_range", + "index": 21 + } + }, + { + "band_ratio": 67.0129845, + "index": 10, + "metrics": { + "corr": 0.999981749, + "finite": true, + "max_abs": 0.0717530251, + "mean_abs": 0.00329252408, + "psnr_db": 65.2208114, + "ref_absmax": 10.7073317, + "rel_max": 0.00670129845, + "scaled_max_abs": 0.00670129845 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 155.026117, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999788156, + "finite": true, + "max_abs": 0.0910148621, + "mean_abs": 0.00629363066, + "psnr_db": 53.7020936, + "ref_absmax": 5.87093735, + "rel_max": 0.0155026117, + "scaled_max_abs": 0.0155026117 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "wide_range", + "index": 21 + } + }, + { + "band_ratio": 65.2165202, + "index": 11, + "metrics": { + "corr": 0.999982147, + "finite": true, + "max_abs": 0.139695168, + "mean_abs": 0.0106207817, + "psnr_db": 67.8533151, + "ref_absmax": 21.4202118, + "rel_max": 0.00652165202, + "scaled_max_abs": 0.00652165202 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc", + "ungated_probes": { + "band_ratio": 170.186883, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999883437, + "finite": true, + "max_abs": 0.0974364281, + "mean_abs": 0.0190092478, + "psnr_db": 51.3739446, + "ref_absmax": 5.72526073, + "rel_max": 0.0170186883, + "scaled_max_abs": 0.0170186883 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 7 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp16", + "id": "resnet18__fp16_as_fp32__coreml", + "model": "resnet18", + "path": "coreml", + "variant": "fp16_as_fp32" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/resnet18__fp16_as_fp32__litert.json b/bench/verdicts_calibrated4/resnet18__fp16_as_fp32__litert.json new file mode 100644 index 0000000000000000000000000000000000000000..eb3f26fb1d45cbfc7051d6e849830b272dc710c7 --- /dev/null +++ b/bench/verdicts_calibrated4/resnet18__fp16_as_fp32__litert.json @@ -0,0 +1,1446 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": "artifact computes in fp16 (declared fp32); the drift onset (net.maxpool) is the size fp16 explains: distributed precision drift, not a single-op fault", + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "net.maxpool", + "explained_by": null, + "nominal_band_ratio": 2.19146036, + "results": [ + { + "band_ratio": 9843.54751, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 7694.42306, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 36850.3269, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 9186.0123, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 29090.3268, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 0.00801471716, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.71661377e-05, + "mean_abs": 1.32579838e-06, + "psnr_db": 145.461536, + "ref_absmax": 21.4182701, + "rel_max": 8.01471716e-07, + "scaled_max_abs": 8.01471716e-07 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 27, + "outputs": [ + "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models.res", + "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.linear.Linear_fc;1_dequant", + "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.B", + "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.B" + ] + }, + { + "inputs": 43, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 2, + "n_ops_total": 60, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp32", + "first_divergence": { + "basis": "artifact computes in fp16 (declared fp32); the drift onset (net.maxpool) is the size fp16 explains: distributed precision drift, not a single-op fault", + "index": null, + "onset": { + "index": 1, + "tap": "net.maxpool" + }, + "shape": 224, + "tap": null + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "5518083a49acade5bb9995f1d28be7f32b0a23e8e42c5e39dfdbe59cfc6b794d", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "8d2974be0ffdfd9646dac16768c8f2eaa45593bd0207920e3d4230bc7750498d", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "fp32 per-tap band on near-zero probes", + "reason": "C3-2: per-tap fp32 checks gate without the near_zero probes; they are measured and reported per tap ('ungated_probes'); the output gates on all probes. C4-1: when the output has failed and no gated tap fails, they localise the first divergence (earliest tap over band on all probes)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D1", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 4.69419279, + "metrics": { + "corr": 0.999999821, + "finite": true, + "max_abs": 0.0108537674, + "mean_abs": 0.00112806203, + "psnr_db": 87.8386721, + "ref_absmax": 23.1216908, + "rel_max": 0.000469419279, + "scaled_max_abs": 0.000469419279 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 1, + "n_judged": 12, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.06644368e-08, + "psnr_db": 164.113247, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.00112572895, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.38418579e-07, + "mean_abs": 4.66593688e-08, + "psnr_db": 130.397207, + "ref_absmax": 2.11790395, + "rel_max": 1.12572895e-07, + "scaled_max_abs": 1.12572895e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 5.52685286, + "index": 1, + "metrics": { + "corr": 0.999999966, + "finite": true, + "max_abs": 0.00510382652, + "mean_abs": 7.1431331e-05, + "psnr_db": 94.8687628, + "ref_absmax": 9.23459816, + "rel_max": 0.000552685286, + "scaled_max_abs": 0.000552685286 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.MaxPool2d_maxpool;2" + }, + "status": "fail", + "tap": "net.maxpool", + "ungated_probes": { + "band_ratio": 5.32071063, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999778, + "finite": true, + "max_abs": 0.00113072991, + "mean_abs": 0.000109935388, + "psnr_db": 80.7562292, + "ref_absmax": 2.1251483, + "rel_max": 0.000532071063, + "scaled_max_abs": 0.000532071063 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 2.85533862, + "index": 2, + "metrics": { + "corr": 0.999999943, + "finite": true, + "max_abs": 0.00454330444, + "mean_abs": 0.000132788879, + "psnr_db": 96.3561614, + "ref_absmax": 15.9116135, + "rel_max": 0.000285533862, + "scaled_max_abs": 0.000285533862 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer1.0", + "ungated_probes": { + "band_ratio": 4.41024086, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.99999886, + "finite": true, + "max_abs": 0.00130748749, + "mean_abs": 0.000337411359, + "psnr_db": 76.0742464, + "ref_absmax": 2.96466231, + "rel_max": 0.000441024086, + "scaled_max_abs": 0.000441024086 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 2.62599506, + "index": 3, + "metrics": { + "corr": 0.99999989, + "finite": true, + "max_abs": 0.00494194031, + "mean_abs": 0.000199926268, + "psnr_db": 94.1981327, + "ref_absmax": 18.8193054, + "rel_max": 0.000262599506, + "scaled_max_abs": 0.000262599506 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer1.1", + "ungated_probes": { + "band_ratio": 9.87618367, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999997156, + "finite": true, + "max_abs": 0.00388497114, + "mean_abs": 0.00056006045, + "psnr_db": 73.0503007, + "ref_absmax": 3.93367648, + "rel_max": 0.000987618367, + "scaled_max_abs": 0.000987618367 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 5.26554237, + "index": 4, + "metrics": { + "corr": 0.999999786, + "finite": true, + "max_abs": 0.00616049767, + "mean_abs": 0.000104240131, + "psnr_db": 93.9191855, + "ref_absmax": 11.699645, + "rel_max": 0.000526554237, + "scaled_max_abs": 0.000526554237 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer2.0", + "ungated_probes": { + "band_ratio": 16.6057159, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999997413, + "finite": true, + "max_abs": 0.00461192429, + "mean_abs": 0.000203249335, + "psnr_db": 76.8780706, + "ref_absmax": 2.77731133, + "rel_max": 0.00166057159, + "scaled_max_abs": 0.00166057159 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "wide_range", + "index": 20 + } + }, + { + "band_ratio": 6.20361493, + "index": 5, + "metrics": { + "corr": 0.99999974, + "finite": true, + "max_abs": 0.00721073151, + "mean_abs": 0.00012120792, + "psnr_db": 92.9319421, + "ref_absmax": 11.623435, + "rel_max": 0.000620361493, + "scaled_max_abs": 0.000620361493 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer2.1", + "ungated_probes": { + "band_ratio": 11.1291538, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999998009, + "finite": true, + "max_abs": 0.00568433106, + "mean_abs": 0.000195622095, + "psnr_db": 82.5118288, + "ref_absmax": 5.10760403, + "rel_max": 0.00111291538, + "scaled_max_abs": 0.00111291538 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "wide_range", + "index": 22 + } + }, + { + "band_ratio": 1.98832333, + "index": 6, + "metrics": { + "corr": 0.999999835, + "finite": true, + "max_abs": 0.00272226334, + "mean_abs": 7.32569045e-05, + "psnr_db": 99.2263408, + "ref_absmax": 13.6912508, + "rel_max": 0.000198832333, + "scaled_max_abs": 0.000198832333 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer3.0", + "ungated_probes": { + "band_ratio": 7.58521126, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999998019, + "finite": true, + "max_abs": 0.00334109366, + "mean_abs": 0.0001740449, + "psnr_db": 81.9445238, + "ref_absmax": 4.40474701, + "rel_max": 0.000758521126, + "scaled_max_abs": 0.000758521126 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 5.02907641, + "index": 7, + "metrics": { + "corr": 0.999999797, + "finite": true, + "max_abs": 0.00418877602, + "mean_abs": 8.08234066e-05, + "psnr_db": 93.8649422, + "ref_absmax": 8.32911587, + "rel_max": 0.000502907641, + "scaled_max_abs": 0.000502907641 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer3.1", + "ungated_probes": { + "band_ratio": 11.1235337, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999997937, + "finite": true, + "max_abs": 0.0042912066, + "mean_abs": 0.000195092792, + "psnr_db": 79.321399, + "ref_absmax": 3.85777283, + "rel_max": 0.00111235337, + "scaled_max_abs": 0.00111235337 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 3.92448773, + "index": 8, + "metrics": { + "corr": 0.9999997, + "finite": true, + "max_abs": 0.00239646435, + "mean_abs": 4.99904022e-05, + "psnr_db": 92.5611507, + "ref_absmax": 6.10643864, + "rel_max": 0.000392448773, + "scaled_max_abs": 0.000392448773 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer4.0", + "ungated_probes": { + "band_ratio": 34.038569, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999992628, + "finite": true, + "max_abs": 0.007178545, + "mean_abs": 0.000138359049, + "psnr_db": 73.2965916, + "ref_absmax": 2.10894442, + "rel_max": 0.0034038569, + "scaled_max_abs": 0.0034038569 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6.79152734, + "index": 9, + "metrics": { + "corr": 0.999999649, + "finite": true, + "max_abs": 0.0120482445, + "mean_abs": 0.000498958128, + "psnr_db": 84.8885283, + "ref_absmax": 17.7401104, + "rel_max": 0.000679152734, + "scaled_max_abs": 0.000679152734 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer4.1", + "ungated_probes": { + "band_ratio": 26.6836329, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.99999647, + "finite": true, + "max_abs": 0.021623373, + "mean_abs": 0.000492326225, + "psnr_db": 74.6962241, + "ref_absmax": 8.10360909, + "rel_max": 0.00266836329, + "scaled_max_abs": 0.00266836329 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 5.29050892, + "index": 10, + "metrics": { + "corr": 0.999999801, + "finite": true, + "max_abs": 0.00577068329, + "mean_abs": 0.000381374159, + "psnr_db": 84.2157908, + "ref_absmax": 10.9076147, + "rel_max": 0.000529050892, + "scaled_max_abs": 0.000529050892 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;1" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 12.5856696, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999998917, + "finite": true, + "max_abs": 0.00736927986, + "mean_abs": 0.000358672001, + "psnr_db": 77.5413631, + "ref_absmax": 5.85529423, + "rel_max": 0.00125856696, + "scaled_max_abs": 0.00125856696 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 4.69419279, + "index": 11, + "metrics": { + "corr": 0.999999837, + "finite": true, + "max_abs": 0.0108537674, + "mean_abs": 0.00112250229, + "psnr_db": 87.8175842, + "ref_absmax": 23.1216908, + "rel_max": 0.000469419279, + "scaled_max_abs": 0.000469419279 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.fc", + "ungated_probes": { + "band_ratio": 8.76238915, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999396, + "finite": true, + "max_abs": 0.00491452217, + "mean_abs": 0.00116698018, + "psnr_db": 75.5556225, + "ref_absmax": 5.60865545, + "rel_max": 0.000876238915, + "scaled_max_abs": 0.000876238915 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 4.79681862, + "metrics": { + "corr": 0.9999998, + "finite": true, + "max_abs": 0.0102748871, + "mean_abs": 0.00113285037, + "psnr_db": 87.5940613, + "ref_absmax": 21.4202118, + "rel_max": 0.000479681862, + "scaled_max_abs": 0.000479681862 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 1, + "n_judged": 12, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.08107465e-08, + "psnr_db": 164.245493, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.00112572895, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.38418579e-07, + "mean_abs": 4.66724468e-08, + "psnr_db": 130.436578, + "ref_absmax": 2.11790395, + "rel_max": 1.12572895e-07, + "scaled_max_abs": 1.12572895e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 5.83793374, + "index": 1, + "metrics": { + "corr": 0.999999961, + "finite": true, + "max_abs": 0.00490903854, + "mean_abs": 7.15812408e-05, + "psnr_db": 94.0342886, + "ref_absmax": 8.40886307, + "rel_max": 0.000583793374, + "scaled_max_abs": 0.000583793374 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.MaxPool2d_maxpool;2" + }, + "status": "fail", + "tap": "net.maxpool", + "ungated_probes": { + "band_ratio": 5.32460233, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999774, + "finite": true, + "max_abs": 0.00113087893, + "mean_abs": 0.000110074731, + "psnr_db": 80.7409998, + "ref_absmax": 2.1238749, + "rel_max": 0.000532460233, + "scaled_max_abs": 0.000532460233 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 2.74063399, + "index": 2, + "metrics": { + "corr": 0.999999933, + "finite": true, + "max_abs": 0.00468415022, + "mean_abs": 0.000136623482, + "psnr_db": 96.7374916, + "ref_absmax": 17.0914841, + "rel_max": 0.000274063399, + "scaled_max_abs": 0.000274063399 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer1.0", + "ungated_probes": { + "band_ratio": 4.41165588, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999998833, + "finite": true, + "max_abs": 0.0013076067, + "mean_abs": 0.000339010615, + "psnr_db": 76.0395223, + "ref_absmax": 2.96398163, + "rel_max": 0.000441165588, + "scaled_max_abs": 0.000441165588 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 2.51223373, + "index": 3, + "metrics": { + "corr": 0.999999866, + "finite": true, + "max_abs": 0.00471332669, + "mean_abs": 0.000206105993, + "psnr_db": 93.8141937, + "ref_absmax": 18.7614975, + "rel_max": 0.000251223373, + "scaled_max_abs": 0.000251223373 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer1.1", + "ungated_probes": { + "band_ratio": 9.98604891, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999997092, + "finite": true, + "max_abs": 0.00393092632, + "mean_abs": 0.000560909703, + "psnr_db": 73.0400422, + "ref_absmax": 3.93641806, + "rel_max": 0.000998604891, + "scaled_max_abs": 0.000998604891 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_ratio": 5.92551772, + "index": 4, + "metrics": { + "corr": 0.99999975, + "finite": true, + "max_abs": 0.00659561157, + "mean_abs": 0.000107455295, + "psnr_db": 93.2072818, + "ref_absmax": 11.1308613, + "rel_max": 0.000592551772, + "scaled_max_abs": 0.000592551772 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer2.0", + "ungated_probes": { + "band_ratio": 16.7742839, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999997443, + "finite": true, + "max_abs": 0.00466315448, + "mean_abs": 0.00019931458, + "psnr_db": 77.0801334, + "ref_absmax": 2.77994251, + "rel_max": 0.00167742839, + "scaled_max_abs": 0.00167742839 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6.09826631, + "index": 5, + "metrics": { + "corr": 0.999999708, + "finite": true, + "max_abs": 0.00693821907, + "mean_abs": 0.000122122516, + "psnr_db": 92.7020783, + "ref_absmax": 11.3773632, + "rel_max": 0.000609826631, + "scaled_max_abs": 0.000609826631 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer2.1", + "ungated_probes": { + "band_ratio": 11.164263, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999998049, + "finite": true, + "max_abs": 0.00571422279, + "mean_abs": 0.000187392126, + "psnr_db": 82.8572724, + "ref_absmax": 5.11831617, + "rel_max": 0.0011164263, + "scaled_max_abs": 0.0011164263 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 2.55682633, + "index": 6, + "metrics": { + "corr": 0.999999796, + "finite": true, + "max_abs": 0.0030503273, + "mean_abs": 7.61682138e-05, + "psnr_db": 97.5989171, + "ref_absmax": 11.930131, + "rel_max": 0.000255682633, + "scaled_max_abs": 0.000255682633 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer3.0", + "ungated_probes": { + "band_ratio": 7.56552961, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999998029, + "finite": true, + "max_abs": 0.00333499908, + "mean_abs": 0.000166092674, + "psnr_db": 82.3115594, + "ref_absmax": 4.4081502, + "rel_max": 0.000756552961, + "scaled_max_abs": 0.000756552961 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 5.18478289, + "index": 7, + "metrics": { + "corr": 0.999999744, + "finite": true, + "max_abs": 0.00360667706, + "mean_abs": 8.55832968e-05, + "psnr_db": 91.8138189, + "ref_absmax": 6.95627403, + "rel_max": 0.000518478289, + "scaled_max_abs": 0.000518478289 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer3.1", + "ungated_probes": { + "band_ratio": 11.1786219, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.99999786, + "finite": true, + "max_abs": 0.00431954861, + "mean_abs": 0.000190513655, + "psnr_db": 79.605012, + "ref_absmax": 3.86411548, + "rel_max": 0.00111786219, + "scaled_max_abs": 0.00111786219 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 5.5043671, + "index": 8, + "metrics": { + "corr": 0.999999636, + "finite": true, + "max_abs": 0.00266122818, + "mean_abs": 5.06630054e-05, + "psnr_db": 90.3219439, + "ref_absmax": 4.8347578, + "rel_max": 0.00055043671, + "scaled_max_abs": 0.00055043671 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer4.0", + "ungated_probes": { + "band_ratio": 34.7097619, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999992311, + "finite": true, + "max_abs": 0.00736093521, + "mean_abs": 0.000130494537, + "psnr_db": 73.6484458, + "ref_absmax": 2.12071037, + "rel_max": 0.00347097619, + "scaled_max_abs": 0.00347097619 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 8.61635449, + "index": 9, + "metrics": { + "corr": 0.999999578, + "finite": true, + "max_abs": 0.0182390213, + "mean_abs": 0.000507721556, + "psnr_db": 86.1085647, + "ref_absmax": 21.1679096, + "rel_max": 0.000861635449, + "scaled_max_abs": 0.000861635449 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer4.1", + "ungated_probes": { + "band_ratio": 24.0835567, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999995689, + "finite": true, + "max_abs": 0.0201879442, + "mean_abs": 0.000605831997, + "psnr_db": 73.8919755, + "ref_absmax": 8.38245964, + "rel_max": 0.00240835567, + "scaled_max_abs": 0.00240835567 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6.29439398, + "index": 10, + "metrics": { + "corr": 0.999999779, + "finite": true, + "max_abs": 0.00673961639, + "mean_abs": 0.000368905457, + "psnr_db": 84.2748047, + "ref_absmax": 10.7073317, + "rel_max": 0.000629439398, + "scaled_max_abs": 0.000629439398 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;1" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 11.2826675, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999998838, + "finite": true, + "max_abs": 0.00662398338, + "mean_abs": 0.00041101892, + "psnr_db": 77.1048494, + "ref_absmax": 5.87093735, + "rel_max": 0.00112826675, + "scaled_max_abs": 0.00112826675 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 4.79681862, + "index": 11, + "metrics": { + "corr": 0.99999982, + "finite": true, + "max_abs": 0.0102748871, + "mean_abs": 0.00111827624, + "psnr_db": 87.6550191, + "ref_absmax": 21.4202118, + "rel_max": 0.000479681862, + "scaled_max_abs": 0.000479681862 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.fc", + "ungated_probes": { + "band_ratio": 9.02597058, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999375, + "finite": true, + "max_abs": 0.00516760349, + "mean_abs": 0.00123486925, + "psnr_db": 75.2082457, + "ref_absmax": 5.72526073, + "rel_max": 0.000902597058, + "scaled_max_abs": 0.000902597058 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp16", + "id": "resnet18__fp16_as_fp32__litert", + "model": "resnet18", + "path": "litert", + "variant": "fp16_as_fp32" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/resnet18__fp16_as_fp32__onnx.json b/bench/verdicts_calibrated4/resnet18__fp16_as_fp32__onnx.json new file mode 100644 index 0000000000000000000000000000000000000000..a505667ce89ba52718e1714062a1bf55c198009e --- /dev/null +++ b/bench/verdicts_calibrated4/resnet18__fp16_as_fp32__onnx.json @@ -0,0 +1,1325 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": "artifact computes in fp16 (declared fp32); the drift onset (normalize) is the size fp16 explains: distributed precision drift, not a single-op fault", + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "normalize", + "explained_by": null, + "nominal_band_ratio": 5.61457669, + "results": [ + { + "band_ratio": 16837.3835, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 8136.03377, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 20992.2062, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 16908.0588, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 21191.4949, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp32", + "first_divergence": { + "basis": "artifact computes in fp16 (declared fp32); the drift onset (normalize) is the size fp16 explains: distributed precision drift, not a single-op fault", + "index": null, + "onset": { + "index": 0, + "tap": "normalize" + }, + "shape": 224, + "tap": null + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "4f79899b2d94647c7a27acca5e2e048d6822448df0daac039062b5f5ac153fb2", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "441b70243dcc6533ecfb651f068a5b92f6a087252f2b8a01eebcf8972fcb76c6", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "fp32 per-tap band on near-zero probes", + "reason": "C3-2: per-tap fp32 checks gate without the near_zero probes; they are measured and reported per tap ('ungated_probes'); the output gates on all probes. C4-1: when the output has failed and no gated tap fails, they localise the first divergence (earliest tap over band on all probes)" + }, + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D1", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 5.44321784, + "metrics": { + "corr": 0.999999467, + "finite": true, + "max_abs": 0.01258564, + "mean_abs": 0.0019200106, + "psnr_db": 83.331005, + "ref_absmax": 23.1216908, + "rel_max": 0.000544321784, + "scaled_max_abs": 0.000544321784 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 12 + } + }, + "first_fail_index": 0, + "n_judged": 12, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 4.41313312, + "index": 0, + "metrics": { + "corr": 0.999999963, + "finite": true, + "max_abs": 0.00508785248, + "mean_abs": 0.000398882656, + "psnr_db": 88.0865038, + "ref_absmax": 11.5288897, + "rel_max": 0.000441313312, + "scaled_max_abs": 0.000441313312 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "fail", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 6.65530956, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999993146, + "finite": true, + "max_abs": 0.00140953064, + "mean_abs": 0.000455446029, + "psnr_db": 55.2971327, + "ref_absmax": 2.11790395, + "rel_max": 0.000665530956, + "scaled_max_abs": 0.000665530956 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6.40982743, + "index": 1, + "metrics": { + "corr": 0.999999913, + "finite": true, + "max_abs": 0.00591921806, + "mean_abs": 0.000156631948, + "psnr_db": 90.7941906, + "ref_absmax": 9.23459816, + "rel_max": 0.000640982743, + "scaled_max_abs": 0.000640982743 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/maxpool/MaxPool_output_0" + }, + "status": "fail", + "tap": "net.maxpool", + "ungated_probes": { + "band_ratio": 5.6658325, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999687, + "finite": true, + "max_abs": 0.00120407343, + "mean_abs": 0.000156889199, + "psnr_db": 79.0620127, + "ref_absmax": 2.1251483, + "rel_max": 0.00056658325, + "scaled_max_abs": 0.00056658325 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 3.84577671, + "index": 2, + "metrics": { + "corr": 0.999999883, + "finite": true, + "max_abs": 0.00611925125, + "mean_abs": 0.000211193686, + "psnr_db": 93.2053239, + "ref_absmax": 15.9116135, + "rel_max": 0.000384577671, + "scaled_max_abs": 0.000384577671 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.0/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer1.0", + "ungated_probes": { + "band_ratio": 7.42358377, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999998538, + "finite": true, + "max_abs": 0.0022008419, + "mean_abs": 0.000400281296, + "psnr_db": 74.9982661, + "ref_absmax": 2.96466231, + "rel_max": 0.000742358377, + "scaled_max_abs": 0.000742358377 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 5.24185506, + "index": 3, + "metrics": { + "corr": 0.999999806, + "finite": true, + "max_abs": 0.00986480713, + "mean_abs": 0.000288783763, + "psnr_db": 91.782473, + "ref_absmax": 18.8193054, + "rel_max": 0.000524185506, + "scaled_max_abs": 0.000524185506 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer1.1", + "ungated_probes": { + "band_ratio": 12.7757472, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999996483, + "finite": true, + "max_abs": 0.00502556562, + "mean_abs": 0.000639734808, + "psnr_db": 72.0834053, + "ref_absmax": 3.93367648, + "rel_max": 0.00127757472, + "scaled_max_abs": 0.00127757472 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6.13549091, + "index": 4, + "metrics": { + "corr": 0.999999666, + "finite": true, + "max_abs": 0.00717830658, + "mean_abs": 0.000142673529, + "psnr_db": 91.9726282, + "ref_absmax": 11.699645, + "rel_max": 0.000613549091, + "scaled_max_abs": 0.000613549091 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.0/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer2.0", + "ungated_probes": { + "band_ratio": 15.5407001, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999995182, + "finite": true, + "max_abs": 0.00431613624, + "mean_abs": 0.000300737337, + "psnr_db": 74.1721825, + "ref_absmax": 2.77731133, + "rel_max": 0.00155407001, + "scaled_max_abs": 0.00155407001 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 5.55682387, + "index": 5, + "metrics": { + "corr": 0.999999586, + "finite": true, + "max_abs": 0.00645893812, + "mean_abs": 0.000163285244, + "psnr_db": 90.9021387, + "ref_absmax": 11.623435, + "rel_max": 0.000555682387, + "scaled_max_abs": 0.000555682387 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer2.1", + "ungated_probes": { + "band_ratio": 9.6350711, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999995884, + "finite": true, + "max_abs": 0.00492121279, + "mean_abs": 0.000285049422, + "psnr_db": 79.3152022, + "ref_absmax": 5.10760403, + "rel_max": 0.00096350711, + "scaled_max_abs": 0.00096350711 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "wide_range", + "index": 21 + } + }, + { + "band_ratio": 3.11988096, + "index": 6, + "metrics": { + "corr": 0.999999686, + "finite": true, + "max_abs": 0.00427150726, + "mean_abs": 0.000104930944, + "psnr_db": 96.4041002, + "ref_absmax": 13.6912508, + "rel_max": 0.000311988096, + "scaled_max_abs": 0.000311988096 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.0/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer3.0", + "ungated_probes": { + "band_ratio": 12.6988866, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999995823, + "finite": true, + "max_abs": 0.00559353828, + "mean_abs": 0.000257898624, + "psnr_db": 78.7122988, + "ref_absmax": 4.40474701, + "rel_max": 0.00126988866, + "scaled_max_abs": 0.00126988866 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 5.39583059, + "index": 7, + "metrics": { + "corr": 0.99999954, + "finite": true, + "max_abs": 0.00449424982, + "mean_abs": 0.00012543532, + "psnr_db": 90.2691561, + "ref_absmax": 8.32911587, + "rel_max": 0.000539583059, + "scaled_max_abs": 0.000539583059 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer3.1", + "ungated_probes": { + "band_ratio": 14.0946904, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999995502, + "finite": true, + "max_abs": 0.00543741137, + "mean_abs": 0.000301126712, + "psnr_db": 75.9326816, + "ref_absmax": 3.85777283, + "rel_max": 0.00140946904, + "scaled_max_abs": 0.00140946904 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6.38229504, + "index": 8, + "metrics": { + "corr": 0.999999227, + "finite": true, + "max_abs": 0.0038973093, + "mean_abs": 8.07641591e-05, + "psnr_db": 88.460965, + "ref_absmax": 6.10643864, + "rel_max": 0.000638229504, + "scaled_max_abs": 0.000638229504 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.0/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer4.0", + "ungated_probes": { + "band_ratio": 41.0087373, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999985686, + "finite": true, + "max_abs": 0.00864851475, + "mean_abs": 0.000199548231, + "psnr_db": 70.4160598, + "ref_absmax": 2.10894442, + "rel_max": 0.00410087373, + "scaled_max_abs": 0.00410087373 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "wide_range", + "index": 21 + } + }, + { + "band_ratio": 11.3494064, + "index": 9, + "metrics": { + "corr": 0.999998954, + "finite": true, + "max_abs": 0.0201339722, + "mean_abs": 0.000852840296, + "psnr_db": 80.2586643, + "ref_absmax": 17.7401104, + "rel_max": 0.00113494064, + "scaled_max_abs": 0.00113494064 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer4.1", + "ungated_probes": { + "band_ratio": 34.6034747, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999992881, + "finite": true, + "max_abs": 0.0280413032, + "mean_abs": 0.000709865275, + "psnr_db": 71.6774162, + "ref_absmax": 8.10360909, + "rel_max": 0.00346034747, + "scaled_max_abs": 0.00346034747 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "wide_range", + "index": 22 + } + }, + { + "band_ratio": 8.16352368, + "index": 10, + "metrics": { + "corr": 0.999999352, + "finite": true, + "max_abs": 0.00890445709, + "mean_abs": 0.000676864543, + "psnr_db": 79.3243756, + "ref_absmax": 10.9076147, + "rel_max": 0.000816352368, + "scaled_max_abs": 0.000816352368 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 12.5404721, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999997955, + "finite": true, + "max_abs": 0.0073428154, + "mean_abs": 0.000527297091, + "psnr_db": 74.8844675, + "ref_absmax": 5.85529423, + "rel_max": 0.00125404721, + "scaled_max_abs": 0.00125404721 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_ratio": 5.44321784, + "index": 11, + "metrics": { + "corr": 0.999999493, + "finite": true, + "max_abs": 0.01258564, + "mean_abs": 0.00196697065, + "psnr_db": 83.1251992, + "ref_absmax": 23.1216908, + "rel_max": 0.000544321784, + "scaled_max_abs": 0.000544321784 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc", + "ungated_probes": { + "band_ratio": 12.7453537, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999998786, + "finite": true, + "max_abs": 0.00714842975, + "mean_abs": 0.00159129025, + "psnr_db": 72.7000223, + "ref_absmax": 5.60865545, + "rel_max": 0.00127453537, + "scaled_max_abs": 0.00127453537 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 12 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 5.7913326, + "metrics": { + "corr": 0.999999426, + "finite": true, + "max_abs": 0.0124051571, + "mean_abs": 0.00191654548, + "psnr_db": 83.1427519, + "ref_absmax": 21.4202118, + "rel_max": 0.00057913326, + "scaled_max_abs": 0.00057913326 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 11 + } + }, + "first_fail_index": 0, + "n_judged": 12, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 4.39328023, + "index": 0, + "metrics": { + "corr": 0.999999962, + "finite": true, + "max_abs": 0.00506496429, + "mean_abs": 0.000399526056, + "psnr_db": 88.1554656, + "ref_absmax": 11.5288897, + "rel_max": 0.000439328023, + "scaled_max_abs": 0.000439328023 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "fail", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 6.65530956, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999993118, + "finite": true, + "max_abs": 0.00140953064, + "mean_abs": 0.000457014041, + "psnr_db": 55.319373, + "ref_absmax": 2.11790395, + "rel_max": 0.000665530956, + "scaled_max_abs": 0.000665530956 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6.50593626, + "index": 1, + "metrics": { + "corr": 0.999999906, + "finite": true, + "max_abs": 0.00547075272, + "mean_abs": 0.000152722251, + "psnr_db": 90.2281376, + "ref_absmax": 8.40886307, + "rel_max": 0.000650593626, + "scaled_max_abs": 0.000650593626 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/maxpool/MaxPool_output_0" + }, + "status": "fail", + "tap": "net.maxpool", + "ungated_probes": { + "band_ratio": 5.6869099, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999682, + "finite": true, + "max_abs": 0.00120782852, + "mean_abs": 0.00015675475, + "psnr_db": 79.0620423, + "ref_absmax": 2.1238749, + "rel_max": 0.00056869099, + "scaled_max_abs": 0.00056869099 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 5.06201414, + "index": 2, + "metrics": { + "corr": 0.999999869, + "finite": true, + "max_abs": 0.0086517334, + "mean_abs": 0.000212688694, + "psnr_db": 93.8375204, + "ref_absmax": 17.0914841, + "rel_max": 0.000506201414, + "scaled_max_abs": 0.000506201414 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.0/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer1.0", + "ungated_probes": { + "band_ratio": 7.3738079, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999998506, + "finite": true, + "max_abs": 0.00218558311, + "mean_abs": 0.000401267365, + "psnr_db": 74.9809894, + "ref_absmax": 2.96398163, + "rel_max": 0.00073738079, + "scaled_max_abs": 0.00073738079 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 5.35356941, + "index": 3, + "metrics": { + "corr": 0.999999774, + "finite": true, + "max_abs": 0.0100440979, + "mean_abs": 0.000294174719, + "psnr_db": 91.5644526, + "ref_absmax": 18.7614975, + "rel_max": 0.000535356941, + "scaled_max_abs": 0.000535356941 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer1.1", + "ungated_probes": { + "band_ratio": 12.262323, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999996413, + "finite": true, + "max_abs": 0.00482696295, + "mean_abs": 0.000639067576, + "psnr_db": 72.0835159, + "ref_absmax": 3.93641806, + "rel_max": 0.0012262323, + "scaled_max_abs": 0.0012262323 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6.10469266, + "index": 4, + "metrics": { + "corr": 0.99999962, + "finite": true, + "max_abs": 0.00679504871, + "mean_abs": 0.000145339064, + "psnr_db": 91.3860726, + "ref_absmax": 11.1308613, + "rel_max": 0.000610469266, + "scaled_max_abs": 0.000610469266 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.0/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer2.0", + "ungated_probes": { + "band_ratio": 15.353284, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999995151, + "finite": true, + "max_abs": 0.0042681247, + "mean_abs": 0.000297507364, + "psnr_db": 74.2951712, + "ref_absmax": 2.77994251, + "rel_max": 0.0015353284, + "scaled_max_abs": 0.0015353284 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6.29964887, + "index": 5, + "metrics": { + "corr": 0.999999535, + "finite": true, + "max_abs": 0.00716733932, + "mean_abs": 0.000163694342, + "psnr_db": 90.6790379, + "ref_absmax": 11.3773632, + "rel_max": 0.000629964887, + "scaled_max_abs": 0.000629964887 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer2.1", + "ungated_probes": { + "band_ratio": 9.65610128, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999995871, + "finite": true, + "max_abs": 0.00494229794, + "mean_abs": 0.00027630297, + "psnr_db": 79.5559649, + "ref_absmax": 5.11831617, + "rel_max": 0.000965610128, + "scaled_max_abs": 0.000965610128 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 4.43177902, + "index": 6, + "metrics": { + "corr": 0.999999631, + "finite": true, + "max_abs": 0.00528717041, + "mean_abs": 0.000107174731, + "psnr_db": 95.0012723, + "ref_absmax": 11.930131, + "rel_max": 0.000443177902, + "scaled_max_abs": 0.000443177902 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.0/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer3.0", + "ungated_probes": { + "band_ratio": 12.868107, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999995762, + "finite": true, + "max_abs": 0.00567245483, + "mean_abs": 0.000249449232, + "psnr_db": 78.9955181, + "ref_absmax": 4.4081502, + "rel_max": 0.0012868107, + "scaled_max_abs": 0.0012868107 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 5.7059174, + "index": 7, + "metrics": { + "corr": 0.999999482, + "finite": true, + "max_abs": 0.0039691925, + "mean_abs": 0.000126714114, + "psnr_db": 88.7329079, + "ref_absmax": 6.95627403, + "rel_max": 0.00057059174, + "scaled_max_abs": 0.00057059174 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer3.1", + "ungated_probes": { + "band_ratio": 14.3143665, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999995163, + "finite": true, + "max_abs": 0.00553123653, + "mean_abs": 0.000300261316, + "psnr_db": 76.0586549, + "ref_absmax": 3.86411548, + "rel_max": 0.00143143665, + "scaled_max_abs": 0.00143143665 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7.36175813, + "index": 8, + "metrics": { + "corr": 0.99999913, + "finite": true, + "max_abs": 0.00355923176, + "mean_abs": 7.99191391e-05, + "psnr_db": 86.5285124, + "ref_absmax": 4.8347578, + "rel_max": 0.000736175813, + "scaled_max_abs": 0.000736175813 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.0/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer4.0", + "ungated_probes": { + "band_ratio": 40.8514808, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999984778, + "finite": true, + "max_abs": 0.00866341591, + "mean_abs": 0.000191616362, + "psnr_db": 70.6821687, + "ref_absmax": 2.12071037, + "rel_max": 0.00408514808, + "scaled_max_abs": 0.00408514808 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "wide_range", + "index": 20 + } + }, + { + "band_ratio": 10.170452, + "index": 9, + "metrics": { + "corr": 0.999998831, + "finite": true, + "max_abs": 0.0215287209, + "mean_abs": 0.000856284347, + "psnr_db": 81.7139157, + "ref_absmax": 21.1679096, + "rel_max": 0.0010170452, + "scaled_max_abs": 0.0010170452 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer4.1", + "ungated_probes": { + "band_ratio": 33.1640916, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999990744, + "finite": true, + "max_abs": 0.0277996659, + "mean_abs": 0.000892512811, + "psnr_db": 70.6109639, + "ref_absmax": 8.38245964, + "rel_max": 0.00331640916, + "scaled_max_abs": 0.00331640916 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 7 + } + }, + { + "band_ratio": 8.79095353, + "index": 10, + "metrics": { + "corr": 0.999999324, + "finite": true, + "max_abs": 0.0094127655, + "mean_abs": 0.000655995449, + "psnr_db": 79.5055071, + "ref_absmax": 10.7073317, + "rel_max": 0.000879095353, + "scaled_max_abs": 0.000879095353 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 14.0396782, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999997482, + "finite": true, + "max_abs": 0.00824260712, + "mean_abs": 0.000615779366, + "psnr_db": 73.901437, + "ref_absmax": 5.87093735, + "rel_max": 0.00140396782, + "scaled_max_abs": 0.00140396782 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 11 + } + }, + { + "band_ratio": 5.7913326, + "index": 11, + "metrics": { + "corr": 0.999999466, + "finite": true, + "max_abs": 0.0124051571, + "mean_abs": 0.00192894244, + "psnr_db": 83.0684979, + "ref_absmax": 21.4202118, + "rel_max": 0.00057913326, + "scaled_max_abs": 0.00057913326 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc", + "ungated_probes": { + "band_ratio": 15.0224974, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.99999855, + "finite": true, + "max_abs": 0.00860077143, + "mean_abs": 0.00182976677, + "psnr_db": 71.7199334, + "ref_absmax": 5.72526073, + "rel_max": 0.00150224974, + "scaled_max_abs": 0.00150224974 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 11 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp16", + "id": "resnet18__fp16_as_fp32__onnx", + "model": "resnet18", + "path": "onnx", + "variant": "fp16_as_fp32" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/resnet18__input_hw_swap__coreml_fp16.json b/bench/verdicts_calibrated4/resnet18__input_hw_swap__coreml_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..fd9c4c7a15ad90d6abb4c914e73cf5c1a9e453e6 --- /dev/null +++ b/bench/verdicts_calibrated4/resnet18__input_hw_swap__coreml_fp16.json @@ -0,0 +1,1064 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "baseline": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "faithful_output_rel_max": 0.00652165202, + "output_band": 0.013043304, + "source": { + "bundle": "bundles/resnet18__clean__coreml_fp16.json", + "case": "resnet18__clean__coreml_fp16", + "digests": { + "192": { + "converted": "d6e8f11106d7868c4acdddd4c89bb934bd08cc14049682fea972c885765295e4", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "aa676247fae9c779d0ab1c7cd4fb20d3d1c91b615ff304ed67889a259a1af32e", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + } + } + }, + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "normalize", + "band_limit": 0.01, + "explained_by": "hw_transpose", + "nominal_band_ratio": 169.15457, + "results": [ + { + "band_ratio": 169.15457, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 119.778016, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 210.748392, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 0.130516105, + "explains": true, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 311.914062, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [ + "inputs[0]: dtype float16 (declared float32)", + "outputs[0]: dtype float16 (declared float32)" + ], + "status": "precision_narrowing" + }, + "status": "flag" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "_inversed_input_1_cast_fp16", + "basis": "interface hypothesis 'hw_transpose' explains the first over-band tap (normalize)", + "index": 0, + "neighbourhood": [ + { + "band_ratio": 111.131751, + "index": 0, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "status": "fail", + "tap": "normalize" + }, + { + "band_ratio": 94.3360418, + "index": 1, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_9_cast_fp16" + }, + "status": "fail", + "tap": "net.maxpool" + } + ], + "observed_first_over_band": { + "index": 0, + "tap": "normalize" + }, + "shape": 224, + "tap": "normalize" + }, + "fp16_floor": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "baseline": { + "bundle": "bundles/resnet18__clean__coreml_fp16.json", + "case": "resnet18__clean__coreml_fp16", + "digests": { + "192": { + "converted": "d6e8f11106d7868c4acdddd4c89bb934bd08cc14049682fea972c885765295e4", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "aa676247fae9c779d0ab1c7cd4fb20d3d1c91b615ff304ed67889a259a1af32e", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + } + }, + "envelopes_gate": true, + "faithful_output_rel_max": 0.00652165202, + "faithful_tap_rel_max": { + "net.avgpool": 0.00870158006, + "net.fc": 0.00652165202, + "net.layer1.0": 0.00480211137, + "net.layer1.1": 0.0048244139, + "net.layer2.0": 0.00485763828, + "net.layer2.1": 0.00605789942, + "net.layer3.0": 0.00577717049, + "net.layer3.1": 0.0171483417, + "net.layer4.0": 0.0243476768, + "net.layer4.1": 0.014049191, + "net.maxpool": 0.00459322342, + "normalize": 0.00117570499 + }, + "floor": 0.01, + "k": 2.0, + "output_band": 0.013043304, + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used", + "tap_envelopes": { + "net.avgpool": 0.0174031601, + "net.fc": 0.013043304, + "net.layer1.0": 0.01, + "net.layer1.1": 0.01, + "net.layer2.0": 0.01, + "net.layer2.1": 0.0121157988, + "net.layer3.0": 0.011554341, + "net.layer3.1": 0.0342966833, + "net.layer4.0": 0.0486953535, + "net.layer4.1": 0.028098382, + "net.maxpool": 0.01, + "normalize": 0.01 + } + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "b1e0ab150d7fd2ec27a936a44086367cea0f1a168200bd32b9577b5a212cdfba", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "7cd094506b10a59ffdb3d99d0dc79ad445c105df583638efb9508f1ce3fde31e", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D3", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.96875, + "band_limit": 0.013043304, + "band_ratio": 10.3825487, + "metrics": { + "corr": 0.984259504, + "finite": true, + "max_abs": 3.1312027, + "mean_abs": 0.284701484, + "psnr_db": 38.7365953, + "ref_absmax": 23.1216908, + "rel_max": 0.135422739, + "scaled_max_abs": 0.135422739 + }, + "per_op_band_ratio": 13.5422739, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 0, + "n_judged": 12, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 116.179894, + "index": 0, + "metrics": { + "corr": 0.675688296, + "finite": true, + "max_abs": 13.3942518, + "mean_abs": 0.90015469, + "psnr_db": 19.0467187, + "ref_absmax": 11.5288897, + "rel_max": 1.16179894, + "scaled_max_abs": 1.16179894 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "per_op_band_ratio": 116.179894, + "status": "fail", + "tap": "normalize", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 97.4215697, + "index": 1, + "metrics": { + "corr": 0.778579511, + "finite": true, + "max_abs": 8.99649048, + "mean_abs": 0.187071388, + "psnr_db": 27.093685, + "ref_absmax": 9.23459816, + "rel_max": 0.974215697, + "scaled_max_abs": 0.974215697 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_9_cast_fp16" + }, + "per_op_band_ratio": 97.4215697, + "status": "fail", + "tap": "net.maxpool", + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_limit": 0.01, + "band_ratio": 75.8702175, + "index": 2, + "metrics": { + "corr": 0.708529393, + "finite": true, + "max_abs": 12.0721757, + "mean_abs": 0.263069341, + "psnr_db": 29.7488206, + "ref_absmax": 15.9116135, + "rel_max": 0.758702175, + "scaled_max_abs": 0.758702175 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_21_cast_fp16" + }, + "per_op_band_ratio": 75.8702175, + "status": "fail", + "tap": "net.layer1.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 96.1485858, + "index": 3, + "metrics": { + "corr": 0.568450656, + "finite": true, + "max_abs": 18.094496, + "mean_abs": 0.378462762, + "psnr_db": 28.7259282, + "ref_absmax": 18.8193054, + "rel_max": 0.961485858, + "scaled_max_abs": 0.961485858 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_33_cast_fp16" + }, + "per_op_band_ratio": 96.1485858, + "status": "fail", + "tap": "net.layer1.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 75.2156898, + "index": 4, + "metrics": { + "corr": 0.610769511, + "finite": true, + "max_abs": 8.79996872, + "mean_abs": 0.149711529, + "psnr_db": 31.7344221, + "ref_absmax": 11.699645, + "rel_max": 0.752156898, + "scaled_max_abs": 0.752156898 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_47_cast_fp16" + }, + "per_op_band_ratio": 75.2156898, + "status": "fail", + "tap": "net.layer2.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.0121157988, + "band_ratio": 67.5695104, + "index": 5, + "metrics": { + "corr": 0.623817668, + "finite": true, + "max_abs": 9.515625, + "mean_abs": 0.147748697, + "psnr_db": 31.7094469, + "ref_absmax": 11.623435, + "rel_max": 0.818658596, + "scaled_max_abs": 0.818658596 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59_cast_fp16" + }, + "per_op_band_ratio": 81.8658596, + "status": "fail", + "tap": "net.layer2.1", + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_limit": 0.011554341, + "band_ratio": 53.3239226, + "index": 6, + "metrics": { + "corr": 0.858736231, + "finite": true, + "max_abs": 8.43549156, + "mean_abs": 0.0593637935, + "psnr_db": 40.2267974, + "ref_absmax": 13.6912508, + "rel_max": 0.616122784, + "scaled_max_abs": 0.616122784 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_73_cast_fp16" + }, + "per_op_band_ratio": 61.6122784, + "status": "fail", + "tap": "net.layer3.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.0342966833, + "band_ratio": 16.7625828, + "index": 7, + "metrics": { + "corr": 0.875143547, + "finite": true, + "max_abs": 4.78841698, + "mean_abs": 0.0559512814, + "psnr_db": 36.2027721, + "ref_absmax": 8.32911587, + "rel_max": 0.574900993, + "scaled_max_abs": 0.574900993 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85_cast_fp16" + }, + "per_op_band_ratio": 57.4900993, + "status": "fail", + "tap": "net.layer3.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.0486953535, + "band_ratio": 12.0242624, + "index": 8, + "metrics": { + "corr": 0.878369981, + "finite": true, + "max_abs": 3.57547683, + "mean_abs": 0.0286086306, + "psnr_db": 36.8793016, + "ref_absmax": 6.10643864, + "rel_max": 0.585525711, + "scaled_max_abs": 0.585525711 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_99_cast_fp16" + }, + "per_op_band_ratio": 58.5525711, + "status": "fail", + "tap": "net.layer4.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.028098382, + "band_ratio": 18.7060402, + "index": 9, + "metrics": { + "corr": 0.918316704, + "finite": true, + "max_abs": 9.32436991, + "mean_abs": 0.203954178, + "psnr_db": 31.7863343, + "ref_absmax": 17.7401104, + "rel_max": 0.525609463, + "scaled_max_abs": 0.525609463 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_111_cast_fp16" + }, + "per_op_band_ratio": 52.5609463, + "status": "fail", + "tap": "net.layer4.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.0174031601, + "band_ratio": 8.49769528, + "index": 10, + "metrics": { + "corr": 0.981331964, + "finite": true, + "max_abs": 1.61309171, + "mean_abs": 0.100657481, + "psnr_db": 35.1848007, + "ref_absmax": 10.9076147, + "rel_max": 0.147886752, + "scaled_max_abs": 0.147886752 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "per_op_band_ratio": 14.7886752, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_limit": 0.013043304, + "band_ratio": 10.3825487, + "index": 11, + "metrics": { + "corr": 0.984259504, + "finite": true, + "max_abs": 3.1312027, + "mean_abs": 0.284701484, + "psnr_db": 38.7365953, + "ref_absmax": 23.1216908, + "rel_max": 0.135422739, + "scaled_max_abs": 0.135422739 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "per_op_band_ratio": 13.5422739, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_limit": 0.013043304, + "band_ratio": 11.6406411, + "metrics": { + "corr": 0.987308261, + "finite": true, + "max_abs": 3.25228262, + "mean_abs": 0.247553519, + "psnr_db": 39.7328461, + "ref_absmax": 21.4202118, + "rel_max": 0.151832421, + "scaled_max_abs": 0.151832421 + }, + "per_op_band_ratio": 15.1832421, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 0, + "n_judged": 12, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 111.131751, + "index": 0, + "metrics": { + "corr": 0.709013383, + "finite": true, + "max_abs": 12.8122569, + "mean_abs": 0.853087416, + "psnr_db": 19.622833, + "ref_absmax": 11.5288897, + "rel_max": 1.11131751, + "scaled_max_abs": 1.11131751 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "per_op_band_ratio": 111.131751, + "status": "fail", + "tap": "normalize", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 94.3360418, + "index": 1, + "metrics": { + "corr": 0.793497861, + "finite": true, + "max_abs": 7.93258858, + "mean_abs": 0.173042674, + "psnr_db": 27.1688265, + "ref_absmax": 8.40886307, + "rel_max": 0.943360418, + "scaled_max_abs": 0.943360418 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_9_cast_fp16" + }, + "per_op_band_ratio": 94.3360418, + "status": "fail", + "tap": "net.maxpool", + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_limit": 0.01, + "band_ratio": 65.1252503, + "index": 2, + "metrics": { + "corr": 0.72578622, + "finite": true, + "max_abs": 11.1308718, + "mean_abs": 0.247800703, + "psnr_db": 31.1316045, + "ref_absmax": 17.0914841, + "rel_max": 0.651252503, + "scaled_max_abs": 0.651252503 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_21_cast_fp16" + }, + "per_op_band_ratio": 65.1252503, + "status": "fail", + "tap": "net.layer1.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 72.9095664, + "index": 3, + "metrics": { + "corr": 0.577751126, + "finite": true, + "max_abs": 13.6789265, + "mean_abs": 0.361857982, + "psnr_db": 29.2598775, + "ref_absmax": 18.7614975, + "rel_max": 0.729095664, + "scaled_max_abs": 0.729095664 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_33_cast_fp16" + }, + "per_op_band_ratio": 72.9095664, + "status": "fail", + "tap": "net.layer1.1", + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_limit": 0.01, + "band_ratio": 71.6946946, + "index": 4, + "metrics": { + "corr": 0.608697569, + "finite": true, + "max_abs": 7.98023701, + "mean_abs": 0.145452914, + "psnr_db": 31.6725601, + "ref_absmax": 11.1308613, + "rel_max": 0.716946946, + "scaled_max_abs": 0.716946946 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_47_cast_fp16" + }, + "per_op_band_ratio": 71.6946946, + "status": "fail", + "tap": "net.layer2.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.0121157988, + "band_ratio": 59.4030025, + "index": 5, + "metrics": { + "corr": 0.617532793, + "finite": true, + "max_abs": 8.18845701, + "mean_abs": 0.142753743, + "psnr_db": 31.8981756, + "ref_absmax": 11.3773632, + "rel_max": 0.719714829, + "scaled_max_abs": 0.719714829 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59_cast_fp16" + }, + "per_op_band_ratio": 71.9714829, + "status": "fail", + "tap": "net.layer2.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.011554341, + "band_ratio": 53.141403, + "index": 6, + "metrics": { + "corr": 0.846644514, + "finite": true, + "max_abs": 7.32526612, + "mean_abs": 0.0586977755, + "psnr_db": 39.1274625, + "ref_absmax": 11.930131, + "rel_max": 0.61401389, + "scaled_max_abs": 0.61401389 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_73_cast_fp16" + }, + "per_op_band_ratio": 61.401389, + "status": "fail", + "tap": "net.layer3.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.0342966833, + "band_ratio": 23.954947, + "index": 7, + "metrics": { + "corr": 0.864149642, + "finite": true, + "max_abs": 5.71510243, + "mean_abs": 0.0557293857, + "psnr_db": 34.7584913, + "ref_absmax": 6.95627403, + "rel_max": 0.821575229, + "scaled_max_abs": 0.821575229 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85_cast_fp16" + }, + "per_op_band_ratio": 82.1575229, + "status": "fail", + "tap": "net.layer3.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.0486953535, + "band_ratio": 13.7983961, + "index": 8, + "metrics": { + "corr": 0.869593941, + "finite": true, + "max_abs": 3.24855971, + "mean_abs": 0.0275444329, + "psnr_db": 35.090438, + "ref_absmax": 4.8347578, + "rel_max": 0.671917776, + "scaled_max_abs": 0.671917776 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_99_cast_fp16" + }, + "per_op_band_ratio": 67.1917776, + "status": "fail", + "tap": "net.layer4.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.028098382, + "band_ratio": 12.4973444, + "index": 9, + "metrics": { + "corr": 0.922693102, + "finite": true, + "max_abs": 7.43322062, + "mean_abs": 0.191728884, + "psnr_db": 33.8882456, + "ref_absmax": 21.1679096, + "rel_max": 0.351155157, + "scaled_max_abs": 0.351155157 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_111_cast_fp16" + }, + "per_op_band_ratio": 35.1155157, + "status": "fail", + "tap": "net.layer4.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.0174031601, + "band_ratio": 8.14625248, + "index": 10, + "metrics": { + "corr": 0.984379953, + "finite": true, + "max_abs": 1.51798415, + "mean_abs": 0.0869478723, + "psnr_db": 36.1935658, + "ref_absmax": 10.7073317, + "rel_max": 0.141770536, + "scaled_max_abs": 0.141770536 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "per_op_band_ratio": 14.1770536, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.013043304, + "band_ratio": 11.6406411, + "index": 11, + "metrics": { + "corr": 0.987308261, + "finite": true, + "max_abs": 3.25228262, + "mean_abs": 0.247553519, + "psnr_db": 39.7328461, + "ref_absmax": 21.4202118, + "rel_max": 0.151832421, + "scaled_max_abs": 0.151832421 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "per_op_band_ratio": 15.1832421, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp16", + "id": "resnet18__input_hw_swap__coreml_fp16", + "model": "resnet18", + "path": "coreml", + "variant": "input_hw_swap" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/resnet18__input_hw_swap__coreml_fp32.json b/bench/verdicts_calibrated4/resnet18__input_hw_swap__coreml_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..c2a0871b791c1dd662c5632c4ef9afdc0be32867 --- /dev/null +++ b/bench/verdicts_calibrated4/resnet18__input_hw_swap__coreml_fp32.json @@ -0,0 +1,1352 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "normalize", + "explained_by": "hw_transpose", + "nominal_band_ratio": 16910.1721, + "results": [ + { + "band_ratio": 16910.1721, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 11978.5595, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 21078.7917, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 0.000903100643, + "explains": true, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 31179.0395, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "flag" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "_inversed_input_1", + "basis": "interface hypothesis 'hw_transpose' explains the first over-band tap (normalize)", + "index": 0, + "neighbourhood": [ + { + "band_ratio": 11112.3355, + "index": 0, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "fail", + "tap": "normalize" + }, + { + "band_ratio": 9433.64546, + "index": 1, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_9" + }, + "status": "fail", + "tap": "net.maxpool" + } + ], + "observed_first_over_band": { + "index": 0, + "tap": "normalize" + }, + "shape": 224, + "tap": "normalize" + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "22a6f7e559867296fb5131cebcf42d7908b76a557885f49829bbb1484073cefb", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "d07259193b4f66dea4e115798ad6b19a597b3ac8e1507ee3a66eb5d09ed4ddac", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "fp32 per-tap band on near-zero probes", + "reason": "C3-2: per-tap fp32 checks gate without the near_zero probes; they are measured and reported per tap ('ungated_probes'); the output gates on all probes. C4-1: when the output has failed and no gated tap fails, they localise the first divergence (earliest tap over band on all probes)" + }, + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D3", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.96875, + "band_ratio": 1359.43365, + "metrics": { + "corr": 0.984222082, + "finite": true, + "max_abs": 3.14324045, + "mean_abs": 0.280204766, + "psnr_db": 38.7300032, + "ref_absmax": 23.1216908, + "rel_max": 0.135943365, + "scaled_max_abs": 0.135943365 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 0, + "n_judged": 12, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 11616.7792, + "index": 0, + "metrics": { + "corr": 0.600839339, + "finite": true, + "max_abs": 13.3928566, + "mean_abs": 1.02808959, + "psnr_db": 18.4671497, + "ref_absmax": 11.5288897, + "rel_max": 1.16167792, + "scaled_max_abs": 1.16167792 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "fail", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 96.5222518, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999598821, + "finite": true, + "max_abs": 0.0204424858, + "mean_abs": 0.002907845, + "psnr_db": 38.9218202, + "ref_absmax": 2.11790395, + "rel_max": 0.00965222518, + "scaled_max_abs": 0.00965222518 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9741.86727, + "index": 1, + "metrics": { + "corr": 0.763816795, + "finite": true, + "max_abs": 8.99622296, + "mean_abs": 0.213522578, + "psnr_db": 26.5136054, + "ref_absmax": 9.23459816, + "rel_max": 0.974186727, + "scaled_max_abs": 0.974186727 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_9" + }, + "status": "fail", + "tap": "net.maxpool", + "ungated_probes": { + "band_ratio": 47.7609542, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999995466, + "finite": true, + "max_abs": 0.010149911, + "mean_abs": 0.000513772476, + "psnr_db": 67.6947655, + "ref_absmax": 2.1251483, + "rel_max": 0.00477609542, + "scaled_max_abs": 0.00477609542 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 7606.94319, + "index": 2, + "metrics": { + "corr": 0.699219314, + "finite": true, + "max_abs": 12.103874, + "mean_abs": 0.299723926, + "psnr_db": 29.1690258, + "ref_absmax": 15.9116135, + "rel_max": 0.760694319, + "scaled_max_abs": 0.760694319 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_21" + }, + "status": "fail", + "tap": "net.layer1.0", + "ungated_probes": { + "band_ratio": 67.5971546, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999968153, + "finite": true, + "max_abs": 0.0200402737, + "mean_abs": 0.00172407936, + "psnr_db": 61.6976175, + "ref_absmax": 2.96466231, + "rel_max": 0.00675971546, + "scaled_max_abs": 0.00675971546 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9634.89053, + "index": 3, + "metrics": { + "corr": 0.55170057, + "finite": true, + "max_abs": 18.1321948, + "mean_abs": 0.430361138, + "psnr_db": 28.1463344, + "ref_absmax": 18.8193054, + "rel_max": 0.963489053, + "scaled_max_abs": 0.963489053 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_33" + }, + "status": "fail", + "tap": "net.layer1.1", + "ungated_probes": { + "band_ratio": 219.995177, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999611876, + "finite": true, + "max_abs": 0.0865389854, + "mean_abs": 0.00673184287, + "psnr_db": 51.7005624, + "ref_absmax": 3.93367648, + "rel_max": 0.0219995177, + "scaled_max_abs": 0.0219995177 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7529.15805, + "index": 4, + "metrics": { + "corr": 0.595583607, + "finite": true, + "max_abs": 8.80884767, + "mean_abs": 0.170095045, + "psnr_db": 31.1552554, + "ref_absmax": 11.699645, + "rel_max": 0.752915805, + "scaled_max_abs": 0.752915805 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_47" + }, + "status": "fail", + "tap": "net.layer2.0", + "ungated_probes": { + "band_ratio": 159.629453, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999552474, + "finite": true, + "max_abs": 0.0443340689, + "mean_abs": 0.00296290058, + "psnr_db": 54.4984056, + "ref_absmax": 2.77731133, + "rel_max": 0.0159629453, + "scaled_max_abs": 0.0159629453 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 8196.8936, + "index": 5, + "metrics": { + "corr": 0.606515981, + "finite": true, + "max_abs": 9.52760601, + "mean_abs": 0.167874677, + "psnr_db": 31.1301407, + "ref_absmax": 11.623435, + "rel_max": 0.81968936, + "scaled_max_abs": 0.81968936 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59" + }, + "status": "fail", + "tap": "net.layer2.1", + "ungated_probes": { + "band_ratio": 88.7840802, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999636902, + "finite": true, + "max_abs": 0.0453473926, + "mean_abs": 0.00267553904, + "psnr_db": 59.9148868, + "ref_absmax": 5.10760403, + "rel_max": 0.00887840802, + "scaled_max_abs": 0.00887840802 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_ratio": 6164.70279, + "index": 6, + "metrics": { + "corr": 0.849424783, + "finite": true, + "max_abs": 8.4402492, + "mean_abs": 0.0672114037, + "psnr_db": 39.6475308, + "ref_absmax": 13.6912508, + "rel_max": 0.616470279, + "scaled_max_abs": 0.616470279 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_73" + }, + "status": "fail", + "tap": "net.layer3.0", + "ungated_probes": { + "band_ratio": 67.9442667, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.99991783, + "finite": true, + "max_abs": 0.0299277306, + "mean_abs": 0.00112024517, + "psnr_db": 65.8493221, + "ref_absmax": 4.40474701, + "rel_max": 0.00679442667, + "scaled_max_abs": 0.00679442667 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 5780.54578, + "index": 7, + "metrics": { + "corr": 0.86443691, + "finite": true, + "max_abs": 4.81468356, + "mean_abs": 0.0631714898, + "psnr_db": 35.6252147, + "ref_absmax": 8.32911587, + "rel_max": 0.578054578, + "scaled_max_abs": 0.578054578 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85" + }, + "status": "fail", + "tap": "net.layer3.1", + "ungated_probes": { + "band_ratio": 113.745585, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999933852, + "finite": true, + "max_abs": 0.0438804626, + "mean_abs": 0.00108084876, + "psnr_db": 64.2796695, + "ref_absmax": 3.85777283, + "rel_max": 0.0113745585, + "scaled_max_abs": 0.0113745585 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 5872.51838, + "index": 8, + "metrics": { + "corr": 0.870877669, + "finite": true, + "max_abs": 3.58601731, + "mean_abs": 0.0322075893, + "psnr_db": 36.3043711, + "ref_absmax": 6.10643864, + "rel_max": 0.587251838, + "scaled_max_abs": 0.587251838 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_99" + }, + "status": "fail", + "tap": "net.layer4.0", + "ungated_probes": { + "band_ratio": 149.988627, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999854111, + "finite": true, + "max_abs": 0.0316317677, + "mean_abs": 0.000600552559, + "psnr_db": 60.3606846, + "ref_absmax": 2.10894442, + "rel_max": 0.0149988627, + "scaled_max_abs": 0.0149988627 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 5310.88326, + "index": 9, + "metrics": { + "corr": 0.914124602, + "finite": true, + "max_abs": 9.42156553, + "mean_abs": 0.230744267, + "psnr_db": 31.2049678, + "ref_absmax": 17.7401104, + "rel_max": 0.531088326, + "scaled_max_abs": 0.531088326 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_111" + }, + "status": "fail", + "tap": "net.layer4.1", + "ungated_probes": { + "band_ratio": 87.6445321, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999965817, + "finite": true, + "max_abs": 0.0710237026, + "mean_abs": 0.00152565291, + "psnr_db": 64.848113, + "ref_absmax": 8.10360909, + "rel_max": 0.00876445321, + "scaled_max_abs": 0.00876445321 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 1471.17919, + "index": 10, + "metrics": { + "corr": 0.980197573, + "finite": true, + "max_abs": 1.60470557, + "mean_abs": 0.113298842, + "psnr_db": 34.6086606, + "ref_absmax": 10.9076147, + "rel_max": 0.147117919, + "scaled_max_abs": 0.147117919 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 25.0123336, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999995016, + "finite": true, + "max_abs": 0.0146454573, + "mean_abs": 0.000818802477, + "psnr_db": 70.8979341, + "ref_absmax": 5.85529423, + "rel_max": 0.00250123336, + "scaled_max_abs": 0.00250123336 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_ratio": 1359.43365, + "index": 11, + "metrics": { + "corr": 0.983628914, + "finite": true, + "max_abs": 3.14324045, + "mean_abs": 0.31987281, + "psnr_db": 38.1501152, + "ref_absmax": 23.1216908, + "rel_max": 0.135943365, + "scaled_max_abs": 0.135943365 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc", + "ungated_probes": { + "band_ratio": 24.6858518, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.99999702, + "finite": true, + "max_abs": 0.0138454437, + "mean_abs": 0.00252845912, + "psnr_db": 68.6550779, + "ref_absmax": 5.60865545, + "rel_max": 0.00246858518, + "scaled_max_abs": 0.00246858518 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 1513.50814, + "metrics": { + "corr": 0.987238863, + "finite": true, + "max_abs": 3.24196649, + "mean_abs": 0.244208922, + "psnr_db": 39.7112927, + "ref_absmax": 21.4202118, + "rel_max": 0.151350814, + "scaled_max_abs": 0.151350814 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 0, + "n_judged": 12, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 11112.3355, + "index": 0, + "metrics": { + "corr": 0.634923999, + "finite": true, + "max_abs": 12.811289, + "mean_abs": 0.974299065, + "psnr_db": 19.0432516, + "ref_absmax": 11.5288897, + "rel_max": 1.11123355, + "scaled_max_abs": 1.11123355 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "fail", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 94.3721095, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999598458, + "finite": true, + "max_abs": 0.0199871063, + "mean_abs": 0.00290967977, + "psnr_db": 38.961759, + "ref_absmax": 2.11790395, + "rel_max": 0.00943721095, + "scaled_max_abs": 0.00943721095 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9433.64546, + "index": 1, + "metrics": { + "corr": 0.779077668, + "finite": true, + "max_abs": 7.93262329, + "mean_abs": 0.197494101, + "psnr_db": 26.5888604, + "ref_absmax": 8.40886307, + "rel_max": 0.943364546, + "scaled_max_abs": 0.943364546 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_9" + }, + "status": "fail", + "tap": "net.maxpool", + "ungated_probes": { + "band_ratio": 51.4853516, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999995444, + "finite": true, + "max_abs": 0.0109348446, + "mean_abs": 0.000511090991, + "psnr_db": 67.7296959, + "ref_absmax": 2.1238749, + "rel_max": 0.00514853516, + "scaled_max_abs": 0.00514853516 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_ratio": 6509.87517, + "index": 2, + "metrics": { + "corr": 0.716488124, + "finite": true, + "max_abs": 11.1263428, + "mean_abs": 0.282257416, + "psnr_db": 30.551968, + "ref_absmax": 17.0914841, + "rel_max": 0.650987517, + "scaled_max_abs": 0.650987517 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_21" + }, + "status": "fail", + "tap": "net.layer1.0", + "ungated_probes": { + "band_ratio": 70.6019785, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999967742, + "finite": true, + "max_abs": 0.0209262967, + "mean_abs": 0.00172088624, + "psnr_db": 61.7154215, + "ref_absmax": 2.96398163, + "rel_max": 0.00706019785, + "scaled_max_abs": 0.00706019785 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7290.95664, + "index": 3, + "metrics": { + "corr": 0.560317458, + "finite": true, + "max_abs": 13.6789265, + "mean_abs": 0.411342221, + "psnr_db": 28.6802699, + "ref_absmax": 18.7614975, + "rel_max": 0.729095664, + "scaled_max_abs": 0.729095664 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_33" + }, + "status": "fail", + "tap": "net.layer1.1", + "ungated_probes": { + "band_ratio": 228.40191, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.99960176, + "finite": true, + "max_abs": 0.0899085402, + "mean_abs": 0.0067583716, + "psnr_db": 51.6745207, + "ref_absmax": 3.93641806, + "rel_max": 0.022840191, + "scaled_max_abs": 0.022840191 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_ratio": 7168.57744, + "index": 4, + "metrics": { + "corr": 0.592676923, + "finite": true, + "max_abs": 7.97924411, + "mean_abs": 0.165219384, + "psnr_db": 31.0934936, + "ref_absmax": 11.1308613, + "rel_max": 0.716857744, + "scaled_max_abs": 0.716857744 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_47" + }, + "status": "fail", + "tap": "net.layer2.0", + "ungated_probes": { + "band_ratio": 203.575083, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999537034, + "finite": true, + "max_abs": 0.0565927029, + "mean_abs": 0.00296980799, + "psnr_db": 54.5023312, + "ref_absmax": 2.77994251, + "rel_max": 0.0203575083, + "scaled_max_abs": 0.0203575083 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7187.30758, + "index": 5, + "metrics": { + "corr": 0.599305514, + "finite": true, + "max_abs": 8.17726088, + "mean_abs": 0.162188088, + "psnr_db": 31.3187634, + "ref_absmax": 11.3773632, + "rel_max": 0.718730758, + "scaled_max_abs": 0.718730758 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59" + }, + "status": "fail", + "tap": "net.layer2.1", + "ungated_probes": { + "band_ratio": 101.814934, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999620228, + "finite": true, + "max_abs": 0.0521121025, + "mean_abs": 0.00264384995, + "psnr_db": 59.9794041, + "ref_absmax": 5.11831617, + "rel_max": 0.0101814934, + "scaled_max_abs": 0.0101814934 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6145.7122, + "index": 6, + "metrics": { + "corr": 0.836247615, + "finite": true, + "max_abs": 7.33191514, + "mean_abs": 0.0664668989, + "psnr_db": 38.5487103, + "ref_absmax": 11.930131, + "rel_max": 0.61457122, + "scaled_max_abs": 0.61457122 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_73" + }, + "status": "fail", + "tap": "net.layer3.0", + "ungated_probes": { + "band_ratio": 93.712941, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999914876, + "finite": true, + "max_abs": 0.0413100719, + "mean_abs": 0.00108227122, + "psnr_db": 66.04119, + "ref_absmax": 4.4081502, + "rel_max": 0.0093712941, + "scaled_max_abs": 0.0093712941 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 8198.90736, + "index": 7, + "metrics": { + "corr": 0.852245347, + "finite": true, + "max_abs": 5.70338464, + "mean_abs": 0.0629179042, + "psnr_db": 34.1804412, + "ref_absmax": 6.95627403, + "rel_max": 0.819890736, + "scaled_max_abs": 0.819890736 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85" + }, + "status": "fail", + "tap": "net.layer3.1", + "ungated_probes": { + "band_ratio": 108.774609, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999929606, + "finite": true, + "max_abs": 0.042031765, + "mean_abs": 0.00105342501, + "psnr_db": 64.4526832, + "ref_absmax": 3.86411548, + "rel_max": 0.0108774609, + "scaled_max_abs": 0.0108774609 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6743.95925, + "index": 8, + "metrics": { + "corr": 0.861572492, + "finite": true, + "max_abs": 3.26054096, + "mean_abs": 0.031026396, + "psnr_db": 34.5155713, + "ref_absmax": 4.8347578, + "rel_max": 0.674395925, + "scaled_max_abs": 0.674395925 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_99" + }, + "status": "fail", + "tap": "net.layer4.0", + "ungated_probes": { + "band_ratio": 164.184459, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999858748, + "finite": true, + "max_abs": 0.0348187685, + "mean_abs": 0.000544300075, + "psnr_db": 61.0332936, + "ref_absmax": 2.12071037, + "rel_max": 0.0164184459, + "scaled_max_abs": 0.0164184459 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 3496.43815, + "index": 9, + "metrics": { + "corr": 0.918632895, + "finite": true, + "max_abs": 7.40122867, + "mean_abs": 0.216687529, + "psnr_db": 33.3104747, + "ref_absmax": 21.1679096, + "rel_max": 0.349643815, + "scaled_max_abs": 0.349643815 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_111" + }, + "status": "fail", + "tap": "net.layer4.1", + "ungated_probes": { + "band_ratio": 128.710531, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999959479, + "finite": true, + "max_abs": 0.107891083, + "mean_abs": 0.0018235542, + "psnr_db": 64.2003879, + "ref_absmax": 8.38245964, + "rel_max": 0.0128710531, + "scaled_max_abs": 0.0128710531 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 1408.75531, + "index": 10, + "metrics": { + "corr": 0.983330765, + "finite": true, + "max_abs": 1.50840104, + "mean_abs": 0.0978838892, + "psnr_db": 35.5983976, + "ref_absmax": 10.7073317, + "rel_max": 0.140875531, + "scaled_max_abs": 0.140875531 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 28.4908369, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999993582, + "finite": true, + "max_abs": 0.0167267919, + "mean_abs": 0.000974444359, + "psnr_db": 69.8176899, + "ref_absmax": 5.87093735, + "rel_max": 0.00284908369, + "scaled_max_abs": 0.00284908369 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 1513.50814, + "index": 11, + "metrics": { + "corr": 0.986683578, + "finite": true, + "max_abs": 3.24196649, + "mean_abs": 0.278657777, + "psnr_db": 39.131435, + "ref_absmax": 21.4202118, + "rel_max": 0.151350814, + "scaled_max_abs": 0.151350814 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc", + "ungated_probes": { + "band_ratio": 29.4210744, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999995744, + "finite": true, + "max_abs": 0.0168443322, + "mean_abs": 0.00306693473, + "psnr_db": 67.1721757, + "ref_absmax": 5.72526073, + "rel_max": 0.00294210744, + "scaled_max_abs": 0.00294210744 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp32", + "id": "resnet18__input_hw_swap__coreml_fp32", + "model": "resnet18", + "path": "coreml", + "variant": "input_hw_swap" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/resnet18__input_hw_swap__litert_fp16.json b/bench/verdicts_calibrated4/resnet18__input_hw_swap__litert_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..bde537b87adbdd2722674b3545381115d1d9f6c4 --- /dev/null +++ b/bench/verdicts_calibrated4/resnet18__input_hw_swap__litert_fp16.json @@ -0,0 +1,1199 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "baseline": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "faithful_output_rel_max": 0.000479681862, + "output_band": 0.01, + "source": { + "bundle": "bundles/resnet18__clean__litert_fp16.json", + "case": "resnet18__clean__litert_fp16", + "digests": { + "192": { + "converted": "5518083a49acade5bb9995f1d28be7f32b0a23e8e42c5e39dfdbe59cfc6b794d", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "8d2974be0ffdfd9646dac16768c8f2eaa45593bd0207920e3d4230bc7750498d", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + } + } + }, + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "normalize", + "band_limit": 0.01, + "explained_by": "hw_transpose", + "nominal_band_ratio": 169.101721, + "results": [ + { + "band_ratio": 169.101721, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 119.785595, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 210.787917, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 9.03100643e-06, + "explains": true, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 311.790395, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "flag" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 7.72231079e-05, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.62124634e-05, + "mean_abs": 1.38526282e-06, + "psnr_db": 145.227804, + "ref_absmax": 20.9943161, + "rel_max": 7.72231079e-07, + "scaled_max_abs": 7.72231079e-07 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 27, + "outputs": [ + "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models.res", + "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.linear.Linear_fc;1_dequant", + "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.B", + "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.B" + ] + }, + { + "inputs": 43, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 2, + "n_ops_total": 60, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "zoo.Source/zoo.Normalize_normalize;5", + "basis": "interface hypothesis 'hw_transpose' explains the first over-band tap (normalize)", + "index": 0, + "neighbourhood": [ + { + "band_ratio": 111.123355, + "index": 0, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;5" + }, + "status": "fail", + "tap": "normalize" + }, + { + "band_ratio": 94.3382609, + "index": 1, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.MaxPool2d_maxpool;2" + }, + "status": "fail", + "tap": "net.maxpool" + } + ], + "observed_first_over_band": { + "index": 0, + "tap": "normalize" + }, + "shape": 224, + "tap": "normalize" + }, + "fp16_floor": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "baseline": { + "bundle": "bundles/resnet18__clean__litert_fp16.json", + "case": "resnet18__clean__litert_fp16", + "digests": { + "192": { + "converted": "5518083a49acade5bb9995f1d28be7f32b0a23e8e42c5e39dfdbe59cfc6b794d", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "8d2974be0ffdfd9646dac16768c8f2eaa45593bd0207920e3d4230bc7750498d", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + } + }, + "envelopes_gate": true, + "faithful_output_rel_max": 0.000479681862, + "faithful_tap_rel_max": { + "net.avgpool": 0.000675608743, + "net.fc": 0.000479681862, + "net.layer1.0": 0.000285533862, + "net.layer1.1": 0.000262599506, + "net.layer2.0": 0.000592551772, + "net.layer2.1": 0.000620361493, + "net.layer3.0": 0.000279544214, + "net.layer3.1": 0.000620957223, + "net.layer4.0": 0.0015225034, + "net.layer4.1": 0.00121889732, + "net.maxpool": 0.000583793374, + "normalize": 8.27203959e-08 + }, + "floor": 0.01, + "k": 2.0, + "output_band": 0.01, + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used", + "tap_envelopes": { + "net.avgpool": 0.01, + "net.fc": 0.01, + "net.layer1.0": 0.01, + "net.layer1.1": 0.01, + "net.layer2.0": 0.01, + "net.layer2.1": 0.01, + "net.layer3.0": 0.01, + "net.layer3.1": 0.01, + "net.layer4.0": 0.01, + "net.layer4.1": 0.01, + "net.maxpool": 0.01, + "normalize": 0.01 + } + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "befad8e017fdd6311c2eb42ae4d471391cb091b50ccc96d74f0fae1b4640df72", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "f73afc4523a704f4806864fca45af4c6968bd880b677b8deeb2b0945a44f9969", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D3", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.96875, + "band_limit": 0.01, + "band_ratio": 13.5837796, + "metrics": { + "corr": 0.984229919, + "finite": true, + "max_abs": 3.14079952, + "mean_abs": 0.280299407, + "psnr_db": 38.7328055, + "ref_absmax": 23.1216908, + "rel_max": 0.135837796, + "scaled_max_abs": 0.135837796 + }, + "per_op_band_ratio": 13.5837796, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 0, + "n_judged": 12, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 116.167792, + "index": 0, + "metrics": { + "corr": 0.675680702, + "finite": true, + "max_abs": 13.3928566, + "mean_abs": 0.899941872, + "psnr_db": 19.0470658, + "ref_absmax": 11.5288897, + "rel_max": 1.16167792, + "scaled_max_abs": 1.16167792 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;5" + }, + "per_op_band_ratio": 116.167792, + "status": "fail", + "tap": "normalize", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 97.4215208, + "index": 1, + "metrics": { + "corr": 0.778562014, + "finite": true, + "max_abs": 8.99648597, + "mean_abs": 0.186913538, + "psnr_db": 27.0934972, + "ref_absmax": 9.23459816, + "rel_max": 0.974215208, + "scaled_max_abs": 0.974215208 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.MaxPool2d_maxpool;2" + }, + "per_op_band_ratio": 97.4215208, + "status": "fail", + "tap": "net.maxpool", + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_limit": 0.01, + "band_ratio": 76.0654102, + "index": 2, + "metrics": { + "corr": 0.708522852, + "finite": true, + "max_abs": 12.1032341, + "mean_abs": 0.262504054, + "psnr_db": 29.7490054, + "ref_absmax": 15.9116135, + "rel_max": 0.760654102, + "scaled_max_abs": 0.760654102 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 76.0654102, + "status": "fail", + "tap": "net.layer1.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 96.3405743, + "index": 3, + "metrics": { + "corr": 0.568423971, + "finite": true, + "max_abs": 18.1306269, + "mean_abs": 0.377455339, + "psnr_db": 28.7262255, + "ref_absmax": 18.8193054, + "rel_max": 0.963405743, + "scaled_max_abs": 0.963405743 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 96.3405743, + "status": "fail", + "tap": "net.layer1.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 75.2925617, + "index": 4, + "metrics": { + "corr": 0.610833273, + "finite": true, + "max_abs": 8.80896246, + "mean_abs": 0.149226129, + "psnr_db": 31.7349893, + "ref_absmax": 11.699645, + "rel_max": 0.752925617, + "scaled_max_abs": 0.752925617 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 75.2925617, + "status": "fail", + "tap": "net.layer2.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 81.9845989, + "index": 5, + "metrics": { + "corr": 0.623906545, + "finite": true, + "max_abs": 9.52942657, + "mean_abs": 0.147247386, + "psnr_db": 31.7099712, + "ref_absmax": 11.623435, + "rel_max": 0.819845989, + "scaled_max_abs": 0.819845989 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 81.9845989, + "status": "fail", + "tap": "net.layer2.1", + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_limit": 0.01, + "band_ratio": 61.6483357, + "index": 6, + "metrics": { + "corr": 0.858806657, + "finite": true, + "max_abs": 8.44042826, + "mean_abs": 0.0589642791, + "psnr_db": 40.2274244, + "ref_absmax": 13.6912508, + "rel_max": 0.616483357, + "scaled_max_abs": 0.616483357 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 61.6483357, + "status": "fail", + "tap": "net.layer3.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 57.8244818, + "index": 7, + "metrics": { + "corr": 0.875274303, + "finite": true, + "max_abs": 4.81626809, + "mean_abs": 0.0554281118, + "psnr_db": 36.2048899, + "ref_absmax": 8.32911587, + "rel_max": 0.578244818, + "scaled_max_abs": 0.578244818 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 57.8244818, + "status": "fail", + "tap": "net.layer3.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 58.7205375, + "index": 8, + "metrics": { + "corr": 0.878315841, + "finite": true, + "max_abs": 3.58573359, + "mean_abs": 0.0282663662, + "psnr_db": 36.8840159, + "ref_absmax": 6.10643864, + "rel_max": 0.587205375, + "scaled_max_abs": 0.587205375 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 58.7205375, + "status": "fail", + "tap": "net.layer4.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 53.0775185, + "index": 9, + "metrics": { + "corr": 0.918241302, + "finite": true, + "max_abs": 9.41601038, + "mean_abs": 0.202141217, + "psnr_db": 31.7858381, + "ref_absmax": 17.7401104, + "rel_max": 0.530775185, + "scaled_max_abs": 0.530775185 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 53.0775185, + "status": "fail", + "tap": "net.layer4.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 14.7189055, + "index": 10, + "metrics": { + "corr": 0.981346845, + "finite": true, + "max_abs": 1.60548151, + "mean_abs": 0.0992716961, + "psnr_db": 35.1912706, + "ref_absmax": 10.9076147, + "rel_max": 0.147189055, + "scaled_max_abs": 0.147189055 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;1" + }, + "per_op_band_ratio": 14.7189055, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_limit": 0.01, + "band_ratio": 13.5837796, + "index": 11, + "metrics": { + "corr": 0.984229919, + "finite": true, + "max_abs": 3.14079952, + "mean_abs": 0.280299407, + "psnr_db": 38.7328055, + "ref_absmax": 23.1216908, + "rel_max": 0.135837796, + "scaled_max_abs": 0.135837796 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "per_op_band_ratio": 13.5837796, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_limit": 0.01, + "band_ratio": 15.1297209, + "metrics": { + "corr": 0.987244514, + "finite": true, + "max_abs": 3.24081826, + "mean_abs": 0.244300254, + "psnr_db": 39.7139134, + "ref_absmax": 21.4202118, + "rel_max": 0.151297209, + "scaled_max_abs": 0.151297209 + }, + "per_op_band_ratio": 15.1297209, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 0, + "n_judged": 12, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 111.123355, + "index": 0, + "metrics": { + "corr": 0.709006651, + "finite": true, + "max_abs": 12.811289, + "mean_abs": 0.852875392, + "psnr_db": 19.6231673, + "ref_absmax": 11.5288897, + "rel_max": 1.11123355, + "scaled_max_abs": 1.11123355 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;5" + }, + "per_op_band_ratio": 111.123355, + "status": "fail", + "tap": "normalize", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 94.3382609, + "index": 1, + "metrics": { + "corr": 0.793486646, + "finite": true, + "max_abs": 7.93277518, + "mean_abs": 0.172888419, + "psnr_db": 27.1687552, + "ref_absmax": 8.40886307, + "rel_max": 0.943382609, + "scaled_max_abs": 0.943382609 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.MaxPool2d_maxpool;2" + }, + "per_op_band_ratio": 94.3382609, + "status": "fail", + "tap": "net.maxpool", + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_limit": 0.01, + "band_ratio": 65.096397, + "index": 2, + "metrics": { + "corr": 0.725788389, + "finite": true, + "max_abs": 11.1259403, + "mean_abs": 0.247221628, + "psnr_db": 31.1319625, + "ref_absmax": 17.0914841, + "rel_max": 0.65096397, + "scaled_max_abs": 0.65096397 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 65.096397, + "status": "fail", + "tap": "net.layer1.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 72.9095664, + "index": 3, + "metrics": { + "corr": 0.577716678, + "finite": true, + "max_abs": 13.6789265, + "mean_abs": 0.360818832, + "psnr_db": 29.260153, + "ref_absmax": 18.7614975, + "rel_max": 0.729095664, + "scaled_max_abs": 0.729095664 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 72.9095664, + "status": "fail", + "tap": "net.layer1.1", + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_limit": 0.01, + "band_ratio": 71.6845857, + "index": 4, + "metrics": { + "corr": 0.608763466, + "finite": true, + "max_abs": 7.97911179, + "mean_abs": 0.144960951, + "psnr_db": 31.6732199, + "ref_absmax": 11.1308613, + "rel_max": 0.716845857, + "scaled_max_abs": 0.716845857 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 71.6845857, + "status": "fail", + "tap": "net.layer2.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 71.8830841, + "index": 5, + "metrics": { + "corr": 0.617614602, + "finite": true, + "max_abs": 8.17839956, + "mean_abs": 0.142266164, + "psnr_db": 31.8985722, + "ref_absmax": 11.3773632, + "rel_max": 0.718830841, + "scaled_max_abs": 0.718830841 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 71.8830841, + "status": "fail", + "tap": "net.layer2.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 61.4659792, + "index": 6, + "metrics": { + "corr": 0.846726488, + "finite": true, + "max_abs": 7.33297181, + "mean_abs": 0.0583085011, + "psnr_db": 39.1285748, + "ref_absmax": 11.930131, + "rel_max": 0.614659792, + "scaled_max_abs": 0.614659792 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 61.4659792, + "status": "fail", + "tap": "net.layer3.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 82.0044626, + "index": 7, + "metrics": { + "corr": 0.864233511, + "finite": true, + "max_abs": 5.70445514, + "mean_abs": 0.0552042634, + "psnr_db": 34.7600786, + "ref_absmax": 6.95627403, + "rel_max": 0.820044626, + "scaled_max_abs": 0.820044626 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 82.0044626, + "status": "fail", + "tap": "net.layer3.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 67.4285808, + "index": 8, + "metrics": { + "corr": 0.869651782, + "finite": true, + "max_abs": 3.26000857, + "mean_abs": 0.0272249666, + "psnr_db": 35.0952958, + "ref_absmax": 4.8347578, + "rel_max": 0.674285808, + "scaled_max_abs": 0.674285808 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 67.4285808, + "status": "fail", + "tap": "net.layer4.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 34.8998523, + "index": 9, + "metrics": { + "corr": 0.922690688, + "finite": true, + "max_abs": 7.38756919, + "mean_abs": 0.189889446, + "psnr_db": 33.8907167, + "ref_absmax": 21.1679096, + "rel_max": 0.348998523, + "scaled_max_abs": 0.348998523 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 34.8998523, + "status": "fail", + "tap": "net.layer4.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 14.0864988, + "index": 10, + "metrics": { + "corr": 0.984324395, + "finite": true, + "max_abs": 1.50828815, + "mean_abs": 0.0858119218, + "psnr_db": 36.1799051, + "ref_absmax": 10.7073317, + "rel_max": 0.140864988, + "scaled_max_abs": 0.140864988 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;1" + }, + "per_op_band_ratio": 14.0864988, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 15.1297209, + "index": 11, + "metrics": { + "corr": 0.987244514, + "finite": true, + "max_abs": 3.24081826, + "mean_abs": 0.244300254, + "psnr_db": 39.7139134, + "ref_absmax": 21.4202118, + "rel_max": 0.151297209, + "scaled_max_abs": 0.151297209 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "per_op_band_ratio": 15.1297209, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp16", + "id": "resnet18__input_hw_swap__litert_fp16", + "model": "resnet18", + "path": "litert", + "variant": "input_hw_swap" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/resnet18__input_hw_swap__litert_fp32.json b/bench/verdicts_calibrated4/resnet18__input_hw_swap__litert_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..be68d490a604ad3c72af06e026ddf2d66c71e795 --- /dev/null +++ b/bench/verdicts_calibrated4/resnet18__input_hw_swap__litert_fp32.json @@ -0,0 +1,1488 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "normalize", + "explained_by": "hw_transpose", + "nominal_band_ratio": 16910.1721, + "results": [ + { + "band_ratio": 16910.1721, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 11978.5595, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 21078.7917, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 0.000903100643, + "explains": true, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 31179.0395, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "flag" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 0.00726596332, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.52587891e-05, + "mean_abs": 1.28187856e-06, + "psnr_db": 146.167784, + "ref_absmax": 21.0003662, + "rel_max": 7.26596332e-07, + "scaled_max_abs": 7.26596332e-07 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 7, + "outputs": [ + "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models.res" + ] + }, + { + "inputs": 43, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 2, + "n_ops_total": 39, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "zoo.Source/zoo.Normalize_normalize;5", + "basis": "interface hypothesis 'hw_transpose' explains the first over-band tap (normalize)", + "index": 0, + "neighbourhood": [ + { + "band_ratio": 11112.3355, + "index": 0, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;5" + }, + "status": "fail", + "tap": "normalize" + }, + { + "band_ratio": 9433.64531, + "index": 1, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.MaxPool2d_maxpool;2" + }, + "status": "fail", + "tap": "net.maxpool" + } + ], + "observed_first_over_band": { + "index": 0, + "tap": "normalize" + }, + "shape": 224, + "tap": "normalize" + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "1cd197cac23ac2941cb7c0a5dc52218109e965d5029dd346afdd1d144229e48f", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "4c93f87a4476704d598f6a81b870bfca006a32a85e706deabc49e7ba65af58fe", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "fp32 per-tap band on near-zero probes", + "reason": "C3-2: per-tap fp32 checks gate without the near_zero probes; they are measured and reported per tap ('ungated_probes'); the output gates on all probes. C4-1: when the output has failed and no gated tap fails, they localise the first divergence (earliest tap over band on all probes)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D3", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.96875, + "band_ratio": 1359.43613, + "metrics": { + "corr": 0.984222077, + "finite": true, + "max_abs": 3.14324617, + "mean_abs": 0.280204745, + "psnr_db": 38.7300022, + "ref_absmax": 23.1216908, + "rel_max": 0.135943613, + "scaled_max_abs": 0.135943613 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 0, + "n_judged": 12, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 11616.7792, + "index": 0, + "metrics": { + "corr": 0.600839339, + "finite": true, + "max_abs": 13.3928566, + "mean_abs": 1.02808959, + "psnr_db": 18.4671497, + "ref_absmax": 11.5288897, + "rel_max": 1.16167792, + "scaled_max_abs": 1.16167792 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;5" + }, + "status": "fail", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 96.5222518, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999598821, + "finite": true, + "max_abs": 0.0204424858, + "mean_abs": 0.002907845, + "psnr_db": 38.9218202, + "ref_absmax": 2.11790395, + "rel_max": 0.00965222518, + "scaled_max_abs": 0.00965222518 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9741.86701, + "index": 1, + "metrics": { + "corr": 0.7638168, + "finite": true, + "max_abs": 8.99622271, + "mean_abs": 0.213522573, + "psnr_db": 26.5136054, + "ref_absmax": 9.23459816, + "rel_max": 0.974186701, + "scaled_max_abs": 0.974186701 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.MaxPool2d_maxpool;2" + }, + "status": "fail", + "tap": "net.maxpool", + "ungated_probes": { + "band_ratio": 47.762006, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999995466, + "finite": true, + "max_abs": 0.0101501346, + "mean_abs": 0.000513772855, + "psnr_db": 67.6947622, + "ref_absmax": 2.1251483, + "rel_max": 0.0047762006, + "scaled_max_abs": 0.0047762006 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 7606.94439, + "index": 2, + "metrics": { + "corr": 0.699219314, + "finite": true, + "max_abs": 12.1038759, + "mean_abs": 0.299723918, + "psnr_db": 29.1690259, + "ref_absmax": 15.9116135, + "rel_max": 0.760694439, + "scaled_max_abs": 0.760694439 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer1.0", + "ungated_probes": { + "band_ratio": 67.5899168, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999968153, + "finite": true, + "max_abs": 0.0200381279, + "mean_abs": 0.00172408085, + "psnr_db": 61.6976141, + "ref_absmax": 2.96466231, + "rel_max": 0.00675899168, + "scaled_max_abs": 0.00675899168 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9634.89154, + "index": 3, + "metrics": { + "corr": 0.551700568, + "finite": true, + "max_abs": 18.1321967, + "mean_abs": 0.430361129, + "psnr_db": 28.1463345, + "ref_absmax": 18.8193054, + "rel_max": 0.963489154, + "scaled_max_abs": 0.963489154 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer1.1", + "ungated_probes": { + "band_ratio": 219.978737, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999611876, + "finite": true, + "max_abs": 0.0865325183, + "mean_abs": 0.00673184049, + "psnr_db": 51.7005638, + "ref_absmax": 3.93367648, + "rel_max": 0.0219978737, + "scaled_max_abs": 0.0219978737 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7529.15805, + "index": 4, + "metrics": { + "corr": 0.595583611, + "finite": true, + "max_abs": 8.80884767, + "mean_abs": 0.170095044, + "psnr_db": 31.1552555, + "ref_absmax": 11.699645, + "rel_max": 0.752915805, + "scaled_max_abs": 0.752915805 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer2.0", + "ungated_probes": { + "band_ratio": 159.640345, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999552472, + "finite": true, + "max_abs": 0.0443370938, + "mean_abs": 0.00296290406, + "psnr_db": 54.498392, + "ref_absmax": 2.77731133, + "rel_max": 0.0159640345, + "scaled_max_abs": 0.0159640345 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 8196.89114, + "index": 5, + "metrics": { + "corr": 0.606515985, + "finite": true, + "max_abs": 9.52760315, + "mean_abs": 0.167874675, + "psnr_db": 31.1301408, + "ref_absmax": 11.623435, + "rel_max": 0.819689114, + "scaled_max_abs": 0.819689114 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer2.1", + "ungated_probes": { + "band_ratio": 88.7824756, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999636899, + "finite": true, + "max_abs": 0.045346573, + "mean_abs": 0.00267555183, + "psnr_db": 59.9148496, + "ref_absmax": 5.10760403, + "rel_max": 0.00887824756, + "scaled_max_abs": 0.00887824756 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_ratio": 6164.70419, + "index": 6, + "metrics": { + "corr": 0.849424787, + "finite": true, + "max_abs": 8.44025111, + "mean_abs": 0.0672114035, + "psnr_db": 39.647531, + "ref_absmax": 13.6912508, + "rel_max": 0.616470419, + "scaled_max_abs": 0.616470419 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer3.0", + "ungated_probes": { + "band_ratio": 67.9471084, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999917829, + "finite": true, + "max_abs": 0.0299289823, + "mean_abs": 0.00112025521, + "psnr_db": 65.8492233, + "ref_absmax": 4.40474701, + "rel_max": 0.00679471084, + "scaled_max_abs": 0.00679471084 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 5780.54063, + "index": 7, + "metrics": { + "corr": 0.864436909, + "finite": true, + "max_abs": 4.81467927, + "mean_abs": 0.0631714894, + "psnr_db": 35.6252149, + "ref_absmax": 8.32911587, + "rel_max": 0.578054063, + "scaled_max_abs": 0.578054063 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer3.1", + "ungated_probes": { + "band_ratio": 113.739405, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.99993385, + "finite": true, + "max_abs": 0.0438780785, + "mean_abs": 0.00108086044, + "psnr_db": 64.27953, + "ref_absmax": 3.85777283, + "rel_max": 0.0113739405, + "scaled_max_abs": 0.0113739405 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 5872.51916, + "index": 8, + "metrics": { + "corr": 0.870877663, + "finite": true, + "max_abs": 3.58601779, + "mean_abs": 0.0322075891, + "psnr_db": 36.3043711, + "ref_absmax": 6.10643864, + "rel_max": 0.587251916, + "scaled_max_abs": 0.587251916 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer4.0", + "ungated_probes": { + "band_ratio": 149.994845, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999854104, + "finite": true, + "max_abs": 0.0316330791, + "mean_abs": 0.00060056659, + "psnr_db": 60.3604741, + "ref_absmax": 2.10894442, + "rel_max": 0.0149994845, + "scaled_max_abs": 0.0149994845 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 5310.87735, + "index": 9, + "metrics": { + "corr": 0.914124587, + "finite": true, + "max_abs": 9.42155504, + "mean_abs": 0.230744257, + "psnr_db": 31.2049678, + "ref_absmax": 17.7401104, + "rel_max": 0.531087735, + "scaled_max_abs": 0.531087735 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer4.1", + "ungated_probes": { + "band_ratio": 87.6507105, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999965815, + "finite": true, + "max_abs": 0.0710287094, + "mean_abs": 0.0015256885, + "psnr_db": 64.8479002, + "ref_absmax": 8.10360909, + "rel_max": 0.00876507105, + "scaled_max_abs": 0.00876507105 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 1471.17973, + "index": 10, + "metrics": { + "corr": 0.980197567, + "finite": true, + "max_abs": 1.60470617, + "mean_abs": 0.113298819, + "psnr_db": 34.6086599, + "ref_absmax": 10.9076147, + "rel_max": 0.147117973, + "scaled_max_abs": 0.147117973 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;1" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 25.0178306, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999995015, + "finite": true, + "max_abs": 0.0146486759, + "mean_abs": 0.00081883232, + "psnr_db": 70.8975458, + "ref_absmax": 5.85529423, + "rel_max": 0.00250178306, + "scaled_max_abs": 0.00250178306 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_ratio": 1359.43613, + "index": 11, + "metrics": { + "corr": 0.983628908, + "finite": true, + "max_abs": 3.14324617, + "mean_abs": 0.319872768, + "psnr_db": 38.1501143, + "ref_absmax": 23.1216908, + "rel_max": 0.135943613, + "scaled_max_abs": 0.135943613 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.fc", + "ungated_probes": { + "band_ratio": 24.6875522, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999997019, + "finite": true, + "max_abs": 0.0138463974, + "mean_abs": 0.00252858495, + "psnr_db": 68.6546989, + "ref_absmax": 5.60865545, + "rel_max": 0.00246875522, + "scaled_max_abs": 0.00246875522 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 1513.50613, + "metrics": { + "corr": 0.98723887, + "finite": true, + "max_abs": 3.24196219, + "mean_abs": 0.244208711, + "psnr_db": 39.7112961, + "ref_absmax": 21.4202118, + "rel_max": 0.151350613, + "scaled_max_abs": 0.151350613 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 0, + "n_judged": 12, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 11112.3355, + "index": 0, + "metrics": { + "corr": 0.634923999, + "finite": true, + "max_abs": 12.811289, + "mean_abs": 0.974299065, + "psnr_db": 19.0432516, + "ref_absmax": 11.5288897, + "rel_max": 1.11123355, + "scaled_max_abs": 1.11123355 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;5" + }, + "status": "fail", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 94.3721095, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999598458, + "finite": true, + "max_abs": 0.0199871063, + "mean_abs": 0.00290967977, + "psnr_db": 38.961759, + "ref_absmax": 2.11790395, + "rel_max": 0.00943721095, + "scaled_max_abs": 0.00943721095 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9433.64531, + "index": 1, + "metrics": { + "corr": 0.779077672, + "finite": true, + "max_abs": 7.93262316, + "mean_abs": 0.197494097, + "psnr_db": 26.5888604, + "ref_absmax": 8.40886307, + "rel_max": 0.943364531, + "scaled_max_abs": 0.943364531 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.MaxPool2d_maxpool;2" + }, + "status": "fail", + "tap": "net.maxpool", + "ungated_probes": { + "band_ratio": 51.4844395, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999995444, + "finite": true, + "max_abs": 0.0109346509, + "mean_abs": 0.000511091147, + "psnr_db": 67.7296918, + "ref_absmax": 2.1238749, + "rel_max": 0.00514844395, + "scaled_max_abs": 0.00514844395 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_ratio": 6509.87628, + "index": 2, + "metrics": { + "corr": 0.716488124, + "finite": true, + "max_abs": 11.1263447, + "mean_abs": 0.28225741, + "psnr_db": 30.5519681, + "ref_absmax": 17.0914841, + "rel_max": 0.650987628, + "scaled_max_abs": 0.650987628 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer1.0", + "ungated_probes": { + "band_ratio": 70.5983587, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999967742, + "finite": true, + "max_abs": 0.0209252238, + "mean_abs": 0.00172088716, + "psnr_db": 61.7154211, + "ref_absmax": 2.96398163, + "rel_max": 0.00705983587, + "scaled_max_abs": 0.00705983587 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7290.95664, + "index": 3, + "metrics": { + "corr": 0.560317458, + "finite": true, + "max_abs": 13.6789265, + "mean_abs": 0.411342213, + "psnr_db": 28.6802701, + "ref_absmax": 18.7614975, + "rel_max": 0.729095664, + "scaled_max_abs": 0.729095664 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer1.1", + "ungated_probes": { + "band_ratio": 228.403046, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.99960176, + "finite": true, + "max_abs": 0.0899089873, + "mean_abs": 0.00675836652, + "psnr_db": 51.6745238, + "ref_absmax": 3.93641806, + "rel_max": 0.0228403046, + "scaled_max_abs": 0.0228403046 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_ratio": 7168.57777, + "index": 4, + "metrics": { + "corr": 0.592676927, + "finite": true, + "max_abs": 7.97924447, + "mean_abs": 0.165219383, + "psnr_db": 31.0934936, + "ref_absmax": 11.1308613, + "rel_max": 0.716857777, + "scaled_max_abs": 0.716857777 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer2.0", + "ungated_probes": { + "band_ratio": 203.570152, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999537033, + "finite": true, + "max_abs": 0.056591332, + "mean_abs": 0.00296981354, + "psnr_db": 54.5023232, + "ref_absmax": 2.77994251, + "rel_max": 0.0203570152, + "scaled_max_abs": 0.0203570152 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7187.30841, + "index": 5, + "metrics": { + "corr": 0.599305516, + "finite": true, + "max_abs": 8.17726183, + "mean_abs": 0.162188088, + "psnr_db": 31.3187634, + "ref_absmax": 11.3773632, + "rel_max": 0.718730841, + "scaled_max_abs": 0.718730841 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer2.1", + "ungated_probes": { + "band_ratio": 101.817904, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999620228, + "finite": true, + "max_abs": 0.0521136224, + "mean_abs": 0.00264385212, + "psnr_db": 59.9793984, + "ref_absmax": 5.11831617, + "rel_max": 0.0101817904, + "scaled_max_abs": 0.0101817904 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6145.7098, + "index": 6, + "metrics": { + "corr": 0.836247611, + "finite": true, + "max_abs": 7.33191228, + "mean_abs": 0.0664668991, + "psnr_db": 38.5487103, + "ref_absmax": 11.930131, + "rel_max": 0.61457098, + "scaled_max_abs": 0.61457098 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer3.0", + "ungated_probes": { + "band_ratio": 93.6961744, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999914876, + "finite": true, + "max_abs": 0.041302681, + "mean_abs": 0.00108227293, + "psnr_db": 66.0411833, + "ref_absmax": 4.4081502, + "rel_max": 0.00936961744, + "scaled_max_abs": 0.00936961744 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 8198.90325, + "index": 7, + "metrics": { + "corr": 0.852245338, + "finite": true, + "max_abs": 5.70338178, + "mean_abs": 0.0629179031, + "psnr_db": 34.1804414, + "ref_absmax": 6.95627403, + "rel_max": 0.819890325, + "scaled_max_abs": 0.819890325 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer3.1", + "ungated_probes": { + "band_ratio": 108.782013, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999929607, + "finite": true, + "max_abs": 0.042034626, + "mean_abs": 0.00105342635, + "psnr_db": 64.4527243, + "ref_absmax": 3.86411548, + "rel_max": 0.0108782013, + "scaled_max_abs": 0.0108782013 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6743.95777, + "index": 8, + "metrics": { + "corr": 0.861572488, + "finite": true, + "max_abs": 3.26054025, + "mean_abs": 0.0310263943, + "psnr_db": 34.5155718, + "ref_absmax": 4.8347578, + "rel_max": 0.674395777, + "scaled_max_abs": 0.674395777 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer4.0", + "ungated_probes": { + "band_ratio": 164.184459, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999858751, + "finite": true, + "max_abs": 0.0348187685, + "mean_abs": 0.00054429534, + "psnr_db": 61.0333645, + "ref_absmax": 2.12071037, + "rel_max": 0.0164184459, + "scaled_max_abs": 0.0164184459 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 3496.43995, + "index": 9, + "metrics": { + "corr": 0.918632887, + "finite": true, + "max_abs": 7.40123248, + "mean_abs": 0.216687478, + "psnr_db": 33.3104756, + "ref_absmax": 21.1679096, + "rel_max": 0.349643995, + "scaled_max_abs": 0.349643995 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer4.1", + "ungated_probes": { + "band_ratio": 128.704273, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.99995948, + "finite": true, + "max_abs": 0.107885838, + "mean_abs": 0.00182352043, + "psnr_db": 64.2005293, + "ref_absmax": 8.38245964, + "rel_max": 0.0128704273, + "scaled_max_abs": 0.0128704273 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 1408.75721, + "index": 10, + "metrics": { + "corr": 0.983330768, + "finite": true, + "max_abs": 1.50840306, + "mean_abs": 0.0978838225, + "psnr_db": 35.5983995, + "ref_absmax": 10.7073317, + "rel_max": 0.140875721, + "scaled_max_abs": 0.140875721 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;1" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 28.4906339, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999993582, + "finite": true, + "max_abs": 0.0167266726, + "mean_abs": 0.000974437117, + "psnr_db": 69.8176747, + "ref_absmax": 5.87093735, + "rel_max": 0.00284906339, + "scaled_max_abs": 0.00284906339 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 1513.50613, + "index": 11, + "metrics": { + "corr": 0.986683586, + "finite": true, + "max_abs": 3.24196219, + "mean_abs": 0.278657525, + "psnr_db": 39.1314384, + "ref_absmax": 21.4202118, + "rel_max": 0.151350613, + "scaled_max_abs": 0.151350613 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.fc", + "ungated_probes": { + "band_ratio": 29.4209703, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999995743, + "finite": true, + "max_abs": 0.0168442726, + "mean_abs": 0.00306700719, + "psnr_db": 67.171978, + "ref_absmax": 5.72526073, + "rel_max": 0.00294209703, + "scaled_max_abs": 0.00294209703 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp32", + "id": "resnet18__input_hw_swap__litert_fp32", + "model": "resnet18", + "path": "litert", + "variant": "input_hw_swap" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/resnet18__input_hw_swap__onnx_fp16.json b/bench/verdicts_calibrated4/resnet18__input_hw_swap__onnx_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..5d8a7c36d745b4cf2c9f406c45ccfc22fc92a6f1 --- /dev/null +++ b/bench/verdicts_calibrated4/resnet18__input_hw_swap__onnx_fp16.json @@ -0,0 +1,1061 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "baseline": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "faithful_output_rel_max": 0.00057913326, + "output_band": 0.01, + "source": { + "bundle": "bundles/resnet18__clean__onnx_fp16.json", + "case": "resnet18__clean__onnx_fp16", + "digests": { + "192": { + "converted": "4f79899b2d94647c7a27acca5e2e048d6822448df0daac039062b5f5ac153fb2", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "441b70243dcc6533ecfb651f068a5b92f6a087252f2b8a01eebcf8972fcb76c6", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + } + } + }, + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "normalize", + "band_limit": 0.01, + "explained_by": "hw_transpose", + "nominal_band_ratio": 169.080588, + "results": [ + { + "band_ratio": 169.080588, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 119.778016, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 210.748392, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 0.0933896374, + "explains": true, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 311.914062, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "flag" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "/normalize/Div_output_0", + "basis": "interface hypothesis 'hw_transpose' explains the first over-band tap (normalize)", + "index": 0, + "neighbourhood": [ + { + "band_ratio": 111.131751, + "index": 0, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "fail", + "tap": "normalize" + }, + { + "band_ratio": 94.3382193, + "index": 1, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/maxpool/MaxPool_output_0" + }, + "status": "fail", + "tap": "net.maxpool" + } + ], + "observed_first_over_band": { + "index": 0, + "tap": "normalize" + }, + "shape": 224, + "tap": "normalize" + }, + "fp16_floor": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "baseline": { + "bundle": "bundles/resnet18__clean__onnx_fp16.json", + "case": "resnet18__clean__onnx_fp16", + "digests": { + "192": { + "converted": "4f79899b2d94647c7a27acca5e2e048d6822448df0daac039062b5f5ac153fb2", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "441b70243dcc6533ecfb651f068a5b92f6a087252f2b8a01eebcf8972fcb76c6", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + } + }, + "envelopes_gate": true, + "faithful_output_rel_max": 0.00057913326, + "faithful_tap_rel_max": { + "net.avgpool": 0.000879095353, + "net.fc": 0.00057913326, + "net.layer1.0": 0.000506201414, + "net.layer1.1": 0.000535356941, + "net.layer2.0": 0.000613549091, + "net.layer2.1": 0.000629964887, + "net.layer3.0": 0.000475472973, + "net.layer3.1": 0.000795143564, + "net.layer4.0": 0.00179190277, + "net.layer4.1": 0.00158067242, + "net.maxpool": 0.000650593626, + "normalize": 0.000441313312 + }, + "floor": 0.01, + "k": 2.0, + "output_band": 0.01, + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used", + "tap_envelopes": { + "net.avgpool": 0.01, + "net.fc": 0.01, + "net.layer1.0": 0.01, + "net.layer1.1": 0.01, + "net.layer2.0": 0.01, + "net.layer2.1": 0.01, + "net.layer3.0": 0.01, + "net.layer3.1": 0.01, + "net.layer4.0": 0.01, + "net.layer4.1": 0.01, + "net.maxpool": 0.01, + "normalize": 0.01 + } + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "1797ebe4d1d60ffe9e43563a7db8613dd38e2b65ad68971b6f811fbe647ee09c", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "52212054990986e07a43daac8f5eea508b241facd25be10742c332da19e6fd27", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D3", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.96875, + "band_limit": 0.01, + "band_ratio": 13.5868071, + "metrics": { + "corr": 0.984244351, + "finite": true, + "max_abs": 3.14149952, + "mean_abs": 0.280353052, + "psnr_db": 38.7367233, + "ref_absmax": 23.1216908, + "rel_max": 0.135868071, + "scaled_max_abs": 0.135868071 + }, + "per_op_band_ratio": 13.5868071, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 0, + "n_judged": 12, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 116.187157, + "index": 0, + "metrics": { + "corr": 0.675686237, + "finite": true, + "max_abs": 13.3950891, + "mean_abs": 0.900044108, + "psnr_db": 19.0469554, + "ref_absmax": 11.5288897, + "rel_max": 1.16187157, + "scaled_max_abs": 1.16187157 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "per_op_band_ratio": 116.187157, + "status": "fail", + "tap": "normalize", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 97.4215697, + "index": 1, + "metrics": { + "corr": 0.778561732, + "finite": true, + "max_abs": 8.99649048, + "mean_abs": 0.186926646, + "psnr_db": 27.0933872, + "ref_absmax": 9.23459816, + "rel_max": 0.974215697, + "scaled_max_abs": 0.974215697 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/maxpool/MaxPool_output_0" + }, + "per_op_band_ratio": 97.4215697, + "status": "fail", + "tap": "net.maxpool", + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_limit": 0.01, + "band_ratio": 76.0666149, + "index": 2, + "metrics": { + "corr": 0.708521924, + "finite": true, + "max_abs": 12.1034257, + "mean_abs": 0.262525959, + "psnr_db": 29.7487848, + "ref_absmax": 15.9116135, + "rel_max": 0.760666149, + "scaled_max_abs": 0.760666149 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.0/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 76.0666149, + "status": "fail", + "tap": "net.layer1.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 96.3146387, + "index": 3, + "metrics": { + "corr": 0.56841982, + "finite": true, + "max_abs": 18.125746, + "mean_abs": 0.377469477, + "psnr_db": 28.726148, + "ref_absmax": 18.8193054, + "rel_max": 0.963146387, + "scaled_max_abs": 0.963146387 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.1/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 96.3146387, + "status": "fail", + "tap": "net.layer1.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 75.2991592, + "index": 4, + "metrics": { + "corr": 0.610818327, + "finite": true, + "max_abs": 8.80973434, + "mean_abs": 0.149235547, + "psnr_db": 31.7348124, + "ref_absmax": 11.699645, + "rel_max": 0.752991592, + "scaled_max_abs": 0.752991592 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.0/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 75.2991592, + "status": "fail", + "tap": "net.layer2.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 82.0002863, + "index": 5, + "metrics": { + "corr": 0.62389929, + "finite": true, + "max_abs": 9.53125, + "mean_abs": 0.14725425, + "psnr_db": 31.7098322, + "ref_absmax": 11.623435, + "rel_max": 0.820002863, + "scaled_max_abs": 0.820002863 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.1/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 82.0002863, + "status": "fail", + "tap": "net.layer2.1", + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_limit": 0.01, + "band_ratio": 61.6550749, + "index": 6, + "metrics": { + "corr": 0.858800499, + "finite": true, + "max_abs": 8.44135094, + "mean_abs": 0.0589689872, + "psnr_db": 40.2274436, + "ref_absmax": 13.6912508, + "rel_max": 0.616550749, + "scaled_max_abs": 0.616550749 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.0/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 61.6550749, + "status": "fail", + "tap": "net.layer3.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 57.8183904, + "index": 7, + "metrics": { + "corr": 0.875260102, + "finite": true, + "max_abs": 4.81576073, + "mean_abs": 0.0554420851, + "psnr_db": 36.2048234, + "ref_absmax": 8.32911587, + "rel_max": 0.578183904, + "scaled_max_abs": 0.578183904 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.1/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 57.8183904, + "status": "fail", + "tap": "net.layer3.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 58.7444792, + "index": 8, + "metrics": { + "corr": 0.878306362, + "finite": true, + "max_abs": 3.58719558, + "mean_abs": 0.0282743193, + "psnr_db": 36.8837891, + "ref_absmax": 6.10643864, + "rel_max": 0.587444792, + "scaled_max_abs": 0.587444792 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.0/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 58.7444792, + "status": "fail", + "tap": "net.layer4.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 53.0894098, + "index": 9, + "metrics": { + "corr": 0.918254097, + "finite": true, + "max_abs": 9.41811991, + "mean_abs": 0.202190491, + "psnr_db": 31.7865327, + "ref_absmax": 17.7401104, + "rel_max": 0.530894098, + "scaled_max_abs": 0.530894098 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.1/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 53.0894098, + "status": "fail", + "tap": "net.layer4.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 14.7170509, + "index": 10, + "metrics": { + "corr": 0.981358369, + "finite": true, + "max_abs": 1.60527921, + "mean_abs": 0.0993034532, + "psnr_db": 35.193919, + "ref_absmax": 10.9076147, + "rel_max": 0.147170509, + "scaled_max_abs": 0.147170509 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "per_op_band_ratio": 14.7170509, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_limit": 0.01, + "band_ratio": 13.5868071, + "index": 11, + "metrics": { + "corr": 0.984244351, + "finite": true, + "max_abs": 3.14149952, + "mean_abs": 0.280353052, + "psnr_db": 38.7367233, + "ref_absmax": 23.1216908, + "rel_max": 0.135868071, + "scaled_max_abs": 0.135868071 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "per_op_band_ratio": 13.5868071, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_limit": 0.01, + "band_ratio": 15.1174072, + "metrics": { + "corr": 0.987246673, + "finite": true, + "max_abs": 3.23818064, + "mean_abs": 0.24440316, + "psnr_db": 39.7146029, + "ref_absmax": 21.4202118, + "rel_max": 0.151174072, + "scaled_max_abs": 0.151174072 + }, + "per_op_band_ratio": 15.1174072, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 0, + "n_judged": 12, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 111.131751, + "index": 0, + "metrics": { + "corr": 0.709012436, + "finite": true, + "max_abs": 12.8122569, + "mean_abs": 0.852976692, + "psnr_db": 19.6230811, + "ref_absmax": 11.5288897, + "rel_max": 1.11131751, + "scaled_max_abs": 1.11131751 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "per_op_band_ratio": 111.131751, + "status": "fail", + "tap": "normalize", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 94.3382193, + "index": 1, + "metrics": { + "corr": 0.79348693, + "finite": true, + "max_abs": 7.93277168, + "mean_abs": 0.172900701, + "psnr_db": 27.1686582, + "ref_absmax": 8.40886307, + "rel_max": 0.943382193, + "scaled_max_abs": 0.943382193 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/maxpool/MaxPool_output_0" + }, + "per_op_band_ratio": 94.3382193, + "status": "fail", + "tap": "net.maxpool", + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_limit": 0.01, + "band_ratio": 65.0795404, + "index": 2, + "metrics": { + "corr": 0.72578779, + "finite": true, + "max_abs": 11.1230593, + "mean_abs": 0.247242591, + "psnr_db": 31.1317501, + "ref_absmax": 17.0914841, + "rel_max": 0.650795404, + "scaled_max_abs": 0.650795404 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.0/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 65.0795404, + "status": "fail", + "tap": "net.layer1.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 72.9095664, + "index": 3, + "metrics": { + "corr": 0.57771323, + "finite": true, + "max_abs": 13.6789265, + "mean_abs": 0.360832564, + "psnr_db": 29.2601007, + "ref_absmax": 18.7614975, + "rel_max": 0.729095664, + "scaled_max_abs": 0.729095664 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.1/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 72.9095664, + "status": "fail", + "tap": "net.layer1.1", + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_limit": 0.01, + "band_ratio": 71.6859212, + "index": 4, + "metrics": { + "corr": 0.608746755, + "finite": true, + "max_abs": 7.97926044, + "mean_abs": 0.144969947, + "psnr_db": 31.6730332, + "ref_absmax": 11.1308613, + "rel_max": 0.716859212, + "scaled_max_abs": 0.716859212 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.0/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 71.6859212, + "status": "fail", + "tap": "net.layer2.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 71.9028158, + "index": 5, + "metrics": { + "corr": 0.617605091, + "finite": true, + "max_abs": 8.18064451, + "mean_abs": 0.142273662, + "psnr_db": 31.8984322, + "ref_absmax": 11.3773632, + "rel_max": 0.719028158, + "scaled_max_abs": 0.719028158 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.1/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 71.9028158, + "status": "fail", + "tap": "net.layer2.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 61.4668745, + "index": 6, + "metrics": { + "corr": 0.846719463, + "finite": true, + "max_abs": 7.33307862, + "mean_abs": 0.0583134172, + "psnr_db": 39.1286214, + "ref_absmax": 11.930131, + "rel_max": 0.614668745, + "scaled_max_abs": 0.614668745 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.0/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 61.4668745, + "status": "fail", + "tap": "net.layer3.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 81.9890599, + "index": 7, + "metrics": { + "corr": 0.864215922, + "finite": true, + "max_abs": 5.70338368, + "mean_abs": 0.0552163824, + "psnr_db": 34.7599313, + "ref_absmax": 6.95627403, + "rel_max": 0.819890599, + "scaled_max_abs": 0.819890599 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.1/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 81.9890599, + "status": "fail", + "tap": "net.layer3.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 67.4241081, + "index": 8, + "metrics": { + "corr": 0.869640556, + "finite": true, + "max_abs": 3.25979233, + "mean_abs": 0.0272328018, + "psnr_db": 35.0950132, + "ref_absmax": 4.8347578, + "rel_max": 0.674241081, + "scaled_max_abs": 0.674241081 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.0/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 67.4241081, + "status": "fail", + "tap": "net.layer4.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 34.894072, + "index": 9, + "metrics": { + "corr": 0.922685162, + "finite": true, + "max_abs": 7.38634562, + "mean_abs": 0.189949769, + "psnr_db": 33.8903917, + "ref_absmax": 21.1679096, + "rel_max": 0.34894072, + "scaled_max_abs": 0.34894072 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.1/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 34.894072, + "status": "fail", + "tap": "net.layer4.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 14.0858486, + "index": 10, + "metrics": { + "corr": 0.984324379, + "finite": true, + "max_abs": 1.50821853, + "mean_abs": 0.0858559091, + "psnr_db": 36.1798707, + "ref_absmax": 10.7073317, + "rel_max": 0.140858486, + "scaled_max_abs": 0.140858486 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "per_op_band_ratio": 14.0858486, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 15.1174072, + "index": 11, + "metrics": { + "corr": 0.987246673, + "finite": true, + "max_abs": 3.23818064, + "mean_abs": 0.24440316, + "psnr_db": 39.7146029, + "ref_absmax": 21.4202118, + "rel_max": 0.151174072, + "scaled_max_abs": 0.151174072 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "per_op_band_ratio": 15.1174072, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp16", + "id": "resnet18__input_hw_swap__onnx_fp16", + "model": "resnet18", + "path": "onnx", + "variant": "input_hw_swap" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/resnet18__input_hw_swap__onnx_fp32.json b/bench/verdicts_calibrated4/resnet18__input_hw_swap__onnx_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..7305c5dfd991a36fbd311672d7c2fb6beb699c34 --- /dev/null +++ b/bench/verdicts_calibrated4/resnet18__input_hw_swap__onnx_fp32.json @@ -0,0 +1,1352 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "normalize", + "explained_by": "hw_transpose", + "nominal_band_ratio": 16910.1721, + "results": [ + { + "band_ratio": 16910.1721, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 11978.5595, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 21078.7917, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 0.0, + "explains": true, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 31179.0395, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "flag" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "/normalize/Div_output_0", + "basis": "interface hypothesis 'hw_transpose' explains the first over-band tap (normalize)", + "index": 0, + "neighbourhood": [ + { + "band_ratio": 11112.3355, + "index": 0, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "fail", + "tap": "normalize" + }, + { + "band_ratio": 9433.64547, + "index": 1, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/maxpool/MaxPool_output_0" + }, + "status": "fail", + "tap": "net.maxpool" + } + ], + "observed_first_over_band": { + "index": 0, + "tap": "normalize" + }, + "shape": 224, + "tap": "normalize" + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "7bb54956399901c409d6617e02d090a8b602a35f417e36fb718a3e2505b1112c", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "1d818a939b56a32b76327b1c57a719ad31e969f97a8a131d400d6d2796bcc07b", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "fp32 per-tap band on near-zero probes", + "reason": "C3-2: per-tap fp32 checks gate without the near_zero probes; they are measured and reported per tap ('ungated_probes'); the output gates on all probes. C4-1: when the output has failed and no gated tap fails, they localise the first divergence (earliest tap over band on all probes)" + }, + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D3", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.96875, + "band_ratio": 1359.43468, + "metrics": { + "corr": 0.984222074, + "finite": true, + "max_abs": 3.14324284, + "mean_abs": 0.280204892, + "psnr_db": 38.7300005, + "ref_absmax": 23.1216908, + "rel_max": 0.135943468, + "scaled_max_abs": 0.135943468 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 0, + "n_judged": 12, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 11616.7792, + "index": 0, + "metrics": { + "corr": 0.600839339, + "finite": true, + "max_abs": 13.3928566, + "mean_abs": 1.02808958, + "psnr_db": 18.4671496, + "ref_absmax": 11.5288897, + "rel_max": 1.16167792, + "scaled_max_abs": 1.16167792 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "fail", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 96.5222518, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999598821, + "finite": true, + "max_abs": 0.0204424858, + "mean_abs": 0.0029078448, + "psnr_db": 38.9218199, + "ref_absmax": 2.11790395, + "rel_max": 0.00965222518, + "scaled_max_abs": 0.00965222518 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9741.86703, + "index": 1, + "metrics": { + "corr": 0.763816795, + "finite": true, + "max_abs": 8.99622273, + "mean_abs": 0.213522575, + "psnr_db": 26.5136053, + "ref_absmax": 9.23459816, + "rel_max": 0.974186703, + "scaled_max_abs": 0.974186703 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/maxpool/MaxPool_output_0" + }, + "status": "fail", + "tap": "net.maxpool", + "ungated_probes": { + "band_ratio": 47.7622163, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999995466, + "finite": true, + "max_abs": 0.0101501793, + "mean_abs": 0.000513772858, + "psnr_db": 67.6947622, + "ref_absmax": 2.1251483, + "rel_max": 0.00477622163, + "scaled_max_abs": 0.00477622163 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 7606.94559, + "index": 2, + "metrics": { + "corr": 0.699219309, + "finite": true, + "max_abs": 12.1038778, + "mean_abs": 0.299723919, + "psnr_db": 29.1690257, + "ref_absmax": 15.9116135, + "rel_max": 0.760694559, + "scaled_max_abs": 0.760694559 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.0/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer1.0", + "ungated_probes": { + "band_ratio": 67.5953451, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999968153, + "finite": true, + "max_abs": 0.0200397372, + "mean_abs": 0.00172408121, + "psnr_db": 61.6976127, + "ref_absmax": 2.96466231, + "rel_max": 0.00675953451, + "scaled_max_abs": 0.00675953451 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9634.89256, + "index": 3, + "metrics": { + "corr": 0.551700565, + "finite": true, + "max_abs": 18.1321986, + "mean_abs": 0.430361124, + "psnr_db": 28.1463343, + "ref_absmax": 18.8193054, + "rel_max": 0.963489256, + "scaled_max_abs": 0.963489256 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer1.1", + "ungated_probes": { + "band_ratio": 219.990859, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999611876, + "finite": true, + "max_abs": 0.0865372866, + "mean_abs": 0.00673184111, + "psnr_db": 51.7005632, + "ref_absmax": 3.93367648, + "rel_max": 0.0219990859, + "scaled_max_abs": 0.0219990859 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7529.15846, + "index": 4, + "metrics": { + "corr": 0.595583607, + "finite": true, + "max_abs": 8.80884814, + "mean_abs": 0.17009504, + "psnr_db": 31.1552554, + "ref_absmax": 11.699645, + "rel_max": 0.752915846, + "scaled_max_abs": 0.752915846 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.0/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer2.0", + "ungated_probes": { + "band_ratio": 159.640345, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999552473, + "finite": true, + "max_abs": 0.0443370938, + "mean_abs": 0.00296290306, + "psnr_db": 54.4983937, + "ref_absmax": 2.77731133, + "rel_max": 0.0159640345, + "scaled_max_abs": 0.0159640345 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 8196.8936, + "index": 5, + "metrics": { + "corr": 0.606515979, + "finite": true, + "max_abs": 9.52760601, + "mean_abs": 0.167874673, + "psnr_db": 31.1301407, + "ref_absmax": 11.623435, + "rel_max": 0.81968936, + "scaled_max_abs": 0.81968936 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer2.1", + "ungated_probes": { + "band_ratio": 88.7745402, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.9996369, + "finite": true, + "max_abs": 0.0453425199, + "mean_abs": 0.00267554842, + "psnr_db": 59.9148612, + "ref_absmax": 5.10760403, + "rel_max": 0.00887745402, + "scaled_max_abs": 0.00887745402 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_ratio": 6164.70419, + "index": 6, + "metrics": { + "corr": 0.849424785, + "finite": true, + "max_abs": 8.44025111, + "mean_abs": 0.0672114024, + "psnr_db": 39.6475307, + "ref_absmax": 13.6912508, + "rel_max": 0.616470419, + "scaled_max_abs": 0.616470419 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.0/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer3.0", + "ungated_probes": { + "band_ratio": 67.9472268, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999917829, + "finite": true, + "max_abs": 0.0299290344, + "mean_abs": 0.00112025164, + "psnr_db": 65.8492682, + "ref_absmax": 4.40474701, + "rel_max": 0.00679472268, + "scaled_max_abs": 0.00679472268 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 5780.54635, + "index": 7, + "metrics": { + "corr": 0.864436913, + "finite": true, + "max_abs": 4.81468403, + "mean_abs": 0.0631714891, + "psnr_db": 35.6252146, + "ref_absmax": 8.32911587, + "rel_max": 0.578054635, + "scaled_max_abs": 0.578054635 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer3.1", + "ungated_probes": { + "band_ratio": 113.735697, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999933851, + "finite": true, + "max_abs": 0.0438766479, + "mean_abs": 0.00108085326, + "psnr_db": 64.2795931, + "ref_absmax": 3.85777283, + "rel_max": 0.0113735697, + "scaled_max_abs": 0.0113735697 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 5872.52306, + "index": 8, + "metrics": { + "corr": 0.870877671, + "finite": true, + "max_abs": 3.58602017, + "mean_abs": 0.0322075898, + "psnr_db": 36.3043708, + "ref_absmax": 6.10643864, + "rel_max": 0.587252306, + "scaled_max_abs": 0.587252306 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.0/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer4.0", + "ungated_probes": { + "band_ratio": 149.993714, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999854109, + "finite": true, + "max_abs": 0.0316328406, + "mean_abs": 0.000600556904, + "psnr_db": 60.3606162, + "ref_absmax": 2.10894442, + "rel_max": 0.0149993714, + "scaled_max_abs": 0.0149993714 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 5310.88433, + "index": 9, + "metrics": { + "corr": 0.914124604, + "finite": true, + "max_abs": 9.42156744, + "mean_abs": 0.230744276, + "psnr_db": 31.2049677, + "ref_absmax": 17.7401104, + "rel_max": 0.531088433, + "scaled_max_abs": 0.531088433 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer4.1", + "ungated_probes": { + "band_ratio": 87.6545353, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999965816, + "finite": true, + "max_abs": 0.0710318089, + "mean_abs": 0.00152567537, + "psnr_db": 64.8479484, + "ref_absmax": 8.10360909, + "rel_max": 0.00876545353, + "scaled_max_abs": 0.00876545353 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 1471.17973, + "index": 10, + "metrics": { + "corr": 0.980197568, + "finite": true, + "max_abs": 1.60470617, + "mean_abs": 0.113298859, + "psnr_db": 34.6086595, + "ref_absmax": 10.9076147, + "rel_max": 0.147117973, + "scaled_max_abs": 0.147117973 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 25.0164055, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999995015, + "finite": true, + "max_abs": 0.0146478415, + "mean_abs": 0.000818838825, + "psnr_db": 70.8975846, + "ref_absmax": 5.85529423, + "rel_max": 0.00250164055, + "scaled_max_abs": 0.00250164055 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_ratio": 1359.43468, + "index": 11, + "metrics": { + "corr": 0.983628905, + "finite": true, + "max_abs": 3.14324284, + "mean_abs": 0.319872944, + "psnr_db": 38.1501126, + "ref_absmax": 23.1216908, + "rel_max": 0.135943468, + "scaled_max_abs": 0.135943468 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc", + "ungated_probes": { + "band_ratio": 24.6871271, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.99999702, + "finite": true, + "max_abs": 0.013846159, + "mean_abs": 0.00252853085, + "psnr_db": 68.6548455, + "ref_absmax": 5.60865545, + "rel_max": 0.00246871271, + "scaled_max_abs": 0.00246871271 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 1513.50803, + "metrics": { + "corr": 0.987238865, + "finite": true, + "max_abs": 3.24196625, + "mean_abs": 0.244208834, + "psnr_db": 39.7112931, + "ref_absmax": 21.4202118, + "rel_max": 0.151350803, + "scaled_max_abs": 0.151350803 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 0, + "n_judged": 12, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 11112.3355, + "index": 0, + "metrics": { + "corr": 0.634923999, + "finite": true, + "max_abs": 12.811289, + "mean_abs": 0.974299059, + "psnr_db": 19.0432516, + "ref_absmax": 11.5288897, + "rel_max": 1.11123355, + "scaled_max_abs": 1.11123355 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "fail", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 94.3709838, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999598458, + "finite": true, + "max_abs": 0.0199868679, + "mean_abs": 0.00290967938, + "psnr_db": 38.9617593, + "ref_absmax": 2.11790395, + "rel_max": 0.00943709838, + "scaled_max_abs": 0.00943709838 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9433.64547, + "index": 1, + "metrics": { + "corr": 0.779077667, + "finite": true, + "max_abs": 7.9326233, + "mean_abs": 0.197494099, + "psnr_db": 26.5888603, + "ref_absmax": 8.40886307, + "rel_max": 0.943364547, + "scaled_max_abs": 0.943364547 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/maxpool/MaxPool_output_0" + }, + "status": "fail", + "tap": "net.maxpool", + "ungated_probes": { + "band_ratio": 51.4858427, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999995444, + "finite": true, + "max_abs": 0.0109349489, + "mean_abs": 0.000511091085, + "psnr_db": 67.729692, + "ref_absmax": 2.1238749, + "rel_max": 0.00514858427, + "scaled_max_abs": 0.00514858427 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_ratio": 6509.87405, + "index": 2, + "metrics": { + "corr": 0.716488118, + "finite": true, + "max_abs": 11.1263409, + "mean_abs": 0.282257409, + "psnr_db": 30.5519679, + "ref_absmax": 17.0914841, + "rel_max": 0.650987405, + "scaled_max_abs": 0.650987405 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.0/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer1.0", + "ungated_probes": { + "band_ratio": 70.5957445, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999967742, + "finite": true, + "max_abs": 0.020924449, + "mean_abs": 0.001720889, + "psnr_db": 61.7154122, + "ref_absmax": 2.96398163, + "rel_max": 0.00705957445, + "scaled_max_abs": 0.00705957445 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7290.95664, + "index": 3, + "metrics": { + "corr": 0.560317454, + "finite": true, + "max_abs": 13.6789265, + "mean_abs": 0.411342207, + "psnr_db": 28.6802699, + "ref_absmax": 18.7614975, + "rel_max": 0.729095664, + "scaled_max_abs": 0.729095664 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer1.1", + "ungated_probes": { + "band_ratio": 228.407512, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999601759, + "finite": true, + "max_abs": 0.0899107456, + "mean_abs": 0.00675837616, + "psnr_db": 51.6745123, + "ref_absmax": 3.93641806, + "rel_max": 0.0228407512, + "scaled_max_abs": 0.0228407512 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_ratio": 7168.57755, + "index": 4, + "metrics": { + "corr": 0.592676922, + "finite": true, + "max_abs": 7.97924423, + "mean_abs": 0.165219379, + "psnr_db": 31.0934935, + "ref_absmax": 11.1308613, + "rel_max": 0.716857755, + "scaled_max_abs": 0.716857755 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.0/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer2.0", + "ungated_probes": { + "band_ratio": 203.578085, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999537032, + "finite": true, + "max_abs": 0.0565935373, + "mean_abs": 0.00296981804, + "psnr_db": 54.5023103, + "ref_absmax": 2.77994251, + "rel_max": 0.0203578085, + "scaled_max_abs": 0.0203578085 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7187.30841, + "index": 5, + "metrics": { + "corr": 0.599305512, + "finite": true, + "max_abs": 8.17726183, + "mean_abs": 0.162188085, + "psnr_db": 31.3187633, + "ref_absmax": 11.3773632, + "rel_max": 0.718730841, + "scaled_max_abs": 0.718730841 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer2.1", + "ungated_probes": { + "band_ratio": 101.820408, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999620225, + "finite": true, + "max_abs": 0.0521149039, + "mean_abs": 0.00264385916, + "psnr_db": 59.9793734, + "ref_absmax": 5.11831617, + "rel_max": 0.0101820408, + "scaled_max_abs": 0.0101820408 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6145.7098, + "index": 6, + "metrics": { + "corr": 0.836247612, + "finite": true, + "max_abs": 7.33191228, + "mean_abs": 0.0664668976, + "psnr_db": 38.5487101, + "ref_absmax": 11.930131, + "rel_max": 0.61457098, + "scaled_max_abs": 0.61457098 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.0/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer3.0", + "ungated_probes": { + "band_ratio": 93.6934701, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999914875, + "finite": true, + "max_abs": 0.0413014889, + "mean_abs": 0.00108227978, + "psnr_db": 66.0411083, + "ref_absmax": 4.4081502, + "rel_max": 0.00936934701, + "scaled_max_abs": 0.00936934701 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 8198.90119, + "index": 7, + "metrics": { + "corr": 0.852245343, + "finite": true, + "max_abs": 5.70338035, + "mean_abs": 0.0629179021, + "psnr_db": 34.1804412, + "ref_absmax": 6.95627403, + "rel_max": 0.819890119, + "scaled_max_abs": 0.819890119 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer3.1", + "ungated_probes": { + "band_ratio": 108.774609, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999929606, + "finite": true, + "max_abs": 0.042031765, + "mean_abs": 0.00105342946, + "psnr_db": 64.4526791, + "ref_absmax": 3.86411548, + "rel_max": 0.0108774609, + "scaled_max_abs": 0.0108774609 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6743.95974, + "index": 8, + "metrics": { + "corr": 0.861572502, + "finite": true, + "max_abs": 3.2605412, + "mean_abs": 0.0310263942, + "psnr_db": 34.5155716, + "ref_absmax": 4.8347578, + "rel_max": 0.674395974, + "scaled_max_abs": 0.674395974 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.0/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer4.0", + "ungated_probes": { + "band_ratio": 164.184459, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999858747, + "finite": true, + "max_abs": 0.0348187685, + "mean_abs": 0.000544302086, + "psnr_db": 61.0332388, + "ref_absmax": 2.12071037, + "rel_max": 0.0164184459, + "scaled_max_abs": 0.0164184459 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 3496.43995, + "index": 9, + "metrics": { + "corr": 0.918632891, + "finite": true, + "max_abs": 7.40123248, + "mean_abs": 0.216687509, + "psnr_db": 33.3104745, + "ref_absmax": 21.1679096, + "rel_max": 0.349643995, + "scaled_max_abs": 0.349643995 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer4.1", + "ungated_probes": { + "band_ratio": 128.705411, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999959479, + "finite": true, + "max_abs": 0.107886791, + "mean_abs": 0.00182353738, + "psnr_db": 64.2004155, + "ref_absmax": 8.38245964, + "rel_max": 0.0128705411, + "scaled_max_abs": 0.0128705411 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 1408.75687, + "index": 10, + "metrics": { + "corr": 0.983330764, + "finite": true, + "max_abs": 1.50840271, + "mean_abs": 0.0978838633, + "psnr_db": 35.5983969, + "ref_absmax": 10.7073317, + "rel_max": 0.140875687, + "scaled_max_abs": 0.140875687 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 28.4914461, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999993582, + "finite": true, + "max_abs": 0.0167271495, + "mean_abs": 0.00097443285, + "psnr_db": 69.8176862, + "ref_absmax": 5.87093735, + "rel_max": 0.00284914461, + "scaled_max_abs": 0.00284914461 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 1513.50803, + "index": 11, + "metrics": { + "corr": 0.98668358, + "finite": true, + "max_abs": 3.24196625, + "mean_abs": 0.278657677, + "psnr_db": 39.1314354, + "ref_absmax": 21.4202118, + "rel_max": 0.151350803, + "scaled_max_abs": 0.151350803 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc", + "ungated_probes": { + "band_ratio": 29.4232086, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999995744, + "finite": true, + "max_abs": 0.0168455541, + "mean_abs": 0.00306693094, + "psnr_db": 67.1721067, + "ref_absmax": 5.72526073, + "rel_max": 0.00294232086, + "scaled_max_abs": 0.00294232086 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp32", + "id": "resnet18__input_hw_swap__onnx_fp32", + "model": "resnet18", + "path": "onnx", + "variant": "input_hw_swap" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/resnet18__int8_clean__onnx_int8.json b/bench/verdicts_calibrated4/resnet18__int8_clean__onnx_int8.json new file mode 100644 index 0000000000000000000000000000000000000000..175a8fdb9f12a799a2e4e77f23b5fe9374f76d95 --- /dev/null +++ b/bench/verdicts_calibrated4/resnet18__int8_clean__onnx_int8.json @@ -0,0 +1,1296 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": false, + "note": null, + "status": "clear" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "status": "clear" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "status": "clear" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "int8", + "first_divergence": null, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "64ab90e1d9472bf9769ccd182d17ee89863a5b82b4f02136906b5c09bf425825", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "794ffdf8e5271a8074e780a79d3fce7d2c89baeb6e9189f576d42c2579851ccf", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "int8 band on non-natural probes", + "reason": "C3-3: a statically quantised model is specified on its calibration distribution; int8 gates on the natural probes only (the control-selection distribution); uniform, wide_range, near_zero and saturating are measured and reported ('ungated_probes') but do not gate" + }, + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": null, + "probe_gating": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.9375, + "band_ratio": 0.140220536, + "metrics": { + "corr": 0.99915679, + "finite": true, + "max_abs": 0.509357452, + "mean_abs": 0.0678688095, + "psnr_db": 47.0637676, + "ref_absmax": 12.6814899, + "rel_max": 0.0401654265, + "scaled_max_abs": 0.0401654265 + }, + "status": "pass", + "ungated_probes": { + "band_ratio": 18.7262229, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.812737771, + "finite": true, + "max_abs": 18.5986547, + "mean_abs": 0.854619383, + "psnr_db": 27.2954756, + "ref_absmax": 23.1216908, + "rel_max": 0.80438126, + "scaled_max_abs": 0.80438126 + }, + "n_probes": 16 + } + }, + "first_fail_index": null, + "n_judged": 12, + "n_taps": 12, + "probe_gating": { + "output": { + "gated_categories_only": [ + "natural" + ], + "n_gated": 16 + }, + "tap": { + "gated_categories_only": [ + "natural" + ], + "n_gated": 16 + } + }, + "taps": [ + { + "band_ratio": 0.0358589471, + "index": 0, + "metrics": { + "corr": 0.999979409, + "finite": true, + "max_abs": 0.0093292594, + "mean_abs": 0.0046713164, + "psnr_db": 58.9080493, + "ref_absmax": 2.6400001, + "rel_max": 0.00353381024, + "scaled_max_abs": 0.00353381024 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 7.22459355, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.927754064, + "finite": true, + "max_abs": 8.8980484, + "mean_abs": 0.268040572, + "psnr_db": 22.3077725, + "ref_absmax": 11.5288897, + "rel_max": 0.771804455, + "scaled_max_abs": 0.771804455 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 0.0452473901, + "index": 1, + "metrics": { + "corr": 0.999918654, + "finite": true, + "max_abs": 0.0442917347, + "mean_abs": 0.0034715366, + "psnr_db": 56.8881293, + "ref_absmax": 3.53536916, + "rel_max": 0.0125281782, + "scaled_max_abs": 0.0125281782 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/maxpool/MaxPool_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.maxpool", + "ungated_probes": { + "band_ratio": 12.170218, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.87829782, + "finite": true, + "max_abs": 7.26669967, + "mean_abs": 0.0979019736, + "psnr_db": 27.6669892, + "ref_absmax": 9.23459816, + "rel_max": 0.786899391, + "scaled_max_abs": 0.786899391 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 0.0991904502, + "index": 2, + "metrics": { + "corr": 0.999643336, + "finite": true, + "max_abs": 0.200139761, + "mean_abs": 0.00838843954, + "psnr_db": 50.0706028, + "ref_absmax": 3.8667388, + "rel_max": 0.0517593175, + "scaled_max_abs": 0.0517593175 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.0/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.layer1.0", + "ungated_probes": { + "band_ratio": 17.0057304, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.829942696, + "finite": true, + "max_abs": 14.6099226, + "mean_abs": 0.116447211, + "psnr_db": 30.4496307, + "ref_absmax": 15.9116135, + "rel_max": 0.918192406, + "scaled_max_abs": 0.918192406 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 0.126286417, + "index": 3, + "metrics": { + "corr": 0.999206909, + "finite": true, + "max_abs": 0.300880909, + "mean_abs": 0.0149046019, + "psnr_db": 47.9728672, + "ref_absmax": 5.45653391, + "rel_max": 0.0551413982, + "scaled_max_abs": 0.0551413982 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.1/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.layer1.1", + "ungated_probes": { + "band_ratio": 18.3779106, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.816220894, + "finite": true, + "max_abs": 17.6264288, + "mean_abs": 0.143896462, + "psnr_db": 31.1428099, + "ref_absmax": 18.8193054, + "rel_max": 0.936614208, + "scaled_max_abs": 0.936614208 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 0.145304247, + "index": 4, + "metrics": { + "corr": 0.998546958, + "finite": true, + "max_abs": 0.167834997, + "mean_abs": 0.00848421961, + "psnr_db": 49.2732402, + "ref_absmax": 4.28559637, + "rel_max": 0.0391625768, + "scaled_max_abs": 0.0391625768 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.0/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.layer2.0", + "ungated_probes": { + "band_ratio": 14.5694071, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.854305929, + "finite": true, + "max_abs": 10.4215281, + "mean_abs": 0.0509620744, + "psnr_db": 34.960944, + "ref_absmax": 11.699645, + "rel_max": 0.890755921, + "scaled_max_abs": 0.890755921 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 0.195671517, + "index": 5, + "metrics": { + "corr": 0.998043285, + "finite": true, + "max_abs": 0.386914253, + "mean_abs": 0.00956656199, + "psnr_db": 49.1074858, + "ref_absmax": 4.84292746, + "rel_max": 0.0798926386, + "scaled_max_abs": 0.0798926386 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.1/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.layer2.1", + "ungated_probes": { + "band_ratio": 17.3959035, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.826040965, + "finite": true, + "max_abs": 10.2429446, + "mean_abs": 0.0580346365, + "psnr_db": 33.9893118, + "ref_absmax": 11.623435, + "rel_max": 0.881232147, + "scaled_max_abs": 0.881232147 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 0.197040447, + "index": 6, + "metrics": { + "corr": 0.998029596, + "finite": true, + "max_abs": 0.252626419, + "mean_abs": 0.00540565101, + "psnr_db": 48.050605, + "ref_absmax": 2.51875043, + "rel_max": 0.100298313, + "scaled_max_abs": 0.100298313 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.0/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.layer3.0", + "ungated_probes": { + "band_ratio": 25.8374354, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.741625646, + "finite": true, + "max_abs": 13.6023832, + "mean_abs": 0.0424552541, + "psnr_db": 36.0927642, + "ref_absmax": 13.6912508, + "rel_max": 0.993509168, + "scaled_max_abs": 0.993509168 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 0.239179308, + "index": 7, + "metrics": { + "corr": 0.997608207, + "finite": true, + "max_abs": 0.243775606, + "mean_abs": 0.00587365425, + "psnr_db": 46.7638555, + "ref_absmax": 2.36873722, + "rel_max": 0.10291374, + "scaled_max_abs": 0.10291374 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.1/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.layer3.1", + "ungated_probes": { + "band_ratio": 21.9083701, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.780916299, + "finite": true, + "max_abs": 7.98696101, + "mean_abs": 0.0656553424, + "psnr_db": 31.9893156, + "ref_absmax": 8.32911587, + "rel_max": 0.958920627, + "scaled_max_abs": 0.958920627 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 0.303337889, + "index": 8, + "metrics": { + "corr": 0.996966621, + "finite": true, + "max_abs": 0.554084778, + "mean_abs": 0.00366901857, + "psnr_db": 48.9266201, + "ref_absmax": 2.7839849, + "rel_max": 0.199025784, + "scaled_max_abs": 0.199025784 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.0/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.layer4.0", + "ungated_probes": { + "band_ratio": 23.7053499, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.762946501, + "finite": true, + "max_abs": 5.26112664, + "mean_abs": 0.0375351776, + "psnr_db": 32.7569333, + "ref_absmax": 6.10643864, + "rel_max": 0.861570377, + "scaled_max_abs": 0.861570377 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 0.227087154, + "index": 9, + "metrics": { + "corr": 0.997729128, + "finite": true, + "max_abs": 0.928253174, + "mean_abs": 0.0333623356, + "psnr_db": 46.7631148, + "ref_absmax": 14.1892548, + "rel_max": 0.0654194452, + "scaled_max_abs": 0.0654194452 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.1/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.layer4.1", + "ungated_probes": { + "band_ratio": 30.5559622, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.694440378, + "finite": true, + "max_abs": 17.7401104, + "mean_abs": 0.351110724, + "psnr_db": 25.5131604, + "ref_absmax": 17.7401104, + "rel_max": 1.0, + "scaled_max_abs": 1.0 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 0.140647379, + "index": 10, + "metrics": { + "corr": 0.999062364, + "finite": true, + "max_abs": 0.274357319, + "mean_abs": 0.0234244898, + "psnr_db": 47.0373671, + "ref_absmax": 8.47060871, + "rel_max": 0.0323893274, + "scaled_max_abs": 0.0323893274 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 26.1670722, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.738329278, + "finite": true, + "max_abs": 10.3587814, + "mean_abs": 0.30954566, + "psnr_db": 23.0484859, + "ref_absmax": 10.9076147, + "rel_max": 0.949683468, + "scaled_max_abs": 0.949683468 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 0.140220536, + "index": 11, + "metrics": { + "corr": 0.99915679, + "finite": true, + "max_abs": 0.509357452, + "mean_abs": 0.0678688095, + "psnr_db": 47.0637676, + "ref_absmax": 12.6814899, + "rel_max": 0.0401654265, + "scaled_max_abs": 0.0401654265 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "pass", + "tap": "net.fc", + "ungated_probes": { + "band_ratio": 18.7262229, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.812737771, + "finite": true, + "max_abs": 18.5986547, + "mean_abs": 0.854619383, + "psnr_db": 27.2954756, + "ref_absmax": 23.1216908, + "rel_max": 0.80438126, + "scaled_max_abs": 0.80438126 + }, + "n_probes": 16 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.9375, + "band_ratio": 0.118917761, + "metrics": { + "corr": 0.999235891, + "finite": true, + "max_abs": 0.407934189, + "mean_abs": 0.0618418152, + "psnr_db": 48.4950655, + "ref_absmax": 14.0897207, + "rel_max": 0.02895261, + "scaled_max_abs": 0.02895261 + }, + "status": "pass", + "ungated_probes": { + "band_ratio": 18.2988298, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.817011702, + "finite": true, + "max_abs": 16.2005711, + "mean_abs": 0.783465687, + "psnr_db": 27.5224401, + "ref_absmax": 21.4202118, + "rel_max": 0.756321703, + "scaled_max_abs": 0.756321703 + }, + "n_probes": 16 + } + }, + "first_fail_index": null, + "n_judged": 12, + "n_taps": 12, + "probe_gating": { + "output": { + "gated_categories_only": [ + "natural" + ], + "n_gated": 16 + }, + "tap": { + "gated_categories_only": [ + "natural" + ], + "n_gated": 16 + } + }, + "taps": [ + { + "band_ratio": 0.0358907272, + "index": 0, + "metrics": { + "corr": 0.999978106, + "finite": true, + "max_abs": 0.009329319, + "mean_abs": 0.00467719955, + "psnr_db": 58.9003548, + "ref_absmax": 2.6400001, + "rel_max": 0.00353383281, + "scaled_max_abs": 0.00353383281 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 6.36551683, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.936344832, + "finite": true, + "max_abs": 8.8980484, + "mean_abs": 0.261245939, + "psnr_db": 22.8630328, + "ref_absmax": 11.5288897, + "rel_max": 0.771804455, + "scaled_max_abs": 0.771804455 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 0.0431595026, + "index": 1, + "metrics": { + "corr": 0.999913979, + "finite": true, + "max_abs": 0.0463433862, + "mean_abs": 0.00347677934, + "psnr_db": 57.2984714, + "ref_absmax": 3.72035718, + "rel_max": 0.0124567035, + "scaled_max_abs": 0.0124567035 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/maxpool/MaxPool_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.maxpool", + "ungated_probes": { + "band_ratio": 11.4897599, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.885102401, + "finite": true, + "max_abs": 6.58115673, + "mean_abs": 0.0889399894, + "psnr_db": 27.7956819, + "ref_absmax": 8.40886307, + "rel_max": 0.782645249, + "scaled_max_abs": 0.782645249 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 0.0916857723, + "index": 2, + "metrics": { + "corr": 0.999616118, + "finite": true, + "max_abs": 0.177350521, + "mean_abs": 0.00855409121, + "psnr_db": 50.753961, + "ref_absmax": 4.25525713, + "rel_max": 0.0416779799, + "scaled_max_abs": 0.0416779799 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.0/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.layer1.0", + "ungated_probes": { + "band_ratio": 16.6315182, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.833684818, + "finite": true, + "max_abs": 15.9720588, + "mean_abs": 0.107388085, + "psnr_db": 31.7604678, + "ref_absmax": 17.0914841, + "rel_max": 0.934503915, + "scaled_max_abs": 0.934503915 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 0.127192891, + "index": 3, + "metrics": { + "corr": 0.999167715, + "finite": true, + "max_abs": 0.289882183, + "mean_abs": 0.0149949946, + "psnr_db": 47.9107432, + "ref_absmax": 5.44877625, + "rel_max": 0.0532013373, + "scaled_max_abs": 0.0532013373 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.1/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.layer1.1", + "ungated_probes": { + "band_ratio": 18.4732366, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.815267634, + "finite": true, + "max_abs": 17.2605718, + "mean_abs": 0.135099297, + "psnr_db": 31.6829685, + "ref_absmax": 18.7614975, + "rel_max": 0.919999688, + "scaled_max_abs": 0.919999688 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 0.151412635, + "index": 4, + "metrics": { + "corr": 0.998485874, + "finite": true, + "max_abs": 0.337941647, + "mean_abs": 0.00845785823, + "psnr_db": 49.4453612, + "ref_absmax": 4.3591032, + "rel_max": 0.077525498, + "scaled_max_abs": 0.077525498 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.0/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.layer2.0", + "ungated_probes": { + "band_ratio": 14.4762604, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.855237396, + "finite": true, + "max_abs": 9.779015, + "mean_abs": 0.0488033748, + "psnr_db": 35.0481218, + "ref_absmax": 11.1308613, + "rel_max": 0.878549715, + "scaled_max_abs": 0.878549715 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 0.210729511, + "index": 5, + "metrics": { + "corr": 0.997892705, + "finite": true, + "max_abs": 0.732395172, + "mean_abs": 0.00958275559, + "psnr_db": 49.9829912, + "ref_absmax": 5.38829708, + "rel_max": 0.13592331, + "scaled_max_abs": 0.13592331 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.1/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.layer2.1", + "ungated_probes": { + "band_ratio": 17.0264364, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.829735636, + "finite": true, + "max_abs": 9.97796714, + "mean_abs": 0.0542260973, + "psnr_db": 34.416665, + "ref_absmax": 11.3773632, + "rel_max": 0.877001724, + "scaled_max_abs": 0.877001724 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 0.193413739, + "index": 6, + "metrics": { + "corr": 0.998065863, + "finite": true, + "max_abs": 0.1143177, + "mean_abs": 0.00522718821, + "psnr_db": 46.4377059, + "ref_absmax": 2.02191901, + "rel_max": 0.0565392083, + "scaled_max_abs": 0.0565392083 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.0/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.layer3.0", + "ungated_probes": { + "band_ratio": 24.2389246, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.757610754, + "finite": true, + "max_abs": 11.6338164, + "mean_abs": 0.0399008954, + "psnr_db": 35.6776837, + "ref_absmax": 11.930131, + "rel_max": 0.975162505, + "scaled_max_abs": 0.975162505 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 0.234520588, + "index": 7, + "metrics": { + "corr": 0.997654794, + "finite": true, + "max_abs": 0.122147977, + "mean_abs": 0.00571606535, + "psnr_db": 44.5312584, + "ref_absmax": 1.77853799, + "rel_max": 0.0686788689, + "scaled_max_abs": 0.0686788689 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.1/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.layer3.1", + "ungated_probes": { + "band_ratio": 19.3039466, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.806960534, + "finite": true, + "max_abs": 6.35879863, + "mean_abs": 0.0554980021, + "psnr_db": 31.5361248, + "ref_absmax": 6.95627403, + "rel_max": 0.914109853, + "scaled_max_abs": 0.914109853 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 0.298225836, + "index": 8, + "metrics": { + "corr": 0.997017742, + "finite": true, + "max_abs": 0.212491691, + "mean_abs": 0.00342391808, + "psnr_db": 48.9143141, + "ref_absmax": 2.59620762, + "rel_max": 0.0818469561, + "scaled_max_abs": 0.0818469561 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.0/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.layer4.0", + "ungated_probes": { + "band_ratio": 20.2923938, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.797076062, + "finite": true, + "max_abs": 3.82852435, + "mean_abs": 0.0323347782, + "psnr_db": 31.8764751, + "ref_absmax": 4.8347578, + "rel_max": 0.791875106, + "scaled_max_abs": 0.791875106 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 0.219134569, + "index": 9, + "metrics": { + "corr": 0.997808654, + "finite": true, + "max_abs": 0.735654831, + "mean_abs": 0.0314695944, + "psnr_db": 46.7732907, + "ref_absmax": 13.5174656, + "rel_max": 0.0544225414, + "scaled_max_abs": 0.0544225414 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.1/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.layer4.1", + "ungated_probes": { + "band_ratio": 29.3529716, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.706470284, + "finite": true, + "max_abs": 21.1679096, + "mean_abs": 0.311119181, + "psnr_db": 27.6284242, + "ref_absmax": 21.1679096, + "rel_max": 1.0, + "scaled_max_abs": 1.0 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 0.128100019, + "index": 10, + "metrics": { + "corr": 0.999119532, + "finite": true, + "max_abs": 0.54506731, + "mean_abs": 0.0209939738, + "psnr_db": 47.8490161, + "ref_absmax": 8.43813801, + "rel_max": 0.0645956857, + "scaled_max_abs": 0.0645956857 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 25.0576867, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.749423133, + "finite": true, + "max_abs": 10.6763784, + "mean_abs": 0.275524005, + "psnr_db": 23.5618761, + "ref_absmax": 10.7073317, + "rel_max": 0.997109157, + "scaled_max_abs": 0.997109157 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 0.118917761, + "index": 11, + "metrics": { + "corr": 0.999235891, + "finite": true, + "max_abs": 0.407934189, + "mean_abs": 0.0618418152, + "psnr_db": 48.4950655, + "ref_absmax": 14.0897207, + "rel_max": 0.02895261, + "scaled_max_abs": 0.02895261 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "pass", + "tap": "net.fc", + "ungated_probes": { + "band_ratio": 18.2988298, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.817011702, + "finite": true, + "max_abs": 16.2005711, + "mean_abs": 0.783465687, + "psnr_db": 27.5224401, + "ref_absmax": 21.4202118, + "rel_max": 0.756321703, + "scaled_max_abs": 0.756321703 + }, + "n_probes": 16 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "int8", + "id": "resnet18__int8_clean__onnx_int8", + "model": "resnet18", + "path": "onnx", + "variant": "int8_clean" + }, + "tap_bands_gate": true, + "verdict": "PASS" +} diff --git a/bench/verdicts_calibrated4/resnet18__int8_override_layer2_0__onnx_int8.json b/bench/verdicts_calibrated4/resnet18__int8_override_layer2_0__onnx_int8.json new file mode 100644 index 0000000000000000000000000000000000000000..779eebbc644636bad4e9f1664e4a39d1873023db --- /dev/null +++ b/bench/verdicts_calibrated4/resnet18__int8_override_layer2_0__onnx_int8.json @@ -0,0 +1,1416 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "reason": "first divergence at tap 4 is beyond the hypothesis taps (first 3) \u2014 interface faults surface earlier", + "status": "not_evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "status": "flag" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "int8", + "first_divergence": { + "artifact_tensor": "/net/layer2/layer2.0/relu_1/Relu_output_0_DequantizeLinear_Output", + "basis": "earliest tap over the int8 band (natural probes, C3-3)", + "index": 4, + "neighbourhood": [ + { + "band_ratio": 0.127192891, + "index": 3, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.1/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_ratio": 25.9383533, + "index": 4, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.0/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.layer2.0" + }, + { + "band_ratio": 74.3440096, + "index": 5, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.1/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.layer2.1" + } + ], + "shape": 224, + "tap": "net.layer2.0" + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "7de926f37c11546784f652b26b81beb3a728c9839b54c5456c6679e5dd3434c7", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "d2d4b332379417d49580abdf6fb8966a5b66a1f7c4db027b00684f7045d1dd44", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "int8 band on non-natural probes", + "reason": "C3-3: a statically quantised model is specified on its calibration distribution; int8 gates on the natural probes only (the control-selection distribution); uniform, wide_range, near_zero and saturating are measured and reported ('ungated_probes') but do not gate" + }, + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D4", + "probe_gating": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.0, + "band_ratio": 92.7076971, + "metrics": { + "corr": 0.0729230295, + "finite": true, + "max_abs": 12.0733271, + "mean_abs": 2.06165803, + "psnr_db": 17.220132, + "ref_absmax": 12.6814899, + "rel_max": 0.952043263, + "scaled_max_abs": 0.952043263 + }, + "status": "fail", + "ungated_probes": { + "band_ratio": 61.8136761, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.381863239, + "finite": true, + "max_abs": 18.9954123, + "mean_abs": 1.9456111, + "psnr_db": 22.9023106, + "ref_absmax": 23.1216908, + "rel_max": 0.821540801, + "scaled_max_abs": 0.821540801 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 12 + } + }, + "first_fail_index": 4, + "n_judged": 12, + "n_taps": 12, + "probe_gating": { + "output": { + "gated_categories_only": [ + "natural" + ], + "n_gated": 16 + }, + "tap": { + "gated_categories_only": [ + "natural" + ], + "n_gated": 16 + } + }, + "taps": [ + { + "band_ratio": 0.0358589471, + "index": 0, + "metrics": { + "corr": 0.999979409, + "finite": true, + "max_abs": 0.0093292594, + "mean_abs": 0.0046713164, + "psnr_db": 58.9080493, + "ref_absmax": 2.6400001, + "rel_max": 0.00353381024, + "scaled_max_abs": 0.00353381024 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 7.22459355, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.927754064, + "finite": true, + "max_abs": 8.8980484, + "mean_abs": 0.268040572, + "psnr_db": 22.3077725, + "ref_absmax": 11.5288897, + "rel_max": 0.771804455, + "scaled_max_abs": 0.771804455 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 0.0452473901, + "index": 1, + "metrics": { + "corr": 0.999918654, + "finite": true, + "max_abs": 0.0442917347, + "mean_abs": 0.0034715366, + "psnr_db": 56.8881293, + "ref_absmax": 3.53536916, + "rel_max": 0.0125281782, + "scaled_max_abs": 0.0125281782 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/maxpool/MaxPool_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.maxpool", + "ungated_probes": { + "band_ratio": 12.170218, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.87829782, + "finite": true, + "max_abs": 7.26669967, + "mean_abs": 0.0979019736, + "psnr_db": 27.6669892, + "ref_absmax": 9.23459816, + "rel_max": 0.786899391, + "scaled_max_abs": 0.786899391 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 0.0991904502, + "index": 2, + "metrics": { + "corr": 0.999643336, + "finite": true, + "max_abs": 0.200139761, + "mean_abs": 0.00838843954, + "psnr_db": 50.0706028, + "ref_absmax": 3.8667388, + "rel_max": 0.0517593175, + "scaled_max_abs": 0.0517593175 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.0/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.layer1.0", + "ungated_probes": { + "band_ratio": 17.0057304, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.829942696, + "finite": true, + "max_abs": 14.6099226, + "mean_abs": 0.116447211, + "psnr_db": 30.4496307, + "ref_absmax": 15.9116135, + "rel_max": 0.918192406, + "scaled_max_abs": 0.918192406 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 0.126286417, + "index": 3, + "metrics": { + "corr": 0.999206909, + "finite": true, + "max_abs": 0.300880909, + "mean_abs": 0.0149046019, + "psnr_db": 47.9728672, + "ref_absmax": 5.45653391, + "rel_max": 0.0551413982, + "scaled_max_abs": 0.0551413982 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.1/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.layer1.1", + "ungated_probes": { + "band_ratio": 18.3779106, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.816220894, + "finite": true, + "max_abs": 17.6264288, + "mean_abs": 0.143896462, + "psnr_db": 31.1428099, + "ref_absmax": 18.8193054, + "rel_max": 0.936614208, + "scaled_max_abs": 0.936614208 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 26.262567, + "index": 4, + "metrics": { + "corr": 0.73737433, + "finite": true, + "max_abs": 4.03159636, + "mean_abs": 0.179489682, + "psnr_db": 24.4997266, + "ref_absmax": 4.28559637, + "rel_max": 0.940731701, + "scaled_max_abs": 0.940731701 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.0/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.layer2.0", + "ungated_probes": { + "band_ratio": 44.6422188, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.553577812, + "finite": true, + "max_abs": 11.445645, + "mean_abs": 0.232383828, + "psnr_db": 29.3845047, + "ref_absmax": 11.699645, + "rel_max": 0.978289939, + "scaled_max_abs": 0.978289939 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 13 + } + }, + { + "band_ratio": 73.6876242, + "index": 5, + "metrics": { + "corr": 0.263123758, + "finite": true, + "max_abs": 4.15331554, + "mean_abs": 0.177857422, + "psnr_db": 23.4955968, + "ref_absmax": 4.84292746, + "rel_max": 0.857604328, + "scaled_max_abs": 0.857604328 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.1/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.layer2.1", + "ungated_probes": { + "band_ratio": 75.0472587, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.249527413, + "finite": true, + "max_abs": 11.5185876, + "mean_abs": 0.206697059, + "psnr_db": 28.3020183, + "ref_absmax": 11.623435, + "rel_max": 0.990979657, + "scaled_max_abs": 0.990979657 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 3 + } + }, + { + "band_ratio": 71.3979789, + "index": 6, + "metrics": { + "corr": 0.286020211, + "finite": true, + "max_abs": 2.11884618, + "mean_abs": 0.113328861, + "psnr_db": 22.7112182, + "ref_absmax": 2.51875043, + "rel_max": 0.841229109, + "scaled_max_abs": 0.841229109 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.0/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.layer3.0", + "ungated_probes": { + "band_ratio": 79.4690366, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.205309634, + "finite": true, + "max_abs": 13.6912508, + "mean_abs": 0.164434318, + "psnr_db": 32.1669336, + "ref_absmax": 13.6912508, + "rel_max": 1.0, + "scaled_max_abs": 1.0 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 6 + } + }, + { + "band_ratio": 67.5336374, + "index": 7, + "metrics": { + "corr": 0.324663626, + "finite": true, + "max_abs": 2.12562719, + "mean_abs": 0.123249745, + "psnr_db": 21.4766084, + "ref_absmax": 2.36873722, + "rel_max": 0.897367243, + "scaled_max_abs": 0.897367243 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.1/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.layer3.1", + "ungated_probes": { + "band_ratio": 72.8229615, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.271770385, + "finite": true, + "max_abs": 7.59017515, + "mean_abs": 0.175947561, + "psnr_db": 27.7755161, + "ref_absmax": 8.32911587, + "rel_max": 0.911282214, + "scaled_max_abs": 0.911282214 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 6 + } + }, + { + "band_ratio": 81.6614497, + "index": 8, + "metrics": { + "corr": 0.183385503, + "finite": true, + "max_abs": 2.7839849, + "mean_abs": 0.0812915624, + "psnr_db": 22.7657788, + "ref_absmax": 2.7839849, + "rel_max": 1.0, + "scaled_max_abs": 1.0 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.0/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.layer4.0", + "ungated_probes": { + "band_ratio": 75.0584995, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.249415005, + "finite": true, + "max_abs": 5.81156236, + "mean_abs": 0.0925882698, + "psnr_db": 27.8271471, + "ref_absmax": 6.10643864, + "rel_max": 0.951710597, + "scaled_max_abs": 0.951710597 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 13 + } + }, + { + "band_ratio": 94.2544765, + "index": 9, + "metrics": { + "corr": 0.0574552349, + "finite": true, + "max_abs": 14.1892548, + "mean_abs": 0.751274362, + "psnr_db": 20.8939507, + "ref_absmax": 14.1892548, + "rel_max": 1.0, + "scaled_max_abs": 1.0 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.1/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.layer4.1", + "ungated_probes": { + "band_ratio": 85.3532087, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.146467913, + "finite": true, + "max_abs": 16.3882303, + "mean_abs": 0.781750934, + "psnr_db": 21.8328496, + "ref_absmax": 17.7401104, + "rel_max": 0.923795284, + "scaled_max_abs": 0.923795284 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 9 + } + }, + { + "band_ratio": 94.5611539, + "index": 10, + "metrics": { + "corr": 0.0543884606, + "finite": true, + "max_abs": 8.47060871, + "mean_abs": 0.669650935, + "psnr_db": 17.7287814, + "ref_absmax": 8.47060871, + "rel_max": 1.0, + "scaled_max_abs": 1.0 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 82.4401014, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.175598986, + "finite": true, + "max_abs": 8.84010601, + "mean_abs": 0.712619272, + "psnr_db": 19.0363526, + "ref_absmax": 10.9076147, + "rel_max": 0.81045272, + "scaled_max_abs": 0.81045272 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 5 + } + }, + { + "band_ratio": 92.7076971, + "index": 11, + "metrics": { + "corr": 0.0729230295, + "finite": true, + "max_abs": 12.0733271, + "mean_abs": 2.06165803, + "psnr_db": 17.220132, + "ref_absmax": 12.6814899, + "rel_max": 0.952043263, + "scaled_max_abs": 0.952043263 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc", + "ungated_probes": { + "band_ratio": 61.8136761, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.381863239, + "finite": true, + "max_abs": 18.9954123, + "mean_abs": 1.9456111, + "psnr_db": 22.9023106, + "ref_absmax": 23.1216908, + "rel_max": 0.821540801, + "scaled_max_abs": 0.821540801 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 12 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.0, + "band_ratio": 93.5343692, + "metrics": { + "corr": 0.0646563075, + "finite": true, + "max_abs": 12.6460721, + "mean_abs": 2.00498443, + "psnr_db": 18.0560594, + "ref_absmax": 14.0897207, + "rel_max": 0.897538879, + "scaled_max_abs": 0.897538879 + }, + "status": "fail", + "ungated_probes": { + "band_ratio": 58.1152768, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.418847232, + "finite": true, + "max_abs": 17.228682, + "mean_abs": 1.782391, + "psnr_db": 23.368046, + "ref_absmax": 21.4202118, + "rel_max": 0.80431894, + "scaled_max_abs": 0.80431894 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 3 + } + }, + "first_fail_index": 4, + "n_judged": 12, + "n_taps": 12, + "probe_gating": { + "output": { + "gated_categories_only": [ + "natural" + ], + "n_gated": 16 + }, + "tap": { + "gated_categories_only": [ + "natural" + ], + "n_gated": 16 + } + }, + "taps": [ + { + "band_ratio": 0.0358907272, + "index": 0, + "metrics": { + "corr": 0.999978106, + "finite": true, + "max_abs": 0.009329319, + "mean_abs": 0.00467719955, + "psnr_db": 58.9003548, + "ref_absmax": 2.6400001, + "rel_max": 0.00353383281, + "scaled_max_abs": 0.00353383281 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 6.36551683, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.936344832, + "finite": true, + "max_abs": 8.8980484, + "mean_abs": 0.261245939, + "psnr_db": 22.8630328, + "ref_absmax": 11.5288897, + "rel_max": 0.771804455, + "scaled_max_abs": 0.771804455 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 0.0431595026, + "index": 1, + "metrics": { + "corr": 0.999913979, + "finite": true, + "max_abs": 0.0463433862, + "mean_abs": 0.00347677934, + "psnr_db": 57.2984714, + "ref_absmax": 3.72035718, + "rel_max": 0.0124567035, + "scaled_max_abs": 0.0124567035 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/maxpool/MaxPool_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.maxpool", + "ungated_probes": { + "band_ratio": 11.4897599, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.885102401, + "finite": true, + "max_abs": 6.58115673, + "mean_abs": 0.0889399894, + "psnr_db": 27.7956819, + "ref_absmax": 8.40886307, + "rel_max": 0.782645249, + "scaled_max_abs": 0.782645249 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 0.0916857723, + "index": 2, + "metrics": { + "corr": 0.999616118, + "finite": true, + "max_abs": 0.177350521, + "mean_abs": 0.00855409121, + "psnr_db": 50.753961, + "ref_absmax": 4.25525713, + "rel_max": 0.0416779799, + "scaled_max_abs": 0.0416779799 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.0/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.layer1.0", + "ungated_probes": { + "band_ratio": 16.6315182, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.833684818, + "finite": true, + "max_abs": 15.9720588, + "mean_abs": 0.107388085, + "psnr_db": 31.7604678, + "ref_absmax": 17.0914841, + "rel_max": 0.934503915, + "scaled_max_abs": 0.934503915 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 0.127192891, + "index": 3, + "metrics": { + "corr": 0.999167715, + "finite": true, + "max_abs": 0.289882183, + "mean_abs": 0.0149949946, + "psnr_db": 47.9107432, + "ref_absmax": 5.44877625, + "rel_max": 0.0532013373, + "scaled_max_abs": 0.0532013373 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.1/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.layer1.1", + "ungated_probes": { + "band_ratio": 18.4732366, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.815267634, + "finite": true, + "max_abs": 17.2605718, + "mean_abs": 0.135099297, + "psnr_db": 31.6829685, + "ref_absmax": 18.7614975, + "rel_max": 0.919999688, + "scaled_max_abs": 0.919999688 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 25.9383533, + "index": 4, + "metrics": { + "corr": 0.740616467, + "finite": true, + "max_abs": 4.10510319, + "mean_abs": 0.175833159, + "psnr_db": 24.8595034, + "ref_absmax": 4.3591032, + "rel_max": 0.941731132, + "scaled_max_abs": 0.941731132 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.0/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.layer2.0", + "ungated_probes": { + "band_ratio": 43.8750755, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.561249245, + "finite": true, + "max_abs": 10.8768613, + "mean_abs": 0.223845509, + "psnr_db": 29.4469353, + "ref_absmax": 11.1308613, + "rel_max": 0.977180561, + "scaled_max_abs": 0.977180561 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 2 + } + }, + { + "band_ratio": 74.3440096, + "index": 5, + "metrics": { + "corr": 0.256559904, + "finite": true, + "max_abs": 4.80402702, + "mean_abs": 0.174101767, + "psnr_db": 24.5394356, + "ref_absmax": 5.38829708, + "rel_max": 0.891566844, + "scaled_max_abs": 0.891566844 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.1/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.layer2.1", + "ungated_probes": { + "band_ratio": 74.1445372, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.258554628, + "finite": true, + "max_abs": 10.9209022, + "mean_abs": 0.19889047, + "psnr_db": 28.4330724, + "ref_absmax": 11.3773632, + "rel_max": 0.959879897, + "scaled_max_abs": 0.959879897 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 2 + } + }, + { + "band_ratio": 71.6109819, + "index": 6, + "metrics": { + "corr": 0.283890181, + "finite": true, + "max_abs": 1.59731477, + "mean_abs": 0.111495369, + "psnr_db": 20.9419732, + "ref_absmax": 2.02191901, + "rel_max": 0.789999384, + "scaled_max_abs": 0.789999384 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.0/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.layer3.0", + "ungated_probes": { + "band_ratio": 77.0661655, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.229338345, + "finite": true, + "max_abs": 11.930131, + "mean_abs": 0.159591193, + "psnr_db": 31.4401109, + "ref_absmax": 11.930131, + "rel_max": 1.0, + "scaled_max_abs": 1.0 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 14 + } + }, + { + "band_ratio": 67.6582936, + "index": 7, + "metrics": { + "corr": 0.323417064, + "finite": true, + "max_abs": 1.68381262, + "mean_abs": 0.122334396, + "psnr_db": 19.018847, + "ref_absmax": 1.77853799, + "rel_max": 0.946739754, + "scaled_max_abs": 0.946739754 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.1/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.layer3.1", + "ungated_probes": { + "band_ratio": 69.8936488, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.301063512, + "finite": true, + "max_abs": 6.95627403, + "mean_abs": 0.16860276, + "psnr_db": 26.7652781, + "ref_absmax": 6.95627403, + "rel_max": 1.0, + "scaled_max_abs": 1.0 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 15 + } + }, + { + "band_ratio": 81.4034706, + "index": 8, + "metrics": { + "corr": 0.185965294, + "finite": true, + "max_abs": 2.59620762, + "mean_abs": 0.0800984335, + "psnr_db": 22.1634584, + "ref_absmax": 2.59620762, + "rel_max": 1.0, + "scaled_max_abs": 1.0 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.0/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.layer4.0", + "ungated_probes": { + "band_ratio": 71.1474365, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.288525635, + "finite": true, + "max_abs": 4.79327804, + "mean_abs": 0.0881021172, + "psnr_db": 26.2787026, + "ref_absmax": 4.8347578, + "rel_max": 0.991420508, + "scaled_max_abs": 0.991420508 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 4 + } + }, + { + "band_ratio": 93.9028671, + "index": 9, + "metrics": { + "corr": 0.0609713288, + "finite": true, + "max_abs": 13.5174656, + "mean_abs": 0.720055871, + "psnr_db": 20.7585772, + "ref_absmax": 13.5174656, + "rel_max": 1.0, + "scaled_max_abs": 1.0 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.1/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.layer4.1", + "ungated_probes": { + "band_ratio": 83.4384434, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.165615566, + "finite": true, + "max_abs": 20.9663187, + "mean_abs": 0.716618011, + "psnr_db": 23.8949944, + "ref_absmax": 21.1679096, + "rel_max": 0.990476579, + "scaled_max_abs": 0.990476579 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 12 + } + }, + { + "band_ratio": 92.9337292, + "index": 10, + "metrics": { + "corr": 0.0706627078, + "finite": true, + "max_abs": 8.40718479, + "mean_abs": 0.633753534, + "psnr_db": 18.0846155, + "ref_absmax": 8.43813801, + "rel_max": 0.996331748, + "scaled_max_abs": 0.996331748 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 78.3364015, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.216635985, + "finite": true, + "max_abs": 8.88109171, + "mean_abs": 0.640842351, + "psnr_db": 19.6283878, + "ref_absmax": 10.7073317, + "rel_max": 0.829440238, + "scaled_max_abs": 0.829440238 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 7 + } + }, + { + "band_ratio": 93.5343692, + "index": 11, + "metrics": { + "corr": 0.0646563075, + "finite": true, + "max_abs": 12.6460721, + "mean_abs": 2.00498443, + "psnr_db": 18.0560594, + "ref_absmax": 14.0897207, + "rel_max": 0.897538879, + "scaled_max_abs": 0.897538879 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc", + "ungated_probes": { + "band_ratio": 58.1152768, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.418847232, + "finite": true, + "max_abs": 17.228682, + "mean_abs": 1.782391, + "psnr_db": 23.368046, + "ref_absmax": 21.4202118, + "rel_max": 0.80431894, + "scaled_max_abs": 0.80431894 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 3 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "int8", + "id": "resnet18__int8_override_layer2_0__onnx_int8", + "model": "resnet18", + "path": "onnx", + "variant": "int8_override_layer2_0" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/resnet18__int8_override_layer3_1__onnx_int8.json b/bench/verdicts_calibrated4/resnet18__int8_override_layer3_1__onnx_int8.json new file mode 100644 index 0000000000000000000000000000000000000000..83ff0c34e07de65aa8cbf4a8b30b75371c589b90 --- /dev/null +++ b/bench/verdicts_calibrated4/resnet18__int8_override_layer3_1__onnx_int8.json @@ -0,0 +1,1392 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "reason": "first divergence at tap 7 is beyond the hypothesis taps (first 3) \u2014 interface faults surface earlier", + "status": "not_evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "status": "flag" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "int8", + "first_divergence": { + "artifact_tensor": "/net/layer3/layer3.1/relu_1/Relu_output_0_DequantizeLinear_Output", + "basis": "earliest tap over the int8 band (natural probes, C3-3)", + "index": 7, + "neighbourhood": [ + { + "band_ratio": 0.193413739, + "index": 6, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.0/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.layer3.0" + }, + { + "band_ratio": 19.9347882, + "index": 7, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.1/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.layer3.1" + }, + { + "band_ratio": 73.9459362, + "index": 8, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.0/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.layer4.0" + } + ], + "shape": 224, + "tap": "net.layer3.1" + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "cc58b8209683c271ea0cbbbbdf2243a9e9868531223c3dd0ea5aaee3349e9d97", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "8a5e12b74bee34a41427921f840b03e2b288f89db4f9b9fb9b04a08c45472a5c", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "int8 band on non-natural probes", + "reason": "C3-3: a statically quantised model is specified on its calibration distribution; int8 gates on the natural probes only (the control-selection distribution); uniform, wide_range, near_zero and saturating are measured and reported ('ungated_probes') but do not gate" + }, + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D4", + "probe_gating": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.0, + "band_ratio": 79.1413802, + "metrics": { + "corr": 0.208586198, + "finite": true, + "max_abs": 13.2734901, + "mean_abs": 1.84982674, + "psnr_db": 18.1142323, + "ref_absmax": 12.6814899, + "rel_max": 1.04668222, + "scaled_max_abs": 1.04668222 + }, + "status": "fail", + "ungated_probes": { + "band_ratio": 107.24786, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": -0.0724786042, + "finite": true, + "max_abs": 24.3119633, + "mean_abs": 2.259735, + "psnr_db": 21.435785, + "ref_absmax": 23.1216908, + "rel_max": 1.05147861, + "scaled_max_abs": 1.05147861 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 12 + } + }, + "first_fail_index": 7, + "n_judged": 12, + "n_taps": 12, + "probe_gating": { + "output": { + "gated_categories_only": [ + "natural" + ], + "n_gated": 16 + }, + "tap": { + "gated_categories_only": [ + "natural" + ], + "n_gated": 16 + } + }, + "taps": [ + { + "band_ratio": 0.0358589471, + "index": 0, + "metrics": { + "corr": 0.999979409, + "finite": true, + "max_abs": 0.0093292594, + "mean_abs": 0.0046713164, + "psnr_db": 58.9080493, + "ref_absmax": 2.6400001, + "rel_max": 0.00353381024, + "scaled_max_abs": 0.00353381024 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 7.22459355, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.927754064, + "finite": true, + "max_abs": 8.8980484, + "mean_abs": 0.268040572, + "psnr_db": 22.3077725, + "ref_absmax": 11.5288897, + "rel_max": 0.771804455, + "scaled_max_abs": 0.771804455 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 0.0452473901, + "index": 1, + "metrics": { + "corr": 0.999918654, + "finite": true, + "max_abs": 0.0442917347, + "mean_abs": 0.0034715366, + "psnr_db": 56.8881293, + "ref_absmax": 3.53536916, + "rel_max": 0.0125281782, + "scaled_max_abs": 0.0125281782 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/maxpool/MaxPool_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.maxpool", + "ungated_probes": { + "band_ratio": 12.170218, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.87829782, + "finite": true, + "max_abs": 7.26669967, + "mean_abs": 0.0979019736, + "psnr_db": 27.6669892, + "ref_absmax": 9.23459816, + "rel_max": 0.786899391, + "scaled_max_abs": 0.786899391 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 0.0991904502, + "index": 2, + "metrics": { + "corr": 0.999643336, + "finite": true, + "max_abs": 0.200139761, + "mean_abs": 0.00838843954, + "psnr_db": 50.0706028, + "ref_absmax": 3.8667388, + "rel_max": 0.0517593175, + "scaled_max_abs": 0.0517593175 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.0/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.layer1.0", + "ungated_probes": { + "band_ratio": 17.0057304, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.829942696, + "finite": true, + "max_abs": 14.6099226, + "mean_abs": 0.116447211, + "psnr_db": 30.4496307, + "ref_absmax": 15.9116135, + "rel_max": 0.918192406, + "scaled_max_abs": 0.918192406 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 0.126286417, + "index": 3, + "metrics": { + "corr": 0.999206909, + "finite": true, + "max_abs": 0.300880909, + "mean_abs": 0.0149046019, + "psnr_db": 47.9728672, + "ref_absmax": 5.45653391, + "rel_max": 0.0551413982, + "scaled_max_abs": 0.0551413982 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.1/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.layer1.1", + "ungated_probes": { + "band_ratio": 18.3779106, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.816220894, + "finite": true, + "max_abs": 17.6264288, + "mean_abs": 0.143896462, + "psnr_db": 31.1428099, + "ref_absmax": 18.8193054, + "rel_max": 0.936614208, + "scaled_max_abs": 0.936614208 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 0.145304247, + "index": 4, + "metrics": { + "corr": 0.998546958, + "finite": true, + "max_abs": 0.167834997, + "mean_abs": 0.00848421961, + "psnr_db": 49.2732402, + "ref_absmax": 4.28559637, + "rel_max": 0.0391625768, + "scaled_max_abs": 0.0391625768 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.0/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.layer2.0", + "ungated_probes": { + "band_ratio": 14.5694071, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.854305929, + "finite": true, + "max_abs": 10.4215281, + "mean_abs": 0.0509620744, + "psnr_db": 34.960944, + "ref_absmax": 11.699645, + "rel_max": 0.890755921, + "scaled_max_abs": 0.890755921 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 0.195671517, + "index": 5, + "metrics": { + "corr": 0.998043285, + "finite": true, + "max_abs": 0.386914253, + "mean_abs": 0.00956656199, + "psnr_db": 49.1074858, + "ref_absmax": 4.84292746, + "rel_max": 0.0798926386, + "scaled_max_abs": 0.0798926386 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.1/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.layer2.1", + "ungated_probes": { + "band_ratio": 17.3959035, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.826040965, + "finite": true, + "max_abs": 10.2429446, + "mean_abs": 0.0580346365, + "psnr_db": 33.9893118, + "ref_absmax": 11.623435, + "rel_max": 0.881232147, + "scaled_max_abs": 0.881232147 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 0.197040447, + "index": 6, + "metrics": { + "corr": 0.998029596, + "finite": true, + "max_abs": 0.252626419, + "mean_abs": 0.00540565101, + "psnr_db": 48.050605, + "ref_absmax": 2.51875043, + "rel_max": 0.100298313, + "scaled_max_abs": 0.100298313 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.0/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.layer3.0", + "ungated_probes": { + "band_ratio": 25.8374354, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.741625646, + "finite": true, + "max_abs": 13.6023832, + "mean_abs": 0.0424552541, + "psnr_db": 36.0927642, + "ref_absmax": 13.6912508, + "rel_max": 0.993509168, + "scaled_max_abs": 0.993509168 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 20.244163, + "index": 7, + "metrics": { + "corr": 0.79755837, + "finite": true, + "max_abs": 2.11473721, + "mean_abs": 0.10634886, + "psnr_db": 23.9601889, + "ref_absmax": 2.36873722, + "rel_max": 0.892769867, + "scaled_max_abs": 0.892769867 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.1/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.layer3.1", + "ungated_probes": { + "band_ratio": 44.8070492, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.551929508, + "finite": true, + "max_abs": 8.07511586, + "mean_abs": 0.191982602, + "psnr_db": 28.2676767, + "ref_absmax": 8.32911587, + "rel_max": 0.969504565, + "scaled_max_abs": 0.969504565 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 6 + } + }, + { + "band_ratio": 73.5479295, + "index": 8, + "metrics": { + "corr": 0.264520705, + "finite": true, + "max_abs": 2.67719388, + "mean_abs": 0.0601409875, + "psnr_db": 23.675529, + "ref_absmax": 2.7839849, + "rel_max": 0.961640949, + "scaled_max_abs": 0.961640949 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.0/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.layer4.0", + "ungated_probes": { + "band_ratio": 85.9382578, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.140617422, + "finite": true, + "max_abs": 6.10643864, + "mean_abs": 0.0810203192, + "psnr_db": 27.3790166, + "ref_absmax": 6.10643864, + "rel_max": 1.0, + "scaled_max_abs": 1.0 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 6 + } + }, + { + "band_ratio": 90.3829034, + "index": 9, + "metrics": { + "corr": 0.0961709657, + "finite": true, + "max_abs": 13.6314564, + "mean_abs": 0.823972106, + "psnr_db": 20.4045683, + "ref_absmax": 14.1892548, + "rel_max": 0.960688676, + "scaled_max_abs": 0.960688676 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.1/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.layer4.1", + "ungated_probes": { + "band_ratio": 89.8826254, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.101173746, + "finite": true, + "max_abs": 17.6652718, + "mean_abs": 0.806015412, + "psnr_db": 22.1243885, + "ref_absmax": 17.7401104, + "rel_max": 0.995781388, + "scaled_max_abs": 0.995781388 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 5 + } + }, + { + "band_ratio": 89.5585549, + "index": 10, + "metrics": { + "corr": 0.104414451, + "finite": true, + "max_abs": 8.36194408, + "mean_abs": 0.732300668, + "psnr_db": 17.4684226, + "ref_absmax": 8.47060871, + "rel_max": 0.987171568, + "scaled_max_abs": 0.987171568 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 89.293871, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.10706129, + "finite": true, + "max_abs": 10.3587814, + "mean_abs": 0.725280984, + "psnr_db": 19.2346363, + "ref_absmax": 10.9076147, + "rel_max": 0.949683468, + "scaled_max_abs": 0.949683468 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 11 + } + }, + { + "band_ratio": 79.1413802, + "index": 11, + "metrics": { + "corr": 0.208586198, + "finite": true, + "max_abs": 13.2734901, + "mean_abs": 1.84982674, + "psnr_db": 18.1142323, + "ref_absmax": 12.6814899, + "rel_max": 1.04668222, + "scaled_max_abs": 1.04668222 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc", + "ungated_probes": { + "band_ratio": 107.24786, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": -0.0724786042, + "finite": true, + "max_abs": 24.3119633, + "mean_abs": 2.259735, + "psnr_db": 21.435785, + "ref_absmax": 23.1216908, + "rel_max": 1.05147861, + "scaled_max_abs": 1.05147861 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 12 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.0, + "band_ratio": 80.9822904, + "metrics": { + "corr": 0.190177096, + "finite": true, + "max_abs": 14.6232089, + "mean_abs": 1.8667557, + "psnr_db": 18.6262142, + "ref_absmax": 14.0897207, + "rel_max": 1.03786364, + "scaled_max_abs": 1.03786364 + }, + "status": "fail", + "ungated_probes": { + "band_ratio": 110.256566, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": -0.102565664, + "finite": true, + "max_abs": 22.7646648, + "mean_abs": 2.1846672, + "psnr_db": 21.5275026, + "ref_absmax": 21.4202118, + "rel_max": 1.06276562, + "scaled_max_abs": 1.06276562 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 3 + } + }, + "first_fail_index": 7, + "n_judged": 12, + "n_taps": 12, + "probe_gating": { + "output": { + "gated_categories_only": [ + "natural" + ], + "n_gated": 16 + }, + "tap": { + "gated_categories_only": [ + "natural" + ], + "n_gated": 16 + } + }, + "taps": [ + { + "band_ratio": 0.0358907272, + "index": 0, + "metrics": { + "corr": 0.999978106, + "finite": true, + "max_abs": 0.009329319, + "mean_abs": 0.00467719955, + "psnr_db": 58.9003548, + "ref_absmax": 2.6400001, + "rel_max": 0.00353383281, + "scaled_max_abs": 0.00353383281 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 6.36551683, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.936344832, + "finite": true, + "max_abs": 8.8980484, + "mean_abs": 0.261245939, + "psnr_db": 22.8630328, + "ref_absmax": 11.5288897, + "rel_max": 0.771804455, + "scaled_max_abs": 0.771804455 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 0.0431595026, + "index": 1, + "metrics": { + "corr": 0.999913979, + "finite": true, + "max_abs": 0.0463433862, + "mean_abs": 0.00347677934, + "psnr_db": 57.2984714, + "ref_absmax": 3.72035718, + "rel_max": 0.0124567035, + "scaled_max_abs": 0.0124567035 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/maxpool/MaxPool_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.maxpool", + "ungated_probes": { + "band_ratio": 11.4897599, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.885102401, + "finite": true, + "max_abs": 6.58115673, + "mean_abs": 0.0889399894, + "psnr_db": 27.7956819, + "ref_absmax": 8.40886307, + "rel_max": 0.782645249, + "scaled_max_abs": 0.782645249 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 0.0916857723, + "index": 2, + "metrics": { + "corr": 0.999616118, + "finite": true, + "max_abs": 0.177350521, + "mean_abs": 0.00855409121, + "psnr_db": 50.753961, + "ref_absmax": 4.25525713, + "rel_max": 0.0416779799, + "scaled_max_abs": 0.0416779799 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.0/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.layer1.0", + "ungated_probes": { + "band_ratio": 16.6315182, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.833684818, + "finite": true, + "max_abs": 15.9720588, + "mean_abs": 0.107388085, + "psnr_db": 31.7604678, + "ref_absmax": 17.0914841, + "rel_max": 0.934503915, + "scaled_max_abs": 0.934503915 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 0.127192891, + "index": 3, + "metrics": { + "corr": 0.999167715, + "finite": true, + "max_abs": 0.289882183, + "mean_abs": 0.0149949946, + "psnr_db": 47.9107432, + "ref_absmax": 5.44877625, + "rel_max": 0.0532013373, + "scaled_max_abs": 0.0532013373 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.1/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.layer1.1", + "ungated_probes": { + "band_ratio": 18.4732366, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.815267634, + "finite": true, + "max_abs": 17.2605718, + "mean_abs": 0.135099297, + "psnr_db": 31.6829685, + "ref_absmax": 18.7614975, + "rel_max": 0.919999688, + "scaled_max_abs": 0.919999688 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 0.151412635, + "index": 4, + "metrics": { + "corr": 0.998485874, + "finite": true, + "max_abs": 0.337941647, + "mean_abs": 0.00845785823, + "psnr_db": 49.4453612, + "ref_absmax": 4.3591032, + "rel_max": 0.077525498, + "scaled_max_abs": 0.077525498 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.0/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.layer2.0", + "ungated_probes": { + "band_ratio": 14.4762604, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.855237396, + "finite": true, + "max_abs": 9.779015, + "mean_abs": 0.0488033748, + "psnr_db": 35.0481218, + "ref_absmax": 11.1308613, + "rel_max": 0.878549715, + "scaled_max_abs": 0.878549715 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 0.210729511, + "index": 5, + "metrics": { + "corr": 0.997892705, + "finite": true, + "max_abs": 0.732395172, + "mean_abs": 0.00958275559, + "psnr_db": 49.9829912, + "ref_absmax": 5.38829708, + "rel_max": 0.13592331, + "scaled_max_abs": 0.13592331 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.1/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.layer2.1", + "ungated_probes": { + "band_ratio": 17.0264364, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.829735636, + "finite": true, + "max_abs": 9.97796714, + "mean_abs": 0.0542260973, + "psnr_db": 34.416665, + "ref_absmax": 11.3773632, + "rel_max": 0.877001724, + "scaled_max_abs": 0.877001724 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 0.193413739, + "index": 6, + "metrics": { + "corr": 0.998065863, + "finite": true, + "max_abs": 0.1143177, + "mean_abs": 0.00522718821, + "psnr_db": 46.4377059, + "ref_absmax": 2.02191901, + "rel_max": 0.0565392083, + "scaled_max_abs": 0.0565392083 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.0/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.layer3.0", + "ungated_probes": { + "band_ratio": 24.2389246, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.757610754, + "finite": true, + "max_abs": 11.6338164, + "mean_abs": 0.0399008954, + "psnr_db": 35.6776837, + "ref_absmax": 11.930131, + "rel_max": 0.975162505, + "scaled_max_abs": 0.975162505 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 19.9347882, + "index": 7, + "metrics": { + "corr": 0.800652118, + "finite": true, + "max_abs": 1.52453798, + "mean_abs": 0.103948855, + "psnr_db": 21.6474597, + "ref_absmax": 1.77853799, + "rel_max": 0.857186065, + "scaled_max_abs": 0.857186065 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.1/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.layer3.1", + "ungated_probes": { + "band_ratio": 43.2188878, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.567811122, + "finite": true, + "max_abs": 6.70227402, + "mean_abs": 0.180019246, + "psnr_db": 27.345249, + "ref_absmax": 6.95627403, + "rel_max": 0.963486199, + "scaled_max_abs": 0.963486199 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 10 + } + }, + { + "band_ratio": 73.9459362, + "index": 8, + "metrics": { + "corr": 0.260540638, + "finite": true, + "max_abs": 2.59620762, + "mean_abs": 0.0573406322, + "psnr_db": 23.3513959, + "ref_absmax": 2.59620762, + "rel_max": 1.0, + "scaled_max_abs": 1.0 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.0/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.layer4.0", + "ungated_probes": { + "band_ratio": 86.5874866, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.134125134, + "finite": true, + "max_abs": 4.8347578, + "mean_abs": 0.0775352919, + "psnr_db": 25.7729858, + "ref_absmax": 4.8347578, + "rel_max": 1.0, + "scaled_max_abs": 1.0 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 4 + } + }, + { + "band_ratio": 91.5051887, + "index": 9, + "metrics": { + "corr": 0.0849481129, + "finite": true, + "max_abs": 12.8514214, + "mean_abs": 0.828706212, + "psnr_db": 19.976112, + "ref_absmax": 13.5174656, + "rel_max": 0.950727137, + "scaled_max_abs": 0.950727137 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.1/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.layer4.1", + "ungated_probes": { + "band_ratio": 91.4141769, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.0858582307, + "finite": true, + "max_abs": 20.9663187, + "mean_abs": 0.779437226, + "psnr_db": 24.0206987, + "ref_absmax": 21.1679096, + "rel_max": 0.990476579, + "scaled_max_abs": 0.990476579 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 13 + } + }, + { + "band_ratio": 91.0900476, + "index": 10, + "metrics": { + "corr": 0.0890995243, + "finite": true, + "max_abs": 7.38279459, + "mean_abs": 0.740746808, + "psnr_db": 17.3684337, + "ref_absmax": 8.43813801, + "rel_max": 0.874931719, + "scaled_max_abs": 0.874931719 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 90.3830102, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.0961698983, + "finite": true, + "max_abs": 10.4906591, + "mean_abs": 0.694430897, + "psnr_db": 19.5898825, + "ref_absmax": 10.7073317, + "rel_max": 0.979764096, + "scaled_max_abs": 0.979764096 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_ratio": 80.9822904, + "index": 11, + "metrics": { + "corr": 0.190177096, + "finite": true, + "max_abs": 14.6232089, + "mean_abs": 1.8667557, + "psnr_db": 18.6262142, + "ref_absmax": 14.0897207, + "rel_max": 1.03786364, + "scaled_max_abs": 1.03786364 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc", + "ungated_probes": { + "band_ratio": 110.256566, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": -0.102565664, + "finite": true, + "max_abs": 22.7646648, + "mean_abs": 2.1846672, + "psnr_db": 21.5275026, + "ref_absmax": 21.4202118, + "rel_max": 1.06276562, + "scaled_max_abs": 1.06276562 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 3 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "int8", + "id": "resnet18__int8_override_layer3_1__onnx_int8", + "model": "resnet18", + "path": "onnx", + "variant": "int8_override_layer3_1" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/resnet18__layout_swap__coreml_fp16.json b/bench/verdicts_calibrated4/resnet18__layout_swap__coreml_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..8e1714199a5bec3ba9003638ecfa0b278f1b42bf --- /dev/null +++ b/bench/verdicts_calibrated4/resnet18__layout_swap__coreml_fp16.json @@ -0,0 +1,994 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "baseline": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "faithful_output_rel_max": 0.00652165202, + "output_band": 0.013043304, + "source": { + "bundle": "bundles/resnet18__clean__coreml_fp16.json", + "case": "resnet18__clean__coreml_fp16", + "digests": { + "192": { + "converted": "d6e8f11106d7868c4acdddd4c89bb934bd08cc14049682fea972c885765295e4", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "aa676247fae9c779d0ab1c7cd4fb20d3d1c91b615ff304ed67889a259a1af32e", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + } + } + }, + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "reason": "first divergence at tap 6 is beyond the hypothesis taps (first 3) \u2014 interface faults surface earlier", + "status": "not_evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [ + "inputs[0]: dtype float16 (declared float32)", + "outputs[0]: dtype float16 (declared float32)" + ], + "status": "precision_narrowing" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "input_73_cast_fp16", + "basis": "earliest tap over band with in-band predecessors (fp16: the tap's faithful envelope gates, C3-1)", + "index": 6, + "neighbourhood": [ + { + "band_ratio": 0.5, + "index": 5, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59_cast_fp16" + }, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_ratio": 50.8061637, + "index": 6, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_73_cast_fp16" + }, + "status": "fail", + "tap": "net.layer3.0" + }, + { + "band_ratio": 26.5255255, + "index": 7, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85_cast_fp16" + }, + "status": "fail", + "tap": "net.layer3.1" + } + ], + "shape": 224, + "tap": "net.layer3.0" + }, + "fp16_floor": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "baseline": { + "bundle": "bundles/resnet18__clean__coreml_fp16.json", + "case": "resnet18__clean__coreml_fp16", + "digests": { + "192": { + "converted": "d6e8f11106d7868c4acdddd4c89bb934bd08cc14049682fea972c885765295e4", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "aa676247fae9c779d0ab1c7cd4fb20d3d1c91b615ff304ed67889a259a1af32e", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + } + }, + "envelopes_gate": true, + "faithful_output_rel_max": 0.00652165202, + "faithful_tap_rel_max": { + "net.avgpool": 0.00870158006, + "net.fc": 0.00652165202, + "net.layer1.0": 0.00480211137, + "net.layer1.1": 0.0048244139, + "net.layer2.0": 0.00485763828, + "net.layer2.1": 0.00605789942, + "net.layer3.0": 0.00577717049, + "net.layer3.1": 0.0171483417, + "net.layer4.0": 0.0243476768, + "net.layer4.1": 0.014049191, + "net.maxpool": 0.00459322342, + "normalize": 0.00117570499 + }, + "floor": 0.01, + "k": 2.0, + "output_band": 0.013043304, + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used", + "tap_envelopes": { + "net.avgpool": 0.0174031601, + "net.fc": 0.013043304, + "net.layer1.0": 0.01, + "net.layer1.1": 0.01, + "net.layer2.0": 0.01, + "net.layer2.1": 0.0121157988, + "net.layer3.0": 0.011554341, + "net.layer3.1": 0.0342966833, + "net.layer4.0": 0.0486953535, + "net.layer4.1": 0.028098382, + "net.maxpool": 0.01, + "normalize": 0.01 + } + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "eaf2e124e75aa45fc6cf2f94547620ff8286286a6887e558844b0c0cbb654a29", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "c502813321481c68d68adb6b3c94f4ba9321c5ba2cada6dce620979d75c37a75", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D2", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.96875, + "band_limit": 0.013043304, + "band_ratio": 12.2919576, + "metrics": { + "corr": 0.979872074, + "finite": true, + "max_abs": 3.70704842, + "mean_abs": 0.359068227, + "psnr_db": 37.7142844, + "ref_absmax": 23.1216908, + "rel_max": 0.16032774, + "scaled_max_abs": 0.16032774 + }, + "per_op_band_ratio": 16.032774, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 14 + } + }, + "first_fail_index": 6, + "n_judged": 12, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 0.117570499, + "index": 0, + "metrics": { + "corr": 0.999999914, + "finite": true, + "max_abs": 0.0135545731, + "mean_abs": 0.000674526699, + "psnr_db": 83.5827466, + "ref_absmax": 11.5288897, + "rel_max": 0.00117570499, + "scaled_max_abs": 0.00117570499 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "per_op_band_ratio": 0.117570499, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 0.459322342, + "index": 1, + "metrics": { + "corr": 0.999996447, + "finite": true, + "max_abs": 0.0424165726, + "mean_abs": 0.000952223367, + "psnr_db": 75.0364552, + "ref_absmax": 9.23459816, + "rel_max": 0.00459322342, + "scaled_max_abs": 0.00459322342 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_9_cast_fp16" + }, + "per_op_band_ratio": 0.459322342, + "status": "pass", + "tap": "net.maxpool" + }, + { + "band_limit": 0.01, + "band_ratio": 0.480211137, + "index": 2, + "metrics": { + "corr": 0.99998717, + "finite": true, + "max_abs": 0.0764093399, + "mean_abs": 0.00215436701, + "psnr_db": 73.3099338, + "ref_absmax": 15.9116135, + "rel_max": 0.00480211137, + "scaled_max_abs": 0.00480211137 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_21_cast_fp16" + }, + "per_op_band_ratio": 0.480211137, + "status": "pass", + "tap": "net.layer1.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.441904939, + "index": 3, + "metrics": { + "corr": 0.999962955, + "finite": true, + "max_abs": 0.0831634402, + "mean_abs": 0.0038022016, + "psnr_db": 69.3862926, + "ref_absmax": 18.8193054, + "rel_max": 0.00441904939, + "scaled_max_abs": 0.00441904939 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_33_cast_fp16" + }, + "per_op_band_ratio": 0.441904939, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.482464821, + "index": 4, + "metrics": { + "corr": 0.999939928, + "finite": true, + "max_abs": 0.0564466715, + "mean_abs": 0.00186217433, + "psnr_db": 69.8477445, + "ref_absmax": 11.699645, + "rel_max": 0.00482464821, + "scaled_max_abs": 0.00482464821 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_47_cast_fp16" + }, + "per_op_band_ratio": 0.482464821, + "status": "pass", + "tap": "net.layer2.0" + }, + { + "band_limit": 0.0121157988, + "band_ratio": 0.48685367, + "index": 5, + "metrics": { + "corr": 0.999930102, + "finite": true, + "max_abs": 0.0685622394, + "mean_abs": 0.00200145403, + "psnr_db": 69.0183736, + "ref_absmax": 11.623435, + "rel_max": 0.00589862113, + "scaled_max_abs": 0.00589862113 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59_cast_fp16" + }, + "per_op_band_ratio": 0.589862113, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_limit": 0.011554341, + "band_ratio": 51.6433118, + "index": 6, + "metrics": { + "corr": 0.78702808, + "finite": true, + "max_abs": 8.16963005, + "mean_abs": 0.0783052772, + "psnr_db": 38.4318167, + "ref_absmax": 13.6912508, + "rel_max": 0.596704433, + "scaled_max_abs": 0.596704433 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_73_cast_fp16" + }, + "per_op_band_ratio": 59.6704433, + "status": "fail", + "tap": "net.layer3.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.0342966833, + "band_ratio": 18.1620557, + "index": 7, + "metrics": { + "corr": 0.812570484, + "finite": true, + "max_abs": 5.18819189, + "mean_abs": 0.0752729354, + "psnr_db": 34.4671678, + "ref_absmax": 8.32911587, + "rel_max": 0.622898273, + "scaled_max_abs": 0.622898273 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85_cast_fp16" + }, + "per_op_band_ratio": 62.2898273, + "status": "fail", + "tap": "net.layer3.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.0486953535, + "band_ratio": 14.2574924, + "index": 8, + "metrics": { + "corr": 0.842961995, + "finite": true, + "max_abs": 4.23953933, + "mean_abs": 0.0360373837, + "psnr_db": 35.6966499, + "ref_absmax": 6.10643864, + "rel_max": 0.694273631, + "scaled_max_abs": 0.694273631 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_99_cast_fp16" + }, + "per_op_band_ratio": 69.4273631, + "status": "fail", + "tap": "net.layer4.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.028098382, + "band_ratio": 16.1745459, + "index": 9, + "metrics": { + "corr": 0.901776671, + "finite": true, + "max_abs": 8.0625, + "mean_abs": 0.239852237, + "psnr_db": 31.0647086, + "ref_absmax": 17.7401104, + "rel_max": 0.45447857, + "scaled_max_abs": 0.45447857 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_111_cast_fp16" + }, + "per_op_band_ratio": 45.447857, + "status": "fail", + "tap": "net.layer4.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.0174031601, + "band_ratio": 9.83465044, + "index": 10, + "metrics": { + "corr": 0.974885732, + "finite": true, + "max_abs": 1.86688185, + "mean_abs": 0.127072442, + "psnr_db": 33.9176042, + "ref_absmax": 10.9076147, + "rel_max": 0.171153996, + "scaled_max_abs": 0.171153996 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "per_op_band_ratio": 17.1153996, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.013043304, + "band_ratio": 12.2919576, + "index": 11, + "metrics": { + "corr": 0.979872074, + "finite": true, + "max_abs": 3.70704842, + "mean_abs": 0.359068227, + "psnr_db": 37.7142844, + "ref_absmax": 23.1216908, + "rel_max": 0.16032774, + "scaled_max_abs": 0.16032774 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "per_op_band_ratio": 16.032774, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "natural", + "index": 14 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_limit": 0.013043304, + "band_ratio": 11.4379117, + "metrics": { + "corr": 0.985220754, + "finite": true, + "max_abs": 3.19564199, + "mean_abs": 0.299790121, + "psnr_db": 39.0985069, + "ref_absmax": 21.4202118, + "rel_max": 0.14918816, + "scaled_max_abs": 0.14918816 + }, + "per_op_band_ratio": 14.918816, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 6, + "n_judged": 12, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 0.116213884, + "index": 0, + "metrics": { + "corr": 0.999999912, + "finite": true, + "max_abs": 0.0133981705, + "mean_abs": 0.000679588388, + "psnr_db": 83.6184843, + "ref_absmax": 11.5288897, + "rel_max": 0.00116213884, + "scaled_max_abs": 0.00116213884 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "per_op_band_ratio": 0.116213884, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 0.430958027, + "index": 1, + "metrics": { + "corr": 0.999996278, + "finite": true, + "max_abs": 0.0362386703, + "mean_abs": 0.000924325333, + "psnr_db": 74.6037105, + "ref_absmax": 8.40886307, + "rel_max": 0.00430958027, + "scaled_max_abs": 0.00430958027 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_9_cast_fp16" + }, + "per_op_band_ratio": 0.430958027, + "status": "pass", + "tap": "net.maxpool" + }, + { + "band_limit": 0.01, + "band_ratio": 0.384801236, + "index": 2, + "metrics": { + "corr": 0.999985791, + "finite": true, + "max_abs": 0.0657682419, + "mean_abs": 0.00216025527, + "psnr_db": 73.9813907, + "ref_absmax": 17.0914841, + "rel_max": 0.00384801236, + "scaled_max_abs": 0.00384801236 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_21_cast_fp16" + }, + "per_op_band_ratio": 0.384801236, + "status": "pass", + "tap": "net.layer1.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.48244139, + "index": 3, + "metrics": { + "corr": 0.999957868, + "finite": true, + "max_abs": 0.0905132294, + "mean_abs": 0.003858105, + "psnr_db": 69.2665621, + "ref_absmax": 18.7614975, + "rel_max": 0.0048244139, + "scaled_max_abs": 0.0048244139 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_33_cast_fp16" + }, + "per_op_band_ratio": 0.48244139, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.485763828, + "index": 4, + "metrics": { + "corr": 0.999932954, + "finite": true, + "max_abs": 0.0540696979, + "mean_abs": 0.00188201915, + "psnr_db": 69.3375532, + "ref_absmax": 11.1308613, + "rel_max": 0.00485763828, + "scaled_max_abs": 0.00485763828 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_47_cast_fp16" + }, + "per_op_band_ratio": 0.485763828, + "status": "pass", + "tap": "net.layer2.0" + }, + { + "band_limit": 0.0121157988, + "band_ratio": 0.5, + "index": 5, + "metrics": { + "corr": 0.999922136, + "finite": true, + "max_abs": 0.068922922, + "mean_abs": 0.0019962136, + "psnr_db": 68.8164661, + "ref_absmax": 11.3773632, + "rel_max": 0.00605789942, + "scaled_max_abs": 0.00605789942 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59_cast_fp16" + }, + "per_op_band_ratio": 0.605789942, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_limit": 0.011554341, + "band_ratio": 50.8061637, + "index": 6, + "metrics": { + "corr": 0.771701166, + "finite": true, + "max_abs": 7.00336552, + "mean_abs": 0.0771485356, + "psnr_db": 37.4091892, + "ref_absmax": 11.930131, + "rel_max": 0.587031738, + "scaled_max_abs": 0.587031738 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_73_cast_fp16" + }, + "per_op_band_ratio": 58.7031738, + "status": "fail", + "tap": "net.layer3.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.0342966833, + "band_ratio": 26.5255255, + "index": 7, + "metrics": { + "corr": 0.797871027, + "finite": true, + "max_abs": 6.32838368, + "mean_abs": 0.0746700682, + "psnr_db": 33.0706705, + "ref_absmax": 6.95627403, + "rel_max": 0.909737548, + "scaled_max_abs": 0.909737548 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85_cast_fp16" + }, + "per_op_band_ratio": 90.9737548, + "status": "fail", + "tap": "net.layer3.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.0486953535, + "band_ratio": 13.8897182, + "index": 8, + "metrics": { + "corr": 0.830649402, + "finite": true, + "max_abs": 3.2700597, + "mean_abs": 0.0346673696, + "psnr_db": 33.9550549, + "ref_absmax": 4.8347578, + "rel_max": 0.67636474, + "scaled_max_abs": 0.67636474 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_99_cast_fp16" + }, + "per_op_band_ratio": 67.636474, + "status": "fail", + "tap": "net.layer4.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.028098382, + "band_ratio": 11.3909695, + "index": 9, + "metrics": { + "corr": 0.912635746, + "finite": true, + "max_abs": 6.77516651, + "mean_abs": 0.224014237, + "psnr_db": 33.3986241, + "ref_absmax": 21.1679096, + "rel_max": 0.320067812, + "scaled_max_abs": 0.320067812 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_111_cast_fp16" + }, + "per_op_band_ratio": 32.0067812, + "status": "fail", + "tap": "net.layer4.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.0174031601, + "band_ratio": 10.9711356, + "index": 10, + "metrics": { + "corr": 0.980674176, + "finite": true, + "max_abs": 2.04437685, + "mean_abs": 0.106152955, + "psnr_db": 35.2947052, + "ref_absmax": 10.7073317, + "rel_max": 0.19093243, + "scaled_max_abs": 0.19093243 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "per_op_band_ratio": 19.093243, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.013043304, + "band_ratio": 11.4379117, + "index": 11, + "metrics": { + "corr": 0.985220754, + "finite": true, + "max_abs": 3.19564199, + "mean_abs": 0.299790121, + "psnr_db": 39.0985069, + "ref_absmax": 21.4202118, + "rel_max": 0.14918816, + "scaled_max_abs": 0.14918816 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "per_op_band_ratio": 14.918816, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp16", + "id": "resnet18__layout_swap__coreml_fp16", + "model": "resnet18", + "path": "coreml", + "variant": "layout_swap" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/resnet18__layout_swap__coreml_fp32.json b/bench/verdicts_calibrated4/resnet18__layout_swap__coreml_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..e705132b453bb708023d5335895a2009547c82eb --- /dev/null +++ b/bench/verdicts_calibrated4/resnet18__layout_swap__coreml_fp32.json @@ -0,0 +1,1283 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "reason": "first divergence at tap 6 is beyond the hypothesis taps (first 3) \u2014 interface faults surface earlier", + "status": "not_evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "input_73", + "basis": "earliest tap over band with in-band predecessors", + "index": 6, + "neighbourhood": [ + { + "band_ratio": 0.00958715108, + "index": 5, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59" + }, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_ratio": 5866.5427, + "index": 6, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_73" + }, + "status": "fail", + "tap": "net.layer3.0" + }, + { + "band_ratio": 9127.51731, + "index": 7, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85" + }, + "status": "fail", + "tap": "net.layer3.1" + } + ], + "shape": 224, + "tap": "net.layer3.0" + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "132c5418301bacf600baa56c51ffeac059c5b9b403f24df7006f5897567dd94e", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "1a18acbc527992a3ebd33621af5a2b169e67f8e98de36f74f2472812c89c7ae0", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "fp32 per-tap band on near-zero probes", + "reason": "C3-2: per-tap fp32 checks gate without the near_zero probes; they are measured and reported per tap ('ungated_probes'); the output gates on all probes. C4-1: when the output has failed and no gated tap fails, they localise the first divergence (earliest tap over band on all probes)" + }, + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D2", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.96875, + "band_ratio": 1604.40181, + "metrics": { + "corr": 0.979812701, + "finite": true, + "max_abs": 3.70964825, + "mean_abs": 0.359818623, + "psnr_db": 37.7016541, + "ref_absmax": 23.1216908, + "rel_max": 0.160440181, + "scaled_max_abs": 0.160440181 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 14 + } + }, + "first_fail_index": 6, + "n_judged": 12, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.06644368e-08, + "psnr_db": 164.113247, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.00112572895, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.38418579e-07, + "mean_abs": 4.66593688e-08, + "psnr_db": 130.397207, + "ref_absmax": 2.11790395, + "rel_max": 1.12572895e-07, + "scaled_max_abs": 1.12572895e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00671267222, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.19888306e-06, + "mean_abs": 1.46632216e-07, + "psnr_db": 150.987992, + "ref_absmax": 9.23459816, + "rel_max": 6.71267222e-07, + "scaled_max_abs": 6.71267222e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_9" + }, + "status": "pass", + "tap": "net.maxpool", + "ungated_probes": { + "band_ratio": 0.00841418618, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.78813934e-06, + "mean_abs": 1.16446061e-07, + "psnr_db": 141.439489, + "ref_absmax": 2.1251483, + "rel_max": 8.41418618e-07, + "scaled_max_abs": 8.41418618e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00719228872, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.14440918e-05, + "mean_abs": 3.06402715e-07, + "psnr_db": 149.773687, + "ref_absmax": 15.9116135, + "rel_max": 7.19228872e-07, + "scaled_max_abs": 7.19228872e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_21" + }, + "status": "pass", + "tap": "net.layer1.0", + "ungated_probes": { + "band_ratio": 0.021311339, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.31809235e-06, + "mean_abs": 4.89821877e-07, + "psnr_db": 132.727186, + "ref_absmax": 2.96466231, + "rel_max": 2.1311339e-06, + "scaled_max_abs": 2.1311339e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00912155752, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.71661377e-05, + "mean_abs": 4.85733463e-07, + "psnr_db": 147.259644, + "ref_absmax": 18.8193054, + "rel_max": 9.12155752e-07, + "scaled_max_abs": 9.12155752e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_33" + }, + "status": "pass", + "tap": "net.layer1.1", + "ungated_probes": { + "band_ratio": 0.0597004613, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.348423e-05, + "mean_abs": 1.66013091e-06, + "psnr_db": 123.828902, + "ref_absmax": 3.93367648, + "rel_max": 5.97004613e-06, + "scaled_max_abs": 5.97004613e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00697955904, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.16583633e-06, + "mean_abs": 2.34065489e-07, + "psnr_db": 148.192522, + "ref_absmax": 11.699645, + "rel_max": 6.97955904e-07, + "scaled_max_abs": 6.97955904e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_47" + }, + "status": "pass", + "tap": "net.layer2.0", + "ungated_probes": { + "band_ratio": 0.0483415241, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.34259462e-05, + "mean_abs": 7.55778647e-07, + "psnr_db": 126.373546, + "ref_absmax": 2.77731133, + "rel_max": 4.83415241e-06, + "scaled_max_abs": 4.83415241e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0086149923, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.00135803e-05, + "mean_abs": 2.63314739e-07, + "psnr_db": 147.057013, + "ref_absmax": 11.623435, + "rel_max": 8.6149923e-07, + "scaled_max_abs": 8.6149923e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59" + }, + "status": "pass", + "tap": "net.layer2.1", + "ungated_probes": { + "band_ratio": 0.0265487626, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.35600567e-05, + "mean_abs": 7.15253358e-07, + "psnr_db": 131.341764, + "ref_absmax": 5.10760403, + "rel_max": 2.65487626e-06, + "scaled_max_abs": 2.65487626e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 5955.59258, + "index": 6, + "metrics": { + "corr": 0.791880194, + "finite": true, + "max_abs": 8.15395117, + "mean_abs": 0.0820552365, + "psnr_db": 38.2291891, + "ref_absmax": 13.6912508, + "rel_max": 0.595559258, + "scaled_max_abs": 0.595559258 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_73" + }, + "status": "fail", + "tap": "net.layer3.0", + "ungated_probes": { + "band_ratio": 6297.84207, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.708127334, + "finite": true, + "max_abs": 2.7740401, + "mean_abs": 0.050902146, + "psnr_db": 30.3455789, + "ref_absmax": 4.40474701, + "rel_max": 0.629784207, + "scaled_max_abs": 0.629784207 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6202.38865, + "index": 7, + "metrics": { + "corr": 0.817110868, + "finite": true, + "max_abs": 5.16604137, + "mean_abs": 0.0778419769, + "psnr_db": 34.3423421, + "ref_absmax": 8.32911587, + "rel_max": 0.620238865, + "scaled_max_abs": 0.620238865 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85" + }, + "status": "fail", + "tap": "net.layer3.1", + "ungated_probes": { + "band_ratio": 6609.13094, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.755791128, + "finite": true, + "max_abs": 2.54965258, + "mean_abs": 0.057049159, + "psnr_db": 28.7800092, + "ref_absmax": 3.85777283, + "rel_max": 0.660913094, + "scaled_max_abs": 0.660913094 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6941.10662, + "index": 8, + "metrics": { + "corr": 0.849620427, + "finite": true, + "max_abs": 4.23854417, + "mean_abs": 0.0367978584, + "psnr_db": 35.5840805, + "ref_absmax": 6.10643864, + "rel_max": 0.694110662, + "scaled_max_abs": 0.694110662 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_99" + }, + "status": "fail", + "tap": "net.layer4.0", + "ungated_probes": { + "band_ratio": 6068.96527, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.730488796, + "finite": true, + "max_abs": 1.27991104, + "mean_abs": 0.0309812469, + "psnr_db": 27.2499894, + "ref_absmax": 2.10894442, + "rel_max": 0.606896527, + "scaled_max_abs": 0.606896527 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 4536.42309, + "index": 9, + "metrics": { + "corr": 0.900725449, + "finite": true, + "max_abs": 8.04766464, + "mean_abs": 0.259420262, + "psnr_db": 30.6526051, + "ref_absmax": 17.7401104, + "rel_max": 0.453642309, + "scaled_max_abs": 0.453642309 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_111" + }, + "status": "fail", + "tap": "net.layer4.1", + "ungated_probes": { + "band_ratio": 4361.70732, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.888311373, + "finite": true, + "max_abs": 3.5345571, + "mean_abs": 0.105006176, + "psnr_db": 29.2157209, + "ref_absmax": 8.10360909, + "rel_max": 0.436170732, + "scaled_max_abs": 0.436170732 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 1696.57554, + "index": 10, + "metrics": { + "corr": 0.974890318, + "finite": true, + "max_abs": 1.85055923, + "mean_abs": 0.134882314, + "psnr_db": 33.5662058, + "ref_absmax": 10.9076147, + "rel_max": 0.169657554, + "scaled_max_abs": 0.169657554 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 1513.04677, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.964986758, + "finite": true, + "max_abs": 0.885933399, + "mean_abs": 0.0740295195, + "psnr_db": 32.0618049, + "ref_absmax": 5.85529423, + "rel_max": 0.151304677, + "scaled_max_abs": 0.151304677 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 1604.40181, + "index": 11, + "metrics": { + "corr": 0.98009464, + "finite": true, + "max_abs": 3.70964825, + "mean_abs": 0.377446243, + "psnr_db": 37.3416687, + "ref_absmax": 23.1216908, + "rel_max": 0.160440181, + "scaled_max_abs": 0.160440181 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc", + "ungated_probes": { + "band_ratio": 1782.82121, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.974344171, + "finite": true, + "max_abs": 0.999922991, + "mean_abs": 0.236425281, + "psnr_db": 29.3015718, + "ref_absmax": 5.60865545, + "rel_max": 0.178282121, + "scaled_max_abs": 0.178282121 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 14 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 1494.71644, + "metrics": { + "corr": 0.98516523, + "finite": true, + "max_abs": 3.20171428, + "mean_abs": 0.300350765, + "psnr_db": 39.081403, + "ref_absmax": 21.4202118, + "rel_max": 0.149471644, + "scaled_max_abs": 0.149471644 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 6, + "n_judged": 12, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.08107465e-08, + "psnr_db": 164.245493, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.00112572895, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.38418579e-07, + "mean_abs": 4.66724468e-08, + "psnr_db": 130.436578, + "ref_absmax": 2.11790395, + "rel_max": 1.12572895e-07, + "scaled_max_abs": 1.12572895e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0064503639, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.42402267e-06, + "mean_abs": 1.41653613e-07, + "psnr_db": 150.592801, + "ref_absmax": 8.40886307, + "rel_max": 6.4503639e-07, + "scaled_max_abs": 6.4503639e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_9" + }, + "status": "pass", + "tap": "net.maxpool", + "ungated_probes": { + "band_ratio": 0.00954179514, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.02655792e-06, + "mean_abs": 1.16505097e-07, + "psnr_db": 141.425183, + "ref_absmax": 2.1238749, + "rel_max": 9.54179514e-07, + "scaled_max_abs": 9.54179514e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00781175021, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33514404e-05, + "mean_abs": 3.04504955e-07, + "psnr_db": 150.557561, + "ref_absmax": 17.0914841, + "rel_max": 7.81175021e-07, + "scaled_max_abs": 7.81175021e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_21" + }, + "status": "pass", + "tap": "net.layer1.0", + "ungated_probes": { + "band_ratio": 0.0193052678, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.7220459e-06, + "mean_abs": 4.91511212e-07, + "psnr_db": 132.704415, + "ref_absmax": 2.96398163, + "rel_max": 1.93052678e-06, + "scaled_max_abs": 1.93052678e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00864134826, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.62124634e-05, + "mean_abs": 4.90960911e-07, + "psnr_db": 147.159135, + "ref_absmax": 18.7614975, + "rel_max": 8.64134826e-07, + "scaled_max_abs": 8.64134826e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_33" + }, + "status": "pass", + "tap": "net.layer1.1", + "ungated_probes": { + "band_ratio": 0.0557220015, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.19345093e-05, + "mean_abs": 1.67574729e-06, + "psnr_db": 123.763507, + "ref_absmax": 3.93641806, + "rel_max": 5.57220015e-06, + "scaled_max_abs": 5.57220015e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00838041789, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.32812691e-06, + "mean_abs": 2.3925383e-07, + "psnr_db": 147.505666, + "ref_absmax": 11.1308613, + "rel_max": 8.38041789e-07, + "scaled_max_abs": 8.38041789e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_47" + }, + "status": "pass", + "tap": "net.layer2.0", + "ungated_probes": { + "band_ratio": 0.0473845284, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.31726265e-05, + "mean_abs": 7.53269184e-07, + "psnr_db": 126.422079, + "ref_absmax": 2.77994251, + "rel_max": 4.73845284e-06, + "scaled_max_abs": 4.73845284e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00958715108, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.090765e-05, + "mean_abs": 2.66645971e-07, + "psnr_db": 146.609757, + "ref_absmax": 11.3773632, + "rel_max": 9.58715108e-07, + "scaled_max_abs": 9.58715108e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59" + }, + "status": "pass", + "tap": "net.layer2.1", + "ungated_probes": { + "band_ratio": 0.0267042708, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.36680901e-05, + "mean_abs": 7.04819918e-07, + "psnr_db": 131.457256, + "ref_absmax": 5.11831617, + "rel_max": 2.67042708e-06, + "scaled_max_abs": 2.67042708e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 5866.5427, + "index": 6, + "metrics": { + "corr": 0.774498906, + "finite": true, + "max_abs": 6.99886227, + "mean_abs": 0.0815825932, + "psnr_db": 37.169328, + "ref_absmax": 11.930131, + "rel_max": 0.58665427, + "scaled_max_abs": 0.58665427 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_73" + }, + "status": "fail", + "tap": "net.layer3.0", + "ungated_probes": { + "band_ratio": 6291.76861, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.724707835, + "finite": true, + "max_abs": 2.7735061, + "mean_abs": 0.045034483, + "psnr_db": 30.9435806, + "ref_absmax": 4.4081502, + "rel_max": 0.629176861, + "scaled_max_abs": 0.629176861 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9127.51731, + "index": 7, + "metrics": { + "corr": 0.800417867, + "finite": true, + "max_abs": 6.34935117, + "mean_abs": 0.0779881527, + "psnr_db": 32.9021691, + "ref_absmax": 6.95627403, + "rel_max": 0.912751731, + "scaled_max_abs": 0.912751731 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85" + }, + "status": "fail", + "tap": "net.layer3.1", + "ungated_probes": { + "band_ratio": 6550.55646, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.766043709, + "finite": true, + "max_abs": 2.53121066, + "mean_abs": 0.0510081313, + "psnr_db": 29.3874207, + "ref_absmax": 3.86411548, + "rel_max": 0.655055646, + "scaled_max_abs": 0.655055646 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6819.53334, + "index": 8, + "metrics": { + "corr": 0.836631471, + "finite": true, + "max_abs": 3.29707921, + "mean_abs": 0.0356533197, + "psnr_db": 33.8158929, + "ref_absmax": 4.8347578, + "rel_max": 0.681953334, + "scaled_max_abs": 0.681953334 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_99" + }, + "status": "fail", + "tap": "net.layer4.0", + "ungated_probes": { + "band_ratio": 6040.46485, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.733850222, + "finite": true, + "max_abs": 1.28100765, + "mean_abs": 0.0279842684, + "psnr_db": 27.8381753, + "ref_absmax": 2.12071037, + "rel_max": 0.604046485, + "scaled_max_abs": 0.604046485 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 3220.76312, + "index": 9, + "metrics": { + "corr": 0.912577254, + "finite": true, + "max_abs": 6.81768227, + "mean_abs": 0.239634155, + "psnr_db": 33.0410252, + "ref_absmax": 21.1679096, + "rel_max": 0.322076312, + "scaled_max_abs": 0.322076312 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_111" + }, + "status": "fail", + "tap": "net.layer4.1", + "ungated_probes": { + "band_ratio": 4144.39899, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.885133246, + "finite": true, + "max_abs": 3.47402573, + "mean_abs": 0.116782892, + "psnr_db": 29.160272, + "ref_absmax": 8.38245964, + "rel_max": 0.414439899, + "scaled_max_abs": 0.414439899 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 1917.70376, + "index": 10, + "metrics": { + "corr": 0.980889561, + "finite": true, + "max_abs": 2.05334902, + "mean_abs": 0.110937274, + "psnr_db": 35.0080507, + "ref_absmax": 10.7073317, + "rel_max": 0.191770376, + "scaled_max_abs": 0.191770376 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 1355.46551, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.969312424, + "finite": true, + "max_abs": 0.795785308, + "mean_abs": 0.0751986404, + "psnr_db": 32.4864281, + "ref_absmax": 5.87093735, + "rel_max": 0.135546551, + "scaled_max_abs": 0.135546551 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 1494.71644, + "index": 11, + "metrics": { + "corr": 0.985486538, + "finite": true, + "max_abs": 3.20171428, + "mean_abs": 0.311507339, + "psnr_db": 38.7869885, + "ref_absmax": 21.4202118, + "rel_max": 0.149471644, + "scaled_max_abs": 0.149471644 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc", + "ungated_probes": { + "band_ratio": 1666.91243, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.978898694, + "finite": true, + "max_abs": 0.954350829, + "mean_abs": 0.222254745, + "psnr_db": 30.0326702, + "ref_absmax": 5.72526073, + "rel_max": 0.166691243, + "scaled_max_abs": 0.166691243 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp32", + "id": "resnet18__layout_swap__coreml_fp32", + "model": "resnet18", + "path": "coreml", + "variant": "layout_swap" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/resnet18__layout_swap__litert_fp16.json b/bench/verdicts_calibrated4/resnet18__layout_swap__litert_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..d2841338949eb43827215f74e48f3a5f16223f50 --- /dev/null +++ b/bench/verdicts_calibrated4/resnet18__layout_swap__litert_fp16.json @@ -0,0 +1,1126 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "baseline": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "faithful_output_rel_max": 0.000479681862, + "output_band": 0.01, + "source": { + "bundle": "bundles/resnet18__clean__litert_fp16.json", + "case": "resnet18__clean__litert_fp16", + "digests": { + "192": { + "converted": "5518083a49acade5bb9995f1d28be7f32b0a23e8e42c5e39dfdbe59cfc6b794d", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "8d2974be0ffdfd9646dac16768c8f2eaa45593bd0207920e3d4230bc7750498d", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + } + } + }, + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "reason": "first divergence at tap 7 is beyond the hypothesis taps (first 3) \u2014 interface faults surface earlier", + "status": "not_evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 7.73277117e-05, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.57356262e-05, + "mean_abs": 1.27750376e-06, + "psnr_db": 145.691184, + "ref_absmax": 20.3492718, + "rel_max": 7.73277117e-07, + "scaled_max_abs": 7.73277117e-07 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 27, + "outputs": [ + "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models.res", + "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.linear.Linear_fc;1_dequant", + "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.B", + "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.B" + ] + }, + { + "inputs": 44, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 2, + "n_ops_total": 61, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models", + "basis": "earliest tap over band with in-band predecessors (fp16: the tap's faithful envelope gates, C3-1)", + "index": 7, + "neighbourhood": [ + { + "band_ratio": 0.0279544214, + "index": 6, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/zoo.HWSwap_0/torchvision.models.resnet.BasicBlock_inner/torch.nn.modules.activation.ReLU_relu;;zoo.Source/t" + }, + "status": "pass", + "tap": "net.layer3.0" + }, + { + "band_ratio": 91.3024003, + "index": 7, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer3.1" + }, + { + "band_ratio": 68.1974342, + "index": 8, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer4.0" + } + ], + "shape": 224, + "tap": "net.layer3.1" + }, + "fp16_floor": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "baseline": { + "bundle": "bundles/resnet18__clean__litert_fp16.json", + "case": "resnet18__clean__litert_fp16", + "digests": { + "192": { + "converted": "5518083a49acade5bb9995f1d28be7f32b0a23e8e42c5e39dfdbe59cfc6b794d", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "8d2974be0ffdfd9646dac16768c8f2eaa45593bd0207920e3d4230bc7750498d", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + } + }, + "envelopes_gate": true, + "faithful_output_rel_max": 0.000479681862, + "faithful_tap_rel_max": { + "net.avgpool": 0.000675608743, + "net.fc": 0.000479681862, + "net.layer1.0": 0.000285533862, + "net.layer1.1": 0.000262599506, + "net.layer2.0": 0.000592551772, + "net.layer2.1": 0.000620361493, + "net.layer3.0": 0.000279544214, + "net.layer3.1": 0.000620957223, + "net.layer4.0": 0.0015225034, + "net.layer4.1": 0.00121889732, + "net.maxpool": 0.000583793374, + "normalize": 8.27203959e-08 + }, + "floor": 0.01, + "k": 2.0, + "output_band": 0.01, + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used", + "tap_envelopes": { + "net.avgpool": 0.01, + "net.fc": 0.01, + "net.layer1.0": 0.01, + "net.layer1.1": 0.01, + "net.layer2.0": 0.01, + "net.layer2.1": 0.01, + "net.layer3.0": 0.01, + "net.layer3.1": 0.01, + "net.layer4.0": 0.01, + "net.layer4.1": 0.01, + "net.maxpool": 0.01, + "normalize": 0.01 + } + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "2a7eb465f03e0e78f28a6c519ff45a5dfc51445ea4ad1002f492fb380c607dbc", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "b5cddbfe685f568a5cd16b2302e2919152cb661c1cb69b5693855f1b3d22cbef", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D2", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.96875, + "band_limit": 0.01, + "band_ratio": 16.051183, + "metrics": { + "corr": 0.979804475, + "finite": true, + "max_abs": 3.7113049, + "mean_abs": 0.35983685, + "psnr_db": 37.6999016, + "ref_absmax": 23.1216908, + "rel_max": 0.16051183, + "scaled_max_abs": 0.16051183 + }, + "per_op_band_ratio": 16.051183, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 14 + } + }, + "first_fail_index": 7, + "n_judged": 12, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 8.27203959e-06, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.26638033e-08, + "psnr_db": 163.904618, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "per_op_band_ratio": 8.27203959e-06, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0552685286, + "index": 1, + "metrics": { + "corr": 0.999999962, + "finite": true, + "max_abs": 0.00510382652, + "mean_abs": 7.6244338e-05, + "psnr_db": 94.6749001, + "ref_absmax": 9.23459816, + "rel_max": 0.000552685286, + "scaled_max_abs": 0.000552685286 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.MaxPool2d_maxpool;2" + }, + "per_op_band_ratio": 0.0552685286, + "status": "pass", + "tap": "net.maxpool" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0285533862, + "index": 2, + "metrics": { + "corr": 0.999999915, + "finite": true, + "max_abs": 0.00454330444, + "mean_abs": 0.000158366689, + "psnr_db": 95.091453, + "ref_absmax": 15.9116135, + "rel_max": 0.000285533862, + "scaled_max_abs": 0.000285533862 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 0.0285533862, + "status": "pass", + "tap": "net.layer1.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0262599506, + "index": 3, + "metrics": { + "corr": 0.999999807, + "finite": true, + "max_abs": 0.00494194031, + "mean_abs": 0.000244943041, + "psnr_db": 92.1941427, + "ref_absmax": 18.8193054, + "rel_max": 0.000262599506, + "scaled_max_abs": 0.000262599506 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 0.0262599506, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0526554237, + "index": 4, + "metrics": { + "corr": 0.999999711, + "finite": true, + "max_abs": 0.00616049767, + "mean_abs": 0.000116616282, + "psnr_db": 93.01523, + "ref_absmax": 11.699645, + "rel_max": 0.000526554237, + "scaled_max_abs": 0.000526554237 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 0.0526554237, + "status": "pass", + "tap": "net.layer2.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0620361493, + "index": 5, + "metrics": { + "corr": 0.999999676, + "finite": true, + "max_abs": 0.00721073151, + "mean_abs": 0.000130509692, + "psnr_db": 92.3595398, + "ref_absmax": 11.623435, + "rel_max": 0.000620361493, + "scaled_max_abs": 0.000620361493 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 0.0620361493, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0244031295, + "index": 6, + "metrics": { + "corr": 0.999999722, + "finite": true, + "max_abs": 0.00334109366, + "mean_abs": 8.5855404e-05, + "psnr_db": 97.27591, + "ref_absmax": 13.6912508, + "rel_max": 0.000244031295, + "scaled_max_abs": 0.000244031295 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/zoo.HWSwap_0/torchvision.models.resnet.BasicBlock_inner/torch.nn.modules.activation.ReLU_relu;;zoo.Source/t" + }, + "per_op_band_ratio": 0.0244031295, + "status": "pass", + "tap": "net.layer3.0" + }, + { + "band_limit": 0.01, + "band_ratio": 62.0376894, + "index": 7, + "metrics": { + "corr": 0.812622708, + "finite": true, + "max_abs": 5.16719103, + "mean_abs": 0.0752443646, + "psnr_db": 34.4676477, + "ref_absmax": 8.32911587, + "rel_max": 0.620376894, + "scaled_max_abs": 0.620376894 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 62.0376894, + "status": "fail", + "tap": "net.layer3.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 69.4082473, + "index": 8, + "metrics": { + "corr": 0.842507706, + "finite": true, + "max_abs": 4.23837203, + "mean_abs": 0.0360698572, + "psnr_db": 35.6869878, + "ref_absmax": 6.10643864, + "rel_max": 0.694082473, + "scaled_max_abs": 0.694082473 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 69.4082473, + "status": "fail", + "tap": "net.layer4.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 45.3757513, + "index": 9, + "metrics": { + "corr": 0.901524891, + "finite": true, + "max_abs": 8.04970837, + "mean_abs": 0.240119613, + "psnr_db": 31.0557249, + "ref_absmax": 17.7401104, + "rel_max": 0.453757513, + "scaled_max_abs": 0.453757513 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 45.3757513, + "status": "fail", + "tap": "net.layer4.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 16.9628833, + "index": 10, + "metrics": { + "corr": 0.974776243, + "finite": true, + "max_abs": 1.85024595, + "mean_abs": 0.127290857, + "psnr_db": 33.8992287, + "ref_absmax": 10.9076147, + "rel_max": 0.169628833, + "scaled_max_abs": 0.169628833 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;1" + }, + "per_op_band_ratio": 16.9628833, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 16.051183, + "index": 11, + "metrics": { + "corr": 0.979804475, + "finite": true, + "max_abs": 3.7113049, + "mean_abs": 0.35983685, + "psnr_db": 37.6999016, + "ref_absmax": 23.1216908, + "rel_max": 0.16051183, + "scaled_max_abs": 0.16051183 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "per_op_band_ratio": 16.051183, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "natural", + "index": 14 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_limit": 0.01, + "band_ratio": 14.9428591, + "metrics": { + "corr": 0.985163569, + "finite": true, + "max_abs": 3.20079207, + "mean_abs": 0.300330244, + "psnr_db": 39.081254, + "ref_absmax": 21.4202118, + "rel_max": 0.149428591, + "scaled_max_abs": 0.149428591 + }, + "per_op_band_ratio": 14.9428591, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 7, + "n_judged": 12, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 8.27203959e-06, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.2793459e-08, + "psnr_db": 164.013874, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "per_op_band_ratio": 8.27203959e-06, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0583793374, + "index": 1, + "metrics": { + "corr": 0.999999956, + "finite": true, + "max_abs": 0.00490903854, + "mean_abs": 7.63929271e-05, + "psnr_db": 93.8421926, + "ref_absmax": 8.40886307, + "rel_max": 0.000583793374, + "scaled_max_abs": 0.000583793374 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.MaxPool2d_maxpool;2" + }, + "per_op_band_ratio": 0.0583793374, + "status": "pass", + "tap": "net.maxpool" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0274063399, + "index": 2, + "metrics": { + "corr": 0.999999901, + "finite": true, + "max_abs": 0.00468415022, + "mean_abs": 0.000161921874, + "psnr_db": 95.5433913, + "ref_absmax": 17.0914841, + "rel_max": 0.000274063399, + "scaled_max_abs": 0.000274063399 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 0.0274063399, + "status": "pass", + "tap": "net.layer1.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0251223373, + "index": 3, + "metrics": { + "corr": 0.999999774, + "finite": true, + "max_abs": 0.00471332669, + "mean_abs": 0.000250456457, + "psnr_db": 91.9597734, + "ref_absmax": 18.7614975, + "rel_max": 0.000251223373, + "scaled_max_abs": 0.000251223373 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 0.0251223373, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0592551772, + "index": 4, + "metrics": { + "corr": 0.999999672, + "finite": true, + "max_abs": 0.00659561157, + "mean_abs": 0.000118937706, + "psnr_db": 92.4349706, + "ref_absmax": 11.1308613, + "rel_max": 0.000592551772, + "scaled_max_abs": 0.000592551772 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 0.0592551772, + "status": "pass", + "tap": "net.layer2.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0609826631, + "index": 5, + "metrics": { + "corr": 0.999999644, + "finite": true, + "max_abs": 0.00693821907, + "mean_abs": 0.000130281217, + "psnr_db": 92.2134029, + "ref_absmax": 11.3773632, + "rel_max": 0.000609826631, + "scaled_max_abs": 0.000609826631 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 0.0609826631, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0279544214, + "index": 6, + "metrics": { + "corr": 0.999999683, + "finite": true, + "max_abs": 0.00333499908, + "mean_abs": 8.74087713e-05, + "psnr_db": 95.9804734, + "ref_absmax": 11.930131, + "rel_max": 0.000279544214, + "scaled_max_abs": 0.000279544214 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/zoo.HWSwap_0/torchvision.models.resnet.BasicBlock_inner/torch.nn.modules.activation.ReLU_relu;;zoo.Source/t" + }, + "per_op_band_ratio": 0.0279544214, + "status": "pass", + "tap": "net.layer3.0" + }, + { + "band_limit": 0.01, + "band_ratio": 91.3024003, + "index": 7, + "metrics": { + "corr": 0.797943546, + "finite": true, + "max_abs": 6.35124516, + "mean_abs": 0.0746181675, + "psnr_db": 33.0718153, + "ref_absmax": 6.95627403, + "rel_max": 0.913024003, + "scaled_max_abs": 0.913024003 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 91.3024003, + "status": "fail", + "tap": "net.layer3.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 68.1974342, + "index": 8, + "metrics": { + "corr": 0.83029822, + "finite": true, + "max_abs": 3.29718077, + "mean_abs": 0.0346941691, + "psnr_db": 33.9470422, + "ref_absmax": 4.8347578, + "rel_max": 0.681974342, + "scaled_max_abs": 0.681974342 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 68.1974342, + "status": "fail", + "tap": "net.layer4.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 32.1824016, + "index": 9, + "metrics": { + "corr": 0.912455676, + "finite": true, + "max_abs": 6.81234169, + "mean_abs": 0.224254277, + "psnr_db": 33.3902866, + "ref_absmax": 21.1679096, + "rel_max": 0.321824016, + "scaled_max_abs": 0.321824016 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 32.1824016, + "status": "fail", + "tap": "net.layer4.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 19.1297962, + "index": 10, + "metrics": { + "corr": 0.980552892, + "finite": true, + "max_abs": 2.04829073, + "mean_abs": 0.106464855, + "psnr_db": 35.2680482, + "ref_absmax": 10.7073317, + "rel_max": 0.191297962, + "scaled_max_abs": 0.191297962 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;1" + }, + "per_op_band_ratio": 19.1297962, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 14.9428591, + "index": 11, + "metrics": { + "corr": 0.985163569, + "finite": true, + "max_abs": 3.20079207, + "mean_abs": 0.300330244, + "psnr_db": 39.081254, + "ref_absmax": 21.4202118, + "rel_max": 0.149428591, + "scaled_max_abs": 0.149428591 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "per_op_band_ratio": 14.9428591, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp16", + "id": "resnet18__layout_swap__litert_fp16", + "model": "resnet18", + "path": "litert", + "variant": "layout_swap" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/resnet18__layout_swap__litert_fp32.json b/bench/verdicts_calibrated4/resnet18__layout_swap__litert_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..b54c6b893c14b5c4b461fcc66bcd0072b143e9f0 --- /dev/null +++ b/bench/verdicts_calibrated4/resnet18__layout_swap__litert_fp32.json @@ -0,0 +1,1416 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "reason": "first divergence at tap 7 is beyond the hypothesis taps (first 3) \u2014 interface faults surface earlier", + "status": "not_evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 0.00925490559, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.88350677e-05, + "mean_abs": 1.27034219e-06, + "psnr_db": 145.933053, + "ref_absmax": 20.3514423, + "rel_max": 9.25490559e-07, + "scaled_max_abs": 9.25490559e-07 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 7, + "outputs": [ + "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models.res" + ] + }, + { + "inputs": 44, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 2, + "n_ops_total": 40, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models", + "basis": "earliest tap over band with in-band predecessors", + "index": 7, + "neighbourhood": [ + { + "band_ratio": 0.0079938294, + "index": 6, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/zoo.HWSwap_0/torchvision.models.resnet.BasicBlock_inner/torch.nn.modules.activation.ReLU_relu;;zoo.Source/t" + }, + "status": "pass", + "tap": "net.layer3.0" + }, + { + "band_ratio": 9127.51457, + "index": 7, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer3.1" + }, + { + "band_ratio": 6819.53433, + "index": 8, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer4.0" + } + ], + "shape": 224, + "tap": "net.layer3.1" + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "c640df8fc16cdf78592cc4b3e228df62fbc5d37415f28653ead4b5795fd5444e", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "fe96d9549d1e467b579f77dfe54fd2041e015d47407066b591a0e806d992a86a", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "fp32 per-tap band on near-zero probes", + "reason": "C3-2: per-tap fp32 checks gate without the near_zero probes; they are measured and reported per tap ('ungated_probes'); the output gates on all probes. C4-1: when the output has failed and no gated tap fails, they localise the first divergence (earliest tap over band on all probes)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D2", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.96875, + "band_ratio": 1604.40093, + "metrics": { + "corr": 0.979812715, + "finite": true, + "max_abs": 3.70964622, + "mean_abs": 0.359818494, + "psnr_db": 37.7016569, + "ref_absmax": 23.1216908, + "rel_max": 0.160440093, + "scaled_max_abs": 0.160440093 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 14 + } + }, + "first_fail_index": 7, + "n_judged": 12, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.06644368e-08, + "psnr_db": 164.113247, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.00112572895, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.38418579e-07, + "mean_abs": 4.66593688e-08, + "psnr_db": 130.397207, + "ref_absmax": 2.11790395, + "rel_max": 1.12572895e-07, + "scaled_max_abs": 1.12572895e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00645449252, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.96046448e-06, + "mean_abs": 1.10938487e-07, + "psnr_db": 152.355037, + "ref_absmax": 9.23459816, + "rel_max": 6.45449252e-07, + "scaled_max_abs": 6.45449252e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.MaxPool2d_maxpool;2" + }, + "status": "pass", + "tap": "net.maxpool", + "ungated_probes": { + "band_ratio": 0.00673134895, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-06, + "mean_abs": 1.13613737e-07, + "psnr_db": 141.814136, + "ref_absmax": 2.1251483, + "rel_max": 6.73134895e-07, + "scaled_max_abs": 6.73134895e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00659293132, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.04904175e-05, + "mean_abs": 2.76797242e-07, + "psnr_db": 150.327237, + "ref_absmax": 15.9116135, + "rel_max": 6.59293132e-07, + "scaled_max_abs": 6.59293132e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer1.0", + "ungated_probes": { + "band_ratio": 0.0159332416, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.7236681e-06, + "mean_abs": 4.39231993e-07, + "psnr_db": 133.714953, + "ref_absmax": 2.96466231, + "rel_max": 1.59332416e-06, + "scaled_max_abs": 1.59332416e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00760129794, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-05, + "mean_abs": 4.3881845e-07, + "psnr_db": 147.941588, + "ref_absmax": 18.8193054, + "rel_max": 7.60129794e-07, + "scaled_max_abs": 7.60129794e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer1.1", + "ungated_probes": { + "band_ratio": 0.0542455968, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.13384628e-05, + "mean_abs": 1.45986695e-06, + "psnr_db": 124.90685, + "ref_absmax": 3.93367648, + "rel_max": 5.42455968e-06, + "scaled_max_abs": 5.42455968e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00743807022, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.70227814e-06, + "mean_abs": 2.08361957e-07, + "psnr_db": 148.998972, + "ref_absmax": 11.699645, + "rel_max": 7.43807022e-07, + "scaled_max_abs": 7.43807022e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer2.0", + "ungated_probes": { + "band_ratio": 0.0452832923, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.257658e-05, + "mean_abs": 6.72263901e-07, + "psnr_db": 127.366784, + "ref_absmax": 2.77731133, + "rel_max": 4.52832923e-06, + "scaled_max_abs": 4.52832923e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00635868479, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.39097595e-06, + "mean_abs": 2.32858621e-07, + "psnr_db": 147.984134, + "ref_absmax": 11.623435, + "rel_max": 6.35868479e-07, + "scaled_max_abs": 6.35868479e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer2.1", + "ungated_probes": { + "band_ratio": 0.025440133, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.29938126e-05, + "mean_abs": 6.44654951e-07, + "psnr_db": 132.262737, + "ref_absmax": 5.10760403, + "rel_max": 2.5440133e-06, + "scaled_max_abs": 2.5440133e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00835868977, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.14440918e-05, + "mean_abs": 1.32668077e-07, + "psnr_db": 153.937558, + "ref_absmax": 13.6912508, + "rel_max": 8.35868977e-07, + "scaled_max_abs": 8.35868977e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/zoo.HWSwap_0/torchvision.models.resnet.BasicBlock_inner/torch.nn.modules.activation.ReLU_relu;;zoo.Source/t" + }, + "status": "pass", + "tap": "net.layer3.0", + "ungated_probes": { + "band_ratio": 0.0200272284, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.82148743e-06, + "mean_abs": 2.86842755e-07, + "psnr_db": 137.795591, + "ref_absmax": 4.40474701, + "rel_max": 2.00272284e-06, + "scaled_max_abs": 2.00272284e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 6202.38751, + "index": 7, + "metrics": { + "corr": 0.817110857, + "finite": true, + "max_abs": 5.16604042, + "mean_abs": 0.0778419787, + "psnr_db": 34.342342, + "ref_absmax": 8.32911587, + "rel_max": 0.620238751, + "scaled_max_abs": 0.620238751 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer3.1", + "ungated_probes": { + "band_ratio": 6609.12106, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.755791045, + "finite": true, + "max_abs": 2.54964876, + "mean_abs": 0.0570491703, + "psnr_db": 28.7800075, + "ref_absmax": 3.85777283, + "rel_max": 0.660912106, + "scaled_max_abs": 0.660912106 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6941.10975, + "index": 8, + "metrics": { + "corr": 0.849620425, + "finite": true, + "max_abs": 4.23854607, + "mean_abs": 0.0367978588, + "psnr_db": 35.5840805, + "ref_absmax": 6.10643864, + "rel_max": 0.694110975, + "scaled_max_abs": 0.694110975 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer4.0", + "ungated_probes": { + "band_ratio": 6068.96922, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.730488842, + "finite": true, + "max_abs": 1.27991188, + "mean_abs": 0.0309812437, + "psnr_db": 27.2499914, + "ref_absmax": 2.10894442, + "rel_max": 0.606896922, + "scaled_max_abs": 0.606896922 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 4536.42632, + "index": 9, + "metrics": { + "corr": 0.90072545, + "finite": true, + "max_abs": 8.04767036, + "mean_abs": 0.259420254, + "psnr_db": 30.6526056, + "ref_absmax": 17.7401104, + "rel_max": 0.453642632, + "scaled_max_abs": 0.453642632 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer4.1", + "ungated_probes": { + "band_ratio": 4361.6929, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.88831146, + "finite": true, + "max_abs": 3.53454542, + "mean_abs": 0.10500616, + "psnr_db": 29.2157237, + "ref_absmax": 8.10360909, + "rel_max": 0.43616929, + "scaled_max_abs": 0.43616929 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 1696.57336, + "index": 10, + "metrics": { + "corr": 0.974890331, + "finite": true, + "max_abs": 1.85055685, + "mean_abs": 0.134882286, + "psnr_db": 33.5662078, + "ref_absmax": 10.9076147, + "rel_max": 0.169657336, + "scaled_max_abs": 0.169657336 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;1" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 1513.04697, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.964986799, + "finite": true, + "max_abs": 0.885933518, + "mean_abs": 0.0740295037, + "psnr_db": 32.0618085, + "ref_absmax": 5.85529423, + "rel_max": 0.151304697, + "scaled_max_abs": 0.151304697 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 1604.40093, + "index": 11, + "metrics": { + "corr": 0.980094653, + "finite": true, + "max_abs": 3.70964622, + "mean_abs": 0.377446109, + "psnr_db": 37.3416714, + "ref_absmax": 23.1216908, + "rel_max": 0.160440093, + "scaled_max_abs": 0.160440093 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.fc", + "ungated_probes": { + "band_ratio": 1782.82079, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.974344214, + "finite": true, + "max_abs": 0.999922752, + "mean_abs": 0.236425192, + "psnr_db": 29.3015757, + "ref_absmax": 5.60865545, + "rel_max": 0.178282079, + "scaled_max_abs": 0.178282079 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 14 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 1494.71488, + "metrics": { + "corr": 0.985165224, + "finite": true, + "max_abs": 3.20171094, + "mean_abs": 0.300350826, + "psnr_db": 39.0814018, + "ref_absmax": 21.4202118, + "rel_max": 0.149471488, + "scaled_max_abs": 0.149471488 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 7, + "n_judged": 12, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.08107465e-08, + "psnr_db": 164.245493, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.00112572895, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.38418579e-07, + "mean_abs": 4.66724468e-08, + "psnr_db": 130.436578, + "ref_absmax": 2.11790395, + "rel_max": 1.12572895e-07, + "scaled_max_abs": 1.12572895e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00623771454, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.24520874e-06, + "mean_abs": 1.06644131e-07, + "psnr_db": 152.000278, + "ref_absmax": 8.40886307, + "rel_max": 6.23771454e-07, + "scaled_max_abs": 6.23771454e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.MaxPool2d_maxpool;2" + }, + "status": "pass", + "tap": "net.maxpool", + "ungated_probes": { + "band_ratio": 0.00729666687, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.54972076e-06, + "mean_abs": 1.13617345e-07, + "psnr_db": 141.810399, + "ref_absmax": 2.1238749, + "rel_max": 7.29666687e-07, + "scaled_max_abs": 7.29666687e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00892771453, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.52587891e-05, + "mean_abs": 2.76290454e-07, + "psnr_db": 151.089531, + "ref_absmax": 17.0914841, + "rel_max": 8.92771453e-07, + "scaled_max_abs": 8.92771453e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer1.0", + "ungated_probes": { + "band_ratio": 0.0166910128, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.94718552e-06, + "mean_abs": 4.4247302e-07, + "psnr_db": 133.650346, + "ref_absmax": 2.96398163, + "rel_max": 1.66910128e-06, + "scaled_max_abs": 1.66910128e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00965797747, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.8119812e-05, + "mean_abs": 4.43970185e-07, + "psnr_db": 147.823488, + "ref_absmax": 18.7614975, + "rel_max": 9.65797747e-07, + "scaled_max_abs": 9.65797747e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer1.1", + "ungated_probes": { + "band_ratio": 0.0590532081, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.32458115e-05, + "mean_abs": 1.47861575e-06, + "psnr_db": 124.805612, + "ref_absmax": 3.93641806, + "rel_max": 5.90532081e-06, + "scaled_max_abs": 5.90532081e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00856783938, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-06, + "mean_abs": 2.11702523e-07, + "psnr_db": 148.365791, + "ref_absmax": 11.1308613, + "rel_max": 8.56783938e-07, + "scaled_max_abs": 8.56783938e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer2.0", + "ungated_probes": { + "band_ratio": 0.0419170828, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.16527081e-05, + "mean_abs": 6.78429001e-07, + "psnr_db": 127.302904, + "ref_absmax": 2.77994251, + "rel_max": 4.19170828e-06, + "scaled_max_abs": 4.19170828e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00880131902, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.00135803e-05, + "mean_abs": 2.35542557e-07, + "psnr_db": 147.570649, + "ref_absmax": 11.3773632, + "rel_max": 8.80131902e-07, + "scaled_max_abs": 8.80131902e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer2.1", + "ungated_probes": { + "band_ratio": 0.0260273841, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33216381e-05, + "mean_abs": 6.46717913e-07, + "psnr_db": 132.203977, + "ref_absmax": 5.11831617, + "rel_max": 2.60273841e-06, + "scaled_max_abs": 2.60273841e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0079938294, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-06, + "mean_abs": 1.35383347e-07, + "psnr_db": 152.516445, + "ref_absmax": 11.930131, + "rel_max": 7.9938294e-07, + "scaled_max_abs": 7.9938294e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/zoo.HWSwap_0/torchvision.models.resnet.BasicBlock_inner/torch.nn.modules.activation.ReLU_relu;;zoo.Source/t" + }, + "status": "pass", + "tap": "net.layer3.0", + "ungated_probes": { + "band_ratio": 0.0340740896, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.50203705e-05, + "mean_abs": 2.83523179e-07, + "psnr_db": 137.857746, + "ref_absmax": 4.4081502, + "rel_max": 3.40740896e-06, + "scaled_max_abs": 3.40740896e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 9127.51457, + "index": 7, + "metrics": { + "corr": 0.800417827, + "finite": true, + "max_abs": 6.34934926, + "mean_abs": 0.0779881558, + "psnr_db": 32.9021688, + "ref_absmax": 6.95627403, + "rel_max": 0.912751457, + "scaled_max_abs": 0.912751457 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer3.1", + "ungated_probes": { + "band_ratio": 6550.55153, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.766043639, + "finite": true, + "max_abs": 2.53120875, + "mean_abs": 0.0510081405, + "psnr_db": 29.3874189, + "ref_absmax": 3.86411548, + "rel_max": 0.655055153, + "scaled_max_abs": 0.655055153 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6819.53433, + "index": 8, + "metrics": { + "corr": 0.836631439, + "finite": true, + "max_abs": 3.29707968, + "mean_abs": 0.0356533213, + "psnr_db": 33.8158926, + "ref_absmax": 4.8347578, + "rel_max": 0.681953433, + "scaled_max_abs": 0.681953433 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer4.0", + "ungated_probes": { + "band_ratio": 6040.47441, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.733850062, + "finite": true, + "max_abs": 1.28100967, + "mean_abs": 0.027984276, + "psnr_db": 27.8381728, + "ref_absmax": 2.12071037, + "rel_max": 0.604047441, + "scaled_max_abs": 0.604047441 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 3220.76177, + "index": 9, + "metrics": { + "corr": 0.912577225, + "finite": true, + "max_abs": 6.81767941, + "mean_abs": 0.239634162, + "psnr_db": 33.0410247, + "ref_absmax": 21.1679096, + "rel_max": 0.322076177, + "scaled_max_abs": 0.322076177 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer4.1", + "ungated_probes": { + "band_ratio": 4144.37737, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.885133023, + "finite": true, + "max_abs": 3.47400761, + "mean_abs": 0.116783054, + "psnr_db": 29.160261, + "ref_absmax": 8.38245964, + "rel_max": 0.414437737, + "scaled_max_abs": 0.414437737 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 1917.70331, + "index": 10, + "metrics": { + "corr": 0.98088956, + "finite": true, + "max_abs": 2.05334854, + "mean_abs": 0.110937252, + "psnr_db": 35.0080507, + "ref_absmax": 10.7073317, + "rel_max": 0.191770331, + "scaled_max_abs": 0.191770331 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;1" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 1355.47201, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.969312325, + "finite": true, + "max_abs": 0.795789123, + "mean_abs": 0.0751987786, + "psnr_db": 32.4864119, + "ref_absmax": 5.87093735, + "rel_max": 0.135547201, + "scaled_max_abs": 0.135547201 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 1494.71488, + "index": 11, + "metrics": { + "corr": 0.985486536, + "finite": true, + "max_abs": 3.20171094, + "mean_abs": 0.311507342, + "psnr_db": 38.7869885, + "ref_absmax": 21.4202118, + "rel_max": 0.149471488, + "scaled_max_abs": 0.149471488 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.fc", + "ungated_probes": { + "band_ratio": 1666.91868, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.978898612, + "finite": true, + "max_abs": 0.954354405, + "mean_abs": 0.22225521, + "psnr_db": 30.0326519, + "ref_absmax": 5.72526073, + "rel_max": 0.166691868, + "scaled_max_abs": 0.166691868 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp32", + "id": "resnet18__layout_swap__litert_fp32", + "model": "resnet18", + "path": "litert", + "variant": "layout_swap" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/resnet18__layout_swap__onnx_fp16.json b/bench/verdicts_calibrated4/resnet18__layout_swap__onnx_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..92fd42129ec669f4327df3bc5a6de0e51094724e --- /dev/null +++ b/bench/verdicts_calibrated4/resnet18__layout_swap__onnx_fp16.json @@ -0,0 +1,991 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "baseline": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "faithful_output_rel_max": 0.00057913326, + "output_band": 0.01, + "source": { + "bundle": "bundles/resnet18__clean__onnx_fp16.json", + "case": "resnet18__clean__onnx_fp16", + "digests": { + "192": { + "converted": "4f79899b2d94647c7a27acca5e2e048d6822448df0daac039062b5f5ac153fb2", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "441b70243dcc6533ecfb651f068a5b92f6a087252f2b8a01eebcf8972fcb76c6", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + } + } + }, + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "reason": "first divergence at tap 6 is beyond the hypothesis taps (first 3) \u2014 interface faults surface earlier", + "status": "not_evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "/net/layer3/layer3.0/Transpose_output_0", + "basis": "earliest tap over band with in-band predecessors (fp16: the tap's faithful envelope gates, C3-1)", + "index": 6, + "neighbourhood": [ + { + "band_ratio": 0.0629964887, + "index": 5, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_ratio": 58.6699275, + "index": 6, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.0/Transpose_output_0" + }, + "status": "fail", + "tap": "net.layer3.0" + }, + { + "band_ratio": 91.3106809, + "index": 7, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer3.1" + } + ], + "shape": 224, + "tap": "net.layer3.0" + }, + "fp16_floor": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "baseline": { + "bundle": "bundles/resnet18__clean__onnx_fp16.json", + "case": "resnet18__clean__onnx_fp16", + "digests": { + "192": { + "converted": "4f79899b2d94647c7a27acca5e2e048d6822448df0daac039062b5f5ac153fb2", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "441b70243dcc6533ecfb651f068a5b92f6a087252f2b8a01eebcf8972fcb76c6", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + } + }, + "envelopes_gate": true, + "faithful_output_rel_max": 0.00057913326, + "faithful_tap_rel_max": { + "net.avgpool": 0.000879095353, + "net.fc": 0.00057913326, + "net.layer1.0": 0.000506201414, + "net.layer1.1": 0.000535356941, + "net.layer2.0": 0.000613549091, + "net.layer2.1": 0.000629964887, + "net.layer3.0": 0.000475472973, + "net.layer3.1": 0.000795143564, + "net.layer4.0": 0.00179190277, + "net.layer4.1": 0.00158067242, + "net.maxpool": 0.000650593626, + "normalize": 0.000441313312 + }, + "floor": 0.01, + "k": 2.0, + "output_band": 0.01, + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used", + "tap_envelopes": { + "net.avgpool": 0.01, + "net.fc": 0.01, + "net.layer1.0": 0.01, + "net.layer1.1": 0.01, + "net.layer2.0": 0.01, + "net.layer2.1": 0.01, + "net.layer3.0": 0.01, + "net.layer3.1": 0.01, + "net.layer4.0": 0.01, + "net.layer4.1": 0.01, + "net.maxpool": 0.01, + "normalize": 0.01 + } + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "097d38eceae31d6c2ff34f4ae0c1a99b4b60176dfc52769b2a8e036b51a14746", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "07fc17739aac524c05933e95221873c5cc04b5a9e22f41c1804c736b22c12b13", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0017414093, + "224": 0.00214958191 + }, + "primary_class": "D2", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.96875, + "band_limit": 0.01, + "band_ratio": 16.0292361, + "metrics": { + "corr": 0.979817171, + "finite": true, + "max_abs": 3.7062304, + "mean_abs": 0.359711696, + "psnr_db": 37.7026036, + "ref_absmax": 23.1216908, + "rel_max": 0.160292361, + "scaled_max_abs": 0.160292361 + }, + "per_op_band_ratio": 16.0292361, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 14 + } + }, + "first_fail_index": 6, + "n_judged": 12, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 0.0441313312, + "index": 0, + "metrics": { + "corr": 0.999999966, + "finite": true, + "max_abs": 0.00508785248, + "mean_abs": 0.000405953078, + "psnr_db": 88.0186903, + "ref_absmax": 11.5288897, + "rel_max": 0.000441313312, + "scaled_max_abs": 0.000441313312 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "per_op_band_ratio": 0.0441313312, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0640982743, + "index": 1, + "metrics": { + "corr": 0.999999909, + "finite": true, + "max_abs": 0.00591921806, + "mean_abs": 0.000156664105, + "psnr_db": 90.9101891, + "ref_absmax": 9.23459816, + "rel_max": 0.000640982743, + "scaled_max_abs": 0.000640982743 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/maxpool/MaxPool_output_0" + }, + "per_op_band_ratio": 0.0640982743, + "status": "pass", + "tap": "net.maxpool" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0384577671, + "index": 2, + "metrics": { + "corr": 0.999999849, + "finite": true, + "max_abs": 0.00611925125, + "mean_abs": 0.000234829637, + "psnr_db": 92.5526304, + "ref_absmax": 15.9116135, + "rel_max": 0.000384577671, + "scaled_max_abs": 0.000384577671 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.0/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 0.0384577671, + "status": "pass", + "tap": "net.layer1.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0524185506, + "index": 3, + "metrics": { + "corr": 0.999999705, + "finite": true, + "max_abs": 0.00986480713, + "mean_abs": 0.000332652643, + "psnr_db": 90.3693126, + "ref_absmax": 18.8193054, + "rel_max": 0.000524185506, + "scaled_max_abs": 0.000524185506 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.1/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 0.0524185506, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0613549091, + "index": 4, + "metrics": { + "corr": 0.999999522, + "finite": true, + "max_abs": 0.00717830658, + "mean_abs": 0.000162431505, + "psnr_db": 90.8349286, + "ref_absmax": 11.699645, + "rel_max": 0.000613549091, + "scaled_max_abs": 0.000613549091 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.0/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 0.0613549091, + "status": "pass", + "tap": "net.layer2.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0555682387, + "index": 5, + "metrics": { + "corr": 0.999999447, + "finite": true, + "max_abs": 0.00645893812, + "mean_abs": 0.000178505766, + "psnr_db": 90.0284719, + "ref_absmax": 11.623435, + "rel_max": 0.000555682387, + "scaled_max_abs": 0.000555682387 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.1/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 0.0555682387, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_limit": 0.01, + "band_ratio": 59.5580468, + "index": 6, + "metrics": { + "corr": 0.787060677, + "finite": true, + "max_abs": 8.15424156, + "mean_abs": 0.078173486, + "psnr_db": 38.4313354, + "ref_absmax": 13.6912508, + "rel_max": 0.595580468, + "scaled_max_abs": 0.595580468 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.0/Transpose_output_0" + }, + "per_op_band_ratio": 59.5580468, + "status": "fail", + "tap": "net.layer3.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 62.0470267, + "index": 7, + "metrics": { + "corr": 0.812594192, + "finite": true, + "max_abs": 5.16796875, + "mean_abs": 0.0752478764, + "psnr_db": 34.4674024, + "ref_absmax": 8.32911587, + "rel_max": 0.620470267, + "scaled_max_abs": 0.620470267 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.1/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 62.0470267, + "status": "fail", + "tap": "net.layer3.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 69.4273631, + "index": 8, + "metrics": { + "corr": 0.842492827, + "finite": true, + "max_abs": 4.23953933, + "mean_abs": 0.0360710238, + "psnr_db": 35.6868488, + "ref_absmax": 6.10643864, + "rel_max": 0.694273631, + "scaled_max_abs": 0.694273631 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.0/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 69.4273631, + "status": "fail", + "tap": "net.layer4.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 45.4038184, + "index": 9, + "metrics": { + "corr": 0.901532901, + "finite": true, + "max_abs": 8.0546875, + "mean_abs": 0.240095486, + "psnr_db": 31.0562046, + "ref_absmax": 17.7401104, + "rel_max": 0.454038184, + "scaled_max_abs": 0.454038184 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.1/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 45.4038184, + "status": "fail", + "tap": "net.layer4.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 16.9721511, + "index": 10, + "metrics": { + "corr": 0.974789487, + "finite": true, + "max_abs": 1.85125685, + "mean_abs": 0.127254963, + "psnr_db": 33.9014119, + "ref_absmax": 10.9076147, + "rel_max": 0.169721511, + "scaled_max_abs": 0.169721511 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "per_op_band_ratio": 16.9721511, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 16.0305065, + "index": 11, + "metrics": { + "corr": 0.979817061, + "finite": true, + "max_abs": 3.70652413, + "mean_abs": 0.359712227, + "psnr_db": 37.7025804, + "ref_absmax": 23.1216908, + "rel_max": 0.160305065, + "scaled_max_abs": 0.160305065 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "per_op_band_ratio": 16.0305065, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "natural", + "index": 14 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_limit": 0.01, + "band_ratio": 14.9371169, + "metrics": { + "corr": 0.985164934, + "finite": true, + "max_abs": 3.19956207, + "mean_abs": 0.300331845, + "psnr_db": 39.0817522, + "ref_absmax": 21.4202118, + "rel_max": 0.149371169, + "scaled_max_abs": 0.149371169 + }, + "per_op_band_ratio": 14.9371169, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 6, + "n_judged": 12, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 0.0439328023, + "index": 0, + "metrics": { + "corr": 0.999999965, + "finite": true, + "max_abs": 0.00506496429, + "mean_abs": 0.000406712054, + "psnr_db": 88.0749992, + "ref_absmax": 11.5288897, + "rel_max": 0.000439328023, + "scaled_max_abs": 0.000439328023 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "per_op_band_ratio": 0.0439328023, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0650593626, + "index": 1, + "metrics": { + "corr": 0.999999901, + "finite": true, + "max_abs": 0.00547075272, + "mean_abs": 0.000153226313, + "psnr_db": 90.3189603, + "ref_absmax": 8.40886307, + "rel_max": 0.000650593626, + "scaled_max_abs": 0.000650593626 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/maxpool/MaxPool_output_0" + }, + "per_op_band_ratio": 0.0650593626, + "status": "pass", + "tap": "net.maxpool" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0506201414, + "index": 2, + "metrics": { + "corr": 0.999999831, + "finite": true, + "max_abs": 0.0086517334, + "mean_abs": 0.000236261028, + "psnr_db": 93.1783463, + "ref_absmax": 17.0914841, + "rel_max": 0.000506201414, + "scaled_max_abs": 0.000506201414 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.0/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 0.0506201414, + "status": "pass", + "tap": "net.layer1.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0535356941, + "index": 3, + "metrics": { + "corr": 0.999999662, + "finite": true, + "max_abs": 0.0100440979, + "mean_abs": 0.000337286326, + "psnr_db": 90.2185942, + "ref_absmax": 18.7614975, + "rel_max": 0.000535356941, + "scaled_max_abs": 0.000535356941 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.1/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 0.0535356941, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0610469266, + "index": 4, + "metrics": { + "corr": 0.999999468, + "finite": true, + "max_abs": 0.00679504871, + "mean_abs": 0.000164360102, + "psnr_db": 90.3342488, + "ref_absmax": 11.1308613, + "rel_max": 0.000610469266, + "scaled_max_abs": 0.000610469266 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.0/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 0.0610469266, + "status": "pass", + "tap": "net.layer2.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0629964887, + "index": 5, + "metrics": { + "corr": 0.999999391, + "finite": true, + "max_abs": 0.00716733932, + "mean_abs": 0.000177770421, + "psnr_db": 89.8777049, + "ref_absmax": 11.3773632, + "rel_max": 0.000629964887, + "scaled_max_abs": 0.000629964887 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.1/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 0.0629964887, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_limit": 0.01, + "band_ratio": 58.6699275, + "index": 6, + "metrics": { + "corr": 0.771678447, + "finite": true, + "max_abs": 6.99939919, + "mean_abs": 0.0770255099, + "psnr_db": 37.4075404, + "ref_absmax": 11.930131, + "rel_max": 0.586699275, + "scaled_max_abs": 0.586699275 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.0/Transpose_output_0" + }, + "per_op_band_ratio": 58.6699275, + "status": "fail", + "tap": "net.layer3.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 91.3106809, + "index": 7, + "metrics": { + "corr": 0.797911529, + "finite": true, + "max_abs": 6.35182118, + "mean_abs": 0.074622082, + "psnr_db": 33.0715255, + "ref_absmax": 6.95627403, + "rel_max": 0.913106809, + "scaled_max_abs": 0.913106809 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.1/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 91.3106809, + "status": "fail", + "tap": "net.layer3.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 68.2020401, + "index": 8, + "metrics": { + "corr": 0.830279938, + "finite": true, + "max_abs": 3.29740345, + "mean_abs": 0.0346963351, + "psnr_db": 33.9467104, + "ref_absmax": 4.8347578, + "rel_max": 0.682020401, + "scaled_max_abs": 0.682020401 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.0/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 68.2020401, + "status": "fail", + "tap": "net.layer4.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 32.1544103, + "index": 9, + "metrics": { + "corr": 0.912458067, + "finite": true, + "max_abs": 6.80641651, + "mean_abs": 0.224244203, + "psnr_db": 33.3905371, + "ref_absmax": 21.1679096, + "rel_max": 0.321544103, + "scaled_max_abs": 0.321544103 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.1/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 32.1544103, + "status": "fail", + "tap": "net.layer4.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 19.166207, + "index": 10, + "metrics": { + "corr": 0.980557453, + "finite": true, + "max_abs": 2.05218935, + "mean_abs": 0.106447479, + "psnr_db": 35.2691152, + "ref_absmax": 10.7073317, + "rel_max": 0.19166207, + "scaled_max_abs": 0.19166207 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "per_op_band_ratio": 19.166207, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 14.9334761, + "index": 11, + "metrics": { + "corr": 0.985164949, + "finite": true, + "max_abs": 3.19878221, + "mean_abs": 0.300332521, + "psnr_db": 39.0817371, + "ref_absmax": 21.4202118, + "rel_max": 0.149334761, + "scaled_max_abs": 0.149334761 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "per_op_band_ratio": 14.9334761, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp16", + "id": "resnet18__layout_swap__onnx_fp16", + "model": "resnet18", + "path": "onnx", + "variant": "layout_swap" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/resnet18__layout_swap__onnx_fp32.json b/bench/verdicts_calibrated4/resnet18__layout_swap__onnx_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..0f9f9a9245a51f17a1cbef52adaac07260172350 --- /dev/null +++ b/bench/verdicts_calibrated4/resnet18__layout_swap__onnx_fp32.json @@ -0,0 +1,1283 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "reason": "first divergence at tap 6 is beyond the hypothesis taps (first 3) \u2014 interface faults surface earlier", + "status": "not_evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "/net/layer3/layer3.0/Transpose_output_0", + "basis": "earliest tap over band with in-band predecessors", + "index": 6, + "neighbourhood": [ + { + "band_ratio": 0.00670576688, + "index": 5, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_ratio": 5866.5427, + "index": 6, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.0/Transpose_output_0" + }, + "status": "fail", + "tap": "net.layer3.0" + }, + { + "band_ratio": 9127.5132, + "index": 7, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer3.1" + } + ], + "shape": 224, + "tap": "net.layer3.0" + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "c09a887039c719c1ea12d705c4e7df48611a7e9df0e731b246067e83273a56e6", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "d7491bd2ba42391543b930f0498d3d071849090c68390372c07217e248a059db", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "fp32 per-tap band on near-zero probes", + "reason": "C3-2: per-tap fp32 checks gate without the near_zero probes; they are measured and reported per tap ('ungated_probes'); the output gates on all probes. C4-1: when the output has failed and no gated tap fails, they localise the first divergence (earliest tap over band on all probes)" + }, + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D2", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.96875, + "band_ratio": 1604.40166, + "metrics": { + "corr": 0.979812712, + "finite": true, + "max_abs": 3.70964789, + "mean_abs": 0.359818523, + "psnr_db": 37.7016564, + "ref_absmax": 23.1216908, + "rel_max": 0.160440166, + "scaled_max_abs": 0.160440166 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 14 + } + }, + "first_fail_index": 6, + "n_judged": 12, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.0, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 11.5288897, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.0, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 2.11790395, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00645449252, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.96046448e-06, + "mean_abs": 1.03648297e-07, + "psnr_db": 152.802431, + "ref_absmax": 9.23459816, + "rel_max": 6.45449252e-07, + "scaled_max_abs": 6.45449252e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/maxpool/MaxPool_output_0" + }, + "status": "pass", + "tap": "net.maxpool", + "ungated_probes": { + "band_ratio": 0.00701182182, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.49011612e-06, + "mean_abs": 9.31340386e-08, + "psnr_db": 142.770503, + "ref_absmax": 2.1251483, + "rel_max": 7.01182182e-07, + "scaled_max_abs": 7.01182182e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00599357393, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-06, + "mean_abs": 2.28623993e-07, + "psnr_db": 151.909626, + "ref_absmax": 15.9116135, + "rel_max": 5.99357393e-07, + "scaled_max_abs": 5.99357393e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer1.0", + "ungated_probes": { + "band_ratio": 0.0104546191, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.09944153e-06, + "mean_abs": 3.41602528e-07, + "psnr_db": 135.958902, + "ref_absmax": 2.96466231, + "rel_max": 1.04546191e-06, + "scaled_max_abs": 1.04546191e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00785467453, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.47819519e-05, + "mean_abs": 3.5602081e-07, + "psnr_db": 149.65463, + "ref_absmax": 18.8193054, + "rel_max": 7.85467453e-07, + "scaled_max_abs": 7.85467453e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer1.1", + "ungated_probes": { + "band_ratio": 0.0506847825, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.99377537e-05, + "mean_abs": 1.18350056e-06, + "psnr_db": 126.723322, + "ref_absmax": 3.93367648, + "rel_max": 5.06847825e-06, + "scaled_max_abs": 5.06847825e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00703050473, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.22544098e-06, + "mean_abs": 1.68181236e-07, + "psnr_db": 150.833466, + "ref_absmax": 11.699645, + "rel_max": 7.03050473e-07, + "scaled_max_abs": 7.03050473e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer2.0", + "ungated_probes": { + "band_ratio": 0.0344453479, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.56654549e-06, + "mean_abs": 5.28147274e-07, + "psnr_db": 129.430246, + "ref_absmax": 2.77731133, + "rel_max": 3.44453479e-06, + "scaled_max_abs": 3.44453479e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00635868479, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.39097595e-06, + "mean_abs": 1.87650168e-07, + "psnr_db": 149.83625, + "ref_absmax": 11.623435, + "rel_max": 6.35868479e-07, + "scaled_max_abs": 6.35868479e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer2.1", + "ungated_probes": { + "band_ratio": 0.024564899, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.25467777e-05, + "mean_abs": 4.99122864e-07, + "psnr_db": 134.432516, + "ref_absmax": 5.10760403, + "rel_max": 2.4564899e-06, + "scaled_max_abs": 2.4564899e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 5955.59241, + "index": 6, + "metrics": { + "corr": 0.791880198, + "finite": true, + "max_abs": 8.15395093, + "mean_abs": 0.0820552338, + "psnr_db": 38.2291889, + "ref_absmax": 13.6912508, + "rel_max": 0.595559241, + "scaled_max_abs": 0.595559241 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.0/Transpose_output_0" + }, + "status": "fail", + "tap": "net.layer3.0", + "ungated_probes": { + "band_ratio": 6297.84126, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.708127298, + "finite": true, + "max_abs": 2.77403975, + "mean_abs": 0.0509021459, + "psnr_db": 30.3455781, + "ref_absmax": 4.40474701, + "rel_max": 0.629784126, + "scaled_max_abs": 0.629784126 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6202.38636, + "index": 7, + "metrics": { + "corr": 0.817110876, + "finite": true, + "max_abs": 5.16603947, + "mean_abs": 0.0778419785, + "psnr_db": 34.342342, + "ref_absmax": 8.32911587, + "rel_max": 0.620238636, + "scaled_max_abs": 0.620238636 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer3.1", + "ungated_probes": { + "band_ratio": 6609.12662, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.755791157, + "finite": true, + "max_abs": 2.54965091, + "mean_abs": 0.0570491571, + "psnr_db": 28.7800095, + "ref_absmax": 3.85777283, + "rel_max": 0.660912662, + "scaled_max_abs": 0.660912662 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6941.1074, + "index": 8, + "metrics": { + "corr": 0.849620433, + "finite": true, + "max_abs": 4.23854464, + "mean_abs": 0.0367978599, + "psnr_db": 35.5840803, + "ref_absmax": 6.10643864, + "rel_max": 0.69411074, + "scaled_max_abs": 0.69411074 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.0/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer4.0", + "ungated_probes": { + "band_ratio": 6068.96753, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.730488882, + "finite": true, + "max_abs": 1.27991152, + "mean_abs": 0.0309812413, + "psnr_db": 27.2499913, + "ref_absmax": 2.10894442, + "rel_max": 0.606896753, + "scaled_max_abs": 0.606896753 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 4536.4247, + "index": 9, + "metrics": { + "corr": 0.900725463, + "finite": true, + "max_abs": 8.0476675, + "mean_abs": 0.259420255, + "psnr_db": 30.6526055, + "ref_absmax": 17.7401104, + "rel_max": 0.45364247, + "scaled_max_abs": 0.45364247 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer4.1", + "ungated_probes": { + "band_ratio": 4361.71055, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.888311414, + "finite": true, + "max_abs": 3.53455973, + "mean_abs": 0.105006157, + "psnr_db": 29.2157218, + "ref_absmax": 8.10360909, + "rel_max": 0.436171055, + "scaled_max_abs": 0.436171055 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 1696.57511, + "index": 10, + "metrics": { + "corr": 0.97489033, + "finite": true, + "max_abs": 1.85055876, + "mean_abs": 0.134882287, + "psnr_db": 33.5662079, + "ref_absmax": 10.9076147, + "rel_max": 0.169657511, + "scaled_max_abs": 0.169657511 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 1513.04554, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.964986756, + "finite": true, + "max_abs": 0.885932684, + "mean_abs": 0.0740295252, + "psnr_db": 32.0618034, + "ref_absmax": 5.85529423, + "rel_max": 0.151304554, + "scaled_max_abs": 0.151304554 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 1604.40166, + "index": 11, + "metrics": { + "corr": 0.980094652, + "finite": true, + "max_abs": 3.70964789, + "mean_abs": 0.377446124, + "psnr_db": 37.3416712, + "ref_absmax": 23.1216908, + "rel_max": 0.160440166, + "scaled_max_abs": 0.160440166 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc", + "ungated_probes": { + "band_ratio": 1782.82121, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.974344177, + "finite": true, + "max_abs": 0.999922991, + "mean_abs": 0.23642532, + "psnr_db": 29.3015701, + "ref_absmax": 5.60865545, + "rel_max": 0.178282121, + "scaled_max_abs": 0.178282121 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 14 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 1494.71388, + "metrics": { + "corr": 0.985165236, + "finite": true, + "max_abs": 3.20170879, + "mean_abs": 0.300350699, + "psnr_db": 39.0814046, + "ref_absmax": 21.4202118, + "rel_max": 0.149471388, + "scaled_max_abs": 0.149471388 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 6, + "n_judged": 12, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.0, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 11.5288897, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.0, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 2.11790395, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0068047795, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.7220459e-06, + "mean_abs": 9.92709198e-08, + "psnr_db": 152.4428, + "ref_absmax": 8.40886307, + "rel_max": 6.8047795e-07, + "scaled_max_abs": 6.8047795e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/maxpool/MaxPool_output_0" + }, + "status": "pass", + "tap": "net.maxpool", + "ungated_probes": { + "band_ratio": 0.00701602584, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.49011612e-06, + "mean_abs": 9.30897618e-08, + "psnr_db": 142.752775, + "ref_absmax": 2.1238749, + "rel_max": 7.01602584e-07, + "scaled_max_abs": 7.01602584e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00781175021, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33514404e-05, + "mean_abs": 2.25790913e-07, + "psnr_db": 152.750581, + "ref_absmax": 17.0914841, + "rel_max": 7.81175021e-07, + "scaled_max_abs": 7.81175021e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer1.0", + "ungated_probes": { + "band_ratio": 0.0117641475, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.48687172e-06, + "mean_abs": 3.42795438e-07, + "psnr_db": 135.932253, + "ref_absmax": 2.96398163, + "rel_max": 1.17641475e-06, + "scaled_max_abs": 1.17641475e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00914966287, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.71661377e-05, + "mean_abs": 3.56863543e-07, + "psnr_db": 149.674124, + "ref_absmax": 18.7614975, + "rel_max": 9.14966287e-07, + "scaled_max_abs": 9.14966287e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer1.1", + "ungated_probes": { + "band_ratio": 0.0502709361, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.97887421e-05, + "mean_abs": 1.19605396e-06, + "psnr_db": 126.659021, + "ref_absmax": 3.93641806, + "rel_max": 5.02709361e-06, + "scaled_max_abs": 5.02709361e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00642587954, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.15255737e-06, + "mean_abs": 1.70434883e-07, + "psnr_db": 150.271873, + "ref_absmax": 11.1308613, + "rel_max": 6.42587954e-07, + "scaled_max_abs": 6.42587954e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer2.0", + "ungated_probes": { + "band_ratio": 0.0439807755, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.22264028e-05, + "mean_abs": 5.2606399e-07, + "psnr_db": 129.494095, + "ref_absmax": 2.77994251, + "rel_max": 4.39807755e-06, + "scaled_max_abs": 4.39807755e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00670576688, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.62939453e-06, + "mean_abs": 1.88401909e-07, + "psnr_db": 149.546272, + "ref_absmax": 11.3773632, + "rel_max": 6.70576688e-07, + "scaled_max_abs": 6.70576688e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer2.1", + "ungated_probes": { + "band_ratio": 0.0258818171, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.32471323e-05, + "mean_abs": 4.93638685e-07, + "psnr_db": 134.503181, + "ref_absmax": 5.11831617, + "rel_max": 2.58818171e-06, + "scaled_max_abs": 2.58818171e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 5866.5427, + "index": 6, + "metrics": { + "corr": 0.774498901, + "finite": true, + "max_abs": 6.99886227, + "mean_abs": 0.0815825906, + "psnr_db": 37.1693278, + "ref_absmax": 11.930131, + "rel_max": 0.58665427, + "scaled_max_abs": 0.58665427 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.0/Transpose_output_0" + }, + "status": "fail", + "tap": "net.layer3.0", + "ungated_probes": { + "band_ratio": 6291.77416, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.724707789, + "finite": true, + "max_abs": 2.77350855, + "mean_abs": 0.0450344843, + "psnr_db": 30.9435796, + "ref_absmax": 4.4081502, + "rel_max": 0.629177416, + "scaled_max_abs": 0.629177416 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9127.5132, + "index": 7, + "metrics": { + "corr": 0.80041785, + "finite": true, + "max_abs": 6.34934831, + "mean_abs": 0.0779881546, + "psnr_db": 32.9021688, + "ref_absmax": 6.95627403, + "rel_max": 0.91275132, + "scaled_max_abs": 0.91275132 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer3.1", + "ungated_probes": { + "band_ratio": 6550.55739, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.766043668, + "finite": true, + "max_abs": 2.53121102, + "mean_abs": 0.051008139, + "psnr_db": 29.3874196, + "ref_absmax": 3.86411548, + "rel_max": 0.655055739, + "scaled_max_abs": 0.655055739 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6819.53137, + "index": 8, + "metrics": { + "corr": 0.836631471, + "finite": true, + "max_abs": 3.29707825, + "mean_abs": 0.0356533207, + "psnr_db": 33.8158927, + "ref_absmax": 4.8347578, + "rel_max": 0.681953137, + "scaled_max_abs": 0.681953137 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.0/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer4.0", + "ungated_probes": { + "band_ratio": 6040.48228, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.733850134, + "finite": true, + "max_abs": 1.28101134, + "mean_abs": 0.0279842742, + "psnr_db": 27.8381736, + "ref_absmax": 2.12071037, + "rel_max": 0.604048228, + "scaled_max_abs": 0.604048228 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 3220.75952, + "index": 9, + "metrics": { + "corr": 0.912577255, + "finite": true, + "max_abs": 6.81767464, + "mean_abs": 0.239634151, + "psnr_db": 33.0410253, + "ref_absmax": 21.1679096, + "rel_max": 0.322075952, + "scaled_max_abs": 0.322075952 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer4.1", + "ungated_probes": { + "band_ratio": 4144.39159, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.885133127, + "finite": true, + "max_abs": 3.47401953, + "mean_abs": 0.116782995, + "psnr_db": 29.1602647, + "ref_absmax": 8.38245964, + "rel_max": 0.414439159, + "scaled_max_abs": 0.414439159 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 1917.70331, + "index": 10, + "metrics": { + "corr": 0.980889572, + "finite": true, + "max_abs": 2.05334854, + "mean_abs": 0.110937235, + "psnr_db": 35.008053, + "ref_absmax": 10.7073317, + "rel_max": 0.191770331, + "scaled_max_abs": 0.191770331 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 1355.46409, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.969312382, + "finite": true, + "max_abs": 0.795784473, + "mean_abs": 0.0751987264, + "psnr_db": 32.4864183, + "ref_absmax": 5.87093735, + "rel_max": 0.135546409, + "scaled_max_abs": 0.135546409 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 1494.71388, + "index": 11, + "metrics": { + "corr": 0.985486547, + "finite": true, + "max_abs": 3.20170879, + "mean_abs": 0.311507223, + "psnr_db": 38.786991, + "ref_absmax": 21.4202118, + "rel_max": 0.149471388, + "scaled_max_abs": 0.149471388 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc", + "ungated_probes": { + "band_ratio": 1666.91326, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.978898658, + "finite": true, + "max_abs": 0.954351306, + "mean_abs": 0.222255032, + "psnr_db": 30.03266, + "ref_absmax": 5.72526073, + "rel_max": 0.166691326, + "scaled_max_abs": 0.166691326 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp32", + "id": "resnet18__layout_swap__onnx_fp32", + "model": "resnet18", + "path": "onnx", + "variant": "layout_swap" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/resnet18__pool_divisor__coreml_fp16.json b/bench/verdicts_calibrated4/resnet18__pool_divisor__coreml_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..f305a38f1c6ff71fc4a0225aa86bc45f29dbe364 --- /dev/null +++ b/bench/verdicts_calibrated4/resnet18__pool_divisor__coreml_fp16.json @@ -0,0 +1,962 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "baseline": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "faithful_output_rel_max": 0.00652165202, + "output_band": 0.013043304, + "source": { + "bundle": "bundles/resnet18__clean__coreml_fp16.json", + "case": "resnet18__clean__coreml_fp16", + "digests": { + "192": { + "converted": "d6e8f11106d7868c4acdddd4c89bb934bd08cc14049682fea972c885765295e4", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "aa676247fae9c779d0ab1c7cd4fb20d3d1c91b615ff304ed67889a259a1af32e", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + } + } + }, + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "reason": "first divergence at tap 10 is beyond the hypothesis taps (first 3) \u2014 interface faults surface earlier", + "status": "not_evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [ + "inputs[0]: dtype float16 (declared float32)", + "outputs[0]: dtype float16 (declared float32)" + ], + "status": "precision_narrowing" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "_inversed_x_cast_fp16", + "basis": "earliest tap over band with in-band predecessors (fp16: the tap's faithful envelope gates, C3-1)", + "index": 10, + "neighbourhood": [ + { + "band_ratio": 0.461224882, + "index": 9, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_3_cast_fp16" + }, + "status": "pass", + "tap": "net.layer4.1" + }, + { + "band_ratio": 22.7882478, + "index": 10, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_x_cast_fp16" + }, + "status": "fail", + "tap": "net.avgpool" + }, + { + "band_ratio": 30.249657, + "index": 11, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc" + } + ], + "shape": 224, + "tap": "net.avgpool" + }, + "fp16_floor": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "baseline": { + "bundle": "bundles/resnet18__clean__coreml_fp16.json", + "case": "resnet18__clean__coreml_fp16", + "digests": { + "192": { + "converted": "d6e8f11106d7868c4acdddd4c89bb934bd08cc14049682fea972c885765295e4", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "aa676247fae9c779d0ab1c7cd4fb20d3d1c91b615ff304ed67889a259a1af32e", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + } + }, + "envelopes_gate": true, + "faithful_output_rel_max": 0.00652165202, + "faithful_tap_rel_max": { + "net.avgpool": 0.00870158006, + "net.fc": 0.00652165202, + "net.layer1.0": 0.00480211137, + "net.layer1.1": 0.0048244139, + "net.layer2.0": 0.00485763828, + "net.layer2.1": 0.00605789942, + "net.layer3.0": 0.00577717049, + "net.layer3.1": 0.0171483417, + "net.layer4.0": 0.0243476768, + "net.layer4.1": 0.014049191, + "net.maxpool": 0.00459322342, + "normalize": 0.00117570499 + }, + "floor": 0.01, + "k": 2.0, + "output_band": 0.013043304, + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used", + "tap_envelopes": { + "net.avgpool": 0.0174031601, + "net.fc": 0.013043304, + "net.layer1.0": 0.01, + "net.layer1.1": 0.01, + "net.layer2.0": 0.01, + "net.layer2.1": 0.0121157988, + "net.layer3.0": 0.011554341, + "net.layer3.1": 0.0342966833, + "net.layer4.0": 0.0486953535, + "net.layer4.1": 0.028098382, + "net.maxpool": 0.01, + "normalize": 0.01 + } + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "d8ce454f335fa37c1ec8b86819fcb3ce1292304bb061dc473bb92dcad98f321c", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "b59b836f0f07e4f4dd3b5703a24dac08166fdeb22c9711222f5f0f0af9131c51", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D2", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_limit": 0.013043304, + "band_ratio": 33.8208969, + "metrics": { + "corr": 0.999961191, + "finite": true, + "max_abs": 10.1998158, + "mean_abs": 0.745010817, + "psnr_db": 30.9142425, + "ref_absmax": 23.1216908, + "rel_max": 0.441136241, + "scaled_max_abs": 0.441136241 + }, + "per_op_band_ratio": 44.1136241, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 10, + "n_judged": 12, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 0.117570499, + "index": 0, + "metrics": { + "corr": 0.999999914, + "finite": true, + "max_abs": 0.0135545731, + "mean_abs": 0.000674526699, + "psnr_db": 83.5827466, + "ref_absmax": 11.5288897, + "rel_max": 0.00117570499, + "scaled_max_abs": 0.00117570499 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "per_op_band_ratio": 0.117570499, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 0.459322342, + "index": 1, + "metrics": { + "corr": 0.999996447, + "finite": true, + "max_abs": 0.0424165726, + "mean_abs": 0.000952223367, + "psnr_db": 75.0364552, + "ref_absmax": 9.23459816, + "rel_max": 0.00459322342, + "scaled_max_abs": 0.00459322342 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_9_cast_fp16" + }, + "per_op_band_ratio": 0.459322342, + "status": "pass", + "tap": "net.maxpool" + }, + { + "band_limit": 0.01, + "band_ratio": 0.480211137, + "index": 2, + "metrics": { + "corr": 0.99998717, + "finite": true, + "max_abs": 0.0764093399, + "mean_abs": 0.00215436701, + "psnr_db": 73.3099338, + "ref_absmax": 15.9116135, + "rel_max": 0.00480211137, + "scaled_max_abs": 0.00480211137 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_21_cast_fp16" + }, + "per_op_band_ratio": 0.480211137, + "status": "pass", + "tap": "net.layer1.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.441904939, + "index": 3, + "metrics": { + "corr": 0.999962955, + "finite": true, + "max_abs": 0.0831634402, + "mean_abs": 0.0038022016, + "psnr_db": 69.3862926, + "ref_absmax": 18.8193054, + "rel_max": 0.00441904939, + "scaled_max_abs": 0.00441904939 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_33_cast_fp16" + }, + "per_op_band_ratio": 0.441904939, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.482464821, + "index": 4, + "metrics": { + "corr": 0.999939928, + "finite": true, + "max_abs": 0.0564466715, + "mean_abs": 0.00186217433, + "psnr_db": 69.8477445, + "ref_absmax": 11.699645, + "rel_max": 0.00482464821, + "scaled_max_abs": 0.00482464821 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_47_cast_fp16" + }, + "per_op_band_ratio": 0.482464821, + "status": "pass", + "tap": "net.layer2.0" + }, + { + "band_limit": 0.0121157988, + "band_ratio": 0.48685367, + "index": 5, + "metrics": { + "corr": 0.999930102, + "finite": true, + "max_abs": 0.0685622394, + "mean_abs": 0.00200145403, + "psnr_db": 69.0183736, + "ref_absmax": 11.623435, + "rel_max": 0.00589862113, + "scaled_max_abs": 0.00589862113 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59_cast_fp16" + }, + "per_op_band_ratio": 0.589862113, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_limit": 0.011554341, + "band_ratio": 0.34500175, + "index": 6, + "metrics": { + "corr": 0.999943674, + "finite": true, + "max_abs": 0.054576993, + "mean_abs": 0.00120694028, + "psnr_db": 74.2042645, + "ref_absmax": 13.6912508, + "rel_max": 0.00398626786, + "scaled_max_abs": 0.00398626786 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_73_cast_fp16" + }, + "per_op_band_ratio": 0.398626786, + "status": "pass", + "tap": "net.layer3.0" + }, + { + "band_limit": 0.0342966833, + "band_ratio": 0.352596193, + "index": 7, + "metrics": { + "corr": 0.999914514, + "finite": true, + "max_abs": 0.100722998, + "mean_abs": 0.00143564133, + "psnr_db": 67.8457217, + "ref_absmax": 8.32911587, + "rel_max": 0.01209288, + "scaled_max_abs": 0.01209288 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85_cast_fp16" + }, + "per_op_band_ratio": 1.209288, + "status": "pass", + "tap": "net.layer3.1" + }, + { + "band_limit": 0.0486953535, + "band_ratio": 0.423383838, + "index": 8, + "metrics": { + "corr": 0.999844894, + "finite": true, + "max_abs": 0.125895381, + "mean_abs": 0.000886009569, + "psnr_db": 65.7722773, + "ref_absmax": 6.10643864, + "rel_max": 0.0206168257, + "scaled_max_abs": 0.0206168257 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_99_cast_fp16" + }, + "per_op_band_ratio": 2.06168257, + "status": "pass", + "tap": "net.layer4.0" + }, + { + "band_limit": 0.028098382, + "band_ratio": 0.5, + "index": 9, + "metrics": { + "corr": 0.999917714, + "finite": true, + "max_abs": 0.2492342, + "mean_abs": 0.00654935488, + "psnr_db": 61.7269115, + "ref_absmax": 17.7401104, + "rel_max": 0.014049191, + "scaled_max_abs": 0.014049191 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_3_cast_fp16" + }, + "per_op_band_ratio": 1.4049191, + "status": "pass", + "tap": "net.layer4.1" + }, + { + "band_limit": 0.0174031601, + "band_ratio": 25.0298923, + "index": 10, + "metrics": { + "corr": 0.999970921, + "finite": true, + "max_abs": 4.7513485, + "mean_abs": 0.232135218, + "psnr_db": 26.9850867, + "ref_absmax": 10.9076147, + "rel_max": 0.435599223, + "scaled_max_abs": 0.435599223 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_x_cast_fp16" + }, + "per_op_band_ratio": 43.5599223, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "wide_range", + "index": 21 + } + }, + { + "band_limit": 0.013043304, + "band_ratio": 33.8208969, + "index": 11, + "metrics": { + "corr": 0.999961191, + "finite": true, + "max_abs": 10.1998158, + "mean_abs": 0.745010817, + "psnr_db": 30.9142425, + "ref_absmax": 23.1216908, + "rel_max": 0.441136241, + "scaled_max_abs": 0.441136241 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "per_op_band_ratio": 44.1136241, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_limit": 0.013043304, + "band_ratio": 30.249657, + "metrics": { + "corr": 0.999965716, + "finite": true, + "max_abs": 8.45146179, + "mean_abs": 0.656732819, + "psnr_db": 31.8669025, + "ref_absmax": 21.4202118, + "rel_max": 0.394555473, + "scaled_max_abs": 0.394555473 + }, + "per_op_band_ratio": 39.4555473, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 10, + "n_judged": 12, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 0.116213884, + "index": 0, + "metrics": { + "corr": 0.999999912, + "finite": true, + "max_abs": 0.0133981705, + "mean_abs": 0.000679588388, + "psnr_db": 83.6184843, + "ref_absmax": 11.5288897, + "rel_max": 0.00116213884, + "scaled_max_abs": 0.00116213884 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "per_op_band_ratio": 0.116213884, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 0.430958027, + "index": 1, + "metrics": { + "corr": 0.999996278, + "finite": true, + "max_abs": 0.0362386703, + "mean_abs": 0.000924325333, + "psnr_db": 74.6037105, + "ref_absmax": 8.40886307, + "rel_max": 0.00430958027, + "scaled_max_abs": 0.00430958027 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_9_cast_fp16" + }, + "per_op_band_ratio": 0.430958027, + "status": "pass", + "tap": "net.maxpool" + }, + { + "band_limit": 0.01, + "band_ratio": 0.384801236, + "index": 2, + "metrics": { + "corr": 0.999985791, + "finite": true, + "max_abs": 0.0657682419, + "mean_abs": 0.00216025527, + "psnr_db": 73.9813907, + "ref_absmax": 17.0914841, + "rel_max": 0.00384801236, + "scaled_max_abs": 0.00384801236 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_21_cast_fp16" + }, + "per_op_band_ratio": 0.384801236, + "status": "pass", + "tap": "net.layer1.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.48244139, + "index": 3, + "metrics": { + "corr": 0.999957868, + "finite": true, + "max_abs": 0.0905132294, + "mean_abs": 0.003858105, + "psnr_db": 69.2665621, + "ref_absmax": 18.7614975, + "rel_max": 0.0048244139, + "scaled_max_abs": 0.0048244139 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_33_cast_fp16" + }, + "per_op_band_ratio": 0.48244139, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.485763828, + "index": 4, + "metrics": { + "corr": 0.999932954, + "finite": true, + "max_abs": 0.0540696979, + "mean_abs": 0.00188201915, + "psnr_db": 69.3375532, + "ref_absmax": 11.1308613, + "rel_max": 0.00485763828, + "scaled_max_abs": 0.00485763828 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_47_cast_fp16" + }, + "per_op_band_ratio": 0.485763828, + "status": "pass", + "tap": "net.layer2.0" + }, + { + "band_limit": 0.0121157988, + "band_ratio": 0.5, + "index": 5, + "metrics": { + "corr": 0.999922136, + "finite": true, + "max_abs": 0.068922922, + "mean_abs": 0.0019962136, + "psnr_db": 68.8164661, + "ref_absmax": 11.3773632, + "rel_max": 0.00605789942, + "scaled_max_abs": 0.00605789942 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59_cast_fp16" + }, + "per_op_band_ratio": 0.605789942, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_limit": 0.011554341, + "band_ratio": 0.5, + "index": 6, + "metrics": { + "corr": 0.999937803, + "finite": true, + "max_abs": 0.0689224005, + "mean_abs": 0.00120167353, + "psnr_db": 73.0529363, + "ref_absmax": 11.930131, + "rel_max": 0.00577717049, + "scaled_max_abs": 0.00577717049 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_73_cast_fp16" + }, + "per_op_band_ratio": 0.577717049, + "status": "pass", + "tap": "net.layer3.0" + }, + { + "band_limit": 0.0342966833, + "band_ratio": 0.5, + "index": 7, + "metrics": { + "corr": 0.999901973, + "finite": true, + "max_abs": 0.119288564, + "mean_abs": 0.00145777084, + "psnr_db": 66.2038957, + "ref_absmax": 6.95627403, + "rel_max": 0.0171483417, + "scaled_max_abs": 0.0171483417 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85_cast_fp16" + }, + "per_op_band_ratio": 1.71483417, + "status": "pass", + "tap": "net.layer3.1" + }, + { + "band_limit": 0.0486953535, + "band_ratio": 0.5, + "index": 8, + "metrics": { + "corr": 0.999831858, + "finite": true, + "max_abs": 0.11771512, + "mean_abs": 0.00085839442, + "psnr_db": 63.9868246, + "ref_absmax": 4.8347578, + "rel_max": 0.0243476768, + "scaled_max_abs": 0.0243476768 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_99_cast_fp16" + }, + "per_op_band_ratio": 2.43476768, + "status": "pass", + "tap": "net.layer4.0" + }, + { + "band_limit": 0.028098382, + "band_ratio": 0.461224882, + "index": 9, + "metrics": { + "corr": 0.999905255, + "finite": true, + "max_abs": 0.274329185, + "mean_abs": 0.00667376417, + "psnr_db": 62.9871787, + "ref_absmax": 21.1679096, + "rel_max": 0.0129596729, + "scaled_max_abs": 0.0129596729 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_3_cast_fp16" + }, + "per_op_band_ratio": 1.29596729, + "status": "pass", + "tap": "net.layer4.1" + }, + { + "band_limit": 0.0174031601, + "band_ratio": 22.7882478, + "index": 10, + "metrics": { + "corr": 0.99997241, + "finite": true, + "max_abs": 4.24639416, + "mean_abs": 0.200837904, + "psnr_db": 28.1049976, + "ref_absmax": 10.7073317, + "rel_max": 0.396587525, + "scaled_max_abs": 0.396587525 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_x_cast_fp16" + }, + "per_op_band_ratio": 39.6587525, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.013043304, + "band_ratio": 30.249657, + "index": 11, + "metrics": { + "corr": 0.999965716, + "finite": true, + "max_abs": 8.45146179, + "mean_abs": 0.656732819, + "psnr_db": 31.8669025, + "ref_absmax": 21.4202118, + "rel_max": 0.394555473, + "scaled_max_abs": 0.394555473 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "per_op_band_ratio": 39.4555473, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp16", + "id": "resnet18__pool_divisor__coreml_fp16", + "model": "resnet18", + "path": "coreml", + "variant": "pool_divisor" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/resnet18__pool_divisor__coreml_fp32.json b/bench/verdicts_calibrated4/resnet18__pool_divisor__coreml_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..26adba834bd6c770ab961f18187746bd04d91b19 --- /dev/null +++ b/bench/verdicts_calibrated4/resnet18__pool_divisor__coreml_fp32.json @@ -0,0 +1,1251 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "reason": "first divergence at tap 10 is beyond the hypothesis taps (first 3) \u2014 interface faults surface earlier", + "status": "not_evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "_inversed_x", + "basis": "earliest tap over band with in-band predecessors", + "index": 10, + "neighbourhood": [ + { + "band_ratio": 0.0180211336, + "index": 9, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_3" + }, + "status": "pass", + "tap": "net.layer4.1" + }, + { + "band_ratio": 3950.62023, + "index": 10, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_x" + }, + "status": "fail", + "tap": "net.avgpool" + }, + { + "band_ratio": 3943.70617, + "index": 11, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc" + } + ], + "shape": 224, + "tap": "net.avgpool" + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "03bd6767d583fcc51384bda6aeabc97b6d6414593709f74cb340d39438dd5a67", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "3c327ac78b99d7ddb88ad8e1fcaed18305156c2805d314eccab51a3d12ea3f81", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "fp32 per-tap band on near-zero probes", + "reason": "C3-2: per-tap fp32 checks gate without the near_zero probes; they are measured and reported per tap ('ungated_probes'); the output gates on all probes. C4-1: when the output has failed and no gated tap fails, they localise the first divergence (earliest tap over band on all probes)" + }, + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D2", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 4367.91071, + "metrics": { + "corr": 0.999986557, + "finite": true, + "max_abs": 10.0993481, + "mean_abs": 0.74607253, + "psnr_db": 30.9062609, + "ref_absmax": 23.1216908, + "rel_max": 0.436791071, + "scaled_max_abs": 0.436791071 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 10, + "n_judged": 12, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.06644368e-08, + "psnr_db": 164.113247, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.00112572895, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.38418579e-07, + "mean_abs": 4.66593688e-08, + "psnr_db": 130.397207, + "ref_absmax": 2.11790395, + "rel_max": 1.12572895e-07, + "scaled_max_abs": 1.12572895e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00671267222, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.19888306e-06, + "mean_abs": 1.46632216e-07, + "psnr_db": 150.987992, + "ref_absmax": 9.23459816, + "rel_max": 6.71267222e-07, + "scaled_max_abs": 6.71267222e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_9" + }, + "status": "pass", + "tap": "net.maxpool", + "ungated_probes": { + "band_ratio": 0.00841418618, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.78813934e-06, + "mean_abs": 1.16446061e-07, + "psnr_db": 141.439489, + "ref_absmax": 2.1251483, + "rel_max": 8.41418618e-07, + "scaled_max_abs": 8.41418618e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00719228872, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.14440918e-05, + "mean_abs": 3.06402715e-07, + "psnr_db": 149.773687, + "ref_absmax": 15.9116135, + "rel_max": 7.19228872e-07, + "scaled_max_abs": 7.19228872e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_21" + }, + "status": "pass", + "tap": "net.layer1.0", + "ungated_probes": { + "band_ratio": 0.021311339, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.31809235e-06, + "mean_abs": 4.89821877e-07, + "psnr_db": 132.727186, + "ref_absmax": 2.96466231, + "rel_max": 2.1311339e-06, + "scaled_max_abs": 2.1311339e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00912155752, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.71661377e-05, + "mean_abs": 4.85733463e-07, + "psnr_db": 147.259644, + "ref_absmax": 18.8193054, + "rel_max": 9.12155752e-07, + "scaled_max_abs": 9.12155752e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_33" + }, + "status": "pass", + "tap": "net.layer1.1", + "ungated_probes": { + "band_ratio": 0.0597004613, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.348423e-05, + "mean_abs": 1.66013091e-06, + "psnr_db": 123.828902, + "ref_absmax": 3.93367648, + "rel_max": 5.97004613e-06, + "scaled_max_abs": 5.97004613e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00697955904, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.16583633e-06, + "mean_abs": 2.34065489e-07, + "psnr_db": 148.192522, + "ref_absmax": 11.699645, + "rel_max": 6.97955904e-07, + "scaled_max_abs": 6.97955904e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_47" + }, + "status": "pass", + "tap": "net.layer2.0", + "ungated_probes": { + "band_ratio": 0.0483415241, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.34259462e-05, + "mean_abs": 7.55778647e-07, + "psnr_db": 126.373546, + "ref_absmax": 2.77731133, + "rel_max": 4.83415241e-06, + "scaled_max_abs": 4.83415241e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0086149923, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.00135803e-05, + "mean_abs": 2.63314739e-07, + "psnr_db": 147.057013, + "ref_absmax": 11.623435, + "rel_max": 8.6149923e-07, + "scaled_max_abs": 8.6149923e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59" + }, + "status": "pass", + "tap": "net.layer2.1", + "ungated_probes": { + "band_ratio": 0.0265487626, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.35600567e-05, + "mean_abs": 7.15253358e-07, + "psnr_db": 131.341764, + "ref_absmax": 5.10760403, + "rel_max": 2.65487626e-06, + "scaled_max_abs": 2.65487626e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00626901733, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.58306885e-06, + "mean_abs": 1.49177653e-07, + "psnr_db": 153.186643, + "ref_absmax": 13.6912508, + "rel_max": 6.26901733e-07, + "scaled_max_abs": 6.26901733e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_73" + }, + "status": "pass", + "tap": "net.layer3.0", + "ungated_probes": { + "band_ratio": 0.0205685048, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.05990601e-06, + "mean_abs": 3.20289824e-07, + "psnr_db": 136.930443, + "ref_absmax": 4.40474701, + "rel_max": 2.05685048e-06, + "scaled_max_abs": 2.05685048e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0166023355, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.38282776e-05, + "mean_abs": 1.76829959e-07, + "psnr_db": 147.062265, + "ref_absmax": 8.32911587, + "rel_max": 1.66023355e-06, + "scaled_max_abs": 1.66023355e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85" + }, + "status": "pass", + "tap": "net.layer3.1", + "ungated_probes": { + "band_ratio": 0.0315190865, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.21593475e-05, + "mean_abs": 3.21340238e-07, + "psnr_db": 135.079279, + "ref_absmax": 3.85777283, + "rel_max": 3.15190865e-06, + "scaled_max_abs": 3.15190865e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0101513884, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.19888306e-06, + "mean_abs": 1.04797542e-07, + "psnr_db": 146.132795, + "ref_absmax": 6.10643864, + "rel_max": 1.01513884e-06, + "scaled_max_abs": 1.01513884e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_99" + }, + "status": "pass", + "tap": "net.layer4.0", + "ungated_probes": { + "band_ratio": 0.0373068776, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.86781311e-06, + "mean_abs": 1.74996555e-07, + "psnr_db": 131.268956, + "ref_absmax": 2.10894442, + "rel_max": 3.73068776e-06, + "scaled_max_abs": 3.73068776e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0193529097, + "index": 9, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.43322754e-05, + "mean_abs": 9.84009557e-07, + "psnr_db": 138.975535, + "ref_absmax": 17.7401104, + "rel_max": 1.93529097e-06, + "scaled_max_abs": 1.93529097e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_3" + }, + "status": "pass", + "tap": "net.layer4.1", + "ungated_probes": { + "band_ratio": 0.030009709, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.43186951e-05, + "mean_abs": 4.97568928e-07, + "psnr_db": 134.640799, + "ref_absmax": 8.10360909, + "rel_max": 3.0009709e-06, + "scaled_max_abs": 3.0009709e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 4374.99995, + "index": 10, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.77208138, + "mean_abs": 0.257026799, + "psnr_db": 26.5256275, + "ref_absmax": 10.9076147, + "rel_max": 0.437499995, + "scaled_max_abs": 0.437499995 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_x" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 4374.99399, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.56168771, + "mean_abs": 0.0594764021, + "psnr_db": 27.9365009, + "ref_absmax": 5.85529423, + "rel_max": 0.437499399, + "scaled_max_abs": 0.437499399 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "wide_range", + "index": 22 + } + }, + { + "band_ratio": 4367.91071, + "index": 11, + "metrics": { + "corr": 0.999987774, + "finite": true, + "max_abs": 10.0993481, + "mean_abs": 0.788906184, + "psnr_db": 30.4857811, + "ref_absmax": 23.1216908, + "rel_max": 0.436791071, + "scaled_max_abs": 0.436791071 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc", + "ungated_probes": { + "band_ratio": 4345.77689, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999955758, + "finite": true, + "max_abs": 2.43739653, + "mean_abs": 0.44623695, + "psnr_db": 23.8731121, + "ref_absmax": 5.60865545, + "rel_max": 0.434577689, + "scaled_max_abs": 0.434577689 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 3943.70617, + "metrics": { + "corr": 0.999989862, + "finite": true, + "max_abs": 8.44750214, + "mean_abs": 0.657314067, + "psnr_db": 31.8636656, + "ref_absmax": 21.4202118, + "rel_max": 0.394370617, + "scaled_max_abs": 0.394370617 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 10, + "n_judged": 12, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.08107465e-08, + "psnr_db": 164.245493, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.00112572895, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.38418579e-07, + "mean_abs": 4.66724468e-08, + "psnr_db": 130.436578, + "ref_absmax": 2.11790395, + "rel_max": 1.12572895e-07, + "scaled_max_abs": 1.12572895e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0064503639, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.42402267e-06, + "mean_abs": 1.41653613e-07, + "psnr_db": 150.592801, + "ref_absmax": 8.40886307, + "rel_max": 6.4503639e-07, + "scaled_max_abs": 6.4503639e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_9" + }, + "status": "pass", + "tap": "net.maxpool", + "ungated_probes": { + "band_ratio": 0.00954179514, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.02655792e-06, + "mean_abs": 1.16505097e-07, + "psnr_db": 141.425183, + "ref_absmax": 2.1238749, + "rel_max": 9.54179514e-07, + "scaled_max_abs": 9.54179514e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00781175021, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33514404e-05, + "mean_abs": 3.04504955e-07, + "psnr_db": 150.557561, + "ref_absmax": 17.0914841, + "rel_max": 7.81175021e-07, + "scaled_max_abs": 7.81175021e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_21" + }, + "status": "pass", + "tap": "net.layer1.0", + "ungated_probes": { + "band_ratio": 0.0193052678, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.7220459e-06, + "mean_abs": 4.91511212e-07, + "psnr_db": 132.704415, + "ref_absmax": 2.96398163, + "rel_max": 1.93052678e-06, + "scaled_max_abs": 1.93052678e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00864134826, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.62124634e-05, + "mean_abs": 4.90960911e-07, + "psnr_db": 147.159135, + "ref_absmax": 18.7614975, + "rel_max": 8.64134826e-07, + "scaled_max_abs": 8.64134826e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_33" + }, + "status": "pass", + "tap": "net.layer1.1", + "ungated_probes": { + "band_ratio": 0.0557220015, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.19345093e-05, + "mean_abs": 1.67574729e-06, + "psnr_db": 123.763507, + "ref_absmax": 3.93641806, + "rel_max": 5.57220015e-06, + "scaled_max_abs": 5.57220015e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00838041789, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.32812691e-06, + "mean_abs": 2.3925383e-07, + "psnr_db": 147.505666, + "ref_absmax": 11.1308613, + "rel_max": 8.38041789e-07, + "scaled_max_abs": 8.38041789e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_47" + }, + "status": "pass", + "tap": "net.layer2.0", + "ungated_probes": { + "band_ratio": 0.0473845284, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.31726265e-05, + "mean_abs": 7.53269184e-07, + "psnr_db": 126.422079, + "ref_absmax": 2.77994251, + "rel_max": 4.73845284e-06, + "scaled_max_abs": 4.73845284e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00958715108, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.090765e-05, + "mean_abs": 2.66645971e-07, + "psnr_db": 146.609757, + "ref_absmax": 11.3773632, + "rel_max": 9.58715108e-07, + "scaled_max_abs": 9.58715108e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59" + }, + "status": "pass", + "tap": "net.layer2.1", + "ungated_probes": { + "band_ratio": 0.0267042708, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.36680901e-05, + "mean_abs": 7.04819918e-07, + "psnr_db": 131.457256, + "ref_absmax": 5.11831617, + "rel_max": 2.67042708e-06, + "scaled_max_abs": 2.67042708e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00919290381, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.09672546e-05, + "mean_abs": 1.53058776e-07, + "psnr_db": 151.711257, + "ref_absmax": 11.930131, + "rel_max": 9.19290381e-07, + "scaled_max_abs": 9.19290381e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_73" + }, + "status": "pass", + "tap": "net.layer3.0", + "ungated_probes": { + "band_ratio": 0.0221752012, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.77516174e-06, + "mean_abs": 3.11827975e-07, + "psnr_db": 137.077085, + "ref_absmax": 4.4081502, + "rel_max": 2.21752012e-06, + "scaled_max_abs": 2.21752012e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0205643347, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-05, + "mean_abs": 1.84066172e-07, + "psnr_db": 145.131181, + "ref_absmax": 6.95627403, + "rel_max": 2.05643347e-06, + "scaled_max_abs": 2.05643347e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85" + }, + "status": "pass", + "tap": "net.layer3.1", + "ungated_probes": { + "band_ratio": 0.0498233047, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.92523003e-05, + "mean_abs": 3.19355241e-07, + "psnr_db": 135.033056, + "ref_absmax": 3.86411548, + "rel_max": 4.98233047e-06, + "scaled_max_abs": 4.98233047e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0119585112, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.78165054e-06, + "mean_abs": 1.07760226e-07, + "psnr_db": 143.729404, + "ref_absmax": 4.8347578, + "rel_max": 1.19585112e-06, + "scaled_max_abs": 1.19585112e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_99" + }, + "status": "pass", + "tap": "net.layer4.0", + "ungated_probes": { + "band_ratio": 0.0474991074, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.0073185e-05, + "mean_abs": 1.72458371e-07, + "psnr_db": 131.185119, + "ref_absmax": 2.12071037, + "rel_max": 4.74991074e-06, + "scaled_max_abs": 4.74991074e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0180211336, + "index": 9, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.81469727e-05, + "mean_abs": 1.00194121e-06, + "psnr_db": 140.151425, + "ref_absmax": 21.1679096, + "rel_max": 1.80211336e-06, + "scaled_max_abs": 1.80211336e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_3" + }, + "status": "pass", + "tap": "net.layer4.1", + "ungated_probes": { + "band_ratio": 0.0291536201, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.44379044e-05, + "mean_abs": 6.16358907e-07, + "psnr_db": 133.688777, + "ref_absmax": 8.38245964, + "rel_max": 2.91536201e-06, + "scaled_max_abs": 2.91536201e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 3950.62023, + "index": 10, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.2300601, + "mean_abs": 0.221015216, + "psnr_db": 27.6677124, + "ref_absmax": 10.7073317, + "rel_max": 0.395062023, + "scaled_max_abs": 0.395062023 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_x" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 3950.61568, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.31938171, + "mean_abs": 0.0607968588, + "psnr_db": 28.6796609, + "ref_absmax": 5.87093735, + "rel_max": 0.395061568, + "scaled_max_abs": 0.395061568 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 3943.70617, + "index": 11, + "metrics": { + "corr": 0.999990724, + "finite": true, + "max_abs": 8.44750214, + "mean_abs": 0.691201449, + "psnr_db": 31.468323, + "ref_absmax": 21.4202118, + "rel_max": 0.394370617, + "scaled_max_abs": 0.394370617 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc", + "ungated_probes": { + "band_ratio": 3924.76452, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999971066, + "finite": true, + "max_abs": 2.24703002, + "mean_abs": 0.42010239, + "psnr_db": 24.6592896, + "ref_absmax": 5.72526073, + "rel_max": 0.392476452, + "scaled_max_abs": 0.392476452 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp32", + "id": "resnet18__pool_divisor__coreml_fp32", + "model": "resnet18", + "path": "coreml", + "variant": "pool_divisor" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/resnet18__pool_divisor__litert_fp16.json b/bench/verdicts_calibrated4/resnet18__pool_divisor__litert_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..70f4e5a59a482a39ede11c163f5fc055e4b5d793 --- /dev/null +++ b/bench/verdicts_calibrated4/resnet18__pool_divisor__litert_fp16.json @@ -0,0 +1,1097 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "baseline": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "faithful_output_rel_max": 0.000479681862, + "output_band": 0.01, + "source": { + "bundle": "bundles/resnet18__clean__litert_fp16.json", + "case": "resnet18__clean__litert_fp16", + "digests": { + "192": { + "converted": "5518083a49acade5bb9995f1d28be7f32b0a23e8e42c5e39dfdbe59cfc6b794d", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "8d2974be0ffdfd9646dac16768c8f2eaa45593bd0207920e3d4230bc7750498d", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + } + } + }, + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "at": "e2e", + "band_limit": 0.01, + "explained_by": null, + "nominal_band_ratio": 39.4931041, + "results": [ + { + "band_ratio": 39.4932545, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 97.0326099, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 176.322194, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 39.492482, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 103.809443, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 7.71957391e-05, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.00135803e-05, + "mean_abs": 8.03946565e-07, + "psnr_db": 145.449504, + "ref_absmax": 12.9716749, + "rel_max": 7.71957391e-07, + "scaled_max_abs": 7.71957391e-07 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 27, + "outputs": [ + "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models.res", + "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.linear.Linear_fc;_dequant", + "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.B", + "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.B" + ] + }, + { + "inputs": 43, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 2, + "n_ops_total": 60, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "serving_default_output_0_output", + "basis": "earliest tap over band with in-band predecessors (fp16: the tap's faithful envelope gates, C3-1)", + "index": 11, + "neighbourhood": [ + { + "band_ratio": 0.0629439398, + "index": 10, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/zoo.DivisorPool_avgpool;1" + }, + "status": "pass", + "tap": "net.avgpool" + }, + { + "band_ratio": 39.4418923, + "index": 11, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.fc" + } + ], + "shape": 224, + "tap": "net.fc" + }, + "fp16_floor": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "baseline": { + "bundle": "bundles/resnet18__clean__litert_fp16.json", + "case": "resnet18__clean__litert_fp16", + "digests": { + "192": { + "converted": "5518083a49acade5bb9995f1d28be7f32b0a23e8e42c5e39dfdbe59cfc6b794d", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "8d2974be0ffdfd9646dac16768c8f2eaa45593bd0207920e3d4230bc7750498d", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + } + }, + "envelopes_gate": true, + "faithful_output_rel_max": 0.000479681862, + "faithful_tap_rel_max": { + "net.avgpool": 0.000675608743, + "net.fc": 0.000479681862, + "net.layer1.0": 0.000285533862, + "net.layer1.1": 0.000262599506, + "net.layer2.0": 0.000592551772, + "net.layer2.1": 0.000620361493, + "net.layer3.0": 0.000279544214, + "net.layer3.1": 0.000620957223, + "net.layer4.0": 0.0015225034, + "net.layer4.1": 0.00121889732, + "net.maxpool": 0.000583793374, + "normalize": 8.27203959e-08 + }, + "floor": 0.01, + "k": 2.0, + "output_band": 0.01, + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used", + "tap_envelopes": { + "net.avgpool": 0.01, + "net.fc": 0.01, + "net.layer1.0": 0.01, + "net.layer1.1": 0.01, + "net.layer2.0": 0.01, + "net.layer2.1": 0.01, + "net.layer3.0": 0.01, + "net.layer3.1": 0.01, + "net.layer4.0": 0.01, + "net.layer4.1": 0.01, + "net.maxpool": 0.01, + "normalize": 0.01 + } + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "2bc55efd4b00bf1fffe7caf34850781adec98fe13df48c3cca923d370a2eaf89", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "6c68def0e2b955a2efc141172e7ed550a27f8adb417bd1fa3ee24e74ac5f2352", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D2", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_limit": 0.01, + "band_ratio": 43.7000311, + "metrics": { + "corr": 0.999986321, + "finite": true, + "max_abs": 10.1041861, + "mean_abs": 0.746225692, + "psnr_db": 30.9043983, + "ref_absmax": 23.1216908, + "rel_max": 0.437000311, + "scaled_max_abs": 0.437000311 + }, + "per_op_band_ratio": 43.7000311, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 11, + "n_judged": 12, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 8.27203959e-06, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.26638033e-08, + "psnr_db": 163.904618, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "per_op_band_ratio": 8.27203959e-06, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0552685286, + "index": 1, + "metrics": { + "corr": 0.999999962, + "finite": true, + "max_abs": 0.00510382652, + "mean_abs": 7.6244338e-05, + "psnr_db": 94.6749001, + "ref_absmax": 9.23459816, + "rel_max": 0.000552685286, + "scaled_max_abs": 0.000552685286 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.MaxPool2d_maxpool;2" + }, + "per_op_band_ratio": 0.0552685286, + "status": "pass", + "tap": "net.maxpool" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0285533862, + "index": 2, + "metrics": { + "corr": 0.999999915, + "finite": true, + "max_abs": 0.00454330444, + "mean_abs": 0.000158366689, + "psnr_db": 95.091453, + "ref_absmax": 15.9116135, + "rel_max": 0.000285533862, + "scaled_max_abs": 0.000285533862 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 0.0285533862, + "status": "pass", + "tap": "net.layer1.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0262599506, + "index": 3, + "metrics": { + "corr": 0.999999807, + "finite": true, + "max_abs": 0.00494194031, + "mean_abs": 0.000244943041, + "psnr_db": 92.1941427, + "ref_absmax": 18.8193054, + "rel_max": 0.000262599506, + "scaled_max_abs": 0.000262599506 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 0.0262599506, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0526554237, + "index": 4, + "metrics": { + "corr": 0.999999711, + "finite": true, + "max_abs": 0.00616049767, + "mean_abs": 0.000116616282, + "psnr_db": 93.01523, + "ref_absmax": 11.699645, + "rel_max": 0.000526554237, + "scaled_max_abs": 0.000526554237 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 0.0526554237, + "status": "pass", + "tap": "net.layer2.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0620361493, + "index": 5, + "metrics": { + "corr": 0.999999676, + "finite": true, + "max_abs": 0.00721073151, + "mean_abs": 0.000130509692, + "psnr_db": 92.3595398, + "ref_absmax": 11.623435, + "rel_max": 0.000620361493, + "scaled_max_abs": 0.000620361493 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 0.0620361493, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0244031295, + "index": 6, + "metrics": { + "corr": 0.999999722, + "finite": true, + "max_abs": 0.00334109366, + "mean_abs": 8.5855404e-05, + "psnr_db": 97.27591, + "ref_absmax": 13.6912508, + "rel_max": 0.000244031295, + "scaled_max_abs": 0.000244031295 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 0.0244031295, + "status": "pass", + "tap": "net.layer3.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0515205535, + "index": 7, + "metrics": { + "corr": 0.999999649, + "finite": true, + "max_abs": 0.0042912066, + "mean_abs": 9.51070798e-05, + "psnr_db": 91.7208003, + "ref_absmax": 8.32911587, + "rel_max": 0.000515205535, + "scaled_max_abs": 0.000515205535 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 0.0515205535, + "status": "pass", + "tap": "net.layer3.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.117556982, + "index": 8, + "metrics": { + "corr": 0.999999304, + "finite": true, + "max_abs": 0.007178545, + "mean_abs": 6.1036483e-05, + "psnr_db": 89.2698291, + "ref_absmax": 6.10643864, + "rel_max": 0.00117556982, + "scaled_max_abs": 0.00117556982 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 0.117556982, + "status": "pass", + "tap": "net.layer4.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.121889732, + "index": 9, + "metrics": { + "corr": 0.999999557, + "finite": true, + "max_abs": 0.021623373, + "mean_abs": 0.00049812914, + "psnr_db": 84.290483, + "ref_absmax": 17.7401104, + "rel_max": 0.00121889732, + "scaled_max_abs": 0.00121889732 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 0.121889732, + "status": "pass", + "tap": "net.layer4.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0675608743, + "index": 10, + "metrics": { + "corr": 0.999999775, + "finite": true, + "max_abs": 0.00736927986, + "mean_abs": 0.000378536389, + "psnr_db": 84.0350689, + "ref_absmax": 10.9076147, + "rel_max": 0.000675608743, + "scaled_max_abs": 0.000675608743 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/zoo.DivisorPool_avgpool;1" + }, + "per_op_band_ratio": 0.0675608743, + "status": "pass", + "tap": "net.avgpool" + }, + { + "band_limit": 0.01, + "band_ratio": 43.7000311, + "index": 11, + "metrics": { + "corr": 0.999986321, + "finite": true, + "max_abs": 10.1041861, + "mean_abs": 0.746225692, + "psnr_db": 30.9043983, + "ref_absmax": 23.1216908, + "rel_max": 0.437000311, + "scaled_max_abs": 0.437000311 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "per_op_band_ratio": 43.7000311, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_limit": 0.01, + "band_ratio": 39.4418923, + "metrics": { + "corr": 0.999989607, + "finite": true, + "max_abs": 8.44853687, + "mean_abs": 0.657444579, + "psnr_db": 31.8620638, + "ref_absmax": 21.4202118, + "rel_max": 0.394418923, + "scaled_max_abs": 0.394418923 + }, + "per_op_band_ratio": 39.4418923, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 11, + "n_judged": 12, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 8.27203959e-06, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.2793459e-08, + "psnr_db": 164.013874, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "per_op_band_ratio": 8.27203959e-06, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0583793374, + "index": 1, + "metrics": { + "corr": 0.999999956, + "finite": true, + "max_abs": 0.00490903854, + "mean_abs": 7.63929271e-05, + "psnr_db": 93.8421926, + "ref_absmax": 8.40886307, + "rel_max": 0.000583793374, + "scaled_max_abs": 0.000583793374 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.MaxPool2d_maxpool;2" + }, + "per_op_band_ratio": 0.0583793374, + "status": "pass", + "tap": "net.maxpool" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0274063399, + "index": 2, + "metrics": { + "corr": 0.999999901, + "finite": true, + "max_abs": 0.00468415022, + "mean_abs": 0.000161921874, + "psnr_db": 95.5433913, + "ref_absmax": 17.0914841, + "rel_max": 0.000274063399, + "scaled_max_abs": 0.000274063399 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 0.0274063399, + "status": "pass", + "tap": "net.layer1.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0251223373, + "index": 3, + "metrics": { + "corr": 0.999999774, + "finite": true, + "max_abs": 0.00471332669, + "mean_abs": 0.000250456457, + "psnr_db": 91.9597734, + "ref_absmax": 18.7614975, + "rel_max": 0.000251223373, + "scaled_max_abs": 0.000251223373 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 0.0251223373, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0592551772, + "index": 4, + "metrics": { + "corr": 0.999999672, + "finite": true, + "max_abs": 0.00659561157, + "mean_abs": 0.000118937706, + "psnr_db": 92.4349706, + "ref_absmax": 11.1308613, + "rel_max": 0.000592551772, + "scaled_max_abs": 0.000592551772 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 0.0592551772, + "status": "pass", + "tap": "net.layer2.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0609826631, + "index": 5, + "metrics": { + "corr": 0.999999644, + "finite": true, + "max_abs": 0.00693821907, + "mean_abs": 0.000130281217, + "psnr_db": 92.2134029, + "ref_absmax": 11.3773632, + "rel_max": 0.000609826631, + "scaled_max_abs": 0.000609826631 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 0.0609826631, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0279544214, + "index": 6, + "metrics": { + "corr": 0.999999683, + "finite": true, + "max_abs": 0.00333499908, + "mean_abs": 8.74087713e-05, + "psnr_db": 95.9804734, + "ref_absmax": 11.930131, + "rel_max": 0.000279544214, + "scaled_max_abs": 0.000279544214 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 0.0279544214, + "status": "pass", + "tap": "net.layer3.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0620957223, + "index": 7, + "metrics": { + "corr": 0.999999592, + "finite": true, + "max_abs": 0.00431954861, + "mean_abs": 9.86995916e-05, + "psnr_db": 90.0056449, + "ref_absmax": 6.95627403, + "rel_max": 0.000620957223, + "scaled_max_abs": 0.000620957223 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 0.0620957223, + "status": "pass", + "tap": "net.layer3.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.15225034, + "index": 8, + "metrics": { + "corr": 0.999999218, + "finite": true, + "max_abs": 0.00736093521, + "mean_abs": 6.06419468e-05, + "psnr_db": 87.3266954, + "ref_absmax": 4.8347578, + "rel_max": 0.0015225034, + "scaled_max_abs": 0.0015225034 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 0.15225034, + "status": "pass", + "tap": "net.layer4.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0953705138, + "index": 9, + "metrics": { + "corr": 0.999999449, + "finite": true, + "max_abs": 0.0201879442, + "mean_abs": 0.000519985361, + "psnr_db": 85.3111292, + "ref_absmax": 21.1679096, + "rel_max": 0.000953705138, + "scaled_max_abs": 0.000953705138 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "per_op_band_ratio": 0.0953705138, + "status": "pass", + "tap": "net.layer4.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0629439398, + "index": 10, + "metrics": { + "corr": 0.999999746, + "finite": true, + "max_abs": 0.00673961639, + "mean_abs": 0.00037416964, + "psnr_db": 83.9774555, + "ref_absmax": 10.7073317, + "rel_max": 0.000629439398, + "scaled_max_abs": 0.000629439398 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/zoo.DivisorPool_avgpool;1" + }, + "per_op_band_ratio": 0.0629439398, + "status": "pass", + "tap": "net.avgpool" + }, + { + "band_limit": 0.01, + "band_ratio": 39.4418923, + "index": 11, + "metrics": { + "corr": 0.999989607, + "finite": true, + "max_abs": 8.44853687, + "mean_abs": 0.657444579, + "psnr_db": 31.8620638, + "ref_absmax": 21.4202118, + "rel_max": 0.394418923, + "scaled_max_abs": 0.394418923 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "per_op_band_ratio": 39.4418923, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp16", + "id": "resnet18__pool_divisor__litert_fp16", + "model": "resnet18", + "path": "litert", + "variant": "pool_divisor" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/resnet18__pool_divisor__litert_fp32.json b/bench/verdicts_calibrated4/resnet18__pool_divisor__litert_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..411b120236f137edc7b67378b751d54a707c55c8 --- /dev/null +++ b/bench/verdicts_calibrated4/resnet18__pool_divisor__litert_fp32.json @@ -0,0 +1,1386 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "at": "e2e", + "explained_by": null, + "nominal_band_ratio": 3949.50996, + "results": [ + { + "band_ratio": 3949.525, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 9703.74177, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 17632.4185, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 3949.44776, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 10378.8019, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 0.00827031415, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.07288361e-05, + "mean_abs": 7.98116647e-07, + "psnr_db": 145.782474, + "ref_absmax": 12.9727068, + "rel_max": 8.27031415e-07, + "scaled_max_abs": 8.27031415e-07 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 7, + "outputs": [ + "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models.res" + ] + }, + { + "inputs": 43, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 2, + "n_ops_total": 39, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "serving_default_output_0_output", + "basis": "earliest tap over band with in-band predecessors", + "index": 11, + "neighbourhood": [ + { + "band_ratio": 0.00823873558, + "index": 10, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/zoo.DivisorPool_avgpool;1" + }, + "status": "pass", + "tap": "net.avgpool" + }, + { + "band_ratio": 3943.7075, + "index": 11, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.fc" + } + ], + "shape": 224, + "tap": "net.fc" + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "e8b95c6292fe52a180dec1f04ae1c8a595b0b35a90e1c2aae89e5f6d76785870", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "8ae4ddf760e582726d59bbbbeecee66af355f74562c5a82a7bf4f0bdcc9c3344", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "fp32 per-tap band on near-zero probes", + "reason": "C3-2: per-tap fp32 checks gate without the near_zero probes; they are measured and reported per tap ('ungated_probes'); the output gates on all probes. C4-1: when the output has failed and no gated tap fails, they localise the first divergence (earliest tap over band on all probes)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D2", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 4367.91112, + "metrics": { + "corr": 0.999986557, + "finite": true, + "max_abs": 10.099349, + "mean_abs": 0.74607266, + "psnr_db": 30.9062591, + "ref_absmax": 23.1216908, + "rel_max": 0.436791112, + "scaled_max_abs": 0.436791112 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 11, + "n_judged": 12, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.06644368e-08, + "psnr_db": 164.113247, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.00112572895, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.38418579e-07, + "mean_abs": 4.66593688e-08, + "psnr_db": 130.397207, + "ref_absmax": 2.11790395, + "rel_max": 1.12572895e-07, + "scaled_max_abs": 1.12572895e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00645449252, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.96046448e-06, + "mean_abs": 1.10938487e-07, + "psnr_db": 152.355037, + "ref_absmax": 9.23459816, + "rel_max": 6.45449252e-07, + "scaled_max_abs": 6.45449252e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.MaxPool2d_maxpool;2" + }, + "status": "pass", + "tap": "net.maxpool", + "ungated_probes": { + "band_ratio": 0.00673134895, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-06, + "mean_abs": 1.13613737e-07, + "psnr_db": 141.814136, + "ref_absmax": 2.1251483, + "rel_max": 6.73134895e-07, + "scaled_max_abs": 6.73134895e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00659293132, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.04904175e-05, + "mean_abs": 2.76797242e-07, + "psnr_db": 150.327237, + "ref_absmax": 15.9116135, + "rel_max": 6.59293132e-07, + "scaled_max_abs": 6.59293132e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer1.0", + "ungated_probes": { + "band_ratio": 0.0159332416, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.7236681e-06, + "mean_abs": 4.39231993e-07, + "psnr_db": 133.714953, + "ref_absmax": 2.96466231, + "rel_max": 1.59332416e-06, + "scaled_max_abs": 1.59332416e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00760129794, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-05, + "mean_abs": 4.3881845e-07, + "psnr_db": 147.941588, + "ref_absmax": 18.8193054, + "rel_max": 7.60129794e-07, + "scaled_max_abs": 7.60129794e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer1.1", + "ungated_probes": { + "band_ratio": 0.0542455968, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.13384628e-05, + "mean_abs": 1.45986695e-06, + "psnr_db": 124.90685, + "ref_absmax": 3.93367648, + "rel_max": 5.42455968e-06, + "scaled_max_abs": 5.42455968e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00743807022, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.70227814e-06, + "mean_abs": 2.08361957e-07, + "psnr_db": 148.998972, + "ref_absmax": 11.699645, + "rel_max": 7.43807022e-07, + "scaled_max_abs": 7.43807022e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer2.0", + "ungated_probes": { + "band_ratio": 0.0452832923, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.257658e-05, + "mean_abs": 6.72263901e-07, + "psnr_db": 127.366784, + "ref_absmax": 2.77731133, + "rel_max": 4.52832923e-06, + "scaled_max_abs": 4.52832923e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00635868479, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.39097595e-06, + "mean_abs": 2.32858621e-07, + "psnr_db": 147.984134, + "ref_absmax": 11.623435, + "rel_max": 6.35868479e-07, + "scaled_max_abs": 6.35868479e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer2.1", + "ungated_probes": { + "band_ratio": 0.025440133, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.29938126e-05, + "mean_abs": 6.44654951e-07, + "psnr_db": 132.262737, + "ref_absmax": 5.10760403, + "rel_max": 2.5440133e-06, + "scaled_max_abs": 2.5440133e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00835868977, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.14440918e-05, + "mean_abs": 1.32668077e-07, + "psnr_db": 153.937558, + "ref_absmax": 13.6912508, + "rel_max": 8.35868977e-07, + "scaled_max_abs": 8.35868977e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer3.0", + "ungated_probes": { + "band_ratio": 0.0200272284, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.82148743e-06, + "mean_abs": 2.86842755e-07, + "psnr_db": 137.795591, + "ref_absmax": 4.40474701, + "rel_max": 2.00272284e-06, + "scaled_max_abs": 2.00272284e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0137398638, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.14440918e-05, + "mean_abs": 1.57584205e-07, + "psnr_db": 147.875315, + "ref_absmax": 8.32911587, + "rel_max": 1.37398638e-06, + "scaled_max_abs": 1.37398638e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer3.1", + "ungated_probes": { + "band_ratio": 0.0254933788, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.83476639e-06, + "mean_abs": 2.90260179e-07, + "psnr_db": 135.847165, + "ref_absmax": 3.85777283, + "rel_max": 2.54933788e-06, + "scaled_max_abs": 2.54933788e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0093705124, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.7220459e-06, + "mean_abs": 9.37541042e-08, + "psnr_db": 146.959324, + "ref_absmax": 6.10643864, + "rel_max": 9.3705124e-07, + "scaled_max_abs": 9.3705124e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer4.0", + "ungated_probes": { + "band_ratio": 0.0391439586, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.2552433e-06, + "mean_abs": 1.59796766e-07, + "psnr_db": 131.950164, + "ref_absmax": 2.10894442, + "rel_max": 3.91439586e-06, + "scaled_max_abs": 3.91439586e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0180089576, + "index": 9, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.19480896e-05, + "mean_abs": 8.41430526e-07, + "psnr_db": 140.19098, + "ref_absmax": 17.7401104, + "rel_max": 1.80089576e-06, + "scaled_max_abs": 1.80089576e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer4.1", + "ungated_probes": { + "band_ratio": 0.0258907294, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.0980835e-05, + "mean_abs": 4.58520137e-07, + "psnr_db": 135.358757, + "ref_absmax": 8.10360909, + "rel_max": 2.58907294e-06, + "scaled_max_abs": 2.58907294e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00874319768, + "index": 10, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-06, + "mean_abs": 5.04289741e-07, + "psnr_db": 141.468844, + "ref_absmax": 10.9076147, + "rel_max": 8.74319768e-07, + "scaled_max_abs": 8.74319768e-07 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/zoo.DivisorPool_avgpool;1" + }, + "status": "pass", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 0.00977243103, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.7220459e-06, + "mean_abs": 2.67882131e-07, + "psnr_db": 140.025969, + "ref_absmax": 5.85529423, + "rel_max": 9.77243103e-07, + "scaled_max_abs": 9.77243103e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 4367.91112, + "index": 11, + "metrics": { + "corr": 0.999987774, + "finite": true, + "max_abs": 10.099349, + "mean_abs": 0.788906332, + "psnr_db": 30.4857793, + "ref_absmax": 23.1216908, + "rel_max": 0.436791112, + "scaled_max_abs": 0.436791112 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.fc", + "ungated_probes": { + "band_ratio": 4345.77434, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999955758, + "finite": true, + "max_abs": 2.4373951, + "mean_abs": 0.446236959, + "psnr_db": 23.8731121, + "ref_absmax": 5.60865545, + "rel_max": 0.434577434, + "scaled_max_abs": 0.434577434 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 3943.7075, + "metrics": { + "corr": 0.999989862, + "finite": true, + "max_abs": 8.447505, + "mean_abs": 0.65731426, + "psnr_db": 31.8636629, + "ref_absmax": 21.4202118, + "rel_max": 0.39437075, + "scaled_max_abs": 0.39437075 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 11, + "n_judged": 12, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.08107465e-08, + "psnr_db": 164.245493, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.00112572895, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.38418579e-07, + "mean_abs": 4.66724468e-08, + "psnr_db": 130.436578, + "ref_absmax": 2.11790395, + "rel_max": 1.12572895e-07, + "scaled_max_abs": 1.12572895e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00623771454, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.24520874e-06, + "mean_abs": 1.06644131e-07, + "psnr_db": 152.000278, + "ref_absmax": 8.40886307, + "rel_max": 6.23771454e-07, + "scaled_max_abs": 6.23771454e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.MaxPool2d_maxpool;2" + }, + "status": "pass", + "tap": "net.maxpool", + "ungated_probes": { + "band_ratio": 0.00729666687, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.54972076e-06, + "mean_abs": 1.13617345e-07, + "psnr_db": 141.810399, + "ref_absmax": 2.1238749, + "rel_max": 7.29666687e-07, + "scaled_max_abs": 7.29666687e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00892771453, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.52587891e-05, + "mean_abs": 2.76290454e-07, + "psnr_db": 151.089531, + "ref_absmax": 17.0914841, + "rel_max": 8.92771453e-07, + "scaled_max_abs": 8.92771453e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer1.0", + "ungated_probes": { + "band_ratio": 0.0166910128, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.94718552e-06, + "mean_abs": 4.4247302e-07, + "psnr_db": 133.650346, + "ref_absmax": 2.96398163, + "rel_max": 1.66910128e-06, + "scaled_max_abs": 1.66910128e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00965797747, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.8119812e-05, + "mean_abs": 4.43970185e-07, + "psnr_db": 147.823488, + "ref_absmax": 18.7614975, + "rel_max": 9.65797747e-07, + "scaled_max_abs": 9.65797747e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer1.1", + "ungated_probes": { + "band_ratio": 0.0590532081, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.32458115e-05, + "mean_abs": 1.47861575e-06, + "psnr_db": 124.805612, + "ref_absmax": 3.93641806, + "rel_max": 5.90532081e-06, + "scaled_max_abs": 5.90532081e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00856783938, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-06, + "mean_abs": 2.11702523e-07, + "psnr_db": 148.365791, + "ref_absmax": 11.1308613, + "rel_max": 8.56783938e-07, + "scaled_max_abs": 8.56783938e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer2.0", + "ungated_probes": { + "band_ratio": 0.0419170828, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.16527081e-05, + "mean_abs": 6.78429001e-07, + "psnr_db": 127.302904, + "ref_absmax": 2.77994251, + "rel_max": 4.19170828e-06, + "scaled_max_abs": 4.19170828e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00880131902, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.00135803e-05, + "mean_abs": 2.35542557e-07, + "psnr_db": 147.570649, + "ref_absmax": 11.3773632, + "rel_max": 8.80131902e-07, + "scaled_max_abs": 8.80131902e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer2.1", + "ungated_probes": { + "band_ratio": 0.0260273841, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33216381e-05, + "mean_abs": 6.46717913e-07, + "psnr_db": 132.203977, + "ref_absmax": 5.11831617, + "rel_max": 2.60273841e-06, + "scaled_max_abs": 2.60273841e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0079938294, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-06, + "mean_abs": 1.35383347e-07, + "psnr_db": 152.516445, + "ref_absmax": 11.930131, + "rel_max": 7.9938294e-07, + "scaled_max_abs": 7.9938294e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer3.0", + "ungated_probes": { + "band_ratio": 0.0340740896, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.50203705e-05, + "mean_abs": 2.83523179e-07, + "psnr_db": 137.857746, + "ref_absmax": 4.4081502, + "rel_max": 3.40740896e-06, + "scaled_max_abs": 3.40740896e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0185079012, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.28746033e-05, + "mean_abs": 1.61410029e-07, + "psnr_db": 146.134532, + "ref_absmax": 6.95627403, + "rel_max": 1.85079012e-06, + "scaled_max_abs": 1.85079012e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer3.1", + "ungated_probes": { + "band_ratio": 0.0314673503, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.21593475e-05, + "mean_abs": 2.88037593e-07, + "psnr_db": 135.921122, + "ref_absmax": 3.86411548, + "rel_max": 3.14673503e-06, + "scaled_max_abs": 3.14673503e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0106023914, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.12599945e-06, + "mean_abs": 9.18378973e-08, + "psnr_db": 145.080615, + "ref_absmax": 4.8347578, + "rel_max": 1.06023914e-06, + "scaled_max_abs": 1.06023914e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer4.0", + "ungated_probes": { + "band_ratio": 0.039348373, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.34465027e-06, + "mean_abs": 1.56652073e-07, + "psnr_db": 131.993997, + "ref_absmax": 2.12071037, + "rel_max": 3.9348373e-06, + "scaled_max_abs": 3.9348373e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0144169069, + "index": 9, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.05175781e-05, + "mean_abs": 8.11505878e-07, + "psnr_db": 142.058081, + "ref_absmax": 21.1679096, + "rel_max": 1.44169069e-06, + "scaled_max_abs": 1.44169069e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer4.1", + "ungated_probes": { + "band_ratio": 0.0254560878, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.13384628e-05, + "mean_abs": 5.4595315e-07, + "psnr_db": 134.785056, + "ref_absmax": 8.38245964, + "rel_max": 2.54560878e-06, + "scaled_max_abs": 2.54560878e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00823873558, + "index": 10, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.82148743e-06, + "mean_abs": 4.51589127e-07, + "psnr_db": 142.600779, + "ref_absmax": 10.7073317, + "rel_max": 8.23873558e-07, + "scaled_max_abs": 8.23873558e-07 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/zoo.DivisorPool_avgpool;1" + }, + "status": "pass", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 0.00700521952, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.11272049e-06, + "mean_abs": 2.8953733e-07, + "psnr_db": 140.621209, + "ref_absmax": 5.87093735, + "rel_max": 7.00521952e-07, + "scaled_max_abs": 7.00521952e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 3943.7075, + "index": 11, + "metrics": { + "corr": 0.999990724, + "finite": true, + "max_abs": 8.447505, + "mean_abs": 0.691201663, + "psnr_db": 31.4683202, + "ref_absmax": 21.4202118, + "rel_max": 0.39437075, + "scaled_max_abs": 0.39437075 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.fc", + "ungated_probes": { + "band_ratio": 3924.76494, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999971065, + "finite": true, + "max_abs": 2.24703026, + "mean_abs": 0.420102437, + "psnr_db": 24.659288, + "ref_absmax": 5.72526073, + "rel_max": 0.392476494, + "scaled_max_abs": 0.392476494 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp32", + "id": "resnet18__pool_divisor__litert_fp32", + "model": "resnet18", + "path": "litert", + "variant": "pool_divisor" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/resnet18__pool_divisor__onnx_fp16.json b/bench/verdicts_calibrated4/resnet18__pool_divisor__onnx_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..d1a7a51588f399b212c5bf392b8a8e0e62a4d440 --- /dev/null +++ b/bench/verdicts_calibrated4/resnet18__pool_divisor__onnx_fp16.json @@ -0,0 +1,959 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "baseline": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "faithful_output_rel_max": 0.00057913326, + "output_band": 0.01, + "source": { + "bundle": "bundles/resnet18__clean__onnx_fp16.json", + "case": "resnet18__clean__onnx_fp16", + "digests": { + "192": { + "converted": "4f79899b2d94647c7a27acca5e2e048d6822448df0daac039062b5f5ac153fb2", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "441b70243dcc6533ecfb651f068a5b92f6a087252f2b8a01eebcf8972fcb76c6", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + } + } + }, + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "reason": "first divergence at tap 10 is beyond the hypothesis taps (first 3) \u2014 interface faults surface earlier", + "status": "not_evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "/net/avgpool/Div_output_0", + "basis": "earliest tap over band with in-band predecessors (fp16: the tap's faithful envelope gates, C3-1)", + "index": 10, + "neighbourhood": [ + { + "band_ratio": 0.131329292, + "index": 9, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer4.1" + }, + { + "band_ratio": 39.5493064, + "index": 10, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/Div_output_0" + }, + "status": "fail", + "tap": "net.avgpool" + }, + { + "band_ratio": 39.4428585, + "index": 11, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc" + } + ], + "shape": 224, + "tap": "net.avgpool" + }, + "fp16_floor": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "baseline": { + "bundle": "bundles/resnet18__clean__onnx_fp16.json", + "case": "resnet18__clean__onnx_fp16", + "digests": { + "192": { + "converted": "4f79899b2d94647c7a27acca5e2e048d6822448df0daac039062b5f5ac153fb2", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "441b70243dcc6533ecfb651f068a5b92f6a087252f2b8a01eebcf8972fcb76c6", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + } + }, + "envelopes_gate": true, + "faithful_output_rel_max": 0.00057913326, + "faithful_tap_rel_max": { + "net.avgpool": 0.000879095353, + "net.fc": 0.00057913326, + "net.layer1.0": 0.000506201414, + "net.layer1.1": 0.000535356941, + "net.layer2.0": 0.000613549091, + "net.layer2.1": 0.000629964887, + "net.layer3.0": 0.000475472973, + "net.layer3.1": 0.000795143564, + "net.layer4.0": 0.00179190277, + "net.layer4.1": 0.00158067242, + "net.maxpool": 0.000650593626, + "normalize": 0.000441313312 + }, + "floor": 0.01, + "k": 2.0, + "output_band": 0.01, + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used", + "tap_envelopes": { + "net.avgpool": 0.01, + "net.fc": 0.01, + "net.layer1.0": 0.01, + "net.layer1.1": 0.01, + "net.layer2.0": 0.01, + "net.layer2.1": 0.01, + "net.layer3.0": 0.01, + "net.layer3.1": 0.01, + "net.layer4.0": 0.01, + "net.layer4.1": 0.01, + "net.maxpool": 0.01, + "normalize": 0.01 + } + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "6c412f9e5d60a359edef788f5d2eefda0ebb0db417d0da5e1d6baf9f0e13d6d0", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "a474b5100486ad35a063941dece6bb05d8d569f992884e31630f00b388807d3d", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D2", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_limit": 0.01, + "band_ratio": 43.6947145, + "metrics": { + "corr": 0.999986161, + "finite": true, + "max_abs": 10.1029568, + "mean_abs": 0.74622017, + "psnr_db": 30.9043636, + "ref_absmax": 23.1216908, + "rel_max": 0.436947145, + "scaled_max_abs": 0.436947145 + }, + "per_op_band_ratio": 43.6947145, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 10, + "n_judged": 12, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 0.0441313312, + "index": 0, + "metrics": { + "corr": 0.999999966, + "finite": true, + "max_abs": 0.00508785248, + "mean_abs": 0.000405953078, + "psnr_db": 88.0186903, + "ref_absmax": 11.5288897, + "rel_max": 0.000441313312, + "scaled_max_abs": 0.000441313312 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "per_op_band_ratio": 0.0441313312, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0640982743, + "index": 1, + "metrics": { + "corr": 0.999999909, + "finite": true, + "max_abs": 0.00591921806, + "mean_abs": 0.000156664105, + "psnr_db": 90.9101891, + "ref_absmax": 9.23459816, + "rel_max": 0.000640982743, + "scaled_max_abs": 0.000640982743 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/maxpool/MaxPool_output_0" + }, + "per_op_band_ratio": 0.0640982743, + "status": "pass", + "tap": "net.maxpool" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0384577671, + "index": 2, + "metrics": { + "corr": 0.999999849, + "finite": true, + "max_abs": 0.00611925125, + "mean_abs": 0.000234829637, + "psnr_db": 92.5526304, + "ref_absmax": 15.9116135, + "rel_max": 0.000384577671, + "scaled_max_abs": 0.000384577671 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.0/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 0.0384577671, + "status": "pass", + "tap": "net.layer1.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0524185506, + "index": 3, + "metrics": { + "corr": 0.999999705, + "finite": true, + "max_abs": 0.00986480713, + "mean_abs": 0.000332652643, + "psnr_db": 90.3693126, + "ref_absmax": 18.8193054, + "rel_max": 0.000524185506, + "scaled_max_abs": 0.000524185506 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.1/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 0.0524185506, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0613549091, + "index": 4, + "metrics": { + "corr": 0.999999522, + "finite": true, + "max_abs": 0.00717830658, + "mean_abs": 0.000162431505, + "psnr_db": 90.8349286, + "ref_absmax": 11.699645, + "rel_max": 0.000613549091, + "scaled_max_abs": 0.000613549091 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.0/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 0.0613549091, + "status": "pass", + "tap": "net.layer2.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0555682387, + "index": 5, + "metrics": { + "corr": 0.999999447, + "finite": true, + "max_abs": 0.00645893812, + "mean_abs": 0.000178505766, + "psnr_db": 90.0284719, + "ref_absmax": 11.623435, + "rel_max": 0.000555682387, + "scaled_max_abs": 0.000555682387 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.1/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 0.0555682387, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0408548376, + "index": 6, + "metrics": { + "corr": 0.999999446, + "finite": true, + "max_abs": 0.00559353828, + "mean_abs": 0.000124051904, + "psnr_db": 94.267843, + "ref_absmax": 13.6912508, + "rel_max": 0.000408548376, + "scaled_max_abs": 0.000408548376 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.0/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 0.0408548376, + "status": "pass", + "tap": "net.layer3.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0652819754, + "index": 7, + "metrics": { + "corr": 0.99999922, + "finite": true, + "max_abs": 0.00543741137, + "mean_abs": 0.000147396744, + "psnr_db": 88.2202678, + "ref_absmax": 8.32911587, + "rel_max": 0.000652819754, + "scaled_max_abs": 0.000652819754 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.1/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 0.0652819754, + "status": "pass", + "tap": "net.layer3.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.141629438, + "index": 8, + "metrics": { + "corr": 0.999998468, + "finite": true, + "max_abs": 0.00864851475, + "mean_abs": 9.56121682e-05, + "psnr_db": 85.8471326, + "ref_absmax": 6.10643864, + "rel_max": 0.00141629438, + "scaled_max_abs": 0.00141629438 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.0/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 0.141629438, + "status": "pass", + "tap": "net.layer4.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.158067242, + "index": 9, + "metrics": { + "corr": 0.999998786, + "finite": true, + "max_abs": 0.0280413032, + "mean_abs": 0.000834968418, + "psnr_db": 79.9927633, + "ref_absmax": 17.7401104, + "rel_max": 0.00158067242, + "scaled_max_abs": 0.00158067242 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.1/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 0.158067242, + "status": "pass", + "tap": "net.layer4.1" + }, + { + "band_limit": 0.01, + "band_ratio": 43.7749438, + "index": 10, + "metrics": { + "corr": 0.999999307, + "finite": true, + "max_abs": 4.77480221, + "mean_abs": 0.232378618, + "psnr_db": 26.9763815, + "ref_absmax": 10.9076147, + "rel_max": 0.437749438, + "scaled_max_abs": 0.437749438 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/Div_output_0" + }, + "per_op_band_ratio": 43.7749438, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "wide_range", + "index": 22 + } + }, + { + "band_limit": 0.01, + "band_ratio": 43.6947145, + "index": 11, + "metrics": { + "corr": 0.999986161, + "finite": true, + "max_abs": 10.1029568, + "mean_abs": 0.74622017, + "psnr_db": 30.9043636, + "ref_absmax": 23.1216908, + "rel_max": 0.436947145, + "scaled_max_abs": 0.436947145 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "per_op_band_ratio": 43.6947145, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_limit": 0.01, + "band_ratio": 39.4428585, + "metrics": { + "corr": 0.999989388, + "finite": true, + "max_abs": 8.44874382, + "mean_abs": 0.657444651, + "psnr_db": 31.8621613, + "ref_absmax": 21.4202118, + "rel_max": 0.394428585, + "scaled_max_abs": 0.394428585 + }, + "per_op_band_ratio": 39.4428585, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 10, + "n_judged": 12, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 0.0439328023, + "index": 0, + "metrics": { + "corr": 0.999999965, + "finite": true, + "max_abs": 0.00506496429, + "mean_abs": 0.000406712054, + "psnr_db": 88.0749992, + "ref_absmax": 11.5288897, + "rel_max": 0.000439328023, + "scaled_max_abs": 0.000439328023 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "per_op_band_ratio": 0.0439328023, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0650593626, + "index": 1, + "metrics": { + "corr": 0.999999901, + "finite": true, + "max_abs": 0.00547075272, + "mean_abs": 0.000153226313, + "psnr_db": 90.3189603, + "ref_absmax": 8.40886307, + "rel_max": 0.000650593626, + "scaled_max_abs": 0.000650593626 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/maxpool/MaxPool_output_0" + }, + "per_op_band_ratio": 0.0650593626, + "status": "pass", + "tap": "net.maxpool" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0506201414, + "index": 2, + "metrics": { + "corr": 0.999999831, + "finite": true, + "max_abs": 0.0086517334, + "mean_abs": 0.000236261028, + "psnr_db": 93.1783463, + "ref_absmax": 17.0914841, + "rel_max": 0.000506201414, + "scaled_max_abs": 0.000506201414 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.0/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 0.0506201414, + "status": "pass", + "tap": "net.layer1.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0535356941, + "index": 3, + "metrics": { + "corr": 0.999999662, + "finite": true, + "max_abs": 0.0100440979, + "mean_abs": 0.000337286326, + "psnr_db": 90.2185942, + "ref_absmax": 18.7614975, + "rel_max": 0.000535356941, + "scaled_max_abs": 0.000535356941 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.1/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 0.0535356941, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0610469266, + "index": 4, + "metrics": { + "corr": 0.999999468, + "finite": true, + "max_abs": 0.00679504871, + "mean_abs": 0.000164360102, + "psnr_db": 90.3342488, + "ref_absmax": 11.1308613, + "rel_max": 0.000610469266, + "scaled_max_abs": 0.000610469266 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.0/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 0.0610469266, + "status": "pass", + "tap": "net.layer2.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0629964887, + "index": 5, + "metrics": { + "corr": 0.999999391, + "finite": true, + "max_abs": 0.00716733932, + "mean_abs": 0.000177770421, + "psnr_db": 89.8777049, + "ref_absmax": 11.3773632, + "rel_max": 0.000629964887, + "scaled_max_abs": 0.000629964887 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.1/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 0.0629964887, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0475472973, + "index": 6, + "metrics": { + "corr": 0.999999383, + "finite": true, + "max_abs": 0.00567245483, + "mean_abs": 0.000124959044, + "psnr_db": 93.0830986, + "ref_absmax": 11.930131, + "rel_max": 0.000475472973, + "scaled_max_abs": 0.000475472973 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.0/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 0.0475472973, + "status": "pass", + "tap": "net.layer3.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0795143564, + "index": 7, + "metrics": { + "corr": 0.999999133, + "finite": true, + "max_abs": 0.00553123653, + "mean_abs": 0.000148407515, + "psnr_db": 86.7217411, + "ref_absmax": 6.95627403, + "rel_max": 0.000795143564, + "scaled_max_abs": 0.000795143564 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.1/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 0.0795143564, + "status": "pass", + "tap": "net.layer3.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.179190277, + "index": 8, + "metrics": { + "corr": 0.999998311, + "finite": true, + "max_abs": 0.00866341591, + "mean_abs": 9.38812919e-05, + "psnr_db": 83.9777606, + "ref_absmax": 4.8347578, + "rel_max": 0.00179190277, + "scaled_max_abs": 0.00179190277 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.0/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 0.179190277, + "status": "pass", + "tap": "net.layer4.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.131329292, + "index": 9, + "metrics": { + "corr": 0.999998568, + "finite": true, + "max_abs": 0.0277996659, + "mean_abs": 0.000860812905, + "psnr_db": 81.1920091, + "ref_absmax": 21.1679096, + "rel_max": 0.00131329292, + "scaled_max_abs": 0.00131329292 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.1/relu_1/Relu_output_0" + }, + "per_op_band_ratio": 0.131329292, + "status": "pass", + "tap": "net.layer4.1" + }, + { + "band_limit": 0.01, + "band_ratio": 39.5493064, + "index": 10, + "metrics": { + "corr": 0.999999274, + "finite": true, + "max_abs": 4.23467541, + "mean_abs": 0.201012127, + "psnr_db": 28.1012827, + "ref_absmax": 10.7073317, + "rel_max": 0.395493064, + "scaled_max_abs": 0.395493064 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/Div_output_0" + }, + "per_op_band_ratio": 39.5493064, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 39.4428585, + "index": 11, + "metrics": { + "corr": 0.999989388, + "finite": true, + "max_abs": 8.44874382, + "mean_abs": 0.657444651, + "psnr_db": 31.8621613, + "ref_absmax": 21.4202118, + "rel_max": 0.394428585, + "scaled_max_abs": 0.394428585 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "per_op_band_ratio": 39.4428585, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp16", + "id": "resnet18__pool_divisor__onnx_fp16", + "model": "resnet18", + "path": "onnx", + "variant": "pool_divisor" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/resnet18__pool_divisor__onnx_fp32.json b/bench/verdicts_calibrated4/resnet18__pool_divisor__onnx_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..c62f1f5cecddfd4d6d6a9b33ccb3022db7b1843e --- /dev/null +++ b/bench/verdicts_calibrated4/resnet18__pool_divisor__onnx_fp32.json @@ -0,0 +1,1251 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "reason": "first divergence at tap 10 is beyond the hypothesis taps (first 3) \u2014 interface faults surface earlier", + "status": "not_evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "/net/avgpool/Div_output_0", + "basis": "earliest tap over band with in-band predecessors", + "index": 10, + "neighbourhood": [ + { + "band_ratio": 0.0117137368, + "index": 9, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer4.1" + }, + { + "band_ratio": 3950.61755, + "index": 10, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/Div_output_0" + }, + "status": "fail", + "tap": "net.avgpool" + }, + { + "band_ratio": 3943.70706, + "index": 11, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc" + } + ], + "shape": 224, + "tap": "net.avgpool" + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "3f120c9dc8bf61f137d9965f19cd02c561720a70343ff5c799b46c2f0297eb96", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "0d7fe87f23e8217bcf4cce65e5ea6d1406db70e91d17a1c40dc303824af4180b", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "fp32 per-tap band on near-zero probes", + "reason": "C3-2: per-tap fp32 checks gate without the near_zero probes; they are measured and reported per tap ('ungated_probes'); the output gates on all probes. C4-1: when the output has failed and no gated tap fails, they localise the first divergence (earliest tap over band on all probes)" + }, + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D2", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 4367.91154, + "metrics": { + "corr": 0.999986557, + "finite": true, + "max_abs": 10.09935, + "mean_abs": 0.746072467, + "psnr_db": 30.9062617, + "ref_absmax": 23.1216908, + "rel_max": 0.436791154, + "scaled_max_abs": 0.436791154 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 10, + "n_judged": 12, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.0, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 11.5288897, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.0, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 2.11790395, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00645449252, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.96046448e-06, + "mean_abs": 1.03648297e-07, + "psnr_db": 152.802431, + "ref_absmax": 9.23459816, + "rel_max": 6.45449252e-07, + "scaled_max_abs": 6.45449252e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/maxpool/MaxPool_output_0" + }, + "status": "pass", + "tap": "net.maxpool", + "ungated_probes": { + "band_ratio": 0.00701182182, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.49011612e-06, + "mean_abs": 9.31340386e-08, + "psnr_db": 142.770503, + "ref_absmax": 2.1251483, + "rel_max": 7.01182182e-07, + "scaled_max_abs": 7.01182182e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00599357393, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-06, + "mean_abs": 2.28623993e-07, + "psnr_db": 151.909626, + "ref_absmax": 15.9116135, + "rel_max": 5.99357393e-07, + "scaled_max_abs": 5.99357393e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer1.0", + "ungated_probes": { + "band_ratio": 0.0104546191, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.09944153e-06, + "mean_abs": 3.41602528e-07, + "psnr_db": 135.958902, + "ref_absmax": 2.96466231, + "rel_max": 1.04546191e-06, + "scaled_max_abs": 1.04546191e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00785467453, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.47819519e-05, + "mean_abs": 3.5602081e-07, + "psnr_db": 149.65463, + "ref_absmax": 18.8193054, + "rel_max": 7.85467453e-07, + "scaled_max_abs": 7.85467453e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer1.1", + "ungated_probes": { + "band_ratio": 0.0506847825, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.99377537e-05, + "mean_abs": 1.18350056e-06, + "psnr_db": 126.723322, + "ref_absmax": 3.93367648, + "rel_max": 5.06847825e-06, + "scaled_max_abs": 5.06847825e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00703050473, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.22544098e-06, + "mean_abs": 1.68181236e-07, + "psnr_db": 150.833466, + "ref_absmax": 11.699645, + "rel_max": 7.03050473e-07, + "scaled_max_abs": 7.03050473e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer2.0", + "ungated_probes": { + "band_ratio": 0.0344453479, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.56654549e-06, + "mean_abs": 5.28147274e-07, + "psnr_db": 129.430246, + "ref_absmax": 2.77731133, + "rel_max": 3.44453479e-06, + "scaled_max_abs": 3.44453479e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00635868479, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.39097595e-06, + "mean_abs": 1.87650168e-07, + "psnr_db": 149.83625, + "ref_absmax": 11.623435, + "rel_max": 6.35868479e-07, + "scaled_max_abs": 6.35868479e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer2.1", + "ungated_probes": { + "band_ratio": 0.024564899, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.25467777e-05, + "mean_abs": 4.99122864e-07, + "psnr_db": 134.432516, + "ref_absmax": 5.10760403, + "rel_max": 2.4564899e-06, + "scaled_max_abs": 2.4564899e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00696557481, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-06, + "mean_abs": 1.0565963e-07, + "psnr_db": 155.913392, + "ref_absmax": 13.6912508, + "rel_max": 6.96557481e-07, + "scaled_max_abs": 6.96557481e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer3.0", + "ungated_probes": { + "band_ratio": 0.0167795697, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.39097595e-06, + "mean_abs": 2.18991145e-07, + "psnr_db": 140.166624, + "ref_absmax": 4.40474701, + "rel_max": 1.67795697e-06, + "scaled_max_abs": 1.67795697e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0135967403, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.13248825e-05, + "mean_abs": 1.25842787e-07, + "psnr_db": 149.742917, + "ref_absmax": 8.32911587, + "rel_max": 1.35967403e-06, + "scaled_max_abs": 1.35967403e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer3.1", + "ungated_probes": { + "band_ratio": 0.0222487669, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.58306885e-06, + "mean_abs": 2.21315161e-07, + "psnr_db": 138.237007, + "ref_absmax": 3.85777283, + "rel_max": 2.22487669e-06, + "scaled_max_abs": 2.22487669e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00780876034, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 7.57780122e-08, + "psnr_db": 148.743144, + "ref_absmax": 6.10643864, + "rel_max": 7.80876034e-07, + "scaled_max_abs": 7.80876034e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer4.0", + "ungated_probes": { + "band_ratio": 0.0329261457, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.94394112e-06, + "mean_abs": 1.22103744e-07, + "psnr_db": 134.365311, + "ref_absmax": 2.10894442, + "rel_max": 3.29261457e-06, + "scaled_max_abs": 3.29261457e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0166650055, + "index": 9, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.95639038e-05, + "mean_abs": 6.72978724e-07, + "psnr_db": 142.2235, + "ref_absmax": 17.7401104, + "rel_max": 1.66650055e-06, + "scaled_max_abs": 1.66650055e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer4.1", + "ungated_probes": { + "band_ratio": 0.0167701315, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.3589859e-05, + "mean_abs": 3.47767329e-07, + "psnr_db": 137.798495, + "ref_absmax": 8.10360909, + "rel_max": 1.67701315e-06, + "scaled_max_abs": 1.67701315e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 4374.99863, + "index": 10, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.77207994, + "mean_abs": 0.257026782, + "psnr_db": 26.525628, + "ref_absmax": 10.9076147, + "rel_max": 0.437499863, + "scaled_max_abs": 0.437499863 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/Div_output_0" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 4374.99766, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.56168985, + "mean_abs": 0.0594764023, + "psnr_db": 27.9365015, + "ref_absmax": 5.85529423, + "rel_max": 0.437499766, + "scaled_max_abs": 0.437499766 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "wide_range", + "index": 22 + } + }, + { + "band_ratio": 4367.91154, + "index": 11, + "metrics": { + "corr": 0.999987774, + "finite": true, + "max_abs": 10.09935, + "mean_abs": 0.788906121, + "psnr_db": 30.4857819, + "ref_absmax": 23.1216908, + "rel_max": 0.436791154, + "scaled_max_abs": 0.436791154 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc", + "ungated_probes": { + "band_ratio": 4345.77264, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999955758, + "finite": true, + "max_abs": 2.43739414, + "mean_abs": 0.446236891, + "psnr_db": 23.8731134, + "ref_absmax": 5.60865545, + "rel_max": 0.434577264, + "scaled_max_abs": 0.434577264 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 3943.70706, + "metrics": { + "corr": 0.999989862, + "finite": true, + "max_abs": 8.44750404, + "mean_abs": 0.657314014, + "psnr_db": 31.8636664, + "ref_absmax": 21.4202118, + "rel_max": 0.394370706, + "scaled_max_abs": 0.394370706 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 10, + "n_judged": 12, + "n_taps": 12, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.0, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 11.5288897, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.0, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 2.11790395, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0068047795, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.7220459e-06, + "mean_abs": 9.92709198e-08, + "psnr_db": 152.4428, + "ref_absmax": 8.40886307, + "rel_max": 6.8047795e-07, + "scaled_max_abs": 6.8047795e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/maxpool/MaxPool_output_0" + }, + "status": "pass", + "tap": "net.maxpool", + "ungated_probes": { + "band_ratio": 0.00701602584, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.49011612e-06, + "mean_abs": 9.30897618e-08, + "psnr_db": 142.752775, + "ref_absmax": 2.1238749, + "rel_max": 7.01602584e-07, + "scaled_max_abs": 7.01602584e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00781175021, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33514404e-05, + "mean_abs": 2.25790913e-07, + "psnr_db": 152.750581, + "ref_absmax": 17.0914841, + "rel_max": 7.81175021e-07, + "scaled_max_abs": 7.81175021e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer1.0", + "ungated_probes": { + "band_ratio": 0.0117641475, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.48687172e-06, + "mean_abs": 3.42795438e-07, + "psnr_db": 135.932253, + "ref_absmax": 2.96398163, + "rel_max": 1.17641475e-06, + "scaled_max_abs": 1.17641475e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00914966287, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.71661377e-05, + "mean_abs": 3.56863543e-07, + "psnr_db": 149.674124, + "ref_absmax": 18.7614975, + "rel_max": 9.14966287e-07, + "scaled_max_abs": 9.14966287e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer1.1", + "ungated_probes": { + "band_ratio": 0.0502709361, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.97887421e-05, + "mean_abs": 1.19605396e-06, + "psnr_db": 126.659021, + "ref_absmax": 3.93641806, + "rel_max": 5.02709361e-06, + "scaled_max_abs": 5.02709361e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00642587954, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.15255737e-06, + "mean_abs": 1.70434883e-07, + "psnr_db": 150.271873, + "ref_absmax": 11.1308613, + "rel_max": 6.42587954e-07, + "scaled_max_abs": 6.42587954e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer2.0", + "ungated_probes": { + "band_ratio": 0.0439807755, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.22264028e-05, + "mean_abs": 5.2606399e-07, + "psnr_db": 129.494095, + "ref_absmax": 2.77994251, + "rel_max": 4.39807755e-06, + "scaled_max_abs": 4.39807755e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00670576688, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.62939453e-06, + "mean_abs": 1.88401909e-07, + "psnr_db": 149.546272, + "ref_absmax": 11.3773632, + "rel_max": 6.70576688e-07, + "scaled_max_abs": 6.70576688e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer2.1", + "ungated_probes": { + "band_ratio": 0.0258818171, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.32471323e-05, + "mean_abs": 4.93638685e-07, + "psnr_db": 134.503181, + "ref_absmax": 5.11831617, + "rel_max": 2.58818171e-06, + "scaled_max_abs": 2.58818171e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00559568058, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.67572021e-06, + "mean_abs": 1.07205076e-07, + "psnr_db": 154.591684, + "ref_absmax": 11.930131, + "rel_max": 5.59568058e-07, + "scaled_max_abs": 5.59568058e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer3.0", + "ungated_probes": { + "band_ratio": 0.0156848984, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.91413879e-06, + "mean_abs": 2.1738138e-07, + "psnr_db": 140.237236, + "ref_absmax": 4.4081502, + "rel_max": 1.56848984e-06, + "scaled_max_abs": 1.56848984e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.015423251, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.07288361e-05, + "mean_abs": 1.2900221e-07, + "psnr_db": 148.038478, + "ref_absmax": 6.95627403, + "rel_max": 1.5423251e-06, + "scaled_max_abs": 1.5423251e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer3.1", + "ungated_probes": { + "band_ratio": 0.0217494921, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.40425491e-06, + "mean_abs": 2.26300265e-07, + "psnr_db": 138.00117, + "ref_absmax": 3.86411548, + "rel_max": 2.17494921e-06, + "scaled_max_abs": 2.17494921e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00881477889, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.2617321e-06, + "mean_abs": 7.52994362e-08, + "psnr_db": 146.716468, + "ref_absmax": 4.8347578, + "rel_max": 8.81477889e-07, + "scaled_max_abs": 8.81477889e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer4.0", + "ungated_probes": { + "band_ratio": 0.0399104926, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.46385956e-06, + "mean_abs": 1.23341699e-07, + "psnr_db": 134.054085, + "ref_absmax": 2.12071037, + "rel_max": 3.99104926e-06, + "scaled_max_abs": 3.99104926e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0117137368, + "index": 9, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.47955322e-05, + "mean_abs": 6.80852735e-07, + "psnr_db": 143.465601, + "ref_absmax": 21.1679096, + "rel_max": 1.17137368e-06, + "scaled_max_abs": 1.17137368e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer4.1", + "ungated_probes": { + "band_ratio": 0.0187720871, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.57356262e-05, + "mean_abs": 4.35400728e-07, + "psnr_db": 136.707345, + "ref_absmax": 8.38245964, + "rel_max": 1.87720871e-06, + "scaled_max_abs": 1.87720871e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 3950.61755, + "index": 10, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.23005724, + "mean_abs": 0.221015221, + "psnr_db": 27.6677127, + "ref_absmax": 10.7073317, + "rel_max": 0.395061755, + "scaled_max_abs": 0.395061755 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/Div_output_0" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_probes": { + "band_ratio": 3950.61446, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.319381, + "mean_abs": 0.0607968326, + "psnr_db": 28.6796619, + "ref_absmax": 5.87093735, + "rel_max": 0.395061446, + "scaled_max_abs": 0.395061446 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 3943.70706, + "index": 11, + "metrics": { + "corr": 0.999990724, + "finite": true, + "max_abs": 8.44750404, + "mean_abs": 0.691201399, + "psnr_db": 31.4683237, + "ref_absmax": 21.4202118, + "rel_max": 0.394370706, + "scaled_max_abs": 0.394370706 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc", + "ungated_probes": { + "band_ratio": 3924.7641, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999971065, + "finite": true, + "max_abs": 2.24702978, + "mean_abs": 0.420102315, + "psnr_db": 24.659291, + "ref_absmax": 5.72526073, + "rel_max": 0.39247641, + "scaled_max_abs": 0.39247641 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp32", + "id": "resnet18__pool_divisor__onnx_fp32", + "model": "resnet18", + "path": "onnx", + "variant": "pool_divisor" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/tinyvit__baked_shape__coreml_fp16.json b/bench/verdicts_calibrated4/tinyvit__baked_shape__coreml_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..757656001ab09448c9478543f8a3c4930af33b02 --- /dev/null +++ b/bench/verdicts_calibrated4/tinyvit__baked_shape__coreml_fp16.json @@ -0,0 +1,812 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "baseline": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "faithful_output_rel_max": 0.00402825966, + "output_band": 0.01, + "source": { + "bundle": "bundles/tinyvit__clean__coreml_fp16.json", + "case": "tinyvit__clean__coreml_fp16", + "digests": { + "192": { + "converted": "0035167ec9cc06c61986ca2249819ae1510c5a12aad7eaf510988220c7579aa5", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "5430fd6da54612ccdc73a3180116c0a8d19224ecfcc7ca2d7ce9df494c8307f9", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + } + } + }, + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [ + "inputs[0]: dtype float16 (declared float32)", + "outputs[0]: dtype float16 (declared float32)" + ], + "status": "precision_narrowing" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "margin": { + "clear_margin": true, + "failing_shape": 192, + "locations_over_margin": [], + "margin": 0.707106781, + "n_locations": 10, + "nominal_output_band_ratio": 0.402825966, + "nominal_output_judgeable": true, + "rule": "C4-2 (b1)", + "scope": "every gated location of the nominal shape", + "worst_location": { + "band_ratio": 0.477296124, + "index": 6, + "location": "net.norm" + } + }, + "status": "flag" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "_inversed_input_cast_fp16", + "basis": "nominal shape 224 inside band with a clear margin at every gated location (worst net.norm at ratio 0.477 <= 0.7071); shape 192 over band", + "index": 7, + "neighbourhood": [ + { + "band_ratio": 0.5, + "index": 6, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "status": "pass", + "tap": "net.norm" + }, + { + "band_ratio": 26.5129469, + "index": 7, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_cast_fp16" + }, + "status": "fail", + "tap": "net.pool" + }, + { + "band_ratio": 25.8957821, + "index": 8, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head" + } + ], + "shape": 192, + "tap": "net.pool" + }, + "fp16_floor": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "baseline": { + "bundle": "bundles/tinyvit__clean__coreml_fp16.json", + "case": "tinyvit__clean__coreml_fp16", + "digests": { + "192": { + "converted": "0035167ec9cc06c61986ca2249819ae1510c5a12aad7eaf510988220c7579aa5", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "5430fd6da54612ccdc73a3180116c0a8d19224ecfcc7ca2d7ce9df494c8307f9", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + } + }, + "envelopes_gate": true, + "faithful_output_rel_max": 0.00402825966, + "faithful_tap_rel_max": { + "net.blocks.0": 0.0144004222, + "net.blocks.1": 0.0145278434, + "net.blocks.2": 0.0134661694, + "net.head": 0.00402825966, + "net.norm": 0.00711003077, + "net.patch_embed": 0.0147449007, + "net.pool": 0.00501150413, + "net.pos_embed": 0.0145772783, + "normalize": 0.00117570499 + }, + "floor": 0.01, + "k": 2.0, + "output_band": 0.01, + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used", + "tap_envelopes": { + "net.blocks.0": 0.0288008444, + "net.blocks.1": 0.0290556867, + "net.blocks.2": 0.0269323389, + "net.head": 0.01, + "net.norm": 0.0142200615, + "net.patch_embed": 0.0294898015, + "net.pool": 0.0100230083, + "net.pos_embed": 0.0291545566, + "normalize": 0.01 + } + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "6d7d73d29f504ef1bb18482838321a593a4c6978aa450c9f00f0519b7a51ff18", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "5430fd6da54612ccdc73a3180116c0a8d19224ecfcc7ca2d7ce9df494c8307f9", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D6", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.96875, + "band_limit": 0.01, + "band_ratio": 25.8957821, + "metrics": { + "corr": 0.995913585, + "finite": true, + "max_abs": 0.327858329, + "mean_abs": 0.062553372, + "psnr_db": 28.530925, + "ref_absmax": 1.26606846, + "rel_max": 0.258957821, + "scaled_max_abs": 0.258957821 + }, + "per_op_band_ratio": 25.8957821, + "status": "fail", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + "first_fail_index": 7, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 0.117570499, + "index": 0, + "metrics": { + "corr": 0.999999914, + "finite": true, + "max_abs": 0.0135545731, + "mean_abs": 0.000674526699, + "psnr_db": 83.5827466, + "ref_absmax": 11.5288897, + "rel_max": 0.00117570499, + "scaled_max_abs": 0.00117570499 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "per_op_band_ratio": 0.117570499, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.0294898015, + "band_ratio": 0.5, + "index": 1, + "metrics": { + "corr": 0.999991394, + "finite": true, + "max_abs": 0.159186363, + "mean_abs": 0.00251833586, + "psnr_db": 73.8085669, + "ref_absmax": 10.7960281, + "rel_max": 0.0147449007, + "scaled_max_abs": 0.0147449007 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_5_cast_fp16" + }, + "per_op_band_ratio": 1.47449007, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_limit": 0.0291545566, + "band_ratio": 0.5, + "index": 2, + "metrics": { + "corr": 0.999992261, + "finite": true, + "max_abs": 0.157061577, + "mean_abs": 0.00252916549, + "psnr_db": 73.7102173, + "ref_absmax": 10.7744102, + "rel_max": 0.0145772783, + "scaled_max_abs": 0.0145772783 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5_cast_fp16" + }, + "per_op_band_ratio": 1.45772783, + "status": "pass", + "tap": "net.pos_embed" + }, + { + "band_limit": 0.0288008444, + "band_ratio": 0.5, + "index": 3, + "metrics": { + "corr": 0.999992443, + "finite": true, + "max_abs": 0.15436554, + "mean_abs": 0.00271046309, + "psnr_db": 73.5671904, + "ref_absmax": 10.7195148, + "rel_max": 0.0144004222, + "scaled_max_abs": 0.0144004222 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_17_cast_fp16" + }, + "per_op_band_ratio": 1.44004222, + "status": "pass", + "tap": "net.blocks.0" + }, + { + "band_limit": 0.0290556867, + "band_ratio": 0.5, + "index": 4, + "metrics": { + "corr": 0.999992728, + "finite": true, + "max_abs": 0.159858704, + "mean_abs": 0.00289978764, + "psnr_db": 73.4913103, + "ref_absmax": 11.0036087, + "rel_max": 0.0145278434, + "scaled_max_abs": 0.0145278434 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_29_cast_fp16" + }, + "per_op_band_ratio": 1.45278434, + "status": "pass", + "tap": "net.blocks.1" + }, + { + "band_limit": 0.0269323389, + "band_ratio": 0.5, + "index": 5, + "metrics": { + "corr": 0.999992831, + "finite": true, + "max_abs": 0.152815819, + "mean_abs": 0.00305746017, + "psnr_db": 73.5262034, + "ref_absmax": 11.3481283, + "rel_max": 0.0134661694, + "scaled_max_abs": 0.0134661694 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_41_cast_fp16" + }, + "per_op_band_ratio": 1.34661694, + "status": "pass", + "tap": "net.blocks.2" + }, + { + "band_limit": 0.0142200615, + "band_ratio": 0.5, + "index": 6, + "metrics": { + "corr": 0.999993473, + "finite": true, + "max_abs": 0.0292298794, + "mean_abs": 0.00270321117, + "psnr_db": 66.7353234, + "ref_absmax": 4.11107635, + "rel_max": 0.00711003077, + "scaled_max_abs": 0.00711003077 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "per_op_band_ratio": 0.711003077, + "status": "pass", + "tap": "net.norm" + }, + { + "band_limit": 0.0100230083, + "band_ratio": 26.5129469, + "index": 7, + "metrics": { + "corr": 0.999997178, + "finite": true, + "max_abs": 0.588817835, + "mean_abs": 0.111394346, + "psnr_db": 28.8710149, + "ref_absmax": 2.21577096, + "rel_max": 0.265739485, + "scaled_max_abs": 0.265739485 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_cast_fp16" + }, + "per_op_band_ratio": 26.5739485, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_limit": 0.01, + "band_ratio": 25.8957821, + "index": 8, + "metrics": { + "corr": 0.995913585, + "finite": true, + "max_abs": 0.327858329, + "mean_abs": 0.062553372, + "psnr_db": 28.530925, + "ref_absmax": 1.26606846, + "rel_max": 0.258957821, + "scaled_max_abs": 0.258957821 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "per_op_band_ratio": 25.8957821, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_limit": 0.01, + "band_ratio": 0.402825966, + "metrics": { + "corr": 0.999995129, + "finite": true, + "max_abs": 0.00541609526, + "mean_abs": 0.000663621235, + "psnr_db": 67.1899789, + "ref_absmax": 1.34452486, + "rel_max": 0.00402825966, + "scaled_max_abs": 0.00402825966 + }, + "per_op_band_ratio": 0.402825966, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 0.116213884, + "index": 0, + "metrics": { + "corr": 0.999999912, + "finite": true, + "max_abs": 0.0133981705, + "mean_abs": 0.000679588388, + "psnr_db": 83.6184843, + "ref_absmax": 11.5288897, + "rel_max": 0.00116213884, + "scaled_max_abs": 0.00116213884 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "per_op_band_ratio": 0.116213884, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.0294898015, + "band_ratio": 0.277047602, + "index": 1, + "metrics": { + "corr": 0.999991415, + "finite": true, + "max_abs": 0.0969877243, + "mean_abs": 0.00250771621, + "psnr_db": 74.367951, + "ref_absmax": 11.871088, + "rel_max": 0.00817007877, + "scaled_max_abs": 0.00817007877 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_5_cast_fp16" + }, + "per_op_band_ratio": 0.817007877, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_limit": 0.0291545566, + "band_ratio": 0.295111447, + "index": 2, + "metrics": { + "corr": 0.999992187, + "finite": true, + "max_abs": 0.0995883942, + "mean_abs": 0.00251680124, + "psnr_db": 74.29315, + "ref_absmax": 11.574873, + "rel_max": 0.00860384338, + "scaled_max_abs": 0.00860384338 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5_cast_fp16" + }, + "per_op_band_ratio": 0.860384338, + "status": "pass", + "tap": "net.pos_embed" + }, + { + "band_limit": 0.0288008444, + "band_ratio": 0.290848015, + "index": 3, + "metrics": { + "corr": 0.999992439, + "finite": true, + "max_abs": 0.0996370316, + "mean_abs": 0.00269992927, + "psnr_db": 74.3779895, + "ref_absmax": 11.8945894, + "rel_max": 0.00837666842, + "scaled_max_abs": 0.00837666842 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_17_cast_fp16" + }, + "per_op_band_ratio": 0.837666842, + "status": "pass", + "tap": "net.blocks.0" + }, + { + "band_limit": 0.0290556867, + "band_ratio": 0.28715946, + "index": 4, + "metrics": { + "corr": 0.999992743, + "finite": true, + "max_abs": 0.101405144, + "mean_abs": 0.00289164657, + "psnr_db": 74.2749382, + "ref_absmax": 12.1536217, + "rel_max": 0.0083436153, + "scaled_max_abs": 0.0083436153 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_29_cast_fp16" + }, + "per_op_band_ratio": 0.83436153, + "status": "pass", + "tap": "net.blocks.1" + }, + { + "band_limit": 0.0269323389, + "band_ratio": 0.304064309, + "index": 5, + "metrics": { + "corr": 0.999992873, + "finite": true, + "max_abs": 0.102446556, + "mean_abs": 0.00303753381, + "psnr_db": 74.1588749, + "ref_absmax": 12.5100155, + "rel_max": 0.00818916301, + "scaled_max_abs": 0.00818916301 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_41_cast_fp16" + }, + "per_op_band_ratio": 0.818916301, + "status": "pass", + "tap": "net.blocks.2" + }, + { + "band_limit": 0.0142200615, + "band_ratio": 0.477296124, + "index": 6, + "metrics": { + "corr": 0.999993569, + "finite": true, + "max_abs": 0.0284955502, + "mean_abs": 0.00267585862, + "psnr_db": 66.9877398, + "ref_absmax": 4.19843721, + "rel_max": 0.00678718025, + "scaled_max_abs": 0.00678718025 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "per_op_band_ratio": 0.678718025, + "status": "pass", + "tap": "net.norm" + }, + { + "band_limit": 0.0100230083, + "band_ratio": 0.477248377, + "index": 7, + "metrics": { + "corr": 0.99999748, + "finite": true, + "max_abs": 0.0106277466, + "mean_abs": 0.000813371892, + "psnr_db": 69.9111582, + "ref_absmax": 2.22176766, + "rel_max": 0.00478346443, + "scaled_max_abs": 0.00478346443 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_cast_fp16" + }, + "per_op_band_ratio": 0.478346443, + "status": "pass", + "tap": "net.pool" + }, + { + "band_limit": 0.01, + "band_ratio": 0.402825966, + "index": 8, + "metrics": { + "corr": 0.999995129, + "finite": true, + "max_abs": 0.00541609526, + "mean_abs": 0.000663621235, + "psnr_db": 67.1899789, + "ref_absmax": 1.34452486, + "rel_max": 0.00402825966, + "scaled_max_abs": 0.00402825966 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "per_op_band_ratio": 0.402825966, + "status": "pass", + "tap": "net.head" + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp16", + "id": "tinyvit__baked_shape__coreml_fp16", + "model": "tinyvit", + "path": "coreml", + "variant": "baked_shape" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/tinyvit__baked_shape__coreml_fp32.json b/bench/verdicts_calibrated4/tinyvit__baked_shape__coreml_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..ecc64ba9cb2087d17e613a476e52ac231f2a4762 --- /dev/null +++ b/bench/verdicts_calibrated4/tinyvit__baked_shape__coreml_fp32.json @@ -0,0 +1,1017 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "margin": { + "clear_margin": true, + "failing_shape": 192, + "locations_over_margin": [], + "margin": 0.707106781, + "n_locations": 10, + "nominal_output_band_ratio": 0.00354651054, + "nominal_output_judgeable": true, + "rule": "C4-2 (b1)", + "scope": "every gated location of the nominal shape", + "worst_location": { + "band_ratio": 0.00567621292, + "index": 7, + "location": "net.pool" + } + }, + "status": "flag" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "_inversed_input", + "basis": "nominal shape 224 inside band with a clear margin at every gated location (worst net.pool at ratio 0.00568 <= 0.7071); shape 192 over band", + "index": 7, + "neighbourhood": [ + { + "band_ratio": 0.0046395359, + "index": 6, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x" + }, + "status": "pass", + "tap": "net.norm" + }, + { + "band_ratio": 2653.06025, + "index": 7, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input" + }, + "status": "fail", + "tap": "net.pool" + }, + { + "band_ratio": 2415.80287, + "index": 8, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head" + } + ], + "shape": 192, + "tap": "net.pool" + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "82cd52d13c4865c43154b040f259573bb88e85289fad94fa1799de1c6a707f26", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "49363dac389cca779b428b1ff97c1abbc4d133fd0d765733adc74d7dcec74e73", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "fp32 per-tap band on near-zero probes", + "reason": "C3-2: per-tap fp32 checks gate without the near_zero probes; they are measured and reported per tap ('ungated_probes'); the output gates on all probes. C4-1: when the output has failed and no gated tap fails, they localise the first divergence (earliest tap over band on all probes)" + }, + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D6", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.96875, + "band_ratio": 2575.73335, + "metrics": { + "corr": 0.995905825, + "finite": true, + "max_abs": 0.326105475, + "mean_abs": 0.062499685, + "psnr_db": 28.5341126, + "ref_absmax": 1.26606846, + "rel_max": 0.257573335, + "scaled_max_abs": 0.257573335 + }, + "status": "fail", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + "first_fail_index": 7, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.06644368e-08, + "psnr_db": 164.113247, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.00112572895, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.38418579e-07, + "mean_abs": 4.66593688e-08, + "psnr_db": 130.397207, + "ref_absmax": 2.11790395, + "rel_max": 1.12572895e-07, + "scaled_max_abs": 1.12572895e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00441678321, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 9.88855124e-08, + "psnr_db": 161.464618, + "ref_absmax": 10.7960281, + "rel_max": 4.41678321e-07, + "scaled_max_abs": 4.41678321e-07 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_5" + }, + "status": "pass", + "tap": "net.patch_embed", + "ungated_probes": { + "band_ratio": 0.00474265635, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.1920929e-06, + "mean_abs": 1.5130268e-07, + "psnr_db": 147.535676, + "ref_absmax": 2.51355529, + "rel_max": 4.74265635e-07, + "scaled_max_abs": 4.74265635e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00442564509, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 1.02395989e-07, + "psnr_db": 161.205396, + "ref_absmax": 10.7744102, + "rel_max": 4.42564509e-07, + "scaled_max_abs": 4.42564509e-07 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5" + }, + "status": "pass", + "tap": "net.pos_embed", + "ungated_probes": { + "band_ratio": 0.00372250373, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-06, + "mean_abs": 1.53844187e-07, + "psnr_db": 150.879134, + "ref_absmax": 3.84287453, + "rel_max": 3.72250373e-07, + "scaled_max_abs": 3.72250373e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00444830914, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 1.32210313e-07, + "psnr_db": 160.202754, + "ref_absmax": 10.7195148, + "rel_max": 4.44830914e-07, + "scaled_max_abs": 4.44830914e-07 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_17" + }, + "status": "pass", + "tap": "net.blocks.0", + "ungated_probes": { + "band_ratio": 0.00319021497, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-06, + "mean_abs": 1.80076566e-07, + "psnr_db": 150.836238, + "ref_absmax": 4.48405981, + "rel_max": 3.19021497e-07, + "scaled_max_abs": 3.19021497e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00520015392, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.7220459e-06, + "mean_abs": 1.59003997e-07, + "psnr_db": 159.358395, + "ref_absmax": 11.0036087, + "rel_max": 5.20015392e-07, + "scaled_max_abs": 5.20015392e-07 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_29" + }, + "status": "pass", + "tap": "net.blocks.1", + "ungated_probes": { + "band_ratio": 0.00405042578, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.90734863e-06, + "mean_abs": 2.06149556e-07, + "psnr_db": 150.084957, + "ref_absmax": 4.70900774, + "rel_max": 4.05042578e-07, + "scaled_max_abs": 4.05042578e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00504228163, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.7220459e-06, + "mean_abs": 1.80415682e-07, + "psnr_db": 158.848975, + "ref_absmax": 11.3481283, + "rel_max": 5.04228163e-07, + "scaled_max_abs": 5.04228163e-07 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_41" + }, + "status": "pass", + "tap": "net.blocks.2", + "ungated_probes": { + "band_ratio": 0.00408237123, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.90734863e-06, + "mean_abs": 2.27423571e-07, + "psnr_db": 149.592356, + "ref_absmax": 4.67215872, + "rel_max": 4.08237123e-07, + "scaled_max_abs": 4.08237123e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0046395359, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.90734863e-06, + "mean_abs": 1.87305873e-07, + "psnr_db": 150.048256, + "ref_absmax": 4.11107635, + "rel_max": 4.6395359e-07, + "scaled_max_abs": 4.6395359e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x" + }, + "status": "pass", + "tap": "net.norm", + "ungated_probes": { + "band_ratio": 0.00427604688, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.1920929e-06, + "mean_abs": 1.49934592e-07, + "psnr_db": 148.718285, + "ref_absmax": 2.7878387, + "rel_max": 4.27604688e-07, + "scaled_max_abs": 4.27604688e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 2653.06025, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.536076427, + "mean_abs": 0.0974075088, + "psnr_db": 29.4905999, + "ref_absmax": 2.0205965, + "rel_max": 0.265306025, + "scaled_max_abs": 0.265306025 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input" + }, + "status": "fail", + "tap": "net.pool", + "ungated_probes": { + "band_ratio": 2653.06339, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.587858081, + "mean_abs": 0.208437776, + "psnr_db": 24.3781895, + "ref_absmax": 2.21577096, + "rel_max": 0.265306339, + "scaled_max_abs": 0.265306339 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 11 + } + }, + { + "band_ratio": 2415.80287, + "index": 8, + "metrics": { + "corr": 0.994974047, + "finite": true, + "max_abs": 0.305857182, + "mean_abs": 0.0540759164, + "psnr_db": 28.5835846, + "ref_absmax": 1.26606846, + "rel_max": 0.241580287, + "scaled_max_abs": 0.241580287 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "ungated_probes": { + "band_ratio": 2922.23801, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.998335934, + "finite": true, + "max_abs": 0.326105475, + "mean_abs": 0.121466065, + "psnr_db": 20.3026905, + "ref_absmax": 1.11594427, + "rel_max": 0.292223801, + "scaled_max_abs": 0.292223801 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.00354651054, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-07, + "mean_abs": 7.67468009e-08, + "psnr_db": 147.311609, + "ref_absmax": 1.34452486, + "rel_max": 3.54651054e-07, + "scaled_max_abs": 3.54651054e-07 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.08107465e-08, + "psnr_db": 164.245493, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.00112572895, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.38418579e-07, + "mean_abs": 4.66724468e-08, + "psnr_db": 130.436578, + "ref_absmax": 2.11790395, + "rel_max": 1.12572895e-07, + "scaled_max_abs": 1.12572895e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00321343524, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.81469727e-06, + "mean_abs": 1.00363271e-07, + "psnr_db": 161.89068, + "ref_absmax": 11.871088, + "rel_max": 3.21343524e-07, + "scaled_max_abs": 3.21343524e-07 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_5" + }, + "status": "pass", + "tap": "net.patch_embed", + "ungated_probes": { + "band_ratio": 0.0066369653, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.66893005e-06, + "mean_abs": 1.54185654e-07, + "psnr_db": 147.371009, + "ref_absmax": 2.51459813, + "rel_max": 6.6369653e-07, + "scaled_max_abs": 6.6369653e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00411958869, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 1.03226907e-07, + "psnr_db": 161.675356, + "ref_absmax": 11.574873, + "rel_max": 4.11958869e-07, + "scaled_max_abs": 4.11958869e-07 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5" + }, + "status": "pass", + "tap": "net.pos_embed", + "ungated_probes": { + "band_ratio": 0.00449246908, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.66893005e-06, + "mean_abs": 1.56293509e-07, + "psnr_db": 150.563555, + "ref_absmax": 3.71495056, + "rel_max": 4.49246908e-07, + "scaled_max_abs": 4.49246908e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00400885765, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 1.33781857e-07, + "psnr_db": 160.884376, + "ref_absmax": 11.8945894, + "rel_max": 4.00885765e-07, + "scaled_max_abs": 4.00885765e-07 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_17" + }, + "status": "pass", + "tap": "net.blocks.0", + "ungated_probes": { + "band_ratio": 0.00398309722, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.78813934e-06, + "mean_abs": 1.83840888e-07, + "psnr_db": 150.529679, + "ref_absmax": 4.48931885, + "rel_max": 3.98309722e-07, + "scaled_max_abs": 3.98309722e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00392341617, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 1.61500538e-07, + "psnr_db": 160.020088, + "ref_absmax": 12.1536217, + "rel_max": 3.92341617e-07, + "scaled_max_abs": 3.92341617e-07 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_29" + }, + "status": "pass", + "tap": "net.blocks.1", + "ungated_probes": { + "band_ratio": 0.00354015993, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.66893005e-06, + "mean_abs": 2.11576616e-07, + "psnr_db": 149.780509, + "ref_absmax": 4.7142787, + "rel_max": 3.54015993e-07, + "scaled_max_abs": 3.54015993e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00381164323, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 1.83644799e-07, + "psnr_db": 159.321607, + "ref_absmax": 12.5100155, + "rel_max": 3.81164323e-07, + "scaled_max_abs": 3.81164323e-07 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_41" + }, + "status": "pass", + "tap": "net.blocks.2", + "ungated_probes": { + "band_ratio": 0.00407781532, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.90734863e-06, + "mean_abs": 2.33471596e-07, + "psnr_db": 149.249265, + "ref_absmax": 4.67737865, + "rel_max": 4.07781532e-07, + "scaled_max_abs": 4.07781532e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00340724751, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-06, + "mean_abs": 1.89736057e-07, + "psnr_db": 150.127772, + "ref_absmax": 4.19843721, + "rel_max": 3.40724751e-07, + "scaled_max_abs": 3.40724751e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x" + }, + "status": "pass", + "tap": "net.norm", + "ungated_probes": { + "band_ratio": 0.00435673618, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.1920929e-06, + "mean_abs": 1.54496742e-07, + "psnr_db": 148.333414, + "ref_absmax": 2.73620629, + "rel_max": 4.35673618e-07, + "scaled_max_abs": 4.35673618e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00567621292, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.1920929e-06, + "mean_abs": 8.24410823e-08, + "psnr_db": 149.965892, + "ref_absmax": 2.10015535, + "rel_max": 5.67621292e-07, + "scaled_max_abs": 5.67621292e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input" + }, + "status": "pass", + "tap": "net.pool", + "ungated_probes": { + "band_ratio": 0.00536551555, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.1920929e-06, + "mean_abs": 1.53158908e-07, + "psnr_db": 145.338985, + "ref_absmax": 2.22176766, + "rel_max": 5.36551555e-07, + "scaled_max_abs": 5.36551555e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00354651054, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-07, + "mean_abs": 7.03082021e-08, + "psnr_db": 146.820221, + "ref_absmax": 1.34452486, + "rel_max": 3.54651054e-07, + "scaled_max_abs": 3.54651054e-07 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "pass", + "tap": "net.head", + "ungated_probes": { + "band_ratio": 0.00399391179, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.47034836e-07, + "mean_abs": 1.21816993e-07, + "psnr_db": 140.041035, + "ref_absmax": 1.11929071, + "rel_max": 3.99391179e-07, + "scaled_max_abs": 3.99391179e-07 + }, + "n_probes": 4 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp32", + "id": "tinyvit__baked_shape__coreml_fp32", + "model": "tinyvit", + "path": "coreml", + "variant": "baked_shape" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/tinyvit__baked_shape__litert_fp16.json b/bench/verdicts_calibrated4/tinyvit__baked_shape__litert_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..fd69dbf766e7b0ca4bcb84711a24c2be0f998bf1 --- /dev/null +++ b/bench/verdicts_calibrated4/tinyvit__baked_shape__litert_fp16.json @@ -0,0 +1,838 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "baseline": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "faithful_output_rel_max": 0.000208557898, + "output_band": 0.01, + "source": { + "bundle": "bundles/tinyvit__clean__litert_fp16.json", + "case": "tinyvit__clean__litert_fp16", + "digests": { + "192": { + "converted": "170133fb2c750896c9b9cfaed4c8aab6b2e92dd28e9a0114b604c6d35736d93d", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "e6f67f478f27c5cbe93fb3192583b8c4adeb54f48117f07895a6c68beeb1c827", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + } + } + }, + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 1.55154223e-05, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.08616257e-07, + "mean_abs": 4.28262865e-08, + "psnr_db": 152.601588, + "ref_absmax": 1.3445735, + "rel_max": 1.55154223e-07, + "scaled_max_abs": 1.55154223e-07 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 57, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 1, + "n_ops_total": 187, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "margin": { + "clear_margin": true, + "failing_shape": 192, + "locations_over_margin": [], + "margin": 0.707106781, + "n_locations": 10, + "nominal_output_band_ratio": 0.0197939619, + "nominal_output_judgeable": true, + "rule": "C4-2 (b1)", + "scope": "every gated location of the nominal shape", + "worst_location": { + "band_ratio": 0.0284519364, + "index": 6, + "location": "net.norm" + } + }, + "status": "flag" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1", + "basis": "nominal shape 224 inside band with a clear margin at every gated location (worst net.norm at ratio 0.0285 <= 0.7071); shape 192 over band", + "index": 7, + "neighbourhood": [ + { + "band_ratio": 0.0310450195, + "index": 6, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "status": "pass", + "tap": "net.norm" + }, + { + "band_ratio": 14299.4971, + "index": 7, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "status": "fail", + "tap": "net.pool" + }, + { + "band_ratio": 25.764207, + "index": 8, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.head" + } + ], + "shape": 192, + "tap": "net.pool" + }, + "fp16_floor": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "baseline": { + "bundle": "bundles/tinyvit__clean__litert_fp16.json", + "case": "tinyvit__clean__litert_fp16", + "digests": { + "192": { + "converted": "170133fb2c750896c9b9cfaed4c8aab6b2e92dd28e9a0114b604c6d35736d93d", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "e6f67f478f27c5cbe93fb3192583b8c4adeb54f48117f07895a6c68beeb1c827", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + } + }, + "envelopes_gate": true, + "faithful_output_rel_max": 0.000208557898, + "faithful_tap_rel_max": { + "net.blocks.0": 0.000279738087, + "net.blocks.1": 0.000270794184, + "net.blocks.2": 0.000256599822, + "net.head": 0.000208557898, + "net.norm": 0.000310450195, + "net.patch_embed": 0.000277319462, + "net.pool": 0.000243123856, + "net.pos_embed": 0.000284416403, + "normalize": 8.27203959e-08 + }, + "floor": 0.01, + "k": 2.0, + "output_band": 0.01, + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used", + "tap_envelopes": { + "net.blocks.0": 0.01, + "net.blocks.1": 0.01, + "net.blocks.2": 0.01, + "net.head": 0.01, + "net.norm": 0.01, + "net.patch_embed": 0.01, + "net.pool": 0.01, + "net.pos_embed": 0.01, + "normalize": 0.01 + } + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "2783f44ce046523732ba4fa771025cc13ca3571cca51884c21e5135d9ff271d6", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "e6f67f478f27c5cbe93fb3192583b8c4adeb54f48117f07895a6c68beeb1c827", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D6", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.96875, + "band_limit": 0.01, + "band_ratio": 25.764207, + "metrics": { + "corr": 0.995900822, + "finite": true, + "max_abs": 0.326192498, + "mean_abs": 0.0625042098, + "psnr_db": 28.5336261, + "ref_absmax": 1.26606846, + "rel_max": 0.25764207, + "scaled_max_abs": 0.25764207 + }, + "per_op_band_ratio": 25.764207, + "status": "fail", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + "first_fail_index": 7, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 8.27203959e-06, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.26638033e-08, + "psnr_db": 163.904618, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "per_op_band_ratio": 8.27203959e-06, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0238484209, + "index": 1, + "metrics": { + "corr": 0.999999975, + "finite": true, + "max_abs": 0.00257468224, + "mean_abs": 0.000153147335, + "psnr_db": 99.1308904, + "ref_absmax": 10.7960281, + "rel_max": 0.000238484209, + "scaled_max_abs": 0.000238484209 + }, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;2" + }, + "per_op_band_ratio": 0.0238484209, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0238962707, + "index": 2, + "metrics": { + "corr": 0.999999977, + "finite": true, + "max_abs": 0.00257468224, + "mean_abs": 0.000153147282, + "psnr_db": 99.0500481, + "ref_absmax": 10.7744102, + "rel_max": 0.000238962707, + "scaled_max_abs": 0.000238962707 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;3" + }, + "per_op_band_ratio": 0.0238962707, + "status": "pass", + "tap": "net.pos_embed" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0248371341, + "index": 3, + "metrics": { + "corr": 0.999999975, + "finite": true, + "max_abs": 0.00266242027, + "mean_abs": 0.000175715531, + "psnr_db": 98.3929002, + "ref_absmax": 10.7195148, + "rel_max": 0.000248371341, + "scaled_max_abs": 0.000248371341 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "per_op_band_ratio": 0.0248371341, + "status": "pass", + "tap": "net.blocks.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0244428902, + "index": 4, + "metrics": { + "corr": 0.999999975, + "finite": true, + "max_abs": 0.00268959999, + "mean_abs": 0.000194126271, + "psnr_db": 98.0679496, + "ref_absmax": 11.0036087, + "rel_max": 0.000244428902, + "scaled_max_abs": 0.000244428902 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "per_op_band_ratio": 0.0244428902, + "status": "pass", + "tap": "net.blocks.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0249340827, + "index": 5, + "metrics": { + "corr": 0.999999975, + "finite": true, + "max_abs": 0.0028295517, + "mean_abs": 0.000204465949, + "psnr_db": 98.0757778, + "ref_absmax": 11.3481283, + "rel_max": 0.000249340827, + "scaled_max_abs": 0.000249340827 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "per_op_band_ratio": 0.0249340827, + "status": "pass", + "tap": "net.blocks.2" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0310450195, + "index": 6, + "metrics": { + "corr": 0.999999972, + "finite": true, + "max_abs": 0.00127628446, + "mean_abs": 0.000187560799, + "psnr_db": 90.4287298, + "ref_absmax": 4.11107635, + "rel_max": 0.000310450195, + "scaled_max_abs": 0.000310450195 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "per_op_band_ratio": 0.0310450195, + "status": "pass", + "tap": "net.norm" + }, + { + "band_limit": 0.01, + "band_ratio": 14299.4971, + "index": 7, + "metrics": { + "corr": 0.999999971, + "finite": true, + "max_abs": 316.844105, + "mean_abs": 59.9836797, + "psnr_db": -25.7531324, + "ref_absmax": 2.21577096, + "rel_max": 142.994971, + "scaled_max_abs": 142.994971 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "per_op_band_ratio": 14299.4971, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_limit": 0.01, + "band_ratio": 25.764207, + "index": 8, + "metrics": { + "corr": 0.995900822, + "finite": true, + "max_abs": 0.326192498, + "mean_abs": 0.0625042098, + "psnr_db": 28.5336261, + "ref_absmax": 1.26606846, + "rel_max": 0.25764207, + "scaled_max_abs": 0.25764207 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "per_op_band_ratio": 25.764207, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_limit": 0.01, + "band_ratio": 0.0197939619, + "metrics": { + "corr": 0.999999958, + "finite": true, + "max_abs": 0.000266134739, + "mean_abs": 7.85663025e-05, + "psnr_db": 87.7638046, + "ref_absmax": 1.34452486, + "rel_max": 0.000197939619, + "scaled_max_abs": 0.000197939619 + }, + "per_op_band_ratio": 0.0197939619, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 8.27203959e-06, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.2793459e-08, + "psnr_db": 164.013874, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "per_op_band_ratio": 8.27203959e-06, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0277319462, + "index": 1, + "metrics": { + "corr": 0.999999975, + "finite": true, + "max_abs": 0.00329208374, + "mean_abs": 0.00015256364, + "psnr_db": 99.7212805, + "ref_absmax": 11.871088, + "rel_max": 0.000277319462, + "scaled_max_abs": 0.000277319462 + }, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;2" + }, + "per_op_band_ratio": 0.0277319462, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0284416403, + "index": 2, + "metrics": { + "corr": 0.999999977, + "finite": true, + "max_abs": 0.00329208374, + "mean_abs": 0.000152563603, + "psnr_db": 99.6624604, + "ref_absmax": 11.574873, + "rel_max": 0.000284416403, + "scaled_max_abs": 0.000284416403 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;3" + }, + "per_op_band_ratio": 0.0284416403, + "status": "pass", + "tap": "net.pos_embed" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0279738087, + "index": 3, + "metrics": { + "corr": 0.999999975, + "finite": true, + "max_abs": 0.00332736969, + "mean_abs": 0.000176384194, + "psnr_db": 99.194827, + "ref_absmax": 11.8945894, + "rel_max": 0.000279738087, + "scaled_max_abs": 0.000279738087 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "per_op_band_ratio": 0.0279738087, + "status": "pass", + "tap": "net.blocks.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0270794184, + "index": 4, + "metrics": { + "corr": 0.999999974, + "finite": true, + "max_abs": 0.00329113007, + "mean_abs": 0.000196887379, + "psnr_db": 98.8068327, + "ref_absmax": 12.1536217, + "rel_max": 0.000270794184, + "scaled_max_abs": 0.000270794184 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "per_op_band_ratio": 0.0270794184, + "status": "pass", + "tap": "net.blocks.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0256599822, + "index": 5, + "metrics": { + "corr": 0.999999975, + "finite": true, + "max_abs": 0.00321006775, + "mean_abs": 0.000207746592, + "psnr_db": 98.6389943, + "ref_absmax": 12.5100155, + "rel_max": 0.000256599822, + "scaled_max_abs": 0.000256599822 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "per_op_band_ratio": 0.0256599822, + "status": "pass", + "tap": "net.blocks.2" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0284519364, + "index": 6, + "metrics": { + "corr": 0.999999972, + "finite": true, + "max_abs": 0.00119453669, + "mean_abs": 0.000190440265, + "psnr_db": 90.5400099, + "ref_absmax": 4.19843721, + "rel_max": 0.000284519364, + "scaled_max_abs": 0.000284519364 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "per_op_band_ratio": 0.0284519364, + "status": "pass", + "tap": "net.norm" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0238872752, + "index": 7, + "metrics": { + "corr": 0.99999997, + "finite": true, + "max_abs": 0.000530719757, + "mean_abs": 0.000113873221, + "psnr_db": 89.1445653, + "ref_absmax": 2.22176766, + "rel_max": 0.000238872752, + "scaled_max_abs": 0.000238872752 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;;zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "per_op_band_ratio": 0.0238872752, + "status": "pass", + "tap": "net.pool" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0197939619, + "index": 8, + "metrics": { + "corr": 0.999999958, + "finite": true, + "max_abs": 0.000266134739, + "mean_abs": 7.85663025e-05, + "psnr_db": 87.7638046, + "ref_absmax": 1.34452486, + "rel_max": 0.000197939619, + "scaled_max_abs": 0.000197939619 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "per_op_band_ratio": 0.0197939619, + "status": "pass", + "tap": "net.head" + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp16", + "id": "tinyvit__baked_shape__litert_fp16", + "model": "tinyvit", + "path": "litert", + "variant": "baked_shape" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/tinyvit__baked_shape__litert_fp32.json b/bench/verdicts_calibrated4/tinyvit__baked_shape__litert_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..169be83ade2ea77d78ec5509192247f4921761fe --- /dev/null +++ b/bench/verdicts_calibrated4/tinyvit__baked_shape__litert_fp32.json @@ -0,0 +1,1047 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 0.00132994157, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.78813934e-07, + "mean_abs": 4.3772161e-08, + "psnr_db": 152.770609, + "ref_absmax": 1.34452474, + "rel_max": 1.32994157e-07, + "scaled_max_abs": 1.32994157e-07 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 57, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 1, + "n_ops_total": 173, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "margin": { + "clear_margin": true, + "failing_shape": 192, + "locations_over_margin": [], + "margin": 0.707106781, + "n_locations": 10, + "nominal_output_band_ratio": 0.00354651054, + "nominal_output_judgeable": true, + "rule": "C4-2 (b1)", + "scope": "every gated location of the nominal shape", + "worst_location": { + "band_ratio": 0.0123587661, + "index": 2, + "location": "net.pos_embed" + } + }, + "status": "flag" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1", + "basis": "nominal shape 224 inside band with a clear margin at every gated location (worst net.pos_embed at ratio 0.0124 <= 0.7071); shape 192 over band", + "index": 7, + "neighbourhood": [ + { + "band_ratio": 0.0104389558, + "index": 6, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "status": "pass", + "tap": "net.norm" + }, + { + "band_ratio": 1430000.08, + "index": 7, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "status": "fail", + "tap": "net.pool" + }, + { + "band_ratio": 2415.80146, + "index": 8, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.head" + } + ], + "shape": 192, + "tap": "net.pool" + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "3c4fce1573b857dfeee947204c8e31b8966c43fa40dfd2651a38ba31dab9fad8", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "b5cc311c90efc0c4346255b47684af424f4ddf50a0a8488c41e68f800fe2dd19", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "fp32 per-tap band on near-zero probes", + "reason": "C3-2: per-tap fp32 checks gate without the near_zero probes; they are measured and reported per tap ('ungated_probes'); the output gates on all probes. C4-1: when the output has failed and no gated tap fails, they localise the first divergence (earliest tap over band on all probes)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D6", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.96875, + "band_ratio": 2575.73194, + "metrics": { + "corr": 0.995905825, + "finite": true, + "max_abs": 0.326105297, + "mean_abs": 0.0624996821, + "psnr_db": 28.5341133, + "ref_absmax": 1.26606846, + "rel_max": 0.257573194, + "scaled_max_abs": 0.257573194 + }, + "status": "fail", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + "first_fail_index": 7, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.06644368e-08, + "psnr_db": 164.113247, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.00112572895, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.38418579e-07, + "mean_abs": 4.66593688e-08, + "psnr_db": 130.397207, + "ref_absmax": 2.11790395, + "rel_max": 1.12572895e-07, + "scaled_max_abs": 1.12572895e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.013692028, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.47819519e-05, + "mean_abs": 3.62527481e-07, + "psnr_db": 150.740789, + "ref_absmax": 10.7960281, + "rel_max": 1.3692028e-06, + "scaled_max_abs": 1.3692028e-06 + }, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;2" + }, + "status": "pass", + "tap": "net.patch_embed", + "ungated_probes": { + "band_ratio": 0.0180220941, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.529953e-06, + "mean_abs": 4.841953e-07, + "psnr_db": 137.220487, + "ref_absmax": 2.51355529, + "rel_max": 1.80220941e-06, + "scaled_max_abs": 1.80220941e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0137194998, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.47819519e-05, + "mean_abs": 3.63416014e-07, + "psnr_db": 150.644745, + "ref_absmax": 10.7744102, + "rel_max": 1.37194998e-06, + "scaled_max_abs": 1.37194998e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;3" + }, + "status": "pass", + "tap": "net.pos_embed", + "ungated_probes": { + "band_ratio": 0.0120981371, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.64916229e-06, + "mean_abs": 4.8529616e-07, + "psnr_db": 140.716929, + "ref_absmax": 3.84287453, + "rel_max": 1.20981371e-06, + "scaled_max_abs": 1.20981371e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0133449274, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-05, + "mean_abs": 3.90630877e-07, + "psnr_db": 150.441385, + "ref_absmax": 10.7195148, + "rel_max": 1.33449274e-06, + "scaled_max_abs": 1.33449274e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.0", + "ungated_probes": { + "band_ratio": 0.0101023474, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.529953e-06, + "mean_abs": 5.03142903e-07, + "psnr_db": 141.614723, + "ref_absmax": 4.48405981, + "rel_max": 1.01023474e-06, + "scaled_max_abs": 1.01023474e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0130003848, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-05, + "mean_abs": 4.1390341e-07, + "psnr_db": 150.370016, + "ref_absmax": 11.0036087, + "rel_max": 1.30003848e-06, + "scaled_max_abs": 1.30003848e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.1", + "ungated_probes": { + "band_ratio": 0.00987291283, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.64916229e-06, + "mean_abs": 5.23810185e-07, + "psnr_db": 141.674258, + "ref_absmax": 4.70900774, + "rel_max": 9.87291283e-07, + "scaled_max_abs": 9.87291283e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0126057041, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-05, + "mean_abs": 4.34103036e-07, + "psnr_db": 150.446413, + "ref_absmax": 11.3481283, + "rel_max": 1.26057041e-06, + "scaled_max_abs": 1.26057041e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.2", + "ungated_probes": { + "band_ratio": 0.0102059281, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 5.38784295e-07, + "psnr_db": 141.827963, + "ref_absmax": 4.67215872, + "rel_max": 1.02059281e-06, + "scaled_max_abs": 1.02059281e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0104389558, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.29153442e-06, + "mean_abs": 4.09872673e-07, + "psnr_db": 143.228282, + "ref_absmax": 4.11107635, + "rel_max": 1.04389558e-06, + "scaled_max_abs": 1.04389558e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "status": "pass", + "tap": "net.norm", + "ungated_probes": { + "band_ratio": 0.0111177219, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.09944153e-06, + "mean_abs": 3.46622027e-07, + "psnr_db": 141.341254, + "ref_absmax": 2.7878387, + "rel_max": 1.11177219e-06, + "scaled_max_abs": 1.11177219e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 1430000.08, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 288.945315, + "mean_abs": 52.5026461, + "psnr_db": -25.1411751, + "ref_absmax": 2.0205965, + "rel_max": 143.000008, + "scaled_max_abs": 143.000008 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "status": "fail", + "tap": "net.pool", + "ungated_probes": { + "band_ratio": 1429999.71, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 316.855182, + "mean_abs": 112.347952, + "psnr_db": -30.253585, + "ref_absmax": 2.21577096, + "rel_max": 142.999971, + "scaled_max_abs": 142.999971 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 11 + } + }, + { + "band_ratio": 2415.80146, + "index": 8, + "metrics": { + "corr": 0.994974046, + "finite": true, + "max_abs": 0.305857003, + "mean_abs": 0.0540759162, + "psnr_db": 28.5835847, + "ref_absmax": 1.26606846, + "rel_max": 0.241580146, + "scaled_max_abs": 0.241580146 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.head", + "ungated_probes": { + "band_ratio": 2922.23641, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.998335937, + "finite": true, + "max_abs": 0.326105297, + "mean_abs": 0.121466043, + "psnr_db": 20.3026922, + "ref_absmax": 1.11594427, + "rel_max": 0.292223641, + "scaled_max_abs": 0.292223641 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.00354651054, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-07, + "mean_abs": 8.9162495e-08, + "psnr_db": 146.224752, + "ref_absmax": 1.34452486, + "rel_max": 3.54651054e-07, + "scaled_max_abs": 3.54651054e-07 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.08107465e-08, + "psnr_db": 164.245493, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.00112572895, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.38418579e-07, + "mean_abs": 4.66724468e-08, + "psnr_db": 130.436578, + "ref_absmax": 2.11790395, + "rel_max": 1.12572895e-07, + "scaled_max_abs": 1.12572895e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0120503822, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-05, + "mean_abs": 3.61783837e-07, + "psnr_db": 151.297602, + "ref_absmax": 11.871088, + "rel_max": 1.20503822e-06, + "scaled_max_abs": 1.20503822e-06 + }, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;2" + }, + "status": "pass", + "tap": "net.patch_embed", + "ungated_probes": { + "band_ratio": 0.0218071717, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.48362732e-06, + "mean_abs": 4.85357549e-07, + "psnr_db": 137.211056, + "ref_absmax": 2.51459813, + "rel_max": 2.18071717e-06, + "scaled_max_abs": 2.18071717e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0123587661, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-05, + "mean_abs": 3.62607432e-07, + "psnr_db": 151.221115, + "ref_absmax": 11.574873, + "rel_max": 1.23587661e-06, + "scaled_max_abs": 1.23587661e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;3" + }, + "status": "pass", + "tap": "net.pos_embed", + "ungated_probes": { + "band_ratio": 0.0147609698, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.48362732e-06, + "mean_abs": 4.85683925e-07, + "psnr_db": 140.560247, + "ref_absmax": 3.71495056, + "rel_max": 1.47609698e-06, + "scaled_max_abs": 1.47609698e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.012026573, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-05, + "mean_abs": 3.90495829e-07, + "psnr_db": 151.23837, + "ref_absmax": 11.8945894, + "rel_max": 1.2026573e-06, + "scaled_max_abs": 1.2026573e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.0", + "ungated_probes": { + "band_ratio": 0.0130114509, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.84125519e-06, + "mean_abs": 5.0340425e-07, + "psnr_db": 141.475988, + "ref_absmax": 4.48931885, + "rel_max": 1.30114509e-06, + "scaled_max_abs": 1.30114509e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0109855653, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33514404e-05, + "mean_abs": 4.15569578e-07, + "psnr_db": 151.133586, + "ref_absmax": 12.1536217, + "rel_max": 1.09855653e-06, + "scaled_max_abs": 1.09855653e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.1", + "ungated_probes": { + "band_ratio": 0.0126434283, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.96046448e-06, + "mean_abs": 5.25648263e-07, + "psnr_db": 141.57817, + "ref_absmax": 4.7142787, + "rel_max": 1.26434283e-06, + "scaled_max_abs": 1.26434283e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.010672601, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33514404e-05, + "mean_abs": 4.36010547e-07, + "psnr_db": 151.026245, + "ref_absmax": 12.5100155, + "rel_max": 1.0672601e-06, + "scaled_max_abs": 1.0672601e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.2", + "ungated_probes": { + "band_ratio": 0.0127431729, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.96046448e-06, + "mean_abs": 5.40419376e-07, + "psnr_db": 141.681128, + "ref_absmax": 4.67737865, + "rel_max": 1.27431729e-06, + "scaled_max_abs": 1.27431729e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0122093036, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.12599945e-06, + "mean_abs": 4.08445907e-07, + "psnr_db": 143.426344, + "ref_absmax": 4.19843721, + "rel_max": 1.22093036e-06, + "scaled_max_abs": 1.22093036e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "status": "pass", + "tap": "net.norm", + "ungated_probes": { + "band_ratio": 0.0126345349, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.4570694e-06, + "mean_abs": 3.47359721e-07, + "psnr_db": 141.184392, + "ref_absmax": 2.73620629, + "rel_max": 1.26345349e-06, + "scaled_max_abs": 1.26345349e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00546335494, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.14738941e-06, + "mean_abs": 1.21961542e-07, + "psnr_db": 147.110197, + "ref_absmax": 2.10015535, + "rel_max": 5.46335494e-07, + "scaled_max_abs": 5.46335494e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;;zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "status": "pass", + "tap": "net.pool", + "ungated_probes": { + "band_ratio": 0.004828964, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.07288361e-06, + "mean_abs": 1.45941158e-07, + "psnr_db": 145.343303, + "ref_absmax": 2.22176766, + "rel_max": 4.828964e-07, + "scaled_max_abs": 4.828964e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00310319672, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.17232513e-07, + "mean_abs": 8.47902681e-08, + "psnr_db": 145.441626, + "ref_absmax": 1.34452486, + "rel_max": 3.10319672e-07, + "scaled_max_abs": 3.10319672e-07 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "pass", + "tap": "net.head", + "ungated_probes": { + "band_ratio": 0.00426017257, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-07, + "mean_abs": 1.19768083e-07, + "psnr_db": 139.759099, + "ref_absmax": 1.11929071, + "rel_max": 4.26017257e-07, + "scaled_max_abs": 4.26017257e-07 + }, + "n_probes": 4 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp32", + "id": "tinyvit__baked_shape__litert_fp32", + "model": "tinyvit", + "path": "litert", + "variant": "baked_shape" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/tinyvit__baked_shape__onnx_fp16.json b/bench/verdicts_calibrated4/tinyvit__baked_shape__onnx_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..57e5ce55e5ddca704a272ccb39356230fd1b783f --- /dev/null +++ b/bench/verdicts_calibrated4/tinyvit__baked_shape__onnx_fp16.json @@ -0,0 +1,809 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "baseline": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "faithful_output_rel_max": 0.000456508758, + "output_band": 0.01, + "source": { + "bundle": "bundles/tinyvit__clean__onnx_fp16.json", + "case": "tinyvit__clean__onnx_fp16", + "digests": { + "192": { + "converted": "256af465b0649a975fd83c261b17d7830bd11a36abe6723c11a591e4649ad014", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "4e990e5a6766e80eea68d854f1db627a391a6a25b03b20781b4f30f0c5c65cf1", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + } + } + }, + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "margin": { + "clear_margin": true, + "failing_shape": 192, + "locations_over_margin": [], + "margin": 0.707106781, + "n_locations": 10, + "nominal_output_band_ratio": 0.0423719346, + "nominal_output_judgeable": true, + "rule": "C4-2 (b1)", + "scope": "every gated location of the nominal shape", + "worst_location": { + "band_ratio": 0.0851897059, + "index": 6, + "location": "net.norm" + } + }, + "status": "flag" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "/net/pool/Div_output_0", + "basis": "nominal shape 224 inside band with a clear margin at every gated location (worst net.norm at ratio 0.0852 <= 0.7071); shape 192 over band", + "index": 7, + "neighbourhood": [ + { + "band_ratio": 0.0818820092, + "index": 6, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "status": "pass", + "tap": "net.norm" + }, + { + "band_ratio": 26.5298753, + "index": 7, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/Div_output_0" + }, + "status": "fail", + "tap": "net.pool" + }, + { + "band_ratio": 25.7498292, + "index": 8, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head" + } + ], + "shape": 192, + "tap": "net.pool" + }, + "fp16_floor": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "baseline": { + "bundle": "bundles/tinyvit__clean__onnx_fp16.json", + "case": "tinyvit__clean__onnx_fp16", + "digests": { + "192": { + "converted": "256af465b0649a975fd83c261b17d7830bd11a36abe6723c11a591e4649ad014", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "4e990e5a6766e80eea68d854f1db627a391a6a25b03b20781b4f30f0c5c65cf1", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + } + }, + "envelopes_gate": true, + "faithful_output_rel_max": 0.000456508758, + "faithful_tap_rel_max": { + "net.blocks.0": 0.000642335839, + "net.blocks.1": 0.000711207718, + "net.blocks.2": 0.000762561059, + "net.head": 0.000463029134, + "net.norm": 0.000851897059, + "net.patch_embed": 0.000469161546, + "net.pool": 0.00079208262, + "net.pos_embed": 0.0007491884, + "normalize": 0.000441313312 + }, + "floor": 0.01, + "k": 2.0, + "output_band": 0.01, + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used", + "tap_envelopes": { + "net.blocks.0": 0.01, + "net.blocks.1": 0.01, + "net.blocks.2": 0.01, + "net.head": 0.01, + "net.norm": 0.01, + "net.patch_embed": 0.01, + "net.pool": 0.01, + "net.pos_embed": 0.01, + "normalize": 0.01 + } + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "46a0e8ed821e3cdd0abff80d6ad26198bcd70c91ccc57b017c1a3cc281dc1d25", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "4e990e5a6766e80eea68d854f1db627a391a6a25b03b20781b4f30f0c5c65cf1", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 3.61204147e-05, + "224": 4.39584255e-05 + }, + "primary_class": "D6", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.96875, + "band_limit": 0.01, + "band_ratio": 25.7484498, + "metrics": { + "corr": 0.995907861, + "finite": true, + "max_abs": 0.325993001, + "mean_abs": 0.0625117309, + "psnr_db": 28.5346162, + "ref_absmax": 1.26606846, + "rel_max": 0.257484498, + "scaled_max_abs": 0.257484498 + }, + "per_op_band_ratio": 25.7484498, + "status": "fail", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + }, + "first_fail_index": 7, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 0.0441313312, + "index": 0, + "metrics": { + "corr": 0.999999966, + "finite": true, + "max_abs": 0.00508785248, + "mean_abs": 0.000405953078, + "psnr_db": 88.0186903, + "ref_absmax": 11.5288897, + "rel_max": 0.000441313312, + "scaled_max_abs": 0.000441313312 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "per_op_band_ratio": 0.0441313312, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0469150713, + "index": 1, + "metrics": { + "corr": 0.999999939, + "finite": true, + "max_abs": 0.00506496429, + "mean_abs": 0.000255633799, + "psnr_db": 95.3001421, + "ref_absmax": 10.7960281, + "rel_max": 0.000469150713, + "scaled_max_abs": 0.000469150713 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "per_op_band_ratio": 0.0469150713, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0735365188, + "index": 2, + "metrics": { + "corr": 0.999999921, + "finite": true, + "max_abs": 0.00792312622, + "mean_abs": 0.000301602973, + "psnr_db": 93.5874175, + "ref_absmax": 10.7744102, + "rel_max": 0.000735365188, + "scaled_max_abs": 0.000735365188 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "per_op_band_ratio": 0.0735365188, + "status": "pass", + "tap": "net.pos_embed" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0642335839, + "index": 3, + "metrics": { + "corr": 0.999999915, + "finite": true, + "max_abs": 0.00688552856, + "mean_abs": 0.000337762151, + "psnr_db": 93.052585, + "ref_absmax": 10.7195148, + "rel_max": 0.000642335839, + "scaled_max_abs": 0.000642335839 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "per_op_band_ratio": 0.0642335839, + "status": "pass", + "tap": "net.blocks.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0711207718, + "index": 4, + "metrics": { + "corr": 0.99999991, + "finite": true, + "max_abs": 0.00782585144, + "mean_abs": 0.000375974454, + "psnr_db": 92.5622871, + "ref_absmax": 11.0036087, + "rel_max": 0.000711207718, + "scaled_max_abs": 0.000711207718 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0" + }, + "per_op_band_ratio": 0.0711207718, + "status": "pass", + "tap": "net.blocks.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0762561059, + "index": 5, + "metrics": { + "corr": 0.999999905, + "finite": true, + "max_abs": 0.00865364075, + "mean_abs": 0.000407947414, + "psnr_db": 92.2800434, + "ref_absmax": 11.3481283, + "rel_max": 0.000762561059, + "scaled_max_abs": 0.000762561059 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0" + }, + "per_op_band_ratio": 0.0762561059, + "status": "pass", + "tap": "net.blocks.2" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0818820092, + "index": 6, + "metrics": { + "corr": 0.999999846, + "finite": true, + "max_abs": 0.00336623192, + "mean_abs": 0.000424373745, + "psnr_db": 83.0143914, + "ref_absmax": 4.11107635, + "rel_max": 0.000818820092, + "scaled_max_abs": 0.000818820092 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "per_op_band_ratio": 0.0818820092, + "status": "pass", + "tap": "net.norm" + }, + { + "band_limit": 0.01, + "band_ratio": 26.5298753, + "index": 7, + "metrics": { + "corr": 0.999999814, + "finite": true, + "max_abs": 0.587841272, + "mean_abs": 0.11128451, + "psnr_db": 28.8782843, + "ref_absmax": 2.21577096, + "rel_max": 0.265298753, + "scaled_max_abs": 0.265298753 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/Div_output_0" + }, + "per_op_band_ratio": 26.5298753, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_limit": 0.01, + "band_ratio": 25.7498292, + "index": 8, + "metrics": { + "corr": 0.995908013, + "finite": true, + "max_abs": 0.326010466, + "mean_abs": 0.0625109202, + "psnr_db": 28.5346269, + "ref_absmax": 1.26606846, + "rel_max": 0.257498292, + "scaled_max_abs": 0.257498292 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "per_op_band_ratio": 25.7498292, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_limit": 0.01, + "band_ratio": 0.0423719346, + "metrics": { + "corr": 0.999999905, + "finite": true, + "max_abs": 0.000569701195, + "mean_abs": 0.000124554956, + "psnr_db": 83.7646999, + "ref_absmax": 1.34452486, + "rel_max": 0.000423719346, + "scaled_max_abs": 0.000423719346 + }, + "per_op_band_ratio": 0.0423719346, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 0.0439328023, + "index": 0, + "metrics": { + "corr": 0.999999965, + "finite": true, + "max_abs": 0.00506496429, + "mean_abs": 0.000406712054, + "psnr_db": 88.0749992, + "ref_absmax": 11.5288897, + "rel_max": 0.000439328023, + "scaled_max_abs": 0.000439328023 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "per_op_band_ratio": 0.0439328023, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0469161546, + "index": 1, + "metrics": { + "corr": 0.99999994, + "finite": true, + "max_abs": 0.00556945801, + "mean_abs": 0.000254492238, + "psnr_db": 95.9056844, + "ref_absmax": 11.871088, + "rel_max": 0.000469161546, + "scaled_max_abs": 0.000469161546 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "per_op_band_ratio": 0.0469161546, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_limit": 0.01, + "band_ratio": 0.07491884, + "index": 2, + "metrics": { + "corr": 0.99999992, + "finite": true, + "max_abs": 0.00867176056, + "mean_abs": 0.000301083888, + "psnr_db": 94.1877045, + "ref_absmax": 11.574873, + "rel_max": 0.0007491884, + "scaled_max_abs": 0.0007491884 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "per_op_band_ratio": 0.07491884, + "status": "pass", + "tap": "net.pos_embed" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0635564292, + "index": 3, + "metrics": { + "corr": 0.999999915, + "finite": true, + "max_abs": 0.00755977631, + "mean_abs": 0.000339032434, + "psnr_db": 93.8757594, + "ref_absmax": 11.8945894, + "rel_max": 0.000635564292, + "scaled_max_abs": 0.000635564292 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "per_op_band_ratio": 0.0635564292, + "status": "pass", + "tap": "net.blocks.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0671218039, + "index": 4, + "metrics": { + "corr": 0.99999991, + "finite": true, + "max_abs": 0.0081577301, + "mean_abs": 0.000376167463, + "psnr_db": 93.3355793, + "ref_absmax": 12.1536217, + "rel_max": 0.000671218039, + "scaled_max_abs": 0.000671218039 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0" + }, + "per_op_band_ratio": 0.0671218039, + "status": "pass", + "tap": "net.blocks.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0664445648, + "index": 5, + "metrics": { + "corr": 0.999999905, + "finite": true, + "max_abs": 0.00831222534, + "mean_abs": 0.000408523199, + "psnr_db": 92.8873389, + "ref_absmax": 12.5100155, + "rel_max": 0.000664445648, + "scaled_max_abs": 0.000664445648 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0" + }, + "per_op_band_ratio": 0.0664445648, + "status": "pass", + "tap": "net.blocks.2" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0851897059, + "index": 6, + "metrics": { + "corr": 0.999999848, + "finite": true, + "max_abs": 0.00357663631, + "mean_abs": 0.000421772845, + "psnr_db": 83.2639281, + "ref_absmax": 4.19843721, + "rel_max": 0.000851897059, + "scaled_max_abs": 0.000851897059 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "per_op_band_ratio": 0.0851897059, + "status": "pass", + "tap": "net.norm" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0682010682, + "index": 7, + "metrics": { + "corr": 0.999999832, + "finite": true, + "max_abs": 0.00151526928, + "mean_abs": 0.000268050243, + "psnr_db": 81.6555098, + "ref_absmax": 2.22176766, + "rel_max": 0.000682010682, + "scaled_max_abs": 0.000682010682 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/Div_output_0" + }, + "per_op_band_ratio": 0.0682010682, + "status": "pass", + "tap": "net.pool" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0426246235, + "index": 8, + "metrics": { + "corr": 0.999999904, + "finite": true, + "max_abs": 0.00057309866, + "mean_abs": 0.000125122938, + "psnr_db": 83.7414848, + "ref_absmax": 1.34452486, + "rel_max": 0.000426246235, + "scaled_max_abs": 0.000426246235 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "per_op_band_ratio": 0.0426246235, + "status": "pass", + "tap": "net.head" + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp16", + "id": "tinyvit__baked_shape__onnx_fp16", + "model": "tinyvit", + "path": "onnx", + "variant": "baked_shape" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/tinyvit__baked_shape__onnx_fp32.json b/bench/verdicts_calibrated4/tinyvit__baked_shape__onnx_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..b2d3e79deb524fbbe40a06452f3007efb89a7598 --- /dev/null +++ b/bench/verdicts_calibrated4/tinyvit__baked_shape__onnx_fp32.json @@ -0,0 +1,1017 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "margin": { + "clear_margin": true, + "failing_shape": 192, + "locations_over_margin": [], + "margin": 0.707106781, + "n_locations": 10, + "nominal_output_band_ratio": 0.00365733899, + "nominal_output_judgeable": true, + "rule": "C4-2 (b1)", + "scope": "every gated location of the nominal shape", + "worst_location": { + "band_ratio": 0.0107109306, + "index": 2, + "location": "net.pos_embed" + } + }, + "status": "flag" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "/net/pool/Div_output_0", + "basis": "nominal shape 224 inside band with a clear margin at every gated location (worst net.pos_embed at ratio 0.0107 <= 0.7071); shape 192 over band", + "index": 7, + "neighbourhood": [ + { + "band_ratio": 0.0104389558, + "index": 6, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "status": "pass", + "tap": "net.norm" + }, + { + "band_ratio": 2653.05907, + "index": 7, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/Div_output_0" + }, + "status": "fail", + "tap": "net.pool" + }, + { + "band_ratio": 2415.80287, + "index": 8, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head" + } + ], + "shape": 192, + "tap": "net.pool" + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "a3f207c8c12ed3ce6ef42a6a3de4881edc8ba8c8d30441ce3438884bc081b90f", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "d4648595c778e951d3779bd8da0d8b43df8f39fd9d22a12fea6e87080e8669af", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "fp32 per-tap band on near-zero probes", + "reason": "C3-2: per-tap fp32 checks gate without the near_zero probes; they are measured and reported per tap ('ungated_probes'); the output gates on all probes. C4-1: when the output has failed and no gated tap fails, they localise the first divergence (earliest tap over band on all probes)" + }, + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 1.1920929e-07, + "224": 1.1920929e-07 + }, + "primary_class": "D6", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.96875, + "band_ratio": 2575.73194, + "metrics": { + "corr": 0.995905825, + "finite": true, + "max_abs": 0.326105297, + "mean_abs": 0.0624996862, + "psnr_db": 28.5341127, + "ref_absmax": 1.26606846, + "rel_max": 0.257573194, + "scaled_max_abs": 0.257573194 + }, + "status": "fail", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + "first_fail_index": 7, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.0, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 11.5288897, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.0, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 2.11790395, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0119253147, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.28746033e-05, + "mean_abs": 3.05237152e-07, + "psnr_db": 151.990326, + "ref_absmax": 10.7960281, + "rel_max": 1.19253147e-06, + "scaled_max_abs": 1.19253147e-06 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "status": "pass", + "tap": "net.patch_embed", + "ungated_probes": { + "band_ratio": 0.0170735629, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.29153442e-06, + "mean_abs": 4.19041159e-07, + "psnr_db": 138.187965, + "ref_absmax": 2.51355529, + "rel_max": 1.70735629e-06, + "scaled_max_abs": 1.70735629e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0119492417, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.28746033e-05, + "mean_abs": 3.36284482e-07, + "psnr_db": 151.560529, + "ref_absmax": 10.7744102, + "rel_max": 1.19492417e-06, + "scaled_max_abs": 1.19492417e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "status": "pass", + "tap": "net.pos_embed", + "ungated_probes": { + "band_ratio": 0.0111675112, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.29153442e-06, + "mean_abs": 4.39594733e-07, + "psnr_db": 141.414892, + "ref_absmax": 3.84287453, + "rel_max": 1.11675112e-06, + "scaled_max_abs": 1.11675112e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0124552656, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33514404e-05, + "mean_abs": 3.63612535e-07, + "psnr_db": 151.291476, + "ref_absmax": 10.7195148, + "rel_max": 1.24552656e-06, + "scaled_max_abs": 1.24552656e-06 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.0", + "ungated_probes": { + "band_ratio": 0.0101023474, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.529953e-06, + "mean_abs": 4.59172598e-07, + "psnr_db": 142.28545, + "ref_absmax": 4.48405981, + "rel_max": 1.01023474e-06, + "scaled_max_abs": 1.01023474e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0121336925, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33514404e-05, + "mean_abs": 3.89131165e-07, + "psnr_db": 151.149544, + "ref_absmax": 11.0036087, + "rel_max": 1.21336925e-06, + "scaled_max_abs": 1.21336925e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.1", + "ungated_probes": { + "band_ratio": 0.0101260644, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 4.81151877e-07, + "psnr_db": 142.321354, + "ref_absmax": 4.70900774, + "rel_max": 1.01260644e-06, + "scaled_max_abs": 1.01260644e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0117653238, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33514404e-05, + "mean_abs": 4.11277598e-07, + "psnr_db": 151.150197, + "ref_absmax": 11.3481283, + "rel_max": 1.17653238e-06, + "scaled_max_abs": 1.17653238e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.2", + "ungated_probes": { + "band_ratio": 0.0102059281, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 4.97824607e-07, + "psnr_db": 142.42675, + "ref_absmax": 4.67215872, + "rel_max": 1.02059281e-06, + "scaled_max_abs": 1.02059281e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0104389558, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.29153442e-06, + "mean_abs": 4.01562031e-07, + "psnr_db": 143.411533, + "ref_absmax": 4.11107635, + "rel_max": 1.04389558e-06, + "scaled_max_abs": 1.04389558e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "status": "pass", + "tap": "net.norm", + "ungated_probes": { + "band_ratio": 0.0106901172, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.98023224e-06, + "mean_abs": 3.24296879e-07, + "psnr_db": 141.845193, + "ref_absmax": 2.7878387, + "rel_max": 1.06901172e-06, + "scaled_max_abs": 1.06901172e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 2653.05907, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.536076188, + "mean_abs": 0.0974075098, + "psnr_db": 29.4906003, + "ref_absmax": 2.0205965, + "rel_max": 0.265305907, + "scaled_max_abs": 0.265305907 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/Div_output_0" + }, + "status": "fail", + "tap": "net.pool", + "ungated_probes": { + "band_ratio": 2653.06339, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.587858081, + "mean_abs": 0.208437779, + "psnr_db": 24.3781893, + "ref_absmax": 2.21577096, + "rel_max": 0.265306339, + "scaled_max_abs": 0.265306339 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 11 + } + }, + { + "band_ratio": 2415.80287, + "index": 8, + "metrics": { + "corr": 0.994974049, + "finite": true, + "max_abs": 0.305857182, + "mean_abs": 0.0540759127, + "psnr_db": 28.5835855, + "ref_absmax": 1.26606846, + "rel_max": 0.241580287, + "scaled_max_abs": 0.241580287 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "ungated_probes": { + "band_ratio": 2922.23641, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.998335936, + "finite": true, + "max_abs": 0.326105297, + "mean_abs": 0.121466078, + "psnr_db": 20.3026904, + "ref_absmax": 1.11594427, + "rel_max": 0.292223641, + "scaled_max_abs": 0.292223641 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.00365733899, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.91738319e-07, + "mean_abs": 9.09349183e-08, + "psnr_db": 146.014919, + "ref_absmax": 1.34452486, + "rel_max": 3.65733899e-07, + "scaled_max_abs": 3.65733899e-07 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.0, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 11.5288897, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.0, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 2.11790395, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0104436645, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.23977661e-05, + "mean_abs": 3.03467206e-07, + "psnr_db": 152.573303, + "ref_absmax": 11.871088, + "rel_max": 1.04436645e-06, + "scaled_max_abs": 1.04436645e-06 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "status": "pass", + "tap": "net.patch_embed", + "ungated_probes": { + "band_ratio": 0.0170664822, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.29153442e-06, + "mean_abs": 4.21279035e-07, + "psnr_db": 138.195951, + "ref_absmax": 2.51459813, + "rel_max": 1.70664822e-06, + "scaled_max_abs": 1.70664822e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0107109306, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.23977661e-05, + "mean_abs": 3.04157085e-07, + "psnr_db": 152.494897, + "ref_absmax": 11.574873, + "rel_max": 1.07109306e-06, + "scaled_max_abs": 1.07109306e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "status": "pass", + "tap": "net.pos_embed", + "ungated_probes": { + "band_ratio": 0.0115520634, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.29153442e-06, + "mean_abs": 4.21630477e-07, + "psnr_db": 141.539177, + "ref_absmax": 3.71495056, + "rel_max": 1.15520634e-06, + "scaled_max_abs": 1.15520634e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0104230299, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.23977661e-05, + "mean_abs": 3.33690815e-07, + "psnr_db": 152.451548, + "ref_absmax": 11.8945894, + "rel_max": 1.04230299e-06, + "scaled_max_abs": 1.04230299e-06 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.0", + "ungated_probes": { + "band_ratio": 0.010090513, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.529953e-06, + "mean_abs": 4.40578055e-07, + "psnr_db": 142.442878, + "ref_absmax": 4.48931885, + "rel_max": 1.0090513e-06, + "scaled_max_abs": 1.0090513e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.010200882, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.23977661e-05, + "mean_abs": 3.60024885e-07, + "psnr_db": 152.293918, + "ref_absmax": 12.1536217, + "rel_max": 1.0200882e-06, + "scaled_max_abs": 1.0200882e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.1", + "ungated_probes": { + "band_ratio": 0.0101147427, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 4.63398056e-07, + "psnr_db": 142.526885, + "ref_absmax": 4.7142787, + "rel_max": 1.01147427e-06, + "scaled_max_abs": 1.01147427e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00991027239, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.23977661e-05, + "mean_abs": 3.81327232e-07, + "psnr_db": 152.146331, + "ref_absmax": 12.5100155, + "rel_max": 9.91027239e-07, + "scaled_max_abs": 9.91027239e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.2", + "ungated_probes": { + "band_ratio": 0.0101945383, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 4.78492643e-07, + "psnr_db": 142.60423, + "ref_absmax": 4.67737865, + "rel_max": 1.01945383e-06, + "scaled_max_abs": 1.01945383e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0102217425, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.29153442e-06, + "mean_abs": 3.63295843e-07, + "psnr_db": 144.434474, + "ref_absmax": 4.19843721, + "rel_max": 1.02217425e-06, + "scaled_max_abs": 1.02217425e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "status": "pass", + "tap": "net.norm", + "ungated_probes": { + "band_ratio": 0.0104561668, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.86102295e-06, + "mean_abs": 3.12752192e-07, + "psnr_db": 141.96993, + "ref_absmax": 2.73620629, + "rel_max": 1.04561668e-06, + "scaled_max_abs": 1.04561668e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00447001768, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.38773155e-07, + "mean_abs": 1.15410119e-07, + "psnr_db": 147.353955, + "ref_absmax": 2.10015535, + "rel_max": 4.47001768e-07, + "scaled_max_abs": 4.47001768e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/Div_output_0" + }, + "status": "pass", + "tap": "net.pool", + "ungated_probes": { + "band_ratio": 0.00429241244, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 1.45344529e-07, + "psnr_db": 145.498473, + "ref_absmax": 2.22176766, + "rel_max": 4.29241244e-07, + "scaled_max_abs": 4.29241244e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00332485363, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.47034836e-07, + "mean_abs": 8.62571012e-08, + "psnr_db": 144.936077, + "ref_absmax": 1.34452486, + "rel_max": 3.32485363e-07, + "scaled_max_abs": 3.32485363e-07 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "pass", + "tap": "net.head", + "ungated_probes": { + "band_ratio": 0.00439330297, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.91738319e-07, + "mean_abs": 1.18650496e-07, + "psnr_db": 140.57347, + "ref_absmax": 1.11929071, + "rel_max": 4.39330297e-07, + "scaled_max_abs": 4.39330297e-07 + }, + "n_probes": 4 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp32", + "id": "tinyvit__baked_shape__onnx_fp32", + "model": "tinyvit", + "path": "onnx", + "variant": "baked_shape" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/tinyvit__clean__coreml_fp16.json b/bench/verdicts_calibrated4/tinyvit__clean__coreml_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..cbb8beaa401514bc78ad65b12762380f83dffc70 --- /dev/null +++ b/bench/verdicts_calibrated4/tinyvit__clean__coreml_fp16.json @@ -0,0 +1,740 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "baseline": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "faithful_output_rel_max": 0.00402825966, + "output_band": 0.01, + "source": { + "bundle": "bundles/tinyvit__clean__coreml_fp16.json", + "case": "tinyvit__clean__coreml_fp16", + "digests": { + "192": { + "converted": "0035167ec9cc06c61986ca2249819ae1510c5a12aad7eaf510988220c7579aa5", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "5430fd6da54612ccdc73a3180116c0a8d19224ecfcc7ca2d7ce9df494c8307f9", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + } + } + }, + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": false, + "note": null, + "status": "clear" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [ + "inputs[0]: dtype float16 (declared float32)", + "outputs[0]: dtype float16 (declared float32)" + ], + "status": "precision_narrowing" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "status": "clear" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp16", + "first_divergence": null, + "fp16_floor": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "baseline": { + "bundle": "bundles/tinyvit__clean__coreml_fp16.json", + "case": "tinyvit__clean__coreml_fp16", + "digests": { + "192": { + "converted": "0035167ec9cc06c61986ca2249819ae1510c5a12aad7eaf510988220c7579aa5", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "5430fd6da54612ccdc73a3180116c0a8d19224ecfcc7ca2d7ce9df494c8307f9", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + } + }, + "envelopes_gate": true, + "faithful_output_rel_max": 0.00402825966, + "faithful_tap_rel_max": { + "net.blocks.0": 0.0144004222, + "net.blocks.1": 0.0145278434, + "net.blocks.2": 0.0134661694, + "net.head": 0.00402825966, + "net.norm": 0.00711003077, + "net.patch_embed": 0.0147449007, + "net.pool": 0.00501150413, + "net.pos_embed": 0.0145772783, + "normalize": 0.00117570499 + }, + "floor": 0.01, + "k": 2.0, + "output_band": 0.01, + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used", + "tap_envelopes": { + "net.blocks.0": 0.0288008444, + "net.blocks.1": 0.0290556867, + "net.blocks.2": 0.0269323389, + "net.head": 0.01, + "net.norm": 0.0142200615, + "net.patch_embed": 0.0294898015, + "net.pool": 0.0100230083, + "net.pos_embed": 0.0291545566, + "normalize": 0.01 + } + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "0035167ec9cc06c61986ca2249819ae1510c5a12aad7eaf510988220c7579aa5", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "5430fd6da54612ccdc73a3180116c0a8d19224ecfcc7ca2d7ce9df494c8307f9", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": null, + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_limit": 0.01, + "band_ratio": 0.349849989, + "metrics": { + "corr": 0.999995654, + "finite": true, + "max_abs": 0.00442934036, + "mean_abs": 0.000622573402, + "psnr_db": 67.6041424, + "ref_absmax": 1.26606846, + "rel_max": 0.00349849989, + "scaled_max_abs": 0.00349849989 + }, + "per_op_band_ratio": 0.349849989, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 0.117570499, + "index": 0, + "metrics": { + "corr": 0.999999914, + "finite": true, + "max_abs": 0.0135545731, + "mean_abs": 0.000674526699, + "psnr_db": 83.5827466, + "ref_absmax": 11.5288897, + "rel_max": 0.00117570499, + "scaled_max_abs": 0.00117570499 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "per_op_band_ratio": 0.117570499, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.0294898015, + "band_ratio": 0.5, + "index": 1, + "metrics": { + "corr": 0.999991394, + "finite": true, + "max_abs": 0.159186363, + "mean_abs": 0.00251833586, + "psnr_db": 73.8085669, + "ref_absmax": 10.7960281, + "rel_max": 0.0147449007, + "scaled_max_abs": 0.0147449007 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_5_cast_fp16" + }, + "per_op_band_ratio": 1.47449007, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_limit": 0.0291545566, + "band_ratio": 0.5, + "index": 2, + "metrics": { + "corr": 0.999992261, + "finite": true, + "max_abs": 0.157061577, + "mean_abs": 0.00252916549, + "psnr_db": 73.7102173, + "ref_absmax": 10.7744102, + "rel_max": 0.0145772783, + "scaled_max_abs": 0.0145772783 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5_cast_fp16" + }, + "per_op_band_ratio": 1.45772783, + "status": "pass", + "tap": "net.pos_embed" + }, + { + "band_limit": 0.0288008444, + "band_ratio": 0.5, + "index": 3, + "metrics": { + "corr": 0.999992443, + "finite": true, + "max_abs": 0.15436554, + "mean_abs": 0.00271046309, + "psnr_db": 73.5671904, + "ref_absmax": 10.7195148, + "rel_max": 0.0144004222, + "scaled_max_abs": 0.0144004222 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_17_cast_fp16" + }, + "per_op_band_ratio": 1.44004222, + "status": "pass", + "tap": "net.blocks.0" + }, + { + "band_limit": 0.0290556867, + "band_ratio": 0.5, + "index": 4, + "metrics": { + "corr": 0.999992728, + "finite": true, + "max_abs": 0.159858704, + "mean_abs": 0.00289978764, + "psnr_db": 73.4913103, + "ref_absmax": 11.0036087, + "rel_max": 0.0145278434, + "scaled_max_abs": 0.0145278434 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_29_cast_fp16" + }, + "per_op_band_ratio": 1.45278434, + "status": "pass", + "tap": "net.blocks.1" + }, + { + "band_limit": 0.0269323389, + "band_ratio": 0.5, + "index": 5, + "metrics": { + "corr": 0.999992831, + "finite": true, + "max_abs": 0.152815819, + "mean_abs": 0.00305746017, + "psnr_db": 73.5262034, + "ref_absmax": 11.3481283, + "rel_max": 0.0134661694, + "scaled_max_abs": 0.0134661694 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_41_cast_fp16" + }, + "per_op_band_ratio": 1.34661694, + "status": "pass", + "tap": "net.blocks.2" + }, + { + "band_limit": 0.0142200615, + "band_ratio": 0.5, + "index": 6, + "metrics": { + "corr": 0.999993473, + "finite": true, + "max_abs": 0.0292298794, + "mean_abs": 0.00270321117, + "psnr_db": 66.7353234, + "ref_absmax": 4.11107635, + "rel_max": 0.00711003077, + "scaled_max_abs": 0.00711003077 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "per_op_band_ratio": 0.711003077, + "status": "pass", + "tap": "net.norm" + }, + { + "band_limit": 0.0100230083, + "band_ratio": 0.5, + "index": 7, + "metrics": { + "corr": 0.999997164, + "finite": true, + "max_abs": 0.0111043453, + "mean_abs": 0.000845072981, + "psnr_db": 69.8160586, + "ref_absmax": 2.21577096, + "rel_max": 0.00501150413, + "scaled_max_abs": 0.00501150413 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_cast_fp16" + }, + "per_op_band_ratio": 0.501150413, + "status": "pass", + "tap": "net.pool" + }, + { + "band_limit": 0.01, + "band_ratio": 0.349849989, + "index": 8, + "metrics": { + "corr": 0.999995654, + "finite": true, + "max_abs": 0.00442934036, + "mean_abs": 0.000622573402, + "psnr_db": 67.6041424, + "ref_absmax": 1.26606846, + "rel_max": 0.00349849989, + "scaled_max_abs": 0.00349849989 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "per_op_band_ratio": 0.349849989, + "status": "pass", + "tap": "net.head" + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_limit": 0.01, + "band_ratio": 0.402825966, + "metrics": { + "corr": 0.999995129, + "finite": true, + "max_abs": 0.00541609526, + "mean_abs": 0.000663621235, + "psnr_db": 67.1899789, + "ref_absmax": 1.34452486, + "rel_max": 0.00402825966, + "scaled_max_abs": 0.00402825966 + }, + "per_op_band_ratio": 0.402825966, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 0.116213884, + "index": 0, + "metrics": { + "corr": 0.999999912, + "finite": true, + "max_abs": 0.0133981705, + "mean_abs": 0.000679588388, + "psnr_db": 83.6184843, + "ref_absmax": 11.5288897, + "rel_max": 0.00116213884, + "scaled_max_abs": 0.00116213884 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "per_op_band_ratio": 0.116213884, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.0294898015, + "band_ratio": 0.277047602, + "index": 1, + "metrics": { + "corr": 0.999991415, + "finite": true, + "max_abs": 0.0969877243, + "mean_abs": 0.00250771621, + "psnr_db": 74.367951, + "ref_absmax": 11.871088, + "rel_max": 0.00817007877, + "scaled_max_abs": 0.00817007877 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_5_cast_fp16" + }, + "per_op_band_ratio": 0.817007877, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_limit": 0.0291545566, + "band_ratio": 0.295111447, + "index": 2, + "metrics": { + "corr": 0.999992187, + "finite": true, + "max_abs": 0.0995883942, + "mean_abs": 0.00251680124, + "psnr_db": 74.29315, + "ref_absmax": 11.574873, + "rel_max": 0.00860384338, + "scaled_max_abs": 0.00860384338 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5_cast_fp16" + }, + "per_op_band_ratio": 0.860384338, + "status": "pass", + "tap": "net.pos_embed" + }, + { + "band_limit": 0.0288008444, + "band_ratio": 0.290848015, + "index": 3, + "metrics": { + "corr": 0.999992439, + "finite": true, + "max_abs": 0.0996370316, + "mean_abs": 0.00269992927, + "psnr_db": 74.3779895, + "ref_absmax": 11.8945894, + "rel_max": 0.00837666842, + "scaled_max_abs": 0.00837666842 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_17_cast_fp16" + }, + "per_op_band_ratio": 0.837666842, + "status": "pass", + "tap": "net.blocks.0" + }, + { + "band_limit": 0.0290556867, + "band_ratio": 0.28715946, + "index": 4, + "metrics": { + "corr": 0.999992743, + "finite": true, + "max_abs": 0.101405144, + "mean_abs": 0.00289164657, + "psnr_db": 74.2749382, + "ref_absmax": 12.1536217, + "rel_max": 0.0083436153, + "scaled_max_abs": 0.0083436153 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_29_cast_fp16" + }, + "per_op_band_ratio": 0.83436153, + "status": "pass", + "tap": "net.blocks.1" + }, + { + "band_limit": 0.0269323389, + "band_ratio": 0.304064309, + "index": 5, + "metrics": { + "corr": 0.999992873, + "finite": true, + "max_abs": 0.102446556, + "mean_abs": 0.00303753381, + "psnr_db": 74.1588749, + "ref_absmax": 12.5100155, + "rel_max": 0.00818916301, + "scaled_max_abs": 0.00818916301 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_41_cast_fp16" + }, + "per_op_band_ratio": 0.818916301, + "status": "pass", + "tap": "net.blocks.2" + }, + { + "band_limit": 0.0142200615, + "band_ratio": 0.477296124, + "index": 6, + "metrics": { + "corr": 0.999993569, + "finite": true, + "max_abs": 0.0284955502, + "mean_abs": 0.00267585862, + "psnr_db": 66.9877398, + "ref_absmax": 4.19843721, + "rel_max": 0.00678718025, + "scaled_max_abs": 0.00678718025 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "per_op_band_ratio": 0.678718025, + "status": "pass", + "tap": "net.norm" + }, + { + "band_limit": 0.0100230083, + "band_ratio": 0.477248377, + "index": 7, + "metrics": { + "corr": 0.99999748, + "finite": true, + "max_abs": 0.0106277466, + "mean_abs": 0.000813371892, + "psnr_db": 69.9111582, + "ref_absmax": 2.22176766, + "rel_max": 0.00478346443, + "scaled_max_abs": 0.00478346443 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_cast_fp16" + }, + "per_op_band_ratio": 0.478346443, + "status": "pass", + "tap": "net.pool" + }, + { + "band_limit": 0.01, + "band_ratio": 0.402825966, + "index": 8, + "metrics": { + "corr": 0.999995129, + "finite": true, + "max_abs": 0.00541609526, + "mean_abs": 0.000663621235, + "psnr_db": 67.1899789, + "ref_absmax": 1.34452486, + "rel_max": 0.00402825966, + "scaled_max_abs": 0.00402825966 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "per_op_band_ratio": 0.402825966, + "status": "pass", + "tap": "net.head" + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp16", + "id": "tinyvit__clean__coreml_fp16", + "model": "tinyvit", + "path": "coreml", + "variant": "clean" + }, + "tap_bands_gate": true, + "verdict": "PASS" +} diff --git a/bench/verdicts_calibrated4/tinyvit__clean__coreml_fp32.json b/bench/verdicts_calibrated4/tinyvit__clean__coreml_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..43d1a59b3e853091bcbc16508f0cd97c566f35bd --- /dev/null +++ b/bench/verdicts_calibrated4/tinyvit__clean__coreml_fp32.json @@ -0,0 +1,945 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": false, + "note": null, + "status": "clear" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "status": "clear" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp32", + "first_divergence": null, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "d6d2a7884f8cb6e86e7c5d7f8d4962a6994aaed3940af696bf084c72c2d9a44b", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "49363dac389cca779b428b1ff97c1abbc4d133fd0d765733adc74d7dcec74e73", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "fp32 per-tap band on near-zero probes", + "reason": "C3-2: per-tap fp32 checks gate without the near_zero probes; they are measured and reported per tap ('ungated_probes'); the output gates on all probes. C4-1: when the output has failed and no gated tap fails, they localise the first divergence (earliest tap over band on all probes)" + }, + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": null, + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.00235392661, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.98023224e-07, + "mean_abs": 6.39876816e-08, + "psnr_db": 148.653017, + "ref_absmax": 1.26606846, + "rel_max": 2.35392661e-07, + "scaled_max_abs": 2.35392661e-07 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.06644368e-08, + "psnr_db": 164.113247, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.00112572895, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.38418579e-07, + "mean_abs": 4.66593688e-08, + "psnr_db": 130.397207, + "ref_absmax": 2.11790395, + "rel_max": 1.12572895e-07, + "scaled_max_abs": 1.12572895e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00441678321, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 9.88855124e-08, + "psnr_db": 161.464618, + "ref_absmax": 10.7960281, + "rel_max": 4.41678321e-07, + "scaled_max_abs": 4.41678321e-07 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_5" + }, + "status": "pass", + "tap": "net.patch_embed", + "ungated_probes": { + "band_ratio": 0.00474265635, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.1920929e-06, + "mean_abs": 1.5130268e-07, + "psnr_db": 147.535676, + "ref_absmax": 2.51355529, + "rel_max": 4.74265635e-07, + "scaled_max_abs": 4.74265635e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00442564509, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 1.02395989e-07, + "psnr_db": 161.205396, + "ref_absmax": 10.7744102, + "rel_max": 4.42564509e-07, + "scaled_max_abs": 4.42564509e-07 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5" + }, + "status": "pass", + "tap": "net.pos_embed", + "ungated_probes": { + "band_ratio": 0.00372250373, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-06, + "mean_abs": 1.53844187e-07, + "psnr_db": 150.879134, + "ref_absmax": 3.84287453, + "rel_max": 3.72250373e-07, + "scaled_max_abs": 3.72250373e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00444830914, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 1.32210313e-07, + "psnr_db": 160.202754, + "ref_absmax": 10.7195148, + "rel_max": 4.44830914e-07, + "scaled_max_abs": 4.44830914e-07 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_17" + }, + "status": "pass", + "tap": "net.blocks.0", + "ungated_probes": { + "band_ratio": 0.00319021497, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-06, + "mean_abs": 1.80076566e-07, + "psnr_db": 150.836238, + "ref_absmax": 4.48405981, + "rel_max": 3.19021497e-07, + "scaled_max_abs": 3.19021497e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00520015392, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.7220459e-06, + "mean_abs": 1.59003997e-07, + "psnr_db": 159.358395, + "ref_absmax": 11.0036087, + "rel_max": 5.20015392e-07, + "scaled_max_abs": 5.20015392e-07 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_29" + }, + "status": "pass", + "tap": "net.blocks.1", + "ungated_probes": { + "band_ratio": 0.00405042578, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.90734863e-06, + "mean_abs": 2.06149556e-07, + "psnr_db": 150.084957, + "ref_absmax": 4.70900774, + "rel_max": 4.05042578e-07, + "scaled_max_abs": 4.05042578e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00504228163, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.7220459e-06, + "mean_abs": 1.80415682e-07, + "psnr_db": 158.848975, + "ref_absmax": 11.3481283, + "rel_max": 5.04228163e-07, + "scaled_max_abs": 5.04228163e-07 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_41" + }, + "status": "pass", + "tap": "net.blocks.2", + "ungated_probes": { + "band_ratio": 0.00408237123, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.90734863e-06, + "mean_abs": 2.27423571e-07, + "psnr_db": 149.592356, + "ref_absmax": 4.67215872, + "rel_max": 4.08237123e-07, + "scaled_max_abs": 4.08237123e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0046395359, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.90734863e-06, + "mean_abs": 1.87305873e-07, + "psnr_db": 150.048256, + "ref_absmax": 4.11107635, + "rel_max": 4.6395359e-07, + "scaled_max_abs": 4.6395359e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x" + }, + "status": "pass", + "tap": "net.norm", + "ungated_probes": { + "band_ratio": 0.00427604688, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.1920929e-06, + "mean_abs": 1.49934592e-07, + "psnr_db": 148.718285, + "ref_absmax": 2.7878387, + "rel_max": 4.27604688e-07, + "scaled_max_abs": 4.27604688e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00471976624, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 6.80504237e-08, + "psnr_db": 151.546942, + "ref_absmax": 2.0205965, + "rel_max": 4.71976624e-07, + "scaled_max_abs": 4.71976624e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_1" + }, + "status": "pass", + "tap": "net.pool", + "ungated_probes": { + "band_ratio": 0.00322802199, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.15255737e-07, + "mean_abs": 1.19718607e-07, + "psnr_db": 147.501008, + "ref_absmax": 2.21577096, + "rel_max": 3.22802199e-07, + "scaled_max_abs": 3.22802199e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00235392661, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.98023224e-07, + "mean_abs": 5.70302031e-08, + "psnr_db": 148.069318, + "ref_absmax": 1.26606846, + "rel_max": 2.35392661e-07, + "scaled_max_abs": 2.35392661e-07 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "pass", + "tap": "net.head", + "ungated_probes": { + "band_ratio": 0.00267059237, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.98023224e-07, + "mean_abs": 1.12690032e-07, + "psnr_db": 141.665643, + "ref_absmax": 1.11594427, + "rel_max": 2.67059237e-07, + "scaled_max_abs": 2.67059237e-07 + }, + "n_probes": 4 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.00354651054, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-07, + "mean_abs": 7.67468009e-08, + "psnr_db": 147.311609, + "ref_absmax": 1.34452486, + "rel_max": 3.54651054e-07, + "scaled_max_abs": 3.54651054e-07 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.08107465e-08, + "psnr_db": 164.245493, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.00112572895, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.38418579e-07, + "mean_abs": 4.66724468e-08, + "psnr_db": 130.436578, + "ref_absmax": 2.11790395, + "rel_max": 1.12572895e-07, + "scaled_max_abs": 1.12572895e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00321343524, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.81469727e-06, + "mean_abs": 1.00363271e-07, + "psnr_db": 161.89068, + "ref_absmax": 11.871088, + "rel_max": 3.21343524e-07, + "scaled_max_abs": 3.21343524e-07 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_5" + }, + "status": "pass", + "tap": "net.patch_embed", + "ungated_probes": { + "band_ratio": 0.0066369653, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.66893005e-06, + "mean_abs": 1.54185654e-07, + "psnr_db": 147.371009, + "ref_absmax": 2.51459813, + "rel_max": 6.6369653e-07, + "scaled_max_abs": 6.6369653e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00411958869, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 1.03226907e-07, + "psnr_db": 161.675356, + "ref_absmax": 11.574873, + "rel_max": 4.11958869e-07, + "scaled_max_abs": 4.11958869e-07 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5" + }, + "status": "pass", + "tap": "net.pos_embed", + "ungated_probes": { + "band_ratio": 0.00449246908, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.66893005e-06, + "mean_abs": 1.56293509e-07, + "psnr_db": 150.563555, + "ref_absmax": 3.71495056, + "rel_max": 4.49246908e-07, + "scaled_max_abs": 4.49246908e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00400885765, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 1.33781857e-07, + "psnr_db": 160.884376, + "ref_absmax": 11.8945894, + "rel_max": 4.00885765e-07, + "scaled_max_abs": 4.00885765e-07 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_17" + }, + "status": "pass", + "tap": "net.blocks.0", + "ungated_probes": { + "band_ratio": 0.00398309722, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.78813934e-06, + "mean_abs": 1.83840888e-07, + "psnr_db": 150.529679, + "ref_absmax": 4.48931885, + "rel_max": 3.98309722e-07, + "scaled_max_abs": 3.98309722e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00392341617, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 1.61500538e-07, + "psnr_db": 160.020088, + "ref_absmax": 12.1536217, + "rel_max": 3.92341617e-07, + "scaled_max_abs": 3.92341617e-07 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_29" + }, + "status": "pass", + "tap": "net.blocks.1", + "ungated_probes": { + "band_ratio": 0.00354015993, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.66893005e-06, + "mean_abs": 2.11576616e-07, + "psnr_db": 149.780509, + "ref_absmax": 4.7142787, + "rel_max": 3.54015993e-07, + "scaled_max_abs": 3.54015993e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00381164323, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 1.83644799e-07, + "psnr_db": 159.321607, + "ref_absmax": 12.5100155, + "rel_max": 3.81164323e-07, + "scaled_max_abs": 3.81164323e-07 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_41" + }, + "status": "pass", + "tap": "net.blocks.2", + "ungated_probes": { + "band_ratio": 0.00407781532, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.90734863e-06, + "mean_abs": 2.33471596e-07, + "psnr_db": 149.249265, + "ref_absmax": 4.67737865, + "rel_max": 4.07781532e-07, + "scaled_max_abs": 4.07781532e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00340724751, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-06, + "mean_abs": 1.89736057e-07, + "psnr_db": 150.127772, + "ref_absmax": 4.19843721, + "rel_max": 3.40724751e-07, + "scaled_max_abs": 3.40724751e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x" + }, + "status": "pass", + "tap": "net.norm", + "ungated_probes": { + "band_ratio": 0.00435673618, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.1920929e-06, + "mean_abs": 1.54496742e-07, + "psnr_db": 148.333414, + "ref_absmax": 2.73620629, + "rel_max": 4.35673618e-07, + "scaled_max_abs": 4.35673618e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00567621292, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.1920929e-06, + "mean_abs": 8.24410823e-08, + "psnr_db": 149.965892, + "ref_absmax": 2.10015535, + "rel_max": 5.67621292e-07, + "scaled_max_abs": 5.67621292e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_1" + }, + "status": "pass", + "tap": "net.pool", + "ungated_probes": { + "band_ratio": 0.00536551555, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.1920929e-06, + "mean_abs": 1.53158908e-07, + "psnr_db": 145.338985, + "ref_absmax": 2.22176766, + "rel_max": 5.36551555e-07, + "scaled_max_abs": 5.36551555e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00354651054, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-07, + "mean_abs": 7.03082021e-08, + "psnr_db": 146.820221, + "ref_absmax": 1.34452486, + "rel_max": 3.54651054e-07, + "scaled_max_abs": 3.54651054e-07 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "pass", + "tap": "net.head", + "ungated_probes": { + "band_ratio": 0.00399391179, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.47034836e-07, + "mean_abs": 1.21816993e-07, + "psnr_db": 140.041035, + "ref_absmax": 1.11929071, + "rel_max": 3.99391179e-07, + "scaled_max_abs": 3.99391179e-07 + }, + "n_probes": 4 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp32", + "id": "tinyvit__clean__coreml_fp32", + "model": "tinyvit", + "path": "coreml", + "variant": "clean" + }, + "tap_bands_gate": true, + "verdict": "PASS" +} diff --git a/bench/verdicts_calibrated4/tinyvit__clean__litert_fp16.json b/bench/verdicts_calibrated4/tinyvit__clean__litert_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..659a1ce98395006e5766ea85f17b521b7269ff2c --- /dev/null +++ b/bench/verdicts_calibrated4/tinyvit__clean__litert_fp16.json @@ -0,0 +1,766 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "baseline": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "faithful_output_rel_max": 0.000208557898, + "output_band": 0.01, + "source": { + "bundle": "bundles/tinyvit__clean__litert_fp16.json", + "case": "tinyvit__clean__litert_fp16", + "digests": { + "192": { + "converted": "170133fb2c750896c9b9cfaed4c8aab6b2e92dd28e9a0114b604c6d35736d93d", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "e6f67f478f27c5cbe93fb3192583b8c4adeb54f48117f07895a6c68beeb1c827", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + } + } + }, + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": false, + "note": null, + "status": "clear" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 1.55154223e-05, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.08616257e-07, + "mean_abs": 4.28262865e-08, + "psnr_db": 152.601588, + "ref_absmax": 1.3445735, + "rel_max": 1.55154223e-07, + "scaled_max_abs": 1.55154223e-07 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 57, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 1, + "n_ops_total": 187, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "status": "clear" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp16", + "first_divergence": null, + "fp16_floor": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "baseline": { + "bundle": "bundles/tinyvit__clean__litert_fp16.json", + "case": "tinyvit__clean__litert_fp16", + "digests": { + "192": { + "converted": "170133fb2c750896c9b9cfaed4c8aab6b2e92dd28e9a0114b604c6d35736d93d", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "e6f67f478f27c5cbe93fb3192583b8c4adeb54f48117f07895a6c68beeb1c827", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + } + }, + "envelopes_gate": true, + "faithful_output_rel_max": 0.000208557898, + "faithful_tap_rel_max": { + "net.blocks.0": 0.000279738087, + "net.blocks.1": 0.000270794184, + "net.blocks.2": 0.000256599822, + "net.head": 0.000208557898, + "net.norm": 0.000310450195, + "net.patch_embed": 0.000277319462, + "net.pool": 0.000243123856, + "net.pos_embed": 0.000284416403, + "normalize": 8.27203959e-08 + }, + "floor": 0.01, + "k": 2.0, + "output_band": 0.01, + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used", + "tap_envelopes": { + "net.blocks.0": 0.01, + "net.blocks.1": 0.01, + "net.blocks.2": 0.01, + "net.head": 0.01, + "net.norm": 0.01, + "net.patch_embed": 0.01, + "net.pool": 0.01, + "net.pos_embed": 0.01, + "normalize": 0.01 + } + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "170133fb2c750896c9b9cfaed4c8aab6b2e92dd28e9a0114b604c6d35736d93d", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "e6f67f478f27c5cbe93fb3192583b8c4adeb54f48117f07895a6c68beeb1c827", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": null, + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_limit": 0.01, + "band_ratio": 0.0208557898, + "metrics": { + "corr": 0.999999962, + "finite": true, + "max_abs": 0.000264048576, + "mean_abs": 7.30160158e-05, + "psnr_db": 88.0747128, + "ref_absmax": 1.26606846, + "rel_max": 0.000208557898, + "scaled_max_abs": 0.000208557898 + }, + "per_op_band_ratio": 0.0208557898, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 8.27203959e-06, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.26638033e-08, + "psnr_db": 163.904618, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "per_op_band_ratio": 8.27203959e-06, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0238484209, + "index": 1, + "metrics": { + "corr": 0.999999975, + "finite": true, + "max_abs": 0.00257468224, + "mean_abs": 0.000153147335, + "psnr_db": 99.1308904, + "ref_absmax": 10.7960281, + "rel_max": 0.000238484209, + "scaled_max_abs": 0.000238484209 + }, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;2" + }, + "per_op_band_ratio": 0.0238484209, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0238962707, + "index": 2, + "metrics": { + "corr": 0.999999977, + "finite": true, + "max_abs": 0.00257468224, + "mean_abs": 0.000153147282, + "psnr_db": 99.0500481, + "ref_absmax": 10.7744102, + "rel_max": 0.000238962707, + "scaled_max_abs": 0.000238962707 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;3" + }, + "per_op_band_ratio": 0.0238962707, + "status": "pass", + "tap": "net.pos_embed" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0248371341, + "index": 3, + "metrics": { + "corr": 0.999999975, + "finite": true, + "max_abs": 0.00266242027, + "mean_abs": 0.000175715531, + "psnr_db": 98.3929002, + "ref_absmax": 10.7195148, + "rel_max": 0.000248371341, + "scaled_max_abs": 0.000248371341 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "per_op_band_ratio": 0.0248371341, + "status": "pass", + "tap": "net.blocks.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0244428902, + "index": 4, + "metrics": { + "corr": 0.999999975, + "finite": true, + "max_abs": 0.00268959999, + "mean_abs": 0.000194126271, + "psnr_db": 98.0679496, + "ref_absmax": 11.0036087, + "rel_max": 0.000244428902, + "scaled_max_abs": 0.000244428902 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "per_op_band_ratio": 0.0244428902, + "status": "pass", + "tap": "net.blocks.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0249340827, + "index": 5, + "metrics": { + "corr": 0.999999975, + "finite": true, + "max_abs": 0.0028295517, + "mean_abs": 0.000204465949, + "psnr_db": 98.0757778, + "ref_absmax": 11.3481283, + "rel_max": 0.000249340827, + "scaled_max_abs": 0.000249340827 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "per_op_band_ratio": 0.0249340827, + "status": "pass", + "tap": "net.blocks.2" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0310450195, + "index": 6, + "metrics": { + "corr": 0.999999972, + "finite": true, + "max_abs": 0.00127628446, + "mean_abs": 0.000187560799, + "psnr_db": 90.4287298, + "ref_absmax": 4.11107635, + "rel_max": 0.000310450195, + "scaled_max_abs": 0.000310450195 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "per_op_band_ratio": 0.0310450195, + "status": "pass", + "tap": "net.norm" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0243123856, + "index": 7, + "metrics": { + "corr": 0.999999971, + "finite": true, + "max_abs": 0.000538706779, + "mean_abs": 0.000104170572, + "psnr_db": 89.7874492, + "ref_absmax": 2.21577096, + "rel_max": 0.000243123856, + "scaled_max_abs": 0.000243123856 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "per_op_band_ratio": 0.0243123856, + "status": "pass", + "tap": "net.pool" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0208557898, + "index": 8, + "metrics": { + "corr": 0.999999962, + "finite": true, + "max_abs": 0.000264048576, + "mean_abs": 7.30160158e-05, + "psnr_db": 88.0747128, + "ref_absmax": 1.26606846, + "rel_max": 0.000208557898, + "scaled_max_abs": 0.000208557898 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "per_op_band_ratio": 0.0208557898, + "status": "pass", + "tap": "net.head" + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_limit": 0.01, + "band_ratio": 0.0197939619, + "metrics": { + "corr": 0.999999958, + "finite": true, + "max_abs": 0.000266134739, + "mean_abs": 7.85663025e-05, + "psnr_db": 87.7638046, + "ref_absmax": 1.34452486, + "rel_max": 0.000197939619, + "scaled_max_abs": 0.000197939619 + }, + "per_op_band_ratio": 0.0197939619, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 8.27203959e-06, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.2793459e-08, + "psnr_db": 164.013874, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "per_op_band_ratio": 8.27203959e-06, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0277319462, + "index": 1, + "metrics": { + "corr": 0.999999975, + "finite": true, + "max_abs": 0.00329208374, + "mean_abs": 0.00015256364, + "psnr_db": 99.7212805, + "ref_absmax": 11.871088, + "rel_max": 0.000277319462, + "scaled_max_abs": 0.000277319462 + }, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;2" + }, + "per_op_band_ratio": 0.0277319462, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0284416403, + "index": 2, + "metrics": { + "corr": 0.999999977, + "finite": true, + "max_abs": 0.00329208374, + "mean_abs": 0.000152563603, + "psnr_db": 99.6624604, + "ref_absmax": 11.574873, + "rel_max": 0.000284416403, + "scaled_max_abs": 0.000284416403 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;3" + }, + "per_op_band_ratio": 0.0284416403, + "status": "pass", + "tap": "net.pos_embed" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0279738087, + "index": 3, + "metrics": { + "corr": 0.999999975, + "finite": true, + "max_abs": 0.00332736969, + "mean_abs": 0.000176384194, + "psnr_db": 99.194827, + "ref_absmax": 11.8945894, + "rel_max": 0.000279738087, + "scaled_max_abs": 0.000279738087 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "per_op_band_ratio": 0.0279738087, + "status": "pass", + "tap": "net.blocks.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0270794184, + "index": 4, + "metrics": { + "corr": 0.999999974, + "finite": true, + "max_abs": 0.00329113007, + "mean_abs": 0.000196887379, + "psnr_db": 98.8068327, + "ref_absmax": 12.1536217, + "rel_max": 0.000270794184, + "scaled_max_abs": 0.000270794184 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "per_op_band_ratio": 0.0270794184, + "status": "pass", + "tap": "net.blocks.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0256599822, + "index": 5, + "metrics": { + "corr": 0.999999975, + "finite": true, + "max_abs": 0.00321006775, + "mean_abs": 0.000207746592, + "psnr_db": 98.6389943, + "ref_absmax": 12.5100155, + "rel_max": 0.000256599822, + "scaled_max_abs": 0.000256599822 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "per_op_band_ratio": 0.0256599822, + "status": "pass", + "tap": "net.blocks.2" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0284519364, + "index": 6, + "metrics": { + "corr": 0.999999972, + "finite": true, + "max_abs": 0.00119453669, + "mean_abs": 0.000190440265, + "psnr_db": 90.5400099, + "ref_absmax": 4.19843721, + "rel_max": 0.000284519364, + "scaled_max_abs": 0.000284519364 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "per_op_band_ratio": 0.0284519364, + "status": "pass", + "tap": "net.norm" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0238872752, + "index": 7, + "metrics": { + "corr": 0.99999997, + "finite": true, + "max_abs": 0.000530719757, + "mean_abs": 0.000113873221, + "psnr_db": 89.1445653, + "ref_absmax": 2.22176766, + "rel_max": 0.000238872752, + "scaled_max_abs": 0.000238872752 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "per_op_band_ratio": 0.0238872752, + "status": "pass", + "tap": "net.pool" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0197939619, + "index": 8, + "metrics": { + "corr": 0.999999958, + "finite": true, + "max_abs": 0.000266134739, + "mean_abs": 7.85663025e-05, + "psnr_db": 87.7638046, + "ref_absmax": 1.34452486, + "rel_max": 0.000197939619, + "scaled_max_abs": 0.000197939619 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "per_op_band_ratio": 0.0197939619, + "status": "pass", + "tap": "net.head" + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp16", + "id": "tinyvit__clean__litert_fp16", + "model": "tinyvit", + "path": "litert", + "variant": "clean" + }, + "tap_bands_gate": true, + "verdict": "PASS" +} diff --git a/bench/verdicts_calibrated4/tinyvit__clean__litert_fp32.json b/bench/verdicts_calibrated4/tinyvit__clean__litert_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..bad9616918e3ea3af05203413df1fbab8a89d22a --- /dev/null +++ b/bench/verdicts_calibrated4/tinyvit__clean__litert_fp32.json @@ -0,0 +1,975 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": false, + "note": null, + "status": "clear" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 0.00132994157, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.78813934e-07, + "mean_abs": 4.3772161e-08, + "psnr_db": 152.770609, + "ref_absmax": 1.34452474, + "rel_max": 1.32994157e-07, + "scaled_max_abs": 1.32994157e-07 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 57, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 1, + "n_ops_total": 173, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "status": "clear" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp32", + "first_divergence": null, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "5d1fd9790b63bb8a58baaef2bdae20ab879f1d5615b25289a186201443a73853", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "b5cc311c90efc0c4346255b47684af424f4ddf50a0a8488c41e68f800fe2dd19", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "fp32 per-tap band on near-zero probes", + "reason": "C3-2: per-tap fp32 checks gate without the near_zero probes; they are measured and reported per tap ('ungated_probes'); the output gates on all probes. C4-1: when the output has failed and no gated tap fails, they localise the first divergence (earliest tap over band on all probes)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": null, + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.00364858625, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.61935997e-07, + "mean_abs": 7.83940777e-08, + "psnr_db": 146.968018, + "ref_absmax": 1.26606846, + "rel_max": 3.64858625e-07, + "scaled_max_abs": 3.64858625e-07 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.06644368e-08, + "psnr_db": 164.113247, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.00112572895, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.38418579e-07, + "mean_abs": 4.66593688e-08, + "psnr_db": 130.397207, + "ref_absmax": 2.11790395, + "rel_max": 1.12572895e-07, + "scaled_max_abs": 1.12572895e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.013692028, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.47819519e-05, + "mean_abs": 3.62527481e-07, + "psnr_db": 150.740789, + "ref_absmax": 10.7960281, + "rel_max": 1.3692028e-06, + "scaled_max_abs": 1.3692028e-06 + }, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;2" + }, + "status": "pass", + "tap": "net.patch_embed", + "ungated_probes": { + "band_ratio": 0.0180220941, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.529953e-06, + "mean_abs": 4.841953e-07, + "psnr_db": 137.220487, + "ref_absmax": 2.51355529, + "rel_max": 1.80220941e-06, + "scaled_max_abs": 1.80220941e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0137194998, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.47819519e-05, + "mean_abs": 3.63416014e-07, + "psnr_db": 150.644745, + "ref_absmax": 10.7744102, + "rel_max": 1.37194998e-06, + "scaled_max_abs": 1.37194998e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;3" + }, + "status": "pass", + "tap": "net.pos_embed", + "ungated_probes": { + "band_ratio": 0.0120981371, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.64916229e-06, + "mean_abs": 4.8529616e-07, + "psnr_db": 140.716929, + "ref_absmax": 3.84287453, + "rel_max": 1.20981371e-06, + "scaled_max_abs": 1.20981371e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0133449274, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-05, + "mean_abs": 3.90630877e-07, + "psnr_db": 150.441385, + "ref_absmax": 10.7195148, + "rel_max": 1.33449274e-06, + "scaled_max_abs": 1.33449274e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.0", + "ungated_probes": { + "band_ratio": 0.0101023474, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.529953e-06, + "mean_abs": 5.03142903e-07, + "psnr_db": 141.614723, + "ref_absmax": 4.48405981, + "rel_max": 1.01023474e-06, + "scaled_max_abs": 1.01023474e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0130003848, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-05, + "mean_abs": 4.1390341e-07, + "psnr_db": 150.370016, + "ref_absmax": 11.0036087, + "rel_max": 1.30003848e-06, + "scaled_max_abs": 1.30003848e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.1", + "ungated_probes": { + "band_ratio": 0.00987291283, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.64916229e-06, + "mean_abs": 5.23810185e-07, + "psnr_db": 141.674258, + "ref_absmax": 4.70900774, + "rel_max": 9.87291283e-07, + "scaled_max_abs": 9.87291283e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0126057041, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-05, + "mean_abs": 4.34103036e-07, + "psnr_db": 150.446413, + "ref_absmax": 11.3481283, + "rel_max": 1.26057041e-06, + "scaled_max_abs": 1.26057041e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.2", + "ungated_probes": { + "band_ratio": 0.0102059281, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 5.38784295e-07, + "psnr_db": 141.827963, + "ref_absmax": 4.67215872, + "rel_max": 1.02059281e-06, + "scaled_max_abs": 1.02059281e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0104389558, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.29153442e-06, + "mean_abs": 4.09872673e-07, + "psnr_db": 143.228282, + "ref_absmax": 4.11107635, + "rel_max": 1.04389558e-06, + "scaled_max_abs": 1.04389558e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "status": "pass", + "tap": "net.norm", + "ungated_probes": { + "band_ratio": 0.0111177219, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.09944153e-06, + "mean_abs": 3.46622027e-07, + "psnr_db": 141.341254, + "ref_absmax": 2.7878387, + "rel_max": 1.11177219e-06, + "scaled_max_abs": 1.11177219e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00486725893, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.83476639e-07, + "mean_abs": 1.04746813e-07, + "psnr_db": 147.907148, + "ref_absmax": 2.0205965, + "rel_max": 4.86725893e-07, + "scaled_max_abs": 4.86725893e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "status": "pass", + "tap": "net.pool", + "ungated_probes": { + "band_ratio": 0.00322802199, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.15255737e-07, + "mean_abs": 1.1715747e-07, + "psnr_db": 147.755512, + "ref_absmax": 2.21577096, + "rel_max": 3.22802199e-07, + "scaled_max_abs": 3.22802199e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00364858625, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.61935997e-07, + "mean_abs": 7.44525875e-08, + "psnr_db": 145.73722, + "ref_absmax": 1.26606846, + "rel_max": 3.64858625e-07, + "scaled_max_abs": 3.64858625e-07 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "pass", + "tap": "net.head", + "ungated_probes": { + "band_ratio": 0.00240353313, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.68220901e-07, + "mean_abs": 1.05984509e-07, + "psnr_db": 142.147625, + "ref_absmax": 1.11594427, + "rel_max": 2.40353313e-07, + "scaled_max_abs": 2.40353313e-07 + }, + "n_probes": 4 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.00354651054, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-07, + "mean_abs": 8.9162495e-08, + "psnr_db": 146.224752, + "ref_absmax": 1.34452486, + "rel_max": 3.54651054e-07, + "scaled_max_abs": 3.54651054e-07 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.08107465e-08, + "psnr_db": 164.245493, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.00112572895, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.38418579e-07, + "mean_abs": 4.66724468e-08, + "psnr_db": 130.436578, + "ref_absmax": 2.11790395, + "rel_max": 1.12572895e-07, + "scaled_max_abs": 1.12572895e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0120503822, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-05, + "mean_abs": 3.61783837e-07, + "psnr_db": 151.297602, + "ref_absmax": 11.871088, + "rel_max": 1.20503822e-06, + "scaled_max_abs": 1.20503822e-06 + }, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;2" + }, + "status": "pass", + "tap": "net.patch_embed", + "ungated_probes": { + "band_ratio": 0.0218071717, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.48362732e-06, + "mean_abs": 4.85357549e-07, + "psnr_db": 137.211056, + "ref_absmax": 2.51459813, + "rel_max": 2.18071717e-06, + "scaled_max_abs": 2.18071717e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0123587661, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-05, + "mean_abs": 3.62607432e-07, + "psnr_db": 151.221115, + "ref_absmax": 11.574873, + "rel_max": 1.23587661e-06, + "scaled_max_abs": 1.23587661e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;3" + }, + "status": "pass", + "tap": "net.pos_embed", + "ungated_probes": { + "band_ratio": 0.0147609698, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.48362732e-06, + "mean_abs": 4.85683925e-07, + "psnr_db": 140.560247, + "ref_absmax": 3.71495056, + "rel_max": 1.47609698e-06, + "scaled_max_abs": 1.47609698e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.012026573, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-05, + "mean_abs": 3.90495829e-07, + "psnr_db": 151.23837, + "ref_absmax": 11.8945894, + "rel_max": 1.2026573e-06, + "scaled_max_abs": 1.2026573e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.0", + "ungated_probes": { + "band_ratio": 0.0130114509, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.84125519e-06, + "mean_abs": 5.0340425e-07, + "psnr_db": 141.475988, + "ref_absmax": 4.48931885, + "rel_max": 1.30114509e-06, + "scaled_max_abs": 1.30114509e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0109855653, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33514404e-05, + "mean_abs": 4.15569578e-07, + "psnr_db": 151.133586, + "ref_absmax": 12.1536217, + "rel_max": 1.09855653e-06, + "scaled_max_abs": 1.09855653e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.1", + "ungated_probes": { + "band_ratio": 0.0126434283, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.96046448e-06, + "mean_abs": 5.25648263e-07, + "psnr_db": 141.57817, + "ref_absmax": 4.7142787, + "rel_max": 1.26434283e-06, + "scaled_max_abs": 1.26434283e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.010672601, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33514404e-05, + "mean_abs": 4.36010547e-07, + "psnr_db": 151.026245, + "ref_absmax": 12.5100155, + "rel_max": 1.0672601e-06, + "scaled_max_abs": 1.0672601e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.2", + "ungated_probes": { + "band_ratio": 0.0127431729, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.96046448e-06, + "mean_abs": 5.40419376e-07, + "psnr_db": 141.681128, + "ref_absmax": 4.67737865, + "rel_max": 1.27431729e-06, + "scaled_max_abs": 1.27431729e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0122093036, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.12599945e-06, + "mean_abs": 4.08445907e-07, + "psnr_db": 143.426344, + "ref_absmax": 4.19843721, + "rel_max": 1.22093036e-06, + "scaled_max_abs": 1.22093036e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "status": "pass", + "tap": "net.norm", + "ungated_probes": { + "band_ratio": 0.0126345349, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.4570694e-06, + "mean_abs": 3.47359721e-07, + "psnr_db": 141.184392, + "ref_absmax": 2.73620629, + "rel_max": 1.26345349e-06, + "scaled_max_abs": 1.26345349e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00546335494, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.14738941e-06, + "mean_abs": 1.21961542e-07, + "psnr_db": 147.110197, + "ref_absmax": 2.10015535, + "rel_max": 5.46335494e-07, + "scaled_max_abs": 5.46335494e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "status": "pass", + "tap": "net.pool", + "ungated_probes": { + "band_ratio": 0.004828964, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.07288361e-06, + "mean_abs": 1.45941158e-07, + "psnr_db": 145.343303, + "ref_absmax": 2.22176766, + "rel_max": 4.828964e-07, + "scaled_max_abs": 4.828964e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00310319672, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.17232513e-07, + "mean_abs": 8.47902681e-08, + "psnr_db": 145.441626, + "ref_absmax": 1.34452486, + "rel_max": 3.10319672e-07, + "scaled_max_abs": 3.10319672e-07 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "pass", + "tap": "net.head", + "ungated_probes": { + "band_ratio": 0.00426017257, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-07, + "mean_abs": 1.19768083e-07, + "psnr_db": 139.759099, + "ref_absmax": 1.11929071, + "rel_max": 4.26017257e-07, + "scaled_max_abs": 4.26017257e-07 + }, + "n_probes": 4 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp32", + "id": "tinyvit__clean__litert_fp32", + "model": "tinyvit", + "path": "litert", + "variant": "clean" + }, + "tap_bands_gate": true, + "verdict": "PASS" +} diff --git a/bench/verdicts_calibrated4/tinyvit__clean__onnx_fp16.json b/bench/verdicts_calibrated4/tinyvit__clean__onnx_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..156938736d0d63df81ac1d29f4412629401cfe40 --- /dev/null +++ b/bench/verdicts_calibrated4/tinyvit__clean__onnx_fp16.json @@ -0,0 +1,737 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "baseline": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "faithful_output_rel_max": 0.000456508758, + "output_band": 0.01, + "source": { + "bundle": "bundles/tinyvit__clean__onnx_fp16.json", + "case": "tinyvit__clean__onnx_fp16", + "digests": { + "192": { + "converted": "256af465b0649a975fd83c261b17d7830bd11a36abe6723c11a591e4649ad014", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "4e990e5a6766e80eea68d854f1db627a391a6a25b03b20781b4f30f0c5c65cf1", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + } + } + }, + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": false, + "note": null, + "status": "clear" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "status": "clear" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp16", + "first_divergence": null, + "fp16_floor": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "baseline": { + "bundle": "bundles/tinyvit__clean__onnx_fp16.json", + "case": "tinyvit__clean__onnx_fp16", + "digests": { + "192": { + "converted": "256af465b0649a975fd83c261b17d7830bd11a36abe6723c11a591e4649ad014", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "4e990e5a6766e80eea68d854f1db627a391a6a25b03b20781b4f30f0c5c65cf1", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + } + }, + "envelopes_gate": true, + "faithful_output_rel_max": 0.000456508758, + "faithful_tap_rel_max": { + "net.blocks.0": 0.000642335839, + "net.blocks.1": 0.000711207718, + "net.blocks.2": 0.000762561059, + "net.head": 0.000463029134, + "net.norm": 0.000851897059, + "net.patch_embed": 0.000469161546, + "net.pool": 0.00079208262, + "net.pos_embed": 0.0007491884, + "normalize": 0.000441313312 + }, + "floor": 0.01, + "k": 2.0, + "output_band": 0.01, + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used", + "tap_envelopes": { + "net.blocks.0": 0.01, + "net.blocks.1": 0.01, + "net.blocks.2": 0.01, + "net.head": 0.01, + "net.norm": 0.01, + "net.patch_embed": 0.01, + "net.pool": 0.01, + "net.pos_embed": 0.01, + "normalize": 0.01 + } + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "256af465b0649a975fd83c261b17d7830bd11a36abe6723c11a591e4649ad014", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "4e990e5a6766e80eea68d854f1db627a391a6a25b03b20781b4f30f0c5c65cf1", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 4.91738319e-05, + "224": 4.39584255e-05 + }, + "primary_class": null, + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_limit": 0.01, + "band_ratio": 0.0456508758, + "metrics": { + "corr": 0.999999892, + "finite": true, + "max_abs": 0.000577971339, + "mean_abs": 0.00012937998, + "psnr_db": 83.1653887, + "ref_absmax": 1.26606846, + "rel_max": 0.000456508758, + "scaled_max_abs": 0.000456508758 + }, + "per_op_band_ratio": 0.0456508758, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 0.0441313312, + "index": 0, + "metrics": { + "corr": 0.999999966, + "finite": true, + "max_abs": 0.00508785248, + "mean_abs": 0.000405953078, + "psnr_db": 88.0186903, + "ref_absmax": 11.5288897, + "rel_max": 0.000441313312, + "scaled_max_abs": 0.000441313312 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "per_op_band_ratio": 0.0441313312, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0469150713, + "index": 1, + "metrics": { + "corr": 0.999999939, + "finite": true, + "max_abs": 0.00506496429, + "mean_abs": 0.000255633799, + "psnr_db": 95.3001421, + "ref_absmax": 10.7960281, + "rel_max": 0.000469150713, + "scaled_max_abs": 0.000469150713 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "per_op_band_ratio": 0.0469150713, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0735365188, + "index": 2, + "metrics": { + "corr": 0.999999921, + "finite": true, + "max_abs": 0.00792312622, + "mean_abs": 0.000301602973, + "psnr_db": 93.5874175, + "ref_absmax": 10.7744102, + "rel_max": 0.000735365188, + "scaled_max_abs": 0.000735365188 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "per_op_band_ratio": 0.0735365188, + "status": "pass", + "tap": "net.pos_embed" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0642335839, + "index": 3, + "metrics": { + "corr": 0.999999915, + "finite": true, + "max_abs": 0.00688552856, + "mean_abs": 0.000337762151, + "psnr_db": 93.052585, + "ref_absmax": 10.7195148, + "rel_max": 0.000642335839, + "scaled_max_abs": 0.000642335839 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "per_op_band_ratio": 0.0642335839, + "status": "pass", + "tap": "net.blocks.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0711207718, + "index": 4, + "metrics": { + "corr": 0.99999991, + "finite": true, + "max_abs": 0.00782585144, + "mean_abs": 0.000375974454, + "psnr_db": 92.5622871, + "ref_absmax": 11.0036087, + "rel_max": 0.000711207718, + "scaled_max_abs": 0.000711207718 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0" + }, + "per_op_band_ratio": 0.0711207718, + "status": "pass", + "tap": "net.blocks.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0762561059, + "index": 5, + "metrics": { + "corr": 0.999999905, + "finite": true, + "max_abs": 0.00865364075, + "mean_abs": 0.000407947414, + "psnr_db": 92.2800434, + "ref_absmax": 11.3481283, + "rel_max": 0.000762561059, + "scaled_max_abs": 0.000762561059 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0" + }, + "per_op_band_ratio": 0.0762561059, + "status": "pass", + "tap": "net.blocks.2" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0818820092, + "index": 6, + "metrics": { + "corr": 0.999999846, + "finite": true, + "max_abs": 0.00336623192, + "mean_abs": 0.000424373745, + "psnr_db": 83.0143914, + "ref_absmax": 4.11107635, + "rel_max": 0.000818820092, + "scaled_max_abs": 0.000818820092 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "per_op_band_ratio": 0.0818820092, + "status": "pass", + "tap": "net.norm" + }, + { + "band_limit": 0.01, + "band_ratio": 0.079208262, + "index": 7, + "metrics": { + "corr": 0.999999805, + "finite": true, + "max_abs": 0.00175507367, + "mean_abs": 0.000274065814, + "psnr_db": 81.4508589, + "ref_absmax": 2.21577096, + "rel_max": 0.00079208262, + "scaled_max_abs": 0.00079208262 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/ReduceMean_output_0" + }, + "per_op_band_ratio": 0.079208262, + "status": "pass", + "tap": "net.pool" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0463029134, + "index": 8, + "metrics": { + "corr": 0.999999892, + "finite": true, + "max_abs": 0.000586226583, + "mean_abs": 0.000129292381, + "psnr_db": 83.163636, + "ref_absmax": 1.26606846, + "rel_max": 0.000463029134, + "scaled_max_abs": 0.000463029134 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "per_op_band_ratio": 0.0463029134, + "status": "pass", + "tap": "net.head" + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_limit": 0.01, + "band_ratio": 0.0423719346, + "metrics": { + "corr": 0.999999905, + "finite": true, + "max_abs": 0.000569701195, + "mean_abs": 0.000124554956, + "psnr_db": 83.7646999, + "ref_absmax": 1.34452486, + "rel_max": 0.000423719346, + "scaled_max_abs": 0.000423719346 + }, + "per_op_band_ratio": 0.0423719346, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 0.0439328023, + "index": 0, + "metrics": { + "corr": 0.999999965, + "finite": true, + "max_abs": 0.00506496429, + "mean_abs": 0.000406712054, + "psnr_db": 88.0749992, + "ref_absmax": 11.5288897, + "rel_max": 0.000439328023, + "scaled_max_abs": 0.000439328023 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "per_op_band_ratio": 0.0439328023, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0469161546, + "index": 1, + "metrics": { + "corr": 0.99999994, + "finite": true, + "max_abs": 0.00556945801, + "mean_abs": 0.000254492238, + "psnr_db": 95.9056844, + "ref_absmax": 11.871088, + "rel_max": 0.000469161546, + "scaled_max_abs": 0.000469161546 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "per_op_band_ratio": 0.0469161546, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_limit": 0.01, + "band_ratio": 0.07491884, + "index": 2, + "metrics": { + "corr": 0.99999992, + "finite": true, + "max_abs": 0.00867176056, + "mean_abs": 0.000301083888, + "psnr_db": 94.1877045, + "ref_absmax": 11.574873, + "rel_max": 0.0007491884, + "scaled_max_abs": 0.0007491884 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "per_op_band_ratio": 0.07491884, + "status": "pass", + "tap": "net.pos_embed" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0635564292, + "index": 3, + "metrics": { + "corr": 0.999999915, + "finite": true, + "max_abs": 0.00755977631, + "mean_abs": 0.000339032434, + "psnr_db": 93.8757594, + "ref_absmax": 11.8945894, + "rel_max": 0.000635564292, + "scaled_max_abs": 0.000635564292 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "per_op_band_ratio": 0.0635564292, + "status": "pass", + "tap": "net.blocks.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0671218039, + "index": 4, + "metrics": { + "corr": 0.99999991, + "finite": true, + "max_abs": 0.0081577301, + "mean_abs": 0.000376167463, + "psnr_db": 93.3355793, + "ref_absmax": 12.1536217, + "rel_max": 0.000671218039, + "scaled_max_abs": 0.000671218039 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0" + }, + "per_op_band_ratio": 0.0671218039, + "status": "pass", + "tap": "net.blocks.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0664445648, + "index": 5, + "metrics": { + "corr": 0.999999905, + "finite": true, + "max_abs": 0.00831222534, + "mean_abs": 0.000408523199, + "psnr_db": 92.8873389, + "ref_absmax": 12.5100155, + "rel_max": 0.000664445648, + "scaled_max_abs": 0.000664445648 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0" + }, + "per_op_band_ratio": 0.0664445648, + "status": "pass", + "tap": "net.blocks.2" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0851897059, + "index": 6, + "metrics": { + "corr": 0.999999848, + "finite": true, + "max_abs": 0.00357663631, + "mean_abs": 0.000421772845, + "psnr_db": 83.2639281, + "ref_absmax": 4.19843721, + "rel_max": 0.000851897059, + "scaled_max_abs": 0.000851897059 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "per_op_band_ratio": 0.0851897059, + "status": "pass", + "tap": "net.norm" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0682010682, + "index": 7, + "metrics": { + "corr": 0.999999832, + "finite": true, + "max_abs": 0.00151526928, + "mean_abs": 0.000268050243, + "psnr_db": 81.6555098, + "ref_absmax": 2.22176766, + "rel_max": 0.000682010682, + "scaled_max_abs": 0.000682010682 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/ReduceMean_output_0" + }, + "per_op_band_ratio": 0.0682010682, + "status": "pass", + "tap": "net.pool" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0426246235, + "index": 8, + "metrics": { + "corr": 0.999999904, + "finite": true, + "max_abs": 0.00057309866, + "mean_abs": 0.000125122938, + "psnr_db": 83.7414848, + "ref_absmax": 1.34452486, + "rel_max": 0.000426246235, + "scaled_max_abs": 0.000426246235 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "per_op_band_ratio": 0.0426246235, + "status": "pass", + "tap": "net.head" + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp16", + "id": "tinyvit__clean__onnx_fp16", + "model": "tinyvit", + "path": "onnx", + "variant": "clean" + }, + "tap_bands_gate": true, + "verdict": "PASS" +} diff --git a/bench/verdicts_calibrated4/tinyvit__clean__onnx_fp32.json b/bench/verdicts_calibrated4/tinyvit__clean__onnx_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..8802a411ce5e8ddf8191ca6fbd62c5af1bc2db69 --- /dev/null +++ b/bench/verdicts_calibrated4/tinyvit__clean__onnx_fp32.json @@ -0,0 +1,945 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": false, + "note": null, + "status": "clear" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "status": "clear" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp32", + "first_divergence": null, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "74eefc6501f9b3d02ba2c35530077ee1b2e699bfa718638c92c77c8132298a95", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "d4648595c778e951d3779bd8da0d8b43df8f39fd9d22a12fea6e87080e8669af", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "fp32 per-tap band on near-zero probes", + "reason": "C3-2: per-tap fp32 checks gate without the near_zero probes; they are measured and reported per tap ('ungated_probes'); the output gates on all probes. C4-1: when the output has failed and no gated tap fails, they localise the first divergence (earliest tap over band on all probes)" + }, + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 2.38418579e-07, + "224": 1.1920929e-07 + }, + "primary_class": null, + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.0042370679, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.36441803e-07, + "mean_abs": 8.80565494e-08, + "psnr_db": 145.903901, + "ref_absmax": 1.26606846, + "rel_max": 4.2370679e-07, + "scaled_max_abs": 4.2370679e-07 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.0, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 11.5288897, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.0, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 2.11790395, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0119253147, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.28746033e-05, + "mean_abs": 3.05237152e-07, + "psnr_db": 151.990326, + "ref_absmax": 10.7960281, + "rel_max": 1.19253147e-06, + "scaled_max_abs": 1.19253147e-06 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "status": "pass", + "tap": "net.patch_embed", + "ungated_probes": { + "band_ratio": 0.0170735629, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.29153442e-06, + "mean_abs": 4.19041159e-07, + "psnr_db": 138.187965, + "ref_absmax": 2.51355529, + "rel_max": 1.70735629e-06, + "scaled_max_abs": 1.70735629e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0119492417, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.28746033e-05, + "mean_abs": 3.36284482e-07, + "psnr_db": 151.560529, + "ref_absmax": 10.7744102, + "rel_max": 1.19492417e-06, + "scaled_max_abs": 1.19492417e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "status": "pass", + "tap": "net.pos_embed", + "ungated_probes": { + "band_ratio": 0.0111675112, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.29153442e-06, + "mean_abs": 4.39594733e-07, + "psnr_db": 141.414892, + "ref_absmax": 3.84287453, + "rel_max": 1.11675112e-06, + "scaled_max_abs": 1.11675112e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0124552656, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33514404e-05, + "mean_abs": 3.63612535e-07, + "psnr_db": 151.291476, + "ref_absmax": 10.7195148, + "rel_max": 1.24552656e-06, + "scaled_max_abs": 1.24552656e-06 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.0", + "ungated_probes": { + "band_ratio": 0.0101023474, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.529953e-06, + "mean_abs": 4.59172598e-07, + "psnr_db": 142.28545, + "ref_absmax": 4.48405981, + "rel_max": 1.01023474e-06, + "scaled_max_abs": 1.01023474e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0121336925, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33514404e-05, + "mean_abs": 3.89131165e-07, + "psnr_db": 151.149544, + "ref_absmax": 11.0036087, + "rel_max": 1.21336925e-06, + "scaled_max_abs": 1.21336925e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.1", + "ungated_probes": { + "band_ratio": 0.0101260644, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 4.81151877e-07, + "psnr_db": 142.321354, + "ref_absmax": 4.70900774, + "rel_max": 1.01260644e-06, + "scaled_max_abs": 1.01260644e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0117653238, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33514404e-05, + "mean_abs": 4.11277598e-07, + "psnr_db": 151.150197, + "ref_absmax": 11.3481283, + "rel_max": 1.17653238e-06, + "scaled_max_abs": 1.17653238e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.2", + "ungated_probes": { + "band_ratio": 0.0102059281, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 4.97824607e-07, + "psnr_db": 142.42675, + "ref_absmax": 4.67215872, + "rel_max": 1.02059281e-06, + "scaled_max_abs": 1.02059281e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0104389558, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.29153442e-06, + "mean_abs": 4.01562031e-07, + "psnr_db": 143.411533, + "ref_absmax": 4.11107635, + "rel_max": 1.04389558e-06, + "scaled_max_abs": 1.04389558e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "status": "pass", + "tap": "net.norm", + "ungated_probes": { + "band_ratio": 0.0106901172, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.98023224e-06, + "mean_abs": 3.24296879e-07, + "psnr_db": 141.845193, + "ref_absmax": 2.7878387, + "rel_max": 1.06901172e-06, + "scaled_max_abs": 1.06901172e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00534661019, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.08033419e-06, + "mean_abs": 1.12982207e-07, + "psnr_db": 147.314149, + "ref_absmax": 2.0205965, + "rel_max": 5.34661019e-07, + "scaled_max_abs": 5.34661019e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/ReduceMean_output_0" + }, + "status": "pass", + "tap": "net.pool", + "ungated_probes": { + "band_ratio": 0.00376602565, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.34465027e-07, + "mean_abs": 1.18510798e-07, + "psnr_db": 147.287148, + "ref_absmax": 2.21577096, + "rel_max": 3.76602565e-07, + "scaled_max_abs": 3.76602565e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00400167524, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.06639481e-07, + "mean_abs": 8.29841676e-08, + "psnr_db": 144.775102, + "ref_absmax": 1.26606846, + "rel_max": 4.00167524e-07, + "scaled_max_abs": 4.00167524e-07 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "pass", + "tap": "net.head", + "ungated_probes": { + "band_ratio": 0.00373882931, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.17232513e-07, + "mean_abs": 1.10827386e-07, + "psnr_db": 141.28745, + "ref_absmax": 1.11594427, + "rel_max": 3.73882931e-07, + "scaled_max_abs": 3.73882931e-07 + }, + "n_probes": 4 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.00365733899, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.91738319e-07, + "mean_abs": 9.09349183e-08, + "psnr_db": 146.014919, + "ref_absmax": 1.34452486, + "rel_max": 3.65733899e-07, + "scaled_max_abs": 3.65733899e-07 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.0, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 11.5288897, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.0, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 2.11790395, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0104436645, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.23977661e-05, + "mean_abs": 3.03467206e-07, + "psnr_db": 152.573303, + "ref_absmax": 11.871088, + "rel_max": 1.04436645e-06, + "scaled_max_abs": 1.04436645e-06 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "status": "pass", + "tap": "net.patch_embed", + "ungated_probes": { + "band_ratio": 0.0170664822, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.29153442e-06, + "mean_abs": 4.21279035e-07, + "psnr_db": 138.195951, + "ref_absmax": 2.51459813, + "rel_max": 1.70664822e-06, + "scaled_max_abs": 1.70664822e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0107109306, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.23977661e-05, + "mean_abs": 3.04157085e-07, + "psnr_db": 152.494897, + "ref_absmax": 11.574873, + "rel_max": 1.07109306e-06, + "scaled_max_abs": 1.07109306e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "status": "pass", + "tap": "net.pos_embed", + "ungated_probes": { + "band_ratio": 0.0115520634, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.29153442e-06, + "mean_abs": 4.21630477e-07, + "psnr_db": 141.539177, + "ref_absmax": 3.71495056, + "rel_max": 1.15520634e-06, + "scaled_max_abs": 1.15520634e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0104230299, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.23977661e-05, + "mean_abs": 3.33690815e-07, + "psnr_db": 152.451548, + "ref_absmax": 11.8945894, + "rel_max": 1.04230299e-06, + "scaled_max_abs": 1.04230299e-06 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.0", + "ungated_probes": { + "band_ratio": 0.010090513, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.529953e-06, + "mean_abs": 4.40578055e-07, + "psnr_db": 142.442878, + "ref_absmax": 4.48931885, + "rel_max": 1.0090513e-06, + "scaled_max_abs": 1.0090513e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.010200882, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.23977661e-05, + "mean_abs": 3.60024885e-07, + "psnr_db": 152.293918, + "ref_absmax": 12.1536217, + "rel_max": 1.0200882e-06, + "scaled_max_abs": 1.0200882e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.1", + "ungated_probes": { + "band_ratio": 0.0101147427, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 4.63398056e-07, + "psnr_db": 142.526885, + "ref_absmax": 4.7142787, + "rel_max": 1.01147427e-06, + "scaled_max_abs": 1.01147427e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00991027239, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.23977661e-05, + "mean_abs": 3.81327232e-07, + "psnr_db": 152.146331, + "ref_absmax": 12.5100155, + "rel_max": 9.91027239e-07, + "scaled_max_abs": 9.91027239e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.2", + "ungated_probes": { + "band_ratio": 0.0101945383, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 4.78492643e-07, + "psnr_db": 142.60423, + "ref_absmax": 4.67737865, + "rel_max": 1.01945383e-06, + "scaled_max_abs": 1.01945383e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0102217425, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.29153442e-06, + "mean_abs": 3.63295843e-07, + "psnr_db": 144.434474, + "ref_absmax": 4.19843721, + "rel_max": 1.02217425e-06, + "scaled_max_abs": 1.02217425e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "status": "pass", + "tap": "net.norm", + "ungated_probes": { + "band_ratio": 0.0104561668, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.86102295e-06, + "mean_abs": 3.12752192e-07, + "psnr_db": 141.96993, + "ref_absmax": 2.73620629, + "rel_max": 1.04561668e-06, + "scaled_max_abs": 1.04561668e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00447001768, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.38773155e-07, + "mean_abs": 1.15410119e-07, + "psnr_db": 147.353955, + "ref_absmax": 2.10015535, + "rel_max": 4.47001768e-07, + "scaled_max_abs": 4.47001768e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/ReduceMean_output_0" + }, + "status": "pass", + "tap": "net.pool", + "ungated_probes": { + "band_ratio": 0.00429241244, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 1.45344529e-07, + "psnr_db": 145.498473, + "ref_absmax": 2.22176766, + "rel_max": 4.29241244e-07, + "scaled_max_abs": 4.29241244e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00332485363, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.47034836e-07, + "mean_abs": 8.62571012e-08, + "psnr_db": 144.936077, + "ref_absmax": 1.34452486, + "rel_max": 3.32485363e-07, + "scaled_max_abs": 3.32485363e-07 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "pass", + "tap": "net.head", + "ungated_probes": { + "band_ratio": 0.00439330297, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.91738319e-07, + "mean_abs": 1.18650496e-07, + "psnr_db": 140.57347, + "ref_absmax": 1.11929071, + "rel_max": 4.39330297e-07, + "scaled_max_abs": 4.39330297e-07 + }, + "n_probes": 4 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp32", + "id": "tinyvit__clean__onnx_fp32", + "model": "tinyvit", + "path": "onnx", + "variant": "clean" + }, + "tap_bands_gate": true, + "verdict": "PASS" +} diff --git a/bench/verdicts_calibrated4/tinyvit__drop_normalize__coreml_fp16.json b/bench/verdicts_calibrated4/tinyvit__drop_normalize__coreml_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..e98d298f588825d6a1a1aecf150cec6c3ba9e2ee --- /dev/null +++ b/bench/verdicts_calibrated4/tinyvit__drop_normalize__coreml_fp16.json @@ -0,0 +1,865 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "baseline": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "faithful_output_rel_max": 0.00402825966, + "output_band": 0.01, + "source": { + "bundle": "bundles/tinyvit__clean__coreml_fp16.json", + "case": "tinyvit__clean__coreml_fp16", + "digests": { + "192": { + "converted": "0035167ec9cc06c61986ca2249819ae1510c5a12aad7eaf510988220c7579aa5", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "5430fd6da54612ccdc73a3180116c0a8d19224ecfcc7ca2d7ce9df494c8307f9", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + } + } + }, + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "net.patch_embed", + "band_limit": 0.0294898015, + "explained_by": "no_normalize", + "nominal_band_ratio": 28.7177487, + "results": [ + { + "band_ratio": 31.6084967, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 33.3887876, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 50.6621079, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 37.7625149, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 0.267988987, + "explains": true, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [ + "inputs[0]: dtype float16 (declared float32)", + "outputs[0]: dtype float16 (declared float32)" + ], + "status": "precision_narrowing" + }, + "status": "flag" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": null, + "basis": "interface hypothesis 'no_normalize' explains the first over-band tap (net.patch_embed)", + "index": 0, + "neighbourhood": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": null + }, + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 24.4701145, + "index": 1, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_5_cast_fp16" + }, + "status": "fail", + "tap": "net.patch_embed" + } + ], + "observed_first_over_band": { + "index": 1, + "tap": "net.patch_embed" + }, + "shape": 224, + "tap": "normalize" + }, + "fp16_floor": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "baseline": { + "bundle": "bundles/tinyvit__clean__coreml_fp16.json", + "case": "tinyvit__clean__coreml_fp16", + "digests": { + "192": { + "converted": "0035167ec9cc06c61986ca2249819ae1510c5a12aad7eaf510988220c7579aa5", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "5430fd6da54612ccdc73a3180116c0a8d19224ecfcc7ca2d7ce9df494c8307f9", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + } + }, + "envelopes_gate": true, + "faithful_output_rel_max": 0.00402825966, + "faithful_tap_rel_max": { + "net.blocks.0": 0.0144004222, + "net.blocks.1": 0.0145278434, + "net.blocks.2": 0.0134661694, + "net.head": 0.00402825966, + "net.norm": 0.00711003077, + "net.patch_embed": 0.0147449007, + "net.pool": 0.00501150413, + "net.pos_embed": 0.0145772783, + "normalize": 0.00117570499 + }, + "floor": 0.01, + "k": 2.0, + "output_band": 0.01, + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used", + "tap_envelopes": { + "net.blocks.0": 0.0288008444, + "net.blocks.1": 0.0290556867, + "net.blocks.2": 0.0269323389, + "net.head": 0.01, + "net.norm": 0.0142200615, + "net.patch_embed": 0.0294898015, + "net.pool": 0.0100230083, + "net.pos_embed": 0.0291545566, + "normalize": 0.01 + } + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "4384271792639ba0fc0d288545482fea851e2fc2d1692516554b427ef22bcbfe", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "4d5b9004b82bc32121e621f08d91bb2a9cbf7097e3363242cf312881a331278a", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + }, + { + "item": "tap normalize @ 224", + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)" + }, + { + "item": "tap normalize @ 192", + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D3", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.71875, + "band_limit": 0.01, + "band_ratio": 92.0546079, + "metrics": { + "corr": 0.611272513, + "finite": true, + "max_abs": 1.16547436, + "mean_abs": 0.267371247, + "psnr_db": 16.677663, + "ref_absmax": 1.26606846, + "rel_max": 0.920546079, + "scaled_max_abs": 0.920546079 + }, + "per_op_band_ratio": 92.0546079, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 7 + } + }, + "first_fail_index": 1, + "n_judged": 8, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": null + }, + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)", + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_limit": 0.0294898015, + "band_ratio": 24.3766857, + "index": 1, + "metrics": { + "corr": 0.718449569, + "finite": true, + "max_abs": 7.76087189, + "mean_abs": 0.567667579, + "psnr_db": 28.2024455, + "ref_absmax": 10.7960281, + "rel_max": 0.718863622, + "scaled_max_abs": 0.718863622 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_5_cast_fp16" + }, + "per_op_band_ratio": 71.8863622, + "status": "fail", + "tap": "net.patch_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.0291545566, + "band_ratio": 24.7054757, + "index": 2, + "metrics": { + "corr": 0.710288148, + "finite": true, + "max_abs": 7.76056194, + "mean_abs": 0.567668626, + "psnr_db": 28.1215975, + "ref_absmax": 10.7744102, + "rel_max": 0.720277191, + "scaled_max_abs": 0.720277191 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_3_cast_fp16" + }, + "per_op_band_ratio": 72.0277191, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.0288008444, + "band_ratio": 25.2134724, + "index": 3, + "metrics": { + "corr": 0.65882399, + "finite": true, + "max_abs": 7.78418255, + "mean_abs": 0.62019627, + "psnr_db": 27.686805, + "ref_absmax": 10.7195148, + "rel_max": 0.726169296, + "scaled_max_abs": 0.726169296 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_15_cast_fp16" + }, + "per_op_band_ratio": 72.6169296, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.0290556867, + "band_ratio": 24.19621, + "index": 4, + "metrics": { + "corr": 0.615764581, + "finite": true, + "max_abs": 7.73594952, + "mean_abs": 0.684583587, + "psnr_db": 27.1777745, + "ref_absmax": 11.0036087, + "rel_max": 0.703037497, + "scaled_max_abs": 0.703037497 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_27_cast_fp16" + }, + "per_op_band_ratio": 70.3037497, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.0269323389, + "band_ratio": 25.6198585, + "index": 5, + "metrics": { + "corr": 0.591323861, + "finite": true, + "max_abs": 7.8302393, + "mean_abs": 0.742975155, + "psnr_db": 26.9545358, + "ref_absmax": 11.3481283, + "rel_max": 0.69000271, + "scaled_max_abs": 0.69000271 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_39_cast_fp16" + }, + "per_op_band_ratio": 69.000271, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.0142200615, + "band_ratio": 76.4933217, + "index": 6, + "metrics": { + "corr": 0.561039704, + "finite": true, + "max_abs": 4.47178113, + "mean_abs": 0.718743154, + "psnr_db": 18.4581078, + "ref_absmax": 4.11107635, + "rel_max": 1.08773974, + "scaled_max_abs": 1.08773974 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "per_op_band_ratio": 108.773974, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_limit": 0.0100230083, + "band_ratio": 129.988701, + "index": 7, + "metrics": { + "corr": 0.454931209, + "finite": true, + "max_abs": 2.88687885, + "mean_abs": 0.558451382, + "psnr_db": 15.3061155, + "ref_absmax": 2.21577096, + "rel_max": 1.30287782, + "scaled_max_abs": 1.30287782 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_cast_fp16" + }, + "per_op_band_ratio": 130.287782, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "natural", + "index": 7 + } + }, + { + "band_limit": 0.01, + "band_ratio": 92.0546079, + "index": 8, + "metrics": { + "corr": 0.611272513, + "finite": true, + "max_abs": 1.16547436, + "mean_abs": 0.267371247, + "psnr_db": 16.677663, + "ref_absmax": 1.26606846, + "rel_max": 0.920546079, + "scaled_max_abs": 0.920546079 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "per_op_band_ratio": 92.0546079, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "natural", + "index": 7 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.625, + "band_limit": 0.01, + "band_ratio": 89.3751864, + "metrics": { + "corr": 0.663792656, + "finite": true, + "max_abs": 1.2016716, + "mean_abs": 0.246362218, + "psnr_db": 17.5023366, + "ref_absmax": 1.34452486, + "rel_max": 0.893751864, + "scaled_max_abs": 0.893751864 + }, + "per_op_band_ratio": 89.3751864, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 2 + } + }, + "first_fail_index": 1, + "n_judged": 8, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": null + }, + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)", + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_limit": 0.0294898015, + "band_ratio": 24.4701145, + "index": 1, + "metrics": { + "corr": 0.729479878, + "finite": true, + "max_abs": 8.56640053, + "mean_abs": 0.555727487, + "psnr_db": 28.8381705, + "ref_absmax": 11.871088, + "rel_max": 0.721618819, + "scaled_max_abs": 0.721618819 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_5_cast_fp16" + }, + "per_op_band_ratio": 72.1618819, + "status": "fail", + "tap": "net.patch_embed", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.0291545566, + "band_ratio": 25.3868699, + "index": 2, + "metrics": { + "corr": 0.718467962, + "finite": true, + "max_abs": 8.56706047, + "mean_abs": 0.555727554, + "psnr_db": 28.7793505, + "ref_absmax": 11.574873, + "rel_max": 0.740142937, + "scaled_max_abs": 0.740142937 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_3_cast_fp16" + }, + "per_op_band_ratio": 74.0142937, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.0288008444, + "band_ratio": 24.9776496, + "index": 3, + "metrics": { + "corr": 0.670745747, + "finite": true, + "max_abs": 8.5566988, + "mean_abs": 0.603636604, + "psnr_db": 28.5887241, + "ref_absmax": 11.8945894, + "rel_max": 0.719377399, + "scaled_max_abs": 0.719377399 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_15_cast_fp16" + }, + "per_op_band_ratio": 71.9377399, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.0290556867, + "band_ratio": 23.9799254, + "index": 4, + "metrics": { + "corr": 0.633452501, + "finite": true, + "max_abs": 8.4680748, + "mean_abs": 0.661593041, + "psnr_db": 28.0987157, + "ref_absmax": 12.1536217, + "rel_max": 0.6967532, + "scaled_max_abs": 0.6967532 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_27_cast_fp16" + }, + "per_op_band_ratio": 69.67532, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.0269323389, + "band_ratio": 25.3449234, + "index": 5, + "metrics": { + "corr": 0.61207437, + "finite": true, + "max_abs": 8.53931236, + "mean_abs": 0.714884916, + "psnr_db": 27.7354673, + "ref_absmax": 12.5100155, + "rel_max": 0.682598065, + "scaled_max_abs": 0.682598065 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_39_cast_fp16" + }, + "per_op_band_ratio": 68.2598065, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.0142200615, + "band_ratio": 76.6290203, + "index": 6, + "metrics": { + "corr": 0.599381253, + "finite": true, + "max_abs": 4.57490849, + "mean_abs": 0.67602074, + "psnr_db": 19.0434517, + "ref_absmax": 4.19843721, + "rel_max": 1.08966938, + "scaled_max_abs": 1.08966938 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "per_op_band_ratio": 108.966938, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_limit": 0.0100230083, + "band_ratio": 133.845494, + "index": 7, + "metrics": { + "corr": 0.551945812, + "finite": true, + "max_abs": 2.98057795, + "mean_abs": 0.510838884, + "psnr_db": 15.8694342, + "ref_absmax": 2.22176766, + "rel_max": 1.34153449, + "scaled_max_abs": 1.34153449 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_cast_fp16" + }, + "per_op_band_ratio": 134.153449, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "natural", + "index": 2 + } + }, + { + "band_limit": 0.01, + "band_ratio": 89.3751864, + "index": 8, + "metrics": { + "corr": 0.663792656, + "finite": true, + "max_abs": 1.2016716, + "mean_abs": 0.246362218, + "psnr_db": 17.5023366, + "ref_absmax": 1.34452486, + "rel_max": 0.893751864, + "scaled_max_abs": 0.893751864 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "per_op_band_ratio": 89.3751864, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "natural", + "index": 2 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp16", + "id": "tinyvit__drop_normalize__coreml_fp16", + "model": "tinyvit", + "path": "coreml", + "variant": "drop_normalize" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/tinyvit__drop_normalize__coreml_fp32.json b/bench/verdicts_calibrated4/tinyvit__drop_normalize__coreml_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..ed79d8fa5674be633645551bd0ed57a44044ab17 --- /dev/null +++ b/bench/verdicts_calibrated4/tinyvit__drop_normalize__coreml_fp32.json @@ -0,0 +1,1039 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "net.patch_embed", + "explained_by": "no_normalize", + "nominal_band_ratio": 8470.9415, + "results": [ + { + "band_ratio": 9320.7338, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 9846.74292, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 14930.914, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 11142.0948, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 0.00307640477, + "explains": true, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "flag" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": null, + "basis": "interface hypothesis 'no_normalize' explains the first over-band tap (net.patch_embed)", + "index": 0, + "neighbourhood": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": null + }, + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 7214.68411, + "index": 1, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_5" + }, + "status": "fail", + "tap": "net.patch_embed" + } + ], + "observed_first_over_band": { + "index": 1, + "tap": "net.patch_embed" + }, + "shape": 224, + "tap": "normalize" + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "2bbc29d354266e968022cffaecb43a4195a343bf3f9c7d1f84a44b5246de5d8c", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "5ccc088196dc8283fd77b32858e0ec7d9574f336f7816ee5a3bb6dcd9d200714", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "fp32 per-tap band on near-zero probes", + "reason": "C3-2: per-tap fp32 checks gate without the near_zero probes; they are measured and reported per tap ('ungated_probes'); the output gates on all probes. C4-1: when the output has failed and no gated tap fails, they localise the first divergence (earliest tap over band on all probes)" + }, + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + }, + { + "item": "tap normalize @ 224", + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)" + }, + { + "item": "tap normalize @ 192", + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D3", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.6875, + "band_ratio": 9191.93277, + "metrics": { + "corr": 0.611314911, + "finite": true, + "max_abs": 1.16376162, + "mean_abs": 0.267415156, + "psnr_db": 16.6773375, + "ref_absmax": 1.26606846, + "rel_max": 0.919193277, + "scaled_max_abs": 0.919193277 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 7 + } + }, + "first_fail_index": 1, + "n_judged": 8, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": null + }, + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)", + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 7162.74526, + "index": 1, + "metrics": { + "corr": 0.774269621, + "finite": true, + "max_abs": 7.73291993, + "mean_abs": 0.521476099, + "psnr_db": 28.7258113, + "ref_absmax": 10.7960281, + "rel_max": 0.716274526, + "scaled_max_abs": 0.716274526 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_5" + }, + "status": "fail", + "tap": "net.patch_embed", + "ungated_probes": { + "band_ratio": 10119.8276, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.10013118, + "finite": true, + "max_abs": 2.54367463, + "mean_abs": 0.890949085, + "psnr_db": 12.7615689, + "ref_absmax": 2.51355529, + "rel_max": 1.01198276, + "scaled_max_abs": 1.01198276 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7177.11644, + "index": 2, + "metrics": { + "corr": 0.757692828, + "finite": true, + "max_abs": 7.73291969, + "mean_abs": 0.521476099, + "psnr_db": 28.6449726, + "ref_absmax": 10.7744102, + "rel_max": 0.717711644, + "scaled_max_abs": 0.717711644 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_3" + }, + "status": "fail", + "tap": "net.pos_embed", + "ungated_probes": { + "band_ratio": 6619.19769, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.320187004, + "finite": true, + "max_abs": 2.54367462, + "mean_abs": 0.890949084, + "psnr_db": 16.2802126, + "ref_absmax": 3.84287453, + "rel_max": 0.661919769, + "scaled_max_abs": 0.661919769 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7238.31732, + "index": 3, + "metrics": { + "corr": 0.707925483, + "finite": true, + "max_abs": 7.75912499, + "mean_abs": 0.567828763, + "psnr_db": 28.3174306, + "ref_absmax": 10.7195148, + "rel_max": 0.723831732, + "scaled_max_abs": 0.723831732 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_15" + }, + "status": "fail", + "tap": "net.blocks.0", + "ungated_probes": { + "band_ratio": 7517.29489, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.292916595, + "finite": true, + "max_abs": 3.37079999, + "mean_abs": 0.986746279, + "psnr_db": 16.589128, + "ref_absmax": 4.48405981, + "rel_max": 0.751729489, + "scaled_max_abs": 0.751729489 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7024.23662, + "index": 4, + "metrics": { + "corr": 0.665676035, + "finite": true, + "max_abs": 7.72919512, + "mean_abs": 0.626990995, + "psnr_db": 27.9078376, + "ref_absmax": 11.0036087, + "rel_max": 0.702423662, + "scaled_max_abs": 0.702423662 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_27" + }, + "status": "fail", + "tap": "net.blocks.1", + "ungated_probes": { + "band_ratio": 7665.07282, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.294162923, + "finite": true, + "max_abs": 3.60948873, + "mean_abs": 1.08778145, + "psnr_db": 15.9552466, + "ref_absmax": 4.70900774, + "rel_max": 0.766507282, + "scaled_max_abs": 0.766507282 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6894.96255, + "index": 5, + "metrics": { + "corr": 0.635311152, + "finite": true, + "max_abs": 7.82449198, + "mean_abs": 0.681694337, + "psnr_db": 27.6796885, + "ref_absmax": 11.3481283, + "rel_max": 0.689496255, + "scaled_max_abs": 0.689496255 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_39" + }, + "status": "fail", + "tap": "net.blocks.2", + "ungated_probes": { + "band_ratio": 8029.74482, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.349554644, + "finite": true, + "max_abs": 3.75162423, + "mean_abs": 1.17203283, + "psnr_db": 15.7833333, + "ref_absmax": 4.67215872, + "rel_max": 0.802974482, + "scaled_max_abs": 0.802974482 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 10749.4909, + "index": 6, + "metrics": { + "corr": 0.592025834, + "finite": true, + "max_abs": 4.4191978, + "mean_abs": 0.69004813, + "psnr_db": 18.7760353, + "ref_absmax": 4.11107635, + "rel_max": 1.07494909, + "scaled_max_abs": 1.07494909 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x" + }, + "status": "fail", + "tap": "net.norm", + "ungated_probes": { + "band_ratio": 16037.2766, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.343855865, + "finite": true, + "max_abs": 4.47093403, + "mean_abs": 0.919794891, + "psnr_db": 13.5065004, + "ref_absmax": 2.7878387, + "rel_max": 1.60372766, + "scaled_max_abs": 1.60372766 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 7 + } + }, + { + "band_ratio": 14284.6298, + "index": 7, + "metrics": { + "corr": 0.519380454, + "finite": true, + "max_abs": 2.88634729, + "mean_abs": 0.529820003, + "psnr_db": 15.0354966, + "ref_absmax": 2.0205965, + "rel_max": 1.42846298, + "scaled_max_abs": 1.42846298 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_1" + }, + "status": "fail", + "tap": "net.pool", + "ungated_probes": { + "band_ratio": 11044.1277, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.338086837, + "finite": true, + "max_abs": 2.44712573, + "mean_abs": 0.75892413, + "psnr_db": 13.1250413, + "ref_absmax": 2.21577096, + "rel_max": 1.10441277, + "scaled_max_abs": 1.10441277 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 7 + } + }, + { + "band_ratio": 9191.93277, + "index": 8, + "metrics": { + "corr": 0.617333661, + "finite": true, + "max_abs": 1.16376162, + "mean_abs": 0.260792915, + "psnr_db": 15.6980897, + "ref_absmax": 1.26606846, + "rel_max": 0.919193277, + "scaled_max_abs": 0.919193277 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "ungated_probes": { + "band_ratio": 10395.4347, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.590435773, + "finite": true, + "max_abs": 1.16007257, + "mean_abs": 0.313770842, + "psnr_db": 10.8428064, + "ref_absmax": 1.11594427, + "rel_max": 1.03954347, + "scaled_max_abs": 1.03954347 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 7 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.625, + "band_ratio": 8931.75024, + "metrics": { + "corr": 0.663749357, + "finite": true, + "max_abs": 1.20089602, + "mean_abs": 0.246445583, + "psnr_db": 17.5012244, + "ref_absmax": 1.34452486, + "rel_max": 0.893175024, + "scaled_max_abs": 0.893175024 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 2 + } + }, + "first_fail_index": 1, + "n_judged": 8, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": null + }, + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)", + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 7214.68411, + "index": 1, + "metrics": { + "corr": 0.786645931, + "finite": true, + "max_abs": 8.56461501, + "mean_abs": 0.507833434, + "psnr_db": 29.3959193, + "ref_absmax": 11.871088, + "rel_max": 0.721468411, + "scaled_max_abs": 0.721468411 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_5" + }, + "status": "fail", + "tap": "net.patch_embed", + "ungated_probes": { + "band_ratio": 10118.8884, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.10014986, + "finite": true, + "max_abs": 2.54449379, + "mean_abs": 0.890941574, + "psnr_db": 12.7643646, + "ref_absmax": 2.51459813, + "rel_max": 1.01188884, + "scaled_max_abs": 1.01188884 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7399.31643, + "index": 2, + "metrics": { + "corr": 0.768079366, + "finite": true, + "max_abs": 8.56461477, + "mean_abs": 0.507833434, + "psnr_db": 29.3370924, + "ref_absmax": 11.574873, + "rel_max": 0.739931643, + "scaled_max_abs": 0.739931643 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_3" + }, + "status": "fail", + "tap": "net.pos_embed", + "ungated_probes": { + "band_ratio": 6849.33423, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.305232608, + "finite": true, + "max_abs": 2.54449381, + "mean_abs": 0.890941574, + "psnr_db": 16.125884, + "ref_absmax": 3.71495056, + "rel_max": 0.684933423, + "scaled_max_abs": 0.684933423 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7192.23238, + "index": 3, + "metrics": { + "corr": 0.722538485, + "finite": true, + "max_abs": 8.55486512, + "mean_abs": 0.548777129, + "psnr_db": 29.2647229, + "ref_absmax": 11.8945894, + "rel_max": 0.719223238, + "scaled_max_abs": 0.719223238 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_15" + }, + "status": "fail", + "tap": "net.blocks.0", + "ungated_probes": { + "band_ratio": 7549.98455, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.278263681, + "finite": true, + "max_abs": 3.38942879, + "mean_abs": 0.987704573, + "psnr_db": 16.4367578, + "ref_absmax": 4.48931885, + "rel_max": 0.754998455, + "scaled_max_abs": 0.754998455 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6967.72778, + "index": 4, + "metrics": { + "corr": 0.686874241, + "finite": true, + "max_abs": 8.46831274, + "mean_abs": 0.600431412, + "psnr_db": 28.8922252, + "ref_absmax": 12.1536217, + "rel_max": 0.696772778, + "scaled_max_abs": 0.696772778 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_27" + }, + "status": "fail", + "tap": "net.blocks.1", + "ungated_probes": { + "band_ratio": 7588.76825, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.282038577, + "finite": true, + "max_abs": 3.57755685, + "mean_abs": 1.08978507, + "psnr_db": 15.8557655, + "ref_absmax": 4.7142787, + "rel_max": 0.758876825, + "scaled_max_abs": 0.758876825 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6825.67762, + "index": 5, + "metrics": { + "corr": 0.66002202, + "finite": true, + "max_abs": 8.53893328, + "mean_abs": 0.64939315, + "psnr_db": 28.531075, + "ref_absmax": 12.5100155, + "rel_max": 0.682567762, + "scaled_max_abs": 0.682567762 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_39" + }, + "status": "fail", + "tap": "net.blocks.2", + "ungated_probes": { + "band_ratio": 8060.11215, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.342493759, + "finite": true, + "max_abs": 3.77001965, + "mean_abs": 1.17341456, + "psnr_db": 15.6477236, + "ref_absmax": 4.67737865, + "rel_max": 0.806011215, + "scaled_max_abs": 0.806011215 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9881.91247, + "index": 6, + "metrics": { + "corr": 0.636658774, + "finite": true, + "max_abs": 4.1488589, + "mean_abs": 0.640554463, + "psnr_db": 19.4676103, + "ref_absmax": 4.19843721, + "rel_max": 0.988191247, + "scaled_max_abs": 0.988191247 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x" + }, + "status": "fail", + "tap": "net.norm", + "ungated_probes": { + "band_ratio": 16733.1118, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.338046869, + "finite": true, + "max_abs": 4.57852459, + "mean_abs": 0.924503769, + "psnr_db": 13.3178234, + "ref_absmax": 2.73620629, + "rel_max": 1.67331118, + "scaled_max_abs": 1.67331118 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 2 + } + }, + { + "band_ratio": 14186.7014, + "index": 7, + "metrics": { + "corr": 0.631097254, + "finite": true, + "max_abs": 2.9794277, + "mean_abs": 0.474383439, + "psnr_db": 15.9564372, + "ref_absmax": 2.10015535, + "rel_max": 1.41867014, + "scaled_max_abs": 1.41867014 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_1" + }, + "status": "fail", + "tap": "net.pool", + "ungated_probes": { + "band_ratio": 11031.6658, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.338035982, + "finite": true, + "max_abs": 2.45097983, + "mean_abs": 0.765924514, + "psnr_db": 13.0852304, + "ref_absmax": 2.22176766, + "rel_max": 1.10316658, + "scaled_max_abs": 1.10316658 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 2 + } + }, + { + "band_ratio": 8931.75024, + "index": 8, + "metrics": { + "corr": 0.683986425, + "finite": true, + "max_abs": 1.20089602, + "mean_abs": 0.237650531, + "psnr_db": 16.7644311, + "ref_absmax": 1.34452486, + "rel_max": 0.893175024, + "scaled_max_abs": 0.893175024 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "ungated_probes": { + "band_ratio": 10394.2653, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.594035873, + "finite": true, + "max_abs": 1.16342045, + "mean_abs": 0.308010943, + "psnr_db": 10.8934754, + "ref_absmax": 1.11929071, + "rel_max": 1.03942653, + "scaled_max_abs": 1.03942653 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 2 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp32", + "id": "tinyvit__drop_normalize__coreml_fp32", + "model": "tinyvit", + "path": "coreml", + "variant": "drop_normalize" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/tinyvit__drop_normalize__litert_fp16.json b/bench/verdicts_calibrated4/tinyvit__drop_normalize__litert_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..f4bb3fb0f4b0bb069db8b3e75bc9cc12b801e3c4 --- /dev/null +++ b/bench/verdicts_calibrated4/tinyvit__drop_normalize__litert_fp16.json @@ -0,0 +1,882 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "baseline": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "faithful_output_rel_max": 0.000208557898, + "output_band": 0.01, + "source": { + "bundle": "bundles/tinyvit__clean__litert_fp16.json", + "case": "tinyvit__clean__litert_fp16", + "digests": { + "192": { + "converted": "170133fb2c750896c9b9cfaed4c8aab6b2e92dd28e9a0114b604c6d35736d93d", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "e6f67f478f27c5cbe93fb3192583b8c4adeb54f48117f07895a6c68beeb1c827", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + } + } + }, + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "net.patch_embed", + "band_limit": 0.01, + "explained_by": "no_normalize", + "nominal_band_ratio": 84.7089171, + "results": [ + { + "band_ratio": 93.2091324, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 98.4673229, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 149.31007, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 111.421498, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 0.0229300399, + "explains": true, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "flag" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 1.97426915e-05, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.38418579e-07, + "mean_abs": 5.85801899e-08, + "psnr_db": 148.875712, + "ref_absmax": 1.20762956, + "rel_max": 1.97426915e-07, + "scaled_max_abs": 1.97426915e-07 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 55, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 1, + "n_ops_total": 185, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": null, + "basis": "interface hypothesis 'no_normalize' explains the first over-band tap (net.patch_embed)", + "index": 0, + "neighbourhood": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": null + }, + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 72.1461903, + "index": 1, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;3" + }, + "status": "fail", + "tap": "net.patch_embed" + } + ], + "observed_first_over_band": { + "index": 1, + "tap": "net.patch_embed" + }, + "shape": 224, + "tap": "normalize" + }, + "fp16_floor": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "baseline": { + "bundle": "bundles/tinyvit__clean__litert_fp16.json", + "case": "tinyvit__clean__litert_fp16", + "digests": { + "192": { + "converted": "170133fb2c750896c9b9cfaed4c8aab6b2e92dd28e9a0114b604c6d35736d93d", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "e6f67f478f27c5cbe93fb3192583b8c4adeb54f48117f07895a6c68beeb1c827", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + } + }, + "envelopes_gate": true, + "faithful_output_rel_max": 0.000208557898, + "faithful_tap_rel_max": { + "net.blocks.0": 0.000279738087, + "net.blocks.1": 0.000270794184, + "net.blocks.2": 0.000256599822, + "net.head": 0.000208557898, + "net.norm": 0.000310450195, + "net.patch_embed": 0.000277319462, + "net.pool": 0.000243123856, + "net.pos_embed": 0.000284416403, + "normalize": 8.27203959e-08 + }, + "floor": 0.01, + "k": 2.0, + "output_band": 0.01, + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used", + "tap_envelopes": { + "net.blocks.0": 0.01, + "net.blocks.1": 0.01, + "net.blocks.2": 0.01, + "net.head": 0.01, + "net.norm": 0.01, + "net.patch_embed": 0.01, + "net.pool": 0.01, + "net.pos_embed": 0.01, + "normalize": 0.01 + } + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "5b98a7541a46f02a8c02a5b25a0e45756278ca43a1b77bc782fe49cc31146632", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "bc26939fdcafa40c3493729f91f0d138d55df38d39f9cf1ce3aa90d178c7108a", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "tap normalize @ 224", + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)" + }, + { + "item": "tap normalize @ 192", + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D3", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.6875, + "band_limit": 0.01, + "band_ratio": 91.9221713, + "metrics": { + "corr": 0.611264084, + "finite": true, + "max_abs": 1.16379762, + "mean_abs": 0.267415977, + "psnr_db": 16.6770664, + "ref_absmax": 1.26606846, + "rel_max": 0.919221713, + "scaled_max_abs": 0.919221713 + }, + "per_op_band_ratio": 91.9221713, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 7 + } + }, + "first_fail_index": 1, + "n_judged": 8, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": null + }, + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)", + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 71.6269623, + "index": 1, + "metrics": { + "corr": 0.718442552, + "finite": true, + "max_abs": 7.732867, + "mean_abs": 0.567659841, + "psnr_db": 28.2026044, + "ref_absmax": 10.7960281, + "rel_max": 0.716269623, + "scaled_max_abs": 0.716269623 + }, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;3" + }, + "per_op_band_ratio": 71.6269623, + "status": "fail", + "tap": "net.patch_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 71.7706732, + "index": 2, + "metrics": { + "corr": 0.710303364, + "finite": true, + "max_abs": 7.73286676, + "mean_abs": 0.567659841, + "psnr_db": 28.1217657, + "ref_absmax": 10.7744102, + "rel_max": 0.717706732, + "scaled_max_abs": 0.717706732 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;3" + }, + "per_op_band_ratio": 71.7706732, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 72.3813071, + "index": 3, + "metrics": { + "corr": 0.658830127, + "finite": true, + "max_abs": 7.75892496, + "mean_abs": 0.620189518, + "psnr_db": 27.6869215, + "ref_absmax": 10.7195148, + "rel_max": 0.723813071, + "scaled_max_abs": 0.723813071 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "per_op_band_ratio": 72.3813071, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 70.2416663, + "index": 4, + "metrics": { + "corr": 0.615759778, + "finite": true, + "max_abs": 7.72911811, + "mean_abs": 0.684584408, + "psnr_db": 27.1777456, + "ref_absmax": 11.0036087, + "rel_max": 0.702416663, + "scaled_max_abs": 0.702416663 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "per_op_band_ratio": 70.2416663, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 68.9506655, + "index": 5, + "metrics": { + "corr": 0.591312874, + "finite": true, + "max_abs": 7.82460999, + "mean_abs": 0.742979101, + "psnr_db": 26.9544419, + "ref_absmax": 11.3481283, + "rel_max": 0.689506655, + "scaled_max_abs": 0.689506655 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "per_op_band_ratio": 68.9506655, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 108.755944, + "index": 6, + "metrics": { + "corr": 0.561016504, + "finite": true, + "max_abs": 4.47103989, + "mean_abs": 0.718758585, + "psnr_db": 18.4578821, + "ref_absmax": 4.11107635, + "rel_max": 1.08755944, + "scaled_max_abs": 1.08755944 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "per_op_band_ratio": 108.755944, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_limit": 0.01, + "band_ratio": 130.267161, + "index": 7, + "metrics": { + "corr": 0.454868871, + "finite": true, + "max_abs": 2.88642192, + "mean_abs": 0.558446353, + "psnr_db": 15.3056057, + "ref_absmax": 2.21577096, + "rel_max": 1.30267161, + "scaled_max_abs": 1.30267161 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "per_op_band_ratio": 130.267161, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "natural", + "index": 7 + } + }, + { + "band_limit": 0.01, + "band_ratio": 91.9221713, + "index": 8, + "metrics": { + "corr": 0.611264084, + "finite": true, + "max_abs": 1.16379762, + "mean_abs": 0.267415977, + "psnr_db": 16.6770664, + "ref_absmax": 1.26606846, + "rel_max": 0.919221713, + "scaled_max_abs": 0.919221713 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "per_op_band_ratio": 91.9221713, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "natural", + "index": 7 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.625, + "band_limit": 0.01, + "band_ratio": 89.3205879, + "metrics": { + "corr": 0.663709208, + "finite": true, + "max_abs": 1.20093751, + "mean_abs": 0.246439054, + "psnr_db": 17.5009988, + "ref_absmax": 1.34452486, + "rel_max": 0.893205879, + "scaled_max_abs": 0.893205879 + }, + "per_op_band_ratio": 89.3205879, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 2 + } + }, + "first_fail_index": 1, + "n_judged": 8, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": null + }, + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)", + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 72.1461903, + "index": 1, + "metrics": { + "corr": 0.729466548, + "finite": true, + "max_abs": 8.56453776, + "mean_abs": 0.555722011, + "psnr_db": 28.8382886, + "ref_absmax": 11.871088, + "rel_max": 0.721461903, + "scaled_max_abs": 0.721461903 + }, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;3" + }, + "per_op_band_ratio": 72.1461903, + "status": "fail", + "tap": "net.patch_embed", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 73.9924969, + "index": 2, + "metrics": { + "corr": 0.718465736, + "finite": true, + "max_abs": 8.56453753, + "mean_abs": 0.555722011, + "psnr_db": 28.7794618, + "ref_absmax": 11.574873, + "rel_max": 0.739924969, + "scaled_max_abs": 0.739924969 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;3" + }, + "per_op_band_ratio": 73.9924969, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 71.9204497, + "index": 3, + "metrics": { + "corr": 0.670736711, + "finite": true, + "max_abs": 8.5546422, + "mean_abs": 0.603639477, + "psnr_db": 28.5887523, + "ref_absmax": 11.8945894, + "rel_max": 0.719204497, + "scaled_max_abs": 0.719204497 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "per_op_band_ratio": 71.9204497, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 69.6763421, + "index": 4, + "metrics": { + "corr": 0.63343741, + "finite": true, + "max_abs": 8.46819901, + "mean_abs": 0.66159499, + "psnr_db": 28.0986166, + "ref_absmax": 12.1536217, + "rel_max": 0.696763421, + "scaled_max_abs": 0.696763421 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "per_op_band_ratio": 69.6763421, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 68.2556308, + "index": 5, + "metrics": { + "corr": 0.612050762, + "finite": true, + "max_abs": 8.53878999, + "mean_abs": 0.714888337, + "psnr_db": 27.7352635, + "ref_absmax": 12.5100155, + "rel_max": 0.682556308, + "scaled_max_abs": 0.682556308 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "per_op_band_ratio": 68.2556308, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 109.057804, + "index": 6, + "metrics": { + "corr": 0.599343854, + "finite": true, + "max_abs": 4.57872343, + "mean_abs": 0.676039537, + "psnr_db": 19.0430415, + "ref_absmax": 4.19843721, + "rel_max": 1.09057804, + "scaled_max_abs": 1.09057804 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "per_op_band_ratio": 109.057804, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_limit": 0.01, + "band_ratio": 134.105486, + "index": 7, + "metrics": { + "corr": 0.551886574, + "finite": true, + "max_abs": 2.97951233, + "mean_abs": 0.510815789, + "psnr_db": 15.8687971, + "ref_absmax": 2.22176766, + "rel_max": 1.34105486, + "scaled_max_abs": 1.34105486 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "per_op_band_ratio": 134.105486, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "natural", + "index": 2 + } + }, + { + "band_limit": 0.01, + "band_ratio": 89.3205879, + "index": 8, + "metrics": { + "corr": 0.663709208, + "finite": true, + "max_abs": 1.20093751, + "mean_abs": 0.246439054, + "psnr_db": 17.5009988, + "ref_absmax": 1.34452486, + "rel_max": 0.893205879, + "scaled_max_abs": 0.893205879 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "per_op_band_ratio": 89.3205879, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "natural", + "index": 2 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp16", + "id": "tinyvit__drop_normalize__litert_fp16", + "model": "tinyvit", + "path": "litert", + "variant": "drop_normalize" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/tinyvit__drop_normalize__litert_fp32.json b/bench/verdicts_calibrated4/tinyvit__drop_normalize__litert_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..23b5f3f277087d7c5f471a5caec293a6fffe6090 --- /dev/null +++ b/bench/verdicts_calibrated4/tinyvit__drop_normalize__litert_fp32.json @@ -0,0 +1,1059 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "net.patch_embed", + "explained_by": "no_normalize", + "nominal_band_ratio": 8470.94076, + "results": [ + { + "band_ratio": 9320.7338, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 9846.74276, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 14930.9097, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 11142.0944, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 0.0164074921, + "explains": true, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "flag" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 0.00197440734, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.38418579e-07, + "mean_abs": 5.43077476e-08, + "psnr_db": 149.536524, + "ref_absmax": 1.20754504, + "rel_max": 1.97440734e-07, + "scaled_max_abs": 1.97440734e-07 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 55, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 1, + "n_ops_total": 171, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": null, + "basis": "interface hypothesis 'no_normalize' explains the first over-band tap (net.patch_embed)", + "index": 0, + "neighbourhood": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": null + }, + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 7214.6837, + "index": 1, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;3" + }, + "status": "fail", + "tap": "net.patch_embed" + } + ], + "observed_first_over_band": { + "index": 1, + "tap": "net.patch_embed" + }, + "shape": 224, + "tap": "normalize" + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "95788b9822c2f9d7e31402991fee757c1fe9a6e6452943212457fa421b7f9cdb", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "07f863c6d3add26656e194d40cd7d5262f5599680cc9e41750ad2d6eb136b0b2", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "fp32 per-tap band on near-zero probes", + "reason": "C3-2: per-tap fp32 checks gate without the near_zero probes; they are measured and reported per tap ('ungated_probes'); the output gates on all probes. C4-1: when the output has failed and no gated tap fails, they localise the first divergence (earliest tap over band on all probes)" + }, + { + "item": "tap normalize @ 224", + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)" + }, + { + "item": "tap normalize @ 192", + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D3", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.6875, + "band_ratio": 9191.93466, + "metrics": { + "corr": 0.611314914, + "finite": true, + "max_abs": 1.16376185, + "mean_abs": 0.267415153, + "psnr_db": 16.6773376, + "ref_absmax": 1.26606846, + "rel_max": 0.919193466, + "scaled_max_abs": 0.919193466 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 7 + } + }, + "first_fail_index": 1, + "n_judged": 8, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": null + }, + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)", + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 7162.74548, + "index": 1, + "metrics": { + "corr": 0.77426962, + "finite": true, + "max_abs": 7.73292017, + "mean_abs": 0.521476099, + "psnr_db": 28.7258114, + "ref_absmax": 10.7960281, + "rel_max": 0.716274548, + "scaled_max_abs": 0.716274548 + }, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;3" + }, + "status": "fail", + "tap": "net.patch_embed", + "ungated_probes": { + "band_ratio": 10119.8276, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.100131173, + "finite": true, + "max_abs": 2.54367461, + "mean_abs": 0.890949085, + "psnr_db": 12.7615689, + "ref_absmax": 2.51355529, + "rel_max": 1.01198276, + "scaled_max_abs": 1.01198276 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7177.11666, + "index": 2, + "metrics": { + "corr": 0.757692828, + "finite": true, + "max_abs": 7.73291993, + "mean_abs": 0.521476099, + "psnr_db": 28.6449726, + "ref_absmax": 10.7744102, + "rel_max": 0.717711666, + "scaled_max_abs": 0.717711666 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;3" + }, + "status": "fail", + "tap": "net.pos_embed", + "ungated_probes": { + "band_ratio": 6619.19753, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.320187006, + "finite": true, + "max_abs": 2.54367456, + "mean_abs": 0.890949084, + "psnr_db": 16.2802126, + "ref_absmax": 3.84287453, + "rel_max": 0.661919753, + "scaled_max_abs": 0.661919753 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7238.31754, + "index": 3, + "metrics": { + "corr": 0.707925484, + "finite": true, + "max_abs": 7.75912523, + "mean_abs": 0.567828763, + "psnr_db": 28.3174306, + "ref_absmax": 10.7195148, + "rel_max": 0.723831754, + "scaled_max_abs": 0.723831754 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.0", + "ungated_probes": { + "band_ratio": 7517.29499, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.292916598, + "finite": true, + "max_abs": 3.37080003, + "mean_abs": 0.986746278, + "psnr_db": 16.589128, + "ref_absmax": 4.48405981, + "rel_max": 0.751729499, + "scaled_max_abs": 0.751729499 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7024.23987, + "index": 4, + "metrics": { + "corr": 0.665676035, + "finite": true, + "max_abs": 7.72919869, + "mean_abs": 0.626990996, + "psnr_db": 27.9078376, + "ref_absmax": 11.0036087, + "rel_max": 0.702423987, + "scaled_max_abs": 0.702423987 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.1", + "ungated_probes": { + "band_ratio": 7665.0727, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.294162925, + "finite": true, + "max_abs": 3.60948867, + "mean_abs": 1.08778145, + "psnr_db": 15.9552466, + "ref_absmax": 4.70900774, + "rel_max": 0.76650727, + "scaled_max_abs": 0.76650727 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6894.96591, + "index": 5, + "metrics": { + "corr": 0.635311152, + "finite": true, + "max_abs": 7.82449579, + "mean_abs": 0.681694337, + "psnr_db": 27.6796885, + "ref_absmax": 11.3481283, + "rel_max": 0.689496591, + "scaled_max_abs": 0.689496591 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.2", + "ungated_probes": { + "band_ratio": 8029.74469, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.349554646, + "finite": true, + "max_abs": 3.75162417, + "mean_abs": 1.17203282, + "psnr_db": 15.7833333, + "ref_absmax": 4.67215872, + "rel_max": 0.802974469, + "scaled_max_abs": 0.802974469 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 10749.4915, + "index": 6, + "metrics": { + "corr": 0.592025834, + "finite": true, + "max_abs": 4.41919804, + "mean_abs": 0.69004813, + "psnr_db": 18.7760353, + "ref_absmax": 4.11107635, + "rel_max": 1.07494915, + "scaled_max_abs": 1.07494915 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "status": "fail", + "tap": "net.norm", + "ungated_probes": { + "band_ratio": 16037.2775, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.343855866, + "finite": true, + "max_abs": 4.47093427, + "mean_abs": 0.919794892, + "psnr_db": 13.5065004, + "ref_absmax": 2.7878387, + "rel_max": 1.60372775, + "scaled_max_abs": 1.60372775 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 7 + } + }, + { + "band_ratio": 14284.6298, + "index": 7, + "metrics": { + "corr": 0.519380449, + "finite": true, + "max_abs": 2.88634729, + "mean_abs": 0.529820001, + "psnr_db": 15.0354966, + "ref_absmax": 2.0205965, + "rel_max": 1.42846298, + "scaled_max_abs": 1.42846298 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "status": "fail", + "tap": "net.pool", + "ungated_probes": { + "band_ratio": 11044.1282, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.338086845, + "finite": true, + "max_abs": 2.44712585, + "mean_abs": 0.758924124, + "psnr_db": 13.1250413, + "ref_absmax": 2.21577096, + "rel_max": 1.10441282, + "scaled_max_abs": 1.10441282 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 7 + } + }, + { + "band_ratio": 9191.93466, + "index": 8, + "metrics": { + "corr": 0.617333659, + "finite": true, + "max_abs": 1.16376185, + "mean_abs": 0.260792911, + "psnr_db": 15.6980897, + "ref_absmax": 1.26606846, + "rel_max": 0.919193466, + "scaled_max_abs": 0.919193466 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.head", + "ungated_probes": { + "band_ratio": 10395.4342, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.590435814, + "finite": true, + "max_abs": 1.16007252, + "mean_abs": 0.313770849, + "psnr_db": 10.8428068, + "ref_absmax": 1.11594427, + "rel_max": 1.03954342, + "scaled_max_abs": 1.03954342 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 7 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.625, + "band_ratio": 8931.75157, + "metrics": { + "corr": 0.66374935, + "finite": true, + "max_abs": 1.2008962, + "mean_abs": 0.246445588, + "psnr_db": 17.5012242, + "ref_absmax": 1.34452486, + "rel_max": 0.893175157, + "scaled_max_abs": 0.893175157 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 2 + } + }, + "first_fail_index": 1, + "n_judged": 8, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": null + }, + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)", + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 7214.6837, + "index": 1, + "metrics": { + "corr": 0.786645931, + "finite": true, + "max_abs": 8.56461453, + "mean_abs": 0.507833434, + "psnr_db": 29.3959193, + "ref_absmax": 11.871088, + "rel_max": 0.72146837, + "scaled_max_abs": 0.72146837 + }, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;3" + }, + "status": "fail", + "tap": "net.patch_embed", + "ungated_probes": { + "band_ratio": 10118.8885, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.100149858, + "finite": true, + "max_abs": 2.54449381, + "mean_abs": 0.890941575, + "psnr_db": 12.7643646, + "ref_absmax": 2.51459813, + "rel_max": 1.01188885, + "scaled_max_abs": 1.01188885 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7399.31602, + "index": 2, + "metrics": { + "corr": 0.768079366, + "finite": true, + "max_abs": 8.5646143, + "mean_abs": 0.507833434, + "psnr_db": 29.3370924, + "ref_absmax": 11.574873, + "rel_max": 0.739931602, + "scaled_max_abs": 0.739931602 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;3" + }, + "status": "fail", + "tap": "net.pos_embed", + "ungated_probes": { + "band_ratio": 6849.33427, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.305232607, + "finite": true, + "max_abs": 2.54449382, + "mean_abs": 0.890941574, + "psnr_db": 16.125884, + "ref_absmax": 3.71495056, + "rel_max": 0.684933427, + "scaled_max_abs": 0.684933427 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7192.23198, + "index": 3, + "metrics": { + "corr": 0.722538484, + "finite": true, + "max_abs": 8.55486465, + "mean_abs": 0.548777128, + "psnr_db": 29.2647229, + "ref_absmax": 11.8945894, + "rel_max": 0.719223198, + "scaled_max_abs": 0.719223198 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.0", + "ungated_probes": { + "band_ratio": 7549.98448, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.278263682, + "finite": true, + "max_abs": 3.38942876, + "mean_abs": 0.987704573, + "psnr_db": 16.4367578, + "ref_absmax": 4.48931885, + "rel_max": 0.754998448, + "scaled_max_abs": 0.754998448 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6967.72739, + "index": 4, + "metrics": { + "corr": 0.686874242, + "finite": true, + "max_abs": 8.46831226, + "mean_abs": 0.60043141, + "psnr_db": 28.8922253, + "ref_absmax": 12.1536217, + "rel_max": 0.696772739, + "scaled_max_abs": 0.696772739 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.1", + "ungated_probes": { + "band_ratio": 7588.76812, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.282038576, + "finite": true, + "max_abs": 3.57755679, + "mean_abs": 1.08978507, + "psnr_db": 15.8557655, + "ref_absmax": 4.7142787, + "rel_max": 0.758876812, + "scaled_max_abs": 0.758876812 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6825.67724, + "index": 5, + "metrics": { + "corr": 0.660022022, + "finite": true, + "max_abs": 8.5389328, + "mean_abs": 0.649393147, + "psnr_db": 28.531075, + "ref_absmax": 12.5100155, + "rel_max": 0.682567724, + "scaled_max_abs": 0.682567724 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.2", + "ungated_probes": { + "band_ratio": 8060.11164, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.34249376, + "finite": true, + "max_abs": 3.77001941, + "mean_abs": 1.17341456, + "psnr_db": 15.6477236, + "ref_absmax": 4.67737865, + "rel_max": 0.806011164, + "scaled_max_abs": 0.806011164 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9881.91332, + "index": 6, + "metrics": { + "corr": 0.636658778, + "finite": true, + "max_abs": 4.14885926, + "mean_abs": 0.640554459, + "psnr_db": 19.4676104, + "ref_absmax": 4.19843721, + "rel_max": 0.988191332, + "scaled_max_abs": 0.988191332 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "status": "fail", + "tap": "net.norm", + "ungated_probes": { + "band_ratio": 16733.111, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.33804687, + "finite": true, + "max_abs": 4.57852435, + "mean_abs": 0.924503769, + "psnr_db": 13.3178234, + "ref_absmax": 2.73620629, + "rel_max": 1.6733111, + "scaled_max_abs": 1.6733111 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 2 + } + }, + { + "band_ratio": 14186.7026, + "index": 7, + "metrics": { + "corr": 0.631097262, + "finite": true, + "max_abs": 2.97942793, + "mean_abs": 0.474383445, + "psnr_db": 15.956437, + "ref_absmax": 2.10015535, + "rel_max": 1.41867026, + "scaled_max_abs": 1.41867026 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "status": "fail", + "tap": "net.pool", + "ungated_probes": { + "band_ratio": 11031.6655, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.338035981, + "finite": true, + "max_abs": 2.45097977, + "mean_abs": 0.765924513, + "psnr_db": 13.0852304, + "ref_absmax": 2.22176766, + "rel_max": 1.10316655, + "scaled_max_abs": 1.10316655 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 2 + } + }, + { + "band_ratio": 8931.75157, + "index": 8, + "metrics": { + "corr": 0.683986407, + "finite": true, + "max_abs": 1.2008962, + "mean_abs": 0.237650539, + "psnr_db": 16.7644307, + "ref_absmax": 1.34452486, + "rel_max": 0.893175157, + "scaled_max_abs": 0.893175157 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.head", + "ungated_probes": { + "band_ratio": 10394.265, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.594035869, + "finite": true, + "max_abs": 1.16342042, + "mean_abs": 0.308010929, + "psnr_db": 10.8934754, + "ref_absmax": 1.11929071, + "rel_max": 1.0394265, + "scaled_max_abs": 1.0394265 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 2 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp32", + "id": "tinyvit__drop_normalize__litert_fp32", + "model": "tinyvit", + "path": "litert", + "variant": "drop_normalize" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/tinyvit__drop_normalize__onnx_fp16.json b/bench/verdicts_calibrated4/tinyvit__drop_normalize__onnx_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..9f64330e1d4401804b4fa0534bd01d6a35d7870c --- /dev/null +++ b/bench/verdicts_calibrated4/tinyvit__drop_normalize__onnx_fp16.json @@ -0,0 +1,862 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "baseline": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "faithful_output_rel_max": 0.000456508758, + "output_band": 0.01, + "source": { + "bundle": "bundles/tinyvit__clean__onnx_fp16.json", + "case": "tinyvit__clean__onnx_fp16", + "digests": { + "192": { + "converted": "256af465b0649a975fd83c261b17d7830bd11a36abe6723c11a591e4649ad014", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "4e990e5a6766e80eea68d854f1db627a391a6a25b03b20781b4f30f0c5c65cf1", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + } + } + }, + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "net.patch_embed", + "band_limit": 0.01, + "explained_by": "no_normalize", + "nominal_band_ratio": 84.708198, + "results": [ + { + "band_ratio": 93.2061202, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 98.4671693, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 149.323831, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 111.414579, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 0.0416294536, + "explains": true, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "flag" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": null, + "basis": "interface hypothesis 'no_normalize' explains the first over-band tap (net.patch_embed)", + "index": 0, + "neighbourhood": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": null + }, + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 72.1454292, + "index": 1, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "status": "fail", + "tap": "net.patch_embed" + } + ], + "observed_first_over_band": { + "index": 1, + "tap": "net.patch_embed" + }, + "shape": 224, + "tap": "normalize" + }, + "fp16_floor": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "baseline": { + "bundle": "bundles/tinyvit__clean__onnx_fp16.json", + "case": "tinyvit__clean__onnx_fp16", + "digests": { + "192": { + "converted": "256af465b0649a975fd83c261b17d7830bd11a36abe6723c11a591e4649ad014", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "4e990e5a6766e80eea68d854f1db627a391a6a25b03b20781b4f30f0c5c65cf1", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + } + }, + "envelopes_gate": true, + "faithful_output_rel_max": 0.000456508758, + "faithful_tap_rel_max": { + "net.blocks.0": 0.000642335839, + "net.blocks.1": 0.000711207718, + "net.blocks.2": 0.000762561059, + "net.head": 0.000463029134, + "net.norm": 0.000851897059, + "net.patch_embed": 0.000469161546, + "net.pool": 0.00079208262, + "net.pos_embed": 0.0007491884, + "normalize": 0.000441313312 + }, + "floor": 0.01, + "k": 2.0, + "output_band": 0.01, + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used", + "tap_envelopes": { + "net.blocks.0": 0.01, + "net.blocks.1": 0.01, + "net.blocks.2": 0.01, + "net.head": 0.01, + "net.norm": 0.01, + "net.patch_embed": 0.01, + "net.pool": 0.01, + "net.pos_embed": 0.01, + "normalize": 0.01 + } + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "add226c9cdc0c4ad8f2e918776616bdb3b2ab292a8c284a00ef7f1f89db1bd9d", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "fe32fee6cefa3351906f7e81989f4f56685afbf0680e1e82469a7f179c455ce1", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + }, + { + "item": "tap normalize @ 224", + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)" + }, + { + "item": "tap normalize @ 192", + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)" + } + ], + "observation_effect_max_abs": { + "192": 4.69684601e-05, + "224": 3.39448452e-05 + }, + "primary_class": "D3", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.6875, + "band_limit": 0.01, + "band_ratio": 91.923852, + "metrics": { + "corr": 0.611247825, + "finite": true, + "max_abs": 1.1638189, + "mean_abs": 0.267426718, + "psnr_db": 16.6768206, + "ref_absmax": 1.26606846, + "rel_max": 0.91923852, + "scaled_max_abs": 0.91923852 + }, + "per_op_band_ratio": 91.923852, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 7 + } + }, + "first_fail_index": 1, + "n_judged": 8, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": null + }, + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)", + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 71.6330862, + "index": 1, + "metrics": { + "corr": 0.718441649, + "finite": true, + "max_abs": 7.73352814, + "mean_abs": 0.567660168, + "psnr_db": 28.2026016, + "ref_absmax": 10.7960281, + "rel_max": 0.716330862, + "scaled_max_abs": 0.716330862 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "per_op_band_ratio": 71.6330862, + "status": "fail", + "tap": "net.patch_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 71.7739349, + "index": 2, + "metrics": { + "corr": 0.710302165, + "finite": true, + "max_abs": 7.73321819, + "mean_abs": 0.567660169, + "psnr_db": 28.1217624, + "ref_absmax": 10.7744102, + "rel_max": 0.717739349, + "scaled_max_abs": 0.717739349 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "per_op_band_ratio": 71.7739349, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 72.380066, + "index": 3, + "metrics": { + "corr": 0.658827172, + "finite": true, + "max_abs": 7.75879192, + "mean_abs": 0.620192054, + "psnr_db": 27.686902, + "ref_absmax": 10.7195148, + "rel_max": 0.72380066, + "scaled_max_abs": 0.72380066 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "per_op_band_ratio": 72.380066, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 70.2327502, + "index": 4, + "metrics": { + "corr": 0.615761461, + "finite": true, + "max_abs": 7.72813702, + "mean_abs": 0.684583532, + "psnr_db": 27.1777573, + "ref_absmax": 11.0036087, + "rel_max": 0.702327502, + "scaled_max_abs": 0.702327502 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0" + }, + "per_op_band_ratio": 70.2327502, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 68.9486381, + "index": 5, + "metrics": { + "corr": 0.59131517, + "finite": true, + "max_abs": 7.82437992, + "mean_abs": 0.74297844, + "psnr_db": 26.9544576, + "ref_absmax": 11.3481283, + "rel_max": 0.689486381, + "scaled_max_abs": 0.689486381 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0" + }, + "per_op_band_ratio": 68.9486381, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 108.733251, + "index": 6, + "metrics": { + "corr": 0.561019167, + "finite": true, + "max_abs": 4.47010696, + "mean_abs": 0.718757224, + "psnr_db": 18.4579111, + "ref_absmax": 4.11107635, + "rel_max": 1.08733251, + "scaled_max_abs": 1.08733251 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "per_op_band_ratio": 108.733251, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_limit": 0.01, + "band_ratio": 130.287782, + "index": 7, + "metrics": { + "corr": 0.454876926, + "finite": true, + "max_abs": 2.88687885, + "mean_abs": 0.558441688, + "psnr_db": 15.3057147, + "ref_absmax": 2.21577096, + "rel_max": 1.30287782, + "scaled_max_abs": 1.30287782 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/ReduceMean_output_0" + }, + "per_op_band_ratio": 130.287782, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "natural", + "index": 7 + } + }, + { + "band_limit": 0.01, + "band_ratio": 91.9242757, + "index": 8, + "metrics": { + "corr": 0.61125072, + "finite": true, + "max_abs": 1.16382426, + "mean_abs": 0.26742436, + "psnr_db": 16.6768829, + "ref_absmax": 1.26606846, + "rel_max": 0.919242757, + "scaled_max_abs": 0.919242757 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "per_op_band_ratio": 91.9242757, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "natural", + "index": 7 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.625, + "band_limit": 0.01, + "band_ratio": 89.3203574, + "metrics": { + "corr": 0.663690686, + "finite": true, + "max_abs": 1.20093441, + "mean_abs": 0.246451464, + "psnr_db": 17.5006645, + "ref_absmax": 1.34452486, + "rel_max": 0.893203574, + "scaled_max_abs": 0.893203574 + }, + "per_op_band_ratio": 89.3203574, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 2 + } + }, + "first_fail_index": 1, + "n_judged": 8, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": null + }, + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)", + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 72.1454292, + "index": 1, + "metrics": { + "corr": 0.729466566, + "finite": true, + "max_abs": 8.5644474, + "mean_abs": 0.555721736, + "psnr_db": 28.8382996, + "ref_absmax": 11.871088, + "rel_max": 0.721454292, + "scaled_max_abs": 0.721454292 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "per_op_band_ratio": 72.1454292, + "status": "fail", + "tap": "net.patch_embed", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 73.9974198, + "index": 2, + "metrics": { + "corr": 0.71846764, + "finite": true, + "max_abs": 8.56510735, + "mean_abs": 0.55572142, + "psnr_db": 28.7794796, + "ref_absmax": 11.574873, + "rel_max": 0.739974198, + "scaled_max_abs": 0.739974198 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "per_op_band_ratio": 73.9974198, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 71.9213196, + "index": 3, + "metrics": { + "corr": 0.670735006, + "finite": true, + "max_abs": 8.55474567, + "mean_abs": 0.603640755, + "psnr_db": 28.5887467, + "ref_absmax": 11.8945894, + "rel_max": 0.719213196, + "scaled_max_abs": 0.719213196 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "per_op_band_ratio": 71.9213196, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 69.67532, + "index": 4, + "metrics": { + "corr": 0.633437829, + "finite": true, + "max_abs": 8.4680748, + "mean_abs": 0.661594904, + "psnr_db": 28.098621, + "ref_absmax": 12.1536217, + "rel_max": 0.6967532, + "scaled_max_abs": 0.6967532 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0" + }, + "per_op_band_ratio": 69.67532, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 68.244194, + "index": 5, + "metrics": { + "corr": 0.612052, + "finite": true, + "max_abs": 8.53735924, + "mean_abs": 0.714888722, + "psnr_db": 27.7352712, + "ref_absmax": 12.5100155, + "rel_max": 0.68244194, + "scaled_max_abs": 0.68244194 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0" + }, + "per_op_band_ratio": 68.244194, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 109.059979, + "index": 6, + "metrics": { + "corr": 0.599343561, + "finite": true, + "max_abs": 4.57881474, + "mean_abs": 0.676040643, + "psnr_db": 19.0430379, + "ref_absmax": 4.19843721, + "rel_max": 1.09059979, + "scaled_max_abs": 1.09059979 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "per_op_band_ratio": 109.059979, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_limit": 0.01, + "band_ratio": 134.109495, + "index": 7, + "metrics": { + "corr": 0.551884817, + "finite": true, + "max_abs": 2.97960138, + "mean_abs": 0.510820284, + "psnr_db": 15.8687082, + "ref_absmax": 2.22176766, + "rel_max": 1.34109495, + "scaled_max_abs": 1.34109495 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/ReduceMean_output_0" + }, + "per_op_band_ratio": 134.109495, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "natural", + "index": 2 + } + }, + { + "band_limit": 0.01, + "band_ratio": 89.3208007, + "index": 8, + "metrics": { + "corr": 0.663691093, + "finite": true, + "max_abs": 1.20094037, + "mean_abs": 0.246452073, + "psnr_db": 17.5006606, + "ref_absmax": 1.34452486, + "rel_max": 0.893208007, + "scaled_max_abs": 0.893208007 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "per_op_band_ratio": 89.3208007, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "natural", + "index": 2 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp16", + "id": "tinyvit__drop_normalize__onnx_fp16", + "model": "tinyvit", + "path": "onnx", + "variant": "drop_normalize" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/tinyvit__drop_normalize__onnx_fp32.json b/bench/verdicts_calibrated4/tinyvit__drop_normalize__onnx_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..e41fe3e588e4e6c0bfed888d7837149cc498ea60 --- /dev/null +++ b/bench/verdicts_calibrated4/tinyvit__drop_normalize__onnx_fp32.json @@ -0,0 +1,1039 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "net.patch_embed", + "explained_by": "no_normalize", + "nominal_band_ratio": 8470.94076, + "results": [ + { + "band_ratio": 9320.73372, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 9846.74276, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 14930.9107, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 11142.0958, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 0.0127613827, + "explains": true, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "flag" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": null, + "basis": "interface hypothesis 'no_normalize' explains the first over-band tap (net.patch_embed)", + "index": 0, + "neighbourhood": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": null + }, + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 7214.68471, + "index": 1, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "status": "fail", + "tap": "net.patch_embed" + } + ], + "observed_first_over_band": { + "index": 1, + "tap": "net.patch_embed" + }, + "shape": 224, + "tap": "normalize" + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "db40e52065196626534040ad48c742cecf8b3b3d9b02efa73bd466dab5e8540e", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "39ef4e66f64541836e7dad7f0334205a2c4657a9a7664e3d39b7daa9d4da899e", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "fp32 per-tap band on near-zero probes", + "reason": "C3-2: per-tap fp32 checks gate without the near_zero probes; they are measured and reported per tap ('ungated_probes'); the output gates on all probes. C4-1: when the output has failed and no gated tap fails, they localise the first divergence (earliest tap over band on all probes)" + }, + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + }, + { + "item": "tap normalize @ 224", + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)" + }, + { + "item": "tap normalize @ 192", + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)" + } + ], + "observation_effect_max_abs": { + "192": 1.1920929e-07, + "224": 1.1920929e-07 + }, + "primary_class": "D3", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.6875, + "band_ratio": 9191.93183, + "metrics": { + "corr": 0.611314907, + "finite": true, + "max_abs": 1.1637615, + "mean_abs": 0.267415144, + "psnr_db": 16.6773378, + "ref_absmax": 1.26606846, + "rel_max": 0.919193183, + "scaled_max_abs": 0.919193183 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 7 + } + }, + "first_fail_index": 1, + "n_judged": 8, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": null + }, + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)", + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 7162.74614, + "index": 1, + "metrics": { + "corr": 0.774269621, + "finite": true, + "max_abs": 7.73292089, + "mean_abs": 0.5214761, + "psnr_db": 28.7258114, + "ref_absmax": 10.7960281, + "rel_max": 0.716274614, + "scaled_max_abs": 0.716274614 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "status": "fail", + "tap": "net.patch_embed", + "ungated_probes": { + "band_ratio": 10119.8276, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.100131173, + "finite": true, + "max_abs": 2.54367461, + "mean_abs": 0.890949085, + "psnr_db": 12.7615689, + "ref_absmax": 2.51355529, + "rel_max": 1.01198276, + "scaled_max_abs": 1.01198276 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7177.11733, + "index": 2, + "metrics": { + "corr": 0.757692823, + "finite": true, + "max_abs": 7.73292065, + "mean_abs": 0.5214761, + "psnr_db": 28.6449726, + "ref_absmax": 10.7744102, + "rel_max": 0.717711733, + "scaled_max_abs": 0.717711733 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "status": "fail", + "tap": "net.pos_embed", + "ungated_probes": { + "band_ratio": 6619.19769, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.320187001, + "finite": true, + "max_abs": 2.54367462, + "mean_abs": 0.890949084, + "psnr_db": 16.2802126, + "ref_absmax": 3.84287453, + "rel_max": 0.661919769, + "scaled_max_abs": 0.661919769 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7238.31821, + "index": 3, + "metrics": { + "corr": 0.707925483, + "finite": true, + "max_abs": 7.75912595, + "mean_abs": 0.567828763, + "psnr_db": 28.3174306, + "ref_absmax": 10.7195148, + "rel_max": 0.723831821, + "scaled_max_abs": 0.723831821 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.0", + "ungated_probes": { + "band_ratio": 7517.29439, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.292916591, + "finite": true, + "max_abs": 3.37079976, + "mean_abs": 0.986746279, + "psnr_db": 16.589128, + "ref_absmax": 4.48405981, + "rel_max": 0.751729439, + "scaled_max_abs": 0.751729439 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7024.23813, + "index": 4, + "metrics": { + "corr": 0.665676035, + "finite": true, + "max_abs": 7.72919679, + "mean_abs": 0.626990994, + "psnr_db": 27.9078376, + "ref_absmax": 11.0036087, + "rel_max": 0.702423813, + "scaled_max_abs": 0.702423813 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.1", + "ungated_probes": { + "band_ratio": 7665.07232, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.294162922, + "finite": true, + "max_abs": 3.60948849, + "mean_abs": 1.08778145, + "psnr_db": 15.9552466, + "ref_absmax": 4.70900774, + "rel_max": 0.766507232, + "scaled_max_abs": 0.766507232 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6894.96402, + "index": 5, + "metrics": { + "corr": 0.635311155, + "finite": true, + "max_abs": 7.82449365, + "mean_abs": 0.681694334, + "psnr_db": 27.6796885, + "ref_absmax": 11.3481283, + "rel_max": 0.689496402, + "scaled_max_abs": 0.689496402 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.2", + "ungated_probes": { + "band_ratio": 8029.74482, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.349554646, + "finite": true, + "max_abs": 3.75162423, + "mean_abs": 1.17203282, + "psnr_db": 15.7833333, + "ref_absmax": 4.67215872, + "rel_max": 0.802974482, + "scaled_max_abs": 0.802974482 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 10749.4915, + "index": 6, + "metrics": { + "corr": 0.59202584, + "finite": true, + "max_abs": 4.41919804, + "mean_abs": 0.690048126, + "psnr_db": 18.7760354, + "ref_absmax": 4.11107635, + "rel_max": 1.07494915, + "scaled_max_abs": 1.07494915 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "status": "fail", + "tap": "net.norm", + "ungated_probes": { + "band_ratio": 16037.2817, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.343855867, + "finite": true, + "max_abs": 4.47093546, + "mean_abs": 0.91979489, + "psnr_db": 13.5065004, + "ref_absmax": 2.7878387, + "rel_max": 1.60372817, + "scaled_max_abs": 1.60372817 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 7 + } + }, + { + "band_ratio": 14284.6298, + "index": 7, + "metrics": { + "corr": 0.519380458, + "finite": true, + "max_abs": 2.88634729, + "mean_abs": 0.529819994, + "psnr_db": 15.0354968, + "ref_absmax": 2.0205965, + "rel_max": 1.42846298, + "scaled_max_abs": 1.42846298 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/ReduceMean_output_0" + }, + "status": "fail", + "tap": "net.pool", + "ungated_probes": { + "band_ratio": 11044.1279, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.33808684, + "finite": true, + "max_abs": 2.44712579, + "mean_abs": 0.758924129, + "psnr_db": 13.1250413, + "ref_absmax": 2.21577096, + "rel_max": 1.10441279, + "scaled_max_abs": 1.10441279 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 7 + } + }, + { + "band_ratio": 9191.93183, + "index": 8, + "metrics": { + "corr": 0.617333668, + "finite": true, + "max_abs": 1.1637615, + "mean_abs": 0.260792899, + "psnr_db": 15.6980901, + "ref_absmax": 1.26606846, + "rel_max": 0.919193183, + "scaled_max_abs": 0.919193183 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "ungated_probes": { + "band_ratio": 10395.4349, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.590435752, + "finite": true, + "max_abs": 1.16007259, + "mean_abs": 0.313770848, + "psnr_db": 10.8428063, + "ref_absmax": 1.11594427, + "rel_max": 1.03954349, + "scaled_max_abs": 1.03954349 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 7 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.625, + "band_ratio": 8931.7498, + "metrics": { + "corr": 0.663749358, + "finite": true, + "max_abs": 1.20089597, + "mean_abs": 0.246445583, + "psnr_db": 17.5012243, + "ref_absmax": 1.34452486, + "rel_max": 0.89317498, + "scaled_max_abs": 0.89317498 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 2 + } + }, + "first_fail_index": 1, + "n_judged": 8, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": null + }, + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)", + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 7214.68471, + "index": 1, + "metrics": { + "corr": 0.786645931, + "finite": true, + "max_abs": 8.56461573, + "mean_abs": 0.507833435, + "psnr_db": 29.3959193, + "ref_absmax": 11.871088, + "rel_max": 0.721468471, + "scaled_max_abs": 0.721468471 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "status": "fail", + "tap": "net.patch_embed", + "ungated_probes": { + "band_ratio": 10118.8885, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.100149858, + "finite": true, + "max_abs": 2.54449381, + "mean_abs": 0.890941575, + "psnr_db": 12.7643646, + "ref_absmax": 2.51459813, + "rel_max": 1.01188885, + "scaled_max_abs": 1.01188885 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7399.31705, + "index": 2, + "metrics": { + "corr": 0.768079366, + "finite": true, + "max_abs": 8.56461549, + "mean_abs": 0.507833435, + "psnr_db": 29.3370924, + "ref_absmax": 11.574873, + "rel_max": 0.739931705, + "scaled_max_abs": 0.739931705 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "status": "fail", + "tap": "net.pos_embed", + "ungated_probes": { + "band_ratio": 6849.33429, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.305232607, + "finite": true, + "max_abs": 2.54449383, + "mean_abs": 0.890941574, + "psnr_db": 16.125884, + "ref_absmax": 3.71495056, + "rel_max": 0.684933429, + "scaled_max_abs": 0.684933429 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7192.23278, + "index": 3, + "metrics": { + "corr": 0.722538485, + "finite": true, + "max_abs": 8.5548656, + "mean_abs": 0.548777129, + "psnr_db": 29.264723, + "ref_absmax": 11.8945894, + "rel_max": 0.719223278, + "scaled_max_abs": 0.719223278 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.0", + "ungated_probes": { + "band_ratio": 7549.98462, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.278263681, + "finite": true, + "max_abs": 3.38942882, + "mean_abs": 0.987704573, + "psnr_db": 16.4367578, + "ref_absmax": 4.48931885, + "rel_max": 0.754998462, + "scaled_max_abs": 0.754998462 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6967.72818, + "index": 4, + "metrics": { + "corr": 0.686874243, + "finite": true, + "max_abs": 8.46831322, + "mean_abs": 0.60043141, + "psnr_db": 28.8922253, + "ref_absmax": 12.1536217, + "rel_max": 0.696772818, + "scaled_max_abs": 0.696772818 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.1", + "ungated_probes": { + "band_ratio": 7588.76837, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.282038578, + "finite": true, + "max_abs": 3.57755691, + "mean_abs": 1.08978507, + "psnr_db": 15.8557655, + "ref_absmax": 4.7142787, + "rel_max": 0.758876837, + "scaled_max_abs": 0.758876837 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6825.678, + "index": 5, + "metrics": { + "corr": 0.660022024, + "finite": true, + "max_abs": 8.53893375, + "mean_abs": 0.649393146, + "psnr_db": 28.531075, + "ref_absmax": 12.5100155, + "rel_max": 0.6825678, + "scaled_max_abs": 0.6825678 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.2", + "ungated_probes": { + "band_ratio": 8060.11189, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.342493761, + "finite": true, + "max_abs": 3.77001953, + "mean_abs": 1.17341456, + "psnr_db": 15.6477236, + "ref_absmax": 4.67737865, + "rel_max": 0.806011189, + "scaled_max_abs": 0.806011189 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9881.91304, + "index": 6, + "metrics": { + "corr": 0.636658779, + "finite": true, + "max_abs": 4.14885914, + "mean_abs": 0.640554456, + "psnr_db": 19.4676104, + "ref_absmax": 4.19843721, + "rel_max": 0.988191304, + "scaled_max_abs": 0.988191304 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "status": "fail", + "tap": "net.norm", + "ungated_probes": { + "band_ratio": 16733.111, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.338046871, + "finite": true, + "max_abs": 4.57852435, + "mean_abs": 0.924503769, + "psnr_db": 13.3178234, + "ref_absmax": 2.73620629, + "rel_max": 1.6733111, + "scaled_max_abs": 1.6733111 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 2 + } + }, + { + "band_ratio": 14186.7026, + "index": 7, + "metrics": { + "corr": 0.631097259, + "finite": true, + "max_abs": 2.97942793, + "mean_abs": 0.474383448, + "psnr_db": 15.9564371, + "ref_absmax": 2.10015535, + "rel_max": 1.41867026, + "scaled_max_abs": 1.41867026 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/ReduceMean_output_0" + }, + "status": "fail", + "tap": "net.pool", + "ungated_probes": { + "band_ratio": 11031.6655, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.338035983, + "finite": true, + "max_abs": 2.45097977, + "mean_abs": 0.765924514, + "psnr_db": 13.0852304, + "ref_absmax": 2.22176766, + "rel_max": 1.10316655, + "scaled_max_abs": 1.10316655 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 2 + } + }, + { + "band_ratio": 8931.7498, + "index": 8, + "metrics": { + "corr": 0.683986419, + "finite": true, + "max_abs": 1.20089597, + "mean_abs": 0.237650532, + "psnr_db": 16.7644308, + "ref_absmax": 1.34452486, + "rel_max": 0.89317498, + "scaled_max_abs": 0.89317498 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "ungated_probes": { + "band_ratio": 10394.2647, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.594035881, + "finite": true, + "max_abs": 1.16342039, + "mean_abs": 0.308010941, + "psnr_db": 10.8934755, + "ref_absmax": 1.11929071, + "rel_max": 1.03942647, + "scaled_max_abs": 1.03942647 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 2 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp32", + "id": "tinyvit__drop_normalize__onnx_fp32", + "model": "tinyvit", + "path": "onnx", + "variant": "drop_normalize" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/tinyvit__fp16_as_fp32__coreml.json b/bench/verdicts_calibrated4/tinyvit__fp16_as_fp32__coreml.json new file mode 100644 index 0000000000000000000000000000000000000000..f0ec23f707edcdedd6a8bc4e4ce3cb7818fcbcb5 --- /dev/null +++ b/bench/verdicts_calibrated4/tinyvit__fp16_as_fp32__coreml.json @@ -0,0 +1,1070 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": "artifact computes in fp16 (declared fp32); the drift onset (normalize) is the size fp16 explains: distributed precision drift, not a single-op fault", + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "normalize", + "explained_by": null, + "nominal_band_ratio": 13.0516105, + "results": [ + { + "band_ratio": 16835.9372, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 8135.60838, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 20992.1961, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 16915.457, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 21192.4062, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [ + "inputs[0]: dtype float16 (declared float32)", + "outputs[0]: dtype float16 (declared float32)" + ], + "status": "precision_narrowing" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp32", + "first_divergence": { + "basis": "artifact computes in fp16 (declared fp32); the drift onset (normalize) is the size fp16 explains: distributed precision drift, not a single-op fault", + "index": null, + "onset": { + "index": 0, + "tap": "normalize" + }, + "shape": 224, + "tap": null + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "0035167ec9cc06c61986ca2249819ae1510c5a12aad7eaf510988220c7579aa5", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "5430fd6da54612ccdc73a3180116c0a8d19224ecfcc7ca2d7ce9df494c8307f9", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "fp32 per-tap band on near-zero probes", + "reason": "C3-2: per-tap fp32 checks gate without the near_zero probes; they are measured and reported per tap ('ungated_probes'); the output gates on all probes. C4-1: when the output has failed and no gated tap fails, they localise the first divergence (earliest tap over band on all probes)" + }, + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D1", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 34.9849989, + "metrics": { + "corr": 0.999995654, + "finite": true, + "max_abs": 0.00442934036, + "mean_abs": 0.000622573402, + "psnr_db": 67.6041424, + "ref_absmax": 1.26606846, + "rel_max": 0.00349849989, + "scaled_max_abs": 0.00349849989 + }, + "status": "fail", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + "first_fail_index": 0, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 11.7570499, + "index": 0, + "metrics": { + "corr": 0.999999902, + "finite": true, + "max_abs": 0.0135545731, + "mean_abs": 0.000673314916, + "psnr_db": 83.5088008, + "ref_absmax": 11.5288897, + "rel_max": 0.00117570499, + "scaled_max_abs": 0.00117570499 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "status": "fail", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 10.0369993, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999989865, + "finite": true, + "max_abs": 0.00212574005, + "mean_abs": 0.000683009185, + "psnr_db": 51.8645591, + "ref_absmax": 2.11790395, + "rel_max": 0.00100369993, + "scaled_max_abs": 0.00100369993 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 147.449007, + "index": 1, + "metrics": { + "corr": 0.99999166, + "finite": true, + "max_abs": 0.159186363, + "mean_abs": 0.00240141178, + "psnr_db": 74.0231272, + "ref_absmax": 10.7960281, + "rel_max": 0.0147449007, + "scaled_max_abs": 0.0147449007 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_5_cast_fp16" + }, + "status": "fail", + "tap": "net.patch_embed", + "ungated_probes": { + "band_ratio": 148.018305, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999989964, + "finite": true, + "max_abs": 0.0372052193, + "mean_abs": 0.00333680444, + "psnr_db": 59.6442152, + "ref_absmax": 2.51355529, + "rel_max": 0.0148018305, + "scaled_max_abs": 0.0148018305 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 145.772783, + "index": 2, + "metrics": { + "corr": 0.999992507, + "finite": true, + "max_abs": 0.157061577, + "mean_abs": 0.00241249945, + "psnr_db": 73.9242327, + "ref_absmax": 10.7744102, + "rel_max": 0.0145772783, + "scaled_max_abs": 0.0145772783 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5_cast_fp16" + }, + "status": "fail", + "tap": "net.pos_embed", + "ungated_probes": { + "band_ratio": 96.3166818, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999990911, + "finite": true, + "max_abs": 0.0370132923, + "mean_abs": 0.00334582778, + "psnr_db": 63.148064, + "ref_absmax": 3.84287453, + "rel_max": 0.00963166818, + "scaled_max_abs": 0.00963166818 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 144.004222, + "index": 3, + "metrics": { + "corr": 0.999992528, + "finite": true, + "max_abs": 0.15436554, + "mean_abs": 0.00257899825, + "psnr_db": 73.7696772, + "ref_absmax": 10.7195148, + "rel_max": 0.0144004222, + "scaled_max_abs": 0.0144004222 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_17_cast_fp16" + }, + "status": "fail", + "tap": "net.blocks.0", + "ungated_probes": { + "band_ratio": 80.0355815, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999992037, + "finite": true, + "max_abs": 0.0358884335, + "mean_abs": 0.00363071699, + "psnr_db": 64.1587209, + "ref_absmax": 4.48405981, + "rel_max": 0.00800355815, + "scaled_max_abs": 0.00800355815 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 145.278434, + "index": 4, + "metrics": { + "corr": 0.999992676, + "finite": true, + "max_abs": 0.159858704, + "mean_abs": 0.00275336172, + "psnr_db": 73.7225019, + "ref_absmax": 11.0036087, + "rel_max": 0.0145278434, + "scaled_max_abs": 0.0145278434 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_29_cast_fp16" + }, + "status": "fail", + "tap": "net.blocks.1", + "ungated_probes": { + "band_ratio": 76.7444298, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999993028, + "finite": true, + "max_abs": 0.0361390114, + "mean_abs": 0.00392476905, + "psnr_db": 64.1116518, + "ref_absmax": 4.70900774, + "rel_max": 0.00767444298, + "scaled_max_abs": 0.00767444298 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 134.661694, + "index": 5, + "metrics": { + "corr": 0.999992632, + "finite": true, + "max_abs": 0.152815819, + "mean_abs": 0.00290770777, + "psnr_db": 73.7558025, + "ref_absmax": 11.3481283, + "rel_max": 0.0134661694, + "scaled_max_abs": 0.0134661694 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_41_cast_fp16" + }, + "status": "fail", + "tap": "net.blocks.2", + "ungated_probes": { + "band_ratio": 81.8331725, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999993725, + "finite": true, + "max_abs": 0.038233757, + "mean_abs": 0.00410572699, + "psnr_db": 64.1919816, + "ref_absmax": 4.67215872, + "rel_max": 0.00818331725, + "scaled_max_abs": 0.00818331725 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 71.1003077, + "index": 6, + "metrics": { + "corr": 0.99999343, + "finite": true, + "max_abs": 0.0292298794, + "mean_abs": 0.00271754915, + "psnr_db": 66.7065328, + "ref_absmax": 4.11107635, + "rel_max": 0.00711003077, + "scaled_max_abs": 0.00711003077 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "status": "fail", + "tap": "net.norm", + "ungated_probes": { + "band_ratio": 82.5850037, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999993777, + "finite": true, + "max_abs": 0.0230233669, + "mean_abs": 0.00260284532, + "psnr_db": 63.7364992, + "ref_absmax": 2.7878387, + "rel_max": 0.00825850037, + "scaled_max_abs": 0.00825850037 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 1 + } + }, + { + "band_ratio": 31.8497938, + "index": 7, + "metrics": { + "corr": 0.999998022, + "finite": true, + "max_abs": 0.0064355582, + "mean_abs": 0.000665321107, + "psnr_db": 71.9919831, + "ref_absmax": 2.0205965, + "rel_max": 0.00318497938, + "scaled_max_abs": 0.00318497938 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_cast_fp16" + }, + "status": "fail", + "tap": "net.pool", + "ungated_probes": { + "band_ratio": 50.1150413, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999995587, + "finite": true, + "max_abs": 0.0111043453, + "mean_abs": 0.0021033361, + "psnr_db": 63.3958347, + "ref_absmax": 2.21577096, + "rel_max": 0.00501150413, + "scaled_max_abs": 0.00501150413 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "wide_range", + "index": 22 + } + }, + { + "band_ratio": 12.3727091, + "index": 8, + "metrics": { + "corr": 0.999998132, + "finite": true, + "max_abs": 0.00156646967, + "mean_abs": 0.000420696421, + "psnr_db": 71.1392103, + "ref_absmax": 1.26606846, + "rel_max": 0.00123727091, + "scaled_max_abs": 0.00123727091 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "ungated_probes": { + "band_ratio": 39.691412, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999989601, + "finite": true, + "max_abs": 0.00442934036, + "mean_abs": 0.00203571226, + "psnr_db": 56.6410602, + "ref_absmax": 1.11594427, + "rel_max": 0.0039691412, + "scaled_max_abs": 0.0039691412 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "wide_range", + "index": 22 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 40.2825966, + "metrics": { + "corr": 0.999995129, + "finite": true, + "max_abs": 0.00541609526, + "mean_abs": 0.000663621235, + "psnr_db": 67.1899789, + "ref_absmax": 1.34452486, + "rel_max": 0.00402825966, + "scaled_max_abs": 0.00402825966 + }, + "status": "fail", + "worst_probe": { + "category": "near_zero", + "index": 27 + } + }, + "first_fail_index": 0, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 11.6213884, + "index": 0, + "metrics": { + "corr": 0.999999897, + "finite": true, + "max_abs": 0.0133981705, + "mean_abs": 0.000679052144, + "psnr_db": 83.5479136, + "ref_absmax": 11.5288897, + "rel_max": 0.00116213884, + "scaled_max_abs": 0.00116213884 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "status": "fail", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 10.0369993, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999989885, + "finite": true, + "max_abs": 0.00212574005, + "mean_abs": 0.000683342096, + "psnr_db": 51.9168588, + "ref_absmax": 2.11790395, + "rel_max": 0.00100369993, + "scaled_max_abs": 0.00100369993 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 81.7007877, + "index": 1, + "metrics": { + "corr": 0.999991674, + "finite": true, + "max_abs": 0.0969877243, + "mean_abs": 0.00238978118, + "psnr_db": 74.5872847, + "ref_absmax": 11.871088, + "rel_max": 0.00817007877, + "scaled_max_abs": 0.00817007877 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_5_cast_fp16" + }, + "status": "fail", + "tap": "net.patch_embed", + "ungated_probes": { + "band_ratio": 157.142479, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999990012, + "finite": true, + "max_abs": 0.0395150185, + "mean_abs": 0.00333326143, + "psnr_db": 59.6639951, + "ref_absmax": 2.51459813, + "rel_max": 0.0157142479, + "scaled_max_abs": 0.0157142479 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 86.0384338, + "index": 2, + "metrics": { + "corr": 0.999992428, + "finite": true, + "max_abs": 0.0995883942, + "mean_abs": 0.00239887099, + "psnr_db": 74.5123349, + "ref_absmax": 11.574873, + "rel_max": 0.00860384338, + "scaled_max_abs": 0.00860384338 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5_cast_fp16" + }, + "status": "fail", + "tap": "net.pos_embed", + "ungated_probes": { + "band_ratio": 107.024091, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.99999086, + "finite": true, + "max_abs": 0.0397589207, + "mean_abs": 0.00334231298, + "psnr_db": 63.0102771, + "ref_absmax": 3.71495056, + "rel_max": 0.0107024091, + "scaled_max_abs": 0.0107024091 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 83.7666842, + "index": 3, + "metrics": { + "corr": 0.999992537, + "finite": true, + "max_abs": 0.0996370316, + "mean_abs": 0.00256758614, + "psnr_db": 74.5919342, + "ref_absmax": 11.8945894, + "rel_max": 0.00837666842, + "scaled_max_abs": 0.00837666842 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_17_cast_fp16" + }, + "status": "fail", + "tap": "net.blocks.0", + "ungated_probes": { + "band_ratio": 82.6609511, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999991963, + "finite": true, + "max_abs": 0.0371091366, + "mean_abs": 0.00362633114, + "psnr_db": 63.996191, + "ref_absmax": 4.48931885, + "rel_max": 0.00826609511, + "scaled_max_abs": 0.00826609511 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 83.436153, + "index": 4, + "metrics": { + "corr": 0.999992719, + "finite": true, + "max_abs": 0.101405144, + "mean_abs": 0.00274336618, + "psnr_db": 74.5224192, + "ref_absmax": 12.1536217, + "rel_max": 0.0083436153, + "scaled_max_abs": 0.0083436153 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_29_cast_fp16" + }, + "status": "fail", + "tap": "net.blocks.1", + "ungated_probes": { + "band_ratio": 77.4541476, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.99999288, + "finite": true, + "max_abs": 0.0365140438, + "mean_abs": 0.00392960932, + "psnr_db": 63.9719464, + "ref_absmax": 4.7142787, + "rel_max": 0.00774541476, + "scaled_max_abs": 0.00774541476 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 81.8916301, + "index": 5, + "metrics": { + "corr": 0.999992692, + "finite": true, + "max_abs": 0.102446556, + "mean_abs": 0.00288773465, + "psnr_db": 74.4001534, + "ref_absmax": 12.5100155, + "rel_max": 0.00818916301, + "scaled_max_abs": 0.00818916301 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_41_cast_fp16" + }, + "status": "fail", + "tap": "net.blocks.2", + "ungated_probes": { + "band_ratio": 83.2898876, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.99999368, + "finite": true, + "max_abs": 0.0389578342, + "mean_abs": 0.00408612793, + "psnr_db": 64.0468734, + "ref_absmax": 4.67737865, + "rel_max": 0.00832898876, + "scaled_max_abs": 0.00832898876 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 67.8718025, + "index": 6, + "metrics": { + "corr": 0.999993548, + "finite": true, + "max_abs": 0.0284955502, + "mean_abs": 0.00268627351, + "psnr_db": 66.9735946, + "ref_absmax": 4.19843721, + "rel_max": 0.00678718025, + "scaled_max_abs": 0.00678718025 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "status": "fail", + "tap": "net.norm", + "ungated_probes": { + "band_ratio": 81.7010022, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999993716, + "finite": true, + "max_abs": 0.0223550797, + "mean_abs": 0.0026029544, + "psnr_db": 63.5433857, + "ref_absmax": 2.73620629, + "rel_max": 0.00817010022, + "scaled_max_abs": 0.00817010022 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 26.6874246, + "index": 7, + "metrics": { + "corr": 0.999998343, + "finite": true, + "max_abs": 0.00560477376, + "mean_abs": 0.000637223218, + "psnr_db": 72.315572, + "ref_absmax": 2.10015535, + "rel_max": 0.00266874246, + "scaled_max_abs": 0.00266874246 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_cast_fp16" + }, + "status": "fail", + "tap": "net.pool", + "ungated_probes": { + "band_ratio": 47.8346443, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999995647, + "finite": true, + "max_abs": 0.0106277466, + "mean_abs": 0.00204641261, + "psnr_db": 63.4562752, + "ref_absmax": 2.22176766, + "rel_max": 0.00478346443, + "scaled_max_abs": 0.00478346443 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_ratio": 23.4035338, + "index": 8, + "metrics": { + "corr": 0.999997248, + "finite": true, + "max_abs": 0.00314666331, + "mean_abs": 0.000491764902, + "psnr_db": 69.5571646, + "ref_absmax": 1.34452486, + "rel_max": 0.00234035338, + "scaled_max_abs": 0.00234035338 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "ungated_probes": { + "band_ratio": 48.3886377, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999988571, + "finite": true, + "max_abs": 0.00541609526, + "mean_abs": 0.00186661556, + "psnr_db": 56.546556, + "ref_absmax": 1.11929071, + "rel_max": 0.00483886377, + "scaled_max_abs": 0.00483886377 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 28 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp16", + "id": "tinyvit__fp16_as_fp32__coreml", + "model": "tinyvit", + "path": "coreml", + "variant": "fp16_as_fp32" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/tinyvit__fp16_as_fp32__litert.json b/bench/verdicts_calibrated4/tinyvit__fp16_as_fp32__litert.json new file mode 100644 index 0000000000000000000000000000000000000000..b0db59075caaba2962fcfe1018ee5a28ae3a4885 --- /dev/null +++ b/bench/verdicts_calibrated4/tinyvit__fp16_as_fp32__litert.json @@ -0,0 +1,1089 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": "artifact computes in fp16 (declared fp32); the drift onset (net.patch_embed) is the size fp16 explains: distributed precision drift, not a single-op fault", + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "net.patch_embed", + "explained_by": null, + "nominal_band_ratio": 2.4628373, + "results": [ + { + "band_ratio": 11552.3416, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 8037.7666, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 23361.9905, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 16415.9709, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 23573.3945, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 0.00155154223, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.08616257e-07, + "mean_abs": 4.28262865e-08, + "psnr_db": 152.601588, + "ref_absmax": 1.3445735, + "rel_max": 1.55154223e-07, + "scaled_max_abs": 1.55154223e-07 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 57, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 1, + "n_ops_total": 187, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp32", + "first_divergence": { + "basis": "artifact computes in fp16 (declared fp32); the drift onset (net.patch_embed) is the size fp16 explains: distributed precision drift, not a single-op fault", + "index": null, + "onset": { + "index": 1, + "tap": "net.patch_embed" + }, + "shape": 224, + "tap": null + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "170133fb2c750896c9b9cfaed4c8aab6b2e92dd28e9a0114b604c6d35736d93d", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "e6f67f478f27c5cbe93fb3192583b8c4adeb54f48117f07895a6c68beeb1c827", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "fp32 per-tap band on near-zero probes", + "reason": "C3-2: per-tap fp32 checks gate without the near_zero probes; they are measured and reported per tap ('ungated_probes'); the output gates on all probes. C4-1: when the output has failed and no gated tap fails, they localise the first divergence (earliest tap over band on all probes)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D1", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 2.08557898, + "metrics": { + "corr": 0.999999962, + "finite": true, + "max_abs": 0.000264048576, + "mean_abs": 7.30160158e-05, + "psnr_db": 88.0747128, + "ref_absmax": 1.26606846, + "rel_max": 0.000208557898, + "scaled_max_abs": 0.000208557898 + }, + "status": "fail", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + "first_fail_index": 1, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.06644368e-08, + "psnr_db": 164.113247, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.00112572895, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.38418579e-07, + "mean_abs": 4.66593688e-08, + "psnr_db": 130.397207, + "ref_absmax": 2.11790395, + "rel_max": 1.12572895e-07, + "scaled_max_abs": 1.12572895e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 2.38484209, + "index": 1, + "metrics": { + "corr": 0.999999975, + "finite": true, + "max_abs": 0.00257468224, + "mean_abs": 0.000146668807, + "psnr_db": 99.2314255, + "ref_absmax": 10.7960281, + "rel_max": 0.000238484209, + "scaled_max_abs": 0.000238484209 + }, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;2" + }, + "status": "fail", + "tap": "net.patch_embed", + "ungated_probes": { + "band_ratio": 2.45669599, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999974, + "finite": true, + "max_abs": 0.00061750412, + "mean_abs": 0.000198497036, + "psnr_db": 85.5839766, + "ref_absmax": 2.51355529, + "rel_max": 0.000245669599, + "scaled_max_abs": 0.000245669599 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 2.38962707, + "index": 2, + "metrics": { + "corr": 0.999999978, + "finite": true, + "max_abs": 0.00257468224, + "mean_abs": 0.000146668711, + "psnr_db": 99.1505832, + "ref_absmax": 10.7744102, + "rel_max": 0.000238962707, + "scaled_max_abs": 0.000238962707 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;3" + }, + "status": "fail", + "tap": "net.pos_embed", + "ungated_probes": { + "band_ratio": 1.60688078, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999977, + "finite": true, + "max_abs": 0.00061750412, + "mean_abs": 0.00019849728, + "psnr_db": 89.1026164, + "ref_absmax": 3.84287453, + "rel_max": 0.000160688078, + "scaled_max_abs": 0.000160688078 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 2.48371341, + "index": 3, + "metrics": { + "corr": 0.999999975, + "finite": true, + "max_abs": 0.00266242027, + "mean_abs": 0.000167112535, + "psnr_db": 98.5331587, + "ref_absmax": 10.7195148, + "rel_max": 0.000248371341, + "scaled_max_abs": 0.000248371341 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.0", + "ungated_probes": { + "band_ratio": 1.70756256, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999976, + "finite": true, + "max_abs": 0.000765681267, + "mean_abs": 0.0002359365, + "psnr_db": 89.3141383, + "ref_absmax": 4.48405981, + "rel_max": 0.000170756256, + "scaled_max_abs": 0.000170756256 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 2.44428902, + "index": 4, + "metrics": { + "corr": 0.999999974, + "finite": true, + "max_abs": 0.00268959999, + "mean_abs": 0.000186226546, + "psnr_db": 98.1991789, + "ref_absmax": 11.0036087, + "rel_max": 0.000244428902, + "scaled_max_abs": 0.000244428902 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.1", + "ungated_probes": { + "band_ratio": 1.4528371, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999979, + "finite": true, + "max_abs": 0.000684142113, + "mean_abs": 0.000249424345, + "psnr_db": 89.2109679, + "ref_absmax": 4.70900774, + "rel_max": 0.00014528371, + "scaled_max_abs": 0.00014528371 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 2.49340827, + "index": 5, + "metrics": { + "corr": 0.999999973, + "finite": true, + "max_abs": 0.0028295517, + "mean_abs": 0.000198009594, + "psnr_db": 98.1808209, + "ref_absmax": 11.3481283, + "rel_max": 0.000249340827, + "scaled_max_abs": 0.000249340827 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.2", + "ungated_probes": { + "band_ratio": 1.87151206, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999981, + "finite": true, + "max_abs": 0.000874400139, + "mean_abs": 0.000249660435, + "psnr_db": 89.4066623, + "ref_absmax": 4.67215872, + "rel_max": 0.000187151206, + "scaled_max_abs": 0.000187151206 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 3.10450195, + "index": 6, + "metrics": { + "corr": 0.999999971, + "finite": true, + "max_abs": 0.00127628446, + "mean_abs": 0.000191676264, + "psnr_db": 90.2317663, + "ref_absmax": 4.11107635, + "rel_max": 0.000310450195, + "scaled_max_abs": 0.000310450195 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "status": "fail", + "tap": "net.norm", + "ungated_probes": { + "band_ratio": 1.92769538, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999981, + "finite": true, + "max_abs": 0.000537410378, + "mean_abs": 0.000158752546, + "psnr_db": 88.9283707, + "ref_absmax": 2.7878387, + "rel_max": 0.000192769538, + "scaled_max_abs": 0.000192769538 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_ratio": 2.66607795, + "index": 7, + "metrics": { + "corr": 0.999999967, + "finite": true, + "max_abs": 0.000538706779, + "mean_abs": 9.6511301e-05, + "psnr_db": 89.7206294, + "ref_absmax": 2.0205965, + "rel_max": 0.000266607795, + "scaled_max_abs": 0.000266607795 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "status": "fail", + "tap": "net.pool", + "ungated_probes": { + "band_ratio": 2.13412604, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.99999998, + "finite": true, + "max_abs": 0.000472873449, + "mean_abs": 0.000157785471, + "psnr_db": 86.9046267, + "ref_absmax": 2.21577096, + "rel_max": 0.000213412604, + "scaled_max_abs": 0.000213412604 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 2 + } + }, + { + "band_ratio": 1.9179794, + "index": 8, + "metrics": { + "corr": 0.999999961, + "finite": true, + "max_abs": 0.000242829323, + "mean_abs": 6.3940723e-05, + "psnr_db": 87.8399765, + "ref_absmax": 1.26606846, + "rel_max": 0.00019179794, + "scaled_max_abs": 0.00019179794 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.head", + "ungated_probes": { + "band_ratio": 2.36614484, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999952, + "finite": true, + "max_abs": 0.000264048576, + "mean_abs": 0.000136543065, + "psnr_db": 80.3363489, + "ref_absmax": 1.11594427, + "rel_max": 0.000236614484, + "scaled_max_abs": 0.000236614484 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 1.97939619, + "metrics": { + "corr": 0.999999958, + "finite": true, + "max_abs": 0.000266134739, + "mean_abs": 7.85663025e-05, + "psnr_db": 87.7638046, + "ref_absmax": 1.34452486, + "rel_max": 0.000197939619, + "scaled_max_abs": 0.000197939619 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 1, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.08107465e-08, + "psnr_db": 164.245493, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.00112572895, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.38418579e-07, + "mean_abs": 4.66724468e-08, + "psnr_db": 130.436578, + "ref_absmax": 2.11790395, + "rel_max": 1.12572895e-07, + "scaled_max_abs": 1.12572895e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 2.77319462, + "index": 1, + "metrics": { + "corr": 0.999999975, + "finite": true, + "max_abs": 0.00329208374, + "mean_abs": 0.000146002125, + "psnr_db": 99.8341206, + "ref_absmax": 11.871088, + "rel_max": 0.000277319462, + "scaled_max_abs": 0.000277319462 + }, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;2" + }, + "status": "fail", + "tap": "net.patch_embed", + "ungated_probes": { + "band_ratio": 2.4566253, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999974, + "finite": true, + "max_abs": 0.000617742538, + "mean_abs": 0.000198494246, + "psnr_db": 85.5866198, + "ref_absmax": 2.51459813, + "rel_max": 0.00024566253, + "scaled_max_abs": 0.00024566253 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 2.84416403, + "index": 2, + "metrics": { + "corr": 0.999999977, + "finite": true, + "max_abs": 0.00329208374, + "mean_abs": 0.000146002015, + "psnr_db": 99.7753033, + "ref_absmax": 11.574873, + "rel_max": 0.000284416403, + "scaled_max_abs": 0.000284416403 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;3" + }, + "status": "fail", + "tap": "net.pos_embed", + "ungated_probes": { + "band_ratio": 1.66285534, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999977, + "finite": true, + "max_abs": 0.000617742538, + "mean_abs": 0.00019849472, + "psnr_db": 88.9481302, + "ref_absmax": 3.71495056, + "rel_max": 0.000166285534, + "scaled_max_abs": 0.000166285534 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 2.79738087, + "index": 3, + "metrics": { + "corr": 0.999999975, + "finite": true, + "max_abs": 0.00332736969, + "mean_abs": 0.000167847159, + "psnr_db": 99.3417161, + "ref_absmax": 11.8945894, + "rel_max": 0.000279738087, + "scaled_max_abs": 0.000279738087 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.0", + "ungated_probes": { + "band_ratio": 1.69414402, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999975, + "finite": true, + "max_abs": 0.000760555267, + "mean_abs": 0.000236143439, + "psnr_db": 89.1637407, + "ref_absmax": 4.48931885, + "rel_max": 0.000169414402, + "scaled_max_abs": 0.000169414402 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 2.70794184, + "index": 4, + "metrics": { + "corr": 0.999999974, + "finite": true, + "max_abs": 0.00329113007, + "mean_abs": 0.000189345397, + "psnr_db": 98.9362718, + "ref_absmax": 12.1536217, + "rel_max": 0.000270794184, + "scaled_max_abs": 0.000270794184 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.1", + "ungated_probes": { + "band_ratio": 1.44135083, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999979, + "finite": true, + "max_abs": 0.00067949295, + "mean_abs": 0.000249681255, + "psnr_db": 89.1150595, + "ref_absmax": 4.7142787, + "rel_max": 0.000144135083, + "scaled_max_abs": 0.000144135083 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 2.56599822, + "index": 5, + "metrics": { + "corr": 0.999999973, + "finite": true, + "max_abs": 0.00321006775, + "mean_abs": 0.000201723236, + "psnr_db": 98.7403794, + "ref_absmax": 12.5100155, + "rel_max": 0.000256599822, + "scaled_max_abs": 0.000256599822 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.2", + "ungated_probes": { + "band_ratio": 1.85935635, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999981, + "finite": true, + "max_abs": 0.000869691372, + "mean_abs": 0.000249910084, + "psnr_db": 89.2701272, + "ref_absmax": 4.67737865, + "rel_max": 0.000185935635, + "scaled_max_abs": 0.000185935635 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 2.84519364, + "index": 6, + "metrics": { + "corr": 0.99999997, + "finite": true, + "max_abs": 0.00119453669, + "mean_abs": 0.000194901768, + "psnr_db": 90.3380335, + "ref_absmax": 4.19843721, + "rel_max": 0.000284519364, + "scaled_max_abs": 0.000284519364 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "status": "fail", + "tap": "net.norm", + "ungated_probes": { + "band_ratio": 1.97414608, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999981, + "finite": true, + "max_abs": 0.000540167093, + "mean_abs": 0.000159209748, + "psnr_db": 88.7556103, + "ref_absmax": 2.73620629, + "rel_max": 0.000197414608, + "scaled_max_abs": 0.000197414608 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 14 + } + }, + { + "band_ratio": 2.52704999, + "index": 7, + "metrics": { + "corr": 0.999999965, + "finite": true, + "max_abs": 0.000530719757, + "mean_abs": 0.000107517902, + "psnr_db": 89.0758621, + "ref_absmax": 2.10015535, + "rel_max": 0.000252704999, + "scaled_max_abs": 0.000252704999 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "status": "fail", + "tap": "net.pool", + "ungated_probes": { + "band_ratio": 2.13748726, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.99999998, + "finite": true, + "max_abs": 0.000474900007, + "mean_abs": 0.000158360461, + "psnr_db": 86.9064065, + "ref_absmax": 2.22176766, + "rel_max": 0.000213748726, + "scaled_max_abs": 0.000213748726 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_ratio": 1.97939619, + "index": 8, + "metrics": { + "corr": 0.999999954, + "finite": true, + "max_abs": 0.000266134739, + "mean_abs": 7.02080716e-05, + "psnr_db": 87.3402093, + "ref_absmax": 1.34452486, + "rel_max": 0.000197939619, + "scaled_max_abs": 0.000197939619 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.head", + "ungated_probes": { + "band_ratio": 2.36546082, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999952, + "finite": true, + "max_abs": 0.000264763832, + "mean_abs": 0.000137073919, + "psnr_db": 80.3324617, + "ref_absmax": 1.11929071, + "rel_max": 0.000236546082, + "scaled_max_abs": 0.000236546082 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp16", + "id": "tinyvit__fp16_as_fp32__litert", + "model": "tinyvit", + "path": "litert", + "variant": "fp16_as_fp32" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/tinyvit__fp16_as_fp32__onnx.json b/bench/verdicts_calibrated4/tinyvit__fp16_as_fp32__onnx.json new file mode 100644 index 0000000000000000000000000000000000000000..9355ba1ede4421915b700a951ed8003f44869809 --- /dev/null +++ b/bench/verdicts_calibrated4/tinyvit__fp16_as_fp32__onnx.json @@ -0,0 +1,1067 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": "artifact computes in fp16 (declared fp32); the drift onset (normalize) is the size fp16 explains: distributed precision drift, not a single-op fault", + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "normalize", + "explained_by": null, + "nominal_band_ratio": 5.61457669, + "results": [ + { + "band_ratio": 16837.3835, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 8136.03377, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 20992.2062, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 16908.0588, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 21191.4949, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp32", + "first_divergence": { + "basis": "artifact computes in fp16 (declared fp32); the drift onset (normalize) is the size fp16 explains: distributed precision drift, not a single-op fault", + "index": null, + "onset": { + "index": 0, + "tap": "normalize" + }, + "shape": 224, + "tap": null + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "256af465b0649a975fd83c261b17d7830bd11a36abe6723c11a591e4649ad014", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "4e990e5a6766e80eea68d854f1db627a391a6a25b03b20781b4f30f0c5c65cf1", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "fp32 per-tap band on near-zero probes", + "reason": "C3-2: per-tap fp32 checks gate without the near_zero probes; they are measured and reported per tap ('ungated_probes'); the output gates on all probes. C4-1: when the output has failed and no gated tap fails, they localise the first divergence (earliest tap over band on all probes)" + }, + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 4.91738319e-05, + "224": 4.39584255e-05 + }, + "primary_class": "D1", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 4.56508758, + "metrics": { + "corr": 0.999999892, + "finite": true, + "max_abs": 0.000577971339, + "mean_abs": 0.00012937998, + "psnr_db": 83.1653887, + "ref_absmax": 1.26606846, + "rel_max": 0.000456508758, + "scaled_max_abs": 0.000456508758 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + "first_fail_index": 0, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 4.41313312, + "index": 0, + "metrics": { + "corr": 0.999999963, + "finite": true, + "max_abs": 0.00508785248, + "mean_abs": 0.000398882656, + "psnr_db": 88.0865038, + "ref_absmax": 11.5288897, + "rel_max": 0.000441313312, + "scaled_max_abs": 0.000441313312 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "fail", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 6.65530956, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999993146, + "finite": true, + "max_abs": 0.00140953064, + "mean_abs": 0.000455446029, + "psnr_db": 55.2971327, + "ref_absmax": 2.11790395, + "rel_max": 0.000665530956, + "scaled_max_abs": 0.000665530956 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 4.69150713, + "index": 1, + "metrics": { + "corr": 0.999999939, + "finite": true, + "max_abs": 0.00506496429, + "mean_abs": 0.000250051204, + "psnr_db": 95.3536947, + "ref_absmax": 10.7960281, + "rel_max": 0.000469150713, + "scaled_max_abs": 0.000469150713 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "status": "fail", + "tap": "net.patch_embed", + "ungated_probes": { + "band_ratio": 6.62549092, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999953, + "finite": true, + "max_abs": 0.00166535378, + "mean_abs": 0.000294711963, + "psnr_db": 82.0410454, + "ref_absmax": 2.51355529, + "rel_max": 0.000662549092, + "scaled_max_abs": 0.000662549092 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7.35365188, + "index": 2, + "metrics": { + "corr": 0.99999992, + "finite": true, + "max_abs": 0.00792312622, + "mean_abs": 0.000295340768, + "psnr_db": 93.6432527, + "ref_absmax": 10.7744102, + "rel_max": 0.000735365188, + "scaled_max_abs": 0.000735365188 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "status": "fail", + "tap": "net.pos_embed", + "ungated_probes": { + "band_ratio": 6.29165171, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999931, + "finite": true, + "max_abs": 0.00241780281, + "mean_abs": 0.000345438408, + "psnr_db": 83.9132961, + "ref_absmax": 3.84287453, + "rel_max": 0.000629165171, + "scaled_max_abs": 0.000629165171 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6.42335839, + "index": 3, + "metrics": { + "corr": 0.999999913, + "finite": true, + "max_abs": 0.00688552856, + "mean_abs": 0.000332153313, + "psnr_db": 93.1030442, + "ref_absmax": 10.7195148, + "rel_max": 0.000642335839, + "scaled_max_abs": 0.000642335839 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.0", + "ungated_probes": { + "band_ratio": 5.86840044, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999932, + "finite": true, + "max_abs": 0.00263142586, + "mean_abs": 0.00037702402, + "psnr_db": 84.5084692, + "ref_absmax": 4.48405981, + "rel_max": 0.000586840044, + "scaled_max_abs": 0.000586840044 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7.11207718, + "index": 4, + "metrics": { + "corr": 0.999999905, + "finite": true, + "max_abs": 0.00782585144, + "mean_abs": 0.000371327985, + "psnr_db": 92.6005643, + "ref_absmax": 11.0036087, + "rel_max": 0.000711207718, + "scaled_max_abs": 0.000711207718 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.1", + "ungated_probes": { + "band_ratio": 5.4999719, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999936, + "finite": true, + "max_abs": 0.00258994102, + "mean_abs": 0.000408499736, + "psnr_db": 84.2683523, + "ref_absmax": 4.70900774, + "rel_max": 0.00054999719, + "scaled_max_abs": 0.00054999719 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7.62561059, + "index": 5, + "metrics": { + "corr": 0.999999897, + "finite": true, + "max_abs": 0.00865364075, + "mean_abs": 0.000404583566, + "psnr_db": 92.3105092, + "ref_absmax": 11.3481283, + "rel_max": 0.000762561059, + "scaled_max_abs": 0.000762561059 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.2", + "ungated_probes": { + "band_ratio": 6.64507977, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999939, + "finite": true, + "max_abs": 0.00310468674, + "mean_abs": 0.00043149435, + "psnr_db": 84.0751942, + "ref_absmax": 4.67215872, + "rel_max": 0.000664507977, + "scaled_max_abs": 0.000664507977 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 8.18820092, + "index": 6, + "metrics": { + "corr": 0.999999836, + "finite": true, + "max_abs": 0.00336623192, + "mean_abs": 0.000441805881, + "psnr_db": 82.7282862, + "ref_absmax": 4.11107635, + "rel_max": 0.000818820092, + "scaled_max_abs": 0.000818820092 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "status": "fail", + "tap": "net.norm", + "ungated_probes": { + "band_ratio": 8.22882461, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.99999992, + "finite": true, + "max_abs": 0.00229406357, + "mean_abs": 0.000302348791, + "psnr_db": 82.620799, + "ref_absmax": 2.7878387, + "rel_max": 0.000822882461, + "scaled_max_abs": 0.000822882461 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_ratio": 8.68591855, + "index": 7, + "metrics": { + "corr": 0.999999728, + "finite": true, + "max_abs": 0.00175507367, + "mean_abs": 0.000278144756, + "psnr_db": 80.607322, + "ref_absmax": 2.0205965, + "rel_max": 0.000868591855, + "scaled_max_abs": 0.000868591855 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/ReduceMean_output_0" + }, + "status": "fail", + "tap": "net.pool", + "ungated_probes": { + "band_ratio": 4.1845925, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999948, + "finite": true, + "max_abs": 0.000927209854, + "mean_abs": 0.00024551322, + "psnr_db": 82.6667864, + "ref_absmax": 2.21577096, + "rel_max": 0.00041845925, + "scaled_max_abs": 0.00041845925 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_ratio": 4.63029134, + "index": 8, + "metrics": { + "corr": 0.999999853, + "finite": true, + "max_abs": 0.000586226583, + "mean_abs": 0.00012820822, + "psnr_db": 81.6477146, + "ref_absmax": 1.26606846, + "rel_max": 0.000463029134, + "scaled_max_abs": 0.000463029134 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "ungated_probes": { + "band_ratio": 2.75725309, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999948, + "finite": true, + "max_abs": 0.000307694077, + "mean_abs": 0.000136881508, + "psnr_db": 80.0000024, + "ref_absmax": 1.11594427, + "rel_max": 0.000275725309, + "scaled_max_abs": 0.000275725309 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 0 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 4.23719346, + "metrics": { + "corr": 0.999999905, + "finite": true, + "max_abs": 0.000569701195, + "mean_abs": 0.000124554956, + "psnr_db": 83.7646999, + "ref_absmax": 1.34452486, + "rel_max": 0.000423719346, + "scaled_max_abs": 0.000423719346 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 3 + } + }, + "first_fail_index": 0, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 4.39328023, + "index": 0, + "metrics": { + "corr": 0.999999962, + "finite": true, + "max_abs": 0.00506496429, + "mean_abs": 0.000399526056, + "psnr_db": 88.1554656, + "ref_absmax": 11.5288897, + "rel_max": 0.000439328023, + "scaled_max_abs": 0.000439328023 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "fail", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 6.65530956, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999993118, + "finite": true, + "max_abs": 0.00140953064, + "mean_abs": 0.000457014041, + "psnr_db": 55.319373, + "ref_absmax": 2.11790395, + "rel_max": 0.000665530956, + "scaled_max_abs": 0.000665530956 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 4.69161546, + "index": 1, + "metrics": { + "corr": 0.99999994, + "finite": true, + "max_abs": 0.00556945801, + "mean_abs": 0.00024844129, + "psnr_db": 95.9845286, + "ref_absmax": 11.871088, + "rel_max": 0.000469161546, + "scaled_max_abs": 0.000469161546 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "status": "fail", + "tap": "net.patch_embed", + "ungated_probes": { + "band_ratio": 6.62179509, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999952, + "finite": true, + "max_abs": 0.00166511536, + "mean_abs": 0.000296848869, + "psnr_db": 81.9729955, + "ref_absmax": 2.51459813, + "rel_max": 0.000662179509, + "scaled_max_abs": 0.000662179509 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7.491884, + "index": 2, + "metrics": { + "corr": 0.99999992, + "finite": true, + "max_abs": 0.00867176056, + "mean_abs": 0.000294024271, + "psnr_db": 94.2682292, + "ref_absmax": 11.574873, + "rel_max": 0.0007491884, + "scaled_max_abs": 0.0007491884 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "status": "fail", + "tap": "net.pos_embed", + "ungated_probes": { + "band_ratio": 7.75271807, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.99999993, + "finite": true, + "max_abs": 0.00288009644, + "mean_abs": 0.000350501207, + "psnr_db": 83.6651162, + "ref_absmax": 3.71495056, + "rel_max": 0.000775271807, + "scaled_max_abs": 0.000775271807 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6.35564292, + "index": 3, + "metrics": { + "corr": 0.999999914, + "finite": true, + "max_abs": 0.00755977631, + "mean_abs": 0.000333414812, + "psnr_db": 93.9429777, + "ref_absmax": 11.8945894, + "rel_max": 0.000635564292, + "scaled_max_abs": 0.000635564292 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.0", + "ungated_probes": { + "band_ratio": 6.12547245, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999931, + "finite": true, + "max_abs": 0.00274991989, + "mean_abs": 0.000378355788, + "psnr_db": 84.3101199, + "ref_absmax": 4.48931885, + "rel_max": 0.000612547245, + "scaled_max_abs": 0.000612547245 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6.71218039, + "index": 4, + "metrics": { + "corr": 0.999999906, + "finite": true, + "max_abs": 0.0081577301, + "mean_abs": 0.000371073882, + "psnr_db": 93.3911519, + "ref_absmax": 12.1536217, + "rel_max": 0.000671218039, + "scaled_max_abs": 0.000671218039 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.1", + "ungated_probes": { + "band_ratio": 5.59446416, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999935, + "finite": true, + "max_abs": 0.00263738632, + "mean_abs": 0.000411822529, + "psnr_db": 84.0853824, + "ref_absmax": 4.7142787, + "rel_max": 0.000559446416, + "scaled_max_abs": 0.000559446416 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6.64445648, + "index": 5, + "metrics": { + "corr": 0.999999898, + "finite": true, + "max_abs": 0.00831222534, + "mean_abs": 0.000405150127, + "psnr_db": 92.9239035, + "ref_absmax": 12.5100155, + "rel_max": 0.000664445648, + "scaled_max_abs": 0.000664445648 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.2", + "ungated_probes": { + "band_ratio": 6.27575778, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999939, + "finite": true, + "max_abs": 0.00293540955, + "mean_abs": 0.000432134703, + "psnr_db": 83.9210626, + "ref_absmax": 4.67737865, + "rel_max": 0.000627575778, + "scaled_max_abs": 0.000627575778 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 8.51897059, + "index": 6, + "metrics": { + "corr": 0.999999838, + "finite": true, + "max_abs": 0.00357663631, + "mean_abs": 0.000438901588, + "psnr_db": 82.9807849, + "ref_absmax": 4.19843721, + "rel_max": 0.000851897059, + "scaled_max_abs": 0.000851897059 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "status": "fail", + "tap": "net.norm", + "ungated_probes": { + "band_ratio": 8.50957711, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.99999992, + "finite": true, + "max_abs": 0.00232839584, + "mean_abs": 0.000301871639, + "psnr_db": 82.4894421, + "ref_absmax": 2.73620629, + "rel_max": 0.000850957711, + "scaled_max_abs": 0.000850957711 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 5 + } + }, + { + "band_ratio": 7.21503424, + "index": 7, + "metrics": { + "corr": 0.999999777, + "finite": true, + "max_abs": 0.00151526928, + "mean_abs": 0.000272726947, + "psnr_db": 81.0036517, + "ref_absmax": 2.10015535, + "rel_max": 0.000721503424, + "scaled_max_abs": 0.000721503424 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/ReduceMean_output_0" + }, + "status": "fail", + "tap": "net.pool", + "ungated_probes": { + "band_ratio": 4.21729522, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.99999995, + "finite": true, + "max_abs": 0.000936985016, + "mean_abs": 0.000235313317, + "psnr_db": 82.8179642, + "ref_absmax": 2.22176766, + "rel_max": 0.000421729522, + "scaled_max_abs": 0.000421729522 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 13 + } + }, + { + "band_ratio": 4.26246235, + "index": 8, + "metrics": { + "corr": 0.999999873, + "finite": true, + "max_abs": 0.00057309866, + "mean_abs": 0.000123301528, + "psnr_db": 82.3467526, + "ref_absmax": 1.34452486, + "rel_max": 0.000426246235, + "scaled_max_abs": 0.000426246235 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "ungated_probes": { + "band_ratio": 2.69349411, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999949, + "finite": true, + "max_abs": 0.000301480293, + "mean_abs": 0.000137872808, + "psnr_db": 80.0658052, + "ref_absmax": 1.11929071, + "rel_max": 0.000269349411, + "scaled_max_abs": 0.000269349411 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 3 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp16", + "id": "tinyvit__fp16_as_fp32__onnx", + "model": "tinyvit", + "path": "onnx", + "variant": "fp16_as_fp32" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/tinyvit__gelu_tanh__coreml_fp16.json b/bench/verdicts_calibrated4/tinyvit__gelu_tanh__coreml_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..92c7e7de173357aedcd7f62c35568434c80bf316 --- /dev/null +++ b/bench/verdicts_calibrated4/tinyvit__gelu_tanh__coreml_fp16.json @@ -0,0 +1,740 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "baseline": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "faithful_output_rel_max": 0.00402825966, + "output_band": 0.01, + "source": { + "bundle": "bundles/tinyvit__clean__coreml_fp16.json", + "case": "tinyvit__clean__coreml_fp16", + "digests": { + "192": { + "converted": "0035167ec9cc06c61986ca2249819ae1510c5a12aad7eaf510988220c7579aa5", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "5430fd6da54612ccdc73a3180116c0a8d19224ecfcc7ca2d7ce9df494c8307f9", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + } + } + }, + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": false, + "note": null, + "status": "clear" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [ + "inputs[0]: dtype float16 (declared float32)", + "outputs[0]: dtype float16 (declared float32)" + ], + "status": "precision_narrowing" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "status": "clear" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp16", + "first_divergence": null, + "fp16_floor": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "baseline": { + "bundle": "bundles/tinyvit__clean__coreml_fp16.json", + "case": "tinyvit__clean__coreml_fp16", + "digests": { + "192": { + "converted": "0035167ec9cc06c61986ca2249819ae1510c5a12aad7eaf510988220c7579aa5", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "5430fd6da54612ccdc73a3180116c0a8d19224ecfcc7ca2d7ce9df494c8307f9", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + } + }, + "envelopes_gate": true, + "faithful_output_rel_max": 0.00402825966, + "faithful_tap_rel_max": { + "net.blocks.0": 0.0144004222, + "net.blocks.1": 0.0145278434, + "net.blocks.2": 0.0134661694, + "net.head": 0.00402825966, + "net.norm": 0.00711003077, + "net.patch_embed": 0.0147449007, + "net.pool": 0.00501150413, + "net.pos_embed": 0.0145772783, + "normalize": 0.00117570499 + }, + "floor": 0.01, + "k": 2.0, + "output_band": 0.01, + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used", + "tap_envelopes": { + "net.blocks.0": 0.0288008444, + "net.blocks.1": 0.0290556867, + "net.blocks.2": 0.0269323389, + "net.head": 0.01, + "net.norm": 0.0142200615, + "net.patch_embed": 0.0294898015, + "net.pool": 0.0100230083, + "net.pos_embed": 0.0291545566, + "normalize": 0.01 + } + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "879643b187b6ce1099ef74e7e38e8717078442833e3ca93e11f308d3b5a63d75", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "93f37ce4dcf6f79132fbf6b80a133837496be4f726af0da4d003d6984fc7e90e", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": null, + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_limit": 0.01, + "band_ratio": 0.349849989, + "metrics": { + "corr": 0.999995839, + "finite": true, + "max_abs": 0.00442934036, + "mean_abs": 0.000618628878, + "psnr_db": 67.8055527, + "ref_absmax": 1.26606846, + "rel_max": 0.00349849989, + "scaled_max_abs": 0.00349849989 + }, + "per_op_band_ratio": 0.349849989, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 0.117570499, + "index": 0, + "metrics": { + "corr": 0.999999914, + "finite": true, + "max_abs": 0.0135545731, + "mean_abs": 0.000674526699, + "psnr_db": 83.5827466, + "ref_absmax": 11.5288897, + "rel_max": 0.00117570499, + "scaled_max_abs": 0.00117570499 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "per_op_band_ratio": 0.117570499, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.0294898015, + "band_ratio": 0.5, + "index": 1, + "metrics": { + "corr": 0.999991394, + "finite": true, + "max_abs": 0.159186363, + "mean_abs": 0.00251833586, + "psnr_db": 73.8085669, + "ref_absmax": 10.7960281, + "rel_max": 0.0147449007, + "scaled_max_abs": 0.0147449007 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_5_cast_fp16" + }, + "per_op_band_ratio": 1.47449007, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_limit": 0.0291545566, + "band_ratio": 0.5, + "index": 2, + "metrics": { + "corr": 0.999992261, + "finite": true, + "max_abs": 0.157061577, + "mean_abs": 0.00252916549, + "psnr_db": 73.7102173, + "ref_absmax": 10.7744102, + "rel_max": 0.0145772783, + "scaled_max_abs": 0.0145772783 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5_cast_fp16" + }, + "per_op_band_ratio": 1.45772783, + "status": "pass", + "tap": "net.pos_embed" + }, + { + "band_limit": 0.0288008444, + "band_ratio": 0.5, + "index": 3, + "metrics": { + "corr": 0.999992443, + "finite": true, + "max_abs": 0.15436554, + "mean_abs": 0.00271046309, + "psnr_db": 73.5671904, + "ref_absmax": 10.7195148, + "rel_max": 0.0144004222, + "scaled_max_abs": 0.0144004222 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_17_cast_fp16" + }, + "per_op_band_ratio": 1.44004222, + "status": "pass", + "tap": "net.blocks.0" + }, + { + "band_limit": 0.0290556867, + "band_ratio": 0.5, + "index": 4, + "metrics": { + "corr": 0.999992727, + "finite": true, + "max_abs": 0.159858704, + "mean_abs": 0.00289966695, + "psnr_db": 73.4903717, + "ref_absmax": 11.0036087, + "rel_max": 0.0145278434, + "scaled_max_abs": 0.0145278434 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_29_cast_fp16" + }, + "per_op_band_ratio": 1.45278434, + "status": "pass", + "tap": "net.blocks.1" + }, + { + "band_limit": 0.0269323389, + "band_ratio": 0.525561817, + "index": 5, + "metrics": { + "corr": 0.999992839, + "finite": true, + "max_abs": 0.160628319, + "mean_abs": 0.00305568408, + "psnr_db": 73.531213, + "ref_absmax": 11.3481283, + "rel_max": 0.014154609, + "scaled_max_abs": 0.014154609 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_41_cast_fp16" + }, + "per_op_band_ratio": 1.4154609, + "status": "pass", + "tap": "net.blocks.2" + }, + { + "band_limit": 0.0142200615, + "band_ratio": 0.533409734, + "index": 6, + "metrics": { + "corr": 0.999993475, + "finite": true, + "max_abs": 0.0311830044, + "mean_abs": 0.00270160866, + "psnr_db": 66.7363796, + "ref_absmax": 4.11107635, + "rel_max": 0.00758511925, + "scaled_max_abs": 0.00758511925 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "per_op_band_ratio": 0.758511925, + "status": "pass", + "tap": "net.norm" + }, + { + "band_limit": 0.0100230083, + "band_ratio": 0.5, + "index": 7, + "metrics": { + "corr": 0.99999716, + "finite": true, + "max_abs": 0.0111043453, + "mean_abs": 0.000837949525, + "psnr_db": 69.8102757, + "ref_absmax": 2.21577096, + "rel_max": 0.00501150413, + "scaled_max_abs": 0.00501150413 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_cast_fp16" + }, + "per_op_band_ratio": 0.501150413, + "status": "pass", + "tap": "net.pool" + }, + { + "band_limit": 0.01, + "band_ratio": 0.349849989, + "index": 8, + "metrics": { + "corr": 0.999995839, + "finite": true, + "max_abs": 0.00442934036, + "mean_abs": 0.000618628878, + "psnr_db": 67.8055527, + "ref_absmax": 1.26606846, + "rel_max": 0.00349849989, + "scaled_max_abs": 0.00349849989 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "per_op_band_ratio": 0.349849989, + "status": "pass", + "tap": "net.head" + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_limit": 0.01, + "band_ratio": 0.402825966, + "metrics": { + "corr": 0.999995094, + "finite": true, + "max_abs": 0.00541609526, + "mean_abs": 0.000658117956, + "psnr_db": 67.1631417, + "ref_absmax": 1.34452486, + "rel_max": 0.00402825966, + "scaled_max_abs": 0.00402825966 + }, + "per_op_band_ratio": 0.402825966, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 0.116213884, + "index": 0, + "metrics": { + "corr": 0.999999912, + "finite": true, + "max_abs": 0.0133981705, + "mean_abs": 0.000679588388, + "psnr_db": 83.6184843, + "ref_absmax": 11.5288897, + "rel_max": 0.00116213884, + "scaled_max_abs": 0.00116213884 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "per_op_band_ratio": 0.116213884, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.0294898015, + "band_ratio": 0.277047602, + "index": 1, + "metrics": { + "corr": 0.999991415, + "finite": true, + "max_abs": 0.0969877243, + "mean_abs": 0.00250771621, + "psnr_db": 74.367951, + "ref_absmax": 11.871088, + "rel_max": 0.00817007877, + "scaled_max_abs": 0.00817007877 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_5_cast_fp16" + }, + "per_op_band_ratio": 0.817007877, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_limit": 0.0291545566, + "band_ratio": 0.295111447, + "index": 2, + "metrics": { + "corr": 0.999992187, + "finite": true, + "max_abs": 0.0995883942, + "mean_abs": 0.00251680124, + "psnr_db": 74.29315, + "ref_absmax": 11.574873, + "rel_max": 0.00860384338, + "scaled_max_abs": 0.00860384338 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5_cast_fp16" + }, + "per_op_band_ratio": 0.860384338, + "status": "pass", + "tap": "net.pos_embed" + }, + { + "band_limit": 0.0288008444, + "band_ratio": 0.290848015, + "index": 3, + "metrics": { + "corr": 0.999992439, + "finite": true, + "max_abs": 0.0996370316, + "mean_abs": 0.00269992927, + "psnr_db": 74.3779895, + "ref_absmax": 11.8945894, + "rel_max": 0.00837666842, + "scaled_max_abs": 0.00837666842 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_17_cast_fp16" + }, + "per_op_band_ratio": 0.837666842, + "status": "pass", + "tap": "net.blocks.0" + }, + { + "band_limit": 0.0290556867, + "band_ratio": 0.28715946, + "index": 4, + "metrics": { + "corr": 0.99999274, + "finite": true, + "max_abs": 0.101405144, + "mean_abs": 0.00289168545, + "psnr_db": 74.2735952, + "ref_absmax": 12.1536217, + "rel_max": 0.0083436153, + "scaled_max_abs": 0.0083436153 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_29_cast_fp16" + }, + "per_op_band_ratio": 0.83436153, + "status": "pass", + "tap": "net.blocks.1" + }, + { + "band_limit": 0.0269323389, + "band_ratio": 0.304064309, + "index": 5, + "metrics": { + "corr": 0.999992875, + "finite": true, + "max_abs": 0.102446556, + "mean_abs": 0.00303820725, + "psnr_db": 74.1599669, + "ref_absmax": 12.5100155, + "rel_max": 0.00818916301, + "scaled_max_abs": 0.00818916301 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_41_cast_fp16" + }, + "per_op_band_ratio": 0.818916301, + "status": "pass", + "tap": "net.blocks.2" + }, + { + "band_limit": 0.0142200615, + "band_ratio": 0.477296124, + "index": 6, + "metrics": { + "corr": 0.999993567, + "finite": true, + "max_abs": 0.0284955502, + "mean_abs": 0.00267613789, + "psnr_db": 66.9864001, + "ref_absmax": 4.19843721, + "rel_max": 0.00678718025, + "scaled_max_abs": 0.00678718025 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "per_op_band_ratio": 0.678718025, + "status": "pass", + "tap": "net.norm" + }, + { + "band_limit": 0.0100230083, + "band_ratio": 0.477248377, + "index": 7, + "metrics": { + "corr": 0.999997479, + "finite": true, + "max_abs": 0.0106277466, + "mean_abs": 0.00081530065, + "psnr_db": 69.9107749, + "ref_absmax": 2.22176766, + "rel_max": 0.00478346443, + "scaled_max_abs": 0.00478346443 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_cast_fp16" + }, + "per_op_band_ratio": 0.478346443, + "status": "pass", + "tap": "net.pool" + }, + { + "band_limit": 0.01, + "band_ratio": 0.402825966, + "index": 8, + "metrics": { + "corr": 0.999995094, + "finite": true, + "max_abs": 0.00541609526, + "mean_abs": 0.000658117956, + "psnr_db": 67.1631417, + "ref_absmax": 1.34452486, + "rel_max": 0.00402825966, + "scaled_max_abs": 0.00402825966 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "per_op_band_ratio": 0.402825966, + "status": "pass", + "tap": "net.head" + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp16", + "id": "tinyvit__gelu_tanh__coreml_fp16", + "model": "tinyvit", + "path": "coreml", + "variant": "gelu_tanh" + }, + "tap_bands_gate": true, + "verdict": "PASS" +} diff --git a/bench/verdicts_calibrated4/tinyvit__gelu_tanh__coreml_fp32.json b/bench/verdicts_calibrated4/tinyvit__gelu_tanh__coreml_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..6dc3012c04027ced63e2e770e97591dbeb03bf3b --- /dev/null +++ b/bench/verdicts_calibrated4/tinyvit__gelu_tanh__coreml_fp32.json @@ -0,0 +1,945 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": false, + "note": null, + "status": "clear" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "status": "clear" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp32", + "first_divergence": null, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "a3037e5d1865f904be79b5ca4d887d1f56107769410fc9ef42705b8fa9607c35", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "bfa06e69b128d6bcbdc89df989805917f1babd4f5205f94111894332de39188b", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "fp32 per-tap band on near-zero probes", + "reason": "C3-2: per-tap fp32 checks gate without the near_zero probes; they are measured and reported per tap ('ungated_probes'); the output gates on all probes. C4-1: when the output has failed and no gated tap fails, they localise the first divergence (earliest tap over band on all probes)" + }, + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": null, + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.359679987, + "metrics": { + "corr": 0.999999998, + "finite": true, + "max_abs": 4.55379486e-05, + "mean_abs": 1.50694817e-05, + "psnr_db": 101.971299, + "ref_absmax": 1.26606846, + "rel_max": 3.59679987e-05, + "scaled_max_abs": 3.59679987e-05 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.06644368e-08, + "psnr_db": 164.113247, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.00112572895, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.38418579e-07, + "mean_abs": 4.66593688e-08, + "psnr_db": 130.397207, + "ref_absmax": 2.11790395, + "rel_max": 1.12572895e-07, + "scaled_max_abs": 1.12572895e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00441678321, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 9.88855124e-08, + "psnr_db": 161.464618, + "ref_absmax": 10.7960281, + "rel_max": 4.41678321e-07, + "scaled_max_abs": 4.41678321e-07 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_5" + }, + "status": "pass", + "tap": "net.patch_embed", + "ungated_probes": { + "band_ratio": 0.00474265635, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.1920929e-06, + "mean_abs": 1.5130268e-07, + "psnr_db": 147.535676, + "ref_absmax": 2.51355529, + "rel_max": 4.74265635e-07, + "scaled_max_abs": 4.74265635e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00442564509, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 1.02395989e-07, + "psnr_db": 161.205396, + "ref_absmax": 10.7744102, + "rel_max": 4.42564509e-07, + "scaled_max_abs": 4.42564509e-07 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5" + }, + "status": "pass", + "tap": "net.pos_embed", + "ungated_probes": { + "band_ratio": 0.00372250373, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-06, + "mean_abs": 1.53844187e-07, + "psnr_db": 150.879134, + "ref_absmax": 3.84287453, + "rel_max": 3.72250373e-07, + "scaled_max_abs": 3.72250373e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00444830914, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 1.32210313e-07, + "psnr_db": 160.202754, + "ref_absmax": 10.7195148, + "rel_max": 4.44830914e-07, + "scaled_max_abs": 4.44830914e-07 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_17" + }, + "status": "pass", + "tap": "net.blocks.0", + "ungated_probes": { + "band_ratio": 0.00319021497, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-06, + "mean_abs": 1.80076566e-07, + "psnr_db": 150.836238, + "ref_absmax": 4.48405981, + "rel_max": 3.19021497e-07, + "scaled_max_abs": 3.19021497e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.175884373, + "index": 4, + "metrics": { + "corr": 0.999999999, + "finite": true, + "max_abs": 0.000193536282, + "mean_abs": 3.332707e-05, + "psnr_db": 114.412738, + "ref_absmax": 11.0036087, + "rel_max": 1.75884373e-05, + "scaled_max_abs": 1.75884373e-05 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_29" + }, + "status": "pass", + "tap": "net.blocks.1", + "ungated_probes": { + "band_ratio": 0.275682104, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000129818916, + "mean_abs": 3.56518305e-05, + "psnr_db": 105.899207, + "ref_absmax": 4.70900774, + "rel_max": 2.75682104e-05, + "scaled_max_abs": 2.75682104e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.166290246, + "index": 5, + "metrics": { + "corr": 0.999999999, + "finite": true, + "max_abs": 0.000188708305, + "mean_abs": 3.34380437e-05, + "psnr_db": 114.646215, + "ref_absmax": 11.3481283, + "rel_max": 1.66290246e-05, + "scaled_max_abs": 1.66290246e-05 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_41" + }, + "status": "pass", + "tap": "net.blocks.2", + "ungated_probes": { + "band_ratio": 0.299288841, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000139832497, + "mean_abs": 3.53926629e-05, + "psnr_db": 106.164354, + "ref_absmax": 4.67215872, + "rel_max": 2.99288841e-05, + "scaled_max_abs": 2.99288841e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.737432483, + "index": 6, + "metrics": { + "corr": 0.999999999, + "finite": true, + "max_abs": 0.000303164124, + "mean_abs": 3.72010244e-05, + "psnr_db": 104.075417, + "ref_absmax": 4.11107635, + "rel_max": 7.37432483e-05, + "scaled_max_abs": 7.37432483e-05 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x" + }, + "status": "pass", + "tap": "net.norm", + "ungated_probes": { + "band_ratio": 0.314289445, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.76188278e-05, + "mean_abs": 2.18856813e-05, + "psnr_db": 105.983167, + "ref_absmax": 2.7878387, + "rel_max": 3.14289445e-05, + "scaled_max_abs": 3.14289445e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.435767167, + "index": 7, + "metrics": { + "corr": 0.999999998, + "finite": true, + "max_abs": 8.80509615e-05, + "mean_abs": 2.22245511e-05, + "psnr_db": 102.897958, + "ref_absmax": 2.0205965, + "rel_max": 4.35767167e-05, + "scaled_max_abs": 4.35767167e-05 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_1" + }, + "status": "pass", + "tap": "net.pool", + "ungated_probes": { + "band_ratio": 0.299668041, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.63995743e-05, + "mean_abs": 2.08842539e-05, + "psnr_db": 104.333234, + "ref_absmax": 2.21577096, + "rel_max": 2.99668041e-05, + "scaled_max_abs": 2.99668041e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.359679987, + "index": 8, + "metrics": { + "corr": 0.999999998, + "finite": true, + "max_abs": 4.55379486e-05, + "mean_abs": 1.5103506e-05, + "psnr_db": 100.471268, + "ref_absmax": 1.26606846, + "rel_max": 3.59679987e-05, + "scaled_max_abs": 3.59679987e-05 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "pass", + "tap": "net.head", + "ungated_probes": { + "band_ratio": 0.373882931, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999999, + "finite": true, + "max_abs": 4.17232513e-05, + "mean_abs": 1.4831312e-05, + "psnr_db": 98.6932483, + "ref_absmax": 1.11594427, + "rel_max": 3.73882931e-05, + "scaled_max_abs": 3.73882931e-05 + }, + "n_probes": 4 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.370610351, + "metrics": { + "corr": 0.999999998, + "finite": true, + "max_abs": 4.9829483e-05, + "mean_abs": 1.52614608e-05, + "psnr_db": 102.07786, + "ref_absmax": 1.34452486, + "rel_max": 3.70610351e-05, + "scaled_max_abs": 3.70610351e-05 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.08107465e-08, + "psnr_db": 164.245493, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.00112572895, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.38418579e-07, + "mean_abs": 4.66724468e-08, + "psnr_db": 130.436578, + "ref_absmax": 2.11790395, + "rel_max": 1.12572895e-07, + "scaled_max_abs": 1.12572895e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00321343524, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.81469727e-06, + "mean_abs": 1.00363271e-07, + "psnr_db": 161.89068, + "ref_absmax": 11.871088, + "rel_max": 3.21343524e-07, + "scaled_max_abs": 3.21343524e-07 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_5" + }, + "status": "pass", + "tap": "net.patch_embed", + "ungated_probes": { + "band_ratio": 0.0066369653, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.66893005e-06, + "mean_abs": 1.54185654e-07, + "psnr_db": 147.371009, + "ref_absmax": 2.51459813, + "rel_max": 6.6369653e-07, + "scaled_max_abs": 6.6369653e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00411958869, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 1.03226907e-07, + "psnr_db": 161.675356, + "ref_absmax": 11.574873, + "rel_max": 4.11958869e-07, + "scaled_max_abs": 4.11958869e-07 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5" + }, + "status": "pass", + "tap": "net.pos_embed", + "ungated_probes": { + "band_ratio": 0.00449246908, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.66893005e-06, + "mean_abs": 1.56293509e-07, + "psnr_db": 150.563555, + "ref_absmax": 3.71495056, + "rel_max": 4.49246908e-07, + "scaled_max_abs": 4.49246908e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00400885765, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 1.33781857e-07, + "psnr_db": 160.884376, + "ref_absmax": 11.8945894, + "rel_max": 4.00885765e-07, + "scaled_max_abs": 4.00885765e-07 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_17" + }, + "status": "pass", + "tap": "net.blocks.0", + "ungated_probes": { + "band_ratio": 0.00398309722, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.78813934e-06, + "mean_abs": 1.83840888e-07, + "psnr_db": 150.529679, + "ref_absmax": 4.48931885, + "rel_max": 3.98309722e-07, + "scaled_max_abs": 3.98309722e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.153748871, + "index": 4, + "metrics": { + "corr": 0.999999999, + "finite": true, + "max_abs": 0.000186860561, + "mean_abs": 3.34311162e-05, + "psnr_db": 115.15371, + "ref_absmax": 12.1536217, + "rel_max": 1.53748871e-05, + "scaled_max_abs": 1.53748871e-05 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_29" + }, + "status": "pass", + "tap": "net.blocks.1", + "ungated_probes": { + "band_ratio": 0.263236178, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.00012409687, + "mean_abs": 3.56788618e-05, + "psnr_db": 105.80081, + "ref_absmax": 4.7142787, + "rel_max": 2.63236178e-05, + "scaled_max_abs": 2.63236178e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.15694441, + "index": 5, + "metrics": { + "corr": 0.999999999, + "finite": true, + "max_abs": 0.0001963377, + "mean_abs": 3.3615576e-05, + "psnr_db": 115.209043, + "ref_absmax": 12.5100155, + "rel_max": 1.5694441e-05, + "scaled_max_abs": 1.5694441e-05 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_41" + }, + "status": "pass", + "tap": "net.blocks.2", + "ungated_probes": { + "band_ratio": 0.291308932, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000136256218, + "mean_abs": 3.54249586e-05, + "psnr_db": 106.021509, + "ref_absmax": 4.67737865, + "rel_max": 2.91308932e-05, + "scaled_max_abs": 2.91308932e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.740082553, + "index": 6, + "metrics": { + "corr": 0.999999999, + "finite": true, + "max_abs": 0.000310719013, + "mean_abs": 3.70473803e-05, + "psnr_db": 104.337768, + "ref_absmax": 4.19843721, + "rel_max": 7.40082553e-05, + "scaled_max_abs": 7.40082553e-05 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x" + }, + "status": "pass", + "tap": "net.norm", + "ungated_probes": { + "band_ratio": 0.315863373, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.64267349e-05, + "mean_abs": 2.19441458e-05, + "psnr_db": 105.807945, + "ref_absmax": 2.73620629, + "rel_max": 3.15863373e-05, + "scaled_max_abs": 3.15863373e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.430239201, + "index": 7, + "metrics": { + "corr": 0.999999999, + "finite": true, + "max_abs": 9.03569162e-05, + "mean_abs": 2.25966801e-05, + "psnr_db": 102.927232, + "ref_absmax": 2.10015535, + "rel_max": 4.30239201e-05, + "scaled_max_abs": 4.30239201e-05 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_1" + }, + "status": "pass", + "tap": "net.pool", + "ungated_probes": { + "band_ratio": 0.302615077, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.72340393e-05, + "mean_abs": 2.1063388e-05, + "psnr_db": 104.293915, + "ref_absmax": 2.22176766, + "rel_max": 3.02615077e-05, + "scaled_max_abs": 3.02615077e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.370610351, + "index": 8, + "metrics": { + "corr": 0.999999998, + "finite": true, + "max_abs": 4.9829483e-05, + "mean_abs": 1.53073708e-05, + "psnr_db": 100.648416, + "ref_absmax": 1.34452486, + "rel_max": 3.70610351e-05, + "scaled_max_abs": 3.70610351e-05 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "pass", + "tap": "net.head", + "ungated_probes": { + "band_ratio": 0.375693969, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999999, + "finite": true, + "max_abs": 4.20510769e-05, + "mean_abs": 1.49400905e-05, + "psnr_db": 98.6480747, + "ref_absmax": 1.11929071, + "rel_max": 3.75693969e-05, + "scaled_max_abs": 3.75693969e-05 + }, + "n_probes": 4 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp32", + "id": "tinyvit__gelu_tanh__coreml_fp32", + "model": "tinyvit", + "path": "coreml", + "variant": "gelu_tanh" + }, + "tap_bands_gate": true, + "verdict": "PASS" +} diff --git a/bench/verdicts_calibrated4/tinyvit__gelu_tanh__litert_fp16.json b/bench/verdicts_calibrated4/tinyvit__gelu_tanh__litert_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..d1ffd4d38904f2a2419386aa8b2814e245d7a0c0 --- /dev/null +++ b/bench/verdicts_calibrated4/tinyvit__gelu_tanh__litert_fp16.json @@ -0,0 +1,766 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "baseline": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "faithful_output_rel_max": 0.000208557898, + "output_band": 0.01, + "source": { + "bundle": "bundles/tinyvit__clean__litert_fp16.json", + "case": "tinyvit__clean__litert_fp16", + "digests": { + "192": { + "converted": "170133fb2c750896c9b9cfaed4c8aab6b2e92dd28e9a0114b604c6d35736d93d", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "e6f67f478f27c5cbe93fb3192583b8c4adeb54f48117f07895a6c68beeb1c827", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + } + } + }, + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": false, + "note": null, + "status": "clear" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 1.88403478e-05, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.5331974e-07, + "mean_abs": 4.77273716e-08, + "psnr_db": 151.629314, + "ref_absmax": 1.34455979, + "rel_max": 1.88403478e-07, + "scaled_max_abs": 1.88403478e-07 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 57, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 1, + "n_ops_total": 187, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "status": "clear" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp16", + "first_divergence": null, + "fp16_floor": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "baseline": { + "bundle": "bundles/tinyvit__clean__litert_fp16.json", + "case": "tinyvit__clean__litert_fp16", + "digests": { + "192": { + "converted": "170133fb2c750896c9b9cfaed4c8aab6b2e92dd28e9a0114b604c6d35736d93d", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "e6f67f478f27c5cbe93fb3192583b8c4adeb54f48117f07895a6c68beeb1c827", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + } + }, + "envelopes_gate": true, + "faithful_output_rel_max": 0.000208557898, + "faithful_tap_rel_max": { + "net.blocks.0": 0.000279738087, + "net.blocks.1": 0.000270794184, + "net.blocks.2": 0.000256599822, + "net.head": 0.000208557898, + "net.norm": 0.000310450195, + "net.patch_embed": 0.000277319462, + "net.pool": 0.000243123856, + "net.pos_embed": 0.000284416403, + "normalize": 8.27203959e-08 + }, + "floor": 0.01, + "k": 2.0, + "output_band": 0.01, + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used", + "tap_envelopes": { + "net.blocks.0": 0.01, + "net.blocks.1": 0.01, + "net.blocks.2": 0.01, + "net.head": 0.01, + "net.norm": 0.01, + "net.patch_embed": 0.01, + "net.pool": 0.01, + "net.pos_embed": 0.01, + "normalize": 0.01 + } + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "517e7821513a31c37278c56d90bd8d9fcd3a4aa9d50cf58b23f618cc056b4ff0", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "86cbb1a50ad9cca3f5ef4e64712f0feba271b470b4c7aa5c60a695c145fa97a3", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": null, + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_limit": 0.01, + "band_ratio": 0.0218538547, + "metrics": { + "corr": 0.999999959, + "finite": true, + "max_abs": 0.000276684761, + "mean_abs": 7.58840819e-05, + "psnr_db": 87.6816202, + "ref_absmax": 1.26606846, + "rel_max": 0.000218538547, + "scaled_max_abs": 0.000218538547 + }, + "per_op_band_ratio": 0.0218538547, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 8.27203959e-06, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.26638033e-08, + "psnr_db": 163.904618, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "per_op_band_ratio": 8.27203959e-06, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0238484209, + "index": 1, + "metrics": { + "corr": 0.999999975, + "finite": true, + "max_abs": 0.00257468224, + "mean_abs": 0.000153147335, + "psnr_db": 99.1308904, + "ref_absmax": 10.7960281, + "rel_max": 0.000238484209, + "scaled_max_abs": 0.000238484209 + }, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;2" + }, + "per_op_band_ratio": 0.0238484209, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0238962707, + "index": 2, + "metrics": { + "corr": 0.999999977, + "finite": true, + "max_abs": 0.00257468224, + "mean_abs": 0.000153147282, + "psnr_db": 99.0500481, + "ref_absmax": 10.7744102, + "rel_max": 0.000238962707, + "scaled_max_abs": 0.000238962707 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;3" + }, + "per_op_band_ratio": 0.0238962707, + "status": "pass", + "tap": "net.pos_embed" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0248371341, + "index": 3, + "metrics": { + "corr": 0.999999975, + "finite": true, + "max_abs": 0.00266242027, + "mean_abs": 0.000175715531, + "psnr_db": 98.3929002, + "ref_absmax": 10.7195148, + "rel_max": 0.000248371341, + "scaled_max_abs": 0.000248371341 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "per_op_band_ratio": 0.0248371341, + "status": "pass", + "tap": "net.blocks.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0243302202, + "index": 4, + "metrics": { + "corr": 0.999999974, + "finite": true, + "max_abs": 0.00267720222, + "mean_abs": 0.000197903481, + "psnr_db": 97.9439415, + "ref_absmax": 11.0036087, + "rel_max": 0.000243302202, + "scaled_max_abs": 0.000243302202 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "per_op_band_ratio": 0.0243302202, + "status": "pass", + "tap": "net.blocks.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0251105625, + "index": 5, + "metrics": { + "corr": 0.999999974, + "finite": true, + "max_abs": 0.00284957886, + "mean_abs": 0.000208045135, + "psnr_db": 97.9610563, + "ref_absmax": 11.3481283, + "rel_max": 0.000251105625, + "scaled_max_abs": 0.000251105625 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "per_op_band_ratio": 0.0251105625, + "status": "pass", + "tap": "net.blocks.2" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0306455845, + "index": 6, + "metrics": { + "corr": 0.999999971, + "finite": true, + "max_abs": 0.00125986338, + "mean_abs": 0.000191707294, + "psnr_db": 90.2401993, + "ref_absmax": 4.11107635, + "rel_max": 0.000306455845, + "scaled_max_abs": 0.000306455845 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "per_op_band_ratio": 0.0306455845, + "status": "pass", + "tap": "net.norm" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0239465431, + "index": 7, + "metrics": { + "corr": 0.99999997, + "finite": true, + "max_abs": 0.000530600548, + "mean_abs": 0.000106476321, + "psnr_db": 89.6299926, + "ref_absmax": 2.21577096, + "rel_max": 0.000239465431, + "scaled_max_abs": 0.000239465431 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "per_op_band_ratio": 0.0239465431, + "status": "pass", + "tap": "net.pool" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0218538547, + "index": 8, + "metrics": { + "corr": 0.999999959, + "finite": true, + "max_abs": 0.000276684761, + "mean_abs": 7.58840819e-05, + "psnr_db": 87.6816202, + "ref_absmax": 1.26606846, + "rel_max": 0.000218538547, + "scaled_max_abs": 0.000218538547 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "per_op_band_ratio": 0.0218538547, + "status": "pass", + "tap": "net.head" + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_limit": 0.01, + "band_ratio": 0.0206451245, + "metrics": { + "corr": 0.999999954, + "finite": true, + "max_abs": 0.000277578831, + "mean_abs": 8.1330759e-05, + "psnr_db": 87.3034523, + "ref_absmax": 1.34452486, + "rel_max": 0.000206451245, + "scaled_max_abs": 0.000206451245 + }, + "per_op_band_ratio": 0.0206451245, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 8.27203959e-06, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.2793459e-08, + "psnr_db": 164.013874, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "per_op_band_ratio": 8.27203959e-06, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0277319462, + "index": 1, + "metrics": { + "corr": 0.999999975, + "finite": true, + "max_abs": 0.00329208374, + "mean_abs": 0.00015256364, + "psnr_db": 99.7212805, + "ref_absmax": 11.871088, + "rel_max": 0.000277319462, + "scaled_max_abs": 0.000277319462 + }, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;2" + }, + "per_op_band_ratio": 0.0277319462, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0284416403, + "index": 2, + "metrics": { + "corr": 0.999999977, + "finite": true, + "max_abs": 0.00329208374, + "mean_abs": 0.000152563603, + "psnr_db": 99.6624604, + "ref_absmax": 11.574873, + "rel_max": 0.000284416403, + "scaled_max_abs": 0.000284416403 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;3" + }, + "per_op_band_ratio": 0.0284416403, + "status": "pass", + "tap": "net.pos_embed" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0279738087, + "index": 3, + "metrics": { + "corr": 0.999999975, + "finite": true, + "max_abs": 0.00332736969, + "mean_abs": 0.000176384194, + "psnr_db": 99.194827, + "ref_absmax": 11.8945894, + "rel_max": 0.000279738087, + "scaled_max_abs": 0.000279738087 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "per_op_band_ratio": 0.0279738087, + "status": "pass", + "tap": "net.blocks.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0269695628, + "index": 4, + "metrics": { + "corr": 0.999999974, + "finite": true, + "max_abs": 0.00327777863, + "mean_abs": 0.000200940376, + "psnr_db": 98.6725089, + "ref_absmax": 12.1536217, + "rel_max": 0.000269695628, + "scaled_max_abs": 0.000269695628 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "per_op_band_ratio": 0.0269695628, + "status": "pass", + "tap": "net.blocks.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0255075165, + "index": 5, + "metrics": { + "corr": 0.999999974, + "finite": true, + "max_abs": 0.00319099426, + "mean_abs": 0.000211546826, + "psnr_db": 98.5171343, + "ref_absmax": 12.5100155, + "rel_max": 0.000255075165, + "scaled_max_abs": 0.000255075165 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "per_op_band_ratio": 0.0255075165, + "status": "pass", + "tap": "net.blocks.2" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0304625674, + "index": 6, + "metrics": { + "corr": 0.99999997, + "finite": true, + "max_abs": 0.00127895176, + "mean_abs": 0.000194918576, + "psnr_db": 90.3440681, + "ref_absmax": 4.19843721, + "rel_max": 0.000304625674, + "scaled_max_abs": 0.000304625674 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "per_op_band_ratio": 0.0304625674, + "status": "pass", + "tap": "net.norm" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0235438822, + "index": 7, + "metrics": { + "corr": 0.999999969, + "finite": true, + "max_abs": 0.000523090363, + "mean_abs": 0.000116567945, + "psnr_db": 88.9648238, + "ref_absmax": 2.22176766, + "rel_max": 0.000235438822, + "scaled_max_abs": 0.000235438822 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "per_op_band_ratio": 0.0235438822, + "status": "pass", + "tap": "net.pool" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0206451245, + "index": 8, + "metrics": { + "corr": 0.999999954, + "finite": true, + "max_abs": 0.000277578831, + "mean_abs": 8.1330759e-05, + "psnr_db": 87.3034523, + "ref_absmax": 1.34452486, + "rel_max": 0.000206451245, + "scaled_max_abs": 0.000206451245 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "per_op_band_ratio": 0.0206451245, + "status": "pass", + "tap": "net.head" + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp16", + "id": "tinyvit__gelu_tanh__litert_fp16", + "model": "tinyvit", + "path": "litert", + "variant": "gelu_tanh" + }, + "tap_bands_gate": true, + "verdict": "PASS" +} diff --git a/bench/verdicts_calibrated4/tinyvit__gelu_tanh__litert_fp32.json b/bench/verdicts_calibrated4/tinyvit__gelu_tanh__litert_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..b246952d12567f21e58b3276e22536211f7be378 --- /dev/null +++ b/bench/verdicts_calibrated4/tinyvit__gelu_tanh__litert_fp32.json @@ -0,0 +1,975 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": false, + "note": null, + "status": "clear" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 0.00177327335, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.38418579e-07, + "mean_abs": 4.11702786e-08, + "psnr_db": 152.823534, + "ref_absmax": 1.34451115, + "rel_max": 1.77327335e-07, + "scaled_max_abs": 1.77327335e-07 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 57, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 1, + "n_ops_total": 173, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "status": "clear" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp32", + "first_divergence": null, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "e493a073105b1e1d294e1349442d778db6761a3c4ec2ec7a20460e01425685f2", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "00630832cce112574bf0b1cf6536b13d255804f1ac2de6dccf812b3e1bf0e9c7", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "fp32 per-tap band on near-zero probes", + "reason": "C3-2: per-tap fp32 checks gate without the near_zero probes; they are measured and reported per tap ('ungated_probes'); the output gates on all probes. C4-1: when the output has failed and no gated tap fails, they localise the first divergence (earliest tap over band on all probes)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": null, + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.358267631, + "metrics": { + "corr": 0.999999998, + "finite": true, + "max_abs": 4.53591347e-05, + "mean_abs": 1.5076506e-05, + "psnr_db": 101.970731, + "ref_absmax": 1.26606846, + "rel_max": 3.58267631e-05, + "scaled_max_abs": 3.58267631e-05 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.06644368e-08, + "psnr_db": 164.113247, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.00112572895, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.38418579e-07, + "mean_abs": 4.66593688e-08, + "psnr_db": 130.397207, + "ref_absmax": 2.11790395, + "rel_max": 1.12572895e-07, + "scaled_max_abs": 1.12572895e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.013692028, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.47819519e-05, + "mean_abs": 3.62527481e-07, + "psnr_db": 150.740789, + "ref_absmax": 10.7960281, + "rel_max": 1.3692028e-06, + "scaled_max_abs": 1.3692028e-06 + }, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;2" + }, + "status": "pass", + "tap": "net.patch_embed", + "ungated_probes": { + "band_ratio": 0.0180220941, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.529953e-06, + "mean_abs": 4.841953e-07, + "psnr_db": 137.220487, + "ref_absmax": 2.51355529, + "rel_max": 1.80220941e-06, + "scaled_max_abs": 1.80220941e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0137194998, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.47819519e-05, + "mean_abs": 3.63416014e-07, + "psnr_db": 150.644745, + "ref_absmax": 10.7744102, + "rel_max": 1.37194998e-06, + "scaled_max_abs": 1.37194998e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;3" + }, + "status": "pass", + "tap": "net.pos_embed", + "ungated_probes": { + "band_ratio": 0.0120981371, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.64916229e-06, + "mean_abs": 4.8529616e-07, + "psnr_db": 140.716929, + "ref_absmax": 3.84287453, + "rel_max": 1.20981371e-06, + "scaled_max_abs": 1.20981371e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0133449274, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-05, + "mean_abs": 3.90630877e-07, + "psnr_db": 150.441385, + "ref_absmax": 10.7195148, + "rel_max": 1.33449274e-06, + "scaled_max_abs": 1.33449274e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.0", + "ungated_probes": { + "band_ratio": 0.0101023474, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.529953e-06, + "mean_abs": 5.03142903e-07, + "psnr_db": 141.614723, + "ref_absmax": 4.48405981, + "rel_max": 1.01023474e-06, + "scaled_max_abs": 1.01023474e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.175992709, + "index": 4, + "metrics": { + "corr": 0.999999999, + "finite": true, + "max_abs": 0.000193655491, + "mean_abs": 3.33315829e-05, + "psnr_db": 114.411543, + "ref_absmax": 11.0036087, + "rel_max": 1.75992709e-05, + "scaled_max_abs": 1.75992709e-05 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.1", + "ungated_probes": { + "band_ratio": 0.277707317, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000130772591, + "mean_abs": 3.56591957e-05, + "psnr_db": 105.897781, + "ref_absmax": 4.70900774, + "rel_max": 2.77707317e-05, + "scaled_max_abs": 2.77707317e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.166185199, + "index": 5, + "metrics": { + "corr": 0.999999999, + "finite": true, + "max_abs": 0.000188589096, + "mean_abs": 3.34445623e-05, + "psnr_db": 114.644484, + "ref_absmax": 11.3481283, + "rel_max": 1.66185199e-05, + "scaled_max_abs": 1.66185199e-05 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.2", + "ungated_probes": { + "band_ratio": 0.300309434, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000140309334, + "mean_abs": 3.53988635e-05, + "psnr_db": 106.16288, + "ref_absmax": 4.67215872, + "rel_max": 3.00309434e-05, + "scaled_max_abs": 3.00309434e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.736526324, + "index": 6, + "metrics": { + "corr": 0.999999999, + "finite": true, + "max_abs": 0.000302791595, + "mean_abs": 3.72062212e-05, + "psnr_db": 104.074307, + "ref_absmax": 4.11107635, + "rel_max": 7.36526324e-05, + "scaled_max_abs": 7.36526324e-05 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "status": "pass", + "tap": "net.norm", + "ungated_probes": { + "band_ratio": 0.316641271, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.82744789e-05, + "mean_abs": 2.18881902e-05, + "psnr_db": 105.981704, + "ref_absmax": 2.7878387, + "rel_max": 3.16641271e-05, + "scaled_max_abs": 3.16641271e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.435988406, + "index": 7, + "metrics": { + "corr": 0.999999998, + "finite": true, + "max_abs": 8.8095665e-05, + "mean_abs": 2.22256701e-05, + "psnr_db": 102.897129, + "ref_absmax": 2.0205965, + "rel_max": 4.35988406e-05, + "scaled_max_abs": 4.35988406e-05 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "status": "pass", + "tap": "net.pool", + "ungated_probes": { + "band_ratio": 0.299668041, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.63995743e-05, + "mean_abs": 2.08887359e-05, + "psnr_db": 104.333629, + "ref_absmax": 2.21577096, + "rel_max": 2.99668041e-05, + "scaled_max_abs": 2.99668041e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.358267631, + "index": 8, + "metrics": { + "corr": 0.999999998, + "finite": true, + "max_abs": 4.53591347e-05, + "mean_abs": 1.51107354e-05, + "psnr_db": 100.470307, + "ref_absmax": 1.26606846, + "rel_max": 3.58267631e-05, + "scaled_max_abs": 3.58267631e-05 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "pass", + "tap": "net.head", + "ungated_probes": { + "band_ratio": 0.37441705, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999999, + "finite": true, + "max_abs": 4.1782856e-05, + "mean_abs": 1.48368999e-05, + "psnr_db": 98.6954706, + "ref_absmax": 1.11594427, + "rel_max": 3.7441705e-05, + "scaled_max_abs": 3.7441705e-05 + }, + "n_probes": 4 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.369280409, + "metrics": { + "corr": 0.999999998, + "finite": true, + "max_abs": 4.96506691e-05, + "mean_abs": 1.52649009e-05, + "psnr_db": 102.078527, + "ref_absmax": 1.34452486, + "rel_max": 3.69280409e-05, + "scaled_max_abs": 3.69280409e-05 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.08107465e-08, + "psnr_db": 164.245493, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.00112572895, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.38418579e-07, + "mean_abs": 4.66724468e-08, + "psnr_db": 130.436578, + "ref_absmax": 2.11790395, + "rel_max": 1.12572895e-07, + "scaled_max_abs": 1.12572895e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0120503822, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-05, + "mean_abs": 3.61783837e-07, + "psnr_db": 151.297602, + "ref_absmax": 11.871088, + "rel_max": 1.20503822e-06, + "scaled_max_abs": 1.20503822e-06 + }, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;2" + }, + "status": "pass", + "tap": "net.patch_embed", + "ungated_probes": { + "band_ratio": 0.0218071717, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.48362732e-06, + "mean_abs": 4.85357549e-07, + "psnr_db": 137.211056, + "ref_absmax": 2.51459813, + "rel_max": 2.18071717e-06, + "scaled_max_abs": 2.18071717e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0123587661, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-05, + "mean_abs": 3.62607432e-07, + "psnr_db": 151.221115, + "ref_absmax": 11.574873, + "rel_max": 1.23587661e-06, + "scaled_max_abs": 1.23587661e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;3" + }, + "status": "pass", + "tap": "net.pos_embed", + "ungated_probes": { + "band_ratio": 0.0147609698, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.48362732e-06, + "mean_abs": 4.85683925e-07, + "psnr_db": 140.560247, + "ref_absmax": 3.71495056, + "rel_max": 1.47609698e-06, + "scaled_max_abs": 1.47609698e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.012026573, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-05, + "mean_abs": 3.90495829e-07, + "psnr_db": 151.23837, + "ref_absmax": 11.8945894, + "rel_max": 1.2026573e-06, + "scaled_max_abs": 1.2026573e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.0", + "ungated_probes": { + "band_ratio": 0.0130114509, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.84125519e-06, + "mean_abs": 5.0340425e-07, + "psnr_db": 141.475988, + "ref_absmax": 4.48931885, + "rel_max": 1.30114509e-06, + "scaled_max_abs": 1.30114509e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.153699829, + "index": 4, + "metrics": { + "corr": 0.999999999, + "finite": true, + "max_abs": 0.000186800957, + "mean_abs": 3.34278904e-05, + "psnr_db": 115.154, + "ref_absmax": 12.1536217, + "rel_max": 1.53699829e-05, + "scaled_max_abs": 1.53699829e-05 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.1", + "ungated_probes": { + "band_ratio": 0.264247652, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000124573708, + "mean_abs": 3.56900362e-05, + "psnr_db": 105.799387, + "ref_absmax": 4.7142787, + "rel_max": 2.64247652e-05, + "scaled_max_abs": 2.64247652e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.15694441, + "index": 5, + "metrics": { + "corr": 0.999999999, + "finite": true, + "max_abs": 0.0001963377, + "mean_abs": 3.36143088e-05, + "psnr_db": 115.209145, + "ref_absmax": 12.5100155, + "rel_max": 1.5694441e-05, + "scaled_max_abs": 1.5694441e-05 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.2", + "ungated_probes": { + "band_ratio": 0.29041691, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000135838985, + "mean_abs": 3.54337208e-05, + "psnr_db": 106.019949, + "ref_absmax": 4.67737865, + "rel_max": 2.9041691e-05, + "scaled_max_abs": 2.9041691e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.73724318, + "index": 6, + "metrics": { + "corr": 0.999999999, + "finite": true, + "max_abs": 0.00030952692, + "mean_abs": 3.70431351e-05, + "psnr_db": 104.338233, + "ref_absmax": 4.19843721, + "rel_max": 7.3724318e-05, + "scaled_max_abs": 7.3724318e-05 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "status": "pass", + "tap": "net.norm", + "ungated_probes": { + "band_ratio": 0.31608121, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.64863396e-05, + "mean_abs": 2.19487426e-05, + "psnr_db": 105.806602, + "ref_absmax": 2.73620629, + "rel_max": 3.1608121e-05, + "scaled_max_abs": 3.1608121e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.430629441, + "index": 7, + "metrics": { + "corr": 0.999999999, + "finite": true, + "max_abs": 9.04388726e-05, + "mean_abs": 2.25886139e-05, + "psnr_db": 102.928495, + "ref_absmax": 2.10015535, + "rel_max": 4.30629441e-05, + "scaled_max_abs": 4.30629441e-05 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "status": "pass", + "tap": "net.pool", + "ungated_probes": { + "band_ratio": 0.302078526, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.711483e-05, + "mean_abs": 2.1067608e-05, + "psnr_db": 104.291655, + "ref_absmax": 2.22176766, + "rel_max": 3.02078526e-05, + "scaled_max_abs": 3.02078526e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.369280409, + "index": 8, + "metrics": { + "corr": 0.999999998, + "finite": true, + "max_abs": 4.96506691e-05, + "mean_abs": 1.53106637e-05, + "psnr_db": 100.650046, + "ref_absmax": 1.34452486, + "rel_max": 3.69280409e-05, + "scaled_max_abs": 3.69280409e-05 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "pass", + "tap": "net.head", + "ungated_probes": { + "band_ratio": 0.376759012, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999999, + "finite": true, + "max_abs": 4.21702862e-05, + "mean_abs": 1.49445608e-05, + "psnr_db": 98.6417015, + "ref_absmax": 1.11929071, + "rel_max": 3.76759012e-05, + "scaled_max_abs": 3.76759012e-05 + }, + "n_probes": 4 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp32", + "id": "tinyvit__gelu_tanh__litert_fp32", + "model": "tinyvit", + "path": "litert", + "variant": "gelu_tanh" + }, + "tap_bands_gate": true, + "verdict": "PASS" +} diff --git a/bench/verdicts_calibrated4/tinyvit__gelu_tanh__onnx_fp16.json b/bench/verdicts_calibrated4/tinyvit__gelu_tanh__onnx_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..05ffa4a039b34c12bbf557b27cd833f1da3ded09 --- /dev/null +++ b/bench/verdicts_calibrated4/tinyvit__gelu_tanh__onnx_fp16.json @@ -0,0 +1,737 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "baseline": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "faithful_output_rel_max": 0.000456508758, + "output_band": 0.01, + "source": { + "bundle": "bundles/tinyvit__clean__onnx_fp16.json", + "case": "tinyvit__clean__onnx_fp16", + "digests": { + "192": { + "converted": "256af465b0649a975fd83c261b17d7830bd11a36abe6723c11a591e4649ad014", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "4e990e5a6766e80eea68d854f1db627a391a6a25b03b20781b4f30f0c5c65cf1", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + } + } + }, + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": false, + "note": null, + "status": "clear" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "status": "clear" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp16", + "first_divergence": null, + "fp16_floor": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "baseline": { + "bundle": "bundles/tinyvit__clean__onnx_fp16.json", + "case": "tinyvit__clean__onnx_fp16", + "digests": { + "192": { + "converted": "256af465b0649a975fd83c261b17d7830bd11a36abe6723c11a591e4649ad014", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "4e990e5a6766e80eea68d854f1db627a391a6a25b03b20781b4f30f0c5c65cf1", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + } + }, + "envelopes_gate": true, + "faithful_output_rel_max": 0.000456508758, + "faithful_tap_rel_max": { + "net.blocks.0": 0.000642335839, + "net.blocks.1": 0.000711207718, + "net.blocks.2": 0.000762561059, + "net.head": 0.000463029134, + "net.norm": 0.000851897059, + "net.patch_embed": 0.000469161546, + "net.pool": 0.00079208262, + "net.pos_embed": 0.0007491884, + "normalize": 0.000441313312 + }, + "floor": 0.01, + "k": 2.0, + "output_band": 0.01, + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used", + "tap_envelopes": { + "net.blocks.0": 0.01, + "net.blocks.1": 0.01, + "net.blocks.2": 0.01, + "net.head": 0.01, + "net.norm": 0.01, + "net.patch_embed": 0.01, + "net.pool": 0.01, + "net.pos_embed": 0.01, + "normalize": 0.01 + } + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "b543117b437b3c80f197984a158ece07c645f214d09d6fc42e0b457af35272dc", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "8e9a8a774c91276297c42a31a3355811d641860503469621bd4e310c42f1120b", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 4.52399254e-05, + "224": 4.58061695e-05 + }, + "primary_class": null, + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_limit": 0.01, + "band_ratio": 0.0502433866, + "metrics": { + "corr": 0.999999883, + "finite": true, + "max_abs": 0.00063611567, + "mean_abs": 0.000131547483, + "psnr_db": 82.7917663, + "ref_absmax": 1.26606846, + "rel_max": 0.000502433866, + "scaled_max_abs": 0.000502433866 + }, + "per_op_band_ratio": 0.0502433866, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 0.0441313312, + "index": 0, + "metrics": { + "corr": 0.999999966, + "finite": true, + "max_abs": 0.00508785248, + "mean_abs": 0.000405953078, + "psnr_db": 88.0186903, + "ref_absmax": 11.5288897, + "rel_max": 0.000441313312, + "scaled_max_abs": 0.000441313312 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "per_op_band_ratio": 0.0441313312, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0469150713, + "index": 1, + "metrics": { + "corr": 0.999999939, + "finite": true, + "max_abs": 0.00506496429, + "mean_abs": 0.000255633799, + "psnr_db": 95.3001421, + "ref_absmax": 10.7960281, + "rel_max": 0.000469150713, + "scaled_max_abs": 0.000469150713 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "per_op_band_ratio": 0.0469150713, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0735365188, + "index": 2, + "metrics": { + "corr": 0.999999921, + "finite": true, + "max_abs": 0.00792312622, + "mean_abs": 0.000301602973, + "psnr_db": 93.5874175, + "ref_absmax": 10.7744102, + "rel_max": 0.000735365188, + "scaled_max_abs": 0.000735365188 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "per_op_band_ratio": 0.0735365188, + "status": "pass", + "tap": "net.pos_embed" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0642335839, + "index": 3, + "metrics": { + "corr": 0.999999915, + "finite": true, + "max_abs": 0.00688552856, + "mean_abs": 0.000337762151, + "psnr_db": 93.052585, + "ref_absmax": 10.7195148, + "rel_max": 0.000642335839, + "scaled_max_abs": 0.000642335839 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "per_op_band_ratio": 0.0642335839, + "status": "pass", + "tap": "net.blocks.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0711207718, + "index": 4, + "metrics": { + "corr": 0.99999991, + "finite": true, + "max_abs": 0.00782585144, + "mean_abs": 0.000377295711, + "psnr_db": 92.5321278, + "ref_absmax": 11.0036087, + "rel_max": 0.000711207718, + "scaled_max_abs": 0.000711207718 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0" + }, + "per_op_band_ratio": 0.0711207718, + "status": "pass", + "tap": "net.blocks.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0762561059, + "index": 5, + "metrics": { + "corr": 0.999999904, + "finite": true, + "max_abs": 0.00865364075, + "mean_abs": 0.000408295325, + "psnr_db": 92.2677079, + "ref_absmax": 11.3481283, + "rel_max": 0.000762561059, + "scaled_max_abs": 0.000762561059 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0" + }, + "per_op_band_ratio": 0.0762561059, + "status": "pass", + "tap": "net.blocks.2" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0818820092, + "index": 6, + "metrics": { + "corr": 0.999999846, + "finite": true, + "max_abs": 0.00336623192, + "mean_abs": 0.000425260716, + "psnr_db": 82.9962727, + "ref_absmax": 4.11107635, + "rel_max": 0.000818820092, + "scaled_max_abs": 0.000818820092 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "per_op_band_ratio": 0.0818820092, + "status": "pass", + "tap": "net.norm" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0736991044, + "index": 7, + "metrics": { + "corr": 0.999999805, + "finite": true, + "max_abs": 0.00163300335, + "mean_abs": 0.00027358797, + "psnr_db": 81.4404838, + "ref_absmax": 2.21577096, + "rel_max": 0.000736991044, + "scaled_max_abs": 0.000736991044 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/ReduceMean_output_0" + }, + "per_op_band_ratio": 0.0736991044, + "status": "pass", + "tap": "net.pool" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0490169908, + "index": 8, + "metrics": { + "corr": 0.999999884, + "finite": true, + "max_abs": 0.00062058866, + "mean_abs": 0.000131740266, + "psnr_db": 82.8089571, + "ref_absmax": 1.26606846, + "rel_max": 0.000490169908, + "scaled_max_abs": 0.000490169908 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "per_op_band_ratio": 0.0490169908, + "status": "pass", + "tap": "net.head" + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_limit": 0.01, + "band_ratio": 0.0473880305, + "metrics": { + "corr": 0.999999897, + "finite": true, + "max_abs": 0.00063714385, + "mean_abs": 0.000128320683, + "psnr_db": 83.3693914, + "ref_absmax": 1.34452486, + "rel_max": 0.000473880305, + "scaled_max_abs": 0.000473880305 + }, + "per_op_band_ratio": 0.0473880305, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 0.0439328023, + "index": 0, + "metrics": { + "corr": 0.999999965, + "finite": true, + "max_abs": 0.00506496429, + "mean_abs": 0.000406712054, + "psnr_db": 88.0749992, + "ref_absmax": 11.5288897, + "rel_max": 0.000439328023, + "scaled_max_abs": 0.000439328023 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "per_op_band_ratio": 0.0439328023, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0469161546, + "index": 1, + "metrics": { + "corr": 0.99999994, + "finite": true, + "max_abs": 0.00556945801, + "mean_abs": 0.000254492238, + "psnr_db": 95.9056844, + "ref_absmax": 11.871088, + "rel_max": 0.000469161546, + "scaled_max_abs": 0.000469161546 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "per_op_band_ratio": 0.0469161546, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_limit": 0.01, + "band_ratio": 0.07491884, + "index": 2, + "metrics": { + "corr": 0.99999992, + "finite": true, + "max_abs": 0.00867176056, + "mean_abs": 0.000301083888, + "psnr_db": 94.1877045, + "ref_absmax": 11.574873, + "rel_max": 0.0007491884, + "scaled_max_abs": 0.0007491884 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "per_op_band_ratio": 0.07491884, + "status": "pass", + "tap": "net.pos_embed" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0635564292, + "index": 3, + "metrics": { + "corr": 0.999999915, + "finite": true, + "max_abs": 0.00755977631, + "mean_abs": 0.000339032434, + "psnr_db": 93.8757594, + "ref_absmax": 11.8945894, + "rel_max": 0.000635564292, + "scaled_max_abs": 0.000635564292 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "per_op_band_ratio": 0.0635564292, + "status": "pass", + "tap": "net.blocks.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0671218039, + "index": 4, + "metrics": { + "corr": 0.999999909, + "finite": true, + "max_abs": 0.0081577301, + "mean_abs": 0.000377745065, + "psnr_db": 93.2997276, + "ref_absmax": 12.1536217, + "rel_max": 0.000671218039, + "scaled_max_abs": 0.000671218039 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0" + }, + "per_op_band_ratio": 0.0671218039, + "status": "pass", + "tap": "net.blocks.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0664445648, + "index": 5, + "metrics": { + "corr": 0.999999905, + "finite": true, + "max_abs": 0.00831222534, + "mean_abs": 0.000408643888, + "psnr_db": 92.8870095, + "ref_absmax": 12.5100155, + "rel_max": 0.000664445648, + "scaled_max_abs": 0.000664445648 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0" + }, + "per_op_band_ratio": 0.0664445648, + "status": "pass", + "tap": "net.blocks.2" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0866008742, + "index": 6, + "metrics": { + "corr": 0.999999847, + "finite": true, + "max_abs": 0.00363588333, + "mean_abs": 0.000422709279, + "psnr_db": 83.2379069, + "ref_absmax": 4.19843721, + "rel_max": 0.000866008742, + "scaled_max_abs": 0.000866008742 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "per_op_band_ratio": 0.0866008742, + "status": "pass", + "tap": "net.norm" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0682010682, + "index": 7, + "metrics": { + "corr": 0.999999829, + "finite": true, + "max_abs": 0.00151526928, + "mean_abs": 0.000270385191, + "psnr_db": 81.572586, + "ref_absmax": 2.22176766, + "rel_max": 0.000682010682, + "scaled_max_abs": 0.000682010682 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/ReduceMean_output_0" + }, + "per_op_band_ratio": 0.0682010682, + "status": "pass", + "tap": "net.pool" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0471353416, + "index": 8, + "metrics": { + "corr": 0.999999896, + "finite": true, + "max_abs": 0.000633746386, + "mean_abs": 0.000128655721, + "psnr_db": 83.3417377, + "ref_absmax": 1.34452486, + "rel_max": 0.000471353416, + "scaled_max_abs": 0.000471353416 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "per_op_band_ratio": 0.0471353416, + "status": "pass", + "tap": "net.head" + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp16", + "id": "tinyvit__gelu_tanh__onnx_fp16", + "model": "tinyvit", + "path": "onnx", + "variant": "gelu_tanh" + }, + "tap_bands_gate": true, + "verdict": "PASS" +} diff --git a/bench/verdicts_calibrated4/tinyvit__gelu_tanh__onnx_fp32.json b/bench/verdicts_calibrated4/tinyvit__gelu_tanh__onnx_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..96290d7e69cf3c202b54cd2231b879001be6f60d --- /dev/null +++ b/bench/verdicts_calibrated4/tinyvit__gelu_tanh__onnx_fp32.json @@ -0,0 +1,945 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": false, + "note": null, + "status": "clear" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "status": "clear" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp32", + "first_divergence": null, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "d0fb28a7fb7a50e81d093a60f4591d9075b44280144c0c4fd84d3567f6b10144", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "9bcd77de12834f643a8991a20b1aeb57c05c9411fdf093b40b92dda5cce4ce76", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "fp32 per-tap band on near-zero probes", + "reason": "C3-2: per-tap fp32 checks gate without the near_zero probes; they are measured and reported per tap ('ungated_probes'); the output gates on all probes. C4-1: when the output has failed and no gated tap fails, they localise the first divergence (earliest tap over band on all probes)" + }, + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 1.1920929e-07, + "224": 1.1920929e-07 + }, + "primary_class": null, + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.359209201, + "metrics": { + "corr": 0.999999998, + "finite": true, + "max_abs": 4.5478344e-05, + "mean_abs": 1.50642983e-05, + "psnr_db": 101.974744, + "ref_absmax": 1.26606846, + "rel_max": 3.59209201e-05, + "scaled_max_abs": 3.59209201e-05 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.0, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 11.5288897, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.0, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 2.11790395, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0119253147, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.28746033e-05, + "mean_abs": 3.05237152e-07, + "psnr_db": 151.990326, + "ref_absmax": 10.7960281, + "rel_max": 1.19253147e-06, + "scaled_max_abs": 1.19253147e-06 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "status": "pass", + "tap": "net.patch_embed", + "ungated_probes": { + "band_ratio": 0.0170735629, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.29153442e-06, + "mean_abs": 4.19041159e-07, + "psnr_db": 138.187965, + "ref_absmax": 2.51355529, + "rel_max": 1.70735629e-06, + "scaled_max_abs": 1.70735629e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0119492417, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.28746033e-05, + "mean_abs": 3.36284482e-07, + "psnr_db": 151.560529, + "ref_absmax": 10.7744102, + "rel_max": 1.19492417e-06, + "scaled_max_abs": 1.19492417e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "status": "pass", + "tap": "net.pos_embed", + "ungated_probes": { + "band_ratio": 0.0111675112, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.29153442e-06, + "mean_abs": 4.39594733e-07, + "psnr_db": 141.414892, + "ref_absmax": 3.84287453, + "rel_max": 1.11675112e-06, + "scaled_max_abs": 1.11675112e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0124552656, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33514404e-05, + "mean_abs": 3.63612535e-07, + "psnr_db": 151.291476, + "ref_absmax": 10.7195148, + "rel_max": 1.24552656e-06, + "scaled_max_abs": 1.24552656e-06 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.0", + "ungated_probes": { + "band_ratio": 0.0101023474, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.529953e-06, + "mean_abs": 4.59172598e-07, + "psnr_db": 142.28545, + "ref_absmax": 4.48405981, + "rel_max": 1.01023474e-06, + "scaled_max_abs": 1.01023474e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.175721868, + "index": 4, + "metrics": { + "corr": 0.999999999, + "finite": true, + "max_abs": 0.000193357468, + "mean_abs": 3.33397538e-05, + "psnr_db": 114.40971, + "ref_absmax": 11.0036087, + "rel_max": 1.75721868e-05, + "scaled_max_abs": 1.75721868e-05 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.1", + "ungated_probes": { + "band_ratio": 0.277454166, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000130653381, + "mean_abs": 3.56400071e-05, + "psnr_db": 105.902116, + "ref_absmax": 4.70900774, + "rel_max": 2.77454166e-05, + "scaled_max_abs": 2.77454166e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.166605389, + "index": 5, + "metrics": { + "corr": 0.999999999, + "finite": true, + "max_abs": 0.000189065933, + "mean_abs": 3.34493812e-05, + "psnr_db": 114.643392, + "ref_absmax": 11.3481283, + "rel_max": 1.66605389e-05, + "scaled_max_abs": 1.66605389e-05 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.2", + "ungated_probes": { + "band_ratio": 0.30081973, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000140547752, + "mean_abs": 3.53762722e-05, + "psnr_db": 106.167568, + "ref_absmax": 4.67215872, + "rel_max": 3.0081973e-05, + "scaled_max_abs": 3.0081973e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.737758701, + "index": 6, + "metrics": { + "corr": 0.999999999, + "finite": true, + "max_abs": 0.000303298235, + "mean_abs": 3.72073481e-05, + "psnr_db": 104.074245, + "ref_absmax": 4.11107635, + "rel_max": 7.37758701e-05, + "scaled_max_abs": 7.37758701e-05 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "status": "pass", + "tap": "net.norm", + "ungated_probes": { + "band_ratio": 0.31557226, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.79764557e-05, + "mean_abs": 2.18777074e-05, + "psnr_db": 105.985398, + "ref_absmax": 2.7878387, + "rel_max": 3.1557226e-05, + "scaled_max_abs": 3.1557226e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.435472182, + "index": 7, + "metrics": { + "corr": 0.999999998, + "finite": true, + "max_abs": 8.79913568e-05, + "mean_abs": 2.222331e-05, + "psnr_db": 102.897801, + "ref_absmax": 2.0205965, + "rel_max": 4.35472182e-05, + "scaled_max_abs": 4.35472182e-05 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/ReduceMean_output_0" + }, + "status": "pass", + "tap": "net.pool", + "ungated_probes": { + "band_ratio": 0.298592034, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.61611557e-05, + "mean_abs": 2.08719866e-05, + "psnr_db": 104.338777, + "ref_absmax": 2.21577096, + "rel_max": 2.98592034e-05, + "scaled_max_abs": 2.98592034e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.359209201, + "index": 8, + "metrics": { + "corr": 0.999999998, + "finite": true, + "max_abs": 4.5478344e-05, + "mean_abs": 1.5096107e-05, + "psnr_db": 100.475699, + "ref_absmax": 1.26606846, + "rel_max": 3.59209201e-05, + "scaled_max_abs": 3.59209201e-05 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "pass", + "tap": "net.head", + "ungated_probes": { + "band_ratio": 0.373615872, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999999, + "finite": true, + "max_abs": 4.1693449e-05, + "mean_abs": 1.48281455e-05, + "psnr_db": 98.6927371, + "ref_absmax": 1.11594427, + "rel_max": 3.73615872e-05, + "scaled_max_abs": 3.73615872e-05 + }, + "n_probes": 4 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.369723723, + "metrics": { + "corr": 0.999999998, + "finite": true, + "max_abs": 4.97102737e-05, + "mean_abs": 1.52593275e-05, + "psnr_db": 102.080076, + "ref_absmax": 1.34452486, + "rel_max": 3.69723723e-05, + "scaled_max_abs": 3.69723723e-05 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.0, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 11.5288897, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.0, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 2.11790395, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0104436645, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.23977661e-05, + "mean_abs": 3.03467206e-07, + "psnr_db": 152.573303, + "ref_absmax": 11.871088, + "rel_max": 1.04436645e-06, + "scaled_max_abs": 1.04436645e-06 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "status": "pass", + "tap": "net.patch_embed", + "ungated_probes": { + "band_ratio": 0.0170664822, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.29153442e-06, + "mean_abs": 4.21279035e-07, + "psnr_db": 138.195951, + "ref_absmax": 2.51459813, + "rel_max": 1.70664822e-06, + "scaled_max_abs": 1.70664822e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0107109306, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.23977661e-05, + "mean_abs": 3.04157085e-07, + "psnr_db": 152.494897, + "ref_absmax": 11.574873, + "rel_max": 1.07109306e-06, + "scaled_max_abs": 1.07109306e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "status": "pass", + "tap": "net.pos_embed", + "ungated_probes": { + "band_ratio": 0.0115520634, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.29153442e-06, + "mean_abs": 4.21630477e-07, + "psnr_db": 141.539177, + "ref_absmax": 3.71495056, + "rel_max": 1.15520634e-06, + "scaled_max_abs": 1.15520634e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0104230299, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.23977661e-05, + "mean_abs": 3.33690815e-07, + "psnr_db": 152.451548, + "ref_absmax": 11.8945894, + "rel_max": 1.04230299e-06, + "scaled_max_abs": 1.04230299e-06 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.0", + "ungated_probes": { + "band_ratio": 0.010090513, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.529953e-06, + "mean_abs": 4.40578055e-07, + "psnr_db": 142.442878, + "ref_absmax": 4.48931885, + "rel_max": 1.0090513e-06, + "scaled_max_abs": 1.0090513e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.153895999, + "index": 4, + "metrics": { + "corr": 0.999999999, + "finite": true, + "max_abs": 0.000187039375, + "mean_abs": 3.34365311e-05, + "psnr_db": 115.152401, + "ref_absmax": 12.1536217, + "rel_max": 1.53895999e-05, + "scaled_max_abs": 1.53895999e-05 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.1", + "ungated_probes": { + "band_ratio": 0.263741915, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000124335289, + "mean_abs": 3.56682097e-05, + "psnr_db": 105.804252, + "ref_absmax": 4.7142787, + "rel_max": 2.63741915e-05, + "scaled_max_abs": 2.63741915e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.157134992, + "index": 5, + "metrics": { + "corr": 0.999999999, + "finite": true, + "max_abs": 0.000196576118, + "mean_abs": 3.36201612e-05, + "psnr_db": 115.207969, + "ref_absmax": 12.5100155, + "rel_max": 1.57134992e-05, + "scaled_max_abs": 1.57134992e-05 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.2", + "ungated_probes": { + "band_ratio": 0.291436364, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000136315823, + "mean_abs": 3.54101264e-05, + "psnr_db": 106.024894, + "ref_absmax": 4.67737865, + "rel_max": 2.91436364e-05, + "scaled_max_abs": 2.91436364e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.738662867, + "index": 6, + "metrics": { + "corr": 0.999999999, + "finite": true, + "max_abs": 0.000310122967, + "mean_abs": 3.70458124e-05, + "psnr_db": 104.33799, + "ref_absmax": 4.19843721, + "rel_max": 7.38662867e-05, + "scaled_max_abs": 7.38662867e-05 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "status": "pass", + "tap": "net.norm", + "ungated_probes": { + "band_ratio": 0.31608121, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.64863396e-05, + "mean_abs": 2.19368647e-05, + "psnr_db": 105.810747, + "ref_absmax": 2.73620629, + "rel_max": 3.1608121e-05, + "scaled_max_abs": 3.1608121e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.430398845, + "index": 7, + "metrics": { + "corr": 0.999999999, + "finite": true, + "max_abs": 9.03904438e-05, + "mean_abs": 2.25978723e-05, + "psnr_db": 102.926176, + "ref_absmax": 2.10015535, + "rel_max": 4.30398845e-05, + "scaled_max_abs": 4.30398845e-05 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/ReduceMean_output_0" + }, + "status": "pass", + "tap": "net.pool", + "ungated_probes": { + "band_ratio": 0.302078526, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.711483e-05, + "mean_abs": 2.1041822e-05, + "psnr_db": 104.299417, + "ref_absmax": 2.22176766, + "rel_max": 3.02078526e-05, + "scaled_max_abs": 3.02078526e-05 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.369723723, + "index": 8, + "metrics": { + "corr": 0.999999998, + "finite": true, + "max_abs": 4.97102737e-05, + "mean_abs": 1.53086315e-05, + "psnr_db": 100.64945, + "ref_absmax": 1.34452486, + "rel_max": 3.69723723e-05, + "scaled_max_abs": 3.69723723e-05 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "pass", + "tap": "net.head", + "ungated_probes": { + "band_ratio": 0.376759012, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999999, + "finite": true, + "max_abs": 4.21702862e-05, + "mean_abs": 1.49240717e-05, + "psnr_db": 98.65525, + "ref_absmax": 1.11929071, + "rel_max": 3.76759012e-05, + "scaled_max_abs": 3.76759012e-05 + }, + "n_probes": 4 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp32", + "id": "tinyvit__gelu_tanh__onnx_fp32", + "model": "tinyvit", + "path": "onnx", + "variant": "gelu_tanh" + }, + "tap_bands_gate": true, + "verdict": "PASS" +} diff --git a/bench/verdicts_calibrated4/tinyvit__input_hw_swap__coreml_fp16.json b/bench/verdicts_calibrated4/tinyvit__input_hw_swap__coreml_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..73c8a7ec21673def29814a1f02b3568ad07c2ab8 --- /dev/null +++ b/bench/verdicts_calibrated4/tinyvit__input_hw_swap__coreml_fp16.json @@ -0,0 +1,890 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "baseline": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "faithful_output_rel_max": 0.00402825966, + "output_band": 0.01, + "source": { + "bundle": "bundles/tinyvit__clean__coreml_fp16.json", + "case": "tinyvit__clean__coreml_fp16", + "digests": { + "192": { + "converted": "0035167ec9cc06c61986ca2249819ae1510c5a12aad7eaf510988220c7579aa5", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "5430fd6da54612ccdc73a3180116c0a8d19224ecfcc7ca2d7ce9df494c8307f9", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + } + } + }, + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "normalize", + "band_limit": 0.01, + "explained_by": "hw_transpose", + "nominal_band_ratio": 169.15457, + "results": [ + { + "band_ratio": 169.15457, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 119.778016, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 210.748392, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 0.130516105, + "explains": true, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 311.914062, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [ + "inputs[0]: dtype float16 (declared float32)", + "outputs[0]: dtype float16 (declared float32)" + ], + "status": "precision_narrowing" + }, + "status": "flag" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "_inversed_input_1_cast_fp16", + "basis": "interface hypothesis 'hw_transpose' explains the first over-band tap (normalize)", + "index": 0, + "neighbourhood": [ + { + "band_ratio": 111.131751, + "index": 0, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "status": "fail", + "tap": "normalize" + }, + { + "band_ratio": 21.2898914, + "index": 1, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_7_cast_fp16" + }, + "status": "fail", + "tap": "net.patch_embed" + } + ], + "observed_first_over_band": { + "index": 0, + "tap": "normalize" + }, + "shape": 224, + "tap": "normalize" + }, + "fp16_floor": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "baseline": { + "bundle": "bundles/tinyvit__clean__coreml_fp16.json", + "case": "tinyvit__clean__coreml_fp16", + "digests": { + "192": { + "converted": "0035167ec9cc06c61986ca2249819ae1510c5a12aad7eaf510988220c7579aa5", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "5430fd6da54612ccdc73a3180116c0a8d19224ecfcc7ca2d7ce9df494c8307f9", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + } + }, + "envelopes_gate": true, + "faithful_output_rel_max": 0.00402825966, + "faithful_tap_rel_max": { + "net.blocks.0": 0.0144004222, + "net.blocks.1": 0.0145278434, + "net.blocks.2": 0.0134661694, + "net.head": 0.00402825966, + "net.norm": 0.00711003077, + "net.patch_embed": 0.0147449007, + "net.pool": 0.00501150413, + "net.pos_embed": 0.0145772783, + "normalize": 0.00117570499 + }, + "floor": 0.01, + "k": 2.0, + "output_band": 0.01, + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used", + "tap_envelopes": { + "net.blocks.0": 0.0288008444, + "net.blocks.1": 0.0290556867, + "net.blocks.2": 0.0269323389, + "net.head": 0.01, + "net.norm": 0.0142200615, + "net.patch_embed": 0.0294898015, + "net.pool": 0.0100230083, + "net.pos_embed": 0.0291545566, + "normalize": 0.01 + } + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "8a65ebc33867f113886e4445dfe99bea3e63f7eaffa23032b401c8563964bf0a", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "8bdee5bb6b5c3d5fa24c62cc05c745299ec1f93c7e6465dd4c03f9298ce6d8de", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D3", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.9375, + "band_limit": 0.01, + "band_ratio": 19.4693329, + "metrics": { + "corr": 0.989452851, + "finite": true, + "max_abs": 0.246495083, + "mean_abs": 0.0317684879, + "psnr_db": 33.7598172, + "ref_absmax": 1.26606846, + "rel_max": 0.194693329, + "scaled_max_abs": 0.194693329 + }, + "per_op_band_ratio": 19.4693329, + "status": "fail", + "worst_probe": { + "category": "uniform", + "index": 16 + } + }, + "first_fail_index": 0, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 116.179894, + "index": 0, + "metrics": { + "corr": 0.675688296, + "finite": true, + "max_abs": 13.3942518, + "mean_abs": 0.90015469, + "psnr_db": 19.0467187, + "ref_absmax": 11.5288897, + "rel_max": 1.16179894, + "scaled_max_abs": 1.16179894 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "per_op_band_ratio": 116.179894, + "status": "fail", + "tap": "normalize", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.0294898015, + "band_ratio": 33.5129075, + "index": 1, + "metrics": { + "corr": 0.672992457, + "finite": true, + "max_abs": 10.6695957, + "mean_abs": 0.510340572, + "psnr_db": 28.0164059, + "ref_absmax": 10.7960281, + "rel_max": 0.988288988, + "scaled_max_abs": 0.988288988 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_7_cast_fp16" + }, + "per_op_band_ratio": 98.8288988, + "status": "fail", + "tap": "net.patch_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.0291545566, + "band_ratio": 33.9665313, + "index": 2, + "metrics": { + "corr": 0.707037183, + "finite": true, + "max_abs": 10.6696739, + "mean_abs": 0.510341034, + "psnr_db": 27.9355732, + "ref_absmax": 10.7744102, + "rel_max": 0.990279159, + "scaled_max_abs": 0.990279159 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5_cast_fp16" + }, + "per_op_band_ratio": 99.0279159, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.0288008444, + "band_ratio": 35.4147247, + "index": 3, + "metrics": { + "corr": 0.718106718, + "finite": true, + "max_abs": 10.9336262, + "mean_abs": 0.524690253, + "psnr_db": 27.8566559, + "ref_absmax": 10.7195148, + "rel_max": 1.01997398, + "scaled_max_abs": 1.01997398 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_17_cast_fp16" + }, + "per_op_band_ratio": 101.997398, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.0290556867, + "band_ratio": 34.4500161, + "index": 4, + "metrics": { + "corr": 0.732614185, + "finite": true, + "max_abs": 11.0142698, + "mean_abs": 0.541428733, + "psnr_db": 27.8419383, + "ref_absmax": 11.0036087, + "rel_max": 1.00096888, + "scaled_max_abs": 1.00096888 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_29_cast_fp16" + }, + "per_op_band_ratio": 100.096888, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.0269323389, + "band_ratio": 36.279935, + "index": 5, + "metrics": { + "corr": 0.740427342, + "finite": true, + "max_abs": 11.0882959, + "mean_abs": 0.556573878, + "psnr_db": 27.9436483, + "ref_absmax": 11.3481283, + "rel_max": 0.977103503, + "scaled_max_abs": 0.977103503 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_41_cast_fp16" + }, + "per_op_band_ratio": 97.7103503, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.0142200615, + "band_ratio": 97.5949355, + "index": 6, + "metrics": { + "corr": 0.640551405, + "finite": true, + "max_abs": 5.70537639, + "mean_abs": 0.56603838, + "psnr_db": 19.325983, + "ref_absmax": 4.11107635, + "rel_max": 1.38780599, + "scaled_max_abs": 1.38780599 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "per_op_band_ratio": 138.780599, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "uniform", + "index": 19 + } + }, + { + "band_limit": 0.0100230083, + "band_ratio": 17.881248, + "index": 7, + "metrics": { + "corr": 0.991647388, + "finite": true, + "max_abs": 0.397119105, + "mean_abs": 0.0499915045, + "psnr_db": 35.1265575, + "ref_absmax": 2.21577096, + "rel_max": 0.179223896, + "scaled_max_abs": 0.179223896 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_cast_fp16" + }, + "per_op_band_ratio": 17.9223896, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "uniform", + "index": 18 + } + }, + { + "band_limit": 0.01, + "band_ratio": 19.4693329, + "index": 8, + "metrics": { + "corr": 0.989452851, + "finite": true, + "max_abs": 0.246495083, + "mean_abs": 0.0317684879, + "psnr_db": 33.7598172, + "ref_absmax": 1.26606846, + "rel_max": 0.194693329, + "scaled_max_abs": 0.194693329 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "per_op_band_ratio": 19.4693329, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "uniform", + "index": 16 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_limit": 0.01, + "band_ratio": 8.76996752, + "metrics": { + "corr": 0.994714653, + "finite": true, + "max_abs": 0.117914394, + "mean_abs": 0.0239708808, + "psnr_db": 36.8429372, + "ref_absmax": 1.34452486, + "rel_max": 0.0876996752, + "scaled_max_abs": 0.0876996752 + }, + "per_op_band_ratio": 8.76996752, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 3 + } + }, + "first_fail_index": 0, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 111.131751, + "index": 0, + "metrics": { + "corr": 0.709013383, + "finite": true, + "max_abs": 12.8122569, + "mean_abs": 0.853087416, + "psnr_db": 19.622833, + "ref_absmax": 11.5288897, + "rel_max": 1.11131751, + "scaled_max_abs": 1.11131751 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "per_op_band_ratio": 111.131751, + "status": "fail", + "tap": "normalize", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.0294898015, + "band_ratio": 21.2898914, + "index": 1, + "metrics": { + "corr": 0.707274163, + "finite": true, + "max_abs": 7.45308065, + "mean_abs": 0.479360939, + "psnr_db": 29.0419309, + "ref_absmax": 11.871088, + "rel_max": 0.627834672, + "scaled_max_abs": 0.627834672 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_7_cast_fp16" + }, + "per_op_band_ratio": 62.7834672, + "status": "fail", + "tap": "net.patch_embed", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.0291545566, + "band_ratio": 22.0934945, + "index": 2, + "metrics": { + "corr": 0.734583838, + "finite": true, + "max_abs": 7.45567703, + "mean_abs": 0.479363284, + "psnr_db": 28.9830922, + "ref_absmax": 11.574873, + "rel_max": 0.644126035, + "scaled_max_abs": 0.644126035 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5_cast_fp16" + }, + "per_op_band_ratio": 64.4126035, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.0288008444, + "band_ratio": 21.8301528, + "index": 3, + "metrics": { + "corr": 0.746932452, + "finite": true, + "max_abs": 7.47844756, + "mean_abs": 0.492955548, + "psnr_db": 29.1327068, + "ref_absmax": 11.8945894, + "rel_max": 0.628726835, + "scaled_max_abs": 0.628726835 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_17_cast_fp16" + }, + "per_op_band_ratio": 62.8726835, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.0290556867, + "band_ratio": 21.0544396, + "index": 4, + "metrics": { + "corr": 0.761269923, + "finite": true, + "max_abs": 7.43499267, + "mean_abs": 0.5080798, + "psnr_db": 29.1040352, + "ref_absmax": 12.1536217, + "rel_max": 0.611751202, + "scaled_max_abs": 0.611751202 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_29_cast_fp16" + }, + "per_op_band_ratio": 61.1751202, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.0269323389, + "band_ratio": 22.1100764, + "index": 5, + "metrics": { + "corr": 0.768257561, + "finite": true, + "max_abs": 7.44941485, + "mean_abs": 0.522497256, + "psnr_db": 29.0357354, + "ref_absmax": 12.5100155, + "rel_max": 0.595476069, + "scaled_max_abs": 0.595476069 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_41_cast_fp16" + }, + "per_op_band_ratio": 59.5476069, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.0142200615, + "band_ratio": 87.6893723, + "index": 6, + "metrics": { + "corr": 0.660384381, + "finite": true, + "max_abs": 5.23523402, + "mean_abs": 0.537956039, + "psnr_db": 19.7608719, + "ref_absmax": 4.19843721, + "rel_max": 1.24694827, + "scaled_max_abs": 1.24694827 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "per_op_band_ratio": 124.694827, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "uniform", + "index": 19 + } + }, + { + "band_limit": 0.0100230083, + "band_ratio": 13.8637985, + "index": 7, + "metrics": { + "corr": 0.994929567, + "finite": true, + "max_abs": 0.308730096, + "mean_abs": 0.0395513859, + "psnr_db": 36.8661394, + "ref_absmax": 2.22176766, + "rel_max": 0.138956967, + "scaled_max_abs": 0.138956967 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_cast_fp16" + }, + "per_op_band_ratio": 13.8956967, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "uniform", + "index": 19 + } + }, + { + "band_limit": 0.01, + "band_ratio": 8.76996752, + "index": 8, + "metrics": { + "corr": 0.994714653, + "finite": true, + "max_abs": 0.117914394, + "mean_abs": 0.0239708808, + "psnr_db": 36.8429372, + "ref_absmax": 1.34452486, + "rel_max": 0.0876996752, + "scaled_max_abs": 0.0876996752 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "per_op_band_ratio": 8.76996752, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "natural", + "index": 3 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp16", + "id": "tinyvit__input_hw_swap__coreml_fp16", + "model": "tinyvit", + "path": "coreml", + "variant": "input_hw_swap" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/tinyvit__input_hw_swap__coreml_fp32.json b/bench/verdicts_calibrated4/tinyvit__input_hw_swap__coreml_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..0dfe545658634b27778a2bce2a82bba73e5d0a2a --- /dev/null +++ b/bench/verdicts_calibrated4/tinyvit__input_hw_swap__coreml_fp32.json @@ -0,0 +1,1094 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "normalize", + "explained_by": "hw_transpose", + "nominal_band_ratio": 16910.1721, + "results": [ + { + "band_ratio": 16910.1721, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 11978.5595, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 21078.7917, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 0.000903100643, + "explains": true, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 31179.0395, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "flag" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "_inversed_input_1", + "basis": "interface hypothesis 'hw_transpose' explains the first over-band tap (normalize)", + "index": 0, + "neighbourhood": [ + { + "band_ratio": 11112.3355, + "index": 0, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "fail", + "tap": "normalize" + }, + { + "band_ratio": 6257.79117, + "index": 1, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_7" + }, + "status": "fail", + "tap": "net.patch_embed" + } + ], + "observed_first_over_band": { + "index": 0, + "tap": "normalize" + }, + "shape": 224, + "tap": "normalize" + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "a222fd6c22d124cea15f48624b65e7d95ed8f4cb6123925fd8f5820904d41bf3", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "6093a6c29e7bbefcc18b8316ef617cda6f735519b92d3587ed7fe7c704b4b47a", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "fp32 per-tap band on near-zero probes", + "reason": "C3-2: per-tap fp32 checks gate without the near_zero probes; they are measured and reported per tap ('ungated_probes'); the output gates on all probes. C4-1: when the output has failed and no gated tap fails, they localise the first divergence (earliest tap over band on all probes)" + }, + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D3", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.9375, + "band_ratio": 1946.64411, + "metrics": { + "corr": 0.989459679, + "finite": true, + "max_abs": 0.246458471, + "mean_abs": 0.0314199597, + "psnr_db": 33.7636994, + "ref_absmax": 1.26606846, + "rel_max": 0.194664411, + "scaled_max_abs": 0.194664411 + }, + "status": "fail", + "worst_probe": { + "category": "uniform", + "index": 16 + } + }, + "first_fail_index": 0, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 11616.7792, + "index": 0, + "metrics": { + "corr": 0.600839339, + "finite": true, + "max_abs": 13.3928566, + "mean_abs": 1.02808959, + "psnr_db": 18.4671497, + "ref_absmax": 11.5288897, + "rel_max": 1.16167792, + "scaled_max_abs": 1.16167792 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "fail", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 96.5222518, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999598821, + "finite": true, + "max_abs": 0.0204424858, + "mean_abs": 0.002907845, + "psnr_db": 38.9218202, + "ref_absmax": 2.11790395, + "rel_max": 0.00965222518, + "scaled_max_abs": 0.00965222518 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9883.92467, + "index": 1, + "metrics": { + "corr": 0.619344963, + "finite": true, + "max_abs": 10.6707129, + "mean_abs": 0.582154147, + "psnr_db": 27.4369696, + "ref_absmax": 10.7960281, + "rel_max": 0.988392467, + "scaled_max_abs": 0.988392467 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_7" + }, + "status": "fail", + "tap": "net.patch_embed", + "ungated_probes": { + "band_ratio": 37.8114058, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999998089, + "finite": true, + "max_abs": 0.0095041059, + "mean_abs": 0.00174542805, + "psnr_db": 66.9339981, + "ref_absmax": 2.51355529, + "rel_max": 0.00378114058, + "scaled_max_abs": 0.00378114058 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9903.75559, + "index": 2, + "metrics": { + "corr": 0.65927565, + "finite": true, + "max_abs": 10.6707126, + "mean_abs": 0.582154147, + "psnr_db": 27.3561309, + "ref_absmax": 10.7744102, + "rel_max": 0.990375559, + "scaled_max_abs": 0.990375559 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5" + }, + "status": "fail", + "tap": "net.pos_embed", + "ungated_probes": { + "band_ratio": 24.7317622, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999998279, + "finite": true, + "max_abs": 0.0095041059, + "mean_abs": 0.00174542845, + "psnr_db": 70.4526401, + "ref_absmax": 3.84287453, + "rel_max": 0.00247317622, + "scaled_max_abs": 0.00247317622 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 10199.7248, + "index": 3, + "metrics": { + "corr": 0.666170522, + "finite": true, + "max_abs": 10.9336102, + "mean_abs": 0.598504006, + "psnr_db": 27.2771682, + "ref_absmax": 10.7195148, + "rel_max": 1.01997248, + "scaled_max_abs": 1.01997248 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_17" + }, + "status": "fail", + "tap": "net.blocks.0", + "ungated_probes": { + "band_ratio": 21.2880387, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999998533, + "finite": true, + "max_abs": 0.00954568386, + "mean_abs": 0.00176069511, + "psnr_db": 71.5486865, + "ref_absmax": 4.48405981, + "rel_max": 0.00212880387, + "scaled_max_abs": 0.00212880387 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 10008.3686, + "index": 4, + "metrics": { + "corr": 0.675291542, + "finite": true, + "max_abs": 11.0128172, + "mean_abs": 0.61757218, + "psnr_db": 27.2624695, + "ref_absmax": 11.0036087, + "rel_max": 1.00083686, + "scaled_max_abs": 1.00083686 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_29" + }, + "status": "fail", + "tap": "net.blocks.1", + "ungated_probes": { + "band_ratio": 20.0565693, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.99999879, + "finite": true, + "max_abs": 0.00944465399, + "mean_abs": 0.00178781149, + "psnr_db": 71.7711934, + "ref_absmax": 4.70900774, + "rel_max": 0.00200565693, + "scaled_max_abs": 0.00200565693 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9769.67448, + "index": 5, + "metrics": { + "corr": 0.678420079, + "finite": true, + "max_abs": 11.086752, + "mean_abs": 0.634823186, + "psnr_db": 27.3640953, + "ref_absmax": 11.3481283, + "rel_max": 0.976967448, + "scaled_max_abs": 0.976967448 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_41" + }, + "status": "fail", + "tap": "net.blocks.2", + "ungated_probes": { + "band_ratio": 19.5361875, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999998954, + "finite": true, + "max_abs": 0.00912761688, + "mean_abs": 0.00180126337, + "psnr_db": 72.0230624, + "ref_absmax": 4.67215872, + "rel_max": 0.00195361875, + "scaled_max_abs": 0.00195361875 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 13900.3059, + "index": 6, + "metrics": { + "corr": 0.589207806, + "finite": true, + "max_abs": 5.71452188, + "mean_abs": 0.646029707, + "psnr_db": 18.7461336, + "ref_absmax": 4.11107635, + "rel_max": 1.39003059, + "scaled_max_abs": 1.39003059 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x" + }, + "status": "fail", + "tap": "net.norm", + "ungated_probes": { + "band_ratio": 22.1217009, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999998979, + "finite": true, + "max_abs": 0.00616717339, + "mean_abs": 0.00114109095, + "psnr_db": 71.5864328, + "ref_absmax": 2.7878387, + "rel_max": 0.00221217009, + "scaled_max_abs": 0.00221217009 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "uniform", + "index": 19 + } + }, + { + "band_ratio": 1966.35049, + "index": 7, + "metrics": { + "corr": 0.987096349, + "finite": true, + "max_abs": 0.397320092, + "mean_abs": 0.05661234, + "psnr_db": 33.8504999, + "ref_absmax": 2.0205965, + "rel_max": 0.196635049, + "scaled_max_abs": 0.196635049 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_1" + }, + "status": "fail", + "tap": "net.pool", + "ungated_probes": { + "band_ratio": 1.61777702, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999992, + "finite": true, + "max_abs": 0.000358462334, + "mean_abs": 9.67475207e-05, + "psnr_db": 91.0550707, + "ref_absmax": 2.21577096, + "rel_max": 0.000161777702, + "scaled_max_abs": 0.000161777702 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "uniform", + "index": 18 + } + }, + { + "band_ratio": 1946.64411, + "index": 8, + "metrics": { + "corr": 0.98346859, + "finite": true, + "max_abs": 0.246458471, + "mean_abs": 0.035900053, + "psnr_db": 31.6908879, + "ref_absmax": 1.26606846, + "rel_max": 0.194664411, + "scaled_max_abs": 0.194664411 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "ungated_probes": { + "band_ratio": 1.26265607, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.99999999, + "finite": true, + "max_abs": 0.00014090538, + "mean_abs": 5.9306249e-05, + "psnr_db": 87.370204, + "ref_absmax": 1.11594427, + "rel_max": 0.000126265607, + "scaled_max_abs": 0.000126265607 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "uniform", + "index": 16 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 878.835451, + "metrics": { + "corr": 0.994711612, + "finite": true, + "max_abs": 0.118161611, + "mean_abs": 0.0236497449, + "psnr_db": 36.8405427, + "ref_absmax": 1.34452486, + "rel_max": 0.0878835451, + "scaled_max_abs": 0.0878835451 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 3 + } + }, + "first_fail_index": 0, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 11112.3355, + "index": 0, + "metrics": { + "corr": 0.634923999, + "finite": true, + "max_abs": 12.811289, + "mean_abs": 0.974299065, + "psnr_db": 19.0432516, + "ref_absmax": 11.5288897, + "rel_max": 1.11123355, + "scaled_max_abs": 1.11123355 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "fail", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 94.3721095, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999598458, + "finite": true, + "max_abs": 0.0199871063, + "mean_abs": 0.00290967977, + "psnr_db": 38.961759, + "ref_absmax": 2.11790395, + "rel_max": 0.00943721095, + "scaled_max_abs": 0.00943721095 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6257.79117, + "index": 1, + "metrics": { + "corr": 0.658932026, + "finite": true, + "max_abs": 7.42867899, + "mean_abs": 0.546688126, + "psnr_db": 28.4624729, + "ref_absmax": 11.871088, + "rel_max": 0.625779117, + "scaled_max_abs": 0.625779117 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_7" + }, + "status": "fail", + "tap": "net.patch_embed", + "ungated_probes": { + "band_ratio": 35.0815764, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999998116, + "finite": true, + "max_abs": 0.00882160664, + "mean_abs": 0.00173391884, + "psnr_db": 67.0001281, + "ref_absmax": 2.51459813, + "rel_max": 0.00350815764, + "scaled_max_abs": 0.00350815764 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6417.93606, + "index": 2, + "metrics": { + "corr": 0.690946014, + "finite": true, + "max_abs": 7.42867947, + "mean_abs": 0.546688126, + "psnr_db": 28.403646, + "ref_absmax": 11.574873, + "rel_max": 0.641793606, + "scaled_max_abs": 0.641793606 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5" + }, + "status": "fail", + "tap": "net.pos_embed", + "ungated_probes": { + "band_ratio": 23.7465498, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999998286, + "finite": true, + "max_abs": 0.00882172585, + "mean_abs": 0.00173391918, + "psnr_db": 70.361646, + "ref_absmax": 3.71495056, + "rel_max": 0.00237465498, + "scaled_max_abs": 0.00237465498 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6265.34871, + "index": 3, + "metrics": { + "corr": 0.700274721, + "finite": true, + "max_abs": 7.45237505, + "mean_abs": 0.562207909, + "psnr_db": 28.5531461, + "ref_absmax": 11.8945894, + "rel_max": 0.626534871, + "scaled_max_abs": 0.626534871 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_17" + }, + "status": "fail", + "tap": "net.blocks.0", + "ungated_probes": { + "band_ratio": 18.8490782, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999998538, + "finite": true, + "max_abs": 0.00846195221, + "mean_abs": 0.00175271372, + "psnr_db": 71.4529131, + "ref_absmax": 4.48931885, + "rel_max": 0.00188490782, + "scaled_max_abs": 0.00188490782 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6113.32809, + "index": 4, + "metrics": { + "corr": 0.710268545, + "finite": true, + "max_abs": 7.42990768, + "mean_abs": 0.579440074, + "psnr_db": 28.5244869, + "ref_absmax": 12.1536217, + "rel_max": 0.611332809, + "scaled_max_abs": 0.611332809 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_29" + }, + "status": "fail", + "tap": "net.blocks.1", + "ungated_probes": { + "band_ratio": 18.4539687, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999998797, + "finite": true, + "max_abs": 0.00869971514, + "mean_abs": 0.00177784251, + "psnr_db": 71.7343024, + "ref_absmax": 4.7142787, + "rel_max": 0.00184539687, + "scaled_max_abs": 0.00184539687 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 5952.65019, + "index": 5, + "metrics": { + "corr": 0.713087031, + "finite": true, + "max_abs": 7.4467746, + "mean_abs": 0.595891872, + "psnr_db": 28.4561451, + "ref_absmax": 12.5100155, + "rel_max": 0.595265019, + "scaled_max_abs": 0.595265019 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_41" + }, + "status": "fail", + "tap": "net.blocks.2", + "ungated_probes": { + "band_ratio": 19.0716874, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999998963, + "finite": true, + "max_abs": 0.00892055035, + "mean_abs": 0.00178982743, + "psnr_db": 71.947577, + "ref_absmax": 4.67737865, + "rel_max": 0.00190716874, + "scaled_max_abs": 0.00190716874 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 12494.4573, + "index": 6, + "metrics": { + "corr": 0.6118879, + "finite": true, + "max_abs": 5.24571943, + "mean_abs": 0.613946268, + "psnr_db": 19.1811782, + "ref_absmax": 4.19843721, + "rel_max": 1.24944573, + "scaled_max_abs": 1.24944573 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x" + }, + "status": "fail", + "tap": "net.norm", + "ungated_probes": { + "band_ratio": 20.7567982, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999998991, + "finite": true, + "max_abs": 0.00567948818, + "mean_abs": 0.00113407328, + "psnr_db": 71.4890871, + "ref_absmax": 2.73620629, + "rel_max": 0.00207567982, + "scaled_max_abs": 0.00207567982 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "uniform", + "index": 19 + } + }, + { + "band_ratio": 1471.13316, + "index": 7, + "metrics": { + "corr": 0.992555511, + "finite": true, + "max_abs": 0.308960818, + "mean_abs": 0.0447307108, + "psnr_db": 35.7795324, + "ref_absmax": 2.10015535, + "rel_max": 0.147113316, + "scaled_max_abs": 0.147113316 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_1" + }, + "status": "fail", + "tap": "net.pool", + "ungated_probes": { + "band_ratio": 1.32474579, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999994, + "finite": true, + "max_abs": 0.000294327736, + "mean_abs": 8.97837745e-05, + "psnr_db": 91.7185148, + "ref_absmax": 2.22176766, + "rel_max": 0.000132474579, + "scaled_max_abs": 0.000132474579 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "uniform", + "index": 19 + } + }, + { + "band_ratio": 878.835451, + "index": 8, + "metrics": { + "corr": 0.991804588, + "finite": true, + "max_abs": 0.118161611, + "mean_abs": 0.0270205075, + "psnr_db": 34.8547857, + "ref_absmax": 1.34452486, + "rel_max": 0.0878835451, + "scaled_max_abs": 0.0878835451 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "ungated_probes": { + "band_ratio": 1.32784254, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999993, + "finite": true, + "max_abs": 0.000148624182, + "mean_abs": 5.4406561e-05, + "psnr_db": 87.8788013, + "ref_absmax": 1.11929071, + "rel_max": 0.000132784254, + "scaled_max_abs": 0.000132784254 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 3 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp32", + "id": "tinyvit__input_hw_swap__coreml_fp32", + "model": "tinyvit", + "path": "coreml", + "variant": "input_hw_swap" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/tinyvit__input_hw_swap__litert_fp16.json b/bench/verdicts_calibrated4/tinyvit__input_hw_swap__litert_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..f11d997e2159e664932d377384e8d6acff024c4e --- /dev/null +++ b/bench/verdicts_calibrated4/tinyvit__input_hw_swap__litert_fp16.json @@ -0,0 +1,921 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "baseline": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "faithful_output_rel_max": 0.000208557898, + "output_band": 0.01, + "source": { + "bundle": "bundles/tinyvit__clean__litert_fp16.json", + "case": "tinyvit__clean__litert_fp16", + "digests": { + "192": { + "converted": "170133fb2c750896c9b9cfaed4c8aab6b2e92dd28e9a0114b604c6d35736d93d", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "e6f67f478f27c5cbe93fb3192583b8c4adeb54f48117f07895a6c68beeb1c827", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + } + } + }, + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "normalize", + "band_limit": 0.01, + "explained_by": "hw_transpose", + "nominal_band_ratio": 169.101721, + "results": [ + { + "band_ratio": 169.101721, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 119.785595, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 210.787917, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 9.03100643e-06, + "explains": true, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 311.790395, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "flag" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 1.65698179e-05, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.23517418e-07, + "mean_abs": 4.31318767e-08, + "psnr_db": 152.531236, + "ref_absmax": 1.34894311, + "rel_max": 1.65698179e-07, + "scaled_max_abs": 1.65698179e-07 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 57, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 1, + "n_ops_total": 187, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "zoo.Source/zoo.Normalize_normalize;5", + "basis": "interface hypothesis 'hw_transpose' explains the first over-band tap (normalize)", + "index": 0, + "neighbourhood": [ + { + "band_ratio": 111.123355, + "index": 0, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;5" + }, + "status": "fail", + "tap": "normalize" + }, + { + "band_ratio": 62.5708502, + "index": 1, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;2" + }, + "status": "fail", + "tap": "net.patch_embed" + } + ], + "observed_first_over_band": { + "index": 0, + "tap": "normalize" + }, + "shape": 224, + "tap": "normalize" + }, + "fp16_floor": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "baseline": { + "bundle": "bundles/tinyvit__clean__litert_fp16.json", + "case": "tinyvit__clean__litert_fp16", + "digests": { + "192": { + "converted": "170133fb2c750896c9b9cfaed4c8aab6b2e92dd28e9a0114b604c6d35736d93d", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "e6f67f478f27c5cbe93fb3192583b8c4adeb54f48117f07895a6c68beeb1c827", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + } + }, + "envelopes_gate": true, + "faithful_output_rel_max": 0.000208557898, + "faithful_tap_rel_max": { + "net.blocks.0": 0.000279738087, + "net.blocks.1": 0.000270794184, + "net.blocks.2": 0.000256599822, + "net.head": 0.000208557898, + "net.norm": 0.000310450195, + "net.patch_embed": 0.000277319462, + "net.pool": 0.000243123856, + "net.pos_embed": 0.000284416403, + "normalize": 8.27203959e-08 + }, + "floor": 0.01, + "k": 2.0, + "output_band": 0.01, + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used", + "tap_envelopes": { + "net.blocks.0": 0.01, + "net.blocks.1": 0.01, + "net.blocks.2": 0.01, + "net.head": 0.01, + "net.norm": 0.01, + "net.patch_embed": 0.01, + "net.pool": 0.01, + "net.pos_embed": 0.01, + "normalize": 0.01 + } + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "d9c6fa4b0aab9e29052341026dfacc882e51edf14c668fbc052420422201f471", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "31e5af4f06885f01fbff39ffec66fde44017b99a7e1c8520e10b59b86180a3d5", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D3", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.9375, + "band_limit": 0.01, + "band_ratio": 19.4631127, + "metrics": { + "corr": 0.989456983, + "finite": true, + "max_abs": 0.24641633, + "mean_abs": 0.0314363235, + "psnr_db": 33.7624437, + "ref_absmax": 1.26606846, + "rel_max": 0.194631127, + "scaled_max_abs": 0.194631127 + }, + "per_op_band_ratio": 19.4631127, + "status": "fail", + "worst_probe": { + "category": "uniform", + "index": 16 + } + }, + "first_fail_index": 0, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 116.167792, + "index": 0, + "metrics": { + "corr": 0.675680702, + "finite": true, + "max_abs": 13.3928566, + "mean_abs": 0.899941872, + "psnr_db": 19.0470658, + "ref_absmax": 11.5288897, + "rel_max": 1.16167792, + "scaled_max_abs": 1.16167792 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;5" + }, + "per_op_band_ratio": 116.167792, + "status": "fail", + "tap": "normalize", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 98.8403966, + "index": 1, + "metrics": { + "corr": 0.673041427, + "finite": true, + "max_abs": 10.670837, + "mean_abs": 0.509631363, + "psnr_db": 28.0168904, + "ref_absmax": 10.7960281, + "rel_max": 0.988403966, + "scaled_max_abs": 0.988403966 + }, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;2" + }, + "per_op_band_ratio": 98.8403966, + "status": "fail", + "tap": "net.patch_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 99.0387081, + "index": 2, + "metrics": { + "corr": 0.707078036, + "finite": true, + "max_abs": 10.6708367, + "mean_abs": 0.509631363, + "psnr_db": 27.9360517, + "ref_absmax": 10.7744102, + "rel_max": 0.990387081, + "scaled_max_abs": 0.990387081 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;3" + }, + "per_op_band_ratio": 99.0387081, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 101.998897, + "index": 3, + "metrics": { + "corr": 0.718141871, + "finite": true, + "max_abs": 10.9337869, + "mean_abs": 0.523940769, + "psnr_db": 27.8570899, + "ref_absmax": 10.7195148, + "rel_max": 1.01998897, + "scaled_max_abs": 1.01998897 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "per_op_band_ratio": 101.998897, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 100.085968, + "index": 4, + "metrics": { + "corr": 0.73263714, + "finite": true, + "max_abs": 11.0130683, + "mean_abs": 0.540630471, + "psnr_db": 27.8423957, + "ref_absmax": 11.0036087, + "rel_max": 1.00085968, + "scaled_max_abs": 1.00085968 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "per_op_band_ratio": 100.085968, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 97.7004704, + "index": 5, + "metrics": { + "corr": 0.740447704, + "finite": true, + "max_abs": 11.0871747, + "mean_abs": 0.555727691, + "psnr_db": 27.9440194, + "ref_absmax": 11.3481283, + "rel_max": 0.977004704, + "scaled_max_abs": 0.977004704 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "per_op_band_ratio": 97.7004704, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 139.002322, + "index": 6, + "metrics": { + "corr": 0.640558142, + "finite": true, + "max_abs": 5.71449161, + "mean_abs": 0.565443024, + "psnr_db": 19.3260634, + "ref_absmax": 4.11107635, + "rel_max": 1.39002322, + "scaled_max_abs": 1.39002322 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "per_op_band_ratio": 139.002322, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "uniform", + "index": 19 + } + }, + { + "band_limit": 0.01, + "band_ratio": 17.9318182, + "index": 7, + "metrics": { + "corr": 0.991643452, + "finite": true, + "max_abs": 0.397328019, + "mean_abs": 0.0495692742, + "psnr_db": 35.1245546, + "ref_absmax": 2.21577096, + "rel_max": 0.179318182, + "scaled_max_abs": 0.179318182 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "per_op_band_ratio": 17.9318182, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "uniform", + "index": 18 + } + }, + { + "band_limit": 0.01, + "band_ratio": 19.4631127, + "index": 8, + "metrics": { + "corr": 0.989456983, + "finite": true, + "max_abs": 0.24641633, + "mean_abs": 0.0314363235, + "psnr_db": 33.7624437, + "ref_absmax": 1.26606846, + "rel_max": 0.194631127, + "scaled_max_abs": 0.194631127 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "per_op_band_ratio": 19.4631127, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "uniform", + "index": 16 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_limit": 0.01, + "band_ratio": 8.79266186, + "metrics": { + "corr": 0.994712435, + "finite": true, + "max_abs": 0.118219525, + "mean_abs": 0.0236546583, + "psnr_db": 36.8409964, + "ref_absmax": 1.34452486, + "rel_max": 0.0879266186, + "scaled_max_abs": 0.0879266186 + }, + "per_op_band_ratio": 8.79266186, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 3 + } + }, + "first_fail_index": 0, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 111.123355, + "index": 0, + "metrics": { + "corr": 0.709006651, + "finite": true, + "max_abs": 12.811289, + "mean_abs": 0.852875392, + "psnr_db": 19.6231673, + "ref_absmax": 11.5288897, + "rel_max": 1.11123355, + "scaled_max_abs": 1.11123355 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;5" + }, + "per_op_band_ratio": 111.123355, + "status": "fail", + "tap": "normalize", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 62.5708502, + "index": 1, + "metrics": { + "corr": 0.707336285, + "finite": true, + "max_abs": 7.42784071, + "mean_abs": 0.47860028, + "psnr_db": 29.0423811, + "ref_absmax": 11.871088, + "rel_max": 0.625708502, + "scaled_max_abs": 0.625708502 + }, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;2" + }, + "per_op_band_ratio": 62.5708502, + "status": "fail", + "tap": "net.patch_embed", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 64.1721184, + "index": 2, + "metrics": { + "corr": 0.734637401, + "finite": true, + "max_abs": 7.42784119, + "mean_abs": 0.47860028, + "psnr_db": 28.9835543, + "ref_absmax": 11.574873, + "rel_max": 0.641721184, + "scaled_max_abs": 0.641721184 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;3" + }, + "per_op_band_ratio": 64.1721184, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 62.6451728, + "index": 3, + "metrics": { + "corr": 0.746978307, + "finite": true, + "max_abs": 7.45138609, + "mean_abs": 0.492180445, + "psnr_db": 29.133057, + "ref_absmax": 11.8945894, + "rel_max": 0.626451728, + "scaled_max_abs": 0.626451728 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "per_op_band_ratio": 62.6451728, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 61.1306522, + "index": 4, + "metrics": { + "corr": 0.761299386, + "finite": true, + "max_abs": 7.4295882, + "mean_abs": 0.507263246, + "psnr_db": 29.1043972, + "ref_absmax": 12.1536217, + "rel_max": 0.611306522, + "scaled_max_abs": 0.611306522 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "per_op_band_ratio": 61.1306522, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 59.5223052, + "index": 5, + "metrics": { + "corr": 0.768290483, + "finite": true, + "max_abs": 7.4462496, + "mean_abs": 0.521661402, + "psnr_db": 29.0360564, + "ref_absmax": 12.5100155, + "rel_max": 0.595223052, + "scaled_max_abs": 0.595223052 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "per_op_band_ratio": 59.5223052, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 124.9366, + "index": 6, + "metrics": { + "corr": 0.660403186, + "finite": true, + "max_abs": 5.24538469, + "mean_abs": 0.537368281, + "psnr_db": 19.7611086, + "ref_absmax": 4.19843721, + "rel_max": 1.249366, + "scaled_max_abs": 1.249366 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "per_op_band_ratio": 124.9366, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "uniform", + "index": 19 + } + }, + { + "band_limit": 0.01, + "band_ratio": 13.9045323, + "index": 7, + "metrics": { + "corr": 0.994932185, + "finite": true, + "max_abs": 0.308926402, + "mean_abs": 0.0391640611, + "psnr_db": 36.8682301, + "ref_absmax": 2.22176766, + "rel_max": 0.139045323, + "scaled_max_abs": 0.139045323 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "per_op_band_ratio": 13.9045323, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "uniform", + "index": 19 + } + }, + { + "band_limit": 0.01, + "band_ratio": 8.79266186, + "index": 8, + "metrics": { + "corr": 0.994712435, + "finite": true, + "max_abs": 0.118219525, + "mean_abs": 0.0236546583, + "psnr_db": 36.8409964, + "ref_absmax": 1.34452486, + "rel_max": 0.0879266186, + "scaled_max_abs": 0.0879266186 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "per_op_band_ratio": 8.79266186, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "natural", + "index": 3 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp16", + "id": "tinyvit__input_hw_swap__litert_fp16", + "model": "tinyvit", + "path": "litert", + "variant": "input_hw_swap" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/tinyvit__input_hw_swap__litert_fp32.json b/bench/verdicts_calibrated4/tinyvit__input_hw_swap__litert_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..008cebe69169b59a3c351ba4160be4d9547edb00 --- /dev/null +++ b/bench/verdicts_calibrated4/tinyvit__input_hw_swap__litert_fp32.json @@ -0,0 +1,1129 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "normalize", + "explained_by": "hw_transpose", + "nominal_band_ratio": 16910.1721, + "results": [ + { + "band_ratio": 16910.1721, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 11978.5595, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 21078.7917, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 0.000903100643, + "explains": true, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 31179.0395, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "flag" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 0.00176751566, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.38418579e-07, + "mean_abs": 4.19036951e-08, + "psnr_db": 152.976028, + "ref_absmax": 1.3488909, + "rel_max": 1.76751566e-07, + "scaled_max_abs": 1.76751566e-07 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 57, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 1, + "n_ops_total": 173, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "zoo.Source/zoo.Normalize_normalize;5", + "basis": "interface hypothesis 'hw_transpose' explains the first over-band tap (normalize)", + "index": 0, + "neighbourhood": [ + { + "band_ratio": 11112.3355, + "index": 0, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;5" + }, + "status": "fail", + "tap": "normalize" + }, + { + "band_ratio": 6257.79519, + "index": 1, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;2" + }, + "status": "fail", + "tap": "net.patch_embed" + } + ], + "observed_first_over_band": { + "index": 0, + "tap": "normalize" + }, + "shape": 224, + "tap": "normalize" + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "338ba9bba8c3f4fdf18b78efaab12c173d55b3b785ad28af0e5a427d40c8217b", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "0727b9ca817f94df3f3ad5a37d2233a33aa70b2500d4b9002b4075daf81dc3e7", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "fp32 per-tap band on near-zero probes", + "reason": "C3-2: per-tap fp32 checks gate without the near_zero probes; they are measured and reported per tap ('ungated_probes'); the output gates on all probes. C4-1: when the output has failed and no gated tap fails, they localise the first divergence (earliest tap over band on all probes)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D3", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.9375, + "band_ratio": 1946.64364, + "metrics": { + "corr": 0.989459682, + "finite": true, + "max_abs": 0.246458411, + "mean_abs": 0.031419965, + "psnr_db": 33.7637007, + "ref_absmax": 1.26606846, + "rel_max": 0.194664364, + "scaled_max_abs": 0.194664364 + }, + "status": "fail", + "worst_probe": { + "category": "uniform", + "index": 16 + } + }, + "first_fail_index": 0, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 11616.7792, + "index": 0, + "metrics": { + "corr": 0.600839339, + "finite": true, + "max_abs": 13.3928566, + "mean_abs": 1.02808959, + "psnr_db": 18.4671497, + "ref_absmax": 11.5288897, + "rel_max": 1.16167792, + "scaled_max_abs": 1.16167792 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;5" + }, + "status": "fail", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 96.5222518, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999598821, + "finite": true, + "max_abs": 0.0204424858, + "mean_abs": 0.002907845, + "psnr_db": 38.9218202, + "ref_absmax": 2.11790395, + "rel_max": 0.00965222518, + "scaled_max_abs": 0.00965222518 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9883.92476, + "index": 1, + "metrics": { + "corr": 0.619344962, + "finite": true, + "max_abs": 10.670713, + "mean_abs": 0.582154198, + "psnr_db": 27.4369696, + "ref_absmax": 10.7960281, + "rel_max": 0.988392476, + "scaled_max_abs": 0.988392476 + }, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;2" + }, + "status": "fail", + "tap": "net.patch_embed", + "ungated_probes": { + "band_ratio": 37.8087232, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999998089, + "finite": true, + "max_abs": 0.00950343162, + "mean_abs": 0.00174542946, + "psnr_db": 66.9339894, + "ref_absmax": 2.51355529, + "rel_max": 0.00378087232, + "scaled_max_abs": 0.00378087232 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9903.75568, + "index": 2, + "metrics": { + "corr": 0.659275649, + "finite": true, + "max_abs": 10.6707127, + "mean_abs": 0.582154198, + "psnr_db": 27.3561309, + "ref_absmax": 10.7744102, + "rel_max": 0.990375568, + "scaled_max_abs": 0.990375568 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;3" + }, + "status": "fail", + "tap": "net.pos_embed", + "ungated_probes": { + "band_ratio": 24.7300124, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999998279, + "finite": true, + "max_abs": 0.00950343348, + "mean_abs": 0.00174542985, + "psnr_db": 70.4526314, + "ref_absmax": 3.84287453, + "rel_max": 0.00247300124, + "scaled_max_abs": 0.00247300124 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 10199.725, + "index": 3, + "metrics": { + "corr": 0.66617052, + "finite": true, + "max_abs": 10.9336104, + "mean_abs": 0.59850405, + "psnr_db": 27.2771681, + "ref_absmax": 10.7195148, + "rel_max": 1.0199725, + "scaled_max_abs": 1.0199725 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.0", + "ungated_probes": { + "band_ratio": 21.2869753, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999998533, + "finite": true, + "max_abs": 0.00954520702, + "mean_abs": 0.00176069568, + "psnr_db": 71.54868, + "ref_absmax": 4.48405981, + "rel_max": 0.00212869753, + "scaled_max_abs": 0.00212869753 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 10008.3687, + "index": 4, + "metrics": { + "corr": 0.675291541, + "finite": true, + "max_abs": 11.0128173, + "mean_abs": 0.617572221, + "psnr_db": 27.2624694, + "ref_absmax": 11.0036087, + "rel_max": 1.00083687, + "scaled_max_abs": 1.00083687 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.1", + "ungated_probes": { + "band_ratio": 20.0556832, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.99999879, + "finite": true, + "max_abs": 0.00944423676, + "mean_abs": 0.00178781113, + "psnr_db": 71.7711875, + "ref_absmax": 4.70900774, + "rel_max": 0.00200556832, + "scaled_max_abs": 0.00200556832 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9769.67462, + "index": 5, + "metrics": { + "corr": 0.678420078, + "finite": true, + "max_abs": 11.0867521, + "mean_abs": 0.634823226, + "psnr_db": 27.3640953, + "ref_absmax": 11.3481283, + "rel_max": 0.976967462, + "scaled_max_abs": 0.976967462 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.2", + "ungated_probes": { + "band_ratio": 19.5372081, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999998954, + "finite": true, + "max_abs": 0.00912809372, + "mean_abs": 0.00180126322, + "psnr_db": 72.0230605, + "ref_absmax": 4.67215872, + "rel_max": 0.00195372081, + "scaled_max_abs": 0.00195372081 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 13900.3059, + "index": 6, + "metrics": { + "corr": 0.589207805, + "finite": true, + "max_abs": 5.71452188, + "mean_abs": 0.646029737, + "psnr_db": 18.7461335, + "ref_absmax": 4.11107635, + "rel_max": 1.39003059, + "scaled_max_abs": 1.39003059 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "status": "fail", + "tap": "net.norm", + "ungated_probes": { + "band_ratio": 22.1199905, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999998979, + "finite": true, + "max_abs": 0.00616669655, + "mean_abs": 0.0011410901, + "psnr_db": 71.586429, + "ref_absmax": 2.7878387, + "rel_max": 0.00221199905, + "scaled_max_abs": 0.00221199905 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "uniform", + "index": 19 + } + }, + { + "band_ratio": 1966.34931, + "index": 7, + "metrics": { + "corr": 0.98709635, + "finite": true, + "max_abs": 0.397319853, + "mean_abs": 0.0566123455, + "psnr_db": 33.8505003, + "ref_absmax": 2.0205965, + "rel_max": 0.196634931, + "scaled_max_abs": 0.196634931 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "status": "fail", + "tap": "net.pool", + "ungated_probes": { + "band_ratio": 1.61723901, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999992, + "finite": true, + "max_abs": 0.000358343124, + "mean_abs": 9.67509113e-05, + "psnr_db": 91.0552122, + "ref_absmax": 2.21577096, + "rel_max": 0.000161723901, + "scaled_max_abs": 0.000161723901 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "uniform", + "index": 18 + } + }, + { + "band_ratio": 1946.64364, + "index": 8, + "metrics": { + "corr": 0.983468595, + "finite": true, + "max_abs": 0.246458411, + "mean_abs": 0.0359000573, + "psnr_db": 31.6908893, + "ref_absmax": 1.26606846, + "rel_max": 0.194664364, + "scaled_max_abs": 0.194664364 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.head", + "ungated_probes": { + "band_ratio": 1.26265607, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.99999999, + "finite": true, + "max_abs": 0.00014090538, + "mean_abs": 5.93187287e-05, + "psnr_db": 87.3710823, + "ref_absmax": 1.11594427, + "rel_max": 0.000126265607, + "scaled_max_abs": 0.000126265607 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "uniform", + "index": 16 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 878.836116, + "metrics": { + "corr": 0.994711613, + "finite": true, + "max_abs": 0.118161701, + "mean_abs": 0.0236497461, + "psnr_db": 36.8405431, + "ref_absmax": 1.34452486, + "rel_max": 0.0878836116, + "scaled_max_abs": 0.0878836116 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 3 + } + }, + "first_fail_index": 0, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 11112.3355, + "index": 0, + "metrics": { + "corr": 0.634923999, + "finite": true, + "max_abs": 12.811289, + "mean_abs": 0.974299065, + "psnr_db": 19.0432516, + "ref_absmax": 11.5288897, + "rel_max": 1.11123355, + "scaled_max_abs": 1.11123355 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;5" + }, + "status": "fail", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 94.3721095, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999598458, + "finite": true, + "max_abs": 0.0199871063, + "mean_abs": 0.00290967977, + "psnr_db": 38.961759, + "ref_absmax": 2.11790395, + "rel_max": 0.00943721095, + "scaled_max_abs": 0.00943721095 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6257.79519, + "index": 1, + "metrics": { + "corr": 0.658932026, + "finite": true, + "max_abs": 7.42868376, + "mean_abs": 0.546688185, + "psnr_db": 28.4624728, + "ref_absmax": 11.871088, + "rel_max": 0.625779519, + "scaled_max_abs": 0.625779519 + }, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;2" + }, + "status": "fail", + "tap": "net.patch_embed", + "ungated_probes": { + "band_ratio": 35.0820504, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999998116, + "finite": true, + "max_abs": 0.00882172585, + "mean_abs": 0.00173391796, + "psnr_db": 67.0001324, + "ref_absmax": 2.51459813, + "rel_max": 0.00350820504, + "scaled_max_abs": 0.00350820504 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6417.94018, + "index": 2, + "metrics": { + "corr": 0.690946013, + "finite": true, + "max_abs": 7.42868423, + "mean_abs": 0.546688185, + "psnr_db": 28.403646, + "ref_absmax": 11.574873, + "rel_max": 0.641794018, + "scaled_max_abs": 0.641794018 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;3" + }, + "status": "fail", + "tap": "net.pos_embed", + "ungated_probes": { + "band_ratio": 23.7465498, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999998286, + "finite": true, + "max_abs": 0.00882172585, + "mean_abs": 0.00173391808, + "psnr_db": 70.3616508, + "ref_absmax": 3.71495056, + "rel_max": 0.00237465498, + "scaled_max_abs": 0.00237465498 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6265.35272, + "index": 3, + "metrics": { + "corr": 0.70027472, + "finite": true, + "max_abs": 7.45237982, + "mean_abs": 0.562207953, + "psnr_db": 28.553146, + "ref_absmax": 11.8945894, + "rel_max": 0.626535272, + "scaled_max_abs": 0.626535272 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.0", + "ungated_probes": { + "band_ratio": 18.8448296, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999998538, + "finite": true, + "max_abs": 0.00846004486, + "mean_abs": 0.00175271203, + "psnr_db": 71.4529174, + "ref_absmax": 4.48931885, + "rel_max": 0.00188448296, + "scaled_max_abs": 0.00188448296 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6113.32535, + "index": 4, + "metrics": { + "corr": 0.710268544, + "finite": true, + "max_abs": 7.42990434, + "mean_abs": 0.579440113, + "psnr_db": 28.5244869, + "ref_absmax": 12.1536217, + "rel_max": 0.611332535, + "scaled_max_abs": 0.611332535 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.1", + "ungated_probes": { + "band_ratio": 18.4525147, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999998797, + "finite": true, + "max_abs": 0.00869902968, + "mean_abs": 0.00177784214, + "psnr_db": 71.7342971, + "ref_absmax": 4.7142787, + "rel_max": 0.00184525147, + "scaled_max_abs": 0.00184525147 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 5952.64714, + "index": 5, + "metrics": { + "corr": 0.713087031, + "finite": true, + "max_abs": 7.44677079, + "mean_abs": 0.59589191, + "psnr_db": 28.456145, + "ref_absmax": 12.5100155, + "rel_max": 0.595264714, + "scaled_max_abs": 0.595264714 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.2", + "ungated_probes": { + "band_ratio": 19.072452, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999998963, + "finite": true, + "max_abs": 0.00892090797, + "mean_abs": 0.00178982716, + "psnr_db": 71.9475736, + "ref_absmax": 4.67737865, + "rel_max": 0.0019072452, + "scaled_max_abs": 0.0019072452 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 12494.459, + "index": 6, + "metrics": { + "corr": 0.6118879, + "finite": true, + "max_abs": 5.24572015, + "mean_abs": 0.613946295, + "psnr_db": 19.1811781, + "ref_absmax": 4.19843721, + "rel_max": 1.2494459, + "scaled_max_abs": 1.2494459 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "status": "fail", + "tap": "net.norm", + "ungated_probes": { + "band_ratio": 20.7515701, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999998991, + "finite": true, + "max_abs": 0.00567805767, + "mean_abs": 0.0011340726, + "psnr_db": 71.4890842, + "ref_absmax": 2.73620629, + "rel_max": 0.00207515701, + "scaled_max_abs": 0.00207515701 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "uniform", + "index": 19 + } + }, + { + "band_ratio": 1471.13329, + "index": 7, + "metrics": { + "corr": 0.99255551, + "finite": true, + "max_abs": 0.308960846, + "mean_abs": 0.0447307145, + "psnr_db": 35.7795318, + "ref_absmax": 2.10015535, + "rel_max": 0.147113329, + "scaled_max_abs": 0.147113329 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "status": "fail", + "tap": "net.pool", + "ungated_probes": { + "band_ratio": 1.32447751, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999994, + "finite": true, + "max_abs": 0.000294268131, + "mean_abs": 8.97857826e-05, + "psnr_db": 91.7181973, + "ref_absmax": 2.22176766, + "rel_max": 0.000132447751, + "scaled_max_abs": 0.000132447751 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "uniform", + "index": 19 + } + }, + { + "band_ratio": 878.836116, + "index": 8, + "metrics": { + "corr": 0.991804589, + "finite": true, + "max_abs": 0.118161701, + "mean_abs": 0.0270205073, + "psnr_db": 34.8547861, + "ref_absmax": 1.34452486, + "rel_max": 0.0878836116, + "scaled_max_abs": 0.0878836116 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.head", + "ungated_probes": { + "band_ratio": 1.32731002, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999993, + "finite": true, + "max_abs": 0.000148564577, + "mean_abs": 5.44181094e-05, + "psnr_db": 87.8782779, + "ref_absmax": 1.11929071, + "rel_max": 0.000132731002, + "scaled_max_abs": 0.000132731002 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 3 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp32", + "id": "tinyvit__input_hw_swap__litert_fp32", + "model": "tinyvit", + "path": "litert", + "variant": "input_hw_swap" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/tinyvit__input_hw_swap__onnx_fp16.json b/bench/verdicts_calibrated4/tinyvit__input_hw_swap__onnx_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..992df6813c6e65a8b481bad6653948918d87c75d --- /dev/null +++ b/bench/verdicts_calibrated4/tinyvit__input_hw_swap__onnx_fp16.json @@ -0,0 +1,887 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "baseline": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "faithful_output_rel_max": 0.000456508758, + "output_band": 0.01, + "source": { + "bundle": "bundles/tinyvit__clean__onnx_fp16.json", + "case": "tinyvit__clean__onnx_fp16", + "digests": { + "192": { + "converted": "256af465b0649a975fd83c261b17d7830bd11a36abe6723c11a591e4649ad014", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "4e990e5a6766e80eea68d854f1db627a391a6a25b03b20781b4f30f0c5c65cf1", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + } + } + }, + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "normalize", + "band_limit": 0.01, + "explained_by": "hw_transpose", + "nominal_band_ratio": 169.080588, + "results": [ + { + "band_ratio": 169.080588, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 119.778016, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 210.748392, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 0.0933896374, + "explains": true, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 311.914062, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "flag" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "/normalize/Div_output_0", + "basis": "interface hypothesis 'hw_transpose' explains the first over-band tap (normalize)", + "index": 0, + "neighbourhood": [ + { + "band_ratio": 111.131751, + "index": 0, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "fail", + "tap": "normalize" + }, + { + "band_ratio": 62.5860337, + "index": 1, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "status": "fail", + "tap": "net.patch_embed" + } + ], + "observed_first_over_band": { + "index": 0, + "tap": "normalize" + }, + "shape": 224, + "tap": "normalize" + }, + "fp16_floor": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "baseline": { + "bundle": "bundles/tinyvit__clean__onnx_fp16.json", + "case": "tinyvit__clean__onnx_fp16", + "digests": { + "192": { + "converted": "256af465b0649a975fd83c261b17d7830bd11a36abe6723c11a591e4649ad014", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "4e990e5a6766e80eea68d854f1db627a391a6a25b03b20781b4f30f0c5c65cf1", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + } + }, + "envelopes_gate": true, + "faithful_output_rel_max": 0.000456508758, + "faithful_tap_rel_max": { + "net.blocks.0": 0.000642335839, + "net.blocks.1": 0.000711207718, + "net.blocks.2": 0.000762561059, + "net.head": 0.000463029134, + "net.norm": 0.000851897059, + "net.patch_embed": 0.000469161546, + "net.pool": 0.00079208262, + "net.pos_embed": 0.0007491884, + "normalize": 0.000441313312 + }, + "floor": 0.01, + "k": 2.0, + "output_band": 0.01, + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used", + "tap_envelopes": { + "net.blocks.0": 0.01, + "net.blocks.1": 0.01, + "net.blocks.2": 0.01, + "net.head": 0.01, + "net.norm": 0.01, + "net.patch_embed": 0.01, + "net.pool": 0.01, + "net.pos_embed": 0.01, + "normalize": 0.01 + } + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "752c6d18fe452e3d499f0a9ea0ecb6eb2ecacdc1138aea917e2e8fae6af8a3cb", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "625ee85611b0109e6bf0481cdb24a946c7502771de85eaf075735b15aeb0bfc4", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 4.54038382e-05, + "224": 3.77893448e-05 + }, + "primary_class": "D3", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.9375, + "band_limit": 0.01, + "band_ratio": 19.4695259, + "metrics": { + "corr": 0.989455209, + "finite": true, + "max_abs": 0.246497527, + "mean_abs": 0.0314421877, + "psnr_db": 33.7620475, + "ref_absmax": 1.26606846, + "rel_max": 0.194695259, + "scaled_max_abs": 0.194695259 + }, + "per_op_band_ratio": 19.4695259, + "status": "fail", + "worst_probe": { + "category": "uniform", + "index": 16 + } + }, + "first_fail_index": 0, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 116.187157, + "index": 0, + "metrics": { + "corr": 0.675686237, + "finite": true, + "max_abs": 13.3950891, + "mean_abs": 0.900044108, + "psnr_db": 19.0469554, + "ref_absmax": 11.5288897, + "rel_max": 1.16187157, + "scaled_max_abs": 1.16187157 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "per_op_band_ratio": 116.187157, + "status": "fail", + "tap": "normalize", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 98.8448699, + "index": 1, + "metrics": { + "corr": 0.673040583, + "finite": true, + "max_abs": 10.67132, + "mean_abs": 0.509654477, + "psnr_db": 28.016739, + "ref_absmax": 10.7960281, + "rel_max": 0.988448699, + "scaled_max_abs": 0.988448699 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "per_op_band_ratio": 98.8448699, + "status": "fail", + "tap": "net.patch_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 99.0426445, + "index": 2, + "metrics": { + "corr": 0.707076116, + "finite": true, + "max_abs": 10.6712608, + "mean_abs": 0.509662346, + "psnr_db": 27.9359125, + "ref_absmax": 10.7744102, + "rel_max": 0.990426445, + "scaled_max_abs": 0.990426445 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "per_op_band_ratio": 99.0426445, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 102.000814, + "index": 3, + "metrics": { + "corr": 0.718139999, + "finite": true, + "max_abs": 10.9339924, + "mean_abs": 0.523971644, + "psnr_db": 27.8569593, + "ref_absmax": 10.7195148, + "rel_max": 1.02000814, + "scaled_max_abs": 1.02000814 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "per_op_band_ratio": 102.000814, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 100.089122, + "index": 4, + "metrics": { + "corr": 0.73263449, + "finite": true, + "max_abs": 11.0134153, + "mean_abs": 0.540664388, + "psnr_db": 27.842251, + "ref_absmax": 11.0036087, + "rel_max": 1.00089122, + "scaled_max_abs": 1.00089122 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0" + }, + "per_op_band_ratio": 100.089122, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 97.7028205, + "index": 5, + "metrics": { + "corr": 0.740445492, + "finite": true, + "max_abs": 11.0874414, + "mean_abs": 0.555765541, + "psnr_db": 27.9438754, + "ref_absmax": 11.3481283, + "rel_max": 0.977028205, + "scaled_max_abs": 0.977028205 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0" + }, + "per_op_band_ratio": 97.7028205, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 138.970634, + "index": 6, + "metrics": { + "corr": 0.640555365, + "finite": true, + "max_abs": 5.71318889, + "mean_abs": 0.565472239, + "psnr_db": 19.3260309, + "ref_absmax": 4.11107635, + "rel_max": 1.38970634, + "scaled_max_abs": 1.38970634 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "per_op_band_ratio": 138.970634, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "uniform", + "index": 19 + } + }, + { + "band_limit": 0.01, + "band_ratio": 17.9223896, + "index": 7, + "metrics": { + "corr": 0.991645662, + "finite": true, + "max_abs": 0.397119105, + "mean_abs": 0.0495836776, + "psnr_db": 35.1256463, + "ref_absmax": 2.21577096, + "rel_max": 0.179223896, + "scaled_max_abs": 0.179223896 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/ReduceMean_output_0" + }, + "per_op_band_ratio": 17.9223896, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "uniform", + "index": 18 + } + }, + { + "band_limit": 0.01, + "band_ratio": 19.4692623, + "index": 8, + "metrics": { + "corr": 0.989455767, + "finite": true, + "max_abs": 0.246494189, + "mean_abs": 0.0314421588, + "psnr_db": 33.762273, + "ref_absmax": 1.26606846, + "rel_max": 0.194692623, + "scaled_max_abs": 0.194692623 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "per_op_band_ratio": 19.4692623, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "uniform", + "index": 16 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_limit": 0.01, + "band_ratio": 8.77254982, + "metrics": { + "corr": 0.994718235, + "finite": true, + "max_abs": 0.117949113, + "mean_abs": 0.0236518963, + "psnr_db": 36.8455495, + "ref_absmax": 1.34452486, + "rel_max": 0.0877254982, + "scaled_max_abs": 0.0877254982 + }, + "per_op_band_ratio": 8.77254982, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 3 + } + }, + "first_fail_index": 0, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 111.131751, + "index": 0, + "metrics": { + "corr": 0.709012436, + "finite": true, + "max_abs": 12.8122569, + "mean_abs": 0.852976692, + "psnr_db": 19.6230811, + "ref_absmax": 11.5288897, + "rel_max": 1.11131751, + "scaled_max_abs": 1.11131751 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "per_op_band_ratio": 111.131751, + "status": "fail", + "tap": "normalize", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 62.5860337, + "index": 1, + "metrics": { + "corr": 0.707333617, + "finite": true, + "max_abs": 7.42964315, + "mean_abs": 0.478624175, + "psnr_db": 29.0422383, + "ref_absmax": 11.871088, + "rel_max": 0.625860337, + "scaled_max_abs": 0.625860337 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "per_op_band_ratio": 62.5860337, + "status": "fail", + "tap": "net.patch_embed", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 64.2101175, + "index": 2, + "metrics": { + "corr": 0.734634691, + "finite": true, + "max_abs": 7.43223953, + "mean_abs": 0.478634595, + "psnr_db": 28.9834112, + "ref_absmax": 11.574873, + "rel_max": 0.642101175, + "scaled_max_abs": 0.642101175 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "per_op_band_ratio": 64.2101175, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 62.6756401, + "index": 3, + "metrics": { + "corr": 0.746974125, + "finite": true, + "max_abs": 7.45501006, + "mean_abs": 0.492212457, + "psnr_db": 29.1329189, + "ref_absmax": 11.8945894, + "rel_max": 0.626756401, + "scaled_max_abs": 0.626756401 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "per_op_band_ratio": 62.6756401, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 61.110839, + "index": 4, + "metrics": { + "corr": 0.76129488, + "finite": true, + "max_abs": 7.42718017, + "mean_abs": 0.50729758, + "psnr_db": 29.1042408, + "ref_absmax": 12.1536217, + "rel_max": 0.61110839, + "scaled_max_abs": 0.61110839 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0" + }, + "per_op_band_ratio": 61.110839, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 59.5163819, + "index": 5, + "metrics": { + "corr": 0.768286511, + "finite": true, + "max_abs": 7.4455086, + "mean_abs": 0.52169743, + "psnr_db": 29.0359099, + "ref_absmax": 12.5100155, + "rel_max": 0.595163819, + "scaled_max_abs": 0.595163819 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0" + }, + "per_op_band_ratio": 59.5163819, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 124.927428, + "index": 6, + "metrics": { + "corr": 0.660392227, + "finite": true, + "max_abs": 5.24499965, + "mean_abs": 0.537403863, + "psnr_db": 19.7609689, + "ref_absmax": 4.19843721, + "rel_max": 1.24927428, + "scaled_max_abs": 1.24927428 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "per_op_band_ratio": 124.927428, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "uniform", + "index": 19 + } + }, + { + "band_limit": 0.01, + "band_ratio": 13.8998174, + "index": 7, + "metrics": { + "corr": 0.994933468, + "finite": true, + "max_abs": 0.308821648, + "mean_abs": 0.0391783898, + "psnr_db": 36.8695941, + "ref_absmax": 2.22176766, + "rel_max": 0.138998174, + "scaled_max_abs": 0.138998174 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/ReduceMean_output_0" + }, + "per_op_band_ratio": 13.8998174, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "uniform", + "index": 19 + } + }, + { + "band_limit": 0.01, + "band_ratio": 8.77342093, + "index": 8, + "metrics": { + "corr": 0.994718062, + "finite": true, + "max_abs": 0.117960826, + "mean_abs": 0.0236512218, + "psnr_db": 36.8454306, + "ref_absmax": 1.34452486, + "rel_max": 0.0877342093, + "scaled_max_abs": 0.0877342093 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "per_op_band_ratio": 8.77342093, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "natural", + "index": 3 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp16", + "id": "tinyvit__input_hw_swap__onnx_fp16", + "model": "tinyvit", + "path": "onnx", + "variant": "input_hw_swap" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/tinyvit__input_hw_swap__onnx_fp32.json b/bench/verdicts_calibrated4/tinyvit__input_hw_swap__onnx_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..ab5ff100c61621f830258eb524ba401cadbdb8bc --- /dev/null +++ b/bench/verdicts_calibrated4/tinyvit__input_hw_swap__onnx_fp32.json @@ -0,0 +1,1094 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "normalize", + "explained_by": "hw_transpose", + "nominal_band_ratio": 16910.1721, + "results": [ + { + "band_ratio": 16910.1721, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 11978.5595, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 21078.7917, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 0.0, + "explains": true, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 31179.0395, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "flag" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "/normalize/Div_output_0", + "basis": "interface hypothesis 'hw_transpose' explains the first over-band tap (normalize)", + "index": 0, + "neighbourhood": [ + { + "band_ratio": 11112.3355, + "index": 0, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "fail", + "tap": "normalize" + }, + { + "band_ratio": 6257.79037, + "index": 1, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "status": "fail", + "tap": "net.patch_embed" + } + ], + "observed_first_over_band": { + "index": 0, + "tap": "normalize" + }, + "shape": 224, + "tap": "normalize" + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "b88fbeb7e5ccfc3a68fd06cd180ad6d021e081405b0192529d08cc36d6d93803", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "121bfc3b5e2c121ef6a98f26e2a23cdf3d9208ae92a97146bd668b56bd33de95", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "fp32 per-tap band on near-zero probes", + "reason": "C3-2: per-tap fp32 checks gate without the near_zero probes; they are measured and reported per tap ('ungated_probes'); the output gates on all probes. C4-1: when the output has failed and no gated tap fails, they localise the first divergence (earliest tap over band on all probes)" + }, + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 1.1920929e-07, + "224": 1.2665987e-07 + }, + "primary_class": "D3", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.9375, + "band_ratio": 1946.64411, + "metrics": { + "corr": 0.989459683, + "finite": true, + "max_abs": 0.246458471, + "mean_abs": 0.0314199599, + "psnr_db": 33.7637012, + "ref_absmax": 1.26606846, + "rel_max": 0.194664411, + "scaled_max_abs": 0.194664411 + }, + "status": "fail", + "worst_probe": { + "category": "uniform", + "index": 16 + } + }, + "first_fail_index": 0, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 11616.7792, + "index": 0, + "metrics": { + "corr": 0.600839339, + "finite": true, + "max_abs": 13.3928566, + "mean_abs": 1.02808958, + "psnr_db": 18.4671496, + "ref_absmax": 11.5288897, + "rel_max": 1.16167792, + "scaled_max_abs": 1.16167792 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "fail", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 96.5222518, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999598821, + "finite": true, + "max_abs": 0.0204424858, + "mean_abs": 0.0029078448, + "psnr_db": 38.9218199, + "ref_absmax": 2.11790395, + "rel_max": 0.00965222518, + "scaled_max_abs": 0.00965222518 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9883.92463, + "index": 1, + "metrics": { + "corr": 0.619344965, + "finite": true, + "max_abs": 10.6707128, + "mean_abs": 0.582154188, + "psnr_db": 27.4369696, + "ref_absmax": 10.7960281, + "rel_max": 0.988392463, + "scaled_max_abs": 0.988392463 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "status": "fail", + "tap": "net.patch_embed", + "ungated_probes": { + "band_ratio": 37.8104869, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999998089, + "finite": true, + "max_abs": 0.00950387493, + "mean_abs": 0.00174543012, + "psnr_db": 66.9339963, + "ref_absmax": 2.51355529, + "rel_max": 0.00378104869, + "scaled_max_abs": 0.00378104869 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9903.75554, + "index": 2, + "metrics": { + "corr": 0.659275653, + "finite": true, + "max_abs": 10.6707125, + "mean_abs": 0.58215419, + "psnr_db": 27.3561308, + "ref_absmax": 10.7744102, + "rel_max": 0.990375554, + "scaled_max_abs": 0.990375554 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "status": "fail", + "tap": "net.pos_embed", + "ungated_probes": { + "band_ratio": 24.7311369, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999998279, + "finite": true, + "max_abs": 0.00950386561, + "mean_abs": 0.0017454292, + "psnr_db": 70.4526447, + "ref_absmax": 3.84287453, + "rel_max": 0.00247311369, + "scaled_max_abs": 0.00247311369 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 10199.7246, + "index": 3, + "metrics": { + "corr": 0.666170524, + "finite": true, + "max_abs": 10.93361, + "mean_abs": 0.598504045, + "psnr_db": 27.2771681, + "ref_absmax": 10.7195148, + "rel_max": 1.01997246, + "scaled_max_abs": 1.01997246 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.0", + "ungated_probes": { + "band_ratio": 21.2877728, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999998533, + "finite": true, + "max_abs": 0.00954556465, + "mean_abs": 0.00176069684, + "psnr_db": 71.5486874, + "ref_absmax": 4.48405981, + "rel_max": 0.00212877728, + "scaled_max_abs": 0.00212877728 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 10008.3684, + "index": 4, + "metrics": { + "corr": 0.675291544, + "finite": true, + "max_abs": 11.012817, + "mean_abs": 0.617572215, + "psnr_db": 27.2624694, + "ref_absmax": 11.0036087, + "rel_max": 1.00083684, + "scaled_max_abs": 1.00083684 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.1", + "ungated_probes": { + "band_ratio": 20.056063, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.99999879, + "finite": true, + "max_abs": 0.00944441557, + "mean_abs": 0.00178780959, + "psnr_db": 71.7711977, + "ref_absmax": 4.70900774, + "rel_max": 0.0020056063, + "scaled_max_abs": 0.0020056063 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9769.67433, + "index": 5, + "metrics": { + "corr": 0.678420081, + "finite": true, + "max_abs": 11.0867518, + "mean_abs": 0.634823222, + "psnr_db": 27.3640953, + "ref_absmax": 11.3481283, + "rel_max": 0.976967433, + "scaled_max_abs": 0.976967433 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.2", + "ungated_probes": { + "band_ratio": 19.5361875, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999998954, + "finite": true, + "max_abs": 0.00912761688, + "mean_abs": 0.00180126143, + "psnr_db": 72.0230734, + "ref_absmax": 4.67215872, + "rel_max": 0.00195361875, + "scaled_max_abs": 0.00195361875 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 13900.3041, + "index": 6, + "metrics": { + "corr": 0.589207806, + "finite": true, + "max_abs": 5.71452117, + "mean_abs": 0.646029734, + "psnr_db": 18.7461336, + "ref_absmax": 4.11107635, + "rel_max": 1.39003041, + "scaled_max_abs": 1.39003041 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "status": "fail", + "tap": "net.norm", + "ungated_probes": { + "band_ratio": 22.1221285, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999998979, + "finite": true, + "max_abs": 0.00616729259, + "mean_abs": 0.00114108916, + "psnr_db": 71.586442, + "ref_absmax": 2.7878387, + "rel_max": 0.00221221285, + "scaled_max_abs": 0.00221221285 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "uniform", + "index": 19 + } + }, + { + "band_ratio": 1966.35078, + "index": 7, + "metrics": { + "corr": 0.987096349, + "finite": true, + "max_abs": 0.397320151, + "mean_abs": 0.056612345, + "psnr_db": 33.8505001, + "ref_absmax": 2.0205965, + "rel_max": 0.196635078, + "scaled_max_abs": 0.196635078 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/ReduceMean_output_0" + }, + "status": "fail", + "tap": "net.pool", + "ungated_probes": { + "band_ratio": 1.61723901, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999992, + "finite": true, + "max_abs": 0.000358343124, + "mean_abs": 9.6753909e-05, + "psnr_db": 91.0549376, + "ref_absmax": 2.21577096, + "rel_max": 0.000161723901, + "scaled_max_abs": 0.000161723901 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "uniform", + "index": 18 + } + }, + { + "band_ratio": 1946.64423, + "index": 8, + "metrics": { + "corr": 0.983468596, + "finite": true, + "max_abs": 0.246458486, + "mean_abs": 0.035900052, + "psnr_db": 31.6908895, + "ref_absmax": 1.26606846, + "rel_max": 0.194664423, + "scaled_max_abs": 0.194664423 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "ungated_probes": { + "band_ratio": 1.26372431, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.99999999, + "finite": true, + "max_abs": 0.00014102459, + "mean_abs": 5.93259931e-05, + "psnr_db": 87.3699741, + "ref_absmax": 1.11594427, + "rel_max": 0.000126372431, + "scaled_max_abs": 0.000126372431 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "uniform", + "index": 16 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 878.835174, + "metrics": { + "corr": 0.994711613, + "finite": true, + "max_abs": 0.118161574, + "mean_abs": 0.023649742, + "psnr_db": 36.8405429, + "ref_absmax": 1.34452486, + "rel_max": 0.0878835174, + "scaled_max_abs": 0.0878835174 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 3 + } + }, + "first_fail_index": 0, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 11112.3355, + "index": 0, + "metrics": { + "corr": 0.634923999, + "finite": true, + "max_abs": 12.811289, + "mean_abs": 0.974299059, + "psnr_db": 19.0432516, + "ref_absmax": 11.5288897, + "rel_max": 1.11123355, + "scaled_max_abs": 1.11123355 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "fail", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 94.3709838, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999598458, + "finite": true, + "max_abs": 0.0199868679, + "mean_abs": 0.00290967938, + "psnr_db": 38.9617593, + "ref_absmax": 2.11790395, + "rel_max": 0.00943709838, + "scaled_max_abs": 0.00943709838 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6257.79037, + "index": 1, + "metrics": { + "corr": 0.658932032, + "finite": true, + "max_abs": 7.42867804, + "mean_abs": 0.546688169, + "psnr_db": 28.4624729, + "ref_absmax": 11.871088, + "rel_max": 0.625779037, + "scaled_max_abs": 0.625779037 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "status": "fail", + "tap": "net.patch_embed", + "ungated_probes": { + "band_ratio": 35.0811023, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999998116, + "finite": true, + "max_abs": 0.00882148743, + "mean_abs": 0.00173391519, + "psnr_db": 67.000137, + "ref_absmax": 2.51459813, + "rel_max": 0.00350811023, + "scaled_max_abs": 0.00350811023 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6417.93524, + "index": 2, + "metrics": { + "corr": 0.690946019, + "finite": true, + "max_abs": 7.42867851, + "mean_abs": 0.546688169, + "psnr_db": 28.403646, + "ref_absmax": 11.574873, + "rel_max": 0.641793524, + "scaled_max_abs": 0.641793524 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "status": "fail", + "tap": "net.pos_embed", + "ungated_probes": { + "band_ratio": 23.745908, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999998286, + "finite": true, + "max_abs": 0.00882148743, + "mean_abs": 0.00173391554, + "psnr_db": 70.3616547, + "ref_absmax": 3.71495056, + "rel_max": 0.0023745908, + "scaled_max_abs": 0.0023745908 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6265.34791, + "index": 3, + "metrics": { + "corr": 0.700274726, + "finite": true, + "max_abs": 7.4523741, + "mean_abs": 0.562207939, + "psnr_db": 28.5531461, + "ref_absmax": 11.8945894, + "rel_max": 0.626534791, + "scaled_max_abs": 0.626534791 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.0", + "ungated_probes": { + "band_ratio": 18.8448296, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999998538, + "finite": true, + "max_abs": 0.00846004486, + "mean_abs": 0.00175271024, + "psnr_db": 71.4529246, + "ref_absmax": 4.48931885, + "rel_max": 0.00188448296, + "scaled_max_abs": 0.00188448296 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6113.32848, + "index": 4, + "metrics": { + "corr": 0.710268549, + "finite": true, + "max_abs": 7.42990816, + "mean_abs": 0.579440103, + "psnr_db": 28.5244869, + "ref_absmax": 12.1536217, + "rel_max": 0.611332848, + "scaled_max_abs": 0.611332848 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.1", + "ungated_probes": { + "band_ratio": 18.4530204, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999998797, + "finite": true, + "max_abs": 0.0086992681, + "mean_abs": 0.00177784021, + "psnr_db": 71.7343102, + "ref_absmax": 4.7142787, + "rel_max": 0.00184530204, + "scaled_max_abs": 0.00184530204 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 5952.65057, + "index": 5, + "metrics": { + "corr": 0.713087035, + "finite": true, + "max_abs": 7.44677508, + "mean_abs": 0.5958919, + "psnr_db": 28.4561451, + "ref_absmax": 12.5100155, + "rel_max": 0.595265057, + "scaled_max_abs": 0.595265057 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.2", + "ungated_probes": { + "band_ratio": 19.0732166, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999998963, + "finite": true, + "max_abs": 0.0089212656, + "mean_abs": 0.00178982488, + "psnr_db": 71.9475844, + "ref_absmax": 4.67737865, + "rel_max": 0.00190732166, + "scaled_max_abs": 0.00190732166 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 12494.4595, + "index": 6, + "metrics": { + "corr": 0.611887901, + "finite": true, + "max_abs": 5.24572039, + "mean_abs": 0.61394629, + "psnr_db": 19.1811782, + "ref_absmax": 4.19843721, + "rel_max": 1.24944595, + "scaled_max_abs": 1.24944595 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "status": "fail", + "tap": "net.norm", + "ungated_probes": { + "band_ratio": 20.7520058, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999998991, + "finite": true, + "max_abs": 0.00567817688, + "mean_abs": 0.001134071, + "psnr_db": 71.4890956, + "ref_absmax": 2.73620629, + "rel_max": 0.00207520058, + "scaled_max_abs": 0.00207520058 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "uniform", + "index": 19 + } + }, + { + "band_ratio": 1471.13328, + "index": 7, + "metrics": { + "corr": 0.992555511, + "finite": true, + "max_abs": 0.308960844, + "mean_abs": 0.0447307115, + "psnr_db": 35.7795322, + "ref_absmax": 2.10015535, + "rel_max": 0.147113328, + "scaled_max_abs": 0.147113328 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/ReduceMean_output_0" + }, + "status": "fail", + "tap": "net.pool", + "ungated_probes": { + "band_ratio": 1.32447751, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999994, + "finite": true, + "max_abs": 0.000294268131, + "mean_abs": 8.97870486e-05, + "psnr_db": 91.7182928, + "ref_absmax": 2.22176766, + "rel_max": 0.000132447751, + "scaled_max_abs": 0.000132447751 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "uniform", + "index": 19 + } + }, + { + "band_ratio": 878.835396, + "index": 8, + "metrics": { + "corr": 0.991804589, + "finite": true, + "max_abs": 0.118161604, + "mean_abs": 0.0270205039, + "psnr_db": 34.8547859, + "ref_absmax": 1.34452486, + "rel_max": 0.0878835396, + "scaled_max_abs": 0.0878835396 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "ungated_probes": { + "band_ratio": 1.32784254, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999993, + "finite": true, + "max_abs": 0.000148624182, + "mean_abs": 5.44151291e-05, + "psnr_db": 87.8775745, + "ref_absmax": 1.11929071, + "rel_max": 0.000132784254, + "scaled_max_abs": 0.000132784254 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 3 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp32", + "id": "tinyvit__input_hw_swap__onnx_fp32", + "model": "tinyvit", + "path": "onnx", + "variant": "input_hw_swap" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/tinyvit__int8_clean__onnx_int8.json b/bench/verdicts_calibrated4/tinyvit__int8_clean__onnx_int8.json new file mode 100644 index 0000000000000000000000000000000000000000..ee65aae8305d090cad880e48b4fa27fb1d296976 --- /dev/null +++ b/bench/verdicts_calibrated4/tinyvit__int8_clean__onnx_int8.json @@ -0,0 +1,1044 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": false, + "note": null, + "status": "clear" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "status": "clear" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "status": "clear" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "int8", + "first_divergence": null, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "1ba73e638e8e94d7217b6a0f35ad0761414c95fdf53dcfba281c3da50295e5b4", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "6a91621bc4885f6da14c1d1a5de1a0765406f538ac82db7deebe125985d74969", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "int8 band on non-natural probes", + "reason": "C3-3: a statically quantised model is specified on its calibration distribution; int8 gates on the natural probes only (the control-selection distribution); uniform, wide_range, near_zero and saturating are measured and reported ('ungated_probes') but do not gate" + }, + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": null, + "probe_gating": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.875, + "band_ratio": 0.339198294, + "metrics": { + "corr": 0.998569742, + "finite": true, + "max_abs": 0.108577788, + "mean_abs": 0.00820659873, + "psnr_db": 39.3909268, + "ref_absmax": 0.857067645, + "rel_max": 0.126685202, + "scaled_max_abs": 0.108577788 + }, + "status": "pass", + "ungated_probes": { + "band_ratio": 3.71008919, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.962899108, + "finite": true, + "max_abs": 0.517578602, + "mean_abs": 0.0573737427, + "psnr_db": 26.0263923, + "ref_absmax": 1.26606846, + "rel_max": 0.408807753, + "scaled_max_abs": 0.408807753 + }, + "n_probes": 16 + } + }, + "first_fail_index": null, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "gated_categories_only": [ + "natural" + ], + "n_gated": 16 + }, + "tap": { + "gated_categories_only": [ + "natural" + ], + "n_gated": 16 + } + }, + "taps": [ + { + "band_ratio": 0.0358589471, + "index": 0, + "metrics": { + "corr": 0.999979409, + "finite": true, + "max_abs": 0.0093292594, + "mean_abs": 0.0046713164, + "psnr_db": 58.9080493, + "ref_absmax": 2.6400001, + "rel_max": 0.00353381024, + "scaled_max_abs": 0.00353381024 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 7.22459355, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.927754064, + "finite": true, + "max_abs": 8.8980484, + "mean_abs": 0.268040572, + "psnr_db": 22.3077725, + "ref_absmax": 11.5288897, + "rel_max": 0.771804455, + "scaled_max_abs": 0.771804455 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 0.0413776717, + "index": 1, + "metrics": { + "corr": 0.999905119, + "finite": true, + "max_abs": 0.237921953, + "mean_abs": 0.0054100737, + "psnr_db": 57.664679, + "ref_absmax": 2.57626772, + "rel_max": 0.0923514088, + "scaled_max_abs": 0.0923514088 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.patch_embed", + "ungated_probes": { + "band_ratio": 8.57168959, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.914283104, + "finite": true, + "max_abs": 8.36414838, + "mean_abs": 0.172915383, + "psnr_db": 30.9185843, + "ref_absmax": 10.7960281, + "rel_max": 0.774743107, + "scaled_max_abs": 0.774743107 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 0.0513641231, + "index": 2, + "metrics": { + "corr": 0.999861369, + "finite": true, + "max_abs": 0.554334641, + "mean_abs": 0.00796321561, + "psnr_db": 55.7868024, + "ref_absmax": 3.35564685, + "rel_max": 0.165194571, + "scaled_max_abs": 0.165194571 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.pos_embed", + "ungated_probes": { + "band_ratio": 8.16415834, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.918358417, + "finite": true, + "max_abs": 8.36698496, + "mean_abs": 0.175651155, + "psnr_db": 30.8194002, + "ref_absmax": 10.7744102, + "rel_max": 0.77656083, + "scaled_max_abs": 0.77656083 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 0.082774072, + "index": 3, + "metrics": { + "corr": 0.999665484, + "finite": true, + "max_abs": 0.563909292, + "mean_abs": 0.0132873052, + "psnr_db": 51.6421136, + "ref_absmax": 3.37391257, + "rel_max": 0.167138087, + "scaled_max_abs": 0.167138087 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.blocks.0", + "ungated_probes": { + "band_ratio": 7.76009528, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.922399047, + "finite": true, + "max_abs": 8.33901, + "mean_abs": 0.197910372, + "psnr_db": 30.8112213, + "ref_absmax": 10.7195148, + "rel_max": 0.77792793, + "scaled_max_abs": 0.77792793 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 0.11269421, + "index": 4, + "metrics": { + "corr": 0.999465987, + "finite": true, + "max_abs": 0.538864851, + "mean_abs": 0.0180941164, + "psnr_db": 48.961968, + "ref_absmax": 3.30819559, + "rel_max": 0.162887845, + "scaled_max_abs": 0.162887845 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.blocks.1", + "ungated_probes": { + "band_ratio": 7.23986722, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.927601328, + "finite": true, + "max_abs": 8.3160913, + "mean_abs": 0.210022498, + "psnr_db": 30.9474178, + "ref_absmax": 11.0036087, + "rel_max": 0.755760362, + "scaled_max_abs": 0.755760362 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 0.129151441, + "index": 5, + "metrics": { + "corr": 0.999315211, + "finite": true, + "max_abs": 0.527687788, + "mean_abs": 0.0219265371, + "psnr_db": 47.7780149, + "ref_absmax": 3.45072269, + "rel_max": 0.152920949, + "scaled_max_abs": 0.152920949 + }, + "op": { + "candidates": 12, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.blocks.2", + "ungated_probes": { + "band_ratio": 6.9257023, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.930742977, + "finite": true, + "max_abs": 8.34559393, + "mean_abs": 0.217355154, + "psnr_db": 31.1968198, + "ref_absmax": 11.3481283, + "rel_max": 0.735415894, + "scaled_max_abs": 0.735415894 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 0.16349223, + "index": 6, + "metrics": { + "corr": 0.999261499, + "finite": true, + "max_abs": 0.475851536, + "mean_abs": 0.030133826, + "psnr_db": 45.7300577, + "ref_absmax": 3.74819756, + "rel_max": 0.126954764, + "scaled_max_abs": 0.126954764 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.norm", + "ungated_probes": { + "band_ratio": 1.20304602, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.98796954, + "finite": true, + "max_abs": 1.60128012, + "mean_abs": 0.0798736108, + "psnr_db": 34.0795129, + "ref_absmax": 4.11107635, + "rel_max": 0.389503863, + "scaled_max_abs": 0.389503863 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 0.15012689, + "index": 7, + "metrics": { + "corr": 0.999484957, + "finite": true, + "max_abs": 0.224555135, + "mean_abs": 0.00814353243, + "psnr_db": 46.4708302, + "ref_absmax": 2.0205965, + "rel_max": 0.111133091, + "scaled_max_abs": 0.111133091 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/ReduceMean_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.pool", + "ungated_probes": { + "band_ratio": 1.27898129, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.987210187, + "finite": true, + "max_abs": 0.644234776, + "mean_abs": 0.0477706476, + "psnr_db": 32.8546799, + "ref_absmax": 2.21577096, + "rel_max": 0.290749716, + "scaled_max_abs": 0.290749716 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 0.339198294, + "index": 8, + "metrics": { + "corr": 0.998569742, + "finite": true, + "max_abs": 0.108577788, + "mean_abs": 0.00820659873, + "psnr_db": 39.3909268, + "ref_absmax": 0.857067645, + "rel_max": 0.126685202, + "scaled_max_abs": 0.108577788 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "pass", + "tap": "net.head", + "ungated_probes": { + "band_ratio": 3.71008919, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.962899108, + "finite": true, + "max_abs": 0.517578602, + "mean_abs": 0.0573737427, + "psnr_db": 26.0263923, + "ref_absmax": 1.26606846, + "rel_max": 0.408807753, + "scaled_max_abs": 0.408807753 + }, + "n_probes": 16 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.450167272, + "metrics": { + "corr": 0.997731609, + "finite": true, + "max_abs": 0.18754828, + "mean_abs": 0.0125729695, + "psnr_db": 36.9325216, + "ref_absmax": 0.915185452, + "rel_max": 0.204929263, + "scaled_max_abs": 0.18754828 + }, + "status": "pass", + "ungated_probes": { + "band_ratio": 3.90136487, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.960986351, + "finite": true, + "max_abs": 0.555726051, + "mean_abs": 0.0507647233, + "psnr_db": 25.9980177, + "ref_absmax": 1.34452486, + "rel_max": 0.413325233, + "scaled_max_abs": 0.413325233 + }, + "n_probes": 16 + } + }, + "first_fail_index": null, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "gated_categories_only": [ + "natural" + ], + "n_gated": 16 + }, + "tap": { + "gated_categories_only": [ + "natural" + ], + "n_gated": 16 + } + }, + "taps": [ + { + "band_ratio": 0.0358907272, + "index": 0, + "metrics": { + "corr": 0.999978106, + "finite": true, + "max_abs": 0.009329319, + "mean_abs": 0.00467719955, + "psnr_db": 58.9003548, + "ref_absmax": 2.6400001, + "rel_max": 0.00353383281, + "scaled_max_abs": 0.00353383281 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 6.36551683, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.936344832, + "finite": true, + "max_abs": 8.8980484, + "mean_abs": 0.261245939, + "psnr_db": 22.8630328, + "ref_absmax": 11.5288897, + "rel_max": 0.771804455, + "scaled_max_abs": 0.771804455 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 0.0418300822, + "index": 1, + "metrics": { + "corr": 0.999905183, + "finite": true, + "max_abs": 0.106314421, + "mean_abs": 0.00547950275, + "psnr_db": 57.5702256, + "ref_absmax": 2.51361132, + "rel_max": 0.0422954894, + "scaled_max_abs": 0.0422954894 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.patch_embed", + "ungated_probes": { + "band_ratio": 7.48316443, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.925168356, + "finite": true, + "max_abs": 9.47746062, + "mean_abs": 0.162196178, + "psnr_db": 32.0121697, + "ref_absmax": 11.871088, + "rel_max": 0.798364952, + "scaled_max_abs": 0.798364952 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 0.0590947092, + "index": 2, + "metrics": { + "corr": 0.99984699, + "finite": true, + "max_abs": 0.1168468, + "mean_abs": 0.00838101614, + "psnr_db": 54.569028, + "ref_absmax": 2.79103851, + "rel_max": 0.0418649901, + "scaled_max_abs": 0.0418649901 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.pos_embed", + "ungated_probes": { + "band_ratio": 7.16379193, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.928362081, + "finite": true, + "max_abs": 9.47997499, + "mean_abs": 0.164626639, + "psnr_db": 31.950795, + "ref_absmax": 11.574873, + "rel_max": 0.819013307, + "scaled_max_abs": 0.819013307 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 0.100717831, + "index": 3, + "metrics": { + "corr": 0.999559201, + "finite": true, + "max_abs": 0.125920534, + "mean_abs": 0.0152224735, + "psnr_db": 49.9378728, + "ref_absmax": 3.084939, + "rel_max": 0.0408178359, + "scaled_max_abs": 0.0408178359 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.blocks.0", + "ungated_probes": { + "band_ratio": 6.74575568, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.932542443, + "finite": true, + "max_abs": 9.50604749, + "mean_abs": 0.184758788, + "psnr_db": 32.170337, + "ref_absmax": 11.8945894, + "rel_max": 0.799190888, + "scaled_max_abs": 0.799190888 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 0.137345515, + "index": 4, + "metrics": { + "corr": 0.999275347, + "finite": true, + "max_abs": 0.168433055, + "mean_abs": 0.0216399126, + "psnr_db": 47.2437104, + "ref_absmax": 3.30478835, + "rel_max": 0.0509663668, + "scaled_max_abs": 0.0509663668 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.blocks.1", + "ungated_probes": { + "band_ratio": 6.28186697, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.93718133, + "finite": true, + "max_abs": 9.48718929, + "mean_abs": 0.195894798, + "psnr_db": 32.2604921, + "ref_absmax": 12.1536217, + "rel_max": 0.780605942, + "scaled_max_abs": 0.780605942 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 0.176250431, + "index": 5, + "metrics": { + "corr": 0.998897582, + "finite": true, + "max_abs": 0.217415452, + "mean_abs": 0.0283272324, + "psnr_db": 45.0773963, + "ref_absmax": 3.3457129, + "rel_max": 0.0649832961, + "scaled_max_abs": 0.0649832961 + }, + "op": { + "candidates": 12, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.blocks.2", + "ungated_probes": { + "band_ratio": 6.00739732, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.939926027, + "finite": true, + "max_abs": 9.59743047, + "mean_abs": 0.206406907, + "psnr_db": 32.3056167, + "ref_absmax": 12.5100155, + "rel_max": 0.767179743, + "scaled_max_abs": 0.767179743 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 0.186577781, + "index": 6, + "metrics": { + "corr": 0.998881128, + "finite": true, + "max_abs": 0.38120985, + "mean_abs": 0.0371420993, + "psnr_db": 44.5828015, + "ref_absmax": 4.19843721, + "rel_max": 0.0907980353, + "scaled_max_abs": 0.0907980353 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.norm", + "ungated_probes": { + "band_ratio": 0.911517048, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.99088483, + "finite": true, + "max_abs": 1.4651134, + "mean_abs": 0.0708273691, + "psnr_db": 35.2417277, + "ref_absmax": 4.10980606, + "rel_max": 0.356492102, + "scaled_max_abs": 0.356492102 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 0.214407561, + "index": 7, + "metrics": { + "corr": 0.999249821, + "finite": true, + "max_abs": 0.127520084, + "mean_abs": 0.0181025491, + "psnr_db": 43.3751981, + "ref_absmax": 1.86660826, + "rel_max": 0.0683164684, + "scaled_max_abs": 0.0683164684 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/ReduceMean_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.pool", + "ungated_probes": { + "band_ratio": 0.66222586, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.993377741, + "finite": true, + "max_abs": 0.443654776, + "mean_abs": 0.0371489417, + "psnr_db": 35.6331118, + "ref_absmax": 2.22176766, + "rel_max": 0.199685495, + "scaled_max_abs": 0.199685495 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 0.450167272, + "index": 8, + "metrics": { + "corr": 0.997731609, + "finite": true, + "max_abs": 0.18754828, + "mean_abs": 0.0125729695, + "psnr_db": 36.9325216, + "ref_absmax": 0.915185452, + "rel_max": 0.204929263, + "scaled_max_abs": 0.18754828 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "pass", + "tap": "net.head", + "ungated_probes": { + "band_ratio": 3.90136487, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.960986351, + "finite": true, + "max_abs": 0.555726051, + "mean_abs": 0.0507647233, + "psnr_db": 25.9980177, + "ref_absmax": 1.34452486, + "rel_max": 0.413325233, + "scaled_max_abs": 0.413325233 + }, + "n_probes": 16 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "int8", + "id": "tinyvit__int8_clean__onnx_int8", + "model": "tinyvit", + "path": "onnx", + "variant": "int8_clean" + }, + "tap_bands_gate": true, + "verdict": "PASS" +} diff --git a/bench/verdicts_calibrated4/tinyvit__int8_override_blocks_0__onnx_int8.json b/bench/verdicts_calibrated4/tinyvit__int8_override_blocks_0__onnx_int8.json new file mode 100644 index 0000000000000000000000000000000000000000..df346cbf30646c2dc4ff5601ece9490c0abcc289 --- /dev/null +++ b/bench/verdicts_calibrated4/tinyvit__int8_override_blocks_0__onnx_int8.json @@ -0,0 +1,1148 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "reason": "first divergence at tap 3 is beyond the hypothesis taps (first 3) \u2014 interface faults surface earlier", + "status": "not_evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "status": "flag" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "int8", + "first_divergence": { + "artifact_tensor": "/net/blocks/blocks.0/Add_1_output_0_DequantizeLinear_Output", + "basis": "earliest tap over the int8 band (natural probes, C3-3)", + "index": 3, + "neighbourhood": [ + { + "band_ratio": 0.0590947092, + "index": 2, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.pos_embed" + }, + { + "band_ratio": 13.0954673, + "index": 3, + "op": { + "candidates": 9, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.blocks.0" + }, + { + "band_ratio": 21.4311348, + "index": 4, + "op": { + "candidates": 9, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.blocks.1" + } + ], + "shape": 224, + "tap": "net.blocks.0" + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "75b229874345e1d7dfe2d49c82338c37066f29ea807033fc6ab93a737c81ddd1", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "e37dc5b8a70606937d4bcf776ec3ca75b59206e0b32f1d9a396795bf3f2961d0", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "int8 band on non-natural probes", + "reason": "C3-3: a statically quantised model is specified on its calibration distribution; int8 gates on the natural probes only (the control-selection distribution); uniform, wide_range, near_zero and saturating are measured and reported ('ungated_probes') but do not gate" + }, + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D4", + "probe_gating": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.8125, + "band_ratio": 15.2033322, + "metrics": { + "corr": 0.847966678, + "finite": true, + "max_abs": 0.554243505, + "mean_abs": 0.150660672, + "psnr_db": 18.4769526, + "ref_absmax": 0.857067645, + "rel_max": 0.646674167, + "scaled_max_abs": 0.554243505 + }, + "status": "fail", + "ungated_probes": { + "band_ratio": 47.2696655, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.527303345, + "finite": true, + "max_abs": 1.12737159, + "mean_abs": 0.281014078, + "psnr_db": 16.2132546, + "ref_absmax": 1.26606846, + "rel_max": 0.890450737, + "scaled_max_abs": 0.890450737 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 2 + } + }, + "first_fail_index": 3, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "gated_categories_only": [ + "natural" + ], + "n_gated": 16 + }, + "tap": { + "gated_categories_only": [ + "natural" + ], + "n_gated": 16 + } + }, + "taps": [ + { + "band_ratio": 0.0358589471, + "index": 0, + "metrics": { + "corr": 0.999979409, + "finite": true, + "max_abs": 0.0093292594, + "mean_abs": 0.0046713164, + "psnr_db": 58.9080493, + "ref_absmax": 2.6400001, + "rel_max": 0.00353381024, + "scaled_max_abs": 0.00353381024 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 7.22459355, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.927754064, + "finite": true, + "max_abs": 8.8980484, + "mean_abs": 0.268040572, + "psnr_db": 22.3077725, + "ref_absmax": 11.5288897, + "rel_max": 0.771804455, + "scaled_max_abs": 0.771804455 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 0.0413776717, + "index": 1, + "metrics": { + "corr": 0.999905119, + "finite": true, + "max_abs": 0.237921953, + "mean_abs": 0.0054100737, + "psnr_db": 57.664679, + "ref_absmax": 2.57626772, + "rel_max": 0.0923514088, + "scaled_max_abs": 0.0923514088 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.patch_embed", + "ungated_probes": { + "band_ratio": 8.57168959, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.914283104, + "finite": true, + "max_abs": 8.36414838, + "mean_abs": 0.172915383, + "psnr_db": 30.9185843, + "ref_absmax": 10.7960281, + "rel_max": 0.774743107, + "scaled_max_abs": 0.774743107 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 0.0513641231, + "index": 2, + "metrics": { + "corr": 0.999861369, + "finite": true, + "max_abs": 0.554334641, + "mean_abs": 0.00796321561, + "psnr_db": 55.7868024, + "ref_absmax": 3.35564685, + "rel_max": 0.165194571, + "scaled_max_abs": 0.165194571 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.pos_embed", + "ungated_probes": { + "band_ratio": 8.16415834, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.918358417, + "finite": true, + "max_abs": 8.36698496, + "mean_abs": 0.175651155, + "psnr_db": 30.8194002, + "ref_absmax": 10.7744102, + "rel_max": 0.77656083, + "scaled_max_abs": 0.77656083 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 13.1999295, + "index": 3, + "metrics": { + "corr": 0.868000705, + "finite": true, + "max_abs": 3.11791256, + "mean_abs": 0.302722159, + "psnr_db": 22.7725514, + "ref_absmax": 3.37391257, + "rel_max": 0.924123697, + "scaled_max_abs": 0.924123697 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.blocks.0", + "ungated_probes": { + "band_ratio": 24.1035139, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.758964861, + "finite": true, + "max_abs": 10.4635148, + "mean_abs": 0.875688947, + "psnr_db": 24.1568076, + "ref_absmax": 10.7195148, + "rel_max": 0.976118321, + "scaled_max_abs": 0.976118321 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 12 + } + }, + { + "band_ratio": 21.7954229, + "index": 4, + "metrics": { + "corr": 0.782045771, + "finite": true, + "max_abs": 3.11213678, + "mean_abs": 0.337183331, + "psnr_db": 22.6588734, + "ref_absmax": 3.30819559, + "rel_max": 0.940735424, + "scaled_max_abs": 0.940735424 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.blocks.1", + "ungated_probes": { + "band_ratio": 37.3189512, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.626810488, + "finite": true, + "max_abs": 10.464447, + "mean_abs": 0.899506041, + "psnr_db": 24.2287755, + "ref_absmax": 11.0036087, + "rel_max": 0.951001371, + "scaled_max_abs": 0.951001371 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 12 + } + }, + { + "band_ratio": 26.2111512, + "index": 5, + "metrics": { + "corr": 0.737888488, + "finite": true, + "max_abs": 3.18987158, + "mean_abs": 0.381932459, + "psnr_db": 22.4401902, + "ref_absmax": 3.45072269, + "rel_max": 0.924406816, + "scaled_max_abs": 0.924406816 + }, + "op": { + "candidates": 12, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.blocks.2", + "ungated_probes": { + "band_ratio": 40.2143872, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.597856128, + "finite": true, + "max_abs": 10.7019672, + "mean_abs": 0.923623987, + "psnr_db": 24.4106798, + "ref_absmax": 11.3481283, + "rel_max": 0.943060119, + "scaled_max_abs": 0.943060119 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 12 + } + }, + { + "band_ratio": 25.8572731, + "index": 6, + "metrics": { + "corr": 0.741427269, + "finite": true, + "max_abs": 4.2335825, + "mean_abs": 0.558459347, + "psnr_db": 20.287872, + "ref_absmax": 3.74819756, + "rel_max": 1.12949823, + "scaled_max_abs": 1.12949823 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.norm", + "ungated_probes": { + "band_ratio": 35.4658828, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.645341172, + "finite": true, + "max_abs": 4.39369535, + "mean_abs": 0.657898476, + "psnr_db": 19.3843439, + "ref_absmax": 4.11107635, + "rel_max": 1.06874574, + "scaled_max_abs": 1.06874574 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 10 + } + }, + { + "band_ratio": 22.7006838, + "index": 7, + "metrics": { + "corr": 0.772993162, + "finite": true, + "max_abs": 1.60557935, + "mean_abs": 0.398030823, + "psnr_db": 17.9211557, + "ref_absmax": 2.0205965, + "rel_max": 0.794606614, + "scaled_max_abs": 0.794606614 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/ReduceMean_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.pool", + "ungated_probes": { + "band_ratio": 38.6390616, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.613609384, + "finite": true, + "max_abs": 2.42098778, + "mean_abs": 0.480800207, + "psnr_db": 16.9744908, + "ref_absmax": 2.21577096, + "rel_max": 1.09261644, + "scaled_max_abs": 1.09261644 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 2 + } + }, + { + "band_ratio": 15.2033322, + "index": 8, + "metrics": { + "corr": 0.847966678, + "finite": true, + "max_abs": 0.554243505, + "mean_abs": 0.150660672, + "psnr_db": 18.4769526, + "ref_absmax": 0.857067645, + "rel_max": 0.646674167, + "scaled_max_abs": 0.554243505 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "ungated_probes": { + "band_ratio": 47.2696655, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.527303345, + "finite": true, + "max_abs": 1.12737159, + "mean_abs": 0.281014078, + "psnr_db": 16.2132546, + "ref_absmax": 1.26606846, + "rel_max": 0.890450737, + "scaled_max_abs": 0.890450737 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 2 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.78125, + "band_ratio": 14.4485438, + "metrics": { + "corr": 0.855514562, + "finite": true, + "max_abs": 0.618572474, + "mean_abs": 0.156440674, + "psnr_db": 18.9040217, + "ref_absmax": 0.915185452, + "rel_max": 0.6758985, + "scaled_max_abs": 0.618572474 + }, + "status": "fail", + "ungated_probes": { + "band_ratio": 43.9119872, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.560880128, + "finite": true, + "max_abs": 1.11923242, + "mean_abs": 0.251881943, + "psnr_db": 17.2126619, + "ref_absmax": 1.34452486, + "rel_max": 0.83243713, + "scaled_max_abs": 0.83243713 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 11 + } + }, + "first_fail_index": 3, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "gated_categories_only": [ + "natural" + ], + "n_gated": 16 + }, + "tap": { + "gated_categories_only": [ + "natural" + ], + "n_gated": 16 + } + }, + "taps": [ + { + "band_ratio": 0.0358907272, + "index": 0, + "metrics": { + "corr": 0.999978106, + "finite": true, + "max_abs": 0.009329319, + "mean_abs": 0.00467719955, + "psnr_db": 58.9003548, + "ref_absmax": 2.6400001, + "rel_max": 0.00353383281, + "scaled_max_abs": 0.00353383281 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 6.36551683, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.936344832, + "finite": true, + "max_abs": 8.8980484, + "mean_abs": 0.261245939, + "psnr_db": 22.8630328, + "ref_absmax": 11.5288897, + "rel_max": 0.771804455, + "scaled_max_abs": 0.771804455 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 0.0418300822, + "index": 1, + "metrics": { + "corr": 0.999905183, + "finite": true, + "max_abs": 0.106314421, + "mean_abs": 0.00547950275, + "psnr_db": 57.5702256, + "ref_absmax": 2.51361132, + "rel_max": 0.0422954894, + "scaled_max_abs": 0.0422954894 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.patch_embed", + "ungated_probes": { + "band_ratio": 7.48316443, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.925168356, + "finite": true, + "max_abs": 9.47746062, + "mean_abs": 0.162196178, + "psnr_db": 32.0121697, + "ref_absmax": 11.871088, + "rel_max": 0.798364952, + "scaled_max_abs": 0.798364952 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 0.0590947092, + "index": 2, + "metrics": { + "corr": 0.99984699, + "finite": true, + "max_abs": 0.1168468, + "mean_abs": 0.00838101614, + "psnr_db": 54.569028, + "ref_absmax": 2.79103851, + "rel_max": 0.0418649901, + "scaled_max_abs": 0.0418649901 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.pos_embed", + "ungated_probes": { + "band_ratio": 7.16379193, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.928362081, + "finite": true, + "max_abs": 9.47997499, + "mean_abs": 0.164626639, + "psnr_db": 31.950795, + "ref_absmax": 11.574873, + "rel_max": 0.819013307, + "scaled_max_abs": 0.819013307 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 13.0954673, + "index": 3, + "metrics": { + "corr": 0.869045327, + "finite": true, + "max_abs": 2.82893899, + "mean_abs": 0.301662477, + "psnr_db": 22.3103193, + "ref_absmax": 3.084939, + "rel_max": 0.917016183, + "scaled_max_abs": 0.917016183 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.blocks.0", + "ungated_probes": { + "band_ratio": 23.5455855, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.764544145, + "finite": true, + "max_abs": 11.6405894, + "mean_abs": 0.873606616, + "psnr_db": 24.9861845, + "ref_absmax": 11.8945894, + "rel_max": 0.978645752, + "scaled_max_abs": 0.978645752 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 11 + } + }, + { + "band_ratio": 21.4311348, + "index": 4, + "metrics": { + "corr": 0.785688652, + "finite": true, + "max_abs": 3.17324624, + "mean_abs": 0.336569816, + "psnr_db": 22.4418947, + "ref_absmax": 3.30478835, + "rel_max": 0.96019651, + "scaled_max_abs": 0.96019651 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.blocks.1", + "ungated_probes": { + "band_ratio": 36.8217351, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.631782649, + "finite": true, + "max_abs": 11.7311909, + "mean_abs": 0.900053209, + "psnr_db": 25.0172458, + "ref_absmax": 12.1536217, + "rel_max": 0.965242393, + "scaled_max_abs": 0.965242393 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 11 + } + }, + { + "band_ratio": 24.0642077, + "index": 5, + "metrics": { + "corr": 0.759357923, + "finite": true, + "max_abs": 3.18707189, + "mean_abs": 0.373117358, + "psnr_db": 22.2055198, + "ref_absmax": 3.3457129, + "rel_max": 0.952583794, + "scaled_max_abs": 0.952583794 + }, + "op": { + "candidates": 12, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.blocks.2", + "ungated_probes": { + "band_ratio": 38.4799386, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.615200614, + "finite": true, + "max_abs": 11.9795211, + "mean_abs": 0.921530762, + "psnr_db": 25.0599355, + "ref_absmax": 12.5100155, + "rel_max": 0.957594426, + "scaled_max_abs": 0.957594426 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 11 + } + }, + { + "band_ratio": 23.6512033, + "index": 6, + "metrics": { + "corr": 0.763487967, + "finite": true, + "max_abs": 3.66982055, + "mean_abs": 0.532503118, + "psnr_db": 21.3319798, + "ref_absmax": 4.19843721, + "rel_max": 0.87409204, + "scaled_max_abs": 0.87409204 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.norm", + "ungated_probes": { + "band_ratio": 34.2337916, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.657662084, + "finite": true, + "max_abs": 4.15591741, + "mean_abs": 0.643315082, + "psnr_db": 19.4951232, + "ref_absmax": 4.10980606, + "rel_max": 1.01121983, + "scaled_max_abs": 1.01121983 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 14 + } + }, + { + "band_ratio": 19.4486146, + "index": 7, + "metrics": { + "corr": 0.805513854, + "finite": true, + "max_abs": 1.5788506, + "mean_abs": 0.382663652, + "psnr_db": 17.982459, + "ref_absmax": 1.86660826, + "rel_max": 0.845839285, + "scaled_max_abs": 0.845839285 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/ReduceMean_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.pool", + "ungated_probes": { + "band_ratio": 35.8905647, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.641094353, + "finite": true, + "max_abs": 2.46453071, + "mean_abs": 0.464468245, + "psnr_db": 17.227086, + "ref_absmax": 2.22176766, + "rel_max": 1.10926572, + "scaled_max_abs": 1.10926572 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 11 + } + }, + { + "band_ratio": 14.4485438, + "index": 8, + "metrics": { + "corr": 0.855514562, + "finite": true, + "max_abs": 0.618572474, + "mean_abs": 0.156440674, + "psnr_db": 18.9040217, + "ref_absmax": 0.915185452, + "rel_max": 0.6758985, + "scaled_max_abs": 0.618572474 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "ungated_probes": { + "band_ratio": 43.9119872, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.560880128, + "finite": true, + "max_abs": 1.11923242, + "mean_abs": 0.251881943, + "psnr_db": 17.2126619, + "ref_absmax": 1.34452486, + "rel_max": 0.83243713, + "scaled_max_abs": 0.83243713 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 11 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "int8", + "id": "tinyvit__int8_override_blocks_0__onnx_int8", + "model": "tinyvit", + "path": "onnx", + "variant": "int8_override_blocks_0" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/tinyvit__int8_override_blocks_2__onnx_int8.json b/bench/verdicts_calibrated4/tinyvit__int8_override_blocks_2__onnx_int8.json new file mode 100644 index 0000000000000000000000000000000000000000..563fa2873023125d9515ac99b77edf0998a60634 --- /dev/null +++ b/bench/verdicts_calibrated4/tinyvit__int8_override_blocks_2__onnx_int8.json @@ -0,0 +1,1132 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "reason": "first divergence at tap 5 is beyond the hypothesis taps (first 3) \u2014 interface faults surface earlier", + "status": "not_evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "status": "flag" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "int8", + "first_divergence": { + "artifact_tensor": "/net/blocks/blocks.2/Add_1_output_0_DequantizeLinear_Output", + "basis": "earliest tap over the int8 band (natural probes, C3-3)", + "index": 5, + "neighbourhood": [ + { + "band_ratio": 0.137345515, + "index": 4, + "op": { + "candidates": 9, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.blocks.1" + }, + { + "band_ratio": 13.9460763, + "index": 5, + "op": { + "candidates": 12, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.blocks.2" + }, + { + "band_ratio": 12.9413219, + "index": 6, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.norm" + } + ], + "shape": 224, + "tap": "net.blocks.2" + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "b9c4b448d3d0048b061cfde0e3e962747ee95730b9c610409c1bed96a2dbda5f", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "254a506cb7c6ea099dc442e1fc08cf85c3e3d2f4da805371134b4540e197c9ef", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "int8 band on non-natural probes", + "reason": "C3-3: a statically quantised model is specified on its calibration distribution; int8 gates on the natural probes only (the control-selection distribution); uniform, wide_range, near_zero and saturating are measured and reported ('ungated_probes') but do not gate" + }, + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D4", + "probe_gating": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.90625, + "band_ratio": 1.87307033, + "metrics": { + "corr": 0.981269297, + "finite": true, + "max_abs": 0.237875938, + "mean_abs": 0.0537202036, + "psnr_db": 27.5676601, + "ref_absmax": 0.857067645, + "rel_max": 0.277546282, + "scaled_max_abs": 0.237875938 + }, + "status": "fail", + "ungated_probes": { + "band_ratio": 10.2998939, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.897001061, + "finite": true, + "max_abs": 0.546399824, + "mean_abs": 0.10731858, + "psnr_db": 23.028192, + "ref_absmax": 1.26606846, + "rel_max": 0.431572101, + "scaled_max_abs": 0.431572101 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 2 + } + }, + "first_fail_index": 5, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "gated_categories_only": [ + "natural" + ], + "n_gated": 16 + }, + "tap": { + "gated_categories_only": [ + "natural" + ], + "n_gated": 16 + } + }, + "taps": [ + { + "band_ratio": 0.0358589471, + "index": 0, + "metrics": { + "corr": 0.999979409, + "finite": true, + "max_abs": 0.0093292594, + "mean_abs": 0.0046713164, + "psnr_db": 58.9080493, + "ref_absmax": 2.6400001, + "rel_max": 0.00353381024, + "scaled_max_abs": 0.00353381024 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 7.22459355, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.927754064, + "finite": true, + "max_abs": 8.8980484, + "mean_abs": 0.268040572, + "psnr_db": 22.3077725, + "ref_absmax": 11.5288897, + "rel_max": 0.771804455, + "scaled_max_abs": 0.771804455 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 0.0413776717, + "index": 1, + "metrics": { + "corr": 0.999905119, + "finite": true, + "max_abs": 0.237921953, + "mean_abs": 0.0054100737, + "psnr_db": 57.664679, + "ref_absmax": 2.57626772, + "rel_max": 0.0923514088, + "scaled_max_abs": 0.0923514088 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.patch_embed", + "ungated_probes": { + "band_ratio": 8.57168959, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.914283104, + "finite": true, + "max_abs": 8.36414838, + "mean_abs": 0.172915383, + "psnr_db": 30.9185843, + "ref_absmax": 10.7960281, + "rel_max": 0.774743107, + "scaled_max_abs": 0.774743107 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 0.0513641231, + "index": 2, + "metrics": { + "corr": 0.999861369, + "finite": true, + "max_abs": 0.554334641, + "mean_abs": 0.00796321561, + "psnr_db": 55.7868024, + "ref_absmax": 3.35564685, + "rel_max": 0.165194571, + "scaled_max_abs": 0.165194571 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.pos_embed", + "ungated_probes": { + "band_ratio": 8.16415834, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.918358417, + "finite": true, + "max_abs": 8.36698496, + "mean_abs": 0.175651155, + "psnr_db": 30.8194002, + "ref_absmax": 10.7744102, + "rel_max": 0.77656083, + "scaled_max_abs": 0.77656083 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 0.082774072, + "index": 3, + "metrics": { + "corr": 0.999665484, + "finite": true, + "max_abs": 0.563909292, + "mean_abs": 0.0132873052, + "psnr_db": 51.6421136, + "ref_absmax": 3.37391257, + "rel_max": 0.167138087, + "scaled_max_abs": 0.167138087 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.blocks.0", + "ungated_probes": { + "band_ratio": 7.76009528, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.922399047, + "finite": true, + "max_abs": 8.33901, + "mean_abs": 0.197910372, + "psnr_db": 30.8112213, + "ref_absmax": 10.7195148, + "rel_max": 0.77792793, + "scaled_max_abs": 0.77792793 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 0.11269421, + "index": 4, + "metrics": { + "corr": 0.999465987, + "finite": true, + "max_abs": 0.538864851, + "mean_abs": 0.0180941164, + "psnr_db": 48.961968, + "ref_absmax": 3.30819559, + "rel_max": 0.162887845, + "scaled_max_abs": 0.162887845 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.blocks.1", + "ungated_probes": { + "band_ratio": 7.23986722, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.927601328, + "finite": true, + "max_abs": 8.3160913, + "mean_abs": 0.210022498, + "psnr_db": 30.9474178, + "ref_absmax": 11.0036087, + "rel_max": 0.755760362, + "scaled_max_abs": 0.755760362 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 14.1141111, + "index": 5, + "metrics": { + "corr": 0.858858889, + "finite": true, + "max_abs": 3.19672269, + "mean_abs": 0.388794275, + "psnr_db": 21.5752979, + "ref_absmax": 3.45072269, + "rel_max": 0.926392228, + "scaled_max_abs": 0.926392228 + }, + "op": { + "candidates": 12, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.blocks.2", + "ungated_probes": { + "band_ratio": 23.8161093, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.761838907, + "finite": true, + "max_abs": 11.0941283, + "mean_abs": 0.96522814, + "psnr_db": 23.9624478, + "ref_absmax": 11.3481283, + "rel_max": 0.977617454, + "scaled_max_abs": 0.977617454 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 7 + } + }, + { + "band_ratio": 13.0000065, + "index": 6, + "metrics": { + "corr": 0.869999935, + "finite": true, + "max_abs": 2.74614632, + "mean_abs": 0.421565815, + "psnr_db": 23.2741361, + "ref_absmax": 3.74819756, + "rel_max": 0.732657839, + "scaled_max_abs": 0.732657839 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.norm", + "ungated_probes": { + "band_ratio": 16.0906237, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.839093763, + "finite": true, + "max_abs": 3.04598176, + "mean_abs": 0.47386673, + "psnr_db": 22.8176966, + "ref_absmax": 4.11107635, + "rel_max": 0.740920747, + "scaled_max_abs": 0.740920747 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 3 + } + }, + { + "band_ratio": 1.87965574, + "index": 7, + "metrics": { + "corr": 0.981203443, + "finite": true, + "max_abs": 0.937689185, + "mean_abs": 0.0761060929, + "psnr_db": 30.0535451, + "ref_absmax": 2.0205965, + "rel_max": 0.464065529, + "scaled_max_abs": 0.464065529 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/ReduceMean_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.pool", + "ungated_probes": { + "band_ratio": 10.5036, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.894964, + "finite": true, + "max_abs": 1.18562615, + "mean_abs": 0.173835427, + "psnr_db": 23.8703666, + "ref_absmax": 2.21577096, + "rel_max": 0.535085156, + "scaled_max_abs": 0.535085156 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 11 + } + }, + { + "band_ratio": 1.87307033, + "index": 8, + "metrics": { + "corr": 0.981269297, + "finite": true, + "max_abs": 0.237875938, + "mean_abs": 0.0537202036, + "psnr_db": 27.5676601, + "ref_absmax": 0.857067645, + "rel_max": 0.277546282, + "scaled_max_abs": 0.237875938 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "ungated_probes": { + "band_ratio": 10.2998939, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.897001061, + "finite": true, + "max_abs": 0.546399824, + "mean_abs": 0.10731858, + "psnr_db": 23.028192, + "ref_absmax": 1.26606846, + "rel_max": 0.431572101, + "scaled_max_abs": 0.431572101 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 2 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.90625, + "band_ratio": 2.36325125, + "metrics": { + "corr": 0.976367488, + "finite": true, + "max_abs": 0.222067237, + "mean_abs": 0.0630188864, + "psnr_db": 26.5871032, + "ref_absmax": 0.915185452, + "rel_max": 0.242647254, + "scaled_max_abs": 0.222067237 + }, + "status": "fail", + "ungated_probes": { + "band_ratio": 12.1704283, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.878295717, + "finite": true, + "max_abs": 0.555726051, + "mean_abs": 0.106710896, + "psnr_db": 22.691468, + "ref_absmax": 1.34452486, + "rel_max": 0.413325233, + "scaled_max_abs": 0.413325233 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 11 + } + }, + "first_fail_index": 5, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "gated_categories_only": [ + "natural" + ], + "n_gated": 16 + }, + "tap": { + "gated_categories_only": [ + "natural" + ], + "n_gated": 16 + } + }, + "taps": [ + { + "band_ratio": 0.0358907272, + "index": 0, + "metrics": { + "corr": 0.999978106, + "finite": true, + "max_abs": 0.009329319, + "mean_abs": 0.00467719955, + "psnr_db": 58.9003548, + "ref_absmax": 2.6400001, + "rel_max": 0.00353383281, + "scaled_max_abs": 0.00353383281 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 6.36551683, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.936344832, + "finite": true, + "max_abs": 8.8980484, + "mean_abs": 0.261245939, + "psnr_db": 22.8630328, + "ref_absmax": 11.5288897, + "rel_max": 0.771804455, + "scaled_max_abs": 0.771804455 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 0.0418300822, + "index": 1, + "metrics": { + "corr": 0.999905183, + "finite": true, + "max_abs": 0.106314421, + "mean_abs": 0.00547950275, + "psnr_db": 57.5702256, + "ref_absmax": 2.51361132, + "rel_max": 0.0422954894, + "scaled_max_abs": 0.0422954894 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.patch_embed", + "ungated_probes": { + "band_ratio": 7.48316443, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.925168356, + "finite": true, + "max_abs": 9.47746062, + "mean_abs": 0.162196178, + "psnr_db": 32.0121697, + "ref_absmax": 11.871088, + "rel_max": 0.798364952, + "scaled_max_abs": 0.798364952 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 0.0590947092, + "index": 2, + "metrics": { + "corr": 0.99984699, + "finite": true, + "max_abs": 0.1168468, + "mean_abs": 0.00838101614, + "psnr_db": 54.569028, + "ref_absmax": 2.79103851, + "rel_max": 0.0418649901, + "scaled_max_abs": 0.0418649901 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.pos_embed", + "ungated_probes": { + "band_ratio": 7.16379193, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.928362081, + "finite": true, + "max_abs": 9.47997499, + "mean_abs": 0.164626639, + "psnr_db": 31.950795, + "ref_absmax": 11.574873, + "rel_max": 0.819013307, + "scaled_max_abs": 0.819013307 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 0.100717831, + "index": 3, + "metrics": { + "corr": 0.999559201, + "finite": true, + "max_abs": 0.125920534, + "mean_abs": 0.0152224735, + "psnr_db": 49.9378728, + "ref_absmax": 3.084939, + "rel_max": 0.0408178359, + "scaled_max_abs": 0.0408178359 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.blocks.0", + "ungated_probes": { + "band_ratio": 6.74575568, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.932542443, + "finite": true, + "max_abs": 9.50604749, + "mean_abs": 0.184758788, + "psnr_db": 32.170337, + "ref_absmax": 11.8945894, + "rel_max": 0.799190888, + "scaled_max_abs": 0.799190888 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 0.137345515, + "index": 4, + "metrics": { + "corr": 0.999275347, + "finite": true, + "max_abs": 0.168433055, + "mean_abs": 0.0216399126, + "psnr_db": 47.2437104, + "ref_absmax": 3.30478835, + "rel_max": 0.0509663668, + "scaled_max_abs": 0.0509663668 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.blocks.1", + "ungated_probes": { + "band_ratio": 6.28186697, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.93718133, + "finite": true, + "max_abs": 9.48718929, + "mean_abs": 0.195894798, + "psnr_db": 32.2604921, + "ref_absmax": 12.1536217, + "rel_max": 0.780605942, + "scaled_max_abs": 0.780605942 + }, + "n_probes": 16 + } + }, + { + "band_ratio": 13.9460763, + "index": 5, + "metrics": { + "corr": 0.860539237, + "finite": true, + "max_abs": 3.09171289, + "mean_abs": 0.396083391, + "psnr_db": 21.0814401, + "ref_absmax": 3.3457129, + "rel_max": 0.924081947, + "scaled_max_abs": 0.924081947 + }, + "op": { + "candidates": 12, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.blocks.2", + "ungated_probes": { + "band_ratio": 23.1360917, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.768639083, + "finite": true, + "max_abs": 12.2560155, + "mean_abs": 0.96507794, + "psnr_db": 24.6021863, + "ref_absmax": 12.5100155, + "rel_max": 0.979696267, + "scaled_max_abs": 0.979696267 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 11 + } + }, + { + "band_ratio": 12.9413219, + "index": 6, + "metrics": { + "corr": 0.870586781, + "finite": true, + "max_abs": 3.18892252, + "mean_abs": 0.42098463, + "psnr_db": 23.951698, + "ref_absmax": 4.19843721, + "rel_max": 0.75954989, + "scaled_max_abs": 0.75954989 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.norm", + "ungated_probes": { + "band_ratio": 15.8858566, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.841141434, + "finite": true, + "max_abs": 3.03719676, + "mean_abs": 0.473669282, + "psnr_db": 22.8294071, + "ref_absmax": 4.10980606, + "rel_max": 0.739012185, + "scaled_max_abs": 0.739012185 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 5 + } + }, + { + "band_ratio": 1.93018581, + "index": 7, + "metrics": { + "corr": 0.980698142, + "finite": true, + "max_abs": 0.80303371, + "mean_abs": 0.0832160247, + "psnr_db": 28.8316148, + "ref_absmax": 1.86660826, + "rel_max": 0.430210091, + "scaled_max_abs": 0.430210091 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/ReduceMean_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.pool", + "ungated_probes": { + "band_ratio": 10.4655033, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.895344967, + "finite": true, + "max_abs": 1.1725657, + "mean_abs": 0.175525294, + "psnr_db": 23.833575, + "ref_absmax": 2.22176766, + "rel_max": 0.527762519, + "scaled_max_abs": 0.527762519 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_ratio": 2.36325125, + "index": 8, + "metrics": { + "corr": 0.976367488, + "finite": true, + "max_abs": 0.222067237, + "mean_abs": 0.0630188864, + "psnr_db": 26.5871032, + "ref_absmax": 0.915185452, + "rel_max": 0.242647254, + "scaled_max_abs": 0.222067237 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "ungated_probes": { + "band_ratio": 12.1704283, + "categories": [ + "near_zero", + "saturating", + "uniform", + "wide_range" + ], + "metrics": { + "corr": 0.878295717, + "finite": true, + "max_abs": 0.555726051, + "mean_abs": 0.106710896, + "psnr_db": 22.691468, + "ref_absmax": 1.34452486, + "rel_max": 0.413325233, + "scaled_max_abs": 0.413325233 + }, + "n_probes": 16 + }, + "worst_probe": { + "category": "natural", + "index": 11 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "int8", + "id": "tinyvit__int8_override_blocks_2__onnx_int8", + "model": "tinyvit", + "path": "onnx", + "variant": "int8_override_blocks_2" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/tinyvit__interp_mode__coreml_fp16.json b/bench/verdicts_calibrated4/tinyvit__interp_mode__coreml_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..69750ce60b77ff752a6c2d394b43444cceb6829e --- /dev/null +++ b/bench/verdicts_calibrated4/tinyvit__interp_mode__coreml_fp16.json @@ -0,0 +1,882 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "baseline": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "faithful_output_rel_max": 0.00402825966, + "output_band": 0.01, + "source": { + "bundle": "bundles/tinyvit__clean__coreml_fp16.json", + "case": "tinyvit__clean__coreml_fp16", + "digests": { + "192": { + "converted": "0035167ec9cc06c61986ca2249819ae1510c5a12aad7eaf510988220c7579aa5", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "5430fd6da54612ccdc73a3180116c0a8d19224ecfcc7ca2d7ce9df494c8307f9", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + } + } + }, + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "at": "net.pos_embed", + "band_limit": 0.0291545566, + "explained_by": null, + "nominal_band_ratio": 4.33133781, + "results": [ + { + "band_ratio": 36.921621, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 26.9482967, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 55.3221247, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 49.8461159, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 48.9455988, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [ + "inputs[0]: dtype float16 (declared float32)", + "outputs[0]: dtype float16 (declared float32)" + ], + "status": "precision_narrowing" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "input_5_cast_fp16", + "basis": "earliest tap over band with in-band predecessors (fp16: the tap's faithful envelope gates, C3-1)", + "index": 2, + "neighbourhood": [ + { + "band_ratio": 0.277047602, + "index": 1, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_5_cast_fp16" + }, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_ratio": 1.51710029, + "index": 2, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5_cast_fp16" + }, + "status": "fail", + "tap": "net.pos_embed" + }, + { + "band_ratio": 1.86540762, + "index": 3, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_17_cast_fp16" + }, + "status": "fail", + "tap": "net.blocks.0" + } + ], + "shape": 224, + "tap": "net.pos_embed" + }, + "fp16_floor": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "baseline": { + "bundle": "bundles/tinyvit__clean__coreml_fp16.json", + "case": "tinyvit__clean__coreml_fp16", + "digests": { + "192": { + "converted": "0035167ec9cc06c61986ca2249819ae1510c5a12aad7eaf510988220c7579aa5", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "5430fd6da54612ccdc73a3180116c0a8d19224ecfcc7ca2d7ce9df494c8307f9", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + } + }, + "envelopes_gate": true, + "faithful_output_rel_max": 0.00402825966, + "faithful_tap_rel_max": { + "net.blocks.0": 0.0144004222, + "net.blocks.1": 0.0145278434, + "net.blocks.2": 0.0134661694, + "net.head": 0.00402825966, + "net.norm": 0.00711003077, + "net.patch_embed": 0.0147449007, + "net.pool": 0.00501150413, + "net.pos_embed": 0.0145772783, + "normalize": 0.00117570499 + }, + "floor": 0.01, + "k": 2.0, + "output_band": 0.01, + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used", + "tap_envelopes": { + "net.blocks.0": 0.0288008444, + "net.blocks.1": 0.0290556867, + "net.blocks.2": 0.0269323389, + "net.head": 0.01, + "net.norm": 0.0142200615, + "net.patch_embed": 0.0294898015, + "net.pool": 0.0100230083, + "net.pos_embed": 0.0291545566, + "normalize": 0.01 + } + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "f40ca31d9a69db6086b871b2b0323e30620d56ca5787b72f2393785cd07ee0d0", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "d934f1163a95bbc677ee739a6ddca0bd5761a58e022b8ae2dcf664b6c8acdd4a", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D2", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_limit": 0.01, + "band_ratio": 2.57790155, + "metrics": { + "corr": 0.999604141, + "finite": true, + "max_abs": 0.0326379985, + "mean_abs": 0.00866685933, + "psnr_db": 46.9656823, + "ref_absmax": 1.26606846, + "rel_max": 0.0257790155, + "scaled_max_abs": 0.0257790155 + }, + "per_op_band_ratio": 2.57790155, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + "first_fail_index": 2, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 0.117570499, + "index": 0, + "metrics": { + "corr": 0.999999914, + "finite": true, + "max_abs": 0.0135545731, + "mean_abs": 0.000674526699, + "psnr_db": 83.5827466, + "ref_absmax": 11.5288897, + "rel_max": 0.00117570499, + "scaled_max_abs": 0.00117570499 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "per_op_band_ratio": 0.117570499, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.0294898015, + "band_ratio": 0.5, + "index": 1, + "metrics": { + "corr": 0.999991394, + "finite": true, + "max_abs": 0.159186363, + "mean_abs": 0.00251833586, + "psnr_db": 73.8085669, + "ref_absmax": 10.7960281, + "rel_max": 0.0147449007, + "scaled_max_abs": 0.0147449007 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_5_cast_fp16" + }, + "per_op_band_ratio": 1.47449007, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_limit": 0.0291545566, + "band_ratio": 1.31588247, + "index": 2, + "metrics": { + "corr": 0.997649496, + "finite": true, + "max_abs": 0.413349152, + "mean_abs": 0.0548370858, + "psnr_db": 48.8899811, + "ref_absmax": 10.7744102, + "rel_max": 0.03836397, + "scaled_max_abs": 0.03836397 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5_cast_fp16" + }, + "per_op_band_ratio": 3.836397, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "wide_range", + "index": 20 + } + }, + { + "band_limit": 0.0288008444, + "band_ratio": 1.44908901, + "index": 3, + "metrics": { + "corr": 0.997621642, + "finite": true, + "max_abs": 0.447378814, + "mean_abs": 0.0574262695, + "psnr_db": 48.5923074, + "ref_absmax": 10.7195148, + "rel_max": 0.0417349871, + "scaled_max_abs": 0.0417349871 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_17_cast_fp16" + }, + "per_op_band_ratio": 4.17349871, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "natural", + "index": 12 + } + }, + { + "band_limit": 0.0290556867, + "band_ratio": 1.57921058, + "index": 4, + "metrics": { + "corr": 0.997658817, + "finite": true, + "max_abs": 0.504901111, + "mean_abs": 0.0597642949, + "psnr_db": 48.4185543, + "ref_absmax": 11.0036087, + "rel_max": 0.0458850478, + "scaled_max_abs": 0.0458850478 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_29_cast_fp16" + }, + "per_op_band_ratio": 4.58850478, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "natural", + "index": 5 + } + }, + { + "band_limit": 0.0269323389, + "band_ratio": 1.83851505, + "index": 5, + "metrics": { + "corr": 0.99766508, + "finite": true, + "max_abs": 0.561908364, + "mean_abs": 0.0617786933, + "psnr_db": 48.4018797, + "ref_absmax": 11.3481283, + "rel_max": 0.0495155103, + "scaled_max_abs": 0.0495155103 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_41_cast_fp16" + }, + "per_op_band_ratio": 4.95155103, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_limit": 0.0142200615, + "band_ratio": 17.5023063, + "index": 6, + "metrics": { + "corr": 0.994816824, + "finite": true, + "max_abs": 1.0231806, + "mean_abs": 0.0670779251, + "psnr_db": 37.7363868, + "ref_absmax": 4.11107635, + "rel_max": 0.248883873, + "scaled_max_abs": 0.248883873 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "per_op_band_ratio": 24.8883873, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_limit": 0.0100230083, + "band_ratio": 3.89651637, + "index": 7, + "metrics": { + "corr": 0.999611665, + "finite": true, + "max_abs": 0.0865365267, + "mean_abs": 0.0122920916, + "psnr_db": 48.1017814, + "ref_absmax": 2.21577096, + "rel_max": 0.0390548158, + "scaled_max_abs": 0.0390548158 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_cast_fp16" + }, + "per_op_band_ratio": 3.90548158, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_limit": 0.01, + "band_ratio": 2.57790155, + "index": 8, + "metrics": { + "corr": 0.999604141, + "finite": true, + "max_abs": 0.0326379985, + "mean_abs": 0.00866685933, + "psnr_db": 46.9656823, + "ref_absmax": 1.26606846, + "rel_max": 0.0257790155, + "scaled_max_abs": 0.0257790155 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "per_op_band_ratio": 2.57790155, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "natural", + "index": 0 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.96875, + "band_limit": 0.01, + "band_ratio": 3.03553151, + "metrics": { + "corr": 0.999331084, + "finite": true, + "max_abs": 0.0408134758, + "mean_abs": 0.0110726049, + "psnr_db": 45.1831116, + "ref_absmax": 1.34452486, + "rel_max": 0.0303553151, + "scaled_max_abs": 0.0303553151 + }, + "per_op_band_ratio": 3.03553151, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 3 + } + }, + "first_fail_index": 2, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 0.116213884, + "index": 0, + "metrics": { + "corr": 0.999999912, + "finite": true, + "max_abs": 0.0133981705, + "mean_abs": 0.000679588388, + "psnr_db": 83.6184843, + "ref_absmax": 11.5288897, + "rel_max": 0.00116213884, + "scaled_max_abs": 0.00116213884 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "per_op_band_ratio": 0.116213884, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.0294898015, + "band_ratio": 0.277047602, + "index": 1, + "metrics": { + "corr": 0.999991415, + "finite": true, + "max_abs": 0.0969877243, + "mean_abs": 0.00250771621, + "psnr_db": 74.367951, + "ref_absmax": 11.871088, + "rel_max": 0.00817007877, + "scaled_max_abs": 0.00817007877 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_5_cast_fp16" + }, + "per_op_band_ratio": 0.817007877, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_limit": 0.0291545566, + "band_ratio": 1.51710029, + "index": 2, + "metrics": { + "corr": 0.995696267, + "finite": true, + "max_abs": 0.511961102, + "mean_abs": 0.0749137392, + "psnr_db": 46.8699448, + "ref_absmax": 11.574873, + "rel_max": 0.0442303863, + "scaled_max_abs": 0.0442303863 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5_cast_fp16" + }, + "per_op_band_ratio": 4.42303863, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "natural", + "index": 14 + } + }, + { + "band_limit": 0.0288008444, + "band_ratio": 1.86540762, + "index": 3, + "metrics": { + "corr": 0.995705503, + "finite": true, + "max_abs": 0.63904056, + "mean_abs": 0.0783675331, + "psnr_db": 46.8205304, + "ref_absmax": 11.8945894, + "rel_max": 0.0537253147, + "scaled_max_abs": 0.0537253147 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_17_cast_fp16" + }, + "per_op_band_ratio": 5.37253147, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "natural", + "index": 12 + } + }, + { + "band_limit": 0.0290556867, + "band_ratio": 1.85432227, + "index": 4, + "metrics": { + "corr": 0.995815854, + "finite": true, + "max_abs": 0.654820204, + "mean_abs": 0.0813125394, + "psnr_db": 46.6501865, + "ref_absmax": 12.1536217, + "rel_max": 0.0538786068, + "scaled_max_abs": 0.0538786068 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_29_cast_fp16" + }, + "per_op_band_ratio": 5.38786068, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "natural", + "index": 12 + } + }, + { + "band_limit": 0.0269323389, + "band_ratio": 2.06326653, + "index": 5, + "metrics": { + "corr": 0.995845882, + "finite": true, + "max_abs": 0.695163965, + "mean_abs": 0.083897053, + "psnr_db": 46.4872647, + "ref_absmax": 12.5100155, + "rel_max": 0.0555685935, + "scaled_max_abs": 0.0555685935 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_41_cast_fp16" + }, + "per_op_band_ratio": 5.55685935, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "natural", + "index": 2 + } + }, + { + "band_limit": 0.0142200615, + "band_ratio": 19.7714505, + "index": 6, + "metrics": { + "corr": 0.991444696, + "finite": true, + "max_abs": 1.18039584, + "mean_abs": 0.0885903496, + "psnr_db": 35.7483922, + "ref_absmax": 4.19843721, + "rel_max": 0.281151243, + "scaled_max_abs": 0.281151243 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "per_op_band_ratio": 28.1151243, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "natural", + "index": 9 + } + }, + { + "band_limit": 0.0100230083, + "band_ratio": 4.08862601, + "index": 7, + "metrics": { + "corr": 0.999516419, + "finite": true, + "max_abs": 0.0910487771, + "mean_abs": 0.0138490313, + "psnr_db": 47.0775486, + "ref_absmax": 2.22176766, + "rel_max": 0.0409803323, + "scaled_max_abs": 0.0409803323 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_cast_fp16" + }, + "per_op_band_ratio": 4.09803323, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "natural", + "index": 3 + } + }, + { + "band_limit": 0.01, + "band_ratio": 3.03553151, + "index": 8, + "metrics": { + "corr": 0.999331084, + "finite": true, + "max_abs": 0.0408134758, + "mean_abs": 0.0110726049, + "psnr_db": 45.1831116, + "ref_absmax": 1.34452486, + "rel_max": 0.0303553151, + "scaled_max_abs": 0.0303553151 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "per_op_band_ratio": 3.03553151, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "natural", + "index": 3 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp16", + "id": "tinyvit__interp_mode__coreml_fp16", + "model": "tinyvit", + "path": "coreml", + "variant": "interp_mode" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/tinyvit__interp_mode__coreml_fp32.json b/bench/verdicts_calibrated4/tinyvit__interp_mode__coreml_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..f4cc855d0485319aefbe7654a87c336f7bc045a2 --- /dev/null +++ b/bench/verdicts_calibrated4/tinyvit__interp_mode__coreml_fp32.json @@ -0,0 +1,1086 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "at": "net.pos_embed", + "explained_by": null, + "nominal_band_ratio": 1254.76091, + "results": [ + { + "band_ratio": 10754.6959, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 7856.00151, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 16149.995, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 14534.1529, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 14281.7138, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "input_5", + "basis": "earliest tap over band with in-band predecessors", + "index": 2, + "neighbourhood": [ + { + "band_ratio": 0.00321343524, + "index": 1, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_5" + }, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_ratio": 438.909013, + "index": 2, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5" + }, + "status": "fail", + "tap": "net.pos_embed" + }, + { + "band_ratio": 536.358119, + "index": 3, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_17" + }, + "status": "fail", + "tap": "net.blocks.0" + } + ], + "shape": 224, + "tap": "net.pos_embed" + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "32623dfc00246e733bb84baad84c13487c0b906a9c2dc6796c0e3c686eebd55c", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "7db3f5733121a3832e6e77b9dd6a54b9110c5b96b1bd2745eaf0928112117562", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "fp32 per-tap band on near-zero probes", + "reason": "C3-2: per-tap fp32 checks gate without the near_zero probes; they are measured and reported per tap ('ungated_probes'); the output gates on all probes. C4-1: when the output has failed and no gated tap fails, they localise the first divergence (earliest tap over band on all probes)" + }, + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D2", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 262.83103, + "metrics": { + "corr": 0.999607851, + "finite": true, + "max_abs": 0.0332762077, + "mean_abs": 0.00855524068, + "psnr_db": 46.99734, + "ref_absmax": 1.26606846, + "rel_max": 0.026283103, + "scaled_max_abs": 0.026283103 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + "first_fail_index": 2, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.06644368e-08, + "psnr_db": 164.113247, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.00112572895, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.38418579e-07, + "mean_abs": 4.66593688e-08, + "psnr_db": 130.397207, + "ref_absmax": 2.11790395, + "rel_max": 1.12572895e-07, + "scaled_max_abs": 1.12572895e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00441678321, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 9.88855124e-08, + "psnr_db": 161.464618, + "ref_absmax": 10.7960281, + "rel_max": 4.41678321e-07, + "scaled_max_abs": 4.41678321e-07 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_5" + }, + "status": "pass", + "tap": "net.patch_embed", + "ungated_probes": { + "band_ratio": 0.00474265635, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.1920929e-06, + "mean_abs": 1.5130268e-07, + "psnr_db": 147.535676, + "ref_absmax": 2.51355529, + "rel_max": 4.74265635e-07, + "scaled_max_abs": 4.74265635e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 369.92352, + "index": 2, + "metrics": { + "corr": 0.997613654, + "finite": true, + "max_abs": 0.398570776, + "mean_abs": 0.0546367106, + "psnr_db": 48.9000837, + "ref_absmax": 10.7744102, + "rel_max": 0.036992352, + "scaled_max_abs": 0.036992352 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5" + }, + "status": "fail", + "tap": "net.pos_embed", + "ungated_probes": { + "band_ratio": 1037.16864, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.997903561, + "finite": true, + "max_abs": 0.398570895, + "mean_abs": 0.0546367124, + "psnr_db": 39.5979142, + "ref_absmax": 3.84287453, + "rel_max": 0.103716864, + "scaled_max_abs": 0.103716864 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 13 + } + }, + { + "band_ratio": 417.110858, + "index": 3, + "metrics": { + "corr": 0.997521419, + "finite": true, + "max_abs": 0.447122604, + "mean_abs": 0.0574875492, + "psnr_db": 48.5670498, + "ref_absmax": 10.7195148, + "rel_max": 0.0417110858, + "scaled_max_abs": 0.0417110858 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_17" + }, + "status": "fail", + "tap": "net.blocks.0", + "ungated_probes": { + "band_ratio": 891.335762, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.998195608, + "finite": true, + "max_abs": 0.399680287, + "mean_abs": 0.0556483064, + "psnr_db": 40.651243, + "ref_absmax": 4.48405981, + "rel_max": 0.0891335762, + "scaled_max_abs": 0.0891335762 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 9 + } + }, + { + "band_ratio": 457.495648, + "index": 4, + "metrics": { + "corr": 0.997479979, + "finite": true, + "max_abs": 0.50341031, + "mean_abs": 0.0600568845, + "psnr_db": 48.3619384, + "ref_absmax": 11.0036087, + "rel_max": 0.0457495648, + "scaled_max_abs": 0.0457495648 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_29" + }, + "status": "fail", + "tap": "net.blocks.1", + "ungated_probes": { + "band_ratio": 840.479044, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.998516098, + "finite": true, + "max_abs": 0.395782232, + "mean_abs": 0.0563414572, + "psnr_db": 40.8867885, + "ref_absmax": 4.70900774, + "rel_max": 0.0840479044, + "scaled_max_abs": 0.0840479044 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 5 + } + }, + { + "band_ratio": 495.423814, + "index": 5, + "metrics": { + "corr": 0.997422076, + "finite": true, + "max_abs": 0.562213302, + "mean_abs": 0.0622698052, + "psnr_db": 48.3213741, + "ref_absmax": 11.3481283, + "rel_max": 0.0495423814, + "scaled_max_abs": 0.0495423814 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_41" + }, + "status": "fail", + "tap": "net.blocks.2", + "ungated_probes": { + "band_ratio": 902.632946, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.998707709, + "finite": true, + "max_abs": 0.421724439, + "mean_abs": 0.0569878476, + "psnr_db": 41.1034075, + "ref_absmax": 4.67215872, + "rel_max": 0.0902632946, + "scaled_max_abs": 0.0902632946 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_ratio": 2489.96853, + "index": 6, + "metrics": { + "corr": 0.994257127, + "finite": true, + "max_abs": 1.02364507, + "mean_abs": 0.0713979086, + "psnr_db": 37.2910633, + "ref_absmax": 4.11107635, + "rel_max": 0.248996853, + "scaled_max_abs": 0.248996853 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x" + }, + "status": "fail", + "tap": "net.norm", + "ungated_probes": { + "band_ratio": 930.957408, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.99874348, + "finite": true, + "max_abs": 0.259535909, + "mean_abs": 0.0360686877, + "psnr_db": 40.6847331, + "ref_absmax": 2.7878387, + "rel_max": 0.0930957408, + "scaled_max_abs": 0.0930957408 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_ratio": 437.453599, + "index": 7, + "metrics": { + "corr": 0.999428393, + "finite": true, + "max_abs": 0.0883917212, + "mean_abs": 0.0131344178, + "psnr_db": 46.9039258, + "ref_absmax": 2.0205965, + "rel_max": 0.0437453599, + "scaled_max_abs": 0.0437453599 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_1" + }, + "status": "fail", + "tap": "net.pool", + "ungated_probes": { + "band_ratio": 68.5066966, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999977932, + "finite": true, + "max_abs": 0.0151795149, + "mean_abs": 0.00567641875, + "psnr_db": 56.165745, + "ref_absmax": 2.21577096, + "rel_max": 0.00685066966, + "scaled_max_abs": 0.00685066966 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_ratio": 262.83103, + "index": 8, + "metrics": { + "corr": 0.999412991, + "finite": true, + "max_abs": 0.0332762077, + "mean_abs": 0.00930474628, + "psnr_db": 45.0042453, + "ref_absmax": 1.26606846, + "rel_max": 0.026283103, + "scaled_max_abs": 0.026283103 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "ungated_probes": { + "band_ratio": 63.2716743, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999972618, + "finite": true, + "max_abs": 0.00706076622, + "mean_abs": 0.00330870152, + "psnr_db": 52.0401837, + "ref_absmax": 1.11594427, + "rel_max": 0.00632716743, + "scaled_max_abs": 0.00632716743 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 0 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.96875, + "band_ratio": 307.261915, + "metrics": { + "corr": 0.999338176, + "finite": true, + "max_abs": 0.0413121283, + "mean_abs": 0.0109561385, + "psnr_db": 45.2159116, + "ref_absmax": 1.34452486, + "rel_max": 0.0307261915, + "scaled_max_abs": 0.0307261915 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 13 + } + }, + "first_fail_index": 2, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.08107465e-08, + "psnr_db": 164.245493, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.00112572895, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.38418579e-07, + "mean_abs": 4.66724468e-08, + "psnr_db": 130.436578, + "ref_absmax": 2.11790395, + "rel_max": 1.12572895e-07, + "scaled_max_abs": 1.12572895e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00321343524, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.81469727e-06, + "mean_abs": 1.00363271e-07, + "psnr_db": 161.89068, + "ref_absmax": 11.871088, + "rel_max": 3.21343524e-07, + "scaled_max_abs": 3.21343524e-07 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_5" + }, + "status": "pass", + "tap": "net.patch_embed", + "ungated_probes": { + "band_ratio": 0.0066369653, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.66893005e-06, + "mean_abs": 1.54185654e-07, + "psnr_db": 147.371009, + "ref_absmax": 2.51459813, + "rel_max": 6.6369653e-07, + "scaled_max_abs": 6.6369653e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 438.909013, + "index": 2, + "metrics": { + "corr": 0.995620418, + "finite": true, + "max_abs": 0.508031607, + "mean_abs": 0.0747664701, + "psnr_db": 46.8738159, + "ref_absmax": 11.574873, + "rel_max": 0.0438909013, + "scaled_max_abs": 0.0438909013 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5" + }, + "status": "fail", + "tap": "net.pos_embed", + "ungated_probes": { + "band_ratio": 1367.5323, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.996180131, + "finite": true, + "max_abs": 0.508031487, + "mean_abs": 0.0747664719, + "psnr_db": 36.8766071, + "ref_absmax": 3.71495056, + "rel_max": 0.13675323, + "scaled_max_abs": 0.13675323 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 2 + } + }, + { + "band_ratio": 536.358119, + "index": 3, + "metrics": { + "corr": 0.995523483, + "finite": true, + "max_abs": 0.637975961, + "mean_abs": 0.0785461979, + "psnr_db": 46.7923383, + "ref_absmax": 11.8945894, + "rel_max": 0.0536358119, + "scaled_max_abs": 0.0536358119 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_17" + }, + "status": "fail", + "tap": "net.blocks.0", + "ungated_probes": { + "band_ratio": 1165.1826, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.996712914, + "finite": true, + "max_abs": 0.523087621, + "mean_abs": 0.0762098492, + "psnr_db": 37.9317577, + "ref_absmax": 4.48931885, + "rel_max": 0.11651826, + "scaled_max_abs": 0.11651826 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 12 + } + }, + { + "band_ratio": 538.933932, + "index": 4, + "metrics": { + "corr": 0.995501476, + "finite": true, + "max_abs": 0.654999912, + "mean_abs": 0.08179063, + "psnr_db": 46.59278, + "ref_absmax": 12.1536217, + "rel_max": 0.0538933932, + "scaled_max_abs": 0.0538933932 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_29" + }, + "status": "fail", + "tap": "net.blocks.1", + "ungated_probes": { + "band_ratio": 1146.16104, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.997303197, + "finite": true, + "max_abs": 0.540332258, + "mean_abs": 0.0770149734, + "psnr_db": 38.2258388, + "ref_absmax": 4.7142787, + "rel_max": 0.114616104, + "scaled_max_abs": 0.114616104 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 13 + } + }, + { + "band_ratio": 557.120447, + "index": 5, + "metrics": { + "corr": 0.995421312, + "finite": true, + "max_abs": 0.696958542, + "mean_abs": 0.0846137328, + "psnr_db": 46.4082946, + "ref_absmax": 12.5100155, + "rel_max": 0.0557120447, + "scaled_max_abs": 0.0557120447 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_41" + }, + "status": "fail", + "tap": "net.blocks.2", + "ungated_probes": { + "band_ratio": 1252.376, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.997652581, + "finite": true, + "max_abs": 0.585783675, + "mean_abs": 0.0778991011, + "psnr_db": 38.3976407, + "ref_absmax": 4.67737865, + "rel_max": 0.1252376, + "scaled_max_abs": 0.1252376 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 2 + } + }, + { + "band_ratio": 2800.6947, + "index": 6, + "metrics": { + "corr": 0.990541942, + "finite": true, + "max_abs": 1.17585409, + "mean_abs": 0.0941455651, + "psnr_db": 35.3127301, + "ref_absmax": 4.19843721, + "rel_max": 0.28006947, + "scaled_max_abs": 0.28006947 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x" + }, + "status": "fail", + "tap": "net.norm", + "ungated_probes": { + "band_ratio": 1291.4221, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.997740809, + "finite": true, + "max_abs": 0.353359729, + "mean_abs": 0.0491538277, + "psnr_db": 37.9864974, + "ref_absmax": 2.73620629, + "rel_max": 0.12914221, + "scaled_max_abs": 0.12914221 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 9 + } + }, + { + "band_ratio": 435.347651, + "index": 7, + "metrics": { + "corr": 0.999307691, + "finite": true, + "max_abs": 0.09142977, + "mean_abs": 0.0147528287, + "psnr_db": 46.0955437, + "ref_absmax": 2.10015535, + "rel_max": 0.0435347651, + "scaled_max_abs": 0.0435347651 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_1" + }, + "status": "fail", + "tap": "net.pool", + "ungated_probes": { + "band_ratio": 105.279463, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999960559, + "finite": true, + "max_abs": 0.0233906507, + "mean_abs": 0.006970595, + "psnr_db": 53.7962958, + "ref_absmax": 2.22176766, + "rel_max": 0.0105279463, + "scaled_max_abs": 0.0105279463 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 3 + } + }, + { + "band_ratio": 307.261915, + "index": 8, + "metrics": { + "corr": 0.999019541, + "finite": true, + "max_abs": 0.0413121283, + "mean_abs": 0.0116832158, + "psnr_db": 43.3600352, + "ref_absmax": 1.34452486, + "rel_max": 0.0307261915, + "scaled_max_abs": 0.0307261915 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "ungated_probes": { + "band_ratio": 98.3261143, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999922323, + "finite": true, + "max_abs": 0.0110055506, + "mean_abs": 0.00586659759, + "psnr_db": 47.8934106, + "ref_absmax": 1.11929071, + "rel_max": 0.00983261143, + "scaled_max_abs": 0.00983261143 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 13 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp32", + "id": "tinyvit__interp_mode__coreml_fp32", + "model": "tinyvit", + "path": "coreml", + "variant": "interp_mode" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/tinyvit__interp_mode__litert_fp16.json b/bench/verdicts_calibrated4/tinyvit__interp_mode__litert_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..284406c781f6578dee3664de29e583e33b93b663 --- /dev/null +++ b/bench/verdicts_calibrated4/tinyvit__interp_mode__litert_fp16.json @@ -0,0 +1,908 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "baseline": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "faithful_output_rel_max": 0.000208557898, + "output_band": 0.01, + "source": { + "bundle": "bundles/tinyvit__clean__litert_fp16.json", + "case": "tinyvit__clean__litert_fp16", + "digests": { + "192": { + "converted": "170133fb2c750896c9b9cfaed4c8aab6b2e92dd28e9a0114b604c6d35736d93d", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "e6f67f478f27c5cbe93fb3192583b8c4adeb54f48117f07895a6c68beeb1c827", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + } + } + }, + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "at": "net.pos_embed", + "band_limit": 0.01, + "explained_by": null, + "nominal_band_ratio": 12.5508861, + "results": [ + { + "band_ratio": 107.550763, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 78.5578275, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 161.306296, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 145.344759, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 142.834084, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 1.65768906e-05, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.23517418e-07, + "mean_abs": 4.01429133e-08, + "psnr_db": 153.258731, + "ref_absmax": 1.34836757, + "rel_max": 1.65768906e-07, + "scaled_max_abs": 1.65768906e-07 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 57, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 1, + "n_ops_total": 187, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;3", + "basis": "earliest tap over band with in-band predecessors (fp16: the tap's faithful envelope gates, C3-1)", + "index": 2, + "neighbourhood": [ + { + "band_ratio": 0.0277319462, + "index": 1, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;2" + }, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_ratio": 4.39109585, + "index": 2, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;3" + }, + "status": "fail", + "tap": "net.pos_embed" + }, + { + "band_ratio": 5.36433836, + "index": 3, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.0" + } + ], + "shape": 224, + "tap": "net.pos_embed" + }, + "fp16_floor": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "baseline": { + "bundle": "bundles/tinyvit__clean__litert_fp16.json", + "case": "tinyvit__clean__litert_fp16", + "digests": { + "192": { + "converted": "170133fb2c750896c9b9cfaed4c8aab6b2e92dd28e9a0114b604c6d35736d93d", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "e6f67f478f27c5cbe93fb3192583b8c4adeb54f48117f07895a6c68beeb1c827", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + } + }, + "envelopes_gate": true, + "faithful_output_rel_max": 0.000208557898, + "faithful_tap_rel_max": { + "net.blocks.0": 0.000279738087, + "net.blocks.1": 0.000270794184, + "net.blocks.2": 0.000256599822, + "net.head": 0.000208557898, + "net.norm": 0.000310450195, + "net.patch_embed": 0.000277319462, + "net.pool": 0.000243123856, + "net.pos_embed": 0.000284416403, + "normalize": 8.27203959e-08 + }, + "floor": 0.01, + "k": 2.0, + "output_band": 0.01, + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used", + "tap_envelopes": { + "net.blocks.0": 0.01, + "net.blocks.1": 0.01, + "net.blocks.2": 0.01, + "net.head": 0.01, + "net.norm": 0.01, + "net.patch_embed": 0.01, + "net.pool": 0.01, + "net.pos_embed": 0.01, + "normalize": 0.01 + } + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "3024b2da7794010377ed88b3488271321a87b7b6dfa0114fc20b325a5b1ac6a2", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "1bd3ceb8ade09140b3be0766ac117d249fd7bea227c06382688ab359952cd836", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D2", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_limit": 0.01, + "band_ratio": 2.62305634, + "metrics": { + "corr": 0.999605771, + "finite": true, + "max_abs": 0.033209689, + "mean_abs": 0.00856573652, + "psnr_db": 46.9783484, + "ref_absmax": 1.26606846, + "rel_max": 0.0262305634, + "scaled_max_abs": 0.0262305634 + }, + "per_op_band_ratio": 2.62305634, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + "first_fail_index": 2, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 8.27203959e-06, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.26638033e-08, + "psnr_db": 163.904618, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "per_op_band_ratio": 8.27203959e-06, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0238484209, + "index": 1, + "metrics": { + "corr": 0.999999975, + "finite": true, + "max_abs": 0.00257468224, + "mean_abs": 0.000153147335, + "psnr_db": 99.1308904, + "ref_absmax": 10.7960281, + "rel_max": 0.000238484209, + "scaled_max_abs": 0.000238484209 + }, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;2" + }, + "per_op_band_ratio": 0.0238484209, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_limit": 0.01, + "band_ratio": 3.70448069, + "index": 2, + "metrics": { + "corr": 0.997655025, + "finite": true, + "max_abs": 0.399135947, + "mean_abs": 0.0546403044, + "psnr_db": 48.9001908, + "ref_absmax": 10.7744102, + "rel_max": 0.0370448069, + "scaled_max_abs": 0.0370448069 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;3" + }, + "per_op_band_ratio": 3.70448069, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_limit": 0.01, + "band_ratio": 4.17242681, + "index": 3, + "metrics": { + "corr": 0.997627217, + "finite": true, + "max_abs": 0.447263911, + "mean_abs": 0.0572581967, + "psnr_db": 48.6024337, + "ref_absmax": 10.7195148, + "rel_max": 0.0417242681, + "scaled_max_abs": 0.0417242681 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "per_op_band_ratio": 4.17242681, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "natural", + "index": 9 + } + }, + { + "band_limit": 0.01, + "band_ratio": 4.57556438, + "index": 4, + "metrics": { + "corr": 0.997663969, + "finite": true, + "max_abs": 0.503477201, + "mean_abs": 0.0595949079, + "psnr_db": 48.4280919, + "ref_absmax": 11.0036087, + "rel_max": 0.0457556438, + "scaled_max_abs": 0.0457556438 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "per_op_band_ratio": 4.57556438, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "natural", + "index": 5 + } + }, + { + "band_limit": 0.01, + "band_ratio": 4.95282079, + "index": 5, + "metrics": { + "corr": 0.997670257, + "finite": true, + "max_abs": 0.562052459, + "mean_abs": 0.0616129218, + "psnr_db": 48.4114135, + "ref_absmax": 11.3481283, + "rel_max": 0.0495282079, + "scaled_max_abs": 0.0495282079 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "per_op_band_ratio": 4.95282079, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_limit": 0.01, + "band_ratio": 24.8922272, + "index": 6, + "metrics": { + "corr": 0.994817798, + "finite": true, + "max_abs": 1.02333847, + "mean_abs": 0.0669856244, + "psnr_db": 37.7372064, + "ref_absmax": 4.11107635, + "rel_max": 0.248922272, + "scaled_max_abs": 0.248922272 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "per_op_band_ratio": 24.8922272, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_limit": 0.01, + "band_ratio": 3.99552725, + "index": 7, + "metrics": { + "corr": 0.999610105, + "finite": true, + "max_abs": 0.0885317326, + "mean_abs": 0.0122122467, + "psnr_db": 48.0855604, + "ref_absmax": 2.21577096, + "rel_max": 0.0399552725, + "scaled_max_abs": 0.0399552725 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "per_op_band_ratio": 3.99552725, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_limit": 0.01, + "band_ratio": 2.62305634, + "index": 8, + "metrics": { + "corr": 0.999605771, + "finite": true, + "max_abs": 0.033209689, + "mean_abs": 0.00856573652, + "psnr_db": 46.9783484, + "ref_absmax": 1.26606846, + "rel_max": 0.0262305634, + "scaled_max_abs": 0.0262305634 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "per_op_band_ratio": 2.62305634, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "natural", + "index": 0 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.96875, + "band_limit": 0.01, + "band_ratio": 3.06804193, + "metrics": { + "corr": 0.999336645, + "finite": true, + "max_abs": 0.0412505865, + "mean_abs": 0.0109688208, + "psnr_db": 45.2081277, + "ref_absmax": 1.34452486, + "rel_max": 0.0306804193, + "scaled_max_abs": 0.0306804193 + }, + "per_op_band_ratio": 3.06804193, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 13 + } + }, + "first_fail_index": 2, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 8.27203959e-06, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.2793459e-08, + "psnr_db": 164.013874, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "per_op_band_ratio": 8.27203959e-06, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0277319462, + "index": 1, + "metrics": { + "corr": 0.999999975, + "finite": true, + "max_abs": 0.00329208374, + "mean_abs": 0.00015256364, + "psnr_db": 99.7212805, + "ref_absmax": 11.871088, + "rel_max": 0.000277319462, + "scaled_max_abs": 0.000277319462 + }, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;2" + }, + "per_op_band_ratio": 0.0277319462, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_limit": 0.01, + "band_ratio": 4.39109585, + "index": 2, + "metrics": { + "corr": 0.995700768, + "finite": true, + "max_abs": 0.508263767, + "mean_abs": 0.0747694642, + "psnr_db": 46.8738874, + "ref_absmax": 11.574873, + "rel_max": 0.0439109585, + "scaled_max_abs": 0.0439109585 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;3" + }, + "per_op_band_ratio": 4.39109585, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "uniform", + "index": 18 + } + }, + { + "band_limit": 0.01, + "band_ratio": 5.36433836, + "index": 3, + "metrics": { + "corr": 0.995709817, + "finite": true, + "max_abs": 0.638066024, + "mean_abs": 0.078254729, + "psnr_db": 46.8242741, + "ref_absmax": 11.8945894, + "rel_max": 0.0536433836, + "scaled_max_abs": 0.0536433836 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "per_op_band_ratio": 5.36433836, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "natural", + "index": 12 + } + }, + { + "band_limit": 0.01, + "band_ratio": 5.387326, + "index": 4, + "metrics": { + "corr": 0.995819485, + "finite": true, + "max_abs": 0.65475522, + "mean_abs": 0.0811960315, + "psnr_db": 46.6536572, + "ref_absmax": 12.1536217, + "rel_max": 0.05387326, + "scaled_max_abs": 0.05387326 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "per_op_band_ratio": 5.387326, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "natural", + "index": 13 + } + }, + { + "band_limit": 0.01, + "band_ratio": 5.5725738, + "index": 5, + "metrics": { + "corr": 0.995849725, + "finite": true, + "max_abs": 0.697129846, + "mean_abs": 0.0837776103, + "psnr_db": 46.4906927, + "ref_absmax": 12.5100155, + "rel_max": 0.055725738, + "scaled_max_abs": 0.055725738 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "per_op_band_ratio": 5.5725738, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "natural", + "index": 2 + } + }, + { + "band_limit": 0.01, + "band_ratio": 28.0041943, + "index": 6, + "metrics": { + "corr": 0.991441754, + "finite": true, + "max_abs": 1.17573851, + "mean_abs": 0.0885243336, + "psnr_db": 35.7468971, + "ref_absmax": 4.19843721, + "rel_max": 0.280041943, + "scaled_max_abs": 0.280041943 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "per_op_band_ratio": 28.0041943, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "natural", + "index": 9 + } + }, + { + "band_limit": 0.01, + "band_ratio": 4.12728602, + "index": 7, + "metrics": { + "corr": 0.999515014, + "finite": true, + "max_abs": 0.0916987062, + "mean_abs": 0.0137824753, + "psnr_db": 47.0648028, + "ref_absmax": 2.22176766, + "rel_max": 0.0412728602, + "scaled_max_abs": 0.0412728602 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "per_op_band_ratio": 4.12728602, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "natural", + "index": 3 + } + }, + { + "band_limit": 0.01, + "band_ratio": 3.06804193, + "index": 8, + "metrics": { + "corr": 0.999336645, + "finite": true, + "max_abs": 0.0412505865, + "mean_abs": 0.0109688208, + "psnr_db": 45.2081277, + "ref_absmax": 1.34452486, + "rel_max": 0.0306804193, + "scaled_max_abs": 0.0306804193 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "per_op_band_ratio": 3.06804193, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "natural", + "index": 13 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp16", + "id": "tinyvit__interp_mode__litert_fp16", + "model": "tinyvit", + "path": "litert", + "variant": "interp_mode" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/tinyvit__interp_mode__litert_fp32.json b/bench/verdicts_calibrated4/tinyvit__interp_mode__litert_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..1fd9c39b0055c96d9b81aae709e5cd03dc63ba87 --- /dev/null +++ b/bench/verdicts_calibrated4/tinyvit__interp_mode__litert_fp32.json @@ -0,0 +1,1116 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "at": "net.pos_embed", + "explained_by": null, + "nominal_band_ratio": 1254.7615, + "results": [ + { + "band_ratio": 10754.7012, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 7856.00205, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 16150.0008, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 14534.1523, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 14281.7096, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 0.00209981448, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.83122063e-07, + "mean_abs": 4.57424903e-08, + "psnr_db": 151.924455, + "ref_absmax": 1.34831941, + "rel_max": 2.09981448e-07, + "scaled_max_abs": 2.09981448e-07 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 57, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 1, + "n_ops_total": 173, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;3", + "basis": "earliest tap over band with in-band predecessors", + "index": 2, + "neighbourhood": [ + { + "band_ratio": 0.0120503822, + "index": 1, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;2" + }, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_ratio": 438.909991, + "index": 2, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;3" + }, + "status": "fail", + "tap": "net.pos_embed" + }, + { + "band_ratio": 536.357956, + "index": 3, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.0" + } + ], + "shape": 224, + "tap": "net.pos_embed" + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "de05297813092b6416293d9d52605025e6c183169d21fb4e7e134bf1d02a2eca", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "e7d7f38016371924efb644c4ba3de2b3c770c777507859bd09185735e4e6c7ea", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "fp32 per-tap band on near-zero probes", + "reason": "C3-2: per-tap fp32 checks gate without the near_zero probes; they are measured and reported per tap ('ungated_probes'); the output gates on all probes. C4-1: when the output has failed and no gated tap fails, they localise the first divergence (earliest tap over band on all probes)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D2", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 262.832031, + "metrics": { + "corr": 0.999607851, + "finite": true, + "max_abs": 0.0332763344, + "mean_abs": 0.00855522651, + "psnr_db": 46.9973464, + "ref_absmax": 1.26606846, + "rel_max": 0.0262832031, + "scaled_max_abs": 0.0262832031 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + "first_fail_index": 2, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.06644368e-08, + "psnr_db": 164.113247, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.00112572895, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.38418579e-07, + "mean_abs": 4.66593688e-08, + "psnr_db": 130.397207, + "ref_absmax": 2.11790395, + "rel_max": 1.12572895e-07, + "scaled_max_abs": 1.12572895e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.013692028, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.47819519e-05, + "mean_abs": 3.62527481e-07, + "psnr_db": 150.740789, + "ref_absmax": 10.7960281, + "rel_max": 1.3692028e-06, + "scaled_max_abs": 1.3692028e-06 + }, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;2" + }, + "status": "pass", + "tap": "net.patch_embed", + "ungated_probes": { + "band_ratio": 0.0180220941, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.529953e-06, + "mean_abs": 4.841953e-07, + "psnr_db": 137.220487, + "ref_absmax": 2.51355529, + "rel_max": 1.80220941e-06, + "scaled_max_abs": 1.80220941e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 369.923658, + "index": 2, + "metrics": { + "corr": 0.997613654, + "finite": true, + "max_abs": 0.398570925, + "mean_abs": 0.0546367164, + "psnr_db": 48.9000838, + "ref_absmax": 10.7744102, + "rel_max": 0.0369923658, + "scaled_max_abs": 0.0369923658 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;3" + }, + "status": "fail", + "tap": "net.pos_embed", + "ungated_probes": { + "band_ratio": 1037.16833, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.997903561, + "finite": true, + "max_abs": 0.398570776, + "mean_abs": 0.0546367202, + "psnr_db": 39.5979146, + "ref_absmax": 3.84287453, + "rel_max": 0.103716833, + "scaled_max_abs": 0.103716833 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_ratio": 417.110928, + "index": 3, + "metrics": { + "corr": 0.997521419, + "finite": true, + "max_abs": 0.447122678, + "mean_abs": 0.0574875477, + "psnr_db": 48.5670499, + "ref_absmax": 10.7195148, + "rel_max": 0.0417110928, + "scaled_max_abs": 0.0417110928 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.0", + "ungated_probes": { + "band_ratio": 891.33616, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.998195609, + "finite": true, + "max_abs": 0.399680465, + "mean_abs": 0.0556483025, + "psnr_db": 40.6512435, + "ref_absmax": 4.48405981, + "rel_max": 0.089133616, + "scaled_max_abs": 0.089133616 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 9 + } + }, + { + "band_ratio": 457.495892, + "index": 4, + "metrics": { + "corr": 0.997479979, + "finite": true, + "max_abs": 0.503410578, + "mean_abs": 0.0600568835, + "psnr_db": 48.3619384, + "ref_absmax": 11.0036087, + "rel_max": 0.0457495892, + "scaled_max_abs": 0.0457495892 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.1", + "ungated_probes": { + "band_ratio": 840.47955, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.998516099, + "finite": true, + "max_abs": 0.395782471, + "mean_abs": 0.0563414552, + "psnr_db": 40.8867889, + "ref_absmax": 4.70900774, + "rel_max": 0.084047955, + "scaled_max_abs": 0.084047955 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 5 + } + }, + { + "band_ratio": 495.423696, + "index": 5, + "metrics": { + "corr": 0.997422076, + "finite": true, + "max_abs": 0.562213168, + "mean_abs": 0.0622698047, + "psnr_db": 48.3213741, + "ref_absmax": 11.3481283, + "rel_max": 0.0495423696, + "scaled_max_abs": 0.0495423696 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.2", + "ungated_probes": { + "band_ratio": 902.633456, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.998707709, + "finite": true, + "max_abs": 0.421724677, + "mean_abs": 0.0569878466, + "psnr_db": 41.1034077, + "ref_absmax": 4.67215872, + "rel_max": 0.0902633456, + "scaled_max_abs": 0.0902633456 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_ratio": 2489.96802, + "index": 6, + "metrics": { + "corr": 0.994257127, + "finite": true, + "max_abs": 1.02364486, + "mean_abs": 0.0713979074, + "psnr_db": 37.2910633, + "ref_absmax": 4.11107635, + "rel_max": 0.248996802, + "scaled_max_abs": 0.248996802 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "status": "fail", + "tap": "net.norm", + "ungated_probes": { + "band_ratio": 930.959546, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.99874348, + "finite": true, + "max_abs": 0.259536505, + "mean_abs": 0.0360686881, + "psnr_db": 40.6847334, + "ref_absmax": 2.7878387, + "rel_max": 0.0930959546, + "scaled_max_abs": 0.0930959546 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_ratio": 437.455074, + "index": 7, + "metrics": { + "corr": 0.999428393, + "finite": true, + "max_abs": 0.0883920193, + "mean_abs": 0.0131344108, + "psnr_db": 46.9039264, + "ref_absmax": 2.0205965, + "rel_max": 0.0437455074, + "scaled_max_abs": 0.0437455074 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "status": "fail", + "tap": "net.pool", + "ungated_probes": { + "band_ratio": 68.5072346, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999977932, + "finite": true, + "max_abs": 0.0151796341, + "mean_abs": 0.00567641338, + "psnr_db": 56.1657582, + "ref_absmax": 2.21577096, + "rel_max": 0.00685072346, + "scaled_max_abs": 0.00685072346 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_ratio": 262.832031, + "index": 8, + "metrics": { + "corr": 0.99941299, + "finite": true, + "max_abs": 0.0332763344, + "mean_abs": 0.00930472941, + "psnr_db": 45.0042517, + "ref_absmax": 1.26606846, + "rel_max": 0.0262832031, + "scaled_max_abs": 0.0262832031 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.head", + "ungated_probes": { + "band_ratio": 63.2695379, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999972618, + "finite": true, + "max_abs": 0.0070605278, + "mean_abs": 0.00330870617, + "psnr_db": 52.040187, + "ref_absmax": 1.11594427, + "rel_max": 0.00632695379, + "scaled_max_abs": 0.00632695379 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 0 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.96875, + "band_ratio": 307.261582, + "metrics": { + "corr": 0.999338177, + "finite": true, + "max_abs": 0.0413120836, + "mean_abs": 0.0109561177, + "psnr_db": 45.215918, + "ref_absmax": 1.34452486, + "rel_max": 0.0307261582, + "scaled_max_abs": 0.0307261582 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 13 + } + }, + "first_fail_index": 2, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.08107465e-08, + "psnr_db": 164.245493, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.00112572895, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.38418579e-07, + "mean_abs": 4.66724468e-08, + "psnr_db": 130.436578, + "ref_absmax": 2.11790395, + "rel_max": 1.12572895e-07, + "scaled_max_abs": 1.12572895e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0120503822, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-05, + "mean_abs": 3.61783837e-07, + "psnr_db": 151.297602, + "ref_absmax": 11.871088, + "rel_max": 1.20503822e-06, + "scaled_max_abs": 1.20503822e-06 + }, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;2" + }, + "status": "pass", + "tap": "net.patch_embed", + "ungated_probes": { + "band_ratio": 0.0218071717, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.48362732e-06, + "mean_abs": 4.85357549e-07, + "psnr_db": 137.211056, + "ref_absmax": 2.51459813, + "rel_max": 2.18071717e-06, + "scaled_max_abs": 2.18071717e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 438.909991, + "index": 2, + "metrics": { + "corr": 0.995620418, + "finite": true, + "max_abs": 0.508032739, + "mean_abs": 0.0747664754, + "psnr_db": 46.873816, + "ref_absmax": 11.574873, + "rel_max": 0.0438909991, + "scaled_max_abs": 0.0438909991 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;3" + }, + "status": "fail", + "tap": "net.pos_embed", + "ungated_probes": { + "band_ratio": 1367.53358, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.996180132, + "finite": true, + "max_abs": 0.508031964, + "mean_abs": 0.0747664723, + "psnr_db": 36.8766076, + "ref_absmax": 3.71495056, + "rel_max": 0.136753358, + "scaled_max_abs": 0.136753358 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 14 + } + }, + { + "band_ratio": 536.357956, + "index": 3, + "metrics": { + "corr": 0.995523484, + "finite": true, + "max_abs": 0.637975767, + "mean_abs": 0.0785461984, + "psnr_db": 46.7923383, + "ref_absmax": 11.8945894, + "rel_max": 0.0536357956, + "scaled_max_abs": 0.0536357956 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.0", + "ungated_probes": { + "band_ratio": 1165.18419, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.996712915, + "finite": true, + "max_abs": 0.523088336, + "mean_abs": 0.0762098411, + "psnr_db": 37.9317583, + "ref_absmax": 4.48931885, + "rel_max": 0.116518419, + "scaled_max_abs": 0.116518419 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 12 + } + }, + { + "band_ratio": 538.934153, + "index": 4, + "metrics": { + "corr": 0.995501476, + "finite": true, + "max_abs": 0.65500018, + "mean_abs": 0.0817906308, + "psnr_db": 46.59278, + "ref_absmax": 12.1536217, + "rel_max": 0.0538934153, + "scaled_max_abs": 0.0538934153 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.1", + "ungated_probes": { + "band_ratio": 1146.16142, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.997303198, + "finite": true, + "max_abs": 0.540332437, + "mean_abs": 0.0770149688, + "psnr_db": 38.2258393, + "ref_absmax": 4.7142787, + "rel_max": 0.114616142, + "scaled_max_abs": 0.114616142 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 13 + } + }, + { + "band_ratio": 557.120542, + "index": 5, + "metrics": { + "corr": 0.995421312, + "finite": true, + "max_abs": 0.696958661, + "mean_abs": 0.0846137335, + "psnr_db": 46.4082946, + "ref_absmax": 12.5100155, + "rel_max": 0.0557120542, + "scaled_max_abs": 0.0557120542 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.2", + "ungated_probes": { + "band_ratio": 1252.37651, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.997652582, + "finite": true, + "max_abs": 0.585783914, + "mean_abs": 0.077899097, + "psnr_db": 38.3976413, + "ref_absmax": 4.67737865, + "rel_max": 0.125237651, + "scaled_max_abs": 0.125237651 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 2 + } + }, + { + "band_ratio": 2800.69428, + "index": 6, + "metrics": { + "corr": 0.990541942, + "finite": true, + "max_abs": 1.17585391, + "mean_abs": 0.0941455651, + "psnr_db": 35.3127302, + "ref_absmax": 4.19843721, + "rel_max": 0.280069428, + "scaled_max_abs": 0.280069428 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "status": "fail", + "tap": "net.norm", + "ungated_probes": { + "band_ratio": 1291.42074, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.997740809, + "finite": true, + "max_abs": 0.353359357, + "mean_abs": 0.0491538235, + "psnr_db": 37.986498, + "ref_absmax": 2.73620629, + "rel_max": 0.129142074, + "scaled_max_abs": 0.129142074 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 9 + } + }, + { + "band_ratio": 435.348786, + "index": 7, + "metrics": { + "corr": 0.999307691, + "finite": true, + "max_abs": 0.0914300084, + "mean_abs": 0.0147528248, + "psnr_db": 46.0955436, + "ref_absmax": 2.10015535, + "rel_max": 0.0435348786, + "scaled_max_abs": 0.0435348786 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "status": "fail", + "tap": "net.pool", + "ungated_probes": { + "band_ratio": 105.28, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999960559, + "finite": true, + "max_abs": 0.02339077, + "mean_abs": 0.00697058935, + "psnr_db": 53.7963074, + "ref_absmax": 2.22176766, + "rel_max": 0.010528, + "scaled_max_abs": 0.010528 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 3 + } + }, + { + "band_ratio": 307.261582, + "index": 8, + "metrics": { + "corr": 0.999019542, + "finite": true, + "max_abs": 0.0413120836, + "mean_abs": 0.011683197, + "psnr_db": 43.3600401, + "ref_absmax": 1.34452486, + "rel_max": 0.0307261582, + "scaled_max_abs": 0.0307261582 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.head", + "ungated_probes": { + "band_ratio": 98.324783, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999922324, + "finite": true, + "max_abs": 0.0110054016, + "mean_abs": 0.0058665622, + "psnr_db": 47.8934688, + "ref_absmax": 1.11929071, + "rel_max": 0.0098324783, + "scaled_max_abs": 0.0098324783 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 13 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp32", + "id": "tinyvit__interp_mode__litert_fp32", + "model": "tinyvit", + "path": "litert", + "variant": "interp_mode" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/tinyvit__interp_mode__onnx_fp16.json b/bench/verdicts_calibrated4/tinyvit__interp_mode__onnx_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..1a3268e00a642f1078fb6eb2d5ec35a119ffbfa6 --- /dev/null +++ b/bench/verdicts_calibrated4/tinyvit__interp_mode__onnx_fp16.json @@ -0,0 +1,879 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "baseline": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "faithful_output_rel_max": 0.000456508758, + "output_band": 0.01, + "source": { + "bundle": "bundles/tinyvit__clean__onnx_fp16.json", + "case": "tinyvit__clean__onnx_fp16", + "digests": { + "192": { + "converted": "256af465b0649a975fd83c261b17d7830bd11a36abe6723c11a591e4649ad014", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "4e990e5a6766e80eea68d854f1db627a391a6a25b03b20781b4f30f0c5c65cf1", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + } + } + }, + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "at": "net.pos_embed", + "band_limit": 0.01, + "explained_by": null, + "nominal_band_ratio": 12.5638763, + "results": [ + { + "band_ratio": 107.546871, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 78.5554542, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 161.289202, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 145.371059, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 142.870962, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "/net/pos_embed/Add_output_0", + "basis": "earliest tap over band with in-band predecessors (fp16: the tap's faithful envelope gates, C3-1)", + "index": 2, + "neighbourhood": [ + { + "band_ratio": 0.0469161546, + "index": 1, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_ratio": 4.39533027, + "index": 2, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "status": "fail", + "tap": "net.pos_embed" + }, + { + "band_ratio": 5.36432133, + "index": 3, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.0" + } + ], + "shape": 224, + "tap": "net.pos_embed" + }, + "fp16_floor": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "baseline": { + "bundle": "bundles/tinyvit__clean__onnx_fp16.json", + "case": "tinyvit__clean__onnx_fp16", + "digests": { + "192": { + "converted": "256af465b0649a975fd83c261b17d7830bd11a36abe6723c11a591e4649ad014", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "4e990e5a6766e80eea68d854f1db627a391a6a25b03b20781b4f30f0c5c65cf1", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + } + }, + "envelopes_gate": true, + "faithful_output_rel_max": 0.000456508758, + "faithful_tap_rel_max": { + "net.blocks.0": 0.000642335839, + "net.blocks.1": 0.000711207718, + "net.blocks.2": 0.000762561059, + "net.head": 0.000463029134, + "net.norm": 0.000851897059, + "net.patch_embed": 0.000469161546, + "net.pool": 0.00079208262, + "net.pos_embed": 0.0007491884, + "normalize": 0.000441313312 + }, + "floor": 0.01, + "k": 2.0, + "output_band": 0.01, + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used", + "tap_envelopes": { + "net.blocks.0": 0.01, + "net.blocks.1": 0.01, + "net.blocks.2": 0.01, + "net.head": 0.01, + "net.norm": 0.01, + "net.patch_embed": 0.01, + "net.pool": 0.01, + "net.pos_embed": 0.01, + "normalize": 0.01 + } + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "713904d95e077931731b8618c74eb940fd3c73d915010e3c0a08697bc1a6e909", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "54b7f275949e7f2835b404d67d0658fb2afcc9e999c7bc2ceb81567796ad2f76", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 4.38094139e-05, + "224": 3.7163496e-05 + }, + "primary_class": "D2", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_limit": 0.01, + "band_ratio": 2.59425516, + "metrics": { + "corr": 0.999611095, + "finite": true, + "max_abs": 0.0328450464, + "mean_abs": 0.00851455793, + "psnr_db": 47.0379799, + "ref_absmax": 1.26606846, + "rel_max": 0.0259425516, + "scaled_max_abs": 0.0259425516 + }, + "per_op_band_ratio": 2.59425516, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + "first_fail_index": 2, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 0.0441313312, + "index": 0, + "metrics": { + "corr": 0.999999966, + "finite": true, + "max_abs": 0.00508785248, + "mean_abs": 0.000405953078, + "psnr_db": 88.0186903, + "ref_absmax": 11.5288897, + "rel_max": 0.000441313312, + "scaled_max_abs": 0.000441313312 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "per_op_band_ratio": 0.0441313312, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0469150713, + "index": 1, + "metrics": { + "corr": 0.999999939, + "finite": true, + "max_abs": 0.00506496429, + "mean_abs": 0.000255633799, + "psnr_db": 95.3001421, + "ref_absmax": 10.7960281, + "rel_max": 0.000469150713, + "scaled_max_abs": 0.000469150713 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "per_op_band_ratio": 0.0469150713, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_limit": 0.01, + "band_ratio": 3.7040503, + "index": 2, + "metrics": { + "corr": 0.997654931, + "finite": true, + "max_abs": 0.399089575, + "mean_abs": 0.0546458202, + "psnr_db": 48.9000401, + "ref_absmax": 10.7744102, + "rel_max": 0.037040503, + "scaled_max_abs": 0.037040503 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "per_op_band_ratio": 3.7040503, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "natural", + "index": 10 + } + }, + { + "band_limit": 0.01, + "band_ratio": 4.17299508, + "index": 3, + "metrics": { + "corr": 0.997627381, + "finite": true, + "max_abs": 0.447324827, + "mean_abs": 0.0572554969, + "psnr_db": 48.6027201, + "ref_absmax": 10.7195148, + "rel_max": 0.0417299508, + "scaled_max_abs": 0.0417299508 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "per_op_band_ratio": 4.17299508, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "natural", + "index": 9 + } + }, + { + "band_limit": 0.01, + "band_ratio": 4.57630175, + "index": 4, + "metrics": { + "corr": 0.997664251, + "finite": true, + "max_abs": 0.503558338, + "mean_abs": 0.0595876189, + "psnr_db": 48.4285816, + "ref_absmax": 11.0036087, + "rel_max": 0.0457630175, + "scaled_max_abs": 0.0457630175 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0" + }, + "per_op_band_ratio": 4.57630175, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "natural", + "index": 5 + } + }, + { + "band_limit": 0.01, + "band_ratio": 4.95047534, + "index": 5, + "metrics": { + "corr": 0.997670694, + "finite": true, + "max_abs": 0.561786294, + "mean_abs": 0.0616024335, + "psnr_db": 48.4121772, + "ref_absmax": 11.3481283, + "rel_max": 0.0495047534, + "scaled_max_abs": 0.0495047534 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0" + }, + "per_op_band_ratio": 4.95047534, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_limit": 0.01, + "band_ratio": 24.8824487, + "index": 6, + "metrics": { + "corr": 0.994819153, + "finite": true, + "max_abs": 1.02293646, + "mean_abs": 0.0669725916, + "psnr_db": 37.738342, + "ref_absmax": 4.11107635, + "rel_max": 0.248824487, + "scaled_max_abs": 0.248824487 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "per_op_band_ratio": 24.8824487, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_limit": 0.01, + "band_ratio": 3.94955484, + "index": 7, + "metrics": { + "corr": 0.999614053, + "finite": true, + "max_abs": 0.0875130892, + "mean_abs": 0.0121525253, + "psnr_db": 48.1258253, + "ref_absmax": 2.21577096, + "rel_max": 0.0394955484, + "scaled_max_abs": 0.0394955484 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/ReduceMean_output_0" + }, + "per_op_band_ratio": 3.94955484, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_limit": 0.01, + "band_ratio": 2.59380939, + "index": 8, + "metrics": { + "corr": 0.999611207, + "finite": true, + "max_abs": 0.0328394026, + "mean_abs": 0.00851334348, + "psnr_db": 47.0389762, + "ref_absmax": 1.26606846, + "rel_max": 0.0259380939, + "scaled_max_abs": 0.0259380939 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "per_op_band_ratio": 2.59380939, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "natural", + "index": 0 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.96875, + "band_limit": 0.01, + "band_ratio": 3.05143651, + "metrics": { + "corr": 0.999343298, + "finite": true, + "max_abs": 0.0410273224, + "mean_abs": 0.0109215086, + "psnr_db": 45.2561596, + "ref_absmax": 1.34452486, + "rel_max": 0.0305143651, + "scaled_max_abs": 0.0305143651 + }, + "per_op_band_ratio": 3.05143651, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 13 + } + }, + "first_fail_index": 2, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 0.0439328023, + "index": 0, + "metrics": { + "corr": 0.999999965, + "finite": true, + "max_abs": 0.00506496429, + "mean_abs": 0.000406712054, + "psnr_db": 88.0749992, + "ref_absmax": 11.5288897, + "rel_max": 0.000439328023, + "scaled_max_abs": 0.000439328023 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "per_op_band_ratio": 0.0439328023, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0469161546, + "index": 1, + "metrics": { + "corr": 0.99999994, + "finite": true, + "max_abs": 0.00556945801, + "mean_abs": 0.000254492238, + "psnr_db": 95.9056844, + "ref_absmax": 11.871088, + "rel_max": 0.000469161546, + "scaled_max_abs": 0.000469161546 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "per_op_band_ratio": 0.0469161546, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_limit": 0.01, + "band_ratio": 4.39533027, + "index": 2, + "metrics": { + "corr": 0.995701081, + "finite": true, + "max_abs": 0.508753896, + "mean_abs": 0.0747694967, + "psnr_db": 46.8740678, + "ref_absmax": 11.574873, + "rel_max": 0.0439533027, + "scaled_max_abs": 0.0439533027 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "per_op_band_ratio": 4.39533027, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_limit": 0.01, + "band_ratio": 5.36432133, + "index": 3, + "metrics": { + "corr": 0.995710331, + "finite": true, + "max_abs": 0.638063997, + "mean_abs": 0.0782487846, + "psnr_db": 46.8246691, + "ref_absmax": 11.8945894, + "rel_max": 0.0536432133, + "scaled_max_abs": 0.0536432133 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "per_op_band_ratio": 5.36432133, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "natural", + "index": 12 + } + }, + { + "band_limit": 0.01, + "band_ratio": 5.38894158, + "index": 4, + "metrics": { + "corr": 0.995820146, + "finite": true, + "max_abs": 0.654951572, + "mean_abs": 0.0811866579, + "psnr_db": 46.6542467, + "ref_absmax": 12.1536217, + "rel_max": 0.0538894158, + "scaled_max_abs": 0.0538894158 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0" + }, + "per_op_band_ratio": 5.38894158, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "natural", + "index": 13 + } + }, + { + "band_limit": 0.01, + "band_ratio": 5.57247184, + "index": 5, + "metrics": { + "corr": 0.995850631, + "finite": true, + "max_abs": 0.69711709, + "mean_abs": 0.0837637378, + "psnr_db": 46.4915362, + "ref_absmax": 12.5100155, + "rel_max": 0.0557247184, + "scaled_max_abs": 0.0557247184 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0" + }, + "per_op_band_ratio": 5.57247184, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "natural", + "index": 2 + } + }, + { + "band_limit": 0.01, + "band_ratio": 27.9871935, + "index": 6, + "metrics": { + "corr": 0.991443667, + "finite": true, + "max_abs": 1.17502475, + "mean_abs": 0.0885088514, + "psnr_db": 35.7478671, + "ref_absmax": 4.19843721, + "rel_max": 0.279871935, + "scaled_max_abs": 0.279871935 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "per_op_band_ratio": 27.9871935, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "natural", + "index": 9 + } + }, + { + "band_limit": 0.01, + "band_ratio": 4.09803323, + "index": 7, + "metrics": { + "corr": 0.999519119, + "finite": true, + "max_abs": 0.0910487771, + "mean_abs": 0.0137245511, + "psnr_db": 47.1019963, + "ref_absmax": 2.22176766, + "rel_max": 0.0409803323, + "scaled_max_abs": 0.0409803323 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/ReduceMean_output_0" + }, + "per_op_band_ratio": 4.09803323, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "natural", + "index": 3 + } + }, + { + "band_limit": 0.01, + "band_ratio": 3.05247829, + "index": 8, + "metrics": { + "corr": 0.999343345, + "finite": true, + "max_abs": 0.0410413295, + "mean_abs": 0.0109211477, + "psnr_db": 45.2564371, + "ref_absmax": 1.34452486, + "rel_max": 0.0305247829, + "scaled_max_abs": 0.0305247829 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "per_op_band_ratio": 3.05247829, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "natural", + "index": 13 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp16", + "id": "tinyvit__interp_mode__onnx_fp16", + "model": "tinyvit", + "path": "onnx", + "variant": "interp_mode" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/tinyvit__interp_mode__onnx_fp32.json b/bench/verdicts_calibrated4/tinyvit__interp_mode__onnx_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..1016443ee938aea2c09e1fb02363d9132fee764c --- /dev/null +++ b/bench/verdicts_calibrated4/tinyvit__interp_mode__onnx_fp32.json @@ -0,0 +1,1086 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "at": "net.pos_embed", + "explained_by": null, + "nominal_band_ratio": 1254.76143, + "results": [ + { + "band_ratio": 10754.6971, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 7856.00124, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 16149.997, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 14534.1472, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 14281.7159, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "/net/pos_embed/Add_output_0", + "basis": "earliest tap over band with in-band predecessors", + "index": 2, + "neighbourhood": [ + { + "band_ratio": 0.0104436645, + "index": 1, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_ratio": 438.910043, + "index": 2, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "status": "fail", + "tap": "net.pos_embed" + }, + { + "band_ratio": 536.357893, + "index": 3, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.0" + } + ], + "shape": 224, + "tap": "net.pos_embed" + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "0685082a96bc2e00ac32de8a6a5a5f918039fe9fa16b0c50a0faeb7e69f25d9c", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "14632c234ee5486df9ceef73a59eb0c8e9eeb357e1eab4b549caa5f336ac6006", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "fp32 per-tap band on near-zero probes", + "reason": "C3-2: per-tap fp32 checks gate without the near_zero probes; they are measured and reported per tap ('ungated_probes'); the output gates on all probes. C4-1: when the output has failed and no gated tap fails, they localise the first divergence (earliest tap over band on all probes)" + }, + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 1.49011612e-07, + "224": 1.78813934e-07 + }, + "primary_class": "D2", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 262.831913, + "metrics": { + "corr": 0.999607851, + "finite": true, + "max_abs": 0.0332763195, + "mean_abs": 0.00855522419, + "psnr_db": 46.9973485, + "ref_absmax": 1.26606846, + "rel_max": 0.0262831913, + "scaled_max_abs": 0.0262831913 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + "first_fail_index": 2, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.0, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 11.5288897, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.0, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 2.11790395, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0119253147, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.28746033e-05, + "mean_abs": 3.05237152e-07, + "psnr_db": 151.990326, + "ref_absmax": 10.7960281, + "rel_max": 1.19253147e-06, + "scaled_max_abs": 1.19253147e-06 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "status": "pass", + "tap": "net.patch_embed", + "ungated_probes": { + "band_ratio": 0.0170735629, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.29153442e-06, + "mean_abs": 4.19041159e-07, + "psnr_db": 138.187965, + "ref_absmax": 2.51355529, + "rel_max": 1.70735629e-06, + "scaled_max_abs": 1.70735629e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 369.92482, + "index": 2, + "metrics": { + "corr": 0.997613653, + "finite": true, + "max_abs": 0.398572177, + "mean_abs": 0.054636729, + "psnr_db": 48.9000831, + "ref_absmax": 10.7744102, + "rel_max": 0.036992482, + "scaled_max_abs": 0.036992482 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "status": "fail", + "tap": "net.pos_embed", + "ungated_probes": { + "band_ratio": 1037.16833, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.997903561, + "finite": true, + "max_abs": 0.398570776, + "mean_abs": 0.0546367317, + "psnr_db": 39.5979135, + "ref_absmax": 3.84287453, + "rel_max": 0.103716833, + "scaled_max_abs": 0.103716833 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_ratio": 417.110942, + "index": 3, + "metrics": { + "corr": 0.997521419, + "finite": true, + "max_abs": 0.447122693, + "mean_abs": 0.0574875634, + "psnr_db": 48.5670491, + "ref_absmax": 10.7195148, + "rel_max": 0.0417110942, + "scaled_max_abs": 0.0417110942 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.0", + "ungated_probes": { + "band_ratio": 891.336626, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.998195608, + "finite": true, + "max_abs": 0.399680674, + "mean_abs": 0.0556483189, + "psnr_db": 40.6512422, + "ref_absmax": 4.48405981, + "rel_max": 0.0891336626, + "scaled_max_abs": 0.0891336626 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 9 + } + }, + { + "band_ratio": 457.496095, + "index": 4, + "metrics": { + "corr": 0.997479979, + "finite": true, + "max_abs": 0.503410801, + "mean_abs": 0.0600568981, + "psnr_db": 48.3619378, + "ref_absmax": 11.0036087, + "rel_max": 0.0457496095, + "scaled_max_abs": 0.0457496095 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.1", + "ungated_probes": { + "band_ratio": 840.480563, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.998516098, + "finite": true, + "max_abs": 0.395782948, + "mean_abs": 0.0563414678, + "psnr_db": 40.8867875, + "ref_absmax": 4.70900774, + "rel_max": 0.0840480563, + "scaled_max_abs": 0.0840480563 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 5 + } + }, + { + "band_ratio": 495.423998, + "index": 5, + "metrics": { + "corr": 0.997422076, + "finite": true, + "max_abs": 0.56221351, + "mean_abs": 0.0622698199, + "psnr_db": 48.3213736, + "ref_absmax": 11.3481283, + "rel_max": 0.0495423998, + "scaled_max_abs": 0.0495423998 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.2", + "ungated_probes": { + "band_ratio": 902.634094, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.998707708, + "finite": true, + "max_abs": 0.421724975, + "mean_abs": 0.0569878583, + "psnr_db": 41.1034064, + "ref_absmax": 4.67215872, + "rel_max": 0.0902634094, + "scaled_max_abs": 0.0902634094 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_ratio": 2489.96969, + "index": 6, + "metrics": { + "corr": 0.994257126, + "finite": true, + "max_abs": 1.02364555, + "mean_abs": 0.0713979237, + "psnr_db": 37.2910629, + "ref_absmax": 4.11107635, + "rel_max": 0.248996969, + "scaled_max_abs": 0.248996969 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "status": "fail", + "tap": "net.norm", + "ungated_probes": { + "band_ratio": 930.957622, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.99874348, + "finite": true, + "max_abs": 0.259535968, + "mean_abs": 0.0360686981, + "psnr_db": 40.6847319, + "ref_absmax": 2.7878387, + "rel_max": 0.0930957622, + "scaled_max_abs": 0.0930957622 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_ratio": 437.455369, + "index": 7, + "metrics": { + "corr": 0.999428393, + "finite": true, + "max_abs": 0.0883920789, + "mean_abs": 0.0131344126, + "psnr_db": 46.9039272, + "ref_absmax": 2.0205965, + "rel_max": 0.0437455369, + "scaled_max_abs": 0.0437455369 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/ReduceMean_output_0" + }, + "status": "fail", + "tap": "net.pool", + "ungated_probes": { + "band_ratio": 68.5066966, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999977932, + "finite": true, + "max_abs": 0.0151795149, + "mean_abs": 0.00567641993, + "psnr_db": 56.1657448, + "ref_absmax": 2.21577096, + "rel_max": 0.00685066966, + "scaled_max_abs": 0.00685066966 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_ratio": 262.831678, + "index": 8, + "metrics": { + "corr": 0.999412991, + "finite": true, + "max_abs": 0.0332762897, + "mean_abs": 0.00930473421, + "psnr_db": 45.0042512, + "ref_absmax": 1.26606846, + "rel_max": 0.0262831678, + "scaled_max_abs": 0.0262831678 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "ungated_probes": { + "band_ratio": 63.2706061, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999972618, + "finite": true, + "max_abs": 0.00706064701, + "mean_abs": 0.00330866743, + "psnr_db": 52.0402399, + "ref_absmax": 1.11594427, + "rel_max": 0.00632706061, + "scaled_max_abs": 0.00632706061 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 0 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.96875, + "band_ratio": 307.261582, + "metrics": { + "corr": 0.999338177, + "finite": true, + "max_abs": 0.0413120836, + "mean_abs": 0.0109561356, + "psnr_db": 45.2159128, + "ref_absmax": 1.34452486, + "rel_max": 0.0307261582, + "scaled_max_abs": 0.0307261582 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 13 + } + }, + "first_fail_index": 2, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.0, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 11.5288897, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.0, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 2.11790395, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0104436645, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.23977661e-05, + "mean_abs": 3.03467206e-07, + "psnr_db": 152.573303, + "ref_absmax": 11.871088, + "rel_max": 1.04436645e-06, + "scaled_max_abs": 1.04436645e-06 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "status": "pass", + "tap": "net.patch_embed", + "ungated_probes": { + "band_ratio": 0.0170664822, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.29153442e-06, + "mean_abs": 4.21279035e-07, + "psnr_db": 138.195951, + "ref_absmax": 2.51459813, + "rel_max": 1.70664822e-06, + "scaled_max_abs": 1.70664822e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 438.910043, + "index": 2, + "metrics": { + "corr": 0.995620418, + "finite": true, + "max_abs": 0.508032799, + "mean_abs": 0.0747664743, + "psnr_db": 46.8738159, + "ref_absmax": 11.574873, + "rel_max": 0.0438910043, + "scaled_max_abs": 0.0438910043 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "status": "fail", + "tap": "net.pos_embed", + "ungated_probes": { + "band_ratio": 1367.53326, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.996180132, + "finite": true, + "max_abs": 0.508031845, + "mean_abs": 0.0747664742, + "psnr_db": 36.8766076, + "ref_absmax": 3.71495056, + "rel_max": 0.136753326, + "scaled_max_abs": 0.136753326 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 536.357893, + "index": 3, + "metrics": { + "corr": 0.995523483, + "finite": true, + "max_abs": 0.637975693, + "mean_abs": 0.0785461989, + "psnr_db": 46.7923383, + "ref_absmax": 11.8945894, + "rel_max": 0.0536357893, + "scaled_max_abs": 0.0536357893 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.0", + "ungated_probes": { + "band_ratio": 1165.18419, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.996712915, + "finite": true, + "max_abs": 0.523088336, + "mean_abs": 0.0762098441, + "psnr_db": 37.9317582, + "ref_absmax": 4.48931885, + "rel_max": 0.116518419, + "scaled_max_abs": 0.116518419 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 12 + } + }, + { + "band_ratio": 538.934275, + "index": 4, + "metrics": { + "corr": 0.995501476, + "finite": true, + "max_abs": 0.655000329, + "mean_abs": 0.0817906313, + "psnr_db": 46.59278, + "ref_absmax": 12.1536217, + "rel_max": 0.0538934275, + "scaled_max_abs": 0.0538934275 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.1", + "ungated_probes": { + "band_ratio": 1146.16294, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.997303198, + "finite": true, + "max_abs": 0.540333152, + "mean_abs": 0.0770149706, + "psnr_db": 38.2258392, + "ref_absmax": 4.7142787, + "rel_max": 0.114616294, + "scaled_max_abs": 0.114616294 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 13 + } + }, + { + "band_ratio": 557.120352, + "index": 5, + "metrics": { + "corr": 0.995421312, + "finite": true, + "max_abs": 0.696958423, + "mean_abs": 0.0846137343, + "psnr_db": 46.4082945, + "ref_absmax": 12.5100155, + "rel_max": 0.0557120352, + "scaled_max_abs": 0.0557120352 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.2", + "ungated_probes": { + "band_ratio": 1252.37778, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.997652582, + "finite": true, + "max_abs": 0.58578451, + "mean_abs": 0.0778990987, + "psnr_db": 38.3976411, + "ref_absmax": 4.67737865, + "rel_max": 0.125237778, + "scaled_max_abs": 0.125237778 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 2 + } + }, + { + "band_ratio": 2800.69272, + "index": 6, + "metrics": { + "corr": 0.990541942, + "finite": true, + "max_abs": 1.17585325, + "mean_abs": 0.0941455662, + "psnr_db": 35.3127301, + "ref_absmax": 4.19843721, + "rel_max": 0.280069272, + "scaled_max_abs": 0.280069272 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "status": "fail", + "tap": "net.norm", + "ungated_probes": { + "band_ratio": 1291.42276, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.997740809, + "finite": true, + "max_abs": 0.353359908, + "mean_abs": 0.0491538254, + "psnr_db": 37.9864979, + "ref_absmax": 2.73620629, + "rel_max": 0.129142276, + "scaled_max_abs": 0.129142276 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 9 + } + }, + { + "band_ratio": 435.347935, + "index": 7, + "metrics": { + "corr": 0.999307691, + "finite": true, + "max_abs": 0.0914298296, + "mean_abs": 0.0147528326, + "psnr_db": 46.0955428, + "ref_absmax": 2.10015535, + "rel_max": 0.0435347935, + "scaled_max_abs": 0.0435347935 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/ReduceMean_output_0" + }, + "status": "fail", + "tap": "net.pool", + "ungated_probes": { + "band_ratio": 105.279463, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999960559, + "finite": true, + "max_abs": 0.0233906507, + "mean_abs": 0.00697059413, + "psnr_db": 53.7962912, + "ref_absmax": 2.22176766, + "rel_max": 0.0105279463, + "scaled_max_abs": 0.0105279463 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 3 + } + }, + { + "band_ratio": 307.261471, + "index": 8, + "metrics": { + "corr": 0.999019542, + "finite": true, + "max_abs": 0.0413120687, + "mean_abs": 0.0116832097, + "psnr_db": 43.3600386, + "ref_absmax": 1.34452486, + "rel_max": 0.0307261471, + "scaled_max_abs": 0.0307261471 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "ungated_probes": { + "band_ratio": 98.3255818, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999922324, + "finite": true, + "max_abs": 0.011005491, + "mean_abs": 0.0058665961, + "psnr_db": 47.8934189, + "ref_absmax": 1.11929071, + "rel_max": 0.00983255818, + "scaled_max_abs": 0.00983255818 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 13 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp32", + "id": "tinyvit__interp_mode__onnx_fp32", + "model": "tinyvit", + "path": "onnx", + "variant": "interp_mode" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/tinyvit__layout_swap__coreml_fp16.json b/bench/verdicts_calibrated4/tinyvit__layout_swap__coreml_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..b5aeace688127c9ddfc2513978c91481317b146b --- /dev/null +++ b/bench/verdicts_calibrated4/tinyvit__layout_swap__coreml_fp16.json @@ -0,0 +1,890 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "baseline": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "faithful_output_rel_max": 0.00402825966, + "output_band": 0.01, + "source": { + "bundle": "bundles/tinyvit__clean__coreml_fp16.json", + "case": "tinyvit__clean__coreml_fp16", + "digests": { + "192": { + "converted": "0035167ec9cc06c61986ca2249819ae1510c5a12aad7eaf510988220c7579aa5", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "5430fd6da54612ccdc73a3180116c0a8d19224ecfcc7ca2d7ce9df494c8307f9", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + } + } + }, + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "at": "net.patch_embed", + "band_limit": 0.0294898015, + "explained_by": null, + "nominal_band_ratio": 55.7172325, + "results": [ + { + "band_ratio": 55.7172325, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 35.7148805, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 79.3383351, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 42.2128694, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 105.11516, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [ + "inputs[0]: dtype float16 (declared float32)", + "outputs[0]: dtype float16 (declared float32)" + ], + "status": "precision_narrowing" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "x_7_cast_fp16", + "basis": "earliest tap over band with in-band predecessors (fp16: the tap's faithful envelope gates, C3-1)", + "index": 1, + "neighbourhood": [ + { + "band_ratio": 0.116213884, + "index": 0, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 20.538073, + "index": 1, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_7_cast_fp16" + }, + "status": "fail", + "tap": "net.patch_embed" + }, + { + "band_ratio": 21.3062659, + "index": 2, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5_cast_fp16" + }, + "status": "fail", + "tap": "net.pos_embed" + } + ], + "shape": 224, + "tap": "net.patch_embed" + }, + "fp16_floor": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "baseline": { + "bundle": "bundles/tinyvit__clean__coreml_fp16.json", + "case": "tinyvit__clean__coreml_fp16", + "digests": { + "192": { + "converted": "0035167ec9cc06c61986ca2249819ae1510c5a12aad7eaf510988220c7579aa5", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "5430fd6da54612ccdc73a3180116c0a8d19224ecfcc7ca2d7ce9df494c8307f9", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + } + }, + "envelopes_gate": true, + "faithful_output_rel_max": 0.00402825966, + "faithful_tap_rel_max": { + "net.blocks.0": 0.0144004222, + "net.blocks.1": 0.0145278434, + "net.blocks.2": 0.0134661694, + "net.head": 0.00402825966, + "net.norm": 0.00711003077, + "net.patch_embed": 0.0147449007, + "net.pool": 0.00501150413, + "net.pos_embed": 0.0145772783, + "normalize": 0.00117570499 + }, + "floor": 0.01, + "k": 2.0, + "output_band": 0.01, + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used", + "tap_envelopes": { + "net.blocks.0": 0.0288008444, + "net.blocks.1": 0.0290556867, + "net.blocks.2": 0.0269323389, + "net.head": 0.01, + "net.norm": 0.0142200615, + "net.patch_embed": 0.0294898015, + "net.pool": 0.0100230083, + "net.pos_embed": 0.0291545566, + "normalize": 0.01 + } + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "7c20fc5f020a541238b4104c884048553382507b18c4b1202de98ab817682e8e", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "8e69ca9da82f23070e7f5e6a1d2f0b47856ae81efa6ec0e1df09128fa3f5a6a5", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D2", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.96875, + "band_limit": 0.01, + "band_ratio": 4.43891123, + "metrics": { + "corr": 0.999252472, + "finite": true, + "max_abs": 0.0561996549, + "mean_abs": 0.00881224286, + "psnr_db": 45.260752, + "ref_absmax": 1.26606846, + "rel_max": 0.0443891123, + "scaled_max_abs": 0.0443891123 + }, + "per_op_band_ratio": 4.43891123, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 8 + } + }, + "first_fail_index": 1, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 0.117570499, + "index": 0, + "metrics": { + "corr": 0.999999914, + "finite": true, + "max_abs": 0.0135545731, + "mean_abs": 0.000674526699, + "psnr_db": 83.5827466, + "ref_absmax": 11.5288897, + "rel_max": 0.00117570499, + "scaled_max_abs": 0.00117570499 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "per_op_band_ratio": 0.117570499, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.0294898015, + "band_ratio": 32.4764766, + "index": 1, + "metrics": { + "corr": 0.627222109, + "finite": true, + "max_abs": 10.3396244, + "mean_abs": 0.548092992, + "psnr_db": 27.4422697, + "ref_absmax": 10.7960281, + "rel_max": 0.957724848, + "scaled_max_abs": 0.957724848 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_7_cast_fp16" + }, + "per_op_band_ratio": 95.7724848, + "status": "fail", + "tap": "net.patch_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.0291545566, + "band_ratio": 32.9165164, + "index": 2, + "metrics": { + "corr": 0.665984961, + "finite": true, + "max_abs": 10.3398399, + "mean_abs": 0.548095322, + "psnr_db": 27.3614292, + "ref_absmax": 10.7744102, + "rel_max": 0.959666441, + "scaled_max_abs": 0.959666441 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5_cast_fp16" + }, + "per_op_band_ratio": 95.9666441, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.0288008444, + "band_ratio": 33.8102172, + "index": 3, + "metrics": { + "corr": 0.680760174, + "finite": true, + "max_abs": 10.4382648, + "mean_abs": 0.561426286, + "psnr_db": 27.3116862, + "ref_absmax": 10.7195148, + "rel_max": 0.973762805, + "scaled_max_abs": 0.973762805 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_17_cast_fp16" + }, + "per_op_band_ratio": 97.3762805, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.0290556867, + "band_ratio": 32.2874618, + "index": 4, + "metrics": { + "corr": 0.697112888, + "finite": true, + "max_abs": 10.3228636, + "mean_abs": 0.579076319, + "psnr_db": 27.2966564, + "ref_absmax": 11.0036087, + "rel_max": 0.938134375, + "scaled_max_abs": 0.938134375 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_29_cast_fp16" + }, + "per_op_band_ratio": 93.8134375, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.0269323389, + "band_ratio": 34.1894576, + "index": 5, + "metrics": { + "corr": 0.70278784, + "finite": true, + "max_abs": 10.4493799, + "mean_abs": 0.596577526, + "psnr_db": 27.3511884, + "ref_absmax": 11.3481283, + "rel_max": 0.920802059, + "scaled_max_abs": 0.920802059 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_41_cast_fp16" + }, + "per_op_band_ratio": 92.0802059, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.0142200615, + "band_ratio": 87.288995, + "index": 6, + "metrics": { + "corr": 0.612377083, + "finite": true, + "max_abs": 5.10289359, + "mean_abs": 0.588488751, + "psnr_db": 18.9982534, + "ref_absmax": 4.11107635, + "rel_max": 1.24125488, + "scaled_max_abs": 1.24125488 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "per_op_band_ratio": 124.125488, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "uniform", + "index": 17 + } + }, + { + "band_limit": 0.0100230083, + "band_ratio": 4.93151369, + "index": 7, + "metrics": { + "corr": 0.999348309, + "finite": true, + "max_abs": 0.109522462, + "mean_abs": 0.0136691373, + "psnr_db": 46.2017969, + "ref_absmax": 2.21577096, + "rel_max": 0.0494286024, + "scaled_max_abs": 0.0494286024 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_cast_fp16" + }, + "per_op_band_ratio": 4.94286024, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_limit": 0.01, + "band_ratio": 4.43891123, + "index": 8, + "metrics": { + "corr": 0.999252472, + "finite": true, + "max_abs": 0.0561996549, + "mean_abs": 0.00881224286, + "psnr_db": 45.260752, + "ref_absmax": 1.26606846, + "rel_max": 0.0443891123, + "scaled_max_abs": 0.0443891123 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "per_op_band_ratio": 4.43891123, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "natural", + "index": 8 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_limit": 0.01, + "band_ratio": 4.07391544, + "metrics": { + "corr": 0.999264863, + "finite": true, + "max_abs": 0.0547748059, + "mean_abs": 0.00897421876, + "psnr_db": 45.4152695, + "ref_absmax": 1.34452486, + "rel_max": 0.0407391544, + "scaled_max_abs": 0.0407391544 + }, + "per_op_band_ratio": 4.07391544, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 13 + } + }, + "first_fail_index": 1, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 0.116213884, + "index": 0, + "metrics": { + "corr": 0.999999912, + "finite": true, + "max_abs": 0.0133981705, + "mean_abs": 0.000679588388, + "psnr_db": 83.6184843, + "ref_absmax": 11.5288897, + "rel_max": 0.00116213884, + "scaled_max_abs": 0.00116213884 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "per_op_band_ratio": 0.116213884, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.0294898015, + "band_ratio": 20.538073, + "index": 1, + "metrics": { + "corr": 0.645748025, + "finite": true, + "max_abs": 7.18988705, + "mean_abs": 0.544147462, + "psnr_db": 28.2146582, + "ref_absmax": 11.871088, + "rel_max": 0.605663696, + "scaled_max_abs": 0.605663696 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_7_cast_fp16" + }, + "per_op_band_ratio": 60.5663696, + "status": "fail", + "tap": "net.patch_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.0291545566, + "band_ratio": 21.3062659, + "index": 2, + "metrics": { + "corr": 0.678705712, + "finite": true, + "max_abs": 7.19001865, + "mean_abs": 0.544148798, + "psnr_db": 28.1558318, + "ref_absmax": 11.574873, + "rel_max": 0.621174735, + "scaled_max_abs": 0.621174735 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5_cast_fp16" + }, + "per_op_band_ratio": 62.1174735, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.0288008444, + "band_ratio": 21.2299118, + "index": 3, + "metrics": { + "corr": 0.69319341, + "finite": true, + "max_abs": 7.27282047, + "mean_abs": 0.559744468, + "psnr_db": 28.2983735, + "ref_absmax": 11.8945894, + "rel_max": 0.611439388, + "scaled_max_abs": 0.611439388 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_17_cast_fp16" + }, + "per_op_band_ratio": 61.1439388, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.0290556867, + "band_ratio": 21.3386382, + "index": 4, + "metrics": { + "corr": 0.712158829, + "finite": true, + "max_abs": 7.53535223, + "mean_abs": 0.575071305, + "psnr_db": 28.2930719, + "ref_absmax": 12.1536217, + "rel_max": 0.620008787, + "scaled_max_abs": 0.620008787 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_29_cast_fp16" + }, + "per_op_band_ratio": 62.0008787, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.0269323389, + "band_ratio": 22.3999229, + "index": 5, + "metrics": { + "corr": 0.717972646, + "finite": true, + "max_abs": 7.5470711, + "mean_abs": 0.592208315, + "psnr_db": 28.18717, + "ref_absmax": 12.5100155, + "rel_max": 0.603282315, + "scaled_max_abs": 0.603282315 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_41_cast_fp16" + }, + "per_op_band_ratio": 60.3282315, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.0142200615, + "band_ratio": 90.4336683, + "index": 6, + "metrics": { + "corr": 0.620064209, + "finite": true, + "max_abs": 5.39907408, + "mean_abs": 0.58453541, + "psnr_db": 19.2736446, + "ref_absmax": 4.19843721, + "rel_max": 1.28597233, + "scaled_max_abs": 1.28597233 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "per_op_band_ratio": 128.597233, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "uniform", + "index": 18 + } + }, + { + "band_limit": 0.0100230083, + "band_ratio": 5.04000988, + "index": 7, + "metrics": { + "corr": 0.999276521, + "finite": true, + "max_abs": 0.11223495, + "mean_abs": 0.0149846323, + "psnr_db": 45.3245012, + "ref_absmax": 2.22176766, + "rel_max": 0.0505160607, + "scaled_max_abs": 0.0505160607 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_cast_fp16" + }, + "per_op_band_ratio": 5.05160607, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "natural", + "index": 13 + } + }, + { + "band_limit": 0.01, + "band_ratio": 4.07391544, + "index": 8, + "metrics": { + "corr": 0.999264863, + "finite": true, + "max_abs": 0.0547748059, + "mean_abs": 0.00897421876, + "psnr_db": 45.4152695, + "ref_absmax": 1.34452486, + "rel_max": 0.0407391544, + "scaled_max_abs": 0.0407391544 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "per_op_band_ratio": 4.07391544, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "natural", + "index": 13 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp16", + "id": "tinyvit__layout_swap__coreml_fp16", + "model": "tinyvit", + "path": "coreml", + "variant": "layout_swap" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/tinyvit__layout_swap__coreml_fp32.json b/bench/verdicts_calibrated4/tinyvit__layout_swap__coreml_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..2f18bca7fbbd1a078c15cfe30b6fc1b66aeb767c --- /dev/null +++ b/bench/verdicts_calibrated4/tinyvit__layout_swap__coreml_fp32.json @@ -0,0 +1,1094 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "at": "net.patch_embed", + "explained_by": null, + "nominal_band_ratio": 16415.6014, + "results": [ + { + "band_ratio": 16415.6014, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 10528.9805, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 23397.8436, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 12440.525, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 31002.959, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "x_7", + "basis": "earliest tap over band with in-band predecessors", + "index": 1, + "neighbourhood": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 6052.99679, + "index": 1, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_7" + }, + "status": "fail", + "tap": "net.patch_embed" + }, + { + "band_ratio": 6207.90038, + "index": 2, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5" + }, + "status": "fail", + "tap": "net.pos_embed" + } + ], + "shape": 224, + "tap": "net.patch_embed" + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "e74446a3f9ab0edda7d0fa1321422b8cb504ed638ab5fb894f93e7c860d4ac4b", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "5cc3d90e5d3a075507d078151317c7d721c337bcdbf57d218b41db6e03cdd5d9", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "fp32 per-tap band on near-zero probes", + "reason": "C3-2: per-tap fp32 checks gate without the near_zero probes; they are measured and reported per tap ('ungated_probes'); the output gates on all probes. C4-1: when the output has failed and no gated tap fails, they localise the first divergence (earliest tap over band on all probes)" + }, + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D2", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.96875, + "band_ratio": 448.082407, + "metrics": { + "corr": 0.99925546, + "finite": true, + "max_abs": 0.0567303002, + "mean_abs": 0.00849529961, + "psnr_db": 45.2827582, + "ref_absmax": 1.26606846, + "rel_max": 0.0448082407, + "scaled_max_abs": 0.0448082407 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 8 + } + }, + "first_fail_index": 1, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.06644368e-08, + "psnr_db": 164.113247, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.00112572895, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.38418579e-07, + "mean_abs": 4.66593688e-08, + "psnr_db": 130.397207, + "ref_absmax": 2.11790395, + "rel_max": 1.12572895e-07, + "scaled_max_abs": 1.12572895e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 9577.74631, + "index": 1, + "metrics": { + "corr": 0.566174782, + "finite": true, + "max_abs": 10.3401619, + "mean_abs": 0.625337825, + "psnr_db": 26.863114, + "ref_absmax": 10.7960281, + "rel_max": 0.957774631, + "scaled_max_abs": 0.957774631 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_7" + }, + "status": "fail", + "tap": "net.patch_embed", + "ungated_probes": { + "band_ratio": 36.7849912, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999998235, + "finite": true, + "max_abs": 0.00924611092, + "mean_abs": 0.00160194401, + "psnr_db": 67.2789348, + "ref_absmax": 2.51355529, + "rel_max": 0.00367849912, + "scaled_max_abs": 0.00367849912 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9596.963, + "index": 2, + "metrics": { + "corr": 0.611619336, + "finite": true, + "max_abs": 10.3401617, + "mean_abs": 0.625337825, + "psnr_db": 26.7822753, + "ref_absmax": 10.7744102, + "rel_max": 0.9596963, + "scaled_max_abs": 0.9596963 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5" + }, + "status": "fail", + "tap": "net.pos_embed", + "ungated_probes": { + "band_ratio": 24.0604028, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.99999841, + "finite": true, + "max_abs": 0.00924611092, + "mean_abs": 0.0016019442, + "psnr_db": 70.7975772, + "ref_absmax": 3.84287453, + "rel_max": 0.00240604028, + "scaled_max_abs": 0.00240604028 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9755.92662, + "index": 3, + "metrics": { + "corr": 0.622035749, + "finite": true, + "max_abs": 10.45788, + "mean_abs": 0.640705005, + "psnr_db": 26.7324748, + "ref_absmax": 10.7195148, + "rel_max": 0.975592662, + "scaled_max_abs": 0.975592662 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_17" + }, + "status": "fail", + "tap": "net.blocks.0", + "ungated_probes": { + "band_ratio": 21.7258957, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999998645, + "finite": true, + "max_abs": 0.00974202156, + "mean_abs": 0.00161895309, + "psnr_db": 71.8928615, + "ref_absmax": 4.48405981, + "rel_max": 0.00217258957, + "scaled_max_abs": 0.00217258957 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9393.48844, + "index": 4, + "metrics": { + "corr": 0.632267233, + "finite": true, + "max_abs": 10.3362271, + "mean_abs": 0.660879224, + "psnr_db": 26.7174624, + "ref_absmax": 11.0036087, + "rel_max": 0.939348844, + "scaled_max_abs": 0.939348844 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_29" + }, + "status": "fail", + "tap": "net.blocks.1", + "ungated_probes": { + "band_ratio": 21.5824406, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999998878, + "finite": true, + "max_abs": 0.010163188, + "mean_abs": 0.00164412901, + "psnr_db": 72.101671, + "ref_absmax": 4.70900774, + "rel_max": 0.00215824406, + "scaled_max_abs": 0.00215824406 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9208.82152, + "index": 5, + "metrics": { + "corr": 0.631904133, + "finite": true, + "max_abs": 10.4502888, + "mean_abs": 0.680858319, + "psnr_db": 26.7719761, + "ref_absmax": 11.3481283, + "rel_max": 0.920882152, + "scaled_max_abs": 0.920882152 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_41" + }, + "status": "fail", + "tap": "net.blocks.2", + "ungated_probes": { + "band_ratio": 22.1371683, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999031, + "finite": true, + "max_abs": 0.0103428364, + "mean_abs": 0.00165638434, + "psnr_db": 72.3521474, + "ref_absmax": 4.67215872, + "rel_max": 0.00221371683, + "scaled_max_abs": 0.00221371683 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 12432.9999, + "index": 6, + "metrics": { + "corr": 0.557023635, + "finite": true, + "max_abs": 5.11130118, + "mean_abs": 0.671963136, + "psnr_db": 18.4185497, + "ref_absmax": 4.11107635, + "rel_max": 1.24329999, + "scaled_max_abs": 1.24329999 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x" + }, + "status": "fail", + "tap": "net.norm", + "ungated_probes": { + "band_ratio": 24.0281764, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999055, + "finite": true, + "max_abs": 0.006698668, + "mean_abs": 0.00104743036, + "psnr_db": 71.9213552, + "ref_absmax": 2.7878387, + "rel_max": 0.00240281764, + "scaled_max_abs": 0.00240281764 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "uniform", + "index": 17 + } + }, + { + "band_ratio": 546.242146, + "index": 7, + "metrics": { + "corr": 0.998998469, + "finite": true, + "max_abs": 0.110373497, + "mean_abs": 0.0152113782, + "psnr_db": 44.9471795, + "ref_absmax": 2.0205965, + "rel_max": 0.0546242146, + "scaled_max_abs": 0.0546242146 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_1" + }, + "status": "fail", + "tap": "net.pool", + "ungated_probes": { + "band_ratio": 0.128582876, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.84910202e-05, + "mean_abs": 7.91381171e-06, + "psnr_db": 112.796503, + "ref_absmax": 2.21577096, + "rel_max": 1.28582876e-05, + "scaled_max_abs": 1.28582876e-05 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_ratio": 448.082407, + "index": 8, + "metrics": { + "corr": 0.998833061, + "finite": true, + "max_abs": 0.0567303002, + "mean_abs": 0.00970821178, + "psnr_db": 43.2099458, + "ref_absmax": 1.26606846, + "rel_max": 0.0448082407, + "scaled_max_abs": 0.0448082407 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "ungated_probes": { + "band_ratio": 0.11536959, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.28746033e-05, + "mean_abs": 4.91440296e-06, + "psnr_db": 108.478088, + "ref_absmax": 1.11594427, + "rel_max": 1.1536959e-05, + "scaled_max_abs": 1.1536959e-05 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 8 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 404.515989, + "metrics": { + "corr": 0.999274122, + "finite": true, + "max_abs": 0.0543881804, + "mean_abs": 0.00871554029, + "psnr_db": 45.4696172, + "ref_absmax": 1.34452486, + "rel_max": 0.0404515989, + "scaled_max_abs": 0.0404515989 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 13 + } + }, + "first_fail_index": 1, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.08107465e-08, + "psnr_db": 164.245493, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.00112572895, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.38418579e-07, + "mean_abs": 4.66724468e-08, + "psnr_db": 130.436578, + "ref_absmax": 2.11790395, + "rel_max": 1.12572895e-07, + "scaled_max_abs": 1.12572895e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 6052.99679, + "index": 1, + "metrics": { + "corr": 0.587205799, + "finite": true, + "max_abs": 7.18556577, + "mean_abs": 0.620941789, + "psnr_db": 27.63506, + "ref_absmax": 11.871088, + "rel_max": 0.605299679, + "scaled_max_abs": 0.605299679 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_7" + }, + "status": "fail", + "tap": "net.patch_embed", + "ungated_probes": { + "band_ratio": 37.4759505, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999998246, + "finite": true, + "max_abs": 0.0094236955, + "mean_abs": 0.00161171559, + "psnr_db": 67.3097112, + "ref_absmax": 2.51459813, + "rel_max": 0.00374759505, + "scaled_max_abs": 0.00374759505 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6207.90038, + "index": 2, + "metrics": { + "corr": 0.625826773, + "finite": true, + "max_abs": 7.18556583, + "mean_abs": 0.620941789, + "psnr_db": 27.5762331, + "ref_absmax": 11.574873, + "rel_max": 0.620790038, + "scaled_max_abs": 0.620790038 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5" + }, + "status": "fail", + "tap": "net.pos_embed", + "ungated_probes": { + "band_ratio": 25.3669673, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999998404, + "finite": true, + "max_abs": 0.00942370296, + "mean_abs": 0.001611716, + "psnr_db": 70.6712299, + "ref_absmax": 3.71495056, + "rel_max": 0.00253669673, + "scaled_max_abs": 0.00253669673 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6118.9306, + "index": 3, + "metrics": { + "corr": 0.636582413, + "finite": true, + "max_abs": 7.27821672, + "mean_abs": 0.638893879, + "psnr_db": 27.7187444, + "ref_absmax": 11.8945894, + "rel_max": 0.61189306, + "scaled_max_abs": 0.61189306 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_17" + }, + "status": "fail", + "tap": "net.blocks.0", + "ungated_probes": { + "band_ratio": 21.0825336, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.99999864, + "finite": true, + "max_abs": 0.00946462154, + "mean_abs": 0.0016285244, + "psnr_db": 71.7664064, + "ref_absmax": 4.48931885, + "rel_max": 0.00210825336, + "scaled_max_abs": 0.00210825336 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6200.16506, + "index": 4, + "metrics": { + "corr": 0.650627367, + "finite": true, + "max_abs": 7.53544605, + "mean_abs": 0.656400375, + "psnr_db": 27.7134832, + "ref_absmax": 12.1536217, + "rel_max": 0.620016506, + "scaled_max_abs": 0.620016506 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_29" + }, + "status": "fail", + "tap": "net.blocks.1", + "ungated_probes": { + "band_ratio": 19.6098309, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999998884, + "finite": true, + "max_abs": 0.0092446208, + "mean_abs": 0.0016474842, + "psnr_db": 72.0580618, + "ref_absmax": 4.7142787, + "rel_max": 0.00196098309, + "scaled_max_abs": 0.00196098309 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6044.99792, + "index": 5, + "metrics": { + "corr": 0.65073215, + "finite": true, + "max_abs": 7.56230175, + "mean_abs": 0.675989672, + "psnr_db": 27.6075021, + "ref_absmax": 12.5100155, + "rel_max": 0.604499792, + "scaled_max_abs": 0.604499792 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_41" + }, + "status": "fail", + "tap": "net.blocks.2", + "ungated_probes": { + "band_ratio": 19.1030356, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999037, + "finite": true, + "max_abs": 0.00893521309, + "mean_abs": 0.00165974813, + "psnr_db": 72.2693845, + "ref_absmax": 4.67737865, + "rel_max": 0.00191030356, + "scaled_max_abs": 0.00191030356 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 12867.941, + "index": 6, + "metrics": { + "corr": 0.565813058, + "finite": true, + "max_abs": 5.40252423, + "mean_abs": 0.66749721, + "psnr_db": 18.6939827, + "ref_absmax": 4.19843721, + "rel_max": 1.2867941, + "scaled_max_abs": 1.2867941 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x" + }, + "status": "fail", + "tap": "net.norm", + "ungated_probes": { + "band_ratio": 22.7351376, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999065, + "finite": true, + "max_abs": 0.00622080266, + "mean_abs": 0.00105210167, + "psnr_db": 71.8157237, + "ref_absmax": 2.73620629, + "rel_max": 0.00227351376, + "scaled_max_abs": 0.00227351376 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "uniform", + "index": 18 + } + }, + { + "band_ratio": 534.929002, + "index": 7, + "metrics": { + "corr": 0.998937874, + "finite": true, + "max_abs": 0.112343401, + "mean_abs": 0.0168175874, + "psnr_db": 44.2389714, + "ref_absmax": 2.10015535, + "rel_max": 0.0534929002, + "scaled_max_abs": 0.0534929002 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_1" + }, + "status": "fail", + "tap": "net.pool", + "ungated_probes": { + "band_ratio": 0.125418926, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.78651714e-05, + "mean_abs": 6.27203553e-06, + "psnr_db": 114.812215, + "ref_absmax": 2.22176766, + "rel_max": 1.25418926e-05, + "scaled_max_abs": 1.25418926e-05 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 13 + } + }, + { + "band_ratio": 404.515989, + "index": 8, + "metrics": { + "corr": 0.998874113, + "finite": true, + "max_abs": 0.0543881804, + "mean_abs": 0.00996019263, + "psnr_db": 43.4838583, + "ref_absmax": 1.34452486, + "rel_max": 0.0404515989, + "scaled_max_abs": 0.0404515989 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "ungated_probes": { + "band_ratio": 0.105439271, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.18017197e-05, + "mean_abs": 2.97389925e-06, + "psnr_db": 112.078246, + "ref_absmax": 1.11929071, + "rel_max": 1.05439271e-05, + "scaled_max_abs": 1.05439271e-05 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 13 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp32", + "id": "tinyvit__layout_swap__coreml_fp32", + "model": "tinyvit", + "path": "coreml", + "variant": "layout_swap" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/tinyvit__layout_swap__litert_fp16.json b/bench/verdicts_calibrated4/tinyvit__layout_swap__litert_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..23a65f92bcc3fb003bfcc9531619a09242c07e6f --- /dev/null +++ b/bench/verdicts_calibrated4/tinyvit__layout_swap__litert_fp16.json @@ -0,0 +1,892 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "baseline": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "faithful_output_rel_max": 0.000208557898, + "output_band": 0.01, + "source": { + "bundle": "bundles/tinyvit__clean__litert_fp16.json", + "case": "tinyvit__clean__litert_fp16", + "digests": { + "192": { + "converted": "170133fb2c750896c9b9cfaed4c8aab6b2e92dd28e9a0114b604c6d35736d93d", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "e6f67f478f27c5cbe93fb3192583b8c4adeb54f48117f07895a6c68beeb1c827", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + } + } + }, + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "at": "net.pos_embed", + "band_limit": 0.01, + "explained_by": null, + "nominal_band_ratio": 147.541272, + "results": [ + { + "band_ratio": 147.541272, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 102.070117, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 158.206482, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 108.744919, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 178.784706, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 1.32978641e-05, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.78813934e-07, + "mean_abs": 4.45637852e-08, + "psnr_db": 152.376967, + "ref_absmax": 1.34468162, + "rel_max": 1.32978641e-07, + "scaled_max_abs": 1.32978641e-07 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 58, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 1, + "n_ops_total": 188, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;4", + "basis": "earliest tap over band with in-band predecessors (fp16: the tap's faithful envelope gates, C3-1)", + "index": 2, + "neighbourhood": [ + { + "index": 1, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed;;zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;1" + }, + "status": "not_judgeable", + "tap": "net.patch_embed" + }, + { + "band_ratio": 62.0806254, + "index": 2, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;4" + }, + "status": "fail", + "tap": "net.pos_embed" + }, + { + "band_ratio": 61.1874379, + "index": 3, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.0" + } + ], + "shape": 224, + "tap": "net.pos_embed" + }, + "fp16_floor": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "baseline": { + "bundle": "bundles/tinyvit__clean__litert_fp16.json", + "case": "tinyvit__clean__litert_fp16", + "digests": { + "192": { + "converted": "170133fb2c750896c9b9cfaed4c8aab6b2e92dd28e9a0114b604c6d35736d93d", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "e6f67f478f27c5cbe93fb3192583b8c4adeb54f48117f07895a6c68beeb1c827", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + } + }, + "envelopes_gate": true, + "faithful_output_rel_max": 0.000208557898, + "faithful_tap_rel_max": { + "net.blocks.0": 0.000279738087, + "net.blocks.1": 0.000270794184, + "net.blocks.2": 0.000256599822, + "net.head": 0.000208557898, + "net.norm": 0.000310450195, + "net.patch_embed": 0.000277319462, + "net.pool": 0.000243123856, + "net.pos_embed": 0.000284416403, + "normalize": 8.27203959e-08 + }, + "floor": 0.01, + "k": 2.0, + "output_band": 0.01, + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used", + "tap_envelopes": { + "net.blocks.0": 0.01, + "net.blocks.1": 0.01, + "net.blocks.2": 0.01, + "net.head": 0.01, + "net.norm": 0.01, + "net.patch_embed": 0.01, + "net.pool": 0.01, + "net.pos_embed": 0.01, + "normalize": 0.01 + } + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "4377fd3a2e65fb8f34baadac4c5265863b760cc793f50c466bb8bb50b7ba0b53", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "c503305976cf8457af6e11b9874fb147a945bbced30190d808716262c32d3b39", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "tap net.patch_embed @ 224", + "reason": "artifact tensor shape is not a layout of the reference shape" + }, + { + "item": "tap net.patch_embed @ 192", + "reason": "artifact tensor shape is not a layout of the reference shape" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D2", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.96875, + "band_limit": 0.01, + "band_ratio": 4.47623509, + "metrics": { + "corr": 0.999255511, + "finite": true, + "max_abs": 0.0566722006, + "mean_abs": 0.00851234652, + "psnr_db": 45.2827018, + "ref_absmax": 1.26606846, + "rel_max": 0.0447623509, + "scaled_max_abs": 0.0447623509 + }, + "per_op_band_ratio": 4.47623509, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 8 + } + }, + "first_fail_index": 2, + "n_judged": 8, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 8.27203959e-06, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.26638033e-08, + "psnr_db": 163.904618, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "per_op_band_ratio": 8.27203959e-06, + "status": "pass", + "tap": "normalize" + }, + { + "index": 1, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed;;zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;1" + }, + "reason": "artifact tensor shape is not a layout of the reference shape", + "status": "not_judgeable", + "tap": "net.patch_embed" + }, + { + "band_limit": 0.01, + "band_ratio": 95.9751444, + "index": 2, + "metrics": { + "corr": 0.666048518, + "finite": true, + "max_abs": 10.3407558, + "mean_abs": 0.5473986, + "psnr_db": 27.3621759, + "ref_absmax": 10.7744102, + "rel_max": 0.959751444, + "scaled_max_abs": 0.959751444 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;4" + }, + "per_op_band_ratio": 95.9751444, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 97.5654048, + "index": 3, + "metrics": { + "corr": 0.680814187, + "finite": true, + "max_abs": 10.4585381, + "mean_abs": 0.560825615, + "psnr_db": 27.312385, + "ref_absmax": 10.7195148, + "rel_max": 0.975654048, + "scaled_max_abs": 0.975654048 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "per_op_band_ratio": 97.5654048, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 93.9399892, + "index": 4, + "metrics": { + "corr": 0.697153491, + "finite": true, + "max_abs": 10.3367888, + "mean_abs": 0.578480304, + "psnr_db": 27.2973821, + "ref_absmax": 11.0036087, + "rel_max": 0.939399892, + "scaled_max_abs": 0.939399892 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "per_op_band_ratio": 93.9399892, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 92.0914003, + "index": 5, + "metrics": { + "corr": 0.702829912, + "finite": true, + "max_abs": 10.4506503, + "mean_abs": 0.595963258, + "psnr_db": 27.3518923, + "ref_absmax": 11.3481283, + "rel_max": 0.920914003, + "scaled_max_abs": 0.920914003 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "per_op_band_ratio": 92.0914003, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 124.322634, + "index": 6, + "metrics": { + "corr": 0.612395961, + "finite": true, + "max_abs": 5.11099839, + "mean_abs": 0.588102183, + "psnr_db": 18.9984669, + "ref_absmax": 4.11107635, + "rel_max": 1.24322634, + "scaled_max_abs": 1.24322634 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "per_op_band_ratio": 124.322634, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "uniform", + "index": 17 + } + }, + { + "band_limit": 0.01, + "band_ratio": 4.97506514, + "index": 7, + "metrics": { + "corr": 0.999351323, + "finite": true, + "max_abs": 0.110236049, + "mean_abs": 0.0133312245, + "psnr_db": 46.2220754, + "ref_absmax": 2.21577096, + "rel_max": 0.0497506514, + "scaled_max_abs": 0.0497506514 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "per_op_band_ratio": 4.97506514, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_limit": 0.01, + "band_ratio": 4.47623509, + "index": 8, + "metrics": { + "corr": 0.999255511, + "finite": true, + "max_abs": 0.0566722006, + "mean_abs": 0.00851234652, + "psnr_db": 45.2827018, + "ref_absmax": 1.26606846, + "rel_max": 0.0447623509, + "scaled_max_abs": 0.0447623509 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "per_op_band_ratio": 4.47623509, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "natural", + "index": 8 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_limit": 0.01, + "band_ratio": 4.03456137, + "metrics": { + "corr": 0.999273921, + "finite": true, + "max_abs": 0.0542456806, + "mean_abs": 0.00873403352, + "psnr_db": 45.4681147, + "ref_absmax": 1.34452486, + "rel_max": 0.0403456137, + "scaled_max_abs": 0.0403456137 + }, + "per_op_band_ratio": 4.03456137, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 13 + } + }, + "first_fail_index": 2, + "n_judged": 8, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 8.27203959e-06, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.2793459e-08, + "psnr_db": 164.013874, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "per_op_band_ratio": 8.27203959e-06, + "status": "pass", + "tap": "normalize" + }, + { + "index": 1, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed;;zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;1" + }, + "reason": "artifact tensor shape is not a layout of the reference shape", + "status": "not_judgeable", + "tap": "net.patch_embed" + }, + { + "band_limit": 0.01, + "band_ratio": 62.0806254, + "index": 2, + "metrics": { + "corr": 0.678755324, + "finite": true, + "max_abs": 7.18575352, + "mean_abs": 0.543548744, + "psnr_db": 28.1561272, + "ref_absmax": 11.574873, + "rel_max": 0.620806254, + "scaled_max_abs": 0.620806254 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;4" + }, + "per_op_band_ratio": 62.0806254, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 61.1874379, + "index": 3, + "metrics": { + "corr": 0.693238998, + "finite": true, + "max_abs": 7.27799451, + "mean_abs": 0.559241285, + "psnr_db": 28.298643, + "ref_absmax": 11.8945894, + "rel_max": 0.611874379, + "scaled_max_abs": 0.611874379 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "per_op_band_ratio": 61.1874379, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 61.9989905, + "index": 4, + "metrics": { + "corr": 0.71218878, + "finite": true, + "max_abs": 7.53512275, + "mean_abs": 0.574561321, + "psnr_db": 28.2933854, + "ref_absmax": 12.1536217, + "rel_max": 0.619989905, + "scaled_max_abs": 0.619989905 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "per_op_band_ratio": 61.9989905, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 60.4453823, + "index": 5, + "metrics": { + "corr": 0.718003316, + "finite": true, + "max_abs": 7.56172669, + "mean_abs": 0.591704272, + "psnr_db": 28.1873994, + "ref_absmax": 12.5100155, + "rel_max": 0.604453823, + "scaled_max_abs": 0.604453823 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "per_op_band_ratio": 60.4453823, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 128.682193, + "index": 6, + "metrics": { + "corr": 0.620086327, + "finite": true, + "max_abs": 5.40264106, + "mean_abs": 0.584195388, + "psnr_db": 19.2738957, + "ref_absmax": 4.19843721, + "rel_max": 1.28682193, + "scaled_max_abs": 1.28682193 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "per_op_band_ratio": 128.682193, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "uniform", + "index": 18 + } + }, + { + "band_limit": 0.01, + "band_ratio": 5.05030895, + "index": 7, + "metrics": { + "corr": 0.999277082, + "finite": true, + "max_abs": 0.112206131, + "mean_abs": 0.0147379671, + "psnr_db": 45.3274771, + "ref_absmax": 2.22176766, + "rel_max": 0.0505030895, + "scaled_max_abs": 0.0505030895 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "per_op_band_ratio": 5.05030895, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "natural", + "index": 13 + } + }, + { + "band_limit": 0.01, + "band_ratio": 4.03456137, + "index": 8, + "metrics": { + "corr": 0.999273921, + "finite": true, + "max_abs": 0.0542456806, + "mean_abs": 0.00873403352, + "psnr_db": 45.4681147, + "ref_absmax": 1.34452486, + "rel_max": 0.0403456137, + "scaled_max_abs": 0.0403456137 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "per_op_band_ratio": 4.03456137, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "natural", + "index": 13 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp16", + "id": "tinyvit__layout_swap__litert_fp16", + "model": "tinyvit", + "path": "litert", + "variant": "layout_swap" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/tinyvit__layout_swap__litert_fp32.json b/bench/verdicts_calibrated4/tinyvit__layout_swap__litert_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..ec4f768607b0cd00697cb7110d3a25ad5523bfdc --- /dev/null +++ b/bench/verdicts_calibrated4/tinyvit__layout_swap__litert_fp32.json @@ -0,0 +1,1069 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "at": "net.pos_embed", + "explained_by": null, + "nominal_band_ratio": 14753.7998, + "results": [ + { + "band_ratio": 14753.7992, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 10206.957, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 15839.621, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 10875.0057, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 17877.8761, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 0.00132983404, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.78813934e-07, + "mean_abs": 4.75818524e-08, + "psnr_db": 152.078289, + "ref_absmax": 1.34463346, + "rel_max": 1.32983404e-07, + "scaled_max_abs": 1.32983404e-07 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 58, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 1, + "n_ops_total": 174, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;4", + "basis": "earliest tap over band with in-band predecessors", + "index": 2, + "neighbourhood": [ + { + "index": 1, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed;;zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;1" + }, + "status": "not_judgeable", + "tap": "net.patch_embed" + }, + { + "band_ratio": 6207.9012, + "index": 2, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;4" + }, + "status": "fail", + "tap": "net.pos_embed" + }, + { + "band_ratio": 6118.9322, + "index": 3, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.0" + } + ], + "shape": 224, + "tap": "net.pos_embed" + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "af44fe87e78b3b960d57fc518cee2ad0189d2112a2ed4279a8c8ecaaf103f226", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "8a042d2604440312a37d18312e4e03b39abae3e1c4d246e94b01f24d18092bc7", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "fp32 per-tap band on near-zero probes", + "reason": "C3-2: per-tap fp32 checks gate without the near_zero probes; they are measured and reported per tap ('ungated_probes'); the output gates on all probes. C4-1: when the output has failed and no gated tap fails, they localise the first divergence (earliest tap over band on all probes)" + }, + { + "item": "tap net.patch_embed @ 224", + "reason": "artifact tensor shape is not a layout of the reference shape" + }, + { + "item": "tap net.patch_embed @ 192", + "reason": "artifact tensor shape is not a layout of the reference shape" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D2", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.96875, + "band_ratio": 448.082289, + "metrics": { + "corr": 0.999255459, + "finite": true, + "max_abs": 0.0567302853, + "mean_abs": 0.00849530729, + "psnr_db": 45.2827547, + "ref_absmax": 1.26606846, + "rel_max": 0.0448082289, + "scaled_max_abs": 0.0448082289 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 8 + } + }, + "first_fail_index": 2, + "n_judged": 8, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.06644368e-08, + "psnr_db": 164.113247, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.00112572895, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.38418579e-07, + "mean_abs": 4.66593688e-08, + "psnr_db": 130.397207, + "ref_absmax": 2.11790395, + "rel_max": 1.12572895e-07, + "scaled_max_abs": 1.12572895e-07 + }, + "n_probes": 4 + } + }, + { + "index": 1, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed;;zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;1" + }, + "reason": "artifact tensor shape is not a layout of the reference shape", + "status": "not_judgeable", + "tap": "net.patch_embed" + }, + { + "band_ratio": 9596.96187, + "index": 2, + "metrics": { + "corr": 0.611619335, + "finite": true, + "max_abs": 10.3401604, + "mean_abs": 0.625337871, + "psnr_db": 26.7822752, + "ref_absmax": 10.7744102, + "rel_max": 0.959696187, + "scaled_max_abs": 0.959696187 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;4" + }, + "status": "fail", + "tap": "net.pos_embed", + "ungated_probes": { + "band_ratio": 24.0602477, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.99999841, + "finite": true, + "max_abs": 0.00924605131, + "mean_abs": 0.00160197332, + "psnr_db": 70.7975921, + "ref_absmax": 3.84287453, + "rel_max": 0.00240602477, + "scaled_max_abs": 0.00240602477 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9755.91861, + "index": 3, + "metrics": { + "corr": 0.622035747, + "finite": true, + "max_abs": 10.4578714, + "mean_abs": 0.640705002, + "psnr_db": 26.7324748, + "ref_absmax": 10.7195148, + "rel_max": 0.975591861, + "scaled_max_abs": 0.975591861 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.0", + "ungated_probes": { + "band_ratio": 21.7237689, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999998645, + "finite": true, + "max_abs": 0.00974106789, + "mean_abs": 0.00161895498, + "psnr_db": 71.8928798, + "ref_absmax": 4.48405981, + "rel_max": 0.00217237689, + "scaled_max_abs": 0.00217237689 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9393.47978, + "index": 4, + "metrics": { + "corr": 0.632267233, + "finite": true, + "max_abs": 10.3362176, + "mean_abs": 0.660879222, + "psnr_db": 26.7174624, + "ref_absmax": 11.0036087, + "rel_max": 0.939347978, + "scaled_max_abs": 0.939347978 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.1", + "ungated_probes": { + "band_ratio": 21.5804154, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999998878, + "finite": true, + "max_abs": 0.0101622343, + "mean_abs": 0.00164412838, + "psnr_db": 72.1016848, + "ref_absmax": 4.70900774, + "rel_max": 0.00215804154, + "scaled_max_abs": 0.00215804154 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9208.82131, + "index": 5, + "metrics": { + "corr": 0.631904132, + "finite": true, + "max_abs": 10.4502886, + "mean_abs": 0.68085832, + "psnr_db": 26.7719761, + "ref_absmax": 11.3481283, + "rel_max": 0.920882131, + "scaled_max_abs": 0.920882131 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.2", + "ungated_probes": { + "band_ratio": 22.1352547, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999031, + "finite": true, + "max_abs": 0.0103419423, + "mean_abs": 0.00165638509, + "psnr_db": 72.3521673, + "ref_absmax": 4.67215872, + "rel_max": 0.00221352547, + "scaled_max_abs": 0.00221352547 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 12433.0022, + "index": 6, + "metrics": { + "corr": 0.557023631, + "finite": true, + "max_abs": 5.11130214, + "mean_abs": 0.67196314, + "psnr_db": 18.4185497, + "ref_absmax": 4.11107635, + "rel_max": 1.24330022, + "scaled_max_abs": 1.24330022 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "status": "fail", + "tap": "net.norm", + "ungated_probes": { + "band_ratio": 24.0260384, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999055, + "finite": true, + "max_abs": 0.00669807196, + "mean_abs": 0.0010474301, + "psnr_db": 71.921372, + "ref_absmax": 2.7878387, + "rel_max": 0.00240260384, + "scaled_max_abs": 0.00240260384 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "uniform", + "index": 17 + } + }, + { + "band_ratio": 546.242736, + "index": 7, + "metrics": { + "corr": 0.99899847, + "finite": true, + "max_abs": 0.110373616, + "mean_abs": 0.0152113751, + "psnr_db": 44.9471799, + "ref_absmax": 2.0205965, + "rel_max": 0.0546242736, + "scaled_max_abs": 0.0546242736 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "status": "fail", + "tap": "net.pool", + "ungated_probes": { + "band_ratio": 0.129120879, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.86102295e-05, + "mean_abs": 7.92418723e-06, + "psnr_db": 112.783709, + "ref_absmax": 2.21577096, + "rel_max": 1.29120879e-05, + "scaled_max_abs": 1.29120879e-05 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_ratio": 448.082289, + "index": 8, + "metrics": { + "corr": 0.99883306, + "finite": true, + "max_abs": 0.0567302853, + "mean_abs": 0.00970822198, + "psnr_db": 43.2099423, + "ref_absmax": 1.26606846, + "rel_max": 0.0448082289, + "scaled_max_abs": 0.0448082289 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.head", + "ungated_probes": { + "band_ratio": 0.116437827, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.29938126e-05, + "mean_abs": 4.90453094e-06, + "psnr_db": 108.45521, + "ref_absmax": 1.11594427, + "rel_max": 1.16437827e-05, + "scaled_max_abs": 1.16437827e-05 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 8 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 404.516654, + "metrics": { + "corr": 0.999274123, + "finite": true, + "max_abs": 0.0543882698, + "mean_abs": 0.00871554224, + "psnr_db": 45.4696184, + "ref_absmax": 1.34452486, + "rel_max": 0.0404516654, + "scaled_max_abs": 0.0404516654 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 13 + } + }, + "first_fail_index": 2, + "n_judged": 8, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.08107465e-08, + "psnr_db": 164.245493, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.00112572895, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.38418579e-07, + "mean_abs": 4.66724468e-08, + "psnr_db": 130.436578, + "ref_absmax": 2.11790395, + "rel_max": 1.12572895e-07, + "scaled_max_abs": 1.12572895e-07 + }, + "n_probes": 4 + } + }, + { + "index": 1, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed;;zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;1" + }, + "reason": "artifact tensor shape is not a layout of the reference shape", + "status": "not_judgeable", + "tap": "net.patch_embed" + }, + { + "band_ratio": 6207.9012, + "index": 2, + "metrics": { + "corr": 0.62582677, + "finite": true, + "max_abs": 7.18556678, + "mean_abs": 0.620941832, + "psnr_db": 27.576233, + "ref_absmax": 11.574873, + "rel_max": 0.62079012, + "scaled_max_abs": 0.62079012 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;4" + }, + "status": "fail", + "tap": "net.pos_embed", + "ungated_probes": { + "band_ratio": 25.3648615, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999998404, + "finite": true, + "max_abs": 0.00942292064, + "mean_abs": 0.00161174237, + "psnr_db": 70.6712112, + "ref_absmax": 3.71495056, + "rel_max": 0.00253648615, + "scaled_max_abs": 0.00253648615 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6118.9322, + "index": 3, + "metrics": { + "corr": 0.636582408, + "finite": true, + "max_abs": 7.27821863, + "mean_abs": 0.638893879, + "psnr_db": 27.7187443, + "ref_absmax": 11.8945894, + "rel_max": 0.61189322, + "scaled_max_abs": 0.61189322 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.0", + "ungated_probes": { + "band_ratio": 21.0831974, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.99999864, + "finite": true, + "max_abs": 0.00946491957, + "mean_abs": 0.00162853223, + "psnr_db": 71.766388, + "ref_absmax": 4.48931885, + "rel_max": 0.00210831974, + "scaled_max_abs": 0.00210831974 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6200.16663, + "index": 4, + "metrics": { + "corr": 0.650627364, + "finite": true, + "max_abs": 7.53544796, + "mean_abs": 0.656400379, + "psnr_db": 27.7134831, + "ref_absmax": 12.1536217, + "rel_max": 0.620016663, + "scaled_max_abs": 0.620016663 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.1", + "ungated_probes": { + "band_ratio": 19.6100205, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999998884, + "finite": true, + "max_abs": 0.00924471021, + "mean_abs": 0.0016474919, + "psnr_db": 72.0580415, + "ref_absmax": 4.7142787, + "rel_max": 0.00196100205, + "scaled_max_abs": 0.00196100205 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6044.99906, + "index": 5, + "metrics": { + "corr": 0.650732146, + "finite": true, + "max_abs": 7.56230319, + "mean_abs": 0.675989672, + "psnr_db": 27.607502, + "ref_absmax": 12.5100155, + "rel_max": 0.604499906, + "scaled_max_abs": 0.604499906 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.2", + "ungated_probes": { + "band_ratio": 19.1032267, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999037, + "finite": true, + "max_abs": 0.0089353025, + "mean_abs": 0.0016597577, + "psnr_db": 72.269366, + "ref_absmax": 4.67737865, + "rel_max": 0.00191032267, + "scaled_max_abs": 0.00191032267 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 12867.9353, + "index": 6, + "metrics": { + "corr": 0.565813055, + "finite": true, + "max_abs": 5.40252185, + "mean_abs": 0.667497208, + "psnr_db": 18.6939826, + "ref_absmax": 4.19843721, + "rel_max": 1.28679353, + "scaled_max_abs": 1.28679353 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "status": "fail", + "tap": "net.norm", + "ungated_probes": { + "band_ratio": 22.736608, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999065, + "finite": true, + "max_abs": 0.006221205, + "mean_abs": 0.00105210609, + "psnr_db": 71.8157017, + "ref_absmax": 2.73620629, + "rel_max": 0.0022736608, + "scaled_max_abs": 0.0022736608 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "uniform", + "index": 18 + } + }, + { + "band_ratio": 534.929853, + "index": 7, + "metrics": { + "corr": 0.998937874, + "finite": true, + "max_abs": 0.11234358, + "mean_abs": 0.0168175916, + "psnr_db": 44.23897, + "ref_absmax": 2.10015535, + "rel_max": 0.0534929853, + "scaled_max_abs": 0.0534929853 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "status": "fail", + "tap": "net.pool", + "ungated_probes": { + "band_ratio": 0.125418926, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.78651714e-05, + "mean_abs": 6.26314431e-06, + "psnr_db": 114.826605, + "ref_absmax": 2.22176766, + "rel_max": 1.25418926e-05, + "scaled_max_abs": 1.25418926e-05 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 13 + } + }, + { + "band_ratio": 404.516654, + "index": 8, + "metrics": { + "corr": 0.998874113, + "finite": true, + "max_abs": 0.0543882698, + "mean_abs": 0.00996020109, + "psnr_db": 43.4838595, + "ref_absmax": 1.34452486, + "rel_max": 0.0404516654, + "scaled_max_abs": 0.0404516654 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.head", + "ungated_probes": { + "band_ratio": 0.103841706, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.16229057e-05, + "mean_abs": 2.93031335e-06, + "psnr_db": 112.216302, + "ref_absmax": 1.11929071, + "rel_max": 1.03841706e-05, + "scaled_max_abs": 1.03841706e-05 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 13 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp32", + "id": "tinyvit__layout_swap__litert_fp32", + "model": "tinyvit", + "path": "litert", + "variant": "layout_swap" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/tinyvit__layout_swap__onnx_fp16.json b/bench/verdicts_calibrated4/tinyvit__layout_swap__onnx_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..2972ad06cd04c8bf4d27d86a38093b24e0ccb66c --- /dev/null +++ b/bench/verdicts_calibrated4/tinyvit__layout_swap__onnx_fp16.json @@ -0,0 +1,887 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "baseline": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "faithful_output_rel_max": 0.000456508758, + "output_band": 0.01, + "source": { + "bundle": "bundles/tinyvit__clean__onnx_fp16.json", + "case": "tinyvit__clean__onnx_fp16", + "digests": { + "192": { + "converted": "256af465b0649a975fd83c261b17d7830bd11a36abe6723c11a591e4649ad014", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "4e990e5a6766e80eea68d854f1db627a391a6a25b03b20781b4f30f0c5c65cf1", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + } + } + }, + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "at": "net.patch_embed", + "band_limit": 0.01, + "explained_by": null, + "nominal_band_ratio": 164.19277, + "results": [ + { + "band_ratio": 164.19277, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 105.288092, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 233.967175, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 124.377568, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 310.131863, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "/net/patch_embed/Transpose_1_output_0", + "basis": "earliest tap over band with in-band predecessors (fp16: the tap's faithful envelope gates, C3-1)", + "index": 1, + "neighbourhood": [ + { + "band_ratio": 0.0439328023, + "index": 0, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 60.5375772, + "index": 1, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_1_output_0" + }, + "status": "fail", + "tap": "net.patch_embed" + }, + { + "band_ratio": 62.0879443, + "index": 2, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "status": "fail", + "tap": "net.pos_embed" + } + ], + "shape": 224, + "tap": "net.patch_embed" + }, + "fp16_floor": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "baseline": { + "bundle": "bundles/tinyvit__clean__onnx_fp16.json", + "case": "tinyvit__clean__onnx_fp16", + "digests": { + "192": { + "converted": "256af465b0649a975fd83c261b17d7830bd11a36abe6723c11a591e4649ad014", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "4e990e5a6766e80eea68d854f1db627a391a6a25b03b20781b4f30f0c5c65cf1", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + } + }, + "envelopes_gate": true, + "faithful_output_rel_max": 0.000456508758, + "faithful_tap_rel_max": { + "net.blocks.0": 0.000642335839, + "net.blocks.1": 0.000711207718, + "net.blocks.2": 0.000762561059, + "net.head": 0.000463029134, + "net.norm": 0.000851897059, + "net.patch_embed": 0.000469161546, + "net.pool": 0.00079208262, + "net.pos_embed": 0.0007491884, + "normalize": 0.000441313312 + }, + "floor": 0.01, + "k": 2.0, + "output_band": 0.01, + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used", + "tap_envelopes": { + "net.blocks.0": 0.01, + "net.blocks.1": 0.01, + "net.blocks.2": 0.01, + "net.head": 0.01, + "net.norm": 0.01, + "net.patch_embed": 0.01, + "net.pool": 0.01, + "net.pos_embed": 0.01, + "normalize": 0.01 + } + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "bec14cd536dd3c7b07dfb666565aebc3b919ac193e07dcf1dded0a734d4b8982", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "4e10d2740c7d9b16b5218a5a8ba1d6e8327d9dd1d855df99a49f0dc55e4dd75a", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 4.48822975e-05, + "224": 3.95774841e-05 + }, + "primary_class": "D2", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.96875, + "band_limit": 0.01, + "band_ratio": 4.45336904, + "metrics": { + "corr": 0.999256231, + "finite": true, + "max_abs": 0.0563827008, + "mean_abs": 0.00851577282, + "psnr_db": 45.2872437, + "ref_absmax": 1.26606846, + "rel_max": 0.0445336904, + "scaled_max_abs": 0.0445336904 + }, + "per_op_band_ratio": 4.45336904, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 8 + } + }, + "first_fail_index": 1, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 0.0441313312, + "index": 0, + "metrics": { + "corr": 0.999999966, + "finite": true, + "max_abs": 0.00508785248, + "mean_abs": 0.000405953078, + "psnr_db": 88.0186903, + "ref_absmax": 11.5288897, + "rel_max": 0.000441313312, + "scaled_max_abs": 0.000441313312 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "per_op_band_ratio": 0.0441313312, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 95.7953157, + "index": 1, + "metrics": { + "corr": 0.627293153, + "finite": true, + "max_abs": 10.3420892, + "mean_abs": 0.54742416, + "psnr_db": 27.4428598, + "ref_absmax": 10.7960281, + "rel_max": 0.957953157, + "scaled_max_abs": 0.957953157 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_1_output_0" + }, + "per_op_band_ratio": 95.7953157, + "status": "fail", + "tap": "net.patch_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 96.0012114, + "index": 2, + "metrics": { + "corr": 0.666044233, + "finite": true, + "max_abs": 10.3435644, + "mean_abs": 0.547432104, + "psnr_db": 27.3620322, + "ref_absmax": 10.7744102, + "rel_max": 0.960012114, + "scaled_max_abs": 0.960012114 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "per_op_band_ratio": 96.0012114, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 97.6023169, + "index": 3, + "metrics": { + "corr": 0.680810646, + "finite": true, + "max_abs": 10.4624949, + "mean_abs": 0.560842004, + "psnr_db": 27.3122502, + "ref_absmax": 10.7195148, + "rel_max": 0.976023169, + "scaled_max_abs": 0.976023169 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "per_op_band_ratio": 97.6023169, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 93.9233834, + "index": 4, + "metrics": { + "corr": 0.697149229, + "finite": true, + "max_abs": 10.3349616, + "mean_abs": 0.578497753, + "psnr_db": 27.2972298, + "ref_absmax": 11.0036087, + "rel_max": 0.939233834, + "scaled_max_abs": 0.939233834 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0" + }, + "per_op_band_ratio": 93.9233834, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 92.0931141, + "index": 5, + "metrics": { + "corr": 0.702827055, + "finite": true, + "max_abs": 10.4508448, + "mean_abs": 0.595978376, + "psnr_db": 27.3517523, + "ref_absmax": 11.3481283, + "rel_max": 0.920931141, + "scaled_max_abs": 0.920931141 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0" + }, + "per_op_band_ratio": 92.0931141, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 124.315523, + "index": 6, + "metrics": { + "corr": 0.612393557, + "finite": true, + "max_abs": 5.11070609, + "mean_abs": 0.588111189, + "psnr_db": 18.9984331, + "ref_absmax": 4.11107635, + "rel_max": 1.24315523, + "scaled_max_abs": 1.24315523 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "per_op_band_ratio": 124.315523, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "uniform", + "index": 17 + } + }, + { + "band_limit": 0.01, + "band_ratio": 4.94286024, + "index": 7, + "metrics": { + "corr": 0.999350875, + "finite": true, + "max_abs": 0.109522462, + "mean_abs": 0.0133464659, + "psnr_db": 46.2189778, + "ref_absmax": 2.21577096, + "rel_max": 0.0494286024, + "scaled_max_abs": 0.0494286024 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/ReduceMean_output_0" + }, + "per_op_band_ratio": 4.94286024, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_limit": 0.01, + "band_ratio": 4.45146942, + "index": 8, + "metrics": { + "corr": 0.999256307, + "finite": true, + "max_abs": 0.0563586503, + "mean_abs": 0.00851590373, + "psnr_db": 45.2876175, + "ref_absmax": 1.26606846, + "rel_max": 0.0445146942, + "scaled_max_abs": 0.0445146942 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "per_op_band_ratio": 4.45146942, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "natural", + "index": 8 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_limit": 0.01, + "band_ratio": 4.0335085, + "metrics": { + "corr": 0.999274521, + "finite": true, + "max_abs": 0.0542315245, + "mean_abs": 0.00873499622, + "psnr_db": 45.4711062, + "ref_absmax": 1.34452486, + "rel_max": 0.040335085, + "scaled_max_abs": 0.040335085 + }, + "per_op_band_ratio": 4.0335085, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 13 + } + }, + "first_fail_index": 1, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 0.0439328023, + "index": 0, + "metrics": { + "corr": 0.999999965, + "finite": true, + "max_abs": 0.00506496429, + "mean_abs": 0.000406712054, + "psnr_db": 88.0749992, + "ref_absmax": 11.5288897, + "rel_max": 0.000439328023, + "scaled_max_abs": 0.000439328023 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "per_op_band_ratio": 0.0439328023, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 60.5375772, + "index": 1, + "metrics": { + "corr": 0.645803027, + "finite": true, + "max_abs": 7.18646908, + "mean_abs": 0.543572381, + "psnr_db": 28.2148158, + "ref_absmax": 11.871088, + "rel_max": 0.605375772, + "scaled_max_abs": 0.605375772 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_1_output_0" + }, + "per_op_band_ratio": 60.5375772, + "status": "fail", + "tap": "net.patch_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 62.0879443, + "index": 2, + "metrics": { + "corr": 0.678750995, + "finite": true, + "max_abs": 7.18660069, + "mean_abs": 0.543580209, + "psnr_db": 28.155986, + "ref_absmax": 11.574873, + "rel_max": 0.620879443, + "scaled_max_abs": 0.620879443 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "per_op_band_ratio": 62.0879443, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 61.1994564, + "index": 3, + "metrics": { + "corr": 0.693234172, + "finite": true, + "max_abs": 7.27942407, + "mean_abs": 0.559259118, + "psnr_db": 28.2985111, + "ref_absmax": 11.8945894, + "rel_max": 0.611994564, + "scaled_max_abs": 0.611994564 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "per_op_band_ratio": 61.1994564, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 62.0107765, + "index": 4, + "metrics": { + "corr": 0.712182642, + "finite": true, + "max_abs": 7.53655517, + "mean_abs": 0.57457998, + "psnr_db": 28.293245, + "ref_absmax": 12.1536217, + "rel_max": 0.620107765, + "scaled_max_abs": 0.620107765 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0" + }, + "per_op_band_ratio": 62.0107765, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 60.4531314, + "index": 5, + "metrics": { + "corr": 0.717998507, + "finite": true, + "max_abs": 7.5626961, + "mean_abs": 0.59172063, + "psnr_db": 28.1872733, + "ref_absmax": 12.5100155, + "rel_max": 0.604531314, + "scaled_max_abs": 0.604531314 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0" + }, + "per_op_band_ratio": 60.4531314, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_limit": 0.01, + "band_ratio": 128.690273, + "index": 6, + "metrics": { + "corr": 0.6200754, + "finite": true, + "max_abs": 5.40298033, + "mean_abs": 0.58421315, + "psnr_db": 19.2737655, + "ref_absmax": 4.19843721, + "rel_max": 1.28690273, + "scaled_max_abs": 1.28690273 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "per_op_band_ratio": 128.690273, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "uniform", + "index": 18 + } + }, + { + "band_limit": 0.01, + "band_ratio": 5.04061749, + "index": 7, + "metrics": { + "corr": 0.999278099, + "finite": true, + "max_abs": 0.111990809, + "mean_abs": 0.0147281971, + "psnr_db": 45.3340958, + "ref_absmax": 2.22176766, + "rel_max": 0.0504061749, + "scaled_max_abs": 0.0504061749 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/ReduceMean_output_0" + }, + "per_op_band_ratio": 5.04061749, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "natural", + "index": 13 + } + }, + { + "band_limit": 0.01, + "band_ratio": 4.03229382, + "index": 8, + "metrics": { + "corr": 0.999274658, + "finite": true, + "max_abs": 0.0542151928, + "mean_abs": 0.00873416929, + "psnr_db": 45.4719473, + "ref_absmax": 1.34452486, + "rel_max": 0.0403229382, + "scaled_max_abs": 0.0403229382 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "per_op_band_ratio": 4.03229382, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "natural", + "index": 13 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp16", + "id": "tinyvit__layout_swap__onnx_fp16", + "model": "tinyvit", + "path": "onnx", + "variant": "layout_swap" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/tinyvit__layout_swap__onnx_fp32.json b/bench/verdicts_calibrated4/tinyvit__layout_swap__onnx_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..71ed673dd4365983a87fe8c4cfd2f5d0c86c31df --- /dev/null +++ b/bench/verdicts_calibrated4/tinyvit__layout_swap__onnx_fp32.json @@ -0,0 +1,1094 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "at": "net.patch_embed", + "explained_by": null, + "nominal_band_ratio": 16415.6034, + "results": [ + { + "band_ratio": 16415.6034, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 10528.9809, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 23397.8465, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 12440.5296, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 31002.9408, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "/net/patch_embed/Transpose_1_output_0", + "basis": "earliest tap over band with in-band predecessors", + "index": 1, + "neighbourhood": [ + { + "band_ratio": 0.0, + "index": 0, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 6052.99965, + "index": 1, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_1_output_0" + }, + "status": "fail", + "tap": "net.patch_embed" + }, + { + "band_ratio": 6207.90326, + "index": 2, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "status": "fail", + "tap": "net.pos_embed" + } + ], + "shape": 224, + "tap": "net.patch_embed" + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "7395e560d12bcbf4746e0ab16b89947e45d1ceaa5d2670b4df90689232eabda1", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "61e45831d1229e0469362005eae32e6567c6a75b32092d487ccf22756361fab8", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "fp32 per-tap band on near-zero probes", + "reason": "C3-2: per-tap fp32 checks gate without the near_zero probes; they are measured and reported per tap ('ungated_probes'); the output gates on all probes. C4-1: when the output has failed and no gated tap fails, they localise the first divergence (earliest tap over band on all probes)" + }, + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 1.1920929e-07, + "224": 1.1920929e-07 + }, + "primary_class": "D2", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.96875, + "band_ratio": 448.083701, + "metrics": { + "corr": 0.999255459, + "finite": true, + "max_abs": 0.0567304641, + "mean_abs": 0.00849529844, + "psnr_db": 45.2827581, + "ref_absmax": 1.26606846, + "rel_max": 0.0448083701, + "scaled_max_abs": 0.0448083701 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 8 + } + }, + "first_fail_index": 1, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.0, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 11.5288897, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.0, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 2.11790395, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 9577.74501, + "index": 1, + "metrics": { + "corr": 0.566174782, + "finite": true, + "max_abs": 10.3401605, + "mean_abs": 0.625337865, + "psnr_db": 26.8631139, + "ref_absmax": 10.7960281, + "rel_max": 0.957774501, + "scaled_max_abs": 0.957774501 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_1_output_0" + }, + "status": "fail", + "tap": "net.patch_embed", + "ungated_probes": { + "band_ratio": 36.7842798, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999998235, + "finite": true, + "max_abs": 0.0092459321, + "mean_abs": 0.00160196891, + "psnr_db": 67.2789488, + "ref_absmax": 2.51355529, + "rel_max": 0.00367842798, + "scaled_max_abs": 0.00367842798 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9596.96159, + "index": 2, + "metrics": { + "corr": 0.611619338, + "finite": true, + "max_abs": 10.3401601, + "mean_abs": 0.625337868, + "psnr_db": 26.7822752, + "ref_absmax": 10.7744102, + "rel_max": 0.959696159, + "scaled_max_abs": 0.959696159 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "status": "fail", + "tap": "net.pos_embed", + "ungated_probes": { + "band_ratio": 24.0604028, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.99999841, + "finite": true, + "max_abs": 0.00924611092, + "mean_abs": 0.00160196989, + "psnr_db": 70.797595, + "ref_absmax": 3.84287453, + "rel_max": 0.00240604028, + "scaled_max_abs": 0.00240604028 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9755.91505, + "index": 3, + "metrics": { + "corr": 0.622035749, + "finite": true, + "max_abs": 10.4578676, + "mean_abs": 0.640705014, + "psnr_db": 26.7324748, + "ref_absmax": 10.7195148, + "rel_max": 0.975591505, + "scaled_max_abs": 0.975591505 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.0", + "ungated_probes": { + "band_ratio": 21.7256298, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999998645, + "finite": true, + "max_abs": 0.00974190235, + "mean_abs": 0.00161895303, + "psnr_db": 71.8928847, + "ref_absmax": 4.48405981, + "rel_max": 0.00217256298, + "scaled_max_abs": 0.00217256298 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9393.47631, + "index": 4, + "metrics": { + "corr": 0.632267234, + "finite": true, + "max_abs": 10.3362138, + "mean_abs": 0.660879233, + "psnr_db": 26.7174624, + "ref_absmax": 11.0036087, + "rel_max": 0.939347631, + "scaled_max_abs": 0.939347631 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.1", + "ungated_probes": { + "band_ratio": 21.5821874, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999998878, + "finite": true, + "max_abs": 0.0101630688, + "mean_abs": 0.00164412662, + "psnr_db": 72.1016988, + "ref_absmax": 4.70900774, + "rel_max": 0.00215821874, + "scaled_max_abs": 0.00215821874 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9208.82116, + "index": 5, + "metrics": { + "corr": 0.631904133, + "finite": true, + "max_abs": 10.4502884, + "mean_abs": 0.680858329, + "psnr_db": 26.7719761, + "ref_absmax": 11.3481283, + "rel_max": 0.920882116, + "scaled_max_abs": 0.920882116 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.2", + "ungated_probes": { + "band_ratio": 22.1370407, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999031, + "finite": true, + "max_abs": 0.0103427768, + "mean_abs": 0.00165638078, + "psnr_db": 72.3521806, + "ref_absmax": 4.67215872, + "rel_max": 0.00221370407, + "scaled_max_abs": 0.00221370407 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 12433.0022, + "index": 6, + "metrics": { + "corr": 0.557023633, + "finite": true, + "max_abs": 5.11130214, + "mean_abs": 0.671963141, + "psnr_db": 18.4185497, + "ref_absmax": 4.11107635, + "rel_max": 1.24330022, + "scaled_max_abs": 1.24330022 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "status": "fail", + "tap": "net.norm", + "ungated_probes": { + "band_ratio": 24.0277488, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999055, + "finite": true, + "max_abs": 0.00669854879, + "mean_abs": 0.0010474279, + "psnr_db": 71.9213823, + "ref_absmax": 2.7878387, + "rel_max": 0.00240277488, + "scaled_max_abs": 0.00240277488 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "uniform", + "index": 17 + } + }, + { + "band_ratio": 546.243326, + "index": 7, + "metrics": { + "corr": 0.99899847, + "finite": true, + "max_abs": 0.110373735, + "mean_abs": 0.0152113715, + "psnr_db": 44.9471805, + "ref_absmax": 2.0205965, + "rel_max": 0.0546243326, + "scaled_max_abs": 0.0546243326 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/ReduceMean_output_0" + }, + "status": "fail", + "tap": "net.pool", + "ungated_probes": { + "band_ratio": 0.128582876, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.84910202e-05, + "mean_abs": 7.91800267e-06, + "psnr_db": 112.793662, + "ref_absmax": 2.21577096, + "rel_max": 1.28582876e-05, + "scaled_max_abs": 1.28582876e-05 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_ratio": 448.083584, + "index": 8, + "metrics": { + "corr": 0.998833061, + "finite": true, + "max_abs": 0.0567304492, + "mean_abs": 0.00970821214, + "psnr_db": 43.2099462, + "ref_absmax": 1.26606846, + "rel_max": 0.0448083584, + "scaled_max_abs": 0.0448083584 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "ungated_probes": { + "band_ratio": 0.11536959, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.28746033e-05, + "mean_abs": 4.88758087e-06, + "psnr_db": 108.509617, + "ref_absmax": 1.11594427, + "rel_max": 1.1536959e-05, + "scaled_max_abs": 1.1536959e-05 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 8 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 404.516432, + "metrics": { + "corr": 0.999274122, + "finite": true, + "max_abs": 0.05438824, + "mean_abs": 0.0087155393, + "psnr_db": 45.4696148, + "ref_absmax": 1.34452486, + "rel_max": 0.0404516432, + "scaled_max_abs": 0.0404516432 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 13 + } + }, + "first_fail_index": 1, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.0, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 11.5288897, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.0, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 2.11790395, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 6052.99965, + "index": 1, + "metrics": { + "corr": 0.5872058, + "finite": true, + "max_abs": 7.18556917, + "mean_abs": 0.620941822, + "psnr_db": 27.6350599, + "ref_absmax": 11.871088, + "rel_max": 0.605299965, + "scaled_max_abs": 0.605299965 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_1_output_0" + }, + "status": "fail", + "tap": "net.patch_embed", + "ungated_probes": { + "band_ratio": 37.4752986, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999998246, + "finite": true, + "max_abs": 0.00942353159, + "mean_abs": 0.00161173367, + "psnr_db": 67.3097194, + "ref_absmax": 2.51459813, + "rel_max": 0.00374752986, + "scaled_max_abs": 0.00374752986 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6207.90326, + "index": 2, + "metrics": { + "corr": 0.625826774, + "finite": true, + "max_abs": 7.18556917, + "mean_abs": 0.620941822, + "psnr_db": 27.5762331, + "ref_absmax": 11.574873, + "rel_max": 0.620790326, + "scaled_max_abs": 0.620790326 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "status": "fail", + "tap": "net.pos_embed", + "ungated_probes": { + "band_ratio": 25.3665261, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999998404, + "finite": true, + "max_abs": 0.00942353904, + "mean_abs": 0.00161173393, + "psnr_db": 70.6712374, + "ref_absmax": 3.71495056, + "rel_max": 0.00253665261, + "scaled_max_abs": 0.00253665261 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6118.93381, + "index": 3, + "metrics": { + "corr": 0.636582412, + "finite": true, + "max_abs": 7.27822053, + "mean_abs": 0.638893884, + "psnr_db": 27.7187444, + "ref_absmax": 11.8945894, + "rel_max": 0.611893381, + "scaled_max_abs": 0.611893381 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.0", + "ungated_probes": { + "band_ratio": 21.0824008, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.99999864, + "finite": true, + "max_abs": 0.00946456194, + "mean_abs": 0.00162852294, + "psnr_db": 71.7664179, + "ref_absmax": 4.48931885, + "rel_max": 0.00210824008, + "scaled_max_abs": 0.00210824008 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6200.1682, + "index": 4, + "metrics": { + "corr": 0.650627366, + "finite": true, + "max_abs": 7.53544986, + "mean_abs": 0.656400381, + "psnr_db": 27.7134832, + "ref_absmax": 12.1536217, + "rel_max": 0.62001682, + "scaled_max_abs": 0.62001682 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.1", + "ungated_probes": { + "band_ratio": 19.6093884, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999998884, + "finite": true, + "max_abs": 0.00924441218, + "mean_abs": 0.00164748292, + "psnr_db": 72.0580752, + "ref_absmax": 4.7142787, + "rel_max": 0.00196093884, + "scaled_max_abs": 0.00196093884 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6045.00058, + "index": 5, + "metrics": { + "corr": 0.650732148, + "finite": true, + "max_abs": 7.56230509, + "mean_abs": 0.675989678, + "psnr_db": 27.607502, + "ref_absmax": 12.5100155, + "rel_max": 0.604500058, + "scaled_max_abs": 0.604500058 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.2", + "ungated_probes": { + "band_ratio": 19.1023984, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999037, + "finite": true, + "max_abs": 0.00893491507, + "mean_abs": 0.00165974753, + "psnr_db": 72.2693948, + "ref_absmax": 4.67737865, + "rel_max": 0.00191023984, + "scaled_max_abs": 0.00191023984 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 12867.9393, + "index": 6, + "metrics": { + "corr": 0.565813055, + "finite": true, + "max_abs": 5.40252352, + "mean_abs": 0.667497214, + "psnr_db": 18.6939826, + "ref_absmax": 4.19843721, + "rel_max": 1.28679393, + "scaled_max_abs": 1.28679393 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "status": "fail", + "tap": "net.norm", + "ungated_probes": { + "band_ratio": 22.7360907, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999065, + "finite": true, + "max_abs": 0.00622106344, + "mean_abs": 0.00105210196, + "psnr_db": 71.8157313, + "ref_absmax": 2.73620629, + "rel_max": 0.00227360907, + "scaled_max_abs": 0.00227360907 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "uniform", + "index": 18 + } + }, + { + "band_ratio": 534.929144, + "index": 7, + "metrics": { + "corr": 0.998937874, + "finite": true, + "max_abs": 0.112343431, + "mean_abs": 0.0168175876, + "psnr_db": 44.2389707, + "ref_absmax": 2.10015535, + "rel_max": 0.0534929144, + "scaled_max_abs": 0.0534929144 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/ReduceMean_output_0" + }, + "status": "fail", + "tap": "net.pool", + "ungated_probes": { + "band_ratio": 0.125418926, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.78651714e-05, + "mean_abs": 6.26260589e-06, + "psnr_db": 114.819133, + "ref_absmax": 2.22176766, + "rel_max": 1.25418926e-05, + "scaled_max_abs": 1.25418926e-05 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 13 + } + }, + { + "band_ratio": 404.516543, + "index": 8, + "metrics": { + "corr": 0.998874112, + "finite": true, + "max_abs": 0.0543882549, + "mean_abs": 0.00996019236, + "psnr_db": 43.4838571, + "ref_absmax": 1.34452486, + "rel_max": 0.0404516543, + "scaled_max_abs": 0.0404516543 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "ungated_probes": { + "band_ratio": 0.103176055, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.15483999e-05, + "mean_abs": 2.97259539e-06, + "psnr_db": 112.157251, + "ref_absmax": 1.11929071, + "rel_max": 1.03176055e-05, + "scaled_max_abs": 1.03176055e-05 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 13 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp32", + "id": "tinyvit__layout_swap__onnx_fp32", + "model": "tinyvit", + "path": "onnx", + "variant": "layout_swap" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/tinyvit__pool_divisor__coreml_fp16.json b/bench/verdicts_calibrated4/tinyvit__pool_divisor__coreml_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..9c2403f6584e0ec9bfe37770e96d27fb5463dbdf --- /dev/null +++ b/bench/verdicts_calibrated4/tinyvit__pool_divisor__coreml_fp16.json @@ -0,0 +1,814 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "baseline": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "faithful_output_rel_max": 0.00402825966, + "output_band": 0.01, + "source": { + "bundle": "bundles/tinyvit__clean__coreml_fp16.json", + "case": "tinyvit__clean__coreml_fp16", + "digests": { + "192": { + "converted": "0035167ec9cc06c61986ca2249819ae1510c5a12aad7eaf510988220c7579aa5", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "5430fd6da54612ccdc73a3180116c0a8d19224ecfcc7ca2d7ce9df494c8307f9", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + } + } + }, + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": false, + "note": null, + "status": "clear" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "reason": "first divergence at tap 7 is beyond the hypothesis taps (first 3) \u2014 interface faults surface earlier", + "status": "not_evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [ + "inputs[0]: dtype float16 (declared float32)", + "outputs[0]: dtype float16 (declared float32)" + ], + "status": "precision_narrowing" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "margin": { + "clear_margin": false, + "failing_shape": 192, + "locations_over_margin": [ + { + "band_ratio": 0.871929016, + "index": 7, + "location": "net.pool" + } + ], + "margin": 0.707106781, + "n_locations": 10, + "nominal_output_band_ratio": 0.664855464, + "nominal_output_judgeable": true, + "rule": "C4-2 (b1)", + "scope": "every gated location of the nominal shape", + "worst_location": { + "band_ratio": 0.871929016, + "index": 7, + "location": "net.pool" + } + }, + "reason": "grey zone (C4-2): 1 nominal gated location(s) over 0.7071, worst net.pool at ratio 0.872, so shape dependence is not inferred; classified by its own signature at shape 192", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "_inversed_input_cast_fp16", + "basis": "earliest tap over band with in-band predecessors (fp16: the tap's faithful envelope gates, C3-1); grey zone (C4-2): 1 nominal gated location(s) over 0.7071, worst net.pool at ratio 0.872, so shape dependence is not inferred; classified by its own signature at shape 192", + "index": 7, + "neighbourhood": [ + { + "band_ratio": 0.5, + "index": 6, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "status": "pass", + "tap": "net.norm" + }, + { + "band_ratio": 1.02959206, + "index": 7, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_cast_fp16" + }, + "status": "fail", + "tap": "net.pool" + }, + { + "band_ratio": 0.827405205, + "index": 8, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "pass", + "tap": "net.head" + } + ], + "shape": 192, + "tap": "net.pool" + }, + "fp16_floor": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "baseline": { + "bundle": "bundles/tinyvit__clean__coreml_fp16.json", + "case": "tinyvit__clean__coreml_fp16", + "digests": { + "192": { + "converted": "0035167ec9cc06c61986ca2249819ae1510c5a12aad7eaf510988220c7579aa5", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "5430fd6da54612ccdc73a3180116c0a8d19224ecfcc7ca2d7ce9df494c8307f9", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + } + }, + "envelopes_gate": true, + "faithful_output_rel_max": 0.00402825966, + "faithful_tap_rel_max": { + "net.blocks.0": 0.0144004222, + "net.blocks.1": 0.0145278434, + "net.blocks.2": 0.0134661694, + "net.head": 0.00402825966, + "net.norm": 0.00711003077, + "net.patch_embed": 0.0147449007, + "net.pool": 0.00501150413, + "net.pos_embed": 0.0145772783, + "normalize": 0.00117570499 + }, + "floor": 0.01, + "k": 2.0, + "output_band": 0.01, + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used", + "tap_envelopes": { + "net.blocks.0": 0.0288008444, + "net.blocks.1": 0.0290556867, + "net.blocks.2": 0.0269323389, + "net.head": 0.01, + "net.norm": 0.0142200615, + "net.patch_embed": 0.0294898015, + "net.pool": 0.0100230083, + "net.pos_embed": 0.0291545566, + "normalize": 0.01 + } + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "f218c339e76d3c31873d19617a6b8017afacf2c01684704ae273ad1415a2b319", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "34b899d4a515f883983342a14e01526adb1f8daaf464215860e2f26b616618b1", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D2", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_limit": 0.01, + "band_ratio": 0.827405205, + "metrics": { + "corr": 0.999994915, + "finite": true, + "max_abs": 0.0104755163, + "mean_abs": 0.0017030064, + "psnr_db": 59.9210729, + "ref_absmax": 1.26606846, + "rel_max": 0.00827405205, + "scaled_max_abs": 0.00827405205 + }, + "per_op_band_ratio": 0.827405205, + "status": "pass" + }, + "first_fail_index": 7, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 0.117570499, + "index": 0, + "metrics": { + "corr": 0.999999914, + "finite": true, + "max_abs": 0.0135545731, + "mean_abs": 0.000674526699, + "psnr_db": 83.5827466, + "ref_absmax": 11.5288897, + "rel_max": 0.00117570499, + "scaled_max_abs": 0.00117570499 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "per_op_band_ratio": 0.117570499, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.0294898015, + "band_ratio": 0.5, + "index": 1, + "metrics": { + "corr": 0.999991394, + "finite": true, + "max_abs": 0.159186363, + "mean_abs": 0.00251833586, + "psnr_db": 73.8085669, + "ref_absmax": 10.7960281, + "rel_max": 0.0147449007, + "scaled_max_abs": 0.0147449007 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_5_cast_fp16" + }, + "per_op_band_ratio": 1.47449007, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_limit": 0.0291545566, + "band_ratio": 0.5, + "index": 2, + "metrics": { + "corr": 0.999992261, + "finite": true, + "max_abs": 0.157061577, + "mean_abs": 0.00252916549, + "psnr_db": 73.7102173, + "ref_absmax": 10.7744102, + "rel_max": 0.0145772783, + "scaled_max_abs": 0.0145772783 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5_cast_fp16" + }, + "per_op_band_ratio": 1.45772783, + "status": "pass", + "tap": "net.pos_embed" + }, + { + "band_limit": 0.0288008444, + "band_ratio": 0.5, + "index": 3, + "metrics": { + "corr": 0.999992443, + "finite": true, + "max_abs": 0.15436554, + "mean_abs": 0.00271046309, + "psnr_db": 73.5671904, + "ref_absmax": 10.7195148, + "rel_max": 0.0144004222, + "scaled_max_abs": 0.0144004222 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_17_cast_fp16" + }, + "per_op_band_ratio": 1.44004222, + "status": "pass", + "tap": "net.blocks.0" + }, + { + "band_limit": 0.0290556867, + "band_ratio": 0.5, + "index": 4, + "metrics": { + "corr": 0.999992728, + "finite": true, + "max_abs": 0.159858704, + "mean_abs": 0.00289978764, + "psnr_db": 73.4913103, + "ref_absmax": 11.0036087, + "rel_max": 0.0145278434, + "scaled_max_abs": 0.0145278434 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_29_cast_fp16" + }, + "per_op_band_ratio": 1.45278434, + "status": "pass", + "tap": "net.blocks.1" + }, + { + "band_limit": 0.0269323389, + "band_ratio": 0.5, + "index": 5, + "metrics": { + "corr": 0.999992831, + "finite": true, + "max_abs": 0.152815819, + "mean_abs": 0.00305746017, + "psnr_db": 73.5262034, + "ref_absmax": 11.3481283, + "rel_max": 0.0134661694, + "scaled_max_abs": 0.0134661694 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_41_cast_fp16" + }, + "per_op_band_ratio": 1.34661694, + "status": "pass", + "tap": "net.blocks.2" + }, + { + "band_limit": 0.0142200615, + "band_ratio": 0.5, + "index": 6, + "metrics": { + "corr": 0.999993473, + "finite": true, + "max_abs": 0.0292298794, + "mean_abs": 0.00270321117, + "psnr_db": 66.7353234, + "ref_absmax": 4.11107635, + "rel_max": 0.00711003077, + "scaled_max_abs": 0.00711003077 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "per_op_band_ratio": 0.711003077, + "status": "pass", + "tap": "net.norm" + }, + { + "band_limit": 0.0100230083, + "band_ratio": 1.02959206, + "index": 7, + "metrics": { + "corr": 0.999997203, + "finite": true, + "max_abs": 0.0228658915, + "mean_abs": 0.00304456828, + "psnr_db": 60.1824044, + "ref_absmax": 2.21577096, + "rel_max": 0.0103196097, + "scaled_max_abs": 0.0103196097 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_cast_fp16" + }, + "per_op_band_ratio": 1.03196097, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "near_zero", + "index": 27 + } + }, + { + "band_limit": 0.01, + "band_ratio": 0.827405205, + "index": 8, + "metrics": { + "corr": 0.999994915, + "finite": true, + "max_abs": 0.0104755163, + "mean_abs": 0.0017030064, + "psnr_db": 59.9210729, + "ref_absmax": 1.26606846, + "rel_max": 0.00827405205, + "scaled_max_abs": 0.00827405205 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "per_op_band_ratio": 0.827405205, + "status": "pass", + "tap": "net.head" + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_limit": 0.01, + "band_ratio": 0.664855464, + "metrics": { + "corr": 0.999995697, + "finite": true, + "max_abs": 0.008939147, + "mean_abs": 0.00127761571, + "psnr_db": 62.3753409, + "ref_absmax": 1.34452486, + "rel_max": 0.00664855464, + "scaled_max_abs": 0.00664855464 + }, + "per_op_band_ratio": 0.664855464, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 0.116213884, + "index": 0, + "metrics": { + "corr": 0.999999912, + "finite": true, + "max_abs": 0.0133981705, + "mean_abs": 0.000679588388, + "psnr_db": 83.6184843, + "ref_absmax": 11.5288897, + "rel_max": 0.00116213884, + "scaled_max_abs": 0.00116213884 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "per_op_band_ratio": 0.116213884, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.0294898015, + "band_ratio": 0.277047602, + "index": 1, + "metrics": { + "corr": 0.999991415, + "finite": true, + "max_abs": 0.0969877243, + "mean_abs": 0.00250771621, + "psnr_db": 74.367951, + "ref_absmax": 11.871088, + "rel_max": 0.00817007877, + "scaled_max_abs": 0.00817007877 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_5_cast_fp16" + }, + "per_op_band_ratio": 0.817007877, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_limit": 0.0291545566, + "band_ratio": 0.295111447, + "index": 2, + "metrics": { + "corr": 0.999992187, + "finite": true, + "max_abs": 0.0995883942, + "mean_abs": 0.00251680124, + "psnr_db": 74.29315, + "ref_absmax": 11.574873, + "rel_max": 0.00860384338, + "scaled_max_abs": 0.00860384338 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5_cast_fp16" + }, + "per_op_band_ratio": 0.860384338, + "status": "pass", + "tap": "net.pos_embed" + }, + { + "band_limit": 0.0288008444, + "band_ratio": 0.290848015, + "index": 3, + "metrics": { + "corr": 0.999992439, + "finite": true, + "max_abs": 0.0996370316, + "mean_abs": 0.00269992927, + "psnr_db": 74.3779895, + "ref_absmax": 11.8945894, + "rel_max": 0.00837666842, + "scaled_max_abs": 0.00837666842 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_17_cast_fp16" + }, + "per_op_band_ratio": 0.837666842, + "status": "pass", + "tap": "net.blocks.0" + }, + { + "band_limit": 0.0290556867, + "band_ratio": 0.28715946, + "index": 4, + "metrics": { + "corr": 0.999992743, + "finite": true, + "max_abs": 0.101405144, + "mean_abs": 0.00289164657, + "psnr_db": 74.2749382, + "ref_absmax": 12.1536217, + "rel_max": 0.0083436153, + "scaled_max_abs": 0.0083436153 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_29_cast_fp16" + }, + "per_op_band_ratio": 0.83436153, + "status": "pass", + "tap": "net.blocks.1" + }, + { + "band_limit": 0.0269323389, + "band_ratio": 0.304064309, + "index": 5, + "metrics": { + "corr": 0.999992873, + "finite": true, + "max_abs": 0.102446556, + "mean_abs": 0.00303753381, + "psnr_db": 74.1588749, + "ref_absmax": 12.5100155, + "rel_max": 0.00818916301, + "scaled_max_abs": 0.00818916301 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_41_cast_fp16" + }, + "per_op_band_ratio": 0.818916301, + "status": "pass", + "tap": "net.blocks.2" + }, + { + "band_limit": 0.0142200615, + "band_ratio": 0.477296124, + "index": 6, + "metrics": { + "corr": 0.999993569, + "finite": true, + "max_abs": 0.0284955502, + "mean_abs": 0.00267585862, + "psnr_db": 66.9877398, + "ref_absmax": 4.19843721, + "rel_max": 0.00678718025, + "scaled_max_abs": 0.00678718025 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "per_op_band_ratio": 0.678718025, + "status": "pass", + "tap": "net.norm" + }, + { + "band_limit": 0.0100230083, + "band_ratio": 0.871929016, + "index": 7, + "metrics": { + "corr": 0.999997449, + "finite": true, + "max_abs": 0.0194168091, + "mean_abs": 0.00240850639, + "psnr_db": 62.264154, + "ref_absmax": 2.22176766, + "rel_max": 0.00873935173, + "scaled_max_abs": 0.00873935173 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_cast_fp16" + }, + "per_op_band_ratio": 0.873935173, + "status": "pass", + "tap": "net.pool" + }, + { + "band_limit": 0.01, + "band_ratio": 0.664855464, + "index": 8, + "metrics": { + "corr": 0.999995697, + "finite": true, + "max_abs": 0.008939147, + "mean_abs": 0.00127761571, + "psnr_db": 62.3753409, + "ref_absmax": 1.34452486, + "rel_max": 0.00664855464, + "scaled_max_abs": 0.00664855464 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "per_op_band_ratio": 0.664855464, + "status": "pass", + "tap": "net.head" + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp16", + "id": "tinyvit__pool_divisor__coreml_fp16", + "model": "tinyvit", + "path": "coreml", + "variant": "pool_divisor" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/tinyvit__pool_divisor__coreml_fp32.json b/bench/verdicts_calibrated4/tinyvit__pool_divisor__coreml_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..ce6b042306268cd3b9f87f81f45876c6ad18718e --- /dev/null +++ b/bench/verdicts_calibrated4/tinyvit__pool_divisor__coreml_fp32.json @@ -0,0 +1,1017 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "reason": "first divergence at tap 7 is beyond the hypothesis taps (first 3) \u2014 interface faults surface earlier", + "status": "not_evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "_inversed_input", + "basis": "earliest tap over band with in-band predecessors", + "index": 7, + "neighbourhood": [ + { + "band_ratio": 0.00340724751, + "index": 6, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x" + }, + "status": "pass", + "tap": "net.norm" + }, + { + "band_ratio": 50.7601017, + "index": 7, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input" + }, + "status": "fail", + "tap": "net.pool" + }, + { + "band_ratio": 46.4876601, + "index": 8, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head" + } + ], + "shape": 224, + "tap": "net.pool" + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "5e8325676e374251bab49bd55a7a8f5e0f2ef6f397cab744e79c899c836b99df", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "c6312f2c839db0f4432b1a8719af43b72be320e81242c5028efcdf6196f71fee", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "fp32 per-tap band on near-zero probes", + "reason": "C3-2: per-tap fp32 checks gate without the near_zero probes; they are measured and reported per tap ('ungated_probes'); the output gates on all probes. C4-1: when the output has failed and no gated tap fails, they localise the first divergence (earliest tap over band on all probes)" + }, + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D2", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 66.9560302, + "metrics": { + "corr": 0.999998439, + "finite": true, + "max_abs": 0.00847709179, + "mean_abs": 0.00162466256, + "psnr_db": 60.2363986, + "ref_absmax": 1.26606846, + "rel_max": 0.00669560302, + "scaled_max_abs": 0.00669560302 + }, + "status": "fail", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + "first_fail_index": 7, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.06644368e-08, + "psnr_db": 164.113247, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.00112572895, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.38418579e-07, + "mean_abs": 4.66593688e-08, + "psnr_db": 130.397207, + "ref_absmax": 2.11790395, + "rel_max": 1.12572895e-07, + "scaled_max_abs": 1.12572895e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00441678321, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 9.88855124e-08, + "psnr_db": 161.464618, + "ref_absmax": 10.7960281, + "rel_max": 4.41678321e-07, + "scaled_max_abs": 4.41678321e-07 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_5" + }, + "status": "pass", + "tap": "net.patch_embed", + "ungated_probes": { + "band_ratio": 0.00474265635, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.1920929e-06, + "mean_abs": 1.5130268e-07, + "psnr_db": 147.535676, + "ref_absmax": 2.51355529, + "rel_max": 4.74265635e-07, + "scaled_max_abs": 4.74265635e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00442564509, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 1.02395989e-07, + "psnr_db": 161.205396, + "ref_absmax": 10.7744102, + "rel_max": 4.42564509e-07, + "scaled_max_abs": 4.42564509e-07 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5" + }, + "status": "pass", + "tap": "net.pos_embed", + "ungated_probes": { + "band_ratio": 0.00372250373, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-06, + "mean_abs": 1.53844187e-07, + "psnr_db": 150.879134, + "ref_absmax": 3.84287453, + "rel_max": 3.72250373e-07, + "scaled_max_abs": 3.72250373e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00444830914, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 1.32210313e-07, + "psnr_db": 160.202754, + "ref_absmax": 10.7195148, + "rel_max": 4.44830914e-07, + "scaled_max_abs": 4.44830914e-07 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_17" + }, + "status": "pass", + "tap": "net.blocks.0", + "ungated_probes": { + "band_ratio": 0.00319021497, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-06, + "mean_abs": 1.80076566e-07, + "psnr_db": 150.836238, + "ref_absmax": 4.48405981, + "rel_max": 3.19021497e-07, + "scaled_max_abs": 3.19021497e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00520015392, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.7220459e-06, + "mean_abs": 1.59003997e-07, + "psnr_db": 159.358395, + "ref_absmax": 11.0036087, + "rel_max": 5.20015392e-07, + "scaled_max_abs": 5.20015392e-07 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_29" + }, + "status": "pass", + "tap": "net.blocks.1", + "ungated_probes": { + "band_ratio": 0.00405042578, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.90734863e-06, + "mean_abs": 2.06149556e-07, + "psnr_db": 150.084957, + "ref_absmax": 4.70900774, + "rel_max": 4.05042578e-07, + "scaled_max_abs": 4.05042578e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00504228163, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.7220459e-06, + "mean_abs": 1.80415682e-07, + "psnr_db": 158.848975, + "ref_absmax": 11.3481283, + "rel_max": 5.04228163e-07, + "scaled_max_abs": 5.04228163e-07 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_41" + }, + "status": "pass", + "tap": "net.blocks.2", + "ungated_probes": { + "band_ratio": 0.00408237123, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.90734863e-06, + "mean_abs": 2.27423571e-07, + "psnr_db": 149.592356, + "ref_absmax": 4.67215872, + "rel_max": 4.08237123e-07, + "scaled_max_abs": 4.08237123e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0046395359, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.90734863e-06, + "mean_abs": 1.87305873e-07, + "psnr_db": 150.048256, + "ref_absmax": 4.11107635, + "rel_max": 4.6395359e-07, + "scaled_max_abs": 4.6395359e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x" + }, + "status": "pass", + "tap": "net.norm", + "ungated_probes": { + "band_ratio": 0.00427604688, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.1920929e-06, + "mean_abs": 1.49934592e-07, + "psnr_db": 148.718285, + "ref_absmax": 2.7878387, + "rel_max": 4.27604688e-07, + "scaled_max_abs": 4.27604688e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 68.9640443, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0139348507, + "mean_abs": 0.00253207413, + "psnr_db": 61.1929111, + "ref_absmax": 2.0205965, + "rel_max": 0.00689640443, + "scaled_max_abs": 0.00689640443 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input" + }, + "status": "fail", + "tap": "net.pool", + "ungated_probes": { + "band_ratio": 68.9688417, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0152819157, + "mean_abs": 0.00541828133, + "psnr_db": 56.0804855, + "ref_absmax": 2.21577096, + "rel_max": 0.00689688417, + "scaled_max_abs": 0.00689688417 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 11 + } + }, + { + "band_ratio": 62.8018205, + "index": 8, + "metrics": { + "corr": 0.999998008, + "finite": true, + "max_abs": 0.0079511404, + "mean_abs": 0.00140568834, + "psnr_db": 60.2858769, + "ref_absmax": 1.26606846, + "rel_max": 0.00628018205, + "scaled_max_abs": 0.00628018205 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "ungated_probes": { + "band_ratio": 75.9633975, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999418, + "finite": true, + "max_abs": 0.00847709179, + "mean_abs": 0.00315748211, + "psnr_db": 52.0049664, + "ref_absmax": 1.11594427, + "rel_max": 0.00759633975, + "scaled_max_abs": 0.00759633975 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 46.535538, + "metrics": { + "corr": 0.999999219, + "finite": true, + "max_abs": 0.00625681877, + "mean_abs": 0.00122186264, + "psnr_db": 63.0953282, + "ref_absmax": 1.34452486, + "rel_max": 0.0046535538, + "scaled_max_abs": 0.0046535538 + }, + "status": "fail", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + "first_fail_index": 7, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.08107465e-08, + "psnr_db": 164.245493, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.00112572895, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.38418579e-07, + "mean_abs": 4.66724468e-08, + "psnr_db": 130.436578, + "ref_absmax": 2.11790395, + "rel_max": 1.12572895e-07, + "scaled_max_abs": 1.12572895e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00321343524, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.81469727e-06, + "mean_abs": 1.00363271e-07, + "psnr_db": 161.89068, + "ref_absmax": 11.871088, + "rel_max": 3.21343524e-07, + "scaled_max_abs": 3.21343524e-07 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_5" + }, + "status": "pass", + "tap": "net.patch_embed", + "ungated_probes": { + "band_ratio": 0.0066369653, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.66893005e-06, + "mean_abs": 1.54185654e-07, + "psnr_db": 147.371009, + "ref_absmax": 2.51459813, + "rel_max": 6.6369653e-07, + "scaled_max_abs": 6.6369653e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00411958869, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 1.03226907e-07, + "psnr_db": 161.675356, + "ref_absmax": 11.574873, + "rel_max": 4.11958869e-07, + "scaled_max_abs": 4.11958869e-07 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5" + }, + "status": "pass", + "tap": "net.pos_embed", + "ungated_probes": { + "band_ratio": 0.00449246908, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.66893005e-06, + "mean_abs": 1.56293509e-07, + "psnr_db": 150.563555, + "ref_absmax": 3.71495056, + "rel_max": 4.49246908e-07, + "scaled_max_abs": 4.49246908e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00400885765, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 1.33781857e-07, + "psnr_db": 160.884376, + "ref_absmax": 11.8945894, + "rel_max": 4.00885765e-07, + "scaled_max_abs": 4.00885765e-07 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_17" + }, + "status": "pass", + "tap": "net.blocks.0", + "ungated_probes": { + "band_ratio": 0.00398309722, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.78813934e-06, + "mean_abs": 1.83840888e-07, + "psnr_db": 150.529679, + "ref_absmax": 4.48931885, + "rel_max": 3.98309722e-07, + "scaled_max_abs": 3.98309722e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00392341617, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 1.61500538e-07, + "psnr_db": 160.020088, + "ref_absmax": 12.1536217, + "rel_max": 3.92341617e-07, + "scaled_max_abs": 3.92341617e-07 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_29" + }, + "status": "pass", + "tap": "net.blocks.1", + "ungated_probes": { + "band_ratio": 0.00354015993, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.66893005e-06, + "mean_abs": 2.11576616e-07, + "psnr_db": 149.780509, + "ref_absmax": 4.7142787, + "rel_max": 3.54015993e-07, + "scaled_max_abs": 3.54015993e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00381164323, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 1.83644799e-07, + "psnr_db": 159.321607, + "ref_absmax": 12.5100155, + "rel_max": 3.81164323e-07, + "scaled_max_abs": 3.81164323e-07 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_41" + }, + "status": "pass", + "tap": "net.blocks.2", + "ungated_probes": { + "band_ratio": 0.00407781532, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.90734863e-06, + "mean_abs": 2.33471596e-07, + "psnr_db": 149.249265, + "ref_absmax": 4.67737865, + "rel_max": 4.07781532e-07, + "scaled_max_abs": 4.07781532e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00340724751, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-06, + "mean_abs": 1.89736057e-07, + "psnr_db": 150.127772, + "ref_absmax": 4.19843721, + "rel_max": 3.40724751e-07, + "scaled_max_abs": 3.40724751e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x" + }, + "status": "pass", + "tap": "net.norm", + "ungated_probes": { + "band_ratio": 0.00435673618, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.1920929e-06, + "mean_abs": 1.54496742e-07, + "psnr_db": 148.333414, + "ref_absmax": 2.73620629, + "rel_max": 4.35673618e-07, + "scaled_max_abs": 4.35673618e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 50.7601017, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0106604099, + "mean_abs": 0.00199115734, + "psnr_db": 63.4127074, + "ref_absmax": 2.10015535, + "rel_max": 0.00507601017, + "scaled_max_abs": 0.00507601017 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input" + }, + "status": "fail", + "tap": "net.pool", + "ungated_probes": { + "band_ratio": 50.7609964, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.011277914, + "mean_abs": 0.00400161921, + "psnr_db": 58.7442746, + "ref_absmax": 2.22176766, + "rel_max": 0.00507609964, + "scaled_max_abs": 0.00507609964 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 46.4876601, + "index": 8, + "metrics": { + "corr": 0.999999056, + "finite": true, + "max_abs": 0.00625038147, + "mean_abs": 0.0010631116, + "psnr_db": 63.1840524, + "ref_absmax": 1.34452486, + "rel_max": 0.00464876601, + "scaled_max_abs": 0.00464876601 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "ungated_probes": { + "band_ratio": 55.8998544, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999687, + "finite": true, + "max_abs": 0.00625681877, + "mean_abs": 0.00233311988, + "psnr_db": 54.6704893, + "ref_absmax": 1.11929071, + "rel_max": 0.00558998544, + "scaled_max_abs": 0.00558998544 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp32", + "id": "tinyvit__pool_divisor__coreml_fp32", + "model": "tinyvit", + "path": "coreml", + "variant": "pool_divisor" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/tinyvit__pool_divisor__litert_fp16.json b/bench/verdicts_calibrated4/tinyvit__pool_divisor__litert_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..bbf5908642097ffa94b8561de1914b3fbcc38878 --- /dev/null +++ b/bench/verdicts_calibrated4/tinyvit__pool_divisor__litert_fp16.json @@ -0,0 +1,822 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "baseline": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "faithful_output_rel_max": 0.000208557898, + "output_band": 0.01, + "source": { + "bundle": "bundles/tinyvit__clean__litert_fp16.json", + "case": "tinyvit__clean__litert_fp16", + "digests": { + "192": { + "converted": "170133fb2c750896c9b9cfaed4c8aab6b2e92dd28e9a0114b604c6d35736d93d", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "e6f67f478f27c5cbe93fb3192583b8c4adeb54f48117f07895a6c68beeb1c827", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + } + } + }, + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": false, + "note": null, + "status": "clear" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "reason": "first divergence at tap 7 is beyond the hypothesis taps (first 3) \u2014 interface faults surface earlier", + "status": "not_evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 1.33642743e-05, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.78813934e-07, + "mean_abs": 4.30562068e-08, + "psnr_db": 152.811319, + "ref_absmax": 1.33799958, + "rel_max": 1.33642743e-07, + "scaled_max_abs": 1.33642743e-07 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 57, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 1, + "n_ops_total": 187, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1", + "basis": "earliest tap over band with in-band predecessors (fp16: the tap's faithful envelope gates, C3-1)", + "index": 7, + "neighbourhood": [ + { + "band_ratio": 0.0284519364, + "index": 6, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "status": "pass", + "tap": "net.norm" + }, + { + "band_ratio": 19499.3145, + "index": 7, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "status": "fail", + "tap": "net.pool" + }, + { + "band_ratio": 0.485322234, + "index": 8, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "pass", + "tap": "net.head" + } + ], + "shape": 224, + "tap": "net.pool" + }, + "fp16_floor": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "baseline": { + "bundle": "bundles/tinyvit__clean__litert_fp16.json", + "case": "tinyvit__clean__litert_fp16", + "digests": { + "192": { + "converted": "170133fb2c750896c9b9cfaed4c8aab6b2e92dd28e9a0114b604c6d35736d93d", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "e6f67f478f27c5cbe93fb3192583b8c4adeb54f48117f07895a6c68beeb1c827", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + } + }, + "envelopes_gate": true, + "faithful_output_rel_max": 0.000208557898, + "faithful_tap_rel_max": { + "net.blocks.0": 0.000279738087, + "net.blocks.1": 0.000270794184, + "net.blocks.2": 0.000256599822, + "net.head": 0.000208557898, + "net.norm": 0.000310450195, + "net.patch_embed": 0.000277319462, + "net.pool": 0.000243123856, + "net.pos_embed": 0.000284416403, + "normalize": 8.27203959e-08 + }, + "floor": 0.01, + "k": 2.0, + "output_band": 0.01, + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used", + "tap_envelopes": { + "net.blocks.0": 0.01, + "net.blocks.1": 0.01, + "net.blocks.2": 0.01, + "net.head": 0.01, + "net.norm": 0.01, + "net.patch_embed": 0.01, + "net.pool": 0.01, + "net.pos_embed": 0.01, + "normalize": 0.01 + } + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "e49eed6e638a188644b2fd87625f54e9776f3af6fed32f29ebaa1d6f6b9044ef", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "6b81f951dd4d03cb240e07c26aa79a7061b8226a02954ad5198d73bc90388312", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D2", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_limit": 0.01, + "band_ratio": 0.660361156, + "metrics": { + "corr": 0.999998278, + "finite": true, + "max_abs": 0.00836062431, + "mean_abs": 0.00164952946, + "psnr_db": 60.1404236, + "ref_absmax": 1.26606846, + "rel_max": 0.00660361156, + "scaled_max_abs": 0.00660361156 + }, + "per_op_band_ratio": 0.660361156, + "status": "pass" + }, + "first_fail_index": 7, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 8.27203959e-06, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.26638033e-08, + "psnr_db": 163.904618, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "per_op_band_ratio": 8.27203959e-06, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0238484209, + "index": 1, + "metrics": { + "corr": 0.999999975, + "finite": true, + "max_abs": 0.00257468224, + "mean_abs": 0.000153147335, + "psnr_db": 99.1308904, + "ref_absmax": 10.7960281, + "rel_max": 0.000238484209, + "scaled_max_abs": 0.000238484209 + }, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;2" + }, + "per_op_band_ratio": 0.0238484209, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0238962707, + "index": 2, + "metrics": { + "corr": 0.999999977, + "finite": true, + "max_abs": 0.00257468224, + "mean_abs": 0.000153147282, + "psnr_db": 99.0500481, + "ref_absmax": 10.7744102, + "rel_max": 0.000238962707, + "scaled_max_abs": 0.000238962707 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;3" + }, + "per_op_band_ratio": 0.0238962707, + "status": "pass", + "tap": "net.pos_embed" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0248371341, + "index": 3, + "metrics": { + "corr": 0.999999975, + "finite": true, + "max_abs": 0.00266242027, + "mean_abs": 0.000175715531, + "psnr_db": 98.3929002, + "ref_absmax": 10.7195148, + "rel_max": 0.000248371341, + "scaled_max_abs": 0.000248371341 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "per_op_band_ratio": 0.0248371341, + "status": "pass", + "tap": "net.blocks.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0244428902, + "index": 4, + "metrics": { + "corr": 0.999999975, + "finite": true, + "max_abs": 0.00268959999, + "mean_abs": 0.000194126271, + "psnr_db": 98.0679496, + "ref_absmax": 11.0036087, + "rel_max": 0.000244428902, + "scaled_max_abs": 0.000244428902 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "per_op_band_ratio": 0.0244428902, + "status": "pass", + "tap": "net.blocks.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0249340827, + "index": 5, + "metrics": { + "corr": 0.999999975, + "finite": true, + "max_abs": 0.0028295517, + "mean_abs": 0.000204465949, + "psnr_db": 98.0757778, + "ref_absmax": 11.3481283, + "rel_max": 0.000249340827, + "scaled_max_abs": 0.000249340827 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "per_op_band_ratio": 0.0249340827, + "status": "pass", + "tap": "net.blocks.2" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0310450195, + "index": 6, + "metrics": { + "corr": 0.999999972, + "finite": true, + "max_abs": 0.00127628446, + "mean_abs": 0.000187560799, + "psnr_db": 90.4287298, + "ref_absmax": 4.11107635, + "rel_max": 0.000310450195, + "scaled_max_abs": 0.000310450195 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "per_op_band_ratio": 0.0310450195, + "status": "pass", + "tap": "net.norm" + }, + { + "band_limit": 0.01, + "band_ratio": 14299.4971, + "index": 7, + "metrics": { + "corr": 0.999999971, + "finite": true, + "max_abs": 316.844105, + "mean_abs": 59.9836797, + "psnr_db": -25.7531324, + "ref_absmax": 2.21577096, + "rel_max": 142.994971, + "scaled_max_abs": 142.994971 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "per_op_band_ratio": 14299.4971, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_limit": 0.01, + "band_ratio": 0.660361156, + "index": 8, + "metrics": { + "corr": 0.999998278, + "finite": true, + "max_abs": 0.00836062431, + "mean_abs": 0.00164952946, + "psnr_db": 60.1404236, + "ref_absmax": 1.26606846, + "rel_max": 0.00660361156, + "scaled_max_abs": 0.00660361156 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "per_op_band_ratio": 0.660361156, + "status": "pass", + "tap": "net.head" + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_limit": 0.01, + "band_ratio": 0.485322234, + "metrics": { + "corr": 0.999999038, + "finite": true, + "max_abs": 0.00652527809, + "mean_abs": 0.00126221171, + "psnr_db": 62.8275591, + "ref_absmax": 1.34452486, + "rel_max": 0.00485322234, + "scaled_max_abs": 0.00485322234 + }, + "per_op_band_ratio": 0.485322234, + "status": "pass" + }, + "first_fail_index": 7, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 8.27203959e-06, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.2793459e-08, + "psnr_db": 164.013874, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "per_op_band_ratio": 8.27203959e-06, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0277319462, + "index": 1, + "metrics": { + "corr": 0.999999975, + "finite": true, + "max_abs": 0.00329208374, + "mean_abs": 0.00015256364, + "psnr_db": 99.7212805, + "ref_absmax": 11.871088, + "rel_max": 0.000277319462, + "scaled_max_abs": 0.000277319462 + }, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;2" + }, + "per_op_band_ratio": 0.0277319462, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0284416403, + "index": 2, + "metrics": { + "corr": 0.999999977, + "finite": true, + "max_abs": 0.00329208374, + "mean_abs": 0.000152563603, + "psnr_db": 99.6624604, + "ref_absmax": 11.574873, + "rel_max": 0.000284416403, + "scaled_max_abs": 0.000284416403 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;3" + }, + "per_op_band_ratio": 0.0284416403, + "status": "pass", + "tap": "net.pos_embed" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0279738087, + "index": 3, + "metrics": { + "corr": 0.999999975, + "finite": true, + "max_abs": 0.00332736969, + "mean_abs": 0.000176384194, + "psnr_db": 99.194827, + "ref_absmax": 11.8945894, + "rel_max": 0.000279738087, + "scaled_max_abs": 0.000279738087 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "per_op_band_ratio": 0.0279738087, + "status": "pass", + "tap": "net.blocks.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0270794184, + "index": 4, + "metrics": { + "corr": 0.999999974, + "finite": true, + "max_abs": 0.00329113007, + "mean_abs": 0.000196887379, + "psnr_db": 98.8068327, + "ref_absmax": 12.1536217, + "rel_max": 0.000270794184, + "scaled_max_abs": 0.000270794184 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "per_op_band_ratio": 0.0270794184, + "status": "pass", + "tap": "net.blocks.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0256599822, + "index": 5, + "metrics": { + "corr": 0.999999975, + "finite": true, + "max_abs": 0.00321006775, + "mean_abs": 0.000207746592, + "psnr_db": 98.6389943, + "ref_absmax": 12.5100155, + "rel_max": 0.000256599822, + "scaled_max_abs": 0.000256599822 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "per_op_band_ratio": 0.0256599822, + "status": "pass", + "tap": "net.blocks.2" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0284519364, + "index": 6, + "metrics": { + "corr": 0.999999972, + "finite": true, + "max_abs": 0.00119453669, + "mean_abs": 0.000190440265, + "psnr_db": 90.5400099, + "ref_absmax": 4.19843721, + "rel_max": 0.000284519364, + "scaled_max_abs": 0.000284519364 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "per_op_band_ratio": 0.0284519364, + "status": "pass", + "tap": "net.norm" + }, + { + "band_limit": 0.01, + "band_ratio": 19499.3145, + "index": 7, + "metrics": { + "corr": 0.99999997, + "finite": true, + "max_abs": 433.229465, + "mean_abs": 86.1442551, + "psnr_db": -28.8635827, + "ref_absmax": 2.22176766, + "rel_max": 194.993145, + "scaled_max_abs": 194.993145 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "per_op_band_ratio": 19499.3145, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_limit": 0.01, + "band_ratio": 0.485322234, + "index": 8, + "metrics": { + "corr": 0.999999038, + "finite": true, + "max_abs": 0.00652527809, + "mean_abs": 0.00126221171, + "psnr_db": 62.8275591, + "ref_absmax": 1.34452486, + "rel_max": 0.00485322234, + "scaled_max_abs": 0.00485322234 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "per_op_band_ratio": 0.485322234, + "status": "pass", + "tap": "net.head" + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp16", + "id": "tinyvit__pool_divisor__litert_fp16", + "model": "tinyvit", + "path": "litert", + "variant": "pool_divisor" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/tinyvit__pool_divisor__litert_fp32.json b/bench/verdicts_calibrated4/tinyvit__pool_divisor__litert_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..bd26d0fc0f8bc114af8c3393312d49ffdee736f7 --- /dev/null +++ b/bench/verdicts_calibrated4/tinyvit__pool_divisor__litert_fp32.json @@ -0,0 +1,1047 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "reason": "first divergence at tap 7 is beyond the hypothesis taps (first 3) \u2014 interface faults surface earlier", + "status": "not_evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 0.00133615291, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.78813934e-07, + "mean_abs": 4.06987965e-08, + "psnr_db": 153.115635, + "ref_absmax": 1.33827448, + "rel_max": 1.33615291e-07, + "scaled_max_abs": 1.33615291e-07 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 57, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 1, + "n_ops_total": 173, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1", + "basis": "earliest tap over band with in-band predecessors", + "index": 7, + "neighbourhood": [ + { + "band_ratio": 0.0122093036, + "index": 6, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "status": "pass", + "tap": "net.norm" + }, + { + "band_ratio": 1950000.21, + "index": 7, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "status": "fail", + "tap": "net.pool" + }, + { + "band_ratio": 46.4876601, + "index": 8, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.head" + } + ], + "shape": 224, + "tap": "net.pool" + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "844380eaf800f5b493ebd5d563d0b9b82eace53384794852c5c8dfb768a0d82f", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "f215f4da600fbabd109654df7eb020955b11a62a8ab4840d1a297bf4291dd345", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "fp32 per-tap band on near-zero probes", + "reason": "C3-2: per-tap fp32 checks gate without the near_zero probes; they are measured and reported per tap ('ungated_probes'); the output gates on all probes. C4-1: when the output has failed and no gated tap fails, they localise the first divergence (earliest tap over band on all probes)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D2", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 66.954147, + "metrics": { + "corr": 0.999998439, + "finite": true, + "max_abs": 0.00847685337, + "mean_abs": 0.0016246671, + "psnr_db": 60.236384, + "ref_absmax": 1.26606846, + "rel_max": 0.0066954147, + "scaled_max_abs": 0.0066954147 + }, + "status": "fail", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + "first_fail_index": 7, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.06644368e-08, + "psnr_db": 164.113247, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.00112572895, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.38418579e-07, + "mean_abs": 4.66593688e-08, + "psnr_db": 130.397207, + "ref_absmax": 2.11790395, + "rel_max": 1.12572895e-07, + "scaled_max_abs": 1.12572895e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.013692028, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.47819519e-05, + "mean_abs": 3.62527481e-07, + "psnr_db": 150.740789, + "ref_absmax": 10.7960281, + "rel_max": 1.3692028e-06, + "scaled_max_abs": 1.3692028e-06 + }, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;2" + }, + "status": "pass", + "tap": "net.patch_embed", + "ungated_probes": { + "band_ratio": 0.0180220941, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.529953e-06, + "mean_abs": 4.841953e-07, + "psnr_db": 137.220487, + "ref_absmax": 2.51355529, + "rel_max": 1.80220941e-06, + "scaled_max_abs": 1.80220941e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0137194998, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.47819519e-05, + "mean_abs": 3.63416014e-07, + "psnr_db": 150.644745, + "ref_absmax": 10.7744102, + "rel_max": 1.37194998e-06, + "scaled_max_abs": 1.37194998e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;3" + }, + "status": "pass", + "tap": "net.pos_embed", + "ungated_probes": { + "band_ratio": 0.0120981371, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.64916229e-06, + "mean_abs": 4.8529616e-07, + "psnr_db": 140.716929, + "ref_absmax": 3.84287453, + "rel_max": 1.20981371e-06, + "scaled_max_abs": 1.20981371e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0133449274, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-05, + "mean_abs": 3.90630877e-07, + "psnr_db": 150.441385, + "ref_absmax": 10.7195148, + "rel_max": 1.33449274e-06, + "scaled_max_abs": 1.33449274e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.0", + "ungated_probes": { + "band_ratio": 0.0101023474, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.529953e-06, + "mean_abs": 5.03142903e-07, + "psnr_db": 141.614723, + "ref_absmax": 4.48405981, + "rel_max": 1.01023474e-06, + "scaled_max_abs": 1.01023474e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0130003848, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-05, + "mean_abs": 4.1390341e-07, + "psnr_db": 150.370016, + "ref_absmax": 11.0036087, + "rel_max": 1.30003848e-06, + "scaled_max_abs": 1.30003848e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.1", + "ungated_probes": { + "band_ratio": 0.00987291283, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.64916229e-06, + "mean_abs": 5.23810185e-07, + "psnr_db": 141.674258, + "ref_absmax": 4.70900774, + "rel_max": 9.87291283e-07, + "scaled_max_abs": 9.87291283e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0126057041, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-05, + "mean_abs": 4.34103036e-07, + "psnr_db": 150.446413, + "ref_absmax": 11.3481283, + "rel_max": 1.26057041e-06, + "scaled_max_abs": 1.26057041e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.2", + "ungated_probes": { + "band_ratio": 0.0102059281, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 5.38784295e-07, + "psnr_db": 141.827963, + "ref_absmax": 4.67215872, + "rel_max": 1.02059281e-06, + "scaled_max_abs": 1.02059281e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0104389558, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.29153442e-06, + "mean_abs": 4.09872673e-07, + "psnr_db": 143.228282, + "ref_absmax": 4.11107635, + "rel_max": 1.04389558e-06, + "scaled_max_abs": 1.04389558e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "status": "pass", + "tap": "net.norm", + "ungated_probes": { + "band_ratio": 0.0111177219, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.09944153e-06, + "mean_abs": 3.46622027e-07, + "psnr_db": 141.341254, + "ref_absmax": 2.7878387, + "rel_max": 1.11177219e-06, + "scaled_max_abs": 1.11177219e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 1430000.08, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 288.945315, + "mean_abs": 52.5026461, + "psnr_db": -25.1411751, + "ref_absmax": 2.0205965, + "rel_max": 143.000008, + "scaled_max_abs": 143.000008 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "status": "fail", + "tap": "net.pool", + "ungated_probes": { + "band_ratio": 1429999.71, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 316.855182, + "mean_abs": 112.347952, + "psnr_db": -30.253585, + "ref_absmax": 2.21577096, + "rel_max": 142.999971, + "scaled_max_abs": 142.999971 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 11 + } + }, + { + "band_ratio": 62.7971126, + "index": 8, + "metrics": { + "corr": 0.999998008, + "finite": true, + "max_abs": 0.00795054436, + "mean_abs": 0.00140569156, + "psnr_db": 60.2858732, + "ref_absmax": 1.26606846, + "rel_max": 0.00627971126, + "scaled_max_abs": 0.00627971126 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.head", + "ungated_probes": { + "band_ratio": 75.961261, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999418, + "finite": true, + "max_abs": 0.00847685337, + "mean_abs": 0.00315749589, + "psnr_db": 52.0049346, + "ref_absmax": 1.11594427, + "rel_max": 0.0075961261, + "scaled_max_abs": 0.0075961261 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 46.5337647, + "metrics": { + "corr": 0.999999219, + "finite": true, + "max_abs": 0.00625658035, + "mean_abs": 0.0012218587, + "psnr_db": 63.0953371, + "ref_absmax": 1.34452486, + "rel_max": 0.00465337647, + "scaled_max_abs": 0.00465337647 + }, + "status": "fail", + "worst_probe": { + "category": "near_zero", + "index": 27 + } + }, + "first_fail_index": 7, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.08107465e-08, + "psnr_db": 164.245493, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.00112572895, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.38418579e-07, + "mean_abs": 4.66724468e-08, + "psnr_db": 130.436578, + "ref_absmax": 2.11790395, + "rel_max": 1.12572895e-07, + "scaled_max_abs": 1.12572895e-07 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0120503822, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-05, + "mean_abs": 3.61783837e-07, + "psnr_db": 151.297602, + "ref_absmax": 11.871088, + "rel_max": 1.20503822e-06, + "scaled_max_abs": 1.20503822e-06 + }, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;2" + }, + "status": "pass", + "tap": "net.patch_embed", + "ungated_probes": { + "band_ratio": 0.0218071717, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.48362732e-06, + "mean_abs": 4.85357549e-07, + "psnr_db": 137.211056, + "ref_absmax": 2.51459813, + "rel_max": 2.18071717e-06, + "scaled_max_abs": 2.18071717e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0123587661, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-05, + "mean_abs": 3.62607432e-07, + "psnr_db": 151.221115, + "ref_absmax": 11.574873, + "rel_max": 1.23587661e-06, + "scaled_max_abs": 1.23587661e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;3" + }, + "status": "pass", + "tap": "net.pos_embed", + "ungated_probes": { + "band_ratio": 0.0147609698, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.48362732e-06, + "mean_abs": 4.85683925e-07, + "psnr_db": 140.560247, + "ref_absmax": 3.71495056, + "rel_max": 1.47609698e-06, + "scaled_max_abs": 1.47609698e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.012026573, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-05, + "mean_abs": 3.90495829e-07, + "psnr_db": 151.23837, + "ref_absmax": 11.8945894, + "rel_max": 1.2026573e-06, + "scaled_max_abs": 1.2026573e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.0", + "ungated_probes": { + "band_ratio": 0.0130114509, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.84125519e-06, + "mean_abs": 5.0340425e-07, + "psnr_db": 141.475988, + "ref_absmax": 4.48931885, + "rel_max": 1.30114509e-06, + "scaled_max_abs": 1.30114509e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0109855653, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33514404e-05, + "mean_abs": 4.15569578e-07, + "psnr_db": 151.133586, + "ref_absmax": 12.1536217, + "rel_max": 1.09855653e-06, + "scaled_max_abs": 1.09855653e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.1", + "ungated_probes": { + "band_ratio": 0.0126434283, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.96046448e-06, + "mean_abs": 5.25648263e-07, + "psnr_db": 141.57817, + "ref_absmax": 4.7142787, + "rel_max": 1.26434283e-06, + "scaled_max_abs": 1.26434283e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.010672601, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33514404e-05, + "mean_abs": 4.36010547e-07, + "psnr_db": 151.026245, + "ref_absmax": 12.5100155, + "rel_max": 1.0672601e-06, + "scaled_max_abs": 1.0672601e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.2", + "ungated_probes": { + "band_ratio": 0.0127431729, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.96046448e-06, + "mean_abs": 5.40419376e-07, + "psnr_db": 141.681128, + "ref_absmax": 4.67737865, + "rel_max": 1.27431729e-06, + "scaled_max_abs": 1.27431729e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0122093036, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.12599945e-06, + "mean_abs": 4.08445907e-07, + "psnr_db": 143.426344, + "ref_absmax": 4.19843721, + "rel_max": 1.22093036e-06, + "scaled_max_abs": 1.22093036e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "status": "pass", + "tap": "net.norm", + "ungated_probes": { + "band_ratio": 0.0126345349, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.4570694e-06, + "mean_abs": 3.47359721e-07, + "psnr_db": 141.184392, + "ref_absmax": 2.73620629, + "rel_max": 1.26345349e-06, + "scaled_max_abs": 1.26345349e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 1950000.21, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 409.530338, + "mean_abs": 76.4899539, + "psnr_db": -28.2772635, + "ref_absmax": 2.10015535, + "rel_max": 195.000021, + "scaled_max_abs": 195.000021 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "status": "fail", + "tap": "net.pool", + "ungated_probes": { + "band_ratio": 1950000.41, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 433.244785, + "mean_abs": 153.720608, + "psnr_db": -32.9456493, + "ref_absmax": 2.22176766, + "rel_max": 195.000041, + "scaled_max_abs": 195.000041 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 46.4876601, + "index": 8, + "metrics": { + "corr": 0.999999056, + "finite": true, + "max_abs": 0.00625038147, + "mean_abs": 0.00106311101, + "psnr_db": 63.1840272, + "ref_absmax": 1.34452486, + "rel_max": 0.00464876601, + "scaled_max_abs": 0.00464876601 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.head", + "ungated_probes": { + "band_ratio": 55.8977243, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999687, + "finite": true, + "max_abs": 0.00625658035, + "mean_abs": 0.0023330925, + "psnr_db": 54.6705538, + "ref_absmax": 1.11929071, + "rel_max": 0.00558977243, + "scaled_max_abs": 0.00558977243 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp32", + "id": "tinyvit__pool_divisor__litert_fp32", + "model": "tinyvit", + "path": "litert", + "variant": "pool_divisor" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_calibrated4/tinyvit__pool_divisor__onnx_fp16.json b/bench/verdicts_calibrated4/tinyvit__pool_divisor__onnx_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..e5e6a7a2660a987a91081fefdd5f4bd2ada3eb91 --- /dev/null +++ b/bench/verdicts_calibrated4/tinyvit__pool_divisor__onnx_fp16.json @@ -0,0 +1,737 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "baseline": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "faithful_output_rel_max": 0.000456508758, + "output_band": 0.01, + "source": { + "bundle": "bundles/tinyvit__clean__onnx_fp16.json", + "case": "tinyvit__clean__onnx_fp16", + "digests": { + "192": { + "converted": "256af465b0649a975fd83c261b17d7830bd11a36abe6723c11a591e4649ad014", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "4e990e5a6766e80eea68d854f1db627a391a6a25b03b20781b4f30f0c5c65cf1", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + } + } + }, + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": false, + "note": null, + "status": "clear" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "status": "clear" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp16", + "first_divergence": null, + "fp16_floor": { + "aggregation": "suite-level rel_max, worst over shapes [224, 192]", + "baseline": { + "bundle": "bundles/tinyvit__clean__onnx_fp16.json", + "case": "tinyvit__clean__onnx_fp16", + "digests": { + "192": { + "converted": "256af465b0649a975fd83c261b17d7830bd11a36abe6723c11a591e4649ad014", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "4e990e5a6766e80eea68d854f1db627a391a6a25b03b20781b4f30f0c5c65cf1", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + } + }, + "envelopes_gate": true, + "faithful_output_rel_max": 0.000456508758, + "faithful_tap_rel_max": { + "net.blocks.0": 0.000642335839, + "net.blocks.1": 0.000711207718, + "net.blocks.2": 0.000762561059, + "net.head": 0.000463029134, + "net.norm": 0.000851897059, + "net.patch_embed": 0.000469161546, + "net.pool": 0.00079208262, + "net.pos_embed": 0.0007491884, + "normalize": 0.000441313312 + }, + "floor": 0.01, + "k": 2.0, + "output_band": 0.01, + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used", + "tap_envelopes": { + "net.blocks.0": 0.01, + "net.blocks.1": 0.01, + "net.blocks.2": 0.01, + "net.head": 0.01, + "net.norm": 0.01, + "net.patch_embed": 0.01, + "net.pool": 0.01, + "net.pos_embed": 0.01, + "normalize": 0.01 + } + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "ac0e3b32b38e428a910d206ec5447f14032a587c09dec4ee7bee2c21f4f0b269", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "3905d27ff62d39a7d9c6c57e446c43c8e1253d97fac03be1184acea2cc4991fe", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 4.87864017e-05, + "224": 4.37051058e-05 + }, + "primary_class": null, + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_limit": 0.01, + "band_ratio": 0.658939385, + "metrics": { + "corr": 0.999998369, + "finite": true, + "max_abs": 0.00834262371, + "mean_abs": 0.00164816977, + "psnr_db": 60.2466927, + "ref_absmax": 1.26606846, + "rel_max": 0.00658939385, + "scaled_max_abs": 0.00658939385 + }, + "per_op_band_ratio": 0.658939385, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 0.0441313312, + "index": 0, + "metrics": { + "corr": 0.999999966, + "finite": true, + "max_abs": 0.00508785248, + "mean_abs": 0.000405953078, + "psnr_db": 88.0186903, + "ref_absmax": 11.5288897, + "rel_max": 0.000441313312, + "scaled_max_abs": 0.000441313312 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "per_op_band_ratio": 0.0441313312, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0469150713, + "index": 1, + "metrics": { + "corr": 0.999999939, + "finite": true, + "max_abs": 0.00506496429, + "mean_abs": 0.000255633799, + "psnr_db": 95.3001421, + "ref_absmax": 10.7960281, + "rel_max": 0.000469150713, + "scaled_max_abs": 0.000469150713 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "per_op_band_ratio": 0.0469150713, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0735365188, + "index": 2, + "metrics": { + "corr": 0.999999921, + "finite": true, + "max_abs": 0.00792312622, + "mean_abs": 0.000301602973, + "psnr_db": 93.5874175, + "ref_absmax": 10.7744102, + "rel_max": 0.000735365188, + "scaled_max_abs": 0.000735365188 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "per_op_band_ratio": 0.0735365188, + "status": "pass", + "tap": "net.pos_embed" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0642335839, + "index": 3, + "metrics": { + "corr": 0.999999915, + "finite": true, + "max_abs": 0.00688552856, + "mean_abs": 0.000337762151, + "psnr_db": 93.052585, + "ref_absmax": 10.7195148, + "rel_max": 0.000642335839, + "scaled_max_abs": 0.000642335839 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "per_op_band_ratio": 0.0642335839, + "status": "pass", + "tap": "net.blocks.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0711207718, + "index": 4, + "metrics": { + "corr": 0.99999991, + "finite": true, + "max_abs": 0.00782585144, + "mean_abs": 0.000375974454, + "psnr_db": 92.5622871, + "ref_absmax": 11.0036087, + "rel_max": 0.000711207718, + "scaled_max_abs": 0.000711207718 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0" + }, + "per_op_band_ratio": 0.0711207718, + "status": "pass", + "tap": "net.blocks.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0762561059, + "index": 5, + "metrics": { + "corr": 0.999999905, + "finite": true, + "max_abs": 0.00865364075, + "mean_abs": 0.000407947414, + "psnr_db": 92.2800434, + "ref_absmax": 11.3481283, + "rel_max": 0.000762561059, + "scaled_max_abs": 0.000762561059 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0" + }, + "per_op_band_ratio": 0.0762561059, + "status": "pass", + "tap": "net.blocks.2" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0818820092, + "index": 6, + "metrics": { + "corr": 0.999999846, + "finite": true, + "max_abs": 0.00336623192, + "mean_abs": 0.000424373745, + "psnr_db": 83.0143914, + "ref_absmax": 4.11107635, + "rel_max": 0.000818820092, + "scaled_max_abs": 0.000818820092 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "per_op_band_ratio": 0.0818820092, + "status": "pass", + "tap": "net.norm" + }, + { + "band_limit": 0.01, + "band_ratio": 0.678896064, + "index": 7, + "metrics": { + "corr": 0.99999981, + "finite": true, + "max_abs": 0.0150427818, + "mean_abs": 0.00289370061, + "psnr_db": 60.5835174, + "ref_absmax": 2.21577096, + "rel_max": 0.00678896064, + "scaled_max_abs": 0.00678896064 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/Div_output_0" + }, + "per_op_band_ratio": 0.678896064, + "status": "pass", + "tap": "net.pool" + }, + { + "band_limit": 0.01, + "band_ratio": 0.660766032, + "index": 8, + "metrics": { + "corr": 0.999998372, + "finite": true, + "max_abs": 0.00836575031, + "mean_abs": 0.00164719504, + "psnr_db": 60.2472816, + "ref_absmax": 1.26606846, + "rel_max": 0.00660766032, + "scaled_max_abs": 0.00660766032 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "per_op_band_ratio": 0.660766032, + "status": "pass", + "tap": "net.head" + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_limit": 0.01, + "band_ratio": 0.461835468, + "metrics": { + "corr": 0.999999134, + "finite": true, + "max_abs": 0.00620949268, + "mean_abs": 0.00125833838, + "psnr_db": 63.0442076, + "ref_absmax": 1.34452486, + "rel_max": 0.00461835468, + "scaled_max_abs": 0.00461835468 + }, + "per_op_band_ratio": 0.461835468, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [], + "n_gated": 32 + } + }, + "taps": [ + { + "band_limit": 0.01, + "band_ratio": 0.0439328023, + "index": 0, + "metrics": { + "corr": 0.999999965, + "finite": true, + "max_abs": 0.00506496429, + "mean_abs": 0.000406712054, + "psnr_db": 88.0749992, + "ref_absmax": 11.5288897, + "rel_max": 0.000439328023, + "scaled_max_abs": 0.000439328023 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "per_op_band_ratio": 0.0439328023, + "status": "pass", + "tap": "normalize" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0469161546, + "index": 1, + "metrics": { + "corr": 0.99999994, + "finite": true, + "max_abs": 0.00556945801, + "mean_abs": 0.000254492238, + "psnr_db": 95.9056844, + "ref_absmax": 11.871088, + "rel_max": 0.000469161546, + "scaled_max_abs": 0.000469161546 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "per_op_band_ratio": 0.0469161546, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_limit": 0.01, + "band_ratio": 0.07491884, + "index": 2, + "metrics": { + "corr": 0.99999992, + "finite": true, + "max_abs": 0.00867176056, + "mean_abs": 0.000301083888, + "psnr_db": 94.1877045, + "ref_absmax": 11.574873, + "rel_max": 0.0007491884, + "scaled_max_abs": 0.0007491884 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "per_op_band_ratio": 0.07491884, + "status": "pass", + "tap": "net.pos_embed" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0635564292, + "index": 3, + "metrics": { + "corr": 0.999999915, + "finite": true, + "max_abs": 0.00755977631, + "mean_abs": 0.000339032434, + "psnr_db": 93.8757594, + "ref_absmax": 11.8945894, + "rel_max": 0.000635564292, + "scaled_max_abs": 0.000635564292 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "per_op_band_ratio": 0.0635564292, + "status": "pass", + "tap": "net.blocks.0" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0671218039, + "index": 4, + "metrics": { + "corr": 0.99999991, + "finite": true, + "max_abs": 0.0081577301, + "mean_abs": 0.000376167463, + "psnr_db": 93.3355793, + "ref_absmax": 12.1536217, + "rel_max": 0.000671218039, + "scaled_max_abs": 0.000671218039 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0" + }, + "per_op_band_ratio": 0.0671218039, + "status": "pass", + "tap": "net.blocks.1" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0664445648, + "index": 5, + "metrics": { + "corr": 0.999999905, + "finite": true, + "max_abs": 0.00831222534, + "mean_abs": 0.000408523199, + "psnr_db": 92.8873389, + "ref_absmax": 12.5100155, + "rel_max": 0.000664445648, + "scaled_max_abs": 0.000664445648 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0" + }, + "per_op_band_ratio": 0.0664445648, + "status": "pass", + "tap": "net.blocks.2" + }, + { + "band_limit": 0.01, + "band_ratio": 0.0851897059, + "index": 6, + "metrics": { + "corr": 0.999999848, + "finite": true, + "max_abs": 0.00357663631, + "mean_abs": 0.000421772845, + "psnr_db": 83.2639281, + "ref_absmax": 4.19843721, + "rel_max": 0.000851897059, + "scaled_max_abs": 0.000851897059 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "per_op_band_ratio": 0.0851897059, + "status": "pass", + "tap": "net.norm" + }, + { + "band_limit": 0.01, + "band_ratio": 0.487457088, + "index": 7, + "metrics": { + "corr": 0.999999832, + "finite": true, + "max_abs": 0.010830164, + "mean_abs": 0.00226106985, + "psnr_db": 62.7453328, + "ref_absmax": 2.22176766, + "rel_max": 0.00487457088, + "scaled_max_abs": 0.00487457088 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/Div_output_0" + }, + "per_op_band_ratio": 0.487457088, + "status": "pass", + "tap": "net.pool" + }, + { + "band_limit": 0.01, + "band_ratio": 0.462597968, + "index": 8, + "metrics": { + "corr": 0.999999132, + "finite": true, + "max_abs": 0.00621974468, + "mean_abs": 0.00125831807, + "psnr_db": 63.0439163, + "ref_absmax": 1.34452486, + "rel_max": 0.00462597968, + "scaled_max_abs": 0.00462597968 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "per_op_band_ratio": 0.462597968, + "status": "pass", + "tap": "net.head" + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp16", + "id": "tinyvit__pool_divisor__onnx_fp16", + "model": "tinyvit", + "path": "onnx", + "variant": "pool_divisor" + }, + "tap_bands_gate": true, + "verdict": "PASS" +} diff --git a/bench/verdicts_calibrated4/tinyvit__pool_divisor__onnx_fp32.json b/bench/verdicts_calibrated4/tinyvit__pool_divisor__onnx_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..05d604b929596b71a19d3e81a53c6c3b8b8e2e3e --- /dev/null +++ b/bench/verdicts_calibrated4/tinyvit__pool_divisor__onnx_fp32.json @@ -0,0 +1,1017 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "d6": { + "margin": 0.707106781, + "rule": "C4-2 (b1): D6 is inferred only if every gated location of the nominal shape (the output and every judged tap) is at band ratio <= margin; otherwise the case classes by its own signature at the failing shape" + }, + "fp16": { + "band_rule": "output band = max(1e-2, k x faithful output rel_max); envelope per tap = max(1e-2, k x faithful tap rel_max); a first over-envelope tap fails the verdict (C3-1)", + "eligibility": "C3-1e: a plant is sub-band iff its true effect is within max(1e-2, faithful drift) at every tap and at the output", + "floor": 0.01, + "gating": "per_op (tap envelopes) + output", + "k": 2.0, + "metric": "rel_max", + "statement": "the fp16 verdict flags drift beyond what fp16 precision itself explains for this model on this converter path (measured on its own faithful fp16 conversion), at the output or at the first tap over its envelope, and prints the floor it used" + }, + "fp32": { + "limit": 0.0001, + "localisation": "C4-1 (a1): near-zero evidence localises, never initiates: when the output has failed and no gated tap fails, the first divergence is the earliest tap over band on all probes", + "metric": "scaled_max_abs", + "per_tap_gated_on": "all probes except near_zero (C3-2); output: all probes" + }, + "gating_per_precision": { + "fp16": "per_op", + "fp32": "per_op", + "int8": "per_op" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "natural probes only (C3-3)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "uniform", + "wide_range", + "near_zero", + "saturating" + ] + }, + "probe_gating": { + "fp16": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [] + } + }, + "fp32": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "int8": { + "output": { + "gated_categories_only": [ + "natural" + ] + }, + "tap": { + "gated_categories_only": [ + "natural" + ] + } + } + }, + "reproducibility_bound_max_abs": 1e-06, + "structural": "C3-5: an output shape mismatch is a structural finding: D3 at the nominal shape, D6 at another shape; a tap shape mismatch makes that tap not judgeable", + "version": "d04-cal4" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "reason": "first divergence at tap 7 is beyond the hypothesis taps (first 3) \u2014 interface faults surface earlier", + "status": "not_evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "d6_margin": 0.707106781, + "d6_margin_scope": "every gated location of the nominal shape (C4-2)", + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "/net/pool/Div_output_0", + "basis": "earliest tap over band with in-band predecessors", + "index": 7, + "neighbourhood": [ + { + "band_ratio": 0.0102217425, + "index": 6, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "status": "pass", + "tap": "net.norm" + }, + { + "band_ratio": 50.7601017, + "index": 7, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/Div_output_0" + }, + "status": "fail", + "tap": "net.pool" + }, + { + "band_ratio": 46.4858868, + "index": 8, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head" + } + ], + "shape": 224, + "tap": "net.pool" + }, + "fp32_localisation": "C4-1: near-zero evidence localises, never initiates", + "gating": "calibrated4", + "gating_effective": "per_op", + "inputs": { + "192": { + "converted": "29e7e1dbaad6a6990775eb00895aa52693a3a89cdbcd96543c0bafbf687bb936", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "63cfd5e8ddbb86e7614d07034c066744d3e7c0eb4d47e246e163194db543f59d", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "fp32 per-tap band on near-zero probes", + "reason": "C3-2: per-tap fp32 checks gate without the near_zero probes; they are measured and reported per tap ('ungated_probes'); the output gates on all probes. C4-1: when the output has failed and no gated tap fails, they localise the first divergence (earliest tap over band on all probes)" + }, + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 1.1920929e-07, + "224": 1.1920929e-07 + }, + "primary_class": "D2", + "probe_gating": { + "output": { + "excluded_categories": [] + }, + "tap": { + "excluded_categories": [ + "near_zero" + ] + } + }, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 66.9569717, + "metrics": { + "corr": 0.999998439, + "finite": true, + "max_abs": 0.008477211, + "mean_abs": 0.00162467309, + "psnr_db": 60.2363699, + "ref_absmax": 1.26606846, + "rel_max": 0.00669569717, + "scaled_max_abs": 0.00669569717 + }, + "status": "fail", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + }, + "first_fail_index": 7, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.0, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 11.5288897, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.0, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 2.11790395, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0119253147, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.28746033e-05, + "mean_abs": 3.05237152e-07, + "psnr_db": 151.990326, + "ref_absmax": 10.7960281, + "rel_max": 1.19253147e-06, + "scaled_max_abs": 1.19253147e-06 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "status": "pass", + "tap": "net.patch_embed", + "ungated_probes": { + "band_ratio": 0.0170735629, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.29153442e-06, + "mean_abs": 4.19041159e-07, + "psnr_db": 138.187965, + "ref_absmax": 2.51355529, + "rel_max": 1.70735629e-06, + "scaled_max_abs": 1.70735629e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0119492417, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.28746033e-05, + "mean_abs": 3.36284482e-07, + "psnr_db": 151.560529, + "ref_absmax": 10.7744102, + "rel_max": 1.19492417e-06, + "scaled_max_abs": 1.19492417e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "status": "pass", + "tap": "net.pos_embed", + "ungated_probes": { + "band_ratio": 0.0111675112, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.29153442e-06, + "mean_abs": 4.39594733e-07, + "psnr_db": 141.414892, + "ref_absmax": 3.84287453, + "rel_max": 1.11675112e-06, + "scaled_max_abs": 1.11675112e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0124552656, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33514404e-05, + "mean_abs": 3.63612535e-07, + "psnr_db": 151.291476, + "ref_absmax": 10.7195148, + "rel_max": 1.24552656e-06, + "scaled_max_abs": 1.24552656e-06 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.0", + "ungated_probes": { + "band_ratio": 0.0101023474, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.529953e-06, + "mean_abs": 4.59172598e-07, + "psnr_db": 142.28545, + "ref_absmax": 4.48405981, + "rel_max": 1.01023474e-06, + "scaled_max_abs": 1.01023474e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0121336925, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33514404e-05, + "mean_abs": 3.89131165e-07, + "psnr_db": 151.149544, + "ref_absmax": 11.0036087, + "rel_max": 1.21336925e-06, + "scaled_max_abs": 1.21336925e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.1", + "ungated_probes": { + "band_ratio": 0.0101260644, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 4.81151877e-07, + "psnr_db": 142.321354, + "ref_absmax": 4.70900774, + "rel_max": 1.01260644e-06, + "scaled_max_abs": 1.01260644e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0117653238, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33514404e-05, + "mean_abs": 4.11277598e-07, + "psnr_db": 151.150197, + "ref_absmax": 11.3481283, + "rel_max": 1.17653238e-06, + "scaled_max_abs": 1.17653238e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.2", + "ungated_probes": { + "band_ratio": 0.0102059281, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 4.97824607e-07, + "psnr_db": 142.42675, + "ref_absmax": 4.67215872, + "rel_max": 1.02059281e-06, + "scaled_max_abs": 1.02059281e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0104389558, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.29153442e-06, + "mean_abs": 4.01562031e-07, + "psnr_db": 143.411533, + "ref_absmax": 4.11107635, + "rel_max": 1.04389558e-06, + "scaled_max_abs": 1.04389558e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "status": "pass", + "tap": "net.norm", + "ungated_probes": { + "band_ratio": 0.0106901172, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.98023224e-06, + "mean_abs": 3.24296879e-07, + "psnr_db": 141.845193, + "ref_absmax": 2.7878387, + "rel_max": 1.06901172e-06, + "scaled_max_abs": 1.06901172e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 68.9628644, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0139346123, + "mean_abs": 0.00253208169, + "psnr_db": 61.192909, + "ref_absmax": 2.0205965, + "rel_max": 0.00689628644, + "scaled_max_abs": 0.00689628644 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/Div_output_0" + }, + "status": "fail", + "tap": "net.pool", + "ungated_probes": { + "band_ratio": 68.9688417, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0152819157, + "mean_abs": 0.00541829674, + "psnr_db": 56.0804557, + "ref_absmax": 2.21577096, + "rel_max": 0.00689688417, + "scaled_max_abs": 0.00689688417 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "natural", + "index": 11 + } + }, + { + "band_ratio": 62.7980542, + "index": 8, + "metrics": { + "corr": 0.999998008, + "finite": true, + "max_abs": 0.00795066357, + "mean_abs": 0.00140569388, + "psnr_db": 60.2858873, + "ref_absmax": 1.26606846, + "rel_max": 0.00627980542, + "scaled_max_abs": 0.00627980542 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "ungated_probes": { + "band_ratio": 75.9633975, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999418, + "finite": true, + "max_abs": 0.00847709179, + "mean_abs": 0.00315748751, + "psnr_db": 52.0049644, + "ref_absmax": 1.11594427, + "rel_max": 0.00759633975, + "scaled_max_abs": 0.00759633975 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 46.535538, + "metrics": { + "corr": 0.999999219, + "finite": true, + "max_abs": 0.00625681877, + "mean_abs": 0.00122184791, + "psnr_db": 63.0954314, + "ref_absmax": 1.34452486, + "rel_max": 0.0046535538, + "scaled_max_abs": 0.0046535538 + }, + "status": "fail", + "worst_probe": { + "category": "near_zero", + "index": 27 + } + }, + "first_fail_index": 7, + "n_judged": 9, + "n_taps": 9, + "probe_gating": { + "output": { + "excluded_categories": [], + "n_gated": 32 + }, + "tap": { + "excluded_categories": [ + "near_zero" + ], + "n_gated": 28 + } + }, + "taps": [ + { + "band_ratio": 0.0, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 11.5288897, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize", + "ungated_probes": { + "band_ratio": 0.0, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 2.11790395, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0104436645, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.23977661e-05, + "mean_abs": 3.03467206e-07, + "psnr_db": 152.573303, + "ref_absmax": 11.871088, + "rel_max": 1.04436645e-06, + "scaled_max_abs": 1.04436645e-06 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "status": "pass", + "tap": "net.patch_embed", + "ungated_probes": { + "band_ratio": 0.0170664822, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.29153442e-06, + "mean_abs": 4.21279035e-07, + "psnr_db": 138.195951, + "ref_absmax": 2.51459813, + "rel_max": 1.70664822e-06, + "scaled_max_abs": 1.70664822e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0107109306, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.23977661e-05, + "mean_abs": 3.04157085e-07, + "psnr_db": 152.494897, + "ref_absmax": 11.574873, + "rel_max": 1.07109306e-06, + "scaled_max_abs": 1.07109306e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "status": "pass", + "tap": "net.pos_embed", + "ungated_probes": { + "band_ratio": 0.0115520634, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.29153442e-06, + "mean_abs": 4.21630477e-07, + "psnr_db": 141.539177, + "ref_absmax": 3.71495056, + "rel_max": 1.15520634e-06, + "scaled_max_abs": 1.15520634e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0104230299, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.23977661e-05, + "mean_abs": 3.33690815e-07, + "psnr_db": 152.451548, + "ref_absmax": 11.8945894, + "rel_max": 1.04230299e-06, + "scaled_max_abs": 1.04230299e-06 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.0", + "ungated_probes": { + "band_ratio": 0.010090513, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.529953e-06, + "mean_abs": 4.40578055e-07, + "psnr_db": 142.442878, + "ref_absmax": 4.48931885, + "rel_max": 1.0090513e-06, + "scaled_max_abs": 1.0090513e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.010200882, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.23977661e-05, + "mean_abs": 3.60024885e-07, + "psnr_db": 152.293918, + "ref_absmax": 12.1536217, + "rel_max": 1.0200882e-06, + "scaled_max_abs": 1.0200882e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.1", + "ungated_probes": { + "band_ratio": 0.0101147427, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 4.63398056e-07, + "psnr_db": 142.526885, + "ref_absmax": 4.7142787, + "rel_max": 1.01147427e-06, + "scaled_max_abs": 1.01147427e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.00991027239, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.23977661e-05, + "mean_abs": 3.81327232e-07, + "psnr_db": 152.146331, + "ref_absmax": 12.5100155, + "rel_max": 9.91027239e-07, + "scaled_max_abs": 9.91027239e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.2", + "ungated_probes": { + "band_ratio": 0.0101945383, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 4.78492643e-07, + "psnr_db": 142.60423, + "ref_absmax": 4.67737865, + "rel_max": 1.01945383e-06, + "scaled_max_abs": 1.01945383e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 0.0102217425, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.29153442e-06, + "mean_abs": 3.63295843e-07, + "psnr_db": 144.434474, + "ref_absmax": 4.19843721, + "rel_max": 1.02217425e-06, + "scaled_max_abs": 1.02217425e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "status": "pass", + "tap": "net.norm", + "ungated_probes": { + "band_ratio": 0.0104561668, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.86102295e-06, + "mean_abs": 3.12752192e-07, + "psnr_db": 141.96993, + "ref_absmax": 2.73620629, + "rel_max": 1.04561668e-06, + "scaled_max_abs": 1.04561668e-06 + }, + "n_probes": 4 + } + }, + { + "band_ratio": 50.7601017, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0106604099, + "mean_abs": 0.0019911407, + "psnr_db": 63.4127423, + "ref_absmax": 2.10015535, + "rel_max": 0.00507601017, + "scaled_max_abs": 0.00507601017 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/Div_output_0" + }, + "status": "fail", + "tap": "net.pool", + "ungated_probes": { + "band_ratio": 50.7599233, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0112776756, + "mean_abs": 0.0040015905, + "psnr_db": 58.7443398, + "ref_absmax": 2.22176766, + "rel_max": 0.00507599233, + "scaled_max_abs": 0.00507599233 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 46.4858868, + "index": 8, + "metrics": { + "corr": 0.999999056, + "finite": true, + "max_abs": 0.00625014305, + "mean_abs": 0.00106309595, + "psnr_db": 63.184144, + "ref_absmax": 1.34452486, + "rel_max": 0.00464858868, + "scaled_max_abs": 0.00464858868 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "ungated_probes": { + "band_ratio": 55.8998544, + "categories": [ + "near_zero" + ], + "metrics": { + "corr": 0.999999687, + "finite": true, + "max_abs": 0.00625681877, + "mean_abs": 0.00233309232, + "psnr_db": 54.670646, + "ref_absmax": 1.11929071, + "rel_max": 0.00558998544, + "scaled_max_abs": 0.00558998544 + }, + "n_probes": 4 + }, + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + } + }, + "structural_findings": [], + "subject": { + "artifact_precision_requested": "fp32", + "id": "tinyvit__pool_divisor__onnx_fp32", + "model": "tinyvit", + "path": "onnx", + "variant": "pool_divisor" + }, + "tap_bands_gate": true, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/mobilenet_v3_small__baked_shape__coreml_fp16.json b/bench/verdicts_e2e_gated/mobilenet_v3_small__baked_shape__coreml_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..88bec000cadb797dd2b32a8aed6cc52b6dccebcb --- /dev/null +++ b/bench/verdicts_e2e_gated/mobilenet_v3_small__baked_shape__coreml_fp16.json @@ -0,0 +1,1049 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "at": "net.features.1", + "explained_by": null, + "nominal_band_ratio": 0.889396549, + "results": [ + { + "band_ratio": 88.0535283, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 70.5427189, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 608.928887, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 113.160239, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 379.294491, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [ + "inputs[0]: dtype float16 (declared float32)", + "outputs[0]: dtype float16 (declared float32)" + ], + "status": "precision_narrowing" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "input_27_cast_fp16", + "basis": "earliest tap over band with in-band predecessors", + "index": 2, + "neighbourhood": [ + { + "band_ratio": 0.33139093, + "index": 1, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_7_cast_fp16" + }, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_ratio": 1.09594004, + "index": 2, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_27_cast_fp16" + }, + "status": "fail", + "tap": "net.features.1" + }, + { + "band_ratio": 1.00240612, + "index": 3, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_43_cast_fp16" + }, + "status": "fail", + "tap": "net.features.2" + } + ], + "shape": 224, + "tap": "net.features.1" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "61cde16098a17b1b9ec4d4af1a9faffff976716979bf9fd4f856bc0c6e7f5c97", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "807adc810963567dc9e14f27330f17d8d7cd30ffa6b8e35992534a3dbc2f65e9", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D2", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.5625, + "band_ratio": 36.4355687, + "metrics": { + "corr": 0.98249005, + "finite": true, + "max_abs": 8.8847065, + "mean_abs": 0.966745909, + "psnr_db": 28.1577948, + "ref_absmax": 24.3847065, + "rel_max": 0.364355687, + "scaled_max_abs": 0.364355687 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 2, + "n_judged": 16, + "n_taps": 16, + "taps": [ + { + "band_ratio": 0.117570499, + "index": 0, + "metrics": { + "corr": 0.999999914, + "finite": true, + "max_abs": 0.0135545731, + "mean_abs": 0.000674526699, + "psnr_db": 83.5827466, + "ref_absmax": 11.5288897, + "rel_max": 0.00117570499, + "scaled_max_abs": 0.00117570499 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.264822202, + "index": 1, + "metrics": { + "corr": 0.999998648, + "finite": true, + "max_abs": 0.503248215, + "mean_abs": 0.00245742044, + "psnr_db": 89.2955159, + "ref_absmax": 190.032486, + "rel_max": 0.00264822202, + "scaled_max_abs": 0.00264822202 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_7_cast_fp16" + }, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_ratio": 1.02786363, + "index": 2, + "metrics": { + "corr": 0.999955391, + "finite": true, + "max_abs": 0.467163086, + "mean_abs": 0.0108745644, + "psnr_db": 70.7611788, + "ref_absmax": 45.4499092, + "rel_max": 0.0102786363, + "scaled_max_abs": 0.0102786363 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_27_cast_fp16" + }, + "status": "fail", + "tap": "net.features.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 1.06091941, + "index": 3, + "metrics": { + "corr": 0.999939329, + "finite": true, + "max_abs": 0.274743319, + "mean_abs": 0.0150893866, + "psnr_db": 65.8230603, + "ref_absmax": 25.896719, + "rel_max": 0.0106091941, + "scaled_max_abs": 0.0106091941 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_43_cast_fp16" + }, + "status": "fail", + "tap": "net.features.2", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 2.19511544, + "index": 4, + "metrics": { + "corr": 0.999841065, + "finite": true, + "max_abs": 0.564396858, + "mean_abs": 0.0266718961, + "psnr_db": 62.2128125, + "ref_absmax": 25.7114887, + "rel_max": 0.0219511544, + "scaled_max_abs": 0.0219511544 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59_cast_fp16" + }, + "status": "fail", + "tap": "net.features.3", + "worst_probe": { + "category": "natural", + "index": 5 + } + }, + { + "band_ratio": 1.22644963, + "index": 5, + "metrics": { + "corr": 0.999799843, + "finite": true, + "max_abs": 0.209820509, + "mean_abs": 0.0157979565, + "psnr_db": 61.8903255, + "ref_absmax": 17.1079597, + "rel_max": 0.0122644963, + "scaled_max_abs": 0.0122644963 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85_cast_fp16" + }, + "status": "fail", + "tap": "net.features.4", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_ratio": 2.14109624, + "index": 6, + "metrics": { + "corr": 0.999504987, + "finite": true, + "max_abs": 0.477863312, + "mean_abs": 0.0243805949, + "psnr_db": 59.3153124, + "ref_absmax": 22.3186283, + "rel_max": 0.0214109624, + "scaled_max_abs": 0.0214109624 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_111_cast_fp16" + }, + "status": "fail", + "tap": "net.features.5", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_ratio": 1.12218713, + "index": 7, + "metrics": { + "corr": 0.999850861, + "finite": true, + "max_abs": 0.704397678, + "mean_abs": 0.039895837, + "psnr_db": 65.3544562, + "ref_absmax": 62.7700729, + "rel_max": 0.0112218713, + "scaled_max_abs": 0.0112218713 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_137_cast_fp16" + }, + "status": "fail", + "tap": "net.features.6", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + }, + { + "band_ratio": 1.96969375, + "index": 8, + "metrics": { + "corr": 0.999595316, + "finite": true, + "max_abs": 0.407417655, + "mean_abs": 0.0218482537, + "psnr_db": 61.0318832, + "ref_absmax": 20.6843147, + "rel_max": 0.0196969375, + "scaled_max_abs": 0.0196969375 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_163_cast_fp16" + }, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_ratio": 2.50834797, + "index": 9, + "metrics": { + "corr": 0.999493234, + "finite": true, + "max_abs": 0.487973213, + "mean_abs": 0.0272460814, + "psnr_db": 59.0074803, + "ref_absmax": 19.453968, + "rel_max": 0.0250834797, + "scaled_max_abs": 0.0250834797 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_189_cast_fp16" + }, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_ratio": 4.77444673, + "index": 10, + "metrics": { + "corr": 0.999143776, + "finite": true, + "max_abs": 0.166851461, + "mean_abs": 0.011929511, + "psnr_db": 51.0183146, + "ref_absmax": 3.49467635, + "rel_max": 0.0477444673, + "scaled_max_abs": 0.0477444673 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_215_cast_fp16" + }, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6.2057687, + "index": 11, + "metrics": { + "corr": 0.998980348, + "finite": true, + "max_abs": 0.232064664, + "mean_abs": 0.0157052516, + "psnr_db": 49.3870164, + "ref_absmax": 3.73949909, + "rel_max": 0.062057687, + "scaled_max_abs": 0.062057687 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_241_cast_fp16" + }, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9.7995766, + "index": 12, + "metrics": { + "corr": 0.998920477, + "finite": true, + "max_abs": 0.444393635, + "mean_abs": 0.0186522474, + "psnr_db": 49.5043399, + "ref_absmax": 4.53482485, + "rel_max": 0.097995766, + "scaled_max_abs": 0.097995766 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_267_cast_fp16" + }, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7.87246723, + "index": 13, + "metrics": { + "corr": 0.998558604, + "finite": true, + "max_abs": 0.795100451, + "mean_abs": 0.0110715953, + "psnr_db": 52.0070134, + "ref_absmax": 10.099762, + "rel_max": 0.0787246723, + "scaled_max_abs": 0.0787246723 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_3_cast_fp16" + }, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_ratio": 26.0584564, + "index": 14, + "metrics": { + "corr": 0.999059368, + "finite": true, + "max_abs": 1.36700296, + "mean_abs": 0.0698849106, + "psnr_db": 34.6489652, + "ref_absmax": 5.24590921, + "rel_max": 0.260584564, + "scaled_max_abs": 0.260584564 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_x_cast_fp16" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 36.4355687, + "index": 15, + "metrics": { + "corr": 0.98249005, + "finite": true, + "max_abs": 8.8847065, + "mean_abs": 0.966745909, + "psnr_db": 28.1577948, + "ref_absmax": 24.3847065, + "rel_max": 0.364355687, + "scaled_max_abs": 0.364355687 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 2.92044884, + "metrics": { + "corr": 0.99960838, + "finite": true, + "max_abs": 0.526415348, + "mean_abs": 0.0415014574, + "psnr_db": 51.9897065, + "ref_absmax": 18.0251522, + "rel_max": 0.0292044884, + "scaled_max_abs": 0.0292044884 + }, + "status": "fail", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + }, + "first_fail_index": 2, + "n_judged": 16, + "n_taps": 16, + "taps": [ + { + "band_ratio": 0.116213884, + "index": 0, + "metrics": { + "corr": 0.999999912, + "finite": true, + "max_abs": 0.0133981705, + "mean_abs": 0.000679588388, + "psnr_db": 83.6184843, + "ref_absmax": 11.5288897, + "rel_max": 0.00116213884, + "scaled_max_abs": 0.00116213884 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.33139093, + "index": 1, + "metrics": { + "corr": 0.999998561, + "finite": true, + "max_abs": 0.560178757, + "mean_abs": 0.00245733429, + "psnr_db": 88.488319, + "ref_absmax": 169.038651, + "rel_max": 0.0033139093, + "scaled_max_abs": 0.0033139093 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_7_cast_fp16" + }, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_ratio": 1.09594004, + "index": 2, + "metrics": { + "corr": 0.999947809, + "finite": true, + "max_abs": 0.489273071, + "mean_abs": 0.0109243768, + "psnr_db": 70.0800625, + "ref_absmax": 44.644146, + "rel_max": 0.0109594004, + "scaled_max_abs": 0.0109594004 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_27_cast_fp16" + }, + "status": "fail", + "tap": "net.features.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 1.00240612, + "index": 3, + "metrics": { + "corr": 0.999928562, + "finite": true, + "max_abs": 0.306883574, + "mean_abs": 0.0154189054, + "psnr_db": 66.8123424, + "ref_absmax": 30.6146946, + "rel_max": 0.0100240612, + "scaled_max_abs": 0.0100240612 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_43_cast_fp16" + }, + "status": "fail", + "tap": "net.features.2", + "worst_probe": { + "category": "natural", + "index": 6 + } + }, + { + "band_ratio": 1.73739321, + "index": 4, + "metrics": { + "corr": 0.999826151, + "finite": true, + "max_abs": 0.454617977, + "mean_abs": 0.0275043068, + "psnr_db": 61.9146954, + "ref_absmax": 26.1666718, + "rel_max": 0.0173739321, + "scaled_max_abs": 0.0173739321 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59_cast_fp16" + }, + "status": "fail", + "tap": "net.features.3", + "worst_probe": { + "category": "natural", + "index": 13 + } + }, + { + "band_ratio": 1.0329661, + "index": 5, + "metrics": { + "corr": 0.99979303, + "finite": true, + "max_abs": 0.201439619, + "mean_abs": 0.016404368, + "psnr_db": 62.6750818, + "ref_absmax": 19.5010872, + "rel_max": 0.010329661, + "scaled_max_abs": 0.010329661 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85_cast_fp16" + }, + "status": "fail", + "tap": "net.features.4", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_ratio": 1.3537173, + "index": 6, + "metrics": { + "corr": 0.999513853, + "finite": true, + "max_abs": 0.406739235, + "mean_abs": 0.0253501789, + "psnr_db": 61.2191237, + "ref_absmax": 30.0460987, + "rel_max": 0.013537173, + "scaled_max_abs": 0.013537173 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_111_cast_fp16" + }, + "status": "fail", + "tap": "net.features.5", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_ratio": 0.903408956, + "index": 7, + "metrics": { + "corr": 0.999871662, + "finite": true, + "max_abs": 0.611428976, + "mean_abs": 0.0359328223, + "psnr_db": 67.7936158, + "ref_absmax": 67.6801987, + "rel_max": 0.00903408956, + "scaled_max_abs": 0.00903408956 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_137_cast_fp16" + }, + "status": "pass", + "tap": "net.features.6" + }, + { + "band_ratio": 2.13995931, + "index": 8, + "metrics": { + "corr": 0.999559127, + "finite": true, + "max_abs": 0.369894862, + "mean_abs": 0.0213631066, + "psnr_db": 60.1058239, + "ref_absmax": 17.2851353, + "rel_max": 0.0213995931, + "scaled_max_abs": 0.0213995931 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_163_cast_fp16" + }, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_ratio": 2.82643785, + "index": 9, + "metrics": { + "corr": 0.999500951, + "finite": true, + "max_abs": 0.472660661, + "mean_abs": 0.0256925706, + "psnr_db": 58.5906151, + "ref_absmax": 16.7228394, + "rel_max": 0.0282643785, + "scaled_max_abs": 0.0282643785 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_189_cast_fp16" + }, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_ratio": 6.67671518, + "index": 10, + "metrics": { + "corr": 0.999401345, + "finite": true, + "max_abs": 0.180789143, + "mean_abs": 0.0101991881, + "psnr_db": 50.6690645, + "ref_absmax": 2.7077558, + "rel_max": 0.0667671518, + "scaled_max_abs": 0.0667671518 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_215_cast_fp16" + }, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + }, + { + "band_ratio": 6.89930567, + "index": 11, + "metrics": { + "corr": 0.999307124, + "finite": true, + "max_abs": 0.226667628, + "mean_abs": 0.0133321, + "psnr_db": 49.4267834, + "ref_absmax": 3.28536868, + "rel_max": 0.0689930567, + "scaled_max_abs": 0.0689930567 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_241_cast_fp16" + }, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + }, + { + "band_ratio": 7.35911813, + "index": 12, + "metrics": { + "corr": 0.999328651, + "finite": true, + "max_abs": 0.292126656, + "mean_abs": 0.015667708, + "psnr_db": 49.913118, + "ref_absmax": 3.9695878, + "rel_max": 0.0735911813, + "scaled_max_abs": 0.0735911813 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_267_cast_fp16" + }, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + }, + { + "band_ratio": 11.1351399, + "index": 13, + "metrics": { + "corr": 0.999259846, + "finite": true, + "max_abs": 1.0309, + "mean_abs": 0.00853840335, + "psnr_db": 54.55654, + "ref_absmax": 9.25807858, + "rel_max": 0.111351399, + "scaled_max_abs": 0.111351399 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_3_cast_fp16" + }, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "near_zero", + "index": 27 + } + }, + { + "band_ratio": 3.95019842, + "index": 14, + "metrics": { + "corr": 0.999594702, + "finite": true, + "max_abs": 0.204995692, + "mean_abs": 0.0047363485, + "psnr_db": 54.3473048, + "ref_absmax": 5.18950367, + "rel_max": 0.0395019842, + "scaled_max_abs": 0.0395019842 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_x_cast_fp16" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + }, + { + "band_ratio": 2.92044884, + "index": 15, + "metrics": { + "corr": 0.99960838, + "finite": true, + "max_abs": 0.526415348, + "mean_abs": 0.0415014574, + "psnr_db": 51.9897065, + "ref_absmax": 18.0251522, + "rel_max": 0.0292044884, + "scaled_max_abs": 0.0292044884 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp16", + "id": "mobilenet_v3_small__baked_shape__coreml_fp16", + "model": "mobilenet_v3_small", + "path": "coreml", + "variant": "baked_shape" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/mobilenet_v3_small__baked_shape__coreml_fp32.json b/bench/verdicts_e2e_gated/mobilenet_v3_small__baked_shape__coreml_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..5d8d357f925de3c3307f8ee330e84d8fc29c8518 --- /dev/null +++ b/bench/verdicts_e2e_gated/mobilenet_v3_small__baked_shape__coreml_fp32.json @@ -0,0 +1,909 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "status": "flag" + } + }, + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "_inversed_x", + "basis": "nominal shape 224 inside band; shape 192 over band", + "index": 14, + "neighbourhood": [ + { + "band_ratio": 0.104340095, + "index": 13, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_3" + }, + "status": "pass", + "tap": "net.features.12" + }, + { + "band_ratio": 2653.07115, + "index": 14, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_x" + }, + "status": "fail", + "tap": "net.avgpool" + }, + { + "band_ratio": 3688.68105, + "index": 15, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier" + } + ], + "shape": 192, + "tap": "net.avgpool" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "fba21a800d03bf894d1e1bfd72f93cf58efb1f961e25cbeb8c9a2b885503d311", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "f0e93526e4c5787d77966a3a9b20aad662dd06d49e1bc357e66ce69e8c48ac51", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D6", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.59375, + "band_ratio": 3688.68105, + "metrics": { + "corr": 0.982247113, + "finite": true, + "max_abs": 8.99474049, + "mean_abs": 0.971369303, + "psnr_db": 28.0806154, + "ref_absmax": 24.3847065, + "rel_max": 0.368868105, + "scaled_max_abs": 0.368868105 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 14, + "n_judged": 16, + "n_taps": 16, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.26638033e-08, + "psnr_db": 163.904618, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.00401478436, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.62939453e-05, + "mean_abs": 3.28296435e-07, + "psnr_db": 166.338486, + "ref_absmax": 190.032486, + "rel_max": 4.01478436e-07, + "scaled_max_abs": 4.01478436e-07 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_7" + }, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_ratio": 0.0140782649, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.39855862e-05, + "mean_abs": 1.75256269e-06, + "psnr_db": 146.780382, + "ref_absmax": 45.4499092, + "rel_max": 1.40782649e-06, + "scaled_max_abs": 1.40782649e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_27" + }, + "status": "pass", + "tap": "net.features.1" + }, + { + "band_ratio": 0.0168018932, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.35113907e-05, + "mean_abs": 2.55808928e-06, + "psnr_db": 141.163244, + "ref_absmax": 25.896719, + "rel_max": 1.68018932e-06, + "scaled_max_abs": 1.68018932e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_43" + }, + "status": "pass", + "tap": "net.features.2" + }, + { + "band_ratio": 0.087118353, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000223994255, + "mean_abs": 5.04164043e-06, + "psnr_db": 135.403114, + "ref_absmax": 25.7114887, + "rel_max": 8.7118353e-06, + "scaled_max_abs": 8.7118353e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59" + }, + "status": "pass", + "tap": "net.features.3" + }, + { + "band_ratio": 0.0493338646, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.4400177e-05, + "mean_abs": 2.84415636e-06, + "psnr_db": 136.267966, + "ref_absmax": 17.1079597, + "rel_max": 4.93338646e-06, + "scaled_max_abs": 4.93338646e-06 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85" + }, + "status": "pass", + "tap": "net.features.4" + }, + { + "band_ratio": 0.0607833822, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000135660172, + "mean_abs": 4.31367924e-06, + "psnr_db": 133.74631, + "ref_absmax": 22.3186283, + "rel_max": 6.07833822e-06, + "scaled_max_abs": 6.07833822e-06 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_111" + }, + "status": "pass", + "tap": "net.features.5" + }, + { + "band_ratio": 0.0272526895, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000171065331, + "mean_abs": 6.5528199e-06, + "psnr_db": 140.878075, + "ref_absmax": 62.7700729, + "rel_max": 2.72526895e-06, + "scaled_max_abs": 2.72526895e-06 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_137" + }, + "status": "pass", + "tap": "net.features.6" + }, + { + "band_ratio": 0.0412073802, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.5234642e-05, + "mean_abs": 3.84877236e-06, + "psnr_db": 135.750147, + "ref_absmax": 20.6843147, + "rel_max": 4.12073802e-06, + "scaled_max_abs": 4.12073802e-06 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_163" + }, + "status": "pass", + "tap": "net.features.7" + }, + { + "band_ratio": 0.0377776538, + "index": 9, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.3492527e-05, + "mean_abs": 4.86094445e-06, + "psnr_db": 133.543458, + "ref_absmax": 19.453968, + "rel_max": 3.77776538e-06, + "scaled_max_abs": 3.77776538e-06 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_189" + }, + "status": "pass", + "tap": "net.features.8" + }, + { + "band_ratio": 0.0685644815, + "index": 10, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.39610672e-05, + "mean_abs": 1.77515499e-06, + "psnr_db": 127.940886, + "ref_absmax": 3.49467635, + "rel_max": 6.85644815e-06, + "scaled_max_abs": 6.85644815e-06 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_215" + }, + "status": "pass", + "tap": "net.features.9" + }, + { + "band_ratio": 0.101373347, + "index": 11, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.79085541e-05, + "mean_abs": 2.19326983e-06, + "psnr_db": 126.93987, + "ref_absmax": 3.73949909, + "rel_max": 1.01373347e-05, + "scaled_max_abs": 1.01373347e-05 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_241" + }, + "status": "pass", + "tap": "net.features.10" + }, + { + "band_ratio": 0.0977895667, + "index": 12, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.43458557e-05, + "mean_abs": 2.60460286e-06, + "psnr_db": 127.15622, + "ref_absmax": 4.53482485, + "rel_max": 9.77895667e-06, + "scaled_max_abs": 9.77895667e-06 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_267" + }, + "status": "pass", + "tap": "net.features.11" + }, + { + "band_ratio": 0.104340095, + "index": 13, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000105381012, + "mean_abs": 1.55745248e-06, + "psnr_db": 129.604509, + "ref_absmax": 10.099762, + "rel_max": 1.04340095e-05, + "scaled_max_abs": 1.04340095e-05 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_3" + }, + "status": "pass", + "tap": "net.features.12" + }, + { + "band_ratio": 2653.07115, + "index": 14, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.39177704, + "mean_abs": 0.0695958453, + "psnr_db": 34.7260826, + "ref_absmax": 5.24590921, + "rel_max": 0.265307115, + "scaled_max_abs": 0.265307115 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_x" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 3688.68105, + "index": 15, + "metrics": { + "corr": 0.982247113, + "finite": true, + "max_abs": 8.99474049, + "mean_abs": 0.971369303, + "psnr_db": 28.0806154, + "ref_absmax": 24.3847065, + "rel_max": 0.368868105, + "scaled_max_abs": 0.368868105 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.0583310433, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000105142593, + "mean_abs": 6.17089395e-06, + "psnr_db": 128.607455, + "ref_absmax": 18.0251522, + "rel_max": 5.83310433e-06, + "scaled_max_abs": 5.83310433e-06 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 16, + "n_taps": 16, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.2793459e-08, + "psnr_db": 164.013874, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.00361072193, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.10351562e-05, + "mean_abs": 3.27406325e-07, + "psnr_db": 165.532994, + "ref_absmax": 169.038651, + "rel_max": 3.61072193e-07, + "scaled_max_abs": 3.61072193e-07 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_7" + }, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_ratio": 0.0153937664, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.87241554e-05, + "mean_abs": 1.75363639e-06, + "psnr_db": 146.190871, + "ref_absmax": 44.644146, + "rel_max": 1.53937664e-06, + "scaled_max_abs": 1.53937664e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_27" + }, + "status": "pass", + "tap": "net.features.1" + }, + { + "band_ratio": 0.0136285048, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.17232513e-05, + "mean_abs": 2.61711599e-06, + "psnr_db": 142.200155, + "ref_absmax": 30.6146946, + "rel_max": 1.36285048e-06, + "scaled_max_abs": 1.36285048e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_43" + }, + "status": "pass", + "tap": "net.features.2" + }, + { + "band_ratio": 0.0653297152, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000170946121, + "mean_abs": 5.15982585e-06, + "psnr_db": 135.344389, + "ref_absmax": 26.1666718, + "rel_max": 6.53297152e-06, + "scaled_max_abs": 6.53297152e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59" + }, + "status": "pass", + "tap": "net.features.3" + }, + { + "band_ratio": 0.0415681014, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.10623169e-05, + "mean_abs": 2.93827984e-06, + "psnr_db": 137.117562, + "ref_absmax": 19.5010872, + "rel_max": 4.15681014e-06, + "scaled_max_abs": 4.15681014e-06 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85" + }, + "status": "pass", + "tap": "net.features.4" + }, + { + "band_ratio": 0.0479676355, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000144124031, + "mean_abs": 4.59301085e-06, + "psnr_db": 135.369807, + "ref_absmax": 30.0460987, + "rel_max": 4.79676355e-06, + "scaled_max_abs": 4.79676355e-06 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_111" + }, + "status": "pass", + "tap": "net.features.5" + }, + { + "band_ratio": 0.0235758224, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000159561634, + "mean_abs": 6.69582837e-06, + "psnr_db": 141.701188, + "ref_absmax": 67.6801987, + "rel_max": 2.35758224e-06, + "scaled_max_abs": 2.35758224e-06 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_137" + }, + "status": "pass", + "tap": "net.features.6" + }, + { + "band_ratio": 0.0573800132, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.91821289e-05, + "mean_abs": 3.96359522e-06, + "psnr_db": 134.149167, + "ref_absmax": 17.2851353, + "rel_max": 5.73800132e-06, + "scaled_max_abs": 5.73800132e-06 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_163" + }, + "status": "pass", + "tap": "net.features.7" + }, + { + "band_ratio": 0.0631587904, + "index": 9, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000105619431, + "mean_abs": 4.93159862e-06, + "psnr_db": 132.165799, + "ref_absmax": 16.7228394, + "rel_max": 6.31587904e-06, + "scaled_max_abs": 6.31587904e-06 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_189" + }, + "status": "pass", + "tap": "net.features.8" + }, + { + "band_ratio": 0.110888285, + "index": 10, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.00258398e-05, + "mean_abs": 1.68708781e-06, + "psnr_db": 126.046146, + "ref_absmax": 2.7077558, + "rel_max": 1.10888285e-05, + "scaled_max_abs": 1.10888285e-05 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_215" + }, + "status": "pass", + "tap": "net.features.9" + }, + { + "band_ratio": 0.126997167, + "index": 11, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.17232513e-05, + "mean_abs": 2.23347015e-06, + "psnr_db": 124.772058, + "ref_absmax": 3.28536868, + "rel_max": 1.26997167e-05, + "scaled_max_abs": 1.26997167e-05 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_241" + }, + "status": "pass", + "tap": "net.features.10" + }, + { + "band_ratio": 0.129450857, + "index": 12, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.13866544e-05, + "mean_abs": 2.59994895e-06, + "psnr_db": 125.243457, + "ref_absmax": 3.9695878, + "rel_max": 1.29450857e-05, + "scaled_max_abs": 1.29450857e-05 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_267" + }, + "status": "pass", + "tap": "net.features.11" + }, + { + "band_ratio": 0.170481486, + "index": 13, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000157833099, + "mean_abs": 1.44956597e-06, + "psnr_db": 129.151059, + "ref_absmax": 9.25807858, + "rel_max": 1.70481486e-05, + "scaled_max_abs": 1.70481486e-05 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_3" + }, + "status": "pass", + "tap": "net.features.12" + }, + { + "band_ratio": 0.0590360646, + "index": 14, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.06367874e-05, + "mean_abs": 7.60094233e-07, + "psnr_db": 130.120592, + "ref_absmax": 5.18950367, + "rel_max": 5.90360646e-06, + "scaled_max_abs": 5.90360646e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_x" + }, + "status": "pass", + "tap": "net.avgpool" + }, + { + "band_ratio": 0.0583310433, + "index": 15, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000105142593, + "mean_abs": 6.17089395e-06, + "psnr_db": 128.607455, + "ref_absmax": 18.0251522, + "rel_max": 5.83310433e-06, + "scaled_max_abs": 5.83310433e-06 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "pass", + "tap": "net.classifier" + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp32", + "id": "mobilenet_v3_small__baked_shape__coreml_fp32", + "model": "mobilenet_v3_small", + "path": "coreml", + "variant": "baked_shape" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/mobilenet_v3_small__baked_shape__litert_fp16.json b/bench/verdicts_e2e_gated/mobilenet_v3_small__baked_shape__litert_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..a76aa7a4491dddbd1889ff4fff1cf20ce1972924 --- /dev/null +++ b/bench/verdicts_e2e_gated/mobilenet_v3_small__baked_shape__litert_fp16.json @@ -0,0 +1,1147 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "reason": "first divergence at tap 8 is beyond the hypothesis taps (first 3) \u2014 interface faults surface earlier", + "status": "not_evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 0.000819612491, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000147819519, + "mean_abs": 7.12326743e-06, + "psnr_db": 125.094877, + "ref_absmax": 18.0352936, + "rel_max": 8.19612491e-06, + "scaled_max_abs": 8.19612491e-06 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 117, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 1, + "n_ops_total": 169, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_7/torch.nn.modules.container.Sequential_block/t", + "basis": "earliest tap over band with in-band predecessors", + "index": 8, + "neighbourhood": [ + { + "band_ratio": 0.292023152, + "index": 7, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_6;" + }, + "status": "pass", + "tap": "net.features.6" + }, + { + "band_ratio": 1.69154072, + "index": 8, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_7/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.7" + }, + { + "band_ratio": 2.38189477, + "index": 9, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_8;" + }, + "status": "fail", + "tap": "net.features.8" + } + ], + "shape": 224, + "tap": "net.features.7" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "af13a32c21d61248ea99e7f2155723db65634ef9e8d00d0f56926ea5620a130e", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "e68287c6bf447d1c5af1840f2957e8f25a438b576d35374a5a1e6bfa57051ad5", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D2", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.6875, + "band_ratio": 36.104663, + "metrics": { + "corr": 0.982748097, + "finite": true, + "max_abs": 8.80401611, + "mean_abs": 0.966449069, + "psnr_db": 28.1447368, + "ref_absmax": 24.3847065, + "rel_max": 0.36104663, + "scaled_max_abs": 0.36104663 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 8, + "n_judged": 16, + "n_taps": 16, + "taps": [ + { + "band_ratio": 8.27203959e-06, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.26638033e-08, + "psnr_db": 163.904618, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0915032087, + "index": 1, + "metrics": { + "corr": 0.999999786, + "finite": true, + "max_abs": 0.173885822, + "mean_abs": 0.000502268084, + "psnr_db": 96.9119524, + "ref_absmax": 190.032486, + "rel_max": 0.000915032087, + "scaled_max_abs": 0.000915032087 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_0/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_ratio": 0.0727773511, + "index": 2, + "metrics": { + "corr": 0.999999501, + "finite": true, + "max_abs": 0.03307724, + "mean_abs": 0.00172972956, + "psnr_db": 89.9446481, + "ref_absmax": 45.4499092, + "rel_max": 0.000727773511, + "scaled_max_abs": 0.000727773511 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_1/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.1" + }, + { + "band_ratio": 0.15302635, + "index": 3, + "metrics": { + "corr": 0.99999802, + "finite": true, + "max_abs": 0.0396288037, + "mean_abs": 0.00251701601, + "psnr_db": 80.5863503, + "ref_absmax": 25.896719, + "rel_max": 0.0015302635, + "scaled_max_abs": 0.0015302635 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_2/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.2" + }, + { + "band_ratio": 0.244577705, + "index": 4, + "metrics": { + "corr": 0.999994624, + "finite": true, + "max_abs": 0.0628845692, + "mean_abs": 0.00432135067, + "psnr_db": 76.8433382, + "ref_absmax": 25.7114887, + "rel_max": 0.00244577705, + "scaled_max_abs": 0.00244577705 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_3;" + }, + "status": "pass", + "tap": "net.features.3" + }, + { + "band_ratio": 0.273230174, + "index": 5, + "metrics": { + "corr": 0.999981879, + "finite": true, + "max_abs": 0.0467441082, + "mean_abs": 0.0038035588, + "psnr_db": 72.274713, + "ref_absmax": 17.1079597, + "rel_max": 0.00273230174, + "scaled_max_abs": 0.00273230174 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_4/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.4" + }, + { + "band_ratio": 0.403152459, + "index": 6, + "metrics": { + "corr": 0.999956004, + "finite": true, + "max_abs": 0.0899780989, + "mean_abs": 0.00600733947, + "psnr_db": 69.8085829, + "ref_absmax": 22.3186283, + "rel_max": 0.00403152459, + "scaled_max_abs": 0.00403152459 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_5;" + }, + "status": "pass", + "tap": "net.features.5" + }, + { + "band_ratio": 0.394882259, + "index": 7, + "metrics": { + "corr": 0.999974444, + "finite": true, + "max_abs": 0.247867882, + "mean_abs": 0.0121702154, + "psnr_db": 73.0406073, + "ref_absmax": 62.7700729, + "rel_max": 0.00394882259, + "scaled_max_abs": 0.00394882259 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_6;" + }, + "status": "pass", + "tap": "net.features.6" + }, + { + "band_ratio": 1.42171571, + "index": 8, + "metrics": { + "corr": 0.999941634, + "finite": true, + "max_abs": 0.294072151, + "mean_abs": 0.00577465295, + "psnr_db": 69.3943408, + "ref_absmax": 20.6843147, + "rel_max": 0.0142171571, + "scaled_max_abs": 0.0142171571 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_7/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 1.74337408, + "index": 9, + "metrics": { + "corr": 0.999916718, + "finite": true, + "max_abs": 0.339155436, + "mean_abs": 0.00756068161, + "psnr_db": 66.8769751, + "ref_absmax": 19.453968, + "rel_max": 0.0174337408, + "scaled_max_abs": 0.0174337408 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_8;" + }, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 4.26980192, + "index": 10, + "metrics": { + "corr": 0.999817604, + "finite": true, + "max_abs": 0.149215758, + "mean_abs": 0.00381537326, + "psnr_db": 57.7094961, + "ref_absmax": 3.49467635, + "rel_max": 0.0426980192, + "scaled_max_abs": 0.0426980192 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_9/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 5.18188833, + "index": 11, + "metrics": { + "corr": 0.9998211, + "finite": true, + "max_abs": 0.193776667, + "mean_abs": 0.00464179122, + "psnr_db": 56.9399931, + "ref_absmax": 3.73949909, + "rel_max": 0.0518188833, + "scaled_max_abs": 0.0518188833 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_10;" + }, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7.6462924, + "index": 12, + "metrics": { + "corr": 0.999749585, + "finite": true, + "max_abs": 0.346745968, + "mean_abs": 0.00595789127, + "psnr_db": 55.8434454, + "ref_absmax": 4.53482485, + "rel_max": 0.076462924, + "scaled_max_abs": 0.076462924 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_11;" + }, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6.32643266, + "index": 13, + "metrics": { + "corr": 0.999553138, + "finite": true, + "max_abs": 0.638954639, + "mean_abs": 0.00377065967, + "psnr_db": 57.0997046, + "ref_absmax": 10.099762, + "rel_max": 0.0632643266, + "scaled_max_abs": 0.0632643266 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_12/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 3508.91819, + "index": 14, + "metrics": { + "corr": 0.999735141, + "finite": true, + "max_abs": 184.074663, + "mean_abs": 9.18610489, + "psnr_db": -7.68953171, + "ref_absmax": 5.24590921, + "rel_max": 35.0891819, + "scaled_max_abs": 35.0891819 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/zoo.BakedMeanPool_avgpool;1" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 36.104663, + "index": 15, + "metrics": { + "corr": 0.982748097, + "finite": true, + "max_abs": 8.80401611, + "mean_abs": 0.966449069, + "psnr_db": 28.1447368, + "ref_absmax": 24.3847065, + "rel_max": 0.36104663, + "scaled_max_abs": 0.36104663 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.90625, + "band_ratio": 2.71596083, + "metrics": { + "corr": 0.999929741, + "finite": true, + "max_abs": 0.489556074, + "mean_abs": 0.0129197023, + "psnr_db": 59.4536219, + "ref_absmax": 18.0251522, + "rel_max": 0.0271596083, + "scaled_max_abs": 0.0271596083 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 8, + "n_judged": 16, + "n_taps": 16, + "taps": [ + { + "band_ratio": 8.27203959e-06, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.2793459e-08, + "psnr_db": 164.013874, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0868202319, + "index": 1, + "metrics": { + "corr": 0.999999767, + "finite": true, + "max_abs": 0.146759748, + "mean_abs": 0.000503267604, + "psnr_db": 96.0452891, + "ref_absmax": 169.038651, + "rel_max": 0.000868202319, + "scaled_max_abs": 0.000868202319 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_0/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_ratio": 0.0755872648, + "index": 2, + "metrics": { + "corr": 0.999999435, + "finite": true, + "max_abs": 0.0337452888, + "mean_abs": 0.00172548561, + "psnr_db": 89.4320948, + "ref_absmax": 44.644146, + "rel_max": 0.000755872648, + "scaled_max_abs": 0.000755872648 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_1/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.1" + }, + { + "band_ratio": 0.127885996, + "index": 3, + "metrics": { + "corr": 0.999997629, + "finite": true, + "max_abs": 0.039151907, + "mean_abs": 0.00258047824, + "psnr_db": 81.5125813, + "ref_absmax": 30.6146946, + "rel_max": 0.00127885996, + "scaled_max_abs": 0.00127885996 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_2/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.2" + }, + { + "band_ratio": 0.279809812, + "index": 4, + "metrics": { + "corr": 0.999994277, + "finite": true, + "max_abs": 0.0732169151, + "mean_abs": 0.00442955329, + "psnr_db": 76.6613702, + "ref_absmax": 26.1666718, + "rel_max": 0.00279809812, + "scaled_max_abs": 0.00279809812 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_3;" + }, + "status": "pass", + "tap": "net.features.3" + }, + { + "band_ratio": 0.289036457, + "index": 5, + "metrics": { + "corr": 0.999980992, + "finite": true, + "max_abs": 0.0563652515, + "mean_abs": 0.00400878569, + "psnr_db": 72.9879694, + "ref_absmax": 19.5010872, + "rel_max": 0.00289036457, + "scaled_max_abs": 0.00289036457 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_4/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.4" + }, + { + "band_ratio": 0.310832262, + "index": 6, + "metrics": { + "corr": 0.999956355, + "finite": true, + "max_abs": 0.0933929682, + "mean_abs": 0.00625826495, + "psnr_db": 71.6653247, + "ref_absmax": 30.0460987, + "rel_max": 0.00310832262, + "scaled_max_abs": 0.00310832262 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_5;" + }, + "status": "pass", + "tap": "net.features.5" + }, + { + "band_ratio": 0.292023152, + "index": 7, + "metrics": { + "corr": 0.999987205, + "finite": true, + "max_abs": 0.19764185, + "mean_abs": 0.00882840116, + "psnr_db": 77.7884462, + "ref_absmax": 67.6801987, + "rel_max": 0.00292023152, + "scaled_max_abs": 0.00292023152 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_6;" + }, + "status": "pass", + "tap": "net.features.6" + }, + { + "band_ratio": 1.69154072, + "index": 8, + "metrics": { + "corr": 0.999942873, + "finite": true, + "max_abs": 0.292385101, + "mean_abs": 0.00539707911, + "psnr_db": 68.9160235, + "ref_absmax": 17.2851353, + "rel_max": 0.0169154072, + "scaled_max_abs": 0.0169154072 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_7/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 2.38189477, + "index": 9, + "metrics": { + "corr": 0.999929405, + "finite": true, + "max_abs": 0.398320436, + "mean_abs": 0.00659560857, + "psnr_db": 67.0793221, + "ref_absmax": 16.7228394, + "rel_max": 0.0238189477, + "scaled_max_abs": 0.0238189477 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_8;" + }, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 3.86260521, + "index": 10, + "metrics": { + "corr": 0.99987447, + "finite": true, + "max_abs": 0.104589917, + "mean_abs": 0.0031962443, + "psnr_db": 57.4378382, + "ref_absmax": 2.7077558, + "rel_max": 0.0386260521, + "scaled_max_abs": 0.0386260521 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_9/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 4.26017801, + "index": 11, + "metrics": { + "corr": 0.999873544, + "finite": true, + "max_abs": 0.139962554, + "mean_abs": 0.00412300785, + "psnr_db": 56.8254194, + "ref_absmax": 3.28536868, + "rel_max": 0.0426017801, + "scaled_max_abs": 0.0426017801 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_10;" + }, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 5.43799083, + "index": 12, + "metrics": { + "corr": 0.999847259, + "finite": true, + "max_abs": 0.215865821, + "mean_abs": 0.00501177022, + "psnr_db": 56.3378385, + "ref_absmax": 3.9695878, + "rel_max": 0.0543799083, + "scaled_max_abs": 0.0543799083 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_11;" + }, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7.75258635, + "index": 13, + "metrics": { + "corr": 0.999759024, + "finite": true, + "max_abs": 0.717740536, + "mean_abs": 0.00289672989, + "psnr_db": 59.4037277, + "ref_absmax": 9.25807858, + "rel_max": 0.0775258635, + "scaled_max_abs": 0.0775258635 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_12/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 2.67350447, + "index": 14, + "metrics": { + "corr": 0.999878283, + "finite": true, + "max_abs": 0.138741612, + "mean_abs": 0.001866989, + "psnr_db": 59.520476, + "ref_absmax": 5.18950367, + "rel_max": 0.0267350447, + "scaled_max_abs": 0.0267350447 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/zoo.BakedMeanPool_avgpool;;zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvisio" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 2.71596083, + "index": 15, + "metrics": { + "corr": 0.999929741, + "finite": true, + "max_abs": 0.489556074, + "mean_abs": 0.0129197023, + "psnr_db": 59.4536219, + "ref_absmax": 18.0251522, + "rel_max": 0.0271596083, + "scaled_max_abs": 0.0271596083 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp16", + "id": "mobilenet_v3_small__baked_shape__litert_fp16", + "model": "mobilenet_v3_small", + "path": "litert", + "variant": "baked_shape" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/mobilenet_v3_small__baked_shape__litert_fp32.json b/bench/verdicts_e2e_gated/mobilenet_v3_small__baked_shape__litert_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..57ae5ef83d7cbf700576a07dbb08d9ff7b4c7ca4 --- /dev/null +++ b/bench/verdicts_e2e_gated/mobilenet_v3_small__baked_shape__litert_fp32.json @@ -0,0 +1,1073 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 0.0424586551, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.65323639e-05, + "mean_abs": 5.22898112e-06, + "psnr_db": 129.391437, + "ref_absmax": 18.0251503, + "rel_max": 4.24586551e-06, + "scaled_max_abs": 4.24586551e-06 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 117, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 1, + "n_ops_total": 115, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "status": "flag" + } + }, + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/zoo.BakedMeanPool_avgpool;1", + "basis": "nominal shape 224 inside band; shape 192 over band", + "index": 14, + "neighbourhood": [ + { + "band_ratio": 0.0878156453, + "index": 13, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_12/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "pass", + "tap": "net.features.12" + }, + { + "band_ratio": 349999.546, + "index": 14, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/zoo.BakedMeanPool_avgpool;1" + }, + "status": "fail", + "tap": "net.avgpool" + }, + { + "band_ratio": 3688.66306, + "index": 15, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.classifier" + } + ], + "shape": 192, + "tap": "net.avgpool" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "c49645f449dd626885d3c2306066f8499df363b848ed59ca73d1146873382e70", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "c36975cfb849c7ada8d16f7d9092d26f036c91003ab72083b1229da6c2050418", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D6", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.59375, + "band_ratio": 3688.66306, + "metrics": { + "corr": 0.982247175, + "finite": true, + "max_abs": 8.99469662, + "mean_abs": 0.971368361, + "psnr_db": 28.0806227, + "ref_absmax": 24.3847065, + "rel_max": 0.368866306, + "scaled_max_abs": 0.368866306 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 14, + "n_judged": 16, + "n_taps": 16, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.26638033e-08, + "psnr_db": 163.904618, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.00421552358, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.01086426e-05, + "mean_abs": 2.27467979e-07, + "psnr_db": 166.067675, + "ref_absmax": 190.032486, + "rel_max": 4.21552358e-07, + "scaled_max_abs": 4.21552358e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_0/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_ratio": 0.00902267932, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.10079956e-05, + "mean_abs": 1.0080085e-06, + "psnr_db": 152.997611, + "ref_absmax": 45.4499092, + "rel_max": 9.02267932e-07, + "scaled_max_abs": 9.02267932e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_1/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.1" + }, + { + "band_ratio": 0.0102192337, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.64644623e-05, + "mean_abs": 1.53339525e-06, + "psnr_db": 145.715772, + "ref_absmax": 25.896719, + "rel_max": 1.02192337e-06, + "scaled_max_abs": 1.02192337e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_2/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.2" + }, + { + "band_ratio": 0.0320840342, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.24928284e-05, + "mean_abs": 3.09957574e-06, + "psnr_db": 139.892867, + "ref_absmax": 25.7114887, + "rel_max": 3.20840342e-06, + "scaled_max_abs": 3.20840342e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_3;" + }, + "status": "pass", + "tap": "net.features.3" + }, + { + "band_ratio": 0.0234126815, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.00543213e-05, + "mean_abs": 2.00923851e-06, + "psnr_db": 138.932066, + "ref_absmax": 17.1079597, + "rel_max": 2.34126815e-06, + "scaled_max_abs": 2.34126815e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_4/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.4" + }, + { + "band_ratio": 0.0254243321, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.67436218e-05, + "mean_abs": 2.97928019e-06, + "psnr_db": 137.091891, + "ref_absmax": 22.3186283, + "rel_max": 2.54243321e-06, + "scaled_max_abs": 2.54243321e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_5;" + }, + "status": "pass", + "tap": "net.features.5" + }, + { + "band_ratio": 0.0144334801, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.05990601e-05, + "mean_abs": 5.44640999e-06, + "psnr_db": 141.651884, + "ref_absmax": 62.7700729, + "rel_max": 1.44334801e-06, + "scaled_max_abs": 1.44334801e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_6;" + }, + "status": "pass", + "tap": "net.features.6" + }, + { + "band_ratio": 0.0253583878, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.24520874e-05, + "mean_abs": 2.81419225e-06, + "psnr_db": 138.375617, + "ref_absmax": 20.6843147, + "rel_max": 2.53583878e-06, + "scaled_max_abs": 2.53583878e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_7/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.7" + }, + { + "band_ratio": 0.0509829813, + "index": 9, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.91821289e-05, + "mean_abs": 3.77280285e-06, + "psnr_db": 135.035103, + "ref_absmax": 19.453968, + "rel_max": 5.09829813e-06, + "scaled_max_abs": 5.09829813e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_8;" + }, + "status": "pass", + "tap": "net.features.8" + }, + { + "band_ratio": 0.0743634675, + "index": 10, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.59876251e-05, + "mean_abs": 1.52914309e-06, + "psnr_db": 127.873129, + "ref_absmax": 3.49467635, + "rel_max": 7.43634675e-06, + "scaled_max_abs": 7.43634675e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_9/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.9" + }, + { + "band_ratio": 0.0946788811, + "index": 11, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.5405159e-05, + "mean_abs": 1.95057929e-06, + "psnr_db": 126.896878, + "ref_absmax": 3.73949909, + "rel_max": 9.46788811e-06, + "scaled_max_abs": 9.46788811e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_10;" + }, + "status": "pass", + "tap": "net.features.10" + }, + { + "band_ratio": 0.0855001521, + "index": 12, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.87728214e-05, + "mean_abs": 2.39725816e-06, + "psnr_db": 126.949662, + "ref_absmax": 4.53482485, + "rel_max": 8.55001521e-06, + "scaled_max_abs": 8.55001521e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_11;" + }, + "status": "pass", + "tap": "net.features.11" + }, + { + "band_ratio": 0.0878156453, + "index": 13, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.86917114e-05, + "mean_abs": 1.43130718e-06, + "psnr_db": 129.412632, + "ref_absmax": 10.099762, + "rel_max": 8.78156453e-06, + "scaled_max_abs": 8.78156453e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_12/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "pass", + "tap": "net.features.12" + }, + { + "band_ratio": 349999.546, + "index": 14, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 183.606584, + "mean_abs": 9.18129995, + "psnr_db": -7.68033723, + "ref_absmax": 5.24590921, + "rel_max": 34.9999546, + "scaled_max_abs": 34.9999546 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/zoo.BakedMeanPool_avgpool;1" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 3688.66306, + "index": 15, + "metrics": { + "corr": 0.982247175, + "finite": true, + "max_abs": 8.99469662, + "mean_abs": 0.971368361, + "psnr_db": 28.0806227, + "ref_absmax": 24.3847065, + "rel_max": 0.368866306, + "scaled_max_abs": 0.368866306 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.0833300619, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000150203705, + "mean_abs": 6.17952022e-06, + "psnr_db": 127.925342, + "ref_absmax": 18.0251522, + "rel_max": 8.33300619e-06, + "scaled_max_abs": 8.33300619e-06 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 16, + "n_taps": 16, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.2793459e-08, + "psnr_db": 164.013874, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.00530324784, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.96453857e-05, + "mean_abs": 2.25372134e-07, + "psnr_db": 165.388517, + "ref_absmax": 169.038651, + "rel_max": 5.30324784e-07, + "scaled_max_abs": 5.30324784e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_0/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_ratio": 0.00747659079, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.33786011e-05, + "mean_abs": 1.00480479e-06, + "psnr_db": 152.460917, + "ref_absmax": 44.644146, + "rel_max": 7.47659079e-07, + "scaled_max_abs": 7.47659079e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_1/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.1" + }, + { + "band_ratio": 0.0121488386, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.71932983e-05, + "mean_abs": 1.59080642e-06, + "psnr_db": 146.525466, + "ref_absmax": 30.6146946, + "rel_max": 1.21488386e-06, + "scaled_max_abs": 1.21488386e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_2/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.2" + }, + { + "band_ratio": 0.0325737422, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.5234642e-05, + "mean_abs": 3.21546023e-06, + "psnr_db": 139.580403, + "ref_absmax": 26.1666718, + "rel_max": 3.25737422e-06, + "scaled_max_abs": 3.25737422e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_3;" + }, + "status": "pass", + "tap": "net.features.3" + }, + { + "band_ratio": 0.0219455123, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.27961349e-05, + "mean_abs": 2.13495104e-06, + "psnr_db": 139.420031, + "ref_absmax": 19.5010872, + "rel_max": 2.19455123e-06, + "scaled_max_abs": 2.19455123e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_4/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.4" + }, + { + "band_ratio": 0.0270586662, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.13007355e-05, + "mean_abs": 3.28263783e-06, + "psnr_db": 138.252109, + "ref_absmax": 30.0460987, + "rel_max": 2.70586662e-06, + "scaled_max_abs": 2.70586662e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_5;" + }, + "status": "pass", + "tap": "net.features.5" + }, + { + "band_ratio": 0.0154295259, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000104427338, + "mean_abs": 4.80388392e-06, + "psnr_db": 144.501741, + "ref_absmax": 67.6801987, + "rel_max": 1.54295259e-06, + "scaled_max_abs": 1.54295259e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_6;" + }, + "status": "pass", + "tap": "net.features.6" + }, + { + "band_ratio": 0.0446902026, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.72476196e-05, + "mean_abs": 2.90402475e-06, + "psnr_db": 136.617624, + "ref_absmax": 17.2851353, + "rel_max": 4.46902026e-06, + "scaled_max_abs": 4.46902026e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_7/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.7" + }, + { + "band_ratio": 0.053606558, + "index": 9, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.96453857e-05, + "mean_abs": 3.69236233e-06, + "psnr_db": 134.297061, + "ref_absmax": 16.7228394, + "rel_max": 5.3606558e-06, + "scaled_max_abs": 5.3606558e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_8;" + }, + "status": "pass", + "tap": "net.features.8" + }, + { + "band_ratio": 0.120188593, + "index": 10, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.2544136e-05, + "mean_abs": 1.44733846e-06, + "psnr_db": 126.680959, + "ref_absmax": 2.7077558, + "rel_max": 1.20188593e-05, + "scaled_max_abs": 1.20188593e-05 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_9/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.9" + }, + { + "band_ratio": 0.149856656, + "index": 11, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.92334366e-05, + "mean_abs": 1.93422577e-06, + "psnr_db": 125.51436, + "ref_absmax": 3.28536868, + "rel_max": 1.49856656e-05, + "scaled_max_abs": 1.49856656e-05 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_10;" + }, + "status": "pass", + "tap": "net.features.10" + }, + { + "band_ratio": 0.148051089, + "index": 12, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.87701797e-05, + "mean_abs": 2.3352652e-06, + "psnr_db": 125.442053, + "ref_absmax": 3.9695878, + "rel_max": 1.48051089e-05, + "scaled_max_abs": 1.48051089e-05 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_11;" + }, + "status": "pass", + "tap": "net.features.11" + }, + { + "band_ratio": 0.210784133, + "index": 13, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000195145607, + "mean_abs": 1.36275442e-06, + "psnr_db": 128.73451, + "ref_absmax": 9.25807858, + "rel_max": 2.10784133e-05, + "scaled_max_abs": 2.10784133e-05 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_12/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "pass", + "tap": "net.features.12" + }, + { + "band_ratio": 0.0721296665, + "index": 14, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.74317169e-05, + "mean_abs": 8.06604356e-07, + "psnr_db": 128.855365, + "ref_absmax": 5.18950367, + "rel_max": 7.21296665e-06, + "scaled_max_abs": 7.21296665e-06 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/zoo.BakedMeanPool_avgpool;;zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvisio" + }, + "status": "pass", + "tap": "net.avgpool" + }, + { + "band_ratio": 0.0833300619, + "index": 15, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000150203705, + "mean_abs": 6.17952022e-06, + "psnr_db": 127.925342, + "ref_absmax": 18.0251522, + "rel_max": 8.33300619e-06, + "scaled_max_abs": 8.33300619e-06 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "pass", + "tap": "net.classifier" + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp32", + "id": "mobilenet_v3_small__baked_shape__litert_fp32", + "model": "mobilenet_v3_small", + "path": "litert", + "variant": "baked_shape" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/mobilenet_v3_small__baked_shape__onnx_fp16.json b/bench/verdicts_e2e_gated/mobilenet_v3_small__baked_shape__onnx_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..3cd81c2a3674fb9fea08928f7bfe1d5aa2f3bbd3 --- /dev/null +++ b/bench/verdicts_e2e_gated/mobilenet_v3_small__baked_shape__onnx_fp16.json @@ -0,0 +1,973 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "reason": "first divergence at tap 8 is beyond the hypothesis taps (first 3) \u2014 interface faults surface earlier", + "status": "not_evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "/net/features/features.7/block/block.3/block.3.0/Conv_output_0", + "basis": "earliest tap over band with in-band predecessors", + "index": 8, + "neighbourhood": [ + { + "band_ratio": 0.446367729, + "index": 7, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.6/Add_output_0" + }, + "status": "pass", + "tap": "net.features.6" + }, + { + "band_ratio": 1.2498691, + "index": 8, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.7/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.7" + }, + { + "band_ratio": 1.83309478, + "index": 9, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.8/Add_output_0" + }, + "status": "fail", + "tap": "net.features.8" + } + ], + "shape": 224, + "tap": "net.features.7" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "552b2c9b37563b23e04e54c6c3c31e99aeab04747b903535d7a2cf8421aaab96", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "a367e0704da97edb692e5c11a4198d0161ef37d7d9d7644e8f44e6dabe4895a7", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D2", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.59375, + "band_ratio": 36.1808015, + "metrics": { + "corr": 0.982784209, + "finite": true, + "max_abs": 8.82258224, + "mean_abs": 0.966790727, + "psnr_db": 28.1449805, + "ref_absmax": 24.3847065, + "rel_max": 0.361808015, + "scaled_max_abs": 0.361808015 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 8, + "n_judged": 16, + "n_taps": 16, + "taps": [ + { + "band_ratio": 0.0441313312, + "index": 0, + "metrics": { + "corr": 0.999999966, + "finite": true, + "max_abs": 0.00508785248, + "mean_abs": 0.000405953078, + "psnr_db": 88.0186903, + "ref_absmax": 11.5288897, + "rel_max": 0.000441313312, + "scaled_max_abs": 0.000441313312 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0908058909, + "index": 1, + "metrics": { + "corr": 0.999999747, + "finite": true, + "max_abs": 0.172560692, + "mean_abs": 0.000883766055, + "psnr_db": 96.2909345, + "ref_absmax": 190.032486, + "rel_max": 0.000908058909, + "scaled_max_abs": 0.000908058909 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.0/features.0.2/HardSwish_output_0" + }, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_ratio": 0.0726273228, + "index": 2, + "metrics": { + "corr": 0.99999925, + "finite": true, + "max_abs": 0.0330090523, + "mean_abs": 0.0021913404, + "psnr_db": 88.346094, + "ref_absmax": 45.4499092, + "rel_max": 0.000726273228, + "scaled_max_abs": 0.000726273228 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.1/block/block.2/block.2.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.1" + }, + { + "band_ratio": 0.192673754, + "index": 3, + "metrics": { + "corr": 0.99999661, + "finite": true, + "max_abs": 0.0498961806, + "mean_abs": 0.00335121535, + "psnr_db": 78.3312341, + "ref_absmax": 25.896719, + "rel_max": 0.00192673754, + "scaled_max_abs": 0.00192673754 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.2/block/block.2/block.2.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.2" + }, + { + "band_ratio": 0.281512363, + "index": 4, + "metrics": { + "corr": 0.999992632, + "finite": true, + "max_abs": 0.0723810196, + "mean_abs": 0.00526209009, + "psnr_db": 75.4762491, + "ref_absmax": 25.7114887, + "rel_max": 0.00281512363, + "scaled_max_abs": 0.00281512363 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.3/Add_output_0" + }, + "status": "pass", + "tap": "net.features.3" + }, + { + "band_ratio": 0.476705887, + "index": 5, + "metrics": { + "corr": 0.999968504, + "finite": true, + "max_abs": 0.0815546513, + "mean_abs": 0.00506719657, + "psnr_db": 69.8638336, + "ref_absmax": 17.1079597, + "rel_max": 0.00476705887, + "scaled_max_abs": 0.00476705887 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.4/block/block.3/block.3.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.4" + }, + { + "band_ratio": 0.533482606, + "index": 6, + "metrics": { + "corr": 0.999933184, + "finite": true, + "max_abs": 0.119066, + "mean_abs": 0.00772219183, + "psnr_db": 67.9874935, + "ref_absmax": 22.3186283, + "rel_max": 0.00533482606, + "scaled_max_abs": 0.00533482606 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.5/Add_output_0" + }, + "status": "pass", + "tap": "net.features.5" + }, + { + "band_ratio": 0.813875363, + "index": 7, + "metrics": { + "corr": 0.999911881, + "finite": true, + "max_abs": 0.510870159, + "mean_abs": 0.0200473288, + "psnr_db": 67.667567, + "ref_absmax": 62.7700729, + "rel_max": 0.00813875363, + "scaled_max_abs": 0.00813875363 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.6/Add_output_0" + }, + "status": "pass", + "tap": "net.features.6" + }, + { + "band_ratio": 1.22162419, + "index": 8, + "metrics": { + "corr": 0.999899008, + "finite": true, + "max_abs": 0.252684593, + "mean_abs": 0.00816732899, + "psnr_db": 67.0492169, + "ref_absmax": 20.6843147, + "rel_max": 0.0122162419, + "scaled_max_abs": 0.0122162419 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.7/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 1.98082609, + "index": 9, + "metrics": { + "corr": 0.999808898, + "finite": true, + "max_abs": 0.385349274, + "mean_abs": 0.0114271704, + "psnr_db": 63.2680365, + "ref_absmax": 19.453968, + "rel_max": 0.0198082609, + "scaled_max_abs": 0.0198082609 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.8/Add_output_0" + }, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "wide_range", + "index": 23 + } + }, + { + "band_ratio": 3.76845229, + "index": 10, + "metrics": { + "corr": 0.999601539, + "finite": true, + "max_abs": 0.131695211, + "mean_abs": 0.00601521229, + "psnr_db": 54.3157289, + "ref_absmax": 3.49467635, + "rel_max": 0.0376845229, + "scaled_max_abs": 0.0376845229 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.9/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 4.49988479, + "index": 11, + "metrics": { + "corr": 0.999634288, + "finite": true, + "max_abs": 0.168273151, + "mean_abs": 0.00733745012, + "psnr_db": 53.8422497, + "ref_absmax": 3.73949909, + "rel_max": 0.0449988479, + "scaled_max_abs": 0.0449988479 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.10/Add_output_0" + }, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6.78471375, + "index": 12, + "metrics": { + "corr": 0.999579659, + "finite": true, + "max_abs": 0.307674885, + "mean_abs": 0.00914591375, + "psnr_db": 53.5889895, + "ref_absmax": 4.53482485, + "rel_max": 0.0678471375, + "scaled_max_abs": 0.0678471375 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.11/Add_output_0" + }, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 5.52412343, + "index": 13, + "metrics": { + "corr": 0.999361157, + "finite": true, + "max_abs": 0.557923317, + "mean_abs": 0.00560181436, + "psnr_db": 55.5456197, + "ref_absmax": 10.099762, + "rel_max": 0.0552412343, + "scaled_max_abs": 0.0552412343 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.12/features.12.2/HardSwish_output_0" + }, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 26.3935389, + "index": 14, + "metrics": { + "corr": 0.999557995, + "finite": true, + "max_abs": 1.38458109, + "mean_abs": 0.0695269674, + "psnr_db": 34.7330177, + "ref_absmax": 5.24590921, + "rel_max": 0.263935389, + "scaled_max_abs": 0.263935389 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/Div_output_0" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 36.1808015, + "index": 15, + "metrics": { + "corr": 0.982784209, + "finite": true, + "max_abs": 8.82258224, + "mean_abs": 0.966790727, + "psnr_db": 28.1449805, + "ref_absmax": 24.3847065, + "rel_max": 0.361808015, + "scaled_max_abs": 0.361808015 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 2.16155138, + "metrics": { + "corr": 0.999892735, + "finite": true, + "max_abs": 0.389622927, + "mean_abs": 0.0207615438, + "psnr_db": 57.5998688, + "ref_absmax": 18.0251522, + "rel_max": 0.0216155138, + "scaled_max_abs": 0.0216155138 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 8, + "n_judged": 16, + "n_taps": 16, + "taps": [ + { + "band_ratio": 0.0439328023, + "index": 0, + "metrics": { + "corr": 0.999999965, + "finite": true, + "max_abs": 0.00506496429, + "mean_abs": 0.000406712054, + "psnr_db": 88.0749992, + "ref_absmax": 11.5288897, + "rel_max": 0.000439328023, + "scaled_max_abs": 0.000439328023 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0867140259, + "index": 1, + "metrics": { + "corr": 0.999999726, + "finite": true, + "max_abs": 0.146580219, + "mean_abs": 0.000882941117, + "psnr_db": 95.4408227, + "ref_absmax": 169.038651, + "rel_max": 0.000867140259, + "scaled_max_abs": 0.000867140259 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.0/features.0.2/HardSwish_output_0" + }, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_ratio": 0.0745469506, + "index": 2, + "metrics": { + "corr": 0.999999152, + "finite": true, + "max_abs": 0.0332808495, + "mean_abs": 0.00218689379, + "psnr_db": 87.8352672, + "ref_absmax": 44.644146, + "rel_max": 0.000745469506, + "scaled_max_abs": 0.000745469506 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.1/block/block.2/block.2.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.1" + }, + { + "band_ratio": 0.155432319, + "index": 3, + "metrics": { + "corr": 0.999995967, + "finite": true, + "max_abs": 0.0475851297, + "mean_abs": 0.00342715191, + "psnr_db": 79.2772077, + "ref_absmax": 30.6146946, + "rel_max": 0.00155432319, + "scaled_max_abs": 0.00155432319 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.2/block/block.2/block.2.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.2" + }, + { + "band_ratio": 0.290781924, + "index": 4, + "metrics": { + "corr": 0.999991914, + "finite": true, + "max_abs": 0.0760879517, + "mean_abs": 0.00542803163, + "psnr_db": 75.1554022, + "ref_absmax": 26.1666718, + "rel_max": 0.00290781924, + "scaled_max_abs": 0.00290781924 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.3/Add_output_0" + }, + "status": "pass", + "tap": "net.features.3" + }, + { + "band_ratio": 0.4599975, + "index": 5, + "metrics": { + "corr": 0.99996609, + "finite": true, + "max_abs": 0.0897045135, + "mean_abs": 0.00541450367, + "psnr_db": 70.4385356, + "ref_absmax": 19.5010872, + "rel_max": 0.004599975, + "scaled_max_abs": 0.004599975 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.4/block/block.3/block.3.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.4" + }, + { + "band_ratio": 0.371252835, + "index": 6, + "metrics": { + "corr": 0.999930178, + "finite": true, + "max_abs": 0.111546993, + "mean_abs": 0.00825263387, + "psnr_db": 69.5801725, + "ref_absmax": 30.0460987, + "rel_max": 0.00371252835, + "scaled_max_abs": 0.00371252835 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.5/Add_output_0" + }, + "status": "pass", + "tap": "net.features.5" + }, + { + "band_ratio": 0.446367729, + "index": 7, + "metrics": { + "corr": 0.99997663, + "finite": true, + "max_abs": 0.302102566, + "mean_abs": 0.0119582523, + "psnr_db": 75.166003, + "ref_absmax": 67.6801987, + "rel_max": 0.00446367729, + "scaled_max_abs": 0.00446367729 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.6/Add_output_0" + }, + "status": "pass", + "tap": "net.features.6" + }, + { + "band_ratio": 1.2498691, + "index": 8, + "metrics": { + "corr": 0.999928619, + "finite": true, + "max_abs": 0.216041565, + "mean_abs": 0.0069844028, + "psnr_db": 67.9933993, + "ref_absmax": 17.2851353, + "rel_max": 0.012498691, + "scaled_max_abs": 0.012498691 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.7/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 1.83309478, + "index": 9, + "metrics": { + "corr": 0.999903542, + "finite": true, + "max_abs": 0.306545496, + "mean_abs": 0.0089378061, + "psnr_db": 65.732113, + "ref_absmax": 16.7228394, + "rel_max": 0.0183309478, + "scaled_max_abs": 0.0183309478 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.8/Add_output_0" + }, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 2.98509586, + "index": 10, + "metrics": { + "corr": 0.999829019, + "finite": true, + "max_abs": 0.0808291063, + "mean_abs": 0.00452532728, + "psnr_db": 56.0742489, + "ref_absmax": 2.7077558, + "rel_max": 0.0298509586, + "scaled_max_abs": 0.0298509586 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.9/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 3.52693991, + "index": 11, + "metrics": { + "corr": 0.999808855, + "finite": true, + "max_abs": 0.115872979, + "mean_abs": 0.00596741333, + "psnr_db": 55.017935, + "ref_absmax": 3.28536868, + "rel_max": 0.0352693991, + "scaled_max_abs": 0.0352693991 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.10/Add_output_0" + }, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "wide_range", + "index": 22 + } + }, + { + "band_ratio": 4.24804597, + "index": 12, + "metrics": { + "corr": 0.999801387, + "finite": true, + "max_abs": 0.168629915, + "mean_abs": 0.00716211491, + "psnr_db": 55.1986028, + "ref_absmax": 3.9695878, + "rel_max": 0.0424804597, + "scaled_max_abs": 0.0424804597 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.11/Add_output_0" + }, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 5.82480643, + "index": 13, + "metrics": { + "corr": 0.999724486, + "finite": true, + "max_abs": 0.539265156, + "mean_abs": 0.00407862978, + "psnr_db": 58.811884, + "ref_absmax": 9.25807858, + "rel_max": 0.0582480643, + "scaled_max_abs": 0.0582480643 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.12/features.12.2/HardSwish_output_0" + }, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 2.19971823, + "index": 14, + "metrics": { + "corr": 0.99981986, + "finite": true, + "max_abs": 0.114154458, + "mean_abs": 0.00278555338, + "psnr_db": 57.8018904, + "ref_absmax": 5.18950367, + "rel_max": 0.0219971823, + "scaled_max_abs": 0.0219971823 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/Div_output_0" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 2.16155138, + "index": 15, + "metrics": { + "corr": 0.999892735, + "finite": true, + "max_abs": 0.389622927, + "mean_abs": 0.0207615438, + "psnr_db": 57.5998688, + "ref_absmax": 18.0251522, + "rel_max": 0.0216155138, + "scaled_max_abs": 0.0216155138 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp16", + "id": "mobilenet_v3_small__baked_shape__onnx_fp16", + "model": "mobilenet_v3_small", + "path": "onnx", + "variant": "baked_shape" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/mobilenet_v3_small__baked_shape__onnx_fp32.json b/bench/verdicts_e2e_gated/mobilenet_v3_small__baked_shape__onnx_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..ccbcabdf9bd5f9b49588045b96aa1778468c4847 --- /dev/null +++ b/bench/verdicts_e2e_gated/mobilenet_v3_small__baked_shape__onnx_fp32.json @@ -0,0 +1,909 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "status": "flag" + } + }, + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "/net/avgpool/Div_output_0", + "basis": "nominal shape 224 inside band; shape 192 over band", + "index": 14, + "neighbourhood": [ + { + "band_ratio": 0.0891139949, + "index": 13, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.12/features.12.2/HardSwish_output_0" + }, + "status": "pass", + "tap": "net.features.12" + }, + { + "band_ratio": 2653.07206, + "index": 14, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/Div_output_0" + }, + "status": "fail", + "tap": "net.avgpool" + }, + { + "band_ratio": 3688.67636, + "index": 15, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier" + } + ], + "shape": 192, + "tap": "net.avgpool" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "567b629cb61fd8bf5ecfd3758e853f4f38c692cb2827a05a6ba6da38ee005de3", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "a25ff298cde77d51051e3df1eb2520f22820dcf3455e8aada27d37c71580e0dd", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D6", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.59375, + "band_ratio": 3688.67636, + "metrics": { + "corr": 0.982247201, + "finite": true, + "max_abs": 8.99472904, + "mean_abs": 0.971368923, + "psnr_db": 28.0806232, + "ref_absmax": 24.3847065, + "rel_max": 0.368867636, + "scaled_max_abs": 0.368867636 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 14, + "n_judged": 16, + "n_taps": 16, + "taps": [ + { + "band_ratio": 0.0, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 11.5288897, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.00321182749, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.10351562e-05, + "mean_abs": 1.92955669e-07, + "psnr_db": 167.753619, + "ref_absmax": 190.032486, + "rel_max": 3.21182749e-07, + "scaled_max_abs": 3.21182749e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.0/features.0.2/HardSwish_output_0" + }, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_ratio": 0.00797353056, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.6239624e-05, + "mean_abs": 1.02951828e-06, + "psnr_db": 152.906263, + "ref_absmax": 45.4499092, + "rel_max": 7.97353056e-07, + "scaled_max_abs": 7.97353056e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.1/block/block.2/block.2.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.1" + }, + { + "band_ratio": 0.0107255921, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.77757645e-05, + "mean_abs": 1.70024624e-06, + "psnr_db": 143.974771, + "ref_absmax": 25.896719, + "rel_max": 1.07255921e-06, + "scaled_max_abs": 1.07255921e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.2/block/block.2/block.2.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.2" + }, + { + "band_ratio": 0.0318522131, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.18967819e-05, + "mean_abs": 3.22833409e-06, + "psnr_db": 139.462863, + "ref_absmax": 25.7114887, + "rel_max": 3.18522131e-06, + "scaled_max_abs": 3.18522131e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.3/Add_output_0" + }, + "status": "pass", + "tap": "net.features.3" + }, + { + "band_ratio": 0.0199286515, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.40938568e-05, + "mean_abs": 2.22993283e-06, + "psnr_db": 137.575451, + "ref_absmax": 17.1079597, + "rel_max": 1.99286515e-06, + "scaled_max_abs": 1.99286515e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.4/block/block.3/block.3.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.4" + }, + { + "band_ratio": 0.0266528187, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.94854355e-05, + "mean_abs": 3.2667923e-06, + "psnr_db": 135.67943, + "ref_absmax": 22.3186283, + "rel_max": 2.66528187e-06, + "scaled_max_abs": 2.66528187e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.5/Add_output_0" + }, + "status": "pass", + "tap": "net.features.5" + }, + { + "band_ratio": 0.0150412056, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.44137573e-05, + "mean_abs": 5.05650234e-06, + "psnr_db": 142.426731, + "ref_absmax": 62.7700729, + "rel_max": 1.50412056e-06, + "scaled_max_abs": 1.50412056e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.6/Add_output_0" + }, + "status": "pass", + "tap": "net.features.6" + }, + { + "band_ratio": 0.0368849277, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.62939453e-05, + "mean_abs": 2.82185164e-06, + "psnr_db": 137.981185, + "ref_absmax": 20.6843147, + "rel_max": 3.68849277e-06, + "scaled_max_abs": 3.68849277e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.7/block/block.3/block.3.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.7" + }, + { + "band_ratio": 0.037256794, + "index": 9, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.2479248e-05, + "mean_abs": 3.62013353e-06, + "psnr_db": 135.513572, + "ref_absmax": 19.453968, + "rel_max": 3.7256794e-06, + "scaled_max_abs": 3.7256794e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.8/Add_output_0" + }, + "status": "pass", + "tap": "net.features.8" + }, + { + "band_ratio": 0.061742145, + "index": 10, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.15768814e-05, + "mean_abs": 1.50018909e-06, + "psnr_db": 128.382563, + "ref_absmax": 3.49467635, + "rel_max": 6.1742145e-06, + "scaled_max_abs": 6.1742145e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.9/block/block.3/block.3.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.9" + }, + { + "band_ratio": 0.0838402213, + "index": 11, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.13520432e-05, + "mean_abs": 1.93725326e-06, + "psnr_db": 126.949508, + "ref_absmax": 3.73949909, + "rel_max": 8.38402213e-06, + "scaled_max_abs": 8.38402213e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.10/Add_output_0" + }, + "status": "pass", + "tap": "net.features.10" + }, + { + "band_ratio": 0.0744265352, + "index": 12, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.37511301e-05, + "mean_abs": 2.31469886e-06, + "psnr_db": 127.18115, + "ref_absmax": 4.53482485, + "rel_max": 7.44265352e-06, + "scaled_max_abs": 7.44265352e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.11/Add_output_0" + }, + "status": "pass", + "tap": "net.features.11" + }, + { + "band_ratio": 0.0891139949, + "index": 13, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.00030136e-05, + "mean_abs": 1.40993971e-06, + "psnr_db": 129.415501, + "ref_absmax": 10.099762, + "rel_max": 8.91139949e-06, + "scaled_max_abs": 8.91139949e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.12/features.12.2/HardSwish_output_0" + }, + "status": "pass", + "tap": "net.features.12" + }, + { + "band_ratio": 2653.07206, + "index": 14, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.39177752, + "mean_abs": 0.0695958548, + "psnr_db": 34.7260831, + "ref_absmax": 5.24590921, + "rel_max": 0.265307206, + "scaled_max_abs": 0.265307206 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/Div_output_0" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 3688.67636, + "index": 15, + "metrics": { + "corr": 0.982247201, + "finite": true, + "max_abs": 8.99472904, + "mean_abs": 0.971368923, + "psnr_db": 28.0806232, + "ref_absmax": 24.3847065, + "rel_max": 0.368867636, + "scaled_max_abs": 0.368867636 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.039416442, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.10487366e-05, + "mean_abs": 5.34916539e-06, + "psnr_db": 129.853532, + "ref_absmax": 18.0251522, + "rel_max": 3.9416442e-06, + "scaled_max_abs": 3.9416442e-06 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 16, + "n_taps": 16, + "taps": [ + { + "band_ratio": 0.0, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 11.5288897, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.00362482631, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.12735748e-05, + "mean_abs": 1.91186026e-07, + "psnr_db": 167.001893, + "ref_absmax": 169.038651, + "rel_max": 3.62482631e-07, + "scaled_max_abs": 3.62482631e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.0/features.0.2/HardSwish_output_0" + }, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_ratio": 0.00790382455, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.52859497e-05, + "mean_abs": 1.02470507e-06, + "psnr_db": 152.38333, + "ref_absmax": 44.644146, + "rel_max": 7.90382455e-07, + "scaled_max_abs": 7.90382455e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.1/block/block.2/block.2.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.1" + }, + { + "band_ratio": 0.00969570773, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.96831131e-05, + "mean_abs": 1.73306984e-06, + "psnr_db": 144.957341, + "ref_absmax": 30.6146946, + "rel_max": 9.69570773e-07, + "scaled_max_abs": 9.69570773e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.2/block/block.2/block.2.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.2" + }, + { + "band_ratio": 0.02888357, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.55786896e-05, + "mean_abs": 3.29638873e-06, + "psnr_db": 139.315817, + "ref_absmax": 26.1666718, + "rel_max": 2.888357e-06, + "scaled_max_abs": 2.888357e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.3/Add_output_0" + }, + "status": "pass", + "tap": "net.features.3" + }, + { + "band_ratio": 0.0177275726, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.4570694e-05, + "mean_abs": 2.3439867e-06, + "psnr_db": 138.263237, + "ref_absmax": 19.5010872, + "rel_max": 1.77275726e-06, + "scaled_max_abs": 1.77275726e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.4/block/block.3/block.3.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.4" + }, + { + "band_ratio": 0.0253129458, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.60555267e-05, + "mean_abs": 3.54574017e-06, + "psnr_db": 136.969347, + "ref_absmax": 30.0460987, + "rel_max": 2.53129458e-06, + "scaled_max_abs": 2.53129458e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.5/Add_output_0" + }, + "status": "pass", + "tap": "net.features.5" + }, + { + "band_ratio": 0.0159931615, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000108242035, + "mean_abs": 5.13545034e-06, + "psnr_db": 143.212219, + "ref_absmax": 67.6801987, + "rel_max": 1.59931615e-06, + "scaled_max_abs": 1.59931615e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.6/Add_output_0" + }, + "status": "pass", + "tap": "net.features.6" + }, + { + "band_ratio": 0.0380694318, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.58035278e-05, + "mean_abs": 2.82488155e-06, + "psnr_db": 136.663509, + "ref_absmax": 17.2851353, + "rel_max": 3.80694318e-06, + "scaled_max_abs": 3.80694318e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.7/block/block.3/block.3.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.7" + }, + { + "band_ratio": 0.0399197772, + "index": 9, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.67572021e-05, + "mean_abs": 3.50337393e-06, + "psnr_db": 134.638205, + "ref_absmax": 16.7228394, + "rel_max": 3.99197772e-06, + "scaled_max_abs": 3.99197772e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.8/Add_output_0" + }, + "status": "pass", + "tap": "net.features.8" + }, + { + "band_ratio": 0.0777043468, + "index": 10, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.10404396e-05, + "mean_abs": 1.33967606e-06, + "psnr_db": 127.699828, + "ref_absmax": 2.7077558, + "rel_max": 7.77043468e-06, + "scaled_max_abs": 7.77043468e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.9/block/block.3/block.3.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.9" + }, + { + "band_ratio": 0.0888980166, + "index": 11, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.92062759e-05, + "mean_abs": 1.6905562e-06, + "psnr_db": 127.096492, + "ref_absmax": 3.28536868, + "rel_max": 8.88980166e-06, + "scaled_max_abs": 8.88980166e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.10/Add_output_0" + }, + "status": "pass", + "tap": "net.features.10" + }, + { + "band_ratio": 0.0888907148, + "index": 12, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.52859497e-05, + "mean_abs": 2.00946191e-06, + "psnr_db": 127.353822, + "ref_absmax": 3.9695878, + "rel_max": 8.88907148e-06, + "scaled_max_abs": 8.88907148e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.11/Add_output_0" + }, + "status": "pass", + "tap": "net.features.11" + }, + { + "band_ratio": 0.117173831, + "index": 13, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000108480453, + "mean_abs": 1.13273755e-06, + "psnr_db": 131.272068, + "ref_absmax": 9.25807858, + "rel_max": 1.17173831e-05, + "scaled_max_abs": 1.17173831e-05 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.12/features.12.2/HardSwish_output_0" + }, + "status": "pass", + "tap": "net.features.12" + }, + { + "band_ratio": 0.0452533258, + "index": 14, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.348423e-05, + "mean_abs": 6.3883678e-07, + "psnr_db": 131.994457, + "ref_absmax": 5.18950367, + "rel_max": 4.52533258e-06, + "scaled_max_abs": 4.52533258e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/Div_output_0" + }, + "status": "pass", + "tap": "net.avgpool" + }, + { + "band_ratio": 0.039416442, + "index": 15, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.10487366e-05, + "mean_abs": 5.34916539e-06, + "psnr_db": 129.853532, + "ref_absmax": 18.0251522, + "rel_max": 3.9416442e-06, + "scaled_max_abs": 3.9416442e-06 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "pass", + "tap": "net.classifier" + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp32", + "id": "mobilenet_v3_small__baked_shape__onnx_fp32", + "model": "mobilenet_v3_small", + "path": "onnx", + "variant": "baked_shape" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/mobilenet_v3_small__clean__coreml_fp16.json b/bench/verdicts_e2e_gated/mobilenet_v3_small__clean__coreml_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..a9c71758b9249a1780b2b8a0d1ab5aaf82a76f6a --- /dev/null +++ b/bench/verdicts_e2e_gated/mobilenet_v3_small__clean__coreml_fp16.json @@ -0,0 +1,1049 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "at": "net.features.1", + "explained_by": null, + "nominal_band_ratio": 0.889396549, + "results": [ + { + "band_ratio": 88.0535283, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 70.5427189, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 608.928887, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 113.160239, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 379.294491, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [ + "inputs[0]: dtype float16 (declared float32)", + "outputs[0]: dtype float16 (declared float32)" + ], + "status": "precision_narrowing" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "input_27_cast_fp16", + "basis": "earliest tap over band with in-band predecessors", + "index": 2, + "neighbourhood": [ + { + "band_ratio": 0.33139093, + "index": 1, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_7_cast_fp16" + }, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_ratio": 1.09594004, + "index": 2, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_27_cast_fp16" + }, + "status": "fail", + "tap": "net.features.1" + }, + { + "band_ratio": 1.00240612, + "index": 3, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_43_cast_fp16" + }, + "status": "fail", + "tap": "net.features.2" + } + ], + "shape": 224, + "tap": "net.features.1" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "e8f4b313bc394828af089248d6d729f5cfb7d031d184bf665f719d1a66fcd7d8", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "807adc810963567dc9e14f27330f17d8d7cd30ffa6b8e35992534a3dbc2f65e9", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D2", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.84375, + "band_ratio": 4.47572937, + "metrics": { + "corr": 0.999234982, + "finite": true, + "max_abs": 1.09139347, + "mean_abs": 0.0600417178, + "psnr_db": 50.1867257, + "ref_absmax": 24.3847065, + "rel_max": 0.0447572937, + "scaled_max_abs": 0.0447572937 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 2, + "n_judged": 16, + "n_taps": 16, + "taps": [ + { + "band_ratio": 0.117570499, + "index": 0, + "metrics": { + "corr": 0.999999914, + "finite": true, + "max_abs": 0.0135545731, + "mean_abs": 0.000674526699, + "psnr_db": 83.5827466, + "ref_absmax": 11.5288897, + "rel_max": 0.00117570499, + "scaled_max_abs": 0.00117570499 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.264822202, + "index": 1, + "metrics": { + "corr": 0.999998648, + "finite": true, + "max_abs": 0.503248215, + "mean_abs": 0.00245742044, + "psnr_db": 89.2955159, + "ref_absmax": 190.032486, + "rel_max": 0.00264822202, + "scaled_max_abs": 0.00264822202 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_7_cast_fp16" + }, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_ratio": 1.02786363, + "index": 2, + "metrics": { + "corr": 0.999955391, + "finite": true, + "max_abs": 0.467163086, + "mean_abs": 0.0108745644, + "psnr_db": 70.7611788, + "ref_absmax": 45.4499092, + "rel_max": 0.0102786363, + "scaled_max_abs": 0.0102786363 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_27_cast_fp16" + }, + "status": "fail", + "tap": "net.features.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 1.06091941, + "index": 3, + "metrics": { + "corr": 0.999939329, + "finite": true, + "max_abs": 0.274743319, + "mean_abs": 0.0150893866, + "psnr_db": 65.8230603, + "ref_absmax": 25.896719, + "rel_max": 0.0106091941, + "scaled_max_abs": 0.0106091941 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_43_cast_fp16" + }, + "status": "fail", + "tap": "net.features.2", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 2.19511544, + "index": 4, + "metrics": { + "corr": 0.999841065, + "finite": true, + "max_abs": 0.564396858, + "mean_abs": 0.0266718961, + "psnr_db": 62.2128125, + "ref_absmax": 25.7114887, + "rel_max": 0.0219511544, + "scaled_max_abs": 0.0219511544 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59_cast_fp16" + }, + "status": "fail", + "tap": "net.features.3", + "worst_probe": { + "category": "natural", + "index": 5 + } + }, + { + "band_ratio": 1.22644963, + "index": 5, + "metrics": { + "corr": 0.999799843, + "finite": true, + "max_abs": 0.209820509, + "mean_abs": 0.0157979565, + "psnr_db": 61.8903255, + "ref_absmax": 17.1079597, + "rel_max": 0.0122644963, + "scaled_max_abs": 0.0122644963 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85_cast_fp16" + }, + "status": "fail", + "tap": "net.features.4", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_ratio": 2.14109624, + "index": 6, + "metrics": { + "corr": 0.999504987, + "finite": true, + "max_abs": 0.477863312, + "mean_abs": 0.0243805949, + "psnr_db": 59.3153124, + "ref_absmax": 22.3186283, + "rel_max": 0.0214109624, + "scaled_max_abs": 0.0214109624 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_111_cast_fp16" + }, + "status": "fail", + "tap": "net.features.5", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_ratio": 1.12218713, + "index": 7, + "metrics": { + "corr": 0.999850861, + "finite": true, + "max_abs": 0.704397678, + "mean_abs": 0.039895837, + "psnr_db": 65.3544562, + "ref_absmax": 62.7700729, + "rel_max": 0.0112218713, + "scaled_max_abs": 0.0112218713 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_137_cast_fp16" + }, + "status": "fail", + "tap": "net.features.6", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + }, + { + "band_ratio": 1.96969375, + "index": 8, + "metrics": { + "corr": 0.999595316, + "finite": true, + "max_abs": 0.407417655, + "mean_abs": 0.0218482537, + "psnr_db": 61.0318832, + "ref_absmax": 20.6843147, + "rel_max": 0.0196969375, + "scaled_max_abs": 0.0196969375 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_163_cast_fp16" + }, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_ratio": 2.50834797, + "index": 9, + "metrics": { + "corr": 0.999493234, + "finite": true, + "max_abs": 0.487973213, + "mean_abs": 0.0272460814, + "psnr_db": 59.0074803, + "ref_absmax": 19.453968, + "rel_max": 0.0250834797, + "scaled_max_abs": 0.0250834797 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_189_cast_fp16" + }, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_ratio": 4.77444673, + "index": 10, + "metrics": { + "corr": 0.999143776, + "finite": true, + "max_abs": 0.166851461, + "mean_abs": 0.011929511, + "psnr_db": 51.0183146, + "ref_absmax": 3.49467635, + "rel_max": 0.0477444673, + "scaled_max_abs": 0.0477444673 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_215_cast_fp16" + }, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6.2057687, + "index": 11, + "metrics": { + "corr": 0.998980348, + "finite": true, + "max_abs": 0.232064664, + "mean_abs": 0.0157052516, + "psnr_db": 49.3870164, + "ref_absmax": 3.73949909, + "rel_max": 0.062057687, + "scaled_max_abs": 0.062057687 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_241_cast_fp16" + }, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9.7995766, + "index": 12, + "metrics": { + "corr": 0.998920477, + "finite": true, + "max_abs": 0.444393635, + "mean_abs": 0.0186522474, + "psnr_db": 49.5043399, + "ref_absmax": 4.53482485, + "rel_max": 0.097995766, + "scaled_max_abs": 0.097995766 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_267_cast_fp16" + }, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7.87246723, + "index": 13, + "metrics": { + "corr": 0.998558604, + "finite": true, + "max_abs": 0.795100451, + "mean_abs": 0.0110715953, + "psnr_db": 52.0070134, + "ref_absmax": 10.099762, + "rel_max": 0.0787246723, + "scaled_max_abs": 0.0787246723 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_273_cast_fp16" + }, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_ratio": 5.93494378, + "index": 14, + "metrics": { + "corr": 0.999059493, + "finite": true, + "max_abs": 0.311341763, + "mean_abs": 0.00688124836, + "psnr_db": 50.5326651, + "ref_absmax": 5.24590921, + "rel_max": 0.0593494378, + "scaled_max_abs": 0.0593494378 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 4.47572937, + "index": 15, + "metrics": { + "corr": 0.999234982, + "finite": true, + "max_abs": 1.09139347, + "mean_abs": 0.0600417178, + "psnr_db": 50.1867257, + "ref_absmax": 24.3847065, + "rel_max": 0.0447572937, + "scaled_max_abs": 0.0447572937 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 2.92044884, + "metrics": { + "corr": 0.99960838, + "finite": true, + "max_abs": 0.526415348, + "mean_abs": 0.0415014574, + "psnr_db": 51.9897065, + "ref_absmax": 18.0251522, + "rel_max": 0.0292044884, + "scaled_max_abs": 0.0292044884 + }, + "status": "fail", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + }, + "first_fail_index": 2, + "n_judged": 16, + "n_taps": 16, + "taps": [ + { + "band_ratio": 0.116213884, + "index": 0, + "metrics": { + "corr": 0.999999912, + "finite": true, + "max_abs": 0.0133981705, + "mean_abs": 0.000679588388, + "psnr_db": 83.6184843, + "ref_absmax": 11.5288897, + "rel_max": 0.00116213884, + "scaled_max_abs": 0.00116213884 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.33139093, + "index": 1, + "metrics": { + "corr": 0.999998561, + "finite": true, + "max_abs": 0.560178757, + "mean_abs": 0.00245733429, + "psnr_db": 88.488319, + "ref_absmax": 169.038651, + "rel_max": 0.0033139093, + "scaled_max_abs": 0.0033139093 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_7_cast_fp16" + }, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_ratio": 1.09594004, + "index": 2, + "metrics": { + "corr": 0.999947809, + "finite": true, + "max_abs": 0.489273071, + "mean_abs": 0.0109243768, + "psnr_db": 70.0800625, + "ref_absmax": 44.644146, + "rel_max": 0.0109594004, + "scaled_max_abs": 0.0109594004 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_27_cast_fp16" + }, + "status": "fail", + "tap": "net.features.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 1.00240612, + "index": 3, + "metrics": { + "corr": 0.999928562, + "finite": true, + "max_abs": 0.306883574, + "mean_abs": 0.0154189054, + "psnr_db": 66.8123424, + "ref_absmax": 30.6146946, + "rel_max": 0.0100240612, + "scaled_max_abs": 0.0100240612 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_43_cast_fp16" + }, + "status": "fail", + "tap": "net.features.2", + "worst_probe": { + "category": "natural", + "index": 6 + } + }, + { + "band_ratio": 1.73739321, + "index": 4, + "metrics": { + "corr": 0.999826151, + "finite": true, + "max_abs": 0.454617977, + "mean_abs": 0.0275043068, + "psnr_db": 61.9146954, + "ref_absmax": 26.1666718, + "rel_max": 0.0173739321, + "scaled_max_abs": 0.0173739321 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59_cast_fp16" + }, + "status": "fail", + "tap": "net.features.3", + "worst_probe": { + "category": "natural", + "index": 13 + } + }, + { + "band_ratio": 1.0329661, + "index": 5, + "metrics": { + "corr": 0.99979303, + "finite": true, + "max_abs": 0.201439619, + "mean_abs": 0.016404368, + "psnr_db": 62.6750818, + "ref_absmax": 19.5010872, + "rel_max": 0.010329661, + "scaled_max_abs": 0.010329661 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85_cast_fp16" + }, + "status": "fail", + "tap": "net.features.4", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_ratio": 1.3537173, + "index": 6, + "metrics": { + "corr": 0.999513853, + "finite": true, + "max_abs": 0.406739235, + "mean_abs": 0.0253501789, + "psnr_db": 61.2191237, + "ref_absmax": 30.0460987, + "rel_max": 0.013537173, + "scaled_max_abs": 0.013537173 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_111_cast_fp16" + }, + "status": "fail", + "tap": "net.features.5", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_ratio": 0.903408956, + "index": 7, + "metrics": { + "corr": 0.999871662, + "finite": true, + "max_abs": 0.611428976, + "mean_abs": 0.0359328223, + "psnr_db": 67.7936158, + "ref_absmax": 67.6801987, + "rel_max": 0.00903408956, + "scaled_max_abs": 0.00903408956 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_137_cast_fp16" + }, + "status": "pass", + "tap": "net.features.6" + }, + { + "band_ratio": 2.13995931, + "index": 8, + "metrics": { + "corr": 0.999559127, + "finite": true, + "max_abs": 0.369894862, + "mean_abs": 0.0213631066, + "psnr_db": 60.1058239, + "ref_absmax": 17.2851353, + "rel_max": 0.0213995931, + "scaled_max_abs": 0.0213995931 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_163_cast_fp16" + }, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_ratio": 2.82643785, + "index": 9, + "metrics": { + "corr": 0.999500951, + "finite": true, + "max_abs": 0.472660661, + "mean_abs": 0.0256925706, + "psnr_db": 58.5906151, + "ref_absmax": 16.7228394, + "rel_max": 0.0282643785, + "scaled_max_abs": 0.0282643785 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_189_cast_fp16" + }, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_ratio": 6.67671518, + "index": 10, + "metrics": { + "corr": 0.999401345, + "finite": true, + "max_abs": 0.180789143, + "mean_abs": 0.0101991881, + "psnr_db": 50.6690645, + "ref_absmax": 2.7077558, + "rel_max": 0.0667671518, + "scaled_max_abs": 0.0667671518 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_215_cast_fp16" + }, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + }, + { + "band_ratio": 6.89930567, + "index": 11, + "metrics": { + "corr": 0.999307124, + "finite": true, + "max_abs": 0.226667628, + "mean_abs": 0.0133321, + "psnr_db": 49.4267834, + "ref_absmax": 3.28536868, + "rel_max": 0.0689930567, + "scaled_max_abs": 0.0689930567 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_241_cast_fp16" + }, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + }, + { + "band_ratio": 7.35911813, + "index": 12, + "metrics": { + "corr": 0.999328651, + "finite": true, + "max_abs": 0.292126656, + "mean_abs": 0.015667708, + "psnr_db": 49.913118, + "ref_absmax": 3.9695878, + "rel_max": 0.0735911813, + "scaled_max_abs": 0.0735911813 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_267_cast_fp16" + }, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + }, + { + "band_ratio": 11.1351399, + "index": 13, + "metrics": { + "corr": 0.999259846, + "finite": true, + "max_abs": 1.0309, + "mean_abs": 0.00853840335, + "psnr_db": 54.55654, + "ref_absmax": 9.25807858, + "rel_max": 0.111351399, + "scaled_max_abs": 0.111351399 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_273_cast_fp16" + }, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "near_zero", + "index": 27 + } + }, + { + "band_ratio": 3.95019842, + "index": 14, + "metrics": { + "corr": 0.999594702, + "finite": true, + "max_abs": 0.204995692, + "mean_abs": 0.0047363485, + "psnr_db": 54.3473048, + "ref_absmax": 5.18950367, + "rel_max": 0.0395019842, + "scaled_max_abs": 0.0395019842 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + }, + { + "band_ratio": 2.92044884, + "index": 15, + "metrics": { + "corr": 0.99960838, + "finite": true, + "max_abs": 0.526415348, + "mean_abs": 0.0415014574, + "psnr_db": 51.9897065, + "ref_absmax": 18.0251522, + "rel_max": 0.0292044884, + "scaled_max_abs": 0.0292044884 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp16", + "id": "mobilenet_v3_small__clean__coreml_fp16", + "model": "mobilenet_v3_small", + "path": "coreml", + "variant": "clean" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/mobilenet_v3_small__clean__coreml_fp32.json b/bench/verdicts_e2e_gated/mobilenet_v3_small__clean__coreml_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..b18d2a7c1e4af199d9dfcfbdec60ed7b335df560 --- /dev/null +++ b/bench/verdicts_e2e_gated/mobilenet_v3_small__clean__coreml_fp32.json @@ -0,0 +1,853 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": false, + "note": null, + "status": "clear" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "status": "clear" + } + }, + "declared_precision": "fp32", + "first_divergence": null, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "6aa4e75dec6894e11c2f07c6b95c3d3ae1a53d2db236d3ac3b37246f9004eae6", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "f0e93526e4c5787d77966a3a9b20aad662dd06d49e1bc357e66ce69e8c48ac51", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": null, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.0588598369, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000143527985, + "mean_abs": 7.20022978e-06, + "psnr_db": 128.841094, + "ref_absmax": 24.3847065, + "rel_max": 5.88598369e-06, + "scaled_max_abs": 5.88598369e-06 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 16, + "n_taps": 16, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.26638033e-08, + "psnr_db": 163.904618, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.00401478436, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.62939453e-05, + "mean_abs": 3.28296435e-07, + "psnr_db": 166.338486, + "ref_absmax": 190.032486, + "rel_max": 4.01478436e-07, + "scaled_max_abs": 4.01478436e-07 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_7" + }, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_ratio": 0.0140782649, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.39855862e-05, + "mean_abs": 1.75256269e-06, + "psnr_db": 146.780382, + "ref_absmax": 45.4499092, + "rel_max": 1.40782649e-06, + "scaled_max_abs": 1.40782649e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_27" + }, + "status": "pass", + "tap": "net.features.1" + }, + { + "band_ratio": 0.0168018932, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.35113907e-05, + "mean_abs": 2.55808928e-06, + "psnr_db": 141.163244, + "ref_absmax": 25.896719, + "rel_max": 1.68018932e-06, + "scaled_max_abs": 1.68018932e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_43" + }, + "status": "pass", + "tap": "net.features.2" + }, + { + "band_ratio": 0.087118353, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000223994255, + "mean_abs": 5.04164043e-06, + "psnr_db": 135.403114, + "ref_absmax": 25.7114887, + "rel_max": 8.7118353e-06, + "scaled_max_abs": 8.7118353e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59" + }, + "status": "pass", + "tap": "net.features.3" + }, + { + "band_ratio": 0.0493338646, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.4400177e-05, + "mean_abs": 2.84415636e-06, + "psnr_db": 136.267966, + "ref_absmax": 17.1079597, + "rel_max": 4.93338646e-06, + "scaled_max_abs": 4.93338646e-06 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85" + }, + "status": "pass", + "tap": "net.features.4" + }, + { + "band_ratio": 0.0607833822, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000135660172, + "mean_abs": 4.31367924e-06, + "psnr_db": 133.74631, + "ref_absmax": 22.3186283, + "rel_max": 6.07833822e-06, + "scaled_max_abs": 6.07833822e-06 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_111" + }, + "status": "pass", + "tap": "net.features.5" + }, + { + "band_ratio": 0.0272526895, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000171065331, + "mean_abs": 6.5528199e-06, + "psnr_db": 140.878075, + "ref_absmax": 62.7700729, + "rel_max": 2.72526895e-06, + "scaled_max_abs": 2.72526895e-06 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_137" + }, + "status": "pass", + "tap": "net.features.6" + }, + { + "band_ratio": 0.0412073802, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.5234642e-05, + "mean_abs": 3.84877236e-06, + "psnr_db": 135.750147, + "ref_absmax": 20.6843147, + "rel_max": 4.12073802e-06, + "scaled_max_abs": 4.12073802e-06 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_163" + }, + "status": "pass", + "tap": "net.features.7" + }, + { + "band_ratio": 0.0377776538, + "index": 9, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.3492527e-05, + "mean_abs": 4.86094445e-06, + "psnr_db": 133.543458, + "ref_absmax": 19.453968, + "rel_max": 3.77776538e-06, + "scaled_max_abs": 3.77776538e-06 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_189" + }, + "status": "pass", + "tap": "net.features.8" + }, + { + "band_ratio": 0.0685644815, + "index": 10, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.39610672e-05, + "mean_abs": 1.77515499e-06, + "psnr_db": 127.940886, + "ref_absmax": 3.49467635, + "rel_max": 6.85644815e-06, + "scaled_max_abs": 6.85644815e-06 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_215" + }, + "status": "pass", + "tap": "net.features.9" + }, + { + "band_ratio": 0.101373347, + "index": 11, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.79085541e-05, + "mean_abs": 2.19326983e-06, + "psnr_db": 126.93987, + "ref_absmax": 3.73949909, + "rel_max": 1.01373347e-05, + "scaled_max_abs": 1.01373347e-05 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_241" + }, + "status": "pass", + "tap": "net.features.10" + }, + { + "band_ratio": 0.0977895667, + "index": 12, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.43458557e-05, + "mean_abs": 2.60460286e-06, + "psnr_db": 127.15622, + "ref_absmax": 4.53482485, + "rel_max": 9.77895667e-06, + "scaled_max_abs": 9.77895667e-06 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_267" + }, + "status": "pass", + "tap": "net.features.11" + }, + { + "band_ratio": 0.104340095, + "index": 13, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000105381012, + "mean_abs": 1.55745248e-06, + "psnr_db": 129.604509, + "ref_absmax": 10.099762, + "rel_max": 1.04340095e-05, + "scaled_max_abs": 1.04340095e-05 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_273" + }, + "status": "pass", + "tap": "net.features.12" + }, + { + "band_ratio": 0.0569242162, + "index": 14, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.9861927e-05, + "mean_abs": 8.69336346e-07, + "psnr_db": 128.873055, + "ref_absmax": 5.24590921, + "rel_max": 5.69242162e-06, + "scaled_max_abs": 5.69242162e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x" + }, + "status": "pass", + "tap": "net.avgpool" + }, + { + "band_ratio": 0.0588598369, + "index": 15, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000143527985, + "mean_abs": 7.20022978e-06, + "psnr_db": 128.841094, + "ref_absmax": 24.3847065, + "rel_max": 5.88598369e-06, + "scaled_max_abs": 5.88598369e-06 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "pass", + "tap": "net.classifier" + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.0583310433, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000105142593, + "mean_abs": 6.17089395e-06, + "psnr_db": 128.607455, + "ref_absmax": 18.0251522, + "rel_max": 5.83310433e-06, + "scaled_max_abs": 5.83310433e-06 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 16, + "n_taps": 16, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.2793459e-08, + "psnr_db": 164.013874, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.00361072193, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.10351562e-05, + "mean_abs": 3.27406325e-07, + "psnr_db": 165.532994, + "ref_absmax": 169.038651, + "rel_max": 3.61072193e-07, + "scaled_max_abs": 3.61072193e-07 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_7" + }, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_ratio": 0.0153937664, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.87241554e-05, + "mean_abs": 1.75363639e-06, + "psnr_db": 146.190871, + "ref_absmax": 44.644146, + "rel_max": 1.53937664e-06, + "scaled_max_abs": 1.53937664e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_27" + }, + "status": "pass", + "tap": "net.features.1" + }, + { + "band_ratio": 0.0136285048, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.17232513e-05, + "mean_abs": 2.61711599e-06, + "psnr_db": 142.200155, + "ref_absmax": 30.6146946, + "rel_max": 1.36285048e-06, + "scaled_max_abs": 1.36285048e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_43" + }, + "status": "pass", + "tap": "net.features.2" + }, + { + "band_ratio": 0.0653297152, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000170946121, + "mean_abs": 5.15982585e-06, + "psnr_db": 135.344389, + "ref_absmax": 26.1666718, + "rel_max": 6.53297152e-06, + "scaled_max_abs": 6.53297152e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59" + }, + "status": "pass", + "tap": "net.features.3" + }, + { + "band_ratio": 0.0415681014, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.10623169e-05, + "mean_abs": 2.93827984e-06, + "psnr_db": 137.117562, + "ref_absmax": 19.5010872, + "rel_max": 4.15681014e-06, + "scaled_max_abs": 4.15681014e-06 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85" + }, + "status": "pass", + "tap": "net.features.4" + }, + { + "band_ratio": 0.0479676355, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000144124031, + "mean_abs": 4.59301085e-06, + "psnr_db": 135.369807, + "ref_absmax": 30.0460987, + "rel_max": 4.79676355e-06, + "scaled_max_abs": 4.79676355e-06 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_111" + }, + "status": "pass", + "tap": "net.features.5" + }, + { + "band_ratio": 0.0235758224, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000159561634, + "mean_abs": 6.69582837e-06, + "psnr_db": 141.701188, + "ref_absmax": 67.6801987, + "rel_max": 2.35758224e-06, + "scaled_max_abs": 2.35758224e-06 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_137" + }, + "status": "pass", + "tap": "net.features.6" + }, + { + "band_ratio": 0.0573800132, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.91821289e-05, + "mean_abs": 3.96359522e-06, + "psnr_db": 134.149167, + "ref_absmax": 17.2851353, + "rel_max": 5.73800132e-06, + "scaled_max_abs": 5.73800132e-06 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_163" + }, + "status": "pass", + "tap": "net.features.7" + }, + { + "band_ratio": 0.0631587904, + "index": 9, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000105619431, + "mean_abs": 4.93159862e-06, + "psnr_db": 132.165799, + "ref_absmax": 16.7228394, + "rel_max": 6.31587904e-06, + "scaled_max_abs": 6.31587904e-06 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_189" + }, + "status": "pass", + "tap": "net.features.8" + }, + { + "band_ratio": 0.110888285, + "index": 10, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.00258398e-05, + "mean_abs": 1.68708781e-06, + "psnr_db": 126.046146, + "ref_absmax": 2.7077558, + "rel_max": 1.10888285e-05, + "scaled_max_abs": 1.10888285e-05 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_215" + }, + "status": "pass", + "tap": "net.features.9" + }, + { + "band_ratio": 0.126997167, + "index": 11, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.17232513e-05, + "mean_abs": 2.23347015e-06, + "psnr_db": 124.772058, + "ref_absmax": 3.28536868, + "rel_max": 1.26997167e-05, + "scaled_max_abs": 1.26997167e-05 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_241" + }, + "status": "pass", + "tap": "net.features.10" + }, + { + "band_ratio": 0.129450857, + "index": 12, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.13866544e-05, + "mean_abs": 2.59994895e-06, + "psnr_db": 125.243457, + "ref_absmax": 3.9695878, + "rel_max": 1.29450857e-05, + "scaled_max_abs": 1.29450857e-05 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_267" + }, + "status": "pass", + "tap": "net.features.11" + }, + { + "band_ratio": 0.170481486, + "index": 13, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000157833099, + "mean_abs": 1.44956597e-06, + "psnr_db": 129.151059, + "ref_absmax": 9.25807858, + "rel_max": 1.70481486e-05, + "scaled_max_abs": 1.70481486e-05 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_273" + }, + "status": "pass", + "tap": "net.features.12" + }, + { + "band_ratio": 0.0590360646, + "index": 14, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.06367874e-05, + "mean_abs": 7.60094233e-07, + "psnr_db": 130.120592, + "ref_absmax": 5.18950367, + "rel_max": 5.90360646e-06, + "scaled_max_abs": 5.90360646e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x" + }, + "status": "pass", + "tap": "net.avgpool" + }, + { + "band_ratio": 0.0583310433, + "index": 15, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000105142593, + "mean_abs": 6.17089395e-06, + "psnr_db": 128.607455, + "ref_absmax": 18.0251522, + "rel_max": 5.83310433e-06, + "scaled_max_abs": 5.83310433e-06 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "pass", + "tap": "net.classifier" + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp32", + "id": "mobilenet_v3_small__clean__coreml_fp32", + "model": "mobilenet_v3_small", + "path": "coreml", + "variant": "clean" + }, + "verdict": "PASS" +} diff --git a/bench/verdicts_e2e_gated/mobilenet_v3_small__clean__litert_fp16.json b/bench/verdicts_e2e_gated/mobilenet_v3_small__clean__litert_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..22d8be98035272c6332ed921c5321659be195c5d --- /dev/null +++ b/bench/verdicts_e2e_gated/mobilenet_v3_small__clean__litert_fp16.json @@ -0,0 +1,1147 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "reason": "first divergence at tap 8 is beyond the hypothesis taps (first 3) \u2014 interface faults surface earlier", + "status": "not_evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 0.000819612491, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000147819519, + "mean_abs": 7.12326743e-06, + "psnr_db": 125.094877, + "ref_absmax": 18.0352936, + "rel_max": 8.19612491e-06, + "scaled_max_abs": 8.19612491e-06 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 116, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 1, + "n_ops_total": 169, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_7/torch.nn.modules.container.Sequential_block/t", + "basis": "earliest tap over band with in-band predecessors", + "index": 8, + "neighbourhood": [ + { + "band_ratio": 0.292023152, + "index": 7, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_6;" + }, + "status": "pass", + "tap": "net.features.6" + }, + { + "band_ratio": 1.69154072, + "index": 8, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_7/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.7" + }, + { + "band_ratio": 2.38189477, + "index": 9, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_8;" + }, + "status": "fail", + "tap": "net.features.8" + } + ], + "shape": 224, + "tap": "net.features.7" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "c1e0d3f6eacceb0f07eea7aaf062f75a642b665785bf323c4ed798c4c424167a", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "e68287c6bf447d1c5af1840f2957e8f25a438b576d35374a5a1e6bfa57051ad5", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D2", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 3.47403663, + "metrics": { + "corr": 0.999796187, + "finite": true, + "max_abs": 0.847133636, + "mean_abs": 0.020741918, + "psnr_db": 55.7641027, + "ref_absmax": 24.3847065, + "rel_max": 0.0347403663, + "scaled_max_abs": 0.0347403663 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 8, + "n_judged": 16, + "n_taps": 16, + "taps": [ + { + "band_ratio": 8.27203959e-06, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.26638033e-08, + "psnr_db": 163.904618, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0915032087, + "index": 1, + "metrics": { + "corr": 0.999999786, + "finite": true, + "max_abs": 0.173885822, + "mean_abs": 0.000502268084, + "psnr_db": 96.9119524, + "ref_absmax": 190.032486, + "rel_max": 0.000915032087, + "scaled_max_abs": 0.000915032087 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_0/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_ratio": 0.0727773511, + "index": 2, + "metrics": { + "corr": 0.999999501, + "finite": true, + "max_abs": 0.03307724, + "mean_abs": 0.00172972956, + "psnr_db": 89.9446481, + "ref_absmax": 45.4499092, + "rel_max": 0.000727773511, + "scaled_max_abs": 0.000727773511 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_1/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.1" + }, + { + "band_ratio": 0.15302635, + "index": 3, + "metrics": { + "corr": 0.99999802, + "finite": true, + "max_abs": 0.0396288037, + "mean_abs": 0.00251701601, + "psnr_db": 80.5863503, + "ref_absmax": 25.896719, + "rel_max": 0.0015302635, + "scaled_max_abs": 0.0015302635 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_2/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.2" + }, + { + "band_ratio": 0.244577705, + "index": 4, + "metrics": { + "corr": 0.999994624, + "finite": true, + "max_abs": 0.0628845692, + "mean_abs": 0.00432135067, + "psnr_db": 76.8433382, + "ref_absmax": 25.7114887, + "rel_max": 0.00244577705, + "scaled_max_abs": 0.00244577705 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_3;" + }, + "status": "pass", + "tap": "net.features.3" + }, + { + "band_ratio": 0.273230174, + "index": 5, + "metrics": { + "corr": 0.999981879, + "finite": true, + "max_abs": 0.0467441082, + "mean_abs": 0.0038035588, + "psnr_db": 72.274713, + "ref_absmax": 17.1079597, + "rel_max": 0.00273230174, + "scaled_max_abs": 0.00273230174 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_4/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.4" + }, + { + "band_ratio": 0.403152459, + "index": 6, + "metrics": { + "corr": 0.999956004, + "finite": true, + "max_abs": 0.0899780989, + "mean_abs": 0.00600733947, + "psnr_db": 69.8085829, + "ref_absmax": 22.3186283, + "rel_max": 0.00403152459, + "scaled_max_abs": 0.00403152459 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_5;" + }, + "status": "pass", + "tap": "net.features.5" + }, + { + "band_ratio": 0.394882259, + "index": 7, + "metrics": { + "corr": 0.999974444, + "finite": true, + "max_abs": 0.247867882, + "mean_abs": 0.0121702154, + "psnr_db": 73.0406073, + "ref_absmax": 62.7700729, + "rel_max": 0.00394882259, + "scaled_max_abs": 0.00394882259 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_6;" + }, + "status": "pass", + "tap": "net.features.6" + }, + { + "band_ratio": 1.42171571, + "index": 8, + "metrics": { + "corr": 0.999941634, + "finite": true, + "max_abs": 0.294072151, + "mean_abs": 0.00577465295, + "psnr_db": 69.3943408, + "ref_absmax": 20.6843147, + "rel_max": 0.0142171571, + "scaled_max_abs": 0.0142171571 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_7/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 1.74337408, + "index": 9, + "metrics": { + "corr": 0.999916718, + "finite": true, + "max_abs": 0.339155436, + "mean_abs": 0.00756068161, + "psnr_db": 66.8769751, + "ref_absmax": 19.453968, + "rel_max": 0.0174337408, + "scaled_max_abs": 0.0174337408 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_8;" + }, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 4.26980192, + "index": 10, + "metrics": { + "corr": 0.999817604, + "finite": true, + "max_abs": 0.149215758, + "mean_abs": 0.00381537326, + "psnr_db": 57.7094961, + "ref_absmax": 3.49467635, + "rel_max": 0.0426980192, + "scaled_max_abs": 0.0426980192 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_9/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 5.18188833, + "index": 11, + "metrics": { + "corr": 0.9998211, + "finite": true, + "max_abs": 0.193776667, + "mean_abs": 0.00464179122, + "psnr_db": 56.9399931, + "ref_absmax": 3.73949909, + "rel_max": 0.0518188833, + "scaled_max_abs": 0.0518188833 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_10;" + }, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7.6462924, + "index": 12, + "metrics": { + "corr": 0.999749585, + "finite": true, + "max_abs": 0.346745968, + "mean_abs": 0.00595789127, + "psnr_db": 55.8434454, + "ref_absmax": 4.53482485, + "rel_max": 0.076462924, + "scaled_max_abs": 0.076462924 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_11;" + }, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6.32643266, + "index": 13, + "metrics": { + "corr": 0.999553138, + "finite": true, + "max_abs": 0.638954639, + "mean_abs": 0.00377065967, + "psnr_db": 57.0997046, + "ref_absmax": 10.099762, + "rel_max": 0.0632643266, + "scaled_max_abs": 0.0632643266 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_12/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 3.92971952, + "index": 14, + "metrics": { + "corr": 0.999735141, + "finite": true, + "max_abs": 0.206149518, + "mean_abs": 0.00252011111, + "psnr_db": 56.0422076, + "ref_absmax": 5.24590921, + "rel_max": 0.0392971952, + "scaled_max_abs": 0.0392971952 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;;zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Seque" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 3.47403663, + "index": 15, + "metrics": { + "corr": 0.999796187, + "finite": true, + "max_abs": 0.847133636, + "mean_abs": 0.020741918, + "psnr_db": 55.7641027, + "ref_absmax": 24.3847065, + "rel_max": 0.0347403663, + "scaled_max_abs": 0.0347403663 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.90625, + "band_ratio": 2.71596083, + "metrics": { + "corr": 0.999929741, + "finite": true, + "max_abs": 0.489556074, + "mean_abs": 0.0129197023, + "psnr_db": 59.4536219, + "ref_absmax": 18.0251522, + "rel_max": 0.0271596083, + "scaled_max_abs": 0.0271596083 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 8, + "n_judged": 16, + "n_taps": 16, + "taps": [ + { + "band_ratio": 8.27203959e-06, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.2793459e-08, + "psnr_db": 164.013874, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0868202319, + "index": 1, + "metrics": { + "corr": 0.999999767, + "finite": true, + "max_abs": 0.146759748, + "mean_abs": 0.000503267604, + "psnr_db": 96.0452891, + "ref_absmax": 169.038651, + "rel_max": 0.000868202319, + "scaled_max_abs": 0.000868202319 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_0/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_ratio": 0.0755872648, + "index": 2, + "metrics": { + "corr": 0.999999435, + "finite": true, + "max_abs": 0.0337452888, + "mean_abs": 0.00172548561, + "psnr_db": 89.4320948, + "ref_absmax": 44.644146, + "rel_max": 0.000755872648, + "scaled_max_abs": 0.000755872648 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_1/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.1" + }, + { + "band_ratio": 0.127885996, + "index": 3, + "metrics": { + "corr": 0.999997629, + "finite": true, + "max_abs": 0.039151907, + "mean_abs": 0.00258047824, + "psnr_db": 81.5125813, + "ref_absmax": 30.6146946, + "rel_max": 0.00127885996, + "scaled_max_abs": 0.00127885996 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_2/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.2" + }, + { + "band_ratio": 0.279809812, + "index": 4, + "metrics": { + "corr": 0.999994277, + "finite": true, + "max_abs": 0.0732169151, + "mean_abs": 0.00442955329, + "psnr_db": 76.6613702, + "ref_absmax": 26.1666718, + "rel_max": 0.00279809812, + "scaled_max_abs": 0.00279809812 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_3;" + }, + "status": "pass", + "tap": "net.features.3" + }, + { + "band_ratio": 0.289036457, + "index": 5, + "metrics": { + "corr": 0.999980992, + "finite": true, + "max_abs": 0.0563652515, + "mean_abs": 0.00400878569, + "psnr_db": 72.9879694, + "ref_absmax": 19.5010872, + "rel_max": 0.00289036457, + "scaled_max_abs": 0.00289036457 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_4/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.4" + }, + { + "band_ratio": 0.310832262, + "index": 6, + "metrics": { + "corr": 0.999956355, + "finite": true, + "max_abs": 0.0933929682, + "mean_abs": 0.00625826495, + "psnr_db": 71.6653247, + "ref_absmax": 30.0460987, + "rel_max": 0.00310832262, + "scaled_max_abs": 0.00310832262 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_5;" + }, + "status": "pass", + "tap": "net.features.5" + }, + { + "band_ratio": 0.292023152, + "index": 7, + "metrics": { + "corr": 0.999987205, + "finite": true, + "max_abs": 0.19764185, + "mean_abs": 0.00882840116, + "psnr_db": 77.7884462, + "ref_absmax": 67.6801987, + "rel_max": 0.00292023152, + "scaled_max_abs": 0.00292023152 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_6;" + }, + "status": "pass", + "tap": "net.features.6" + }, + { + "band_ratio": 1.69154072, + "index": 8, + "metrics": { + "corr": 0.999942873, + "finite": true, + "max_abs": 0.292385101, + "mean_abs": 0.00539707911, + "psnr_db": 68.9160235, + "ref_absmax": 17.2851353, + "rel_max": 0.0169154072, + "scaled_max_abs": 0.0169154072 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_7/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 2.38189477, + "index": 9, + "metrics": { + "corr": 0.999929405, + "finite": true, + "max_abs": 0.398320436, + "mean_abs": 0.00659560857, + "psnr_db": 67.0793221, + "ref_absmax": 16.7228394, + "rel_max": 0.0238189477, + "scaled_max_abs": 0.0238189477 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_8;" + }, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 3.86260521, + "index": 10, + "metrics": { + "corr": 0.99987447, + "finite": true, + "max_abs": 0.104589917, + "mean_abs": 0.0031962443, + "psnr_db": 57.4378382, + "ref_absmax": 2.7077558, + "rel_max": 0.0386260521, + "scaled_max_abs": 0.0386260521 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_9/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 4.26017801, + "index": 11, + "metrics": { + "corr": 0.999873544, + "finite": true, + "max_abs": 0.139962554, + "mean_abs": 0.00412300785, + "psnr_db": 56.8254194, + "ref_absmax": 3.28536868, + "rel_max": 0.0426017801, + "scaled_max_abs": 0.0426017801 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_10;" + }, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 5.43799083, + "index": 12, + "metrics": { + "corr": 0.999847259, + "finite": true, + "max_abs": 0.215865821, + "mean_abs": 0.00501177022, + "psnr_db": 56.3378385, + "ref_absmax": 3.9695878, + "rel_max": 0.0543799083, + "scaled_max_abs": 0.0543799083 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_11;" + }, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7.75258635, + "index": 13, + "metrics": { + "corr": 0.999759024, + "finite": true, + "max_abs": 0.717740536, + "mean_abs": 0.00289672989, + "psnr_db": 59.4037277, + "ref_absmax": 9.25807858, + "rel_max": 0.0775258635, + "scaled_max_abs": 0.0775258635 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_12/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 2.67350447, + "index": 14, + "metrics": { + "corr": 0.999878283, + "finite": true, + "max_abs": 0.138741612, + "mean_abs": 0.001866989, + "psnr_db": 59.520476, + "ref_absmax": 5.18950367, + "rel_max": 0.0267350447, + "scaled_max_abs": 0.0267350447 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;;zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Seque" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 2.71596083, + "index": 15, + "metrics": { + "corr": 0.999929741, + "finite": true, + "max_abs": 0.489556074, + "mean_abs": 0.0129197023, + "psnr_db": 59.4536219, + "ref_absmax": 18.0251522, + "rel_max": 0.0271596083, + "scaled_max_abs": 0.0271596083 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp16", + "id": "mobilenet_v3_small__clean__litert_fp16", + "model": "mobilenet_v3_small", + "path": "litert", + "variant": "clean" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/mobilenet_v3_small__clean__litert_fp32.json b/bench/verdicts_e2e_gated/mobilenet_v3_small__clean__litert_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..68e44abd43296e849e6689a3c0b44c8b40dd2aa2 --- /dev/null +++ b/bench/verdicts_e2e_gated/mobilenet_v3_small__clean__litert_fp32.json @@ -0,0 +1,1012 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": false, + "note": null, + "status": "clear" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 0.0424586551, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.65323639e-05, + "mean_abs": 5.22898112e-06, + "psnr_db": 129.391437, + "ref_absmax": 18.0251503, + "rel_max": 4.24586551e-06, + "scaled_max_abs": 4.24586551e-06 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 116, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 1, + "n_ops_total": 115, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "status": "clear" + } + }, + "declared_precision": "fp32", + "first_divergence": null, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "ae900cefbb664515505668ae7e2ecf32bb5678c0086fc3f50631315e83813dff", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "c36975cfb849c7ada8d16f7d9092d26f036c91003ab72083b1229da6c2050418", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": null, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.0465403361, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000113487244, + "mean_abs": 7.53016735e-06, + "psnr_db": 127.842258, + "ref_absmax": 24.3847065, + "rel_max": 4.65403361e-06, + "scaled_max_abs": 4.65403361e-06 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 16, + "n_taps": 16, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.26638033e-08, + "psnr_db": 163.904618, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.00421552358, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.01086426e-05, + "mean_abs": 2.27467979e-07, + "psnr_db": 166.067675, + "ref_absmax": 190.032486, + "rel_max": 4.21552358e-07, + "scaled_max_abs": 4.21552358e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_0/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_ratio": 0.00902267932, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.10079956e-05, + "mean_abs": 1.0080085e-06, + "psnr_db": 152.997611, + "ref_absmax": 45.4499092, + "rel_max": 9.02267932e-07, + "scaled_max_abs": 9.02267932e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_1/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.1" + }, + { + "band_ratio": 0.0102192337, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.64644623e-05, + "mean_abs": 1.53339525e-06, + "psnr_db": 145.715772, + "ref_absmax": 25.896719, + "rel_max": 1.02192337e-06, + "scaled_max_abs": 1.02192337e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_2/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.2" + }, + { + "band_ratio": 0.0320840342, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.24928284e-05, + "mean_abs": 3.09957574e-06, + "psnr_db": 139.892867, + "ref_absmax": 25.7114887, + "rel_max": 3.20840342e-06, + "scaled_max_abs": 3.20840342e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_3;" + }, + "status": "pass", + "tap": "net.features.3" + }, + { + "band_ratio": 0.0234126815, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.00543213e-05, + "mean_abs": 2.00923851e-06, + "psnr_db": 138.932066, + "ref_absmax": 17.1079597, + "rel_max": 2.34126815e-06, + "scaled_max_abs": 2.34126815e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_4/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.4" + }, + { + "band_ratio": 0.0254243321, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.67436218e-05, + "mean_abs": 2.97928019e-06, + "psnr_db": 137.091891, + "ref_absmax": 22.3186283, + "rel_max": 2.54243321e-06, + "scaled_max_abs": 2.54243321e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_5;" + }, + "status": "pass", + "tap": "net.features.5" + }, + { + "band_ratio": 0.0144334801, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.05990601e-05, + "mean_abs": 5.44640999e-06, + "psnr_db": 141.651884, + "ref_absmax": 62.7700729, + "rel_max": 1.44334801e-06, + "scaled_max_abs": 1.44334801e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_6;" + }, + "status": "pass", + "tap": "net.features.6" + }, + { + "band_ratio": 0.0253583878, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.24520874e-05, + "mean_abs": 2.81419225e-06, + "psnr_db": 138.375617, + "ref_absmax": 20.6843147, + "rel_max": 2.53583878e-06, + "scaled_max_abs": 2.53583878e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_7/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.7" + }, + { + "band_ratio": 0.0509829813, + "index": 9, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.91821289e-05, + "mean_abs": 3.77280285e-06, + "psnr_db": 135.035103, + "ref_absmax": 19.453968, + "rel_max": 5.09829813e-06, + "scaled_max_abs": 5.09829813e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_8;" + }, + "status": "pass", + "tap": "net.features.8" + }, + { + "band_ratio": 0.0743634675, + "index": 10, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.59876251e-05, + "mean_abs": 1.52914309e-06, + "psnr_db": 127.873129, + "ref_absmax": 3.49467635, + "rel_max": 7.43634675e-06, + "scaled_max_abs": 7.43634675e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_9/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.9" + }, + { + "band_ratio": 0.0946788811, + "index": 11, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.5405159e-05, + "mean_abs": 1.95057929e-06, + "psnr_db": 126.896878, + "ref_absmax": 3.73949909, + "rel_max": 9.46788811e-06, + "scaled_max_abs": 9.46788811e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_10;" + }, + "status": "pass", + "tap": "net.features.10" + }, + { + "band_ratio": 0.0855001521, + "index": 12, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.87728214e-05, + "mean_abs": 2.39725816e-06, + "psnr_db": 126.949662, + "ref_absmax": 4.53482485, + "rel_max": 8.55001521e-06, + "scaled_max_abs": 8.55001521e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_11;" + }, + "status": "pass", + "tap": "net.features.11" + }, + { + "band_ratio": 0.0878156453, + "index": 13, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.86917114e-05, + "mean_abs": 1.43130718e-06, + "psnr_db": 129.412632, + "ref_absmax": 10.099762, + "rel_max": 8.78156453e-06, + "scaled_max_abs": 8.78156453e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_12/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "pass", + "tap": "net.features.12" + }, + { + "band_ratio": 0.0679454716, + "index": 14, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.56435776e-05, + "mean_abs": 8.92411919e-07, + "psnr_db": 127.540817, + "ref_absmax": 5.24590921, + "rel_max": 6.79454716e-06, + "scaled_max_abs": 6.79454716e-06 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;;zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Seque" + }, + "status": "pass", + "tap": "net.avgpool" + }, + { + "band_ratio": 0.0465403361, + "index": 15, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000113487244, + "mean_abs": 7.53016735e-06, + "psnr_db": 127.842258, + "ref_absmax": 24.3847065, + "rel_max": 4.65403361e-06, + "scaled_max_abs": 4.65403361e-06 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "pass", + "tap": "net.classifier" + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.0833300619, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000150203705, + "mean_abs": 6.17952022e-06, + "psnr_db": 127.925342, + "ref_absmax": 18.0251522, + "rel_max": 8.33300619e-06, + "scaled_max_abs": 8.33300619e-06 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 16, + "n_taps": 16, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.2793459e-08, + "psnr_db": 164.013874, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.00530324784, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.96453857e-05, + "mean_abs": 2.25372134e-07, + "psnr_db": 165.388517, + "ref_absmax": 169.038651, + "rel_max": 5.30324784e-07, + "scaled_max_abs": 5.30324784e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_0/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_ratio": 0.00747659079, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.33786011e-05, + "mean_abs": 1.00480479e-06, + "psnr_db": 152.460917, + "ref_absmax": 44.644146, + "rel_max": 7.47659079e-07, + "scaled_max_abs": 7.47659079e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_1/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.1" + }, + { + "band_ratio": 0.0121488386, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.71932983e-05, + "mean_abs": 1.59080642e-06, + "psnr_db": 146.525466, + "ref_absmax": 30.6146946, + "rel_max": 1.21488386e-06, + "scaled_max_abs": 1.21488386e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_2/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.2" + }, + { + "band_ratio": 0.0325737422, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.5234642e-05, + "mean_abs": 3.21546023e-06, + "psnr_db": 139.580403, + "ref_absmax": 26.1666718, + "rel_max": 3.25737422e-06, + "scaled_max_abs": 3.25737422e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_3;" + }, + "status": "pass", + "tap": "net.features.3" + }, + { + "band_ratio": 0.0219455123, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.27961349e-05, + "mean_abs": 2.13495104e-06, + "psnr_db": 139.420031, + "ref_absmax": 19.5010872, + "rel_max": 2.19455123e-06, + "scaled_max_abs": 2.19455123e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_4/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.4" + }, + { + "band_ratio": 0.0270586662, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.13007355e-05, + "mean_abs": 3.28263783e-06, + "psnr_db": 138.252109, + "ref_absmax": 30.0460987, + "rel_max": 2.70586662e-06, + "scaled_max_abs": 2.70586662e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_5;" + }, + "status": "pass", + "tap": "net.features.5" + }, + { + "band_ratio": 0.0154295259, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000104427338, + "mean_abs": 4.80388392e-06, + "psnr_db": 144.501741, + "ref_absmax": 67.6801987, + "rel_max": 1.54295259e-06, + "scaled_max_abs": 1.54295259e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_6;" + }, + "status": "pass", + "tap": "net.features.6" + }, + { + "band_ratio": 0.0446902026, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.72476196e-05, + "mean_abs": 2.90402475e-06, + "psnr_db": 136.617624, + "ref_absmax": 17.2851353, + "rel_max": 4.46902026e-06, + "scaled_max_abs": 4.46902026e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_7/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.7" + }, + { + "band_ratio": 0.053606558, + "index": 9, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.96453857e-05, + "mean_abs": 3.69236233e-06, + "psnr_db": 134.297061, + "ref_absmax": 16.7228394, + "rel_max": 5.3606558e-06, + "scaled_max_abs": 5.3606558e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_8;" + }, + "status": "pass", + "tap": "net.features.8" + }, + { + "band_ratio": 0.120188593, + "index": 10, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.2544136e-05, + "mean_abs": 1.44733846e-06, + "psnr_db": 126.680959, + "ref_absmax": 2.7077558, + "rel_max": 1.20188593e-05, + "scaled_max_abs": 1.20188593e-05 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_9/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.9" + }, + { + "band_ratio": 0.149856656, + "index": 11, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.92334366e-05, + "mean_abs": 1.93422577e-06, + "psnr_db": 125.51436, + "ref_absmax": 3.28536868, + "rel_max": 1.49856656e-05, + "scaled_max_abs": 1.49856656e-05 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_10;" + }, + "status": "pass", + "tap": "net.features.10" + }, + { + "band_ratio": 0.148051089, + "index": 12, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.87701797e-05, + "mean_abs": 2.3352652e-06, + "psnr_db": 125.442053, + "ref_absmax": 3.9695878, + "rel_max": 1.48051089e-05, + "scaled_max_abs": 1.48051089e-05 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_11;" + }, + "status": "pass", + "tap": "net.features.11" + }, + { + "band_ratio": 0.210784133, + "index": 13, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000195145607, + "mean_abs": 1.36275442e-06, + "psnr_db": 128.73451, + "ref_absmax": 9.25807858, + "rel_max": 2.10784133e-05, + "scaled_max_abs": 2.10784133e-05 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_12/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "pass", + "tap": "net.features.12" + }, + { + "band_ratio": 0.0721296665, + "index": 14, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.74317169e-05, + "mean_abs": 8.06604356e-07, + "psnr_db": 128.855365, + "ref_absmax": 5.18950367, + "rel_max": 7.21296665e-06, + "scaled_max_abs": 7.21296665e-06 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;;zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Seque" + }, + "status": "pass", + "tap": "net.avgpool" + }, + { + "band_ratio": 0.0833300619, + "index": 15, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000150203705, + "mean_abs": 6.17952022e-06, + "psnr_db": 127.925342, + "ref_absmax": 18.0251522, + "rel_max": 8.33300619e-06, + "scaled_max_abs": 8.33300619e-06 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "pass", + "tap": "net.classifier" + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp32", + "id": "mobilenet_v3_small__clean__litert_fp32", + "model": "mobilenet_v3_small", + "path": "litert", + "variant": "clean" + }, + "verdict": "PASS" +} diff --git a/bench/verdicts_e2e_gated/mobilenet_v3_small__clean__onnx_fp16.json b/bench/verdicts_e2e_gated/mobilenet_v3_small__clean__onnx_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..28d29fd51210fffc5cb1db38e8059dd28b3fe269 --- /dev/null +++ b/bench/verdicts_e2e_gated/mobilenet_v3_small__clean__onnx_fp16.json @@ -0,0 +1,973 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "reason": "first divergence at tap 8 is beyond the hypothesis taps (first 3) \u2014 interface faults surface earlier", + "status": "not_evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "/net/features/features.7/block/block.3/block.3.0/Conv_output_0", + "basis": "earliest tap over band with in-band predecessors", + "index": 8, + "neighbourhood": [ + { + "band_ratio": 0.446367729, + "index": 7, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.6/Add_output_0" + }, + "status": "pass", + "tap": "net.features.6" + }, + { + "band_ratio": 1.2498691, + "index": 8, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.7/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.7" + }, + { + "band_ratio": 1.83309478, + "index": 9, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.8/Add_output_0" + }, + "status": "fail", + "tap": "net.features.8" + } + ], + "shape": 224, + "tap": "net.features.7" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "0f5c1e94183c9903ece898f192769178a20e4556d20c0b1ef4fc23502e5893f5", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "8ce44e6b921ee910b6c36de85b86a9608df76e3c1728f56afa10f6f5dd60ae3c", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D2", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 3.10759602, + "metrics": { + "corr": 0.999689586, + "finite": true, + "max_abs": 0.757778168, + "mean_abs": 0.0324179629, + "psnr_db": 54.0300036, + "ref_absmax": 24.3847065, + "rel_max": 0.0310759602, + "scaled_max_abs": 0.0310759602 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 8, + "n_judged": 16, + "n_taps": 16, + "taps": [ + { + "band_ratio": 0.0441313312, + "index": 0, + "metrics": { + "corr": 0.999999966, + "finite": true, + "max_abs": 0.00508785248, + "mean_abs": 0.000405953078, + "psnr_db": 88.0186903, + "ref_absmax": 11.5288897, + "rel_max": 0.000441313312, + "scaled_max_abs": 0.000441313312 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0908058909, + "index": 1, + "metrics": { + "corr": 0.999999747, + "finite": true, + "max_abs": 0.172560692, + "mean_abs": 0.000883766055, + "psnr_db": 96.2909345, + "ref_absmax": 190.032486, + "rel_max": 0.000908058909, + "scaled_max_abs": 0.000908058909 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.0/features.0.2/HardSwish_output_0" + }, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_ratio": 0.0726273228, + "index": 2, + "metrics": { + "corr": 0.99999925, + "finite": true, + "max_abs": 0.0330090523, + "mean_abs": 0.0021913404, + "psnr_db": 88.346094, + "ref_absmax": 45.4499092, + "rel_max": 0.000726273228, + "scaled_max_abs": 0.000726273228 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.1/block/block.2/block.2.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.1" + }, + { + "band_ratio": 0.192673754, + "index": 3, + "metrics": { + "corr": 0.99999661, + "finite": true, + "max_abs": 0.0498961806, + "mean_abs": 0.00335121535, + "psnr_db": 78.3312341, + "ref_absmax": 25.896719, + "rel_max": 0.00192673754, + "scaled_max_abs": 0.00192673754 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.2/block/block.2/block.2.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.2" + }, + { + "band_ratio": 0.281512363, + "index": 4, + "metrics": { + "corr": 0.999992632, + "finite": true, + "max_abs": 0.0723810196, + "mean_abs": 0.00526209009, + "psnr_db": 75.4762491, + "ref_absmax": 25.7114887, + "rel_max": 0.00281512363, + "scaled_max_abs": 0.00281512363 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.3/Add_output_0" + }, + "status": "pass", + "tap": "net.features.3" + }, + { + "band_ratio": 0.476705887, + "index": 5, + "metrics": { + "corr": 0.999968504, + "finite": true, + "max_abs": 0.0815546513, + "mean_abs": 0.00506719657, + "psnr_db": 69.8638336, + "ref_absmax": 17.1079597, + "rel_max": 0.00476705887, + "scaled_max_abs": 0.00476705887 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.4/block/block.3/block.3.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.4" + }, + { + "band_ratio": 0.533482606, + "index": 6, + "metrics": { + "corr": 0.999933184, + "finite": true, + "max_abs": 0.119066, + "mean_abs": 0.00772219183, + "psnr_db": 67.9874935, + "ref_absmax": 22.3186283, + "rel_max": 0.00533482606, + "scaled_max_abs": 0.00533482606 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.5/Add_output_0" + }, + "status": "pass", + "tap": "net.features.5" + }, + { + "band_ratio": 0.813875363, + "index": 7, + "metrics": { + "corr": 0.999911881, + "finite": true, + "max_abs": 0.510870159, + "mean_abs": 0.0200473288, + "psnr_db": 67.667567, + "ref_absmax": 62.7700729, + "rel_max": 0.00813875363, + "scaled_max_abs": 0.00813875363 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.6/Add_output_0" + }, + "status": "pass", + "tap": "net.features.6" + }, + { + "band_ratio": 1.22162419, + "index": 8, + "metrics": { + "corr": 0.999899008, + "finite": true, + "max_abs": 0.252684593, + "mean_abs": 0.00816732899, + "psnr_db": 67.0492169, + "ref_absmax": 20.6843147, + "rel_max": 0.0122162419, + "scaled_max_abs": 0.0122162419 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.7/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 1.98082609, + "index": 9, + "metrics": { + "corr": 0.999808898, + "finite": true, + "max_abs": 0.385349274, + "mean_abs": 0.0114271704, + "psnr_db": 63.2680365, + "ref_absmax": 19.453968, + "rel_max": 0.0198082609, + "scaled_max_abs": 0.0198082609 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.8/Add_output_0" + }, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "wide_range", + "index": 23 + } + }, + { + "band_ratio": 3.76845229, + "index": 10, + "metrics": { + "corr": 0.999601539, + "finite": true, + "max_abs": 0.131695211, + "mean_abs": 0.00601521229, + "psnr_db": 54.3157289, + "ref_absmax": 3.49467635, + "rel_max": 0.0376845229, + "scaled_max_abs": 0.0376845229 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.9/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 4.49988479, + "index": 11, + "metrics": { + "corr": 0.999634288, + "finite": true, + "max_abs": 0.168273151, + "mean_abs": 0.00733745012, + "psnr_db": 53.8422497, + "ref_absmax": 3.73949909, + "rel_max": 0.0449988479, + "scaled_max_abs": 0.0449988479 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.10/Add_output_0" + }, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6.78471375, + "index": 12, + "metrics": { + "corr": 0.999579659, + "finite": true, + "max_abs": 0.307674885, + "mean_abs": 0.00914591375, + "psnr_db": 53.5889895, + "ref_absmax": 4.53482485, + "rel_max": 0.0678471375, + "scaled_max_abs": 0.0678471375 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.11/Add_output_0" + }, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 5.52412343, + "index": 13, + "metrics": { + "corr": 0.999361157, + "finite": true, + "max_abs": 0.557923317, + "mean_abs": 0.00560181436, + "psnr_db": 55.5456197, + "ref_absmax": 10.099762, + "rel_max": 0.0552412343, + "scaled_max_abs": 0.0552412343 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.12/features.12.2/HardSwish_output_0" + }, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 3.52594163, + "index": 14, + "metrics": { + "corr": 0.999557957, + "finite": true, + "max_abs": 0.184967697, + "mean_abs": 0.00389058194, + "psnr_db": 53.8034433, + "ref_absmax": 5.24590921, + "rel_max": 0.0352594163, + "scaled_max_abs": 0.0352594163 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 3.10759602, + "index": 15, + "metrics": { + "corr": 0.999689586, + "finite": true, + "max_abs": 0.757778168, + "mean_abs": 0.0324179629, + "psnr_db": 54.0300036, + "ref_absmax": 24.3847065, + "rel_max": 0.0310759602, + "scaled_max_abs": 0.0310759602 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 2.16154874, + "metrics": { + "corr": 0.999892736, + "finite": true, + "max_abs": 0.38962245, + "mean_abs": 0.0207615408, + "psnr_db": 57.5998751, + "ref_absmax": 18.0251522, + "rel_max": 0.0216154874, + "scaled_max_abs": 0.0216154874 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 8, + "n_judged": 16, + "n_taps": 16, + "taps": [ + { + "band_ratio": 0.0439328023, + "index": 0, + "metrics": { + "corr": 0.999999965, + "finite": true, + "max_abs": 0.00506496429, + "mean_abs": 0.000406712054, + "psnr_db": 88.0749992, + "ref_absmax": 11.5288897, + "rel_max": 0.000439328023, + "scaled_max_abs": 0.000439328023 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0867140259, + "index": 1, + "metrics": { + "corr": 0.999999726, + "finite": true, + "max_abs": 0.146580219, + "mean_abs": 0.000882941117, + "psnr_db": 95.4408227, + "ref_absmax": 169.038651, + "rel_max": 0.000867140259, + "scaled_max_abs": 0.000867140259 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.0/features.0.2/HardSwish_output_0" + }, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_ratio": 0.0745469506, + "index": 2, + "metrics": { + "corr": 0.999999152, + "finite": true, + "max_abs": 0.0332808495, + "mean_abs": 0.00218689379, + "psnr_db": 87.8352672, + "ref_absmax": 44.644146, + "rel_max": 0.000745469506, + "scaled_max_abs": 0.000745469506 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.1/block/block.2/block.2.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.1" + }, + { + "band_ratio": 0.155432319, + "index": 3, + "metrics": { + "corr": 0.999995967, + "finite": true, + "max_abs": 0.0475851297, + "mean_abs": 0.00342715191, + "psnr_db": 79.2772077, + "ref_absmax": 30.6146946, + "rel_max": 0.00155432319, + "scaled_max_abs": 0.00155432319 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.2/block/block.2/block.2.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.2" + }, + { + "band_ratio": 0.290781924, + "index": 4, + "metrics": { + "corr": 0.999991914, + "finite": true, + "max_abs": 0.0760879517, + "mean_abs": 0.00542803163, + "psnr_db": 75.1554022, + "ref_absmax": 26.1666718, + "rel_max": 0.00290781924, + "scaled_max_abs": 0.00290781924 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.3/Add_output_0" + }, + "status": "pass", + "tap": "net.features.3" + }, + { + "band_ratio": 0.4599975, + "index": 5, + "metrics": { + "corr": 0.99996609, + "finite": true, + "max_abs": 0.0897045135, + "mean_abs": 0.00541450367, + "psnr_db": 70.4385356, + "ref_absmax": 19.5010872, + "rel_max": 0.004599975, + "scaled_max_abs": 0.004599975 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.4/block/block.3/block.3.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.4" + }, + { + "band_ratio": 0.371252835, + "index": 6, + "metrics": { + "corr": 0.999930178, + "finite": true, + "max_abs": 0.111546993, + "mean_abs": 0.00825263387, + "psnr_db": 69.5801725, + "ref_absmax": 30.0460987, + "rel_max": 0.00371252835, + "scaled_max_abs": 0.00371252835 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.5/Add_output_0" + }, + "status": "pass", + "tap": "net.features.5" + }, + { + "band_ratio": 0.446367729, + "index": 7, + "metrics": { + "corr": 0.99997663, + "finite": true, + "max_abs": 0.302102566, + "mean_abs": 0.0119582523, + "psnr_db": 75.166003, + "ref_absmax": 67.6801987, + "rel_max": 0.00446367729, + "scaled_max_abs": 0.00446367729 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.6/Add_output_0" + }, + "status": "pass", + "tap": "net.features.6" + }, + { + "band_ratio": 1.2498691, + "index": 8, + "metrics": { + "corr": 0.999928619, + "finite": true, + "max_abs": 0.216041565, + "mean_abs": 0.0069844028, + "psnr_db": 67.9933993, + "ref_absmax": 17.2851353, + "rel_max": 0.012498691, + "scaled_max_abs": 0.012498691 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.7/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 1.83309478, + "index": 9, + "metrics": { + "corr": 0.999903542, + "finite": true, + "max_abs": 0.306545496, + "mean_abs": 0.0089378061, + "psnr_db": 65.732113, + "ref_absmax": 16.7228394, + "rel_max": 0.0183309478, + "scaled_max_abs": 0.0183309478 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.8/Add_output_0" + }, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 2.98509586, + "index": 10, + "metrics": { + "corr": 0.999829019, + "finite": true, + "max_abs": 0.0808291063, + "mean_abs": 0.00452532728, + "psnr_db": 56.0742489, + "ref_absmax": 2.7077558, + "rel_max": 0.0298509586, + "scaled_max_abs": 0.0298509586 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.9/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 3.52693991, + "index": 11, + "metrics": { + "corr": 0.999808855, + "finite": true, + "max_abs": 0.115872979, + "mean_abs": 0.00596741333, + "psnr_db": 55.017935, + "ref_absmax": 3.28536868, + "rel_max": 0.0352693991, + "scaled_max_abs": 0.0352693991 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.10/Add_output_0" + }, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "wide_range", + "index": 22 + } + }, + { + "band_ratio": 4.24804597, + "index": 12, + "metrics": { + "corr": 0.999801387, + "finite": true, + "max_abs": 0.168629915, + "mean_abs": 0.00716211491, + "psnr_db": 55.1986028, + "ref_absmax": 3.9695878, + "rel_max": 0.0424804597, + "scaled_max_abs": 0.0424804597 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.11/Add_output_0" + }, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 5.82480643, + "index": 13, + "metrics": { + "corr": 0.999724486, + "finite": true, + "max_abs": 0.539265156, + "mean_abs": 0.00407862978, + "psnr_db": 58.811884, + "ref_absmax": 9.25807858, + "rel_max": 0.0582480643, + "scaled_max_abs": 0.0582480643 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.12/features.12.2/HardSwish_output_0" + }, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 2.19971823, + "index": 14, + "metrics": { + "corr": 0.99981986, + "finite": true, + "max_abs": 0.114154458, + "mean_abs": 0.00278554343, + "psnr_db": 57.8018872, + "ref_absmax": 5.18950367, + "rel_max": 0.0219971823, + "scaled_max_abs": 0.0219971823 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 2.16154874, + "index": 15, + "metrics": { + "corr": 0.999892736, + "finite": true, + "max_abs": 0.38962245, + "mean_abs": 0.0207615408, + "psnr_db": 57.5998751, + "ref_absmax": 18.0251522, + "rel_max": 0.0216154874, + "scaled_max_abs": 0.0216154874 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp16", + "id": "mobilenet_v3_small__clean__onnx_fp16", + "model": "mobilenet_v3_small", + "path": "onnx", + "variant": "clean" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/mobilenet_v3_small__clean__onnx_fp32.json b/bench/verdicts_e2e_gated/mobilenet_v3_small__clean__onnx_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..44989219e262e62001e0e77e7f979122c7d41ee4 --- /dev/null +++ b/bench/verdicts_e2e_gated/mobilenet_v3_small__clean__onnx_fp32.json @@ -0,0 +1,853 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": false, + "note": null, + "status": "clear" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "status": "clear" + } + }, + "declared_precision": "fp32", + "first_divergence": null, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "7039c5bc6b9c95d567255faafe971afd335c6b99fe5ede4cb7551be581faff3b", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "92013c141a895a8f39821960c8d2d84935cbf4b8a4c39b01aacd63a03362852a", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": null, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.041847193, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000102043152, + "mean_abs": 6.72314916e-06, + "psnr_db": 128.723588, + "ref_absmax": 24.3847065, + "rel_max": 4.1847193e-06, + "scaled_max_abs": 4.1847193e-06 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 16, + "n_taps": 16, + "taps": [ + { + "band_ratio": 0.0, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 11.5288897, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.00321182749, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.10351562e-05, + "mean_abs": 1.92955669e-07, + "psnr_db": 167.753619, + "ref_absmax": 190.032486, + "rel_max": 3.21182749e-07, + "scaled_max_abs": 3.21182749e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.0/features.0.2/HardSwish_output_0" + }, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_ratio": 0.00797353056, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.6239624e-05, + "mean_abs": 1.02951828e-06, + "psnr_db": 152.906263, + "ref_absmax": 45.4499092, + "rel_max": 7.97353056e-07, + "scaled_max_abs": 7.97353056e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.1/block/block.2/block.2.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.1" + }, + { + "band_ratio": 0.0107255921, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.77757645e-05, + "mean_abs": 1.70024624e-06, + "psnr_db": 143.974771, + "ref_absmax": 25.896719, + "rel_max": 1.07255921e-06, + "scaled_max_abs": 1.07255921e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.2/block/block.2/block.2.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.2" + }, + { + "band_ratio": 0.0318522131, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.18967819e-05, + "mean_abs": 3.22833409e-06, + "psnr_db": 139.462863, + "ref_absmax": 25.7114887, + "rel_max": 3.18522131e-06, + "scaled_max_abs": 3.18522131e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.3/Add_output_0" + }, + "status": "pass", + "tap": "net.features.3" + }, + { + "band_ratio": 0.0199286515, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.40938568e-05, + "mean_abs": 2.22993283e-06, + "psnr_db": 137.575451, + "ref_absmax": 17.1079597, + "rel_max": 1.99286515e-06, + "scaled_max_abs": 1.99286515e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.4/block/block.3/block.3.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.4" + }, + { + "band_ratio": 0.0266528187, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.94854355e-05, + "mean_abs": 3.2667923e-06, + "psnr_db": 135.67943, + "ref_absmax": 22.3186283, + "rel_max": 2.66528187e-06, + "scaled_max_abs": 2.66528187e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.5/Add_output_0" + }, + "status": "pass", + "tap": "net.features.5" + }, + { + "band_ratio": 0.0150412056, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.44137573e-05, + "mean_abs": 5.05650234e-06, + "psnr_db": 142.426731, + "ref_absmax": 62.7700729, + "rel_max": 1.50412056e-06, + "scaled_max_abs": 1.50412056e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.6/Add_output_0" + }, + "status": "pass", + "tap": "net.features.6" + }, + { + "band_ratio": 0.0368849277, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.62939453e-05, + "mean_abs": 2.82185164e-06, + "psnr_db": 137.981185, + "ref_absmax": 20.6843147, + "rel_max": 3.68849277e-06, + "scaled_max_abs": 3.68849277e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.7/block/block.3/block.3.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.7" + }, + { + "band_ratio": 0.037256794, + "index": 9, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.2479248e-05, + "mean_abs": 3.62013353e-06, + "psnr_db": 135.513572, + "ref_absmax": 19.453968, + "rel_max": 3.7256794e-06, + "scaled_max_abs": 3.7256794e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.8/Add_output_0" + }, + "status": "pass", + "tap": "net.features.8" + }, + { + "band_ratio": 0.061742145, + "index": 10, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.15768814e-05, + "mean_abs": 1.50018909e-06, + "psnr_db": 128.382563, + "ref_absmax": 3.49467635, + "rel_max": 6.1742145e-06, + "scaled_max_abs": 6.1742145e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.9/block/block.3/block.3.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.9" + }, + { + "band_ratio": 0.0838402213, + "index": 11, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.13520432e-05, + "mean_abs": 1.93725326e-06, + "psnr_db": 126.949508, + "ref_absmax": 3.73949909, + "rel_max": 8.38402213e-06, + "scaled_max_abs": 8.38402213e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.10/Add_output_0" + }, + "status": "pass", + "tap": "net.features.10" + }, + { + "band_ratio": 0.0744265352, + "index": 12, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.37511301e-05, + "mean_abs": 2.31469886e-06, + "psnr_db": 127.18115, + "ref_absmax": 4.53482485, + "rel_max": 7.44265352e-06, + "scaled_max_abs": 7.44265352e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.11/Add_output_0" + }, + "status": "pass", + "tap": "net.features.11" + }, + { + "band_ratio": 0.0891139949, + "index": 13, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.00030136e-05, + "mean_abs": 1.40993971e-06, + "psnr_db": 129.415501, + "ref_absmax": 10.099762, + "rel_max": 8.91139949e-06, + "scaled_max_abs": 8.91139949e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.12/features.12.2/HardSwish_output_0" + }, + "status": "pass", + "tap": "net.features.12" + }, + { + "band_ratio": 0.0522657474, + "index": 14, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.74181366e-05, + "mean_abs": 8.55914686e-07, + "psnr_db": 128.347015, + "ref_absmax": 5.24590921, + "rel_max": 5.22657474e-06, + "scaled_max_abs": 5.22657474e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "status": "pass", + "tap": "net.avgpool" + }, + { + "band_ratio": 0.041847193, + "index": 15, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000102043152, + "mean_abs": 6.72314916e-06, + "psnr_db": 128.723588, + "ref_absmax": 24.3847065, + "rel_max": 4.1847193e-06, + "scaled_max_abs": 4.1847193e-06 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "pass", + "tap": "net.classifier" + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.0391519021, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.05718994e-05, + "mean_abs": 5.34790397e-06, + "psnr_db": 129.852431, + "ref_absmax": 18.0251522, + "rel_max": 3.91519021e-06, + "scaled_max_abs": 3.91519021e-06 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 16, + "n_taps": 16, + "taps": [ + { + "band_ratio": 0.0, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 11.5288897, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.00362482631, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.12735748e-05, + "mean_abs": 1.91186026e-07, + "psnr_db": 167.001893, + "ref_absmax": 169.038651, + "rel_max": 3.62482631e-07, + "scaled_max_abs": 3.62482631e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.0/features.0.2/HardSwish_output_0" + }, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_ratio": 0.00790382455, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.52859497e-05, + "mean_abs": 1.02470507e-06, + "psnr_db": 152.38333, + "ref_absmax": 44.644146, + "rel_max": 7.90382455e-07, + "scaled_max_abs": 7.90382455e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.1/block/block.2/block.2.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.1" + }, + { + "band_ratio": 0.00969570773, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.96831131e-05, + "mean_abs": 1.73306984e-06, + "psnr_db": 144.957341, + "ref_absmax": 30.6146946, + "rel_max": 9.69570773e-07, + "scaled_max_abs": 9.69570773e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.2/block/block.2/block.2.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.2" + }, + { + "band_ratio": 0.02888357, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.55786896e-05, + "mean_abs": 3.29638873e-06, + "psnr_db": 139.315817, + "ref_absmax": 26.1666718, + "rel_max": 2.888357e-06, + "scaled_max_abs": 2.888357e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.3/Add_output_0" + }, + "status": "pass", + "tap": "net.features.3" + }, + { + "band_ratio": 0.0177275726, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.4570694e-05, + "mean_abs": 2.3439867e-06, + "psnr_db": 138.263237, + "ref_absmax": 19.5010872, + "rel_max": 1.77275726e-06, + "scaled_max_abs": 1.77275726e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.4/block/block.3/block.3.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.4" + }, + { + "band_ratio": 0.0253129458, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.60555267e-05, + "mean_abs": 3.54574017e-06, + "psnr_db": 136.969347, + "ref_absmax": 30.0460987, + "rel_max": 2.53129458e-06, + "scaled_max_abs": 2.53129458e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.5/Add_output_0" + }, + "status": "pass", + "tap": "net.features.5" + }, + { + "band_ratio": 0.0159931615, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000108242035, + "mean_abs": 5.13545034e-06, + "psnr_db": 143.212219, + "ref_absmax": 67.6801987, + "rel_max": 1.59931615e-06, + "scaled_max_abs": 1.59931615e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.6/Add_output_0" + }, + "status": "pass", + "tap": "net.features.6" + }, + { + "band_ratio": 0.0380694318, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.58035278e-05, + "mean_abs": 2.82488155e-06, + "psnr_db": 136.663509, + "ref_absmax": 17.2851353, + "rel_max": 3.80694318e-06, + "scaled_max_abs": 3.80694318e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.7/block/block.3/block.3.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.7" + }, + { + "band_ratio": 0.0399197772, + "index": 9, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.67572021e-05, + "mean_abs": 3.50337393e-06, + "psnr_db": 134.638205, + "ref_absmax": 16.7228394, + "rel_max": 3.99197772e-06, + "scaled_max_abs": 3.99197772e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.8/Add_output_0" + }, + "status": "pass", + "tap": "net.features.8" + }, + { + "band_ratio": 0.0777043468, + "index": 10, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.10404396e-05, + "mean_abs": 1.33967606e-06, + "psnr_db": 127.699828, + "ref_absmax": 2.7077558, + "rel_max": 7.77043468e-06, + "scaled_max_abs": 7.77043468e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.9/block/block.3/block.3.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.9" + }, + { + "band_ratio": 0.0888980166, + "index": 11, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.92062759e-05, + "mean_abs": 1.6905562e-06, + "psnr_db": 127.096492, + "ref_absmax": 3.28536868, + "rel_max": 8.88980166e-06, + "scaled_max_abs": 8.88980166e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.10/Add_output_0" + }, + "status": "pass", + "tap": "net.features.10" + }, + { + "band_ratio": 0.0888907148, + "index": 12, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.52859497e-05, + "mean_abs": 2.00946191e-06, + "psnr_db": 127.353822, + "ref_absmax": 3.9695878, + "rel_max": 8.88907148e-06, + "scaled_max_abs": 8.88907148e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.11/Add_output_0" + }, + "status": "pass", + "tap": "net.features.11" + }, + { + "band_ratio": 0.117173831, + "index": 13, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000108480453, + "mean_abs": 1.13273755e-06, + "psnr_db": 131.272068, + "ref_absmax": 9.25807858, + "rel_max": 1.17173831e-05, + "scaled_max_abs": 1.17173831e-05 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.12/features.12.2/HardSwish_output_0" + }, + "status": "pass", + "tap": "net.features.12" + }, + { + "band_ratio": 0.0447939012, + "index": 14, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.32458115e-05, + "mean_abs": 6.39293939e-07, + "psnr_db": 131.992374, + "ref_absmax": 5.18950367, + "rel_max": 4.47939012e-06, + "scaled_max_abs": 4.47939012e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "status": "pass", + "tap": "net.avgpool" + }, + { + "band_ratio": 0.0391519021, + "index": 15, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.05718994e-05, + "mean_abs": 5.34790397e-06, + "psnr_db": 129.852431, + "ref_absmax": 18.0251522, + "rel_max": 3.91519021e-06, + "scaled_max_abs": 3.91519021e-06 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "pass", + "tap": "net.classifier" + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp32", + "id": "mobilenet_v3_small__clean__onnx_fp32", + "model": "mobilenet_v3_small", + "path": "onnx", + "variant": "clean" + }, + "verdict": "PASS" +} diff --git a/bench/verdicts_e2e_gated/mobilenet_v3_small__drop_normalize__coreml_fp16.json b/bench/verdicts_e2e_gated/mobilenet_v3_small__drop_normalize__coreml_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..612a906c09517d58ecaaf5e8fe41682010dd9e3f --- /dev/null +++ b/bench/verdicts_e2e_gated/mobilenet_v3_small__drop_normalize__coreml_fp16.json @@ -0,0 +1,1040 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "net.features.0", + "explained_by": "no_normalize", + "nominal_band_ratio": 77.8791492, + "results": [ + { + "band_ratio": 80.8620852, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 95.0245384, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 103.199634, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 98.2558418, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 0.177806468, + "explains": true, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [ + "inputs[0]: dtype float16 (declared float32)", + "outputs[0]: dtype float16 (declared float32)" + ], + "status": "precision_narrowing" + }, + "status": "flag" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": null, + "basis": "interface hypothesis 'no_normalize' explains the first over-band tap (net.features.0)", + "index": 0, + "neighbourhood": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": null + }, + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 77.9821065, + "index": 1, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5_cast_fp16" + }, + "status": "fail", + "tap": "net.features.0" + } + ], + "observed_first_over_band": { + "index": 1, + "tap": "net.features.0" + }, + "shape": 224, + "tap": "normalize" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "9a305e089172b875a9e107890ca60f8d63449cbf483b8c37370aedf488e7b55e", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "bd9034d1b72788bcc98e6483b139655afd3f94ec88650933a0f3713aba4a7c74", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + }, + { + "item": "tap normalize @ 224", + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)" + }, + { + "item": "tap normalize @ 192", + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D3", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.1875, + "band_ratio": 98.9822763, + "metrics": { + "corr": 0.437343732, + "finite": true, + "max_abs": 24.1365376, + "mean_abs": 1.44233367, + "psnr_db": 22.6913901, + "ref_absmax": 24.3847065, + "rel_max": 0.989822763, + "scaled_max_abs": 0.989822763 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 1, + "n_judged": 15, + "n_taps": 16, + "taps": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": null + }, + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)", + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 77.7834038, + "index": 1, + "metrics": { + "corr": 0.702276453, + "finite": true, + "max_abs": 147.813736, + "mean_abs": 0.627286112, + "psnr_db": 35.8097606, + "ref_absmax": 190.032486, + "rel_max": 0.777834038, + "scaled_max_abs": 0.777834038 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5_cast_fp16" + }, + "status": "fail", + "tap": "net.features.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 79.2869498, + "index": 2, + "metrics": { + "corr": 0.757211232, + "finite": true, + "max_abs": 36.0358467, + "mean_abs": 1.01676673, + "psnr_db": 32.3830544, + "ref_absmax": 45.4499092, + "rel_max": 0.792869498, + "scaled_max_abs": 0.792869498 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_25_cast_fp16" + }, + "status": "fail", + "tap": "net.features.1", + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_ratio": 63.5571595, + "index": 3, + "metrics": { + "corr": 0.487533218, + "finite": true, + "max_abs": 16.459219, + "mean_abs": 1.1862307, + "psnr_db": 27.7982686, + "ref_absmax": 25.896719, + "rel_max": 0.635571595, + "scaled_max_abs": 0.635571595 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_41_cast_fp16" + }, + "status": "fail", + "tap": "net.features.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 79.3988008, + "index": 4, + "metrics": { + "corr": 0.757172889, + "finite": true, + "max_abs": 20.4146137, + "mean_abs": 0.969749426, + "psnr_db": 30.6151284, + "ref_absmax": 25.7114887, + "rel_max": 0.793988008, + "scaled_max_abs": 0.793988008 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_57_cast_fp16" + }, + "status": "fail", + "tap": "net.features.3", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 82.3303601, + "index": 5, + "metrics": { + "corr": 0.634899845, + "finite": true, + "max_abs": 14.0850449, + "mean_abs": 0.640295076, + "psnr_db": 30.1154403, + "ref_absmax": 17.1079597, + "rel_max": 0.823303601, + "scaled_max_abs": 0.823303601 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_83_cast_fp16" + }, + "status": "fail", + "tap": "net.features.4", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 102.852858, + "index": 6, + "metrics": { + "corr": 0.533277526, + "finite": true, + "max_abs": 22.9553471, + "mean_abs": 0.694486943, + "psnr_db": 30.2980916, + "ref_absmax": 22.3186283, + "rel_max": 1.02852858, + "scaled_max_abs": 1.02852858 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_109_cast_fp16" + }, + "status": "fail", + "tap": "net.features.5", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 101.524662, + "index": 7, + "metrics": { + "corr": 0.245046791, + "finite": true, + "max_abs": 63.7271042, + "mean_abs": 1.38513353, + "psnr_db": 30.2925332, + "ref_absmax": 62.7700729, + "rel_max": 1.01524662, + "scaled_max_abs": 1.01524662 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_135_cast_fp16" + }, + "status": "fail", + "tap": "net.features.6", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 99.3897758, + "index": 8, + "metrics": { + "corr": 0.491402787, + "finite": true, + "max_abs": 20.558094, + "mean_abs": 0.562129326, + "psnr_db": 31.104784, + "ref_absmax": 20.6843147, + "rel_max": 0.993897758, + "scaled_max_abs": 0.993897758 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_161_cast_fp16" + }, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 100.691888, + "index": 9, + "metrics": { + "corr": 0.521353272, + "finite": true, + "max_abs": 19.5885677, + "mean_abs": 0.646096171, + "psnr_db": 30.1865966, + "ref_absmax": 19.453968, + "rel_max": 1.00691888, + "scaled_max_abs": 1.00691888 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_187_cast_fp16" + }, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 108.124802, + "index": 10, + "metrics": { + "corr": 0.653663921, + "finite": true, + "max_abs": 3.7786119, + "mean_abs": 0.243817784, + "psnr_db": 25.4308174, + "ref_absmax": 3.49467635, + "rel_max": 1.08124802, + "scaled_max_abs": 1.08124802 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_213_cast_fp16" + }, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 115.321721, + "index": 11, + "metrics": { + "corr": 0.663973436, + "finite": true, + "max_abs": 4.3124547, + "mean_abs": 0.302098103, + "psnr_db": 24.6216301, + "ref_absmax": 3.73949909, + "rel_max": 1.15321721, + "scaled_max_abs": 1.15321721 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_239_cast_fp16" + }, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 112.062911, + "index": 12, + "metrics": { + "corr": 0.661921338, + "finite": true, + "max_abs": 5.08185673, + "mean_abs": 0.359211623, + "psnr_db": 25.0165645, + "ref_absmax": 4.53482485, + "rel_max": 1.12062911, + "scaled_max_abs": 1.12062911 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_265_cast_fp16" + }, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 102.110295, + "index": 13, + "metrics": { + "corr": 0.560891461, + "finite": true, + "max_abs": 10.3128967, + "mean_abs": 0.205862969, + "psnr_db": 27.9279578, + "ref_absmax": 10.099762, + "rel_max": 1.02110295, + "scaled_max_abs": 1.02110295 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_271_cast_fp16" + }, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 103.390384, + "index": 14, + "metrics": { + "corr": 0.628929996, + "finite": true, + "max_abs": 5.42376566, + "mean_abs": 0.150943495, + "psnr_db": 25.2123621, + "ref_absmax": 5.24590921, + "rel_max": 1.03390384, + "scaled_max_abs": 1.03390384 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 98.9822763, + "index": 15, + "metrics": { + "corr": 0.437343732, + "finite": true, + "max_abs": 24.1365376, + "mean_abs": 1.44233367, + "psnr_db": 22.6913901, + "ref_absmax": 24.3847065, + "rel_max": 0.989822763, + "scaled_max_abs": 0.989822763 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.3125, + "band_ratio": 99.6234645, + "metrics": { + "corr": 0.400275392, + "finite": true, + "max_abs": 17.9572811, + "mean_abs": 1.37869513, + "psnr_db": 21.1014494, + "ref_absmax": 18.0251522, + "rel_max": 0.996234645, + "scaled_max_abs": 0.996234645 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 1, + "n_judged": 15, + "n_taps": 16, + "taps": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": null + }, + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)", + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 77.9821065, + "index": 1, + "metrics": { + "corr": 0.695791165, + "finite": true, + "max_abs": 131.819901, + "mean_abs": 0.599358725, + "psnr_db": 35.3071614, + "ref_absmax": 169.038651, + "rel_max": 0.779821065, + "scaled_max_abs": 0.779821065 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5_cast_fp16" + }, + "status": "fail", + "tap": "net.features.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 79.1581017, + "index": 2, + "metrics": { + "corr": 0.745979063, + "finite": true, + "max_abs": 35.3394585, + "mean_abs": 0.958257919, + "psnr_db": 32.3376791, + "ref_absmax": 44.644146, + "rel_max": 0.791581017, + "scaled_max_abs": 0.791581017 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_25_cast_fp16" + }, + "status": "fail", + "tap": "net.features.1", + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 66.5448647, + "index": 3, + "metrics": { + "corr": 0.473717205, + "finite": true, + "max_abs": 20.3725071, + "mean_abs": 1.12461533, + "psnr_db": 29.4445243, + "ref_absmax": 30.6146946, + "rel_max": 0.665448647, + "scaled_max_abs": 0.665448647 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_41_cast_fp16" + }, + "status": "fail", + "tap": "net.features.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 79.7613463, + "index": 4, + "metrics": { + "corr": 0.768305285, + "finite": true, + "max_abs": 20.8708897, + "mean_abs": 0.938899579, + "psnr_db": 30.8506274, + "ref_absmax": 26.1666718, + "rel_max": 0.797613463, + "scaled_max_abs": 0.797613463 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_57_cast_fp16" + }, + "status": "fail", + "tap": "net.features.3", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 78.6269929, + "index": 5, + "metrics": { + "corr": 0.660528908, + "finite": true, + "max_abs": 15.3331184, + "mean_abs": 0.624710034, + "psnr_db": 31.290117, + "ref_absmax": 19.5010872, + "rel_max": 0.786269929, + "scaled_max_abs": 0.786269929 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_83_cast_fp16" + }, + "status": "fail", + "tap": "net.features.4", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 98.1213763, + "index": 6, + "metrics": { + "corr": 0.564611264, + "finite": true, + "max_abs": 29.4816456, + "mean_abs": 0.694013218, + "psnr_db": 32.3558557, + "ref_absmax": 30.0460987, + "rel_max": 0.981213763, + "scaled_max_abs": 0.981213763 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_109_cast_fp16" + }, + "status": "fail", + "tap": "net.features.5", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 100.631993, + "index": 7, + "metrics": { + "corr": 0.259792483, + "finite": true, + "max_abs": 68.107933, + "mean_abs": 1.33925836, + "psnr_db": 31.9682904, + "ref_absmax": 67.6801987, + "rel_max": 1.00631993, + "scaled_max_abs": 1.00631993 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_135_cast_fp16" + }, + "status": "fail", + "tap": "net.features.6", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 103.263946, + "index": 8, + "metrics": { + "corr": 0.526607038, + "finite": true, + "max_abs": 17.8493128, + "mean_abs": 0.542299503, + "psnr_db": 30.7085128, + "ref_absmax": 17.2851353, + "rel_max": 1.03263946, + "scaled_max_abs": 1.03263946 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_161_cast_fp16" + }, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 106.980378, + "index": 9, + "metrics": { + "corr": 0.553935201, + "finite": true, + "max_abs": 17.8901567, + "mean_abs": 0.617533273, + "psnr_db": 29.839287, + "ref_absmax": 16.7228394, + "rel_max": 1.06980378, + "scaled_max_abs": 1.06980378 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_187_cast_fp16" + }, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 116.179383, + "index": 10, + "metrics": { + "corr": 0.676129505, + "finite": true, + "max_abs": 3.145854, + "mean_abs": 0.234162391, + "psnr_db": 23.7211665, + "ref_absmax": 2.7077558, + "rel_max": 1.16179383, + "scaled_max_abs": 1.16179383 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_213_cast_fp16" + }, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 119.972365, + "index": 11, + "metrics": { + "corr": 0.671431073, + "finite": true, + "max_abs": 3.94153452, + "mean_abs": 0.30318898, + "psnr_db": 23.0987811, + "ref_absmax": 3.28536868, + "rel_max": 1.19972365, + "scaled_max_abs": 1.19972365 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_239_cast_fp16" + }, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 116.576389, + "index": 12, + "metrics": { + "corr": 0.650128514, + "finite": true, + "max_abs": 4.6276021, + "mean_abs": 0.365353622, + "psnr_db": 23.2314531, + "ref_absmax": 3.9695878, + "rel_max": 1.16576389, + "scaled_max_abs": 1.16576389 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_265_cast_fp16" + }, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 103.230392, + "index": 13, + "metrics": { + "corr": 0.547949764, + "finite": true, + "max_abs": 9.55715084, + "mean_abs": 0.199268599, + "psnr_db": 27.4491361, + "ref_absmax": 9.25807858, + "rel_max": 1.03230392, + "scaled_max_abs": 1.03230392 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_271_cast_fp16" + }, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 102.540434, + "index": 14, + "metrics": { + "corr": 0.611423489, + "finite": true, + "max_abs": 5.32133961, + "mean_abs": 0.146403475, + "psnr_db": 25.2291289, + "ref_absmax": 5.18950367, + "rel_max": 1.02540434, + "scaled_max_abs": 1.02540434 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 99.6234645, + "index": 15, + "metrics": { + "corr": 0.400275392, + "finite": true, + "max_abs": 17.9572811, + "mean_abs": 1.37869513, + "psnr_db": 21.1014494, + "ref_absmax": 18.0251522, + "rel_max": 0.996234645, + "scaled_max_abs": 0.996234645 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp16", + "id": "mobilenet_v3_small__drop_normalize__coreml_fp16", + "model": "mobilenet_v3_small", + "path": "coreml", + "variant": "drop_normalize" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/mobilenet_v3_small__drop_normalize__coreml_fp32.json b/bench/verdicts_e2e_gated/mobilenet_v3_small__drop_normalize__coreml_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..a30a5c4cde1e6f0f4cad49292f83e9ecfdf2f1cc --- /dev/null +++ b/bench/verdicts_e2e_gated/mobilenet_v3_small__drop_normalize__coreml_fp32.json @@ -0,0 +1,1037 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "net.features.0", + "explained_by": "no_normalize", + "nominal_band_ratio": 7789.09802, + "results": [ + { + "band_ratio": 8086.99315, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 9502.71994, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 10314.4657, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 9825.58418, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 0.00410638494, + "explains": true, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "flag" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": null, + "basis": "interface hypothesis 'no_normalize' explains the first over-band tap (net.features.0)", + "index": 0, + "neighbourhood": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": null + }, + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 7791.3654, + "index": 1, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5" + }, + "status": "fail", + "tap": "net.features.0" + } + ], + "observed_first_over_band": { + "index": 1, + "tap": "net.features.0" + }, + "shape": 224, + "tap": "normalize" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "d5d3e04c4fae653cdffc66b391eb1e49f5f503472c0a2400ef243769abc9be5a", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "e70e2f9457c69af2df7ba4fdd30fd3900db5f662d70258e43cee0c311c84d0d7", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + }, + { + "item": "tap normalize @ 224", + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)" + }, + { + "item": "tap normalize @ 192", + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D3", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.1875, + "band_ratio": 9897.13093, + "metrics": { + "corr": 0.43682885, + "finite": true, + "max_abs": 24.1338633, + "mean_abs": 1.44712622, + "psnr_db": 22.6798251, + "ref_absmax": 24.3847065, + "rel_max": 0.989713093, + "scaled_max_abs": 0.989713093 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 1, + "n_judged": 15, + "n_taps": 16, + "taps": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": null + }, + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)", + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 7781.88744, + "index": 1, + "metrics": { + "corr": 0.702590468, + "finite": true, + "max_abs": 147.881142, + "mean_abs": 0.62712251, + "psnr_db": 35.8115164, + "ref_absmax": 190.032486, + "rel_max": 0.778188744, + "scaled_max_abs": 0.778188744 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5" + }, + "status": "fail", + "tap": "net.features.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7927.88, + "index": 2, + "metrics": { + "corr": 0.757841104, + "finite": true, + "max_abs": 36.0321426, + "mean_abs": 1.01649231, + "psnr_db": 32.3851158, + "ref_absmax": 45.4499092, + "rel_max": 0.792788, + "scaled_max_abs": 0.792788 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_25" + }, + "status": "fail", + "tap": "net.features.1", + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_ratio": 6340.68428, + "index": 3, + "metrics": { + "corr": 0.487555814, + "finite": true, + "max_abs": 16.4202919, + "mean_abs": 1.18701188, + "psnr_db": 27.7989401, + "ref_absmax": 25.896719, + "rel_max": 0.634068428, + "scaled_max_abs": 0.634068428 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_41" + }, + "status": "fail", + "tap": "net.features.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7939.54663, + "index": 4, + "metrics": { + "corr": 0.757383241, + "finite": true, + "max_abs": 20.4137564, + "mean_abs": 0.969729955, + "psnr_db": 30.6223698, + "ref_absmax": 25.7114887, + "rel_max": 0.793954663, + "scaled_max_abs": 0.793954663 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_57" + }, + "status": "fail", + "tap": "net.features.3", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 8243.36783, + "index": 5, + "metrics": { + "corr": 0.635632909, + "finite": true, + "max_abs": 14.1027205, + "mean_abs": 0.639348272, + "psnr_db": 30.117762, + "ref_absmax": 17.1079597, + "rel_max": 0.824336783, + "scaled_max_abs": 0.824336783 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_83" + }, + "status": "fail", + "tap": "net.features.4", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10288.0909, + "index": 6, + "metrics": { + "corr": 0.528693849, + "finite": true, + "max_abs": 22.9616076, + "mean_abs": 0.700228436, + "psnr_db": 30.2221524, + "ref_absmax": 22.3186283, + "rel_max": 1.02880909, + "scaled_max_abs": 1.02880909 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_109" + }, + "status": "fail", + "tap": "net.features.5", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 10159.1511, + "index": 7, + "metrics": { + "corr": 0.242992574, + "finite": true, + "max_abs": 63.7690656, + "mean_abs": 1.39936238, + "psnr_db": 30.2686857, + "ref_absmax": 62.7700729, + "rel_max": 1.01591511, + "scaled_max_abs": 1.01591511 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_135" + }, + "status": "fail", + "tap": "net.features.6", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9945.11058, + "index": 8, + "metrics": { + "corr": 0.488776206, + "finite": true, + "max_abs": 20.5707797, + "mean_abs": 0.564172753, + "psnr_db": 31.0831957, + "ref_absmax": 20.6843147, + "rel_max": 0.994511058, + "scaled_max_abs": 0.994511058 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_161" + }, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10054.3281, + "index": 9, + "metrics": { + "corr": 0.52004565, + "finite": true, + "max_abs": 19.5596578, + "mean_abs": 0.647051407, + "psnr_db": 30.1753944, + "ref_absmax": 19.453968, + "rel_max": 1.00543281, + "scaled_max_abs": 1.00543281 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_187" + }, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10811.8892, + "index": 10, + "metrics": { + "corr": 0.650956881, + "finite": true, + "max_abs": 3.77840534, + "mean_abs": 0.244087375, + "psnr_db": 25.4105797, + "ref_absmax": 3.49467635, + "rel_max": 1.08118892, + "scaled_max_abs": 1.08118892 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_213" + }, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 11544.4204, + "index": 11, + "metrics": { + "corr": 0.661353056, + "finite": true, + "max_abs": 4.31703496, + "mean_abs": 0.302577491, + "psnr_db": 24.6012335, + "ref_absmax": 3.73949909, + "rel_max": 1.15444204, + "scaled_max_abs": 1.15444204 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_239" + }, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 11173.6051, + "index": 12, + "metrics": { + "corr": 0.658324378, + "finite": true, + "max_abs": 5.06703418, + "mean_abs": 0.360629213, + "psnr_db": 24.9819199, + "ref_absmax": 4.53482485, + "rel_max": 1.11736051, + "scaled_max_abs": 1.11736051 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_265" + }, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10203.7635, + "index": 13, + "metrics": { + "corr": 0.558436247, + "finite": true, + "max_abs": 10.3055582, + "mean_abs": 0.206618669, + "psnr_db": 27.9103432, + "ref_absmax": 10.099762, + "rel_max": 1.02037635, + "scaled_max_abs": 1.02037635 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_271" + }, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10333.0719, + "index": 14, + "metrics": { + "corr": 0.625404817, + "finite": true, + "max_abs": 5.42063572, + "mean_abs": 0.151659554, + "psnr_db": 25.1775202, + "ref_absmax": 5.24590921, + "rel_max": 1.03330719, + "scaled_max_abs": 1.03330719 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9897.13093, + "index": 15, + "metrics": { + "corr": 0.43682885, + "finite": true, + "max_abs": 24.1338633, + "mean_abs": 1.44712622, + "psnr_db": 22.6798251, + "ref_absmax": 24.3847065, + "rel_max": 0.989713093, + "scaled_max_abs": 0.989713093 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.3125, + "band_ratio": 9962.78246, + "metrics": { + "corr": 0.398940282, + "finite": true, + "max_abs": 17.958067, + "mean_abs": 1.37885743, + "psnr_db": 21.0934397, + "ref_absmax": 18.0251522, + "rel_max": 0.996278246, + "scaled_max_abs": 0.996278246 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 1, + "n_judged": 15, + "n_taps": 16, + "taps": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": null + }, + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)", + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 7791.3654, + "index": 1, + "metrics": { + "corr": 0.696107603, + "finite": true, + "max_abs": 131.704189, + "mean_abs": 0.599192676, + "psnr_db": 35.3090087, + "ref_absmax": 169.038651, + "rel_max": 0.77913654, + "scaled_max_abs": 0.77913654 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5" + }, + "status": "fail", + "tap": "net.features.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7920.54178, + "index": 2, + "metrics": { + "corr": 0.746746287, + "finite": true, + "max_abs": 35.3605824, + "mean_abs": 0.957869449, + "psnr_db": 32.3403427, + "ref_absmax": 44.644146, + "rel_max": 0.792054178, + "scaled_max_abs": 0.792054178 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_25" + }, + "status": "fail", + "tap": "net.features.1", + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 6644.51227, + "index": 3, + "metrics": { + "corr": 0.473915872, + "finite": true, + "max_abs": 20.3419714, + "mean_abs": 1.1251762, + "psnr_db": 29.4457717, + "ref_absmax": 30.6146946, + "rel_max": 0.664451227, + "scaled_max_abs": 0.664451227 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_41" + }, + "status": "fail", + "tap": "net.features.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7984.0459, + "index": 4, + "metrics": { + "corr": 0.768612123, + "finite": true, + "max_abs": 20.8915908, + "mean_abs": 0.938666204, + "psnr_db": 30.8596482, + "ref_absmax": 26.1666718, + "rel_max": 0.79840459, + "scaled_max_abs": 0.79840459 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_57" + }, + "status": "fail", + "tap": "net.features.3", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7883.97873, + "index": 5, + "metrics": { + "corr": 0.661730232, + "finite": true, + "max_abs": 15.3746157, + "mean_abs": 0.62340969, + "psnr_db": 31.297839, + "ref_absmax": 19.5010872, + "rel_max": 0.788397873, + "scaled_max_abs": 0.788397873 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_83" + }, + "status": "fail", + "tap": "net.features.4", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9816.05265, + "index": 6, + "metrics": { + "corr": 0.561158376, + "finite": true, + "max_abs": 29.4934087, + "mean_abs": 0.69903436, + "psnr_db": 32.2864542, + "ref_absmax": 30.0460987, + "rel_max": 0.981605265, + "scaled_max_abs": 0.981605265 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_109" + }, + "status": "fail", + "tap": "net.features.5", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10062.899, + "index": 7, + "metrics": { + "corr": 0.258386023, + "finite": true, + "max_abs": 68.1059004, + "mean_abs": 1.35223628, + "psnr_db": 31.9399302, + "ref_absmax": 67.6801987, + "rel_max": 1.0062899, + "scaled_max_abs": 1.0062899 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_135" + }, + "status": "fail", + "tap": "net.features.6", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10359.6484, + "index": 8, + "metrics": { + "corr": 0.524392797, + "finite": true, + "max_abs": 17.9067924, + "mean_abs": 0.543504644, + "psnr_db": 30.686668, + "ref_absmax": 17.2851353, + "rel_max": 1.03596484, + "scaled_max_abs": 1.03596484 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_161" + }, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10736.6496, + "index": 9, + "metrics": { + "corr": 0.553063378, + "finite": true, + "max_abs": 17.9547267, + "mean_abs": 0.617731635, + "psnr_db": 29.8295353, + "ref_absmax": 16.7228394, + "rel_max": 1.07366496, + "scaled_max_abs": 1.07366496 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_187" + }, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 11625.0909, + "index": 10, + "metrics": { + "corr": 0.674951602, + "finite": true, + "max_abs": 3.14779073, + "mean_abs": 0.234005208, + "psnr_db": 23.7175568, + "ref_absmax": 2.7077558, + "rel_max": 1.16250909, + "scaled_max_abs": 1.16250909 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_213" + }, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 12067.8274, + "index": 11, + "metrics": { + "corr": 0.67206052, + "finite": true, + "max_abs": 3.96472621, + "mean_abs": 0.302320834, + "psnr_db": 23.1176937, + "ref_absmax": 3.28536868, + "rel_max": 1.20678274, + "scaled_max_abs": 1.20678274 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_239" + }, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 11725.9526, + "index": 12, + "metrics": { + "corr": 0.648812277, + "finite": true, + "max_abs": 4.65471983, + "mean_abs": 0.365423924, + "psnr_db": 23.225073, + "ref_absmax": 3.9695878, + "rel_max": 1.17259526, + "scaled_max_abs": 1.17259526 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_265" + }, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 10333.0827, + "index": 13, + "metrics": { + "corr": 0.548142023, + "finite": true, + "max_abs": 9.56644914, + "mean_abs": 0.1993211, + "psnr_db": 27.4584356, + "ref_absmax": 9.25807858, + "rel_max": 1.03330827, + "scaled_max_abs": 1.03330827 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_271" + }, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 10259.1813, + "index": 14, + "metrics": { + "corr": 0.609942173, + "finite": true, + "max_abs": 5.32400592, + "mean_abs": 0.146793226, + "psnr_db": 25.2147734, + "ref_absmax": 5.18950367, + "rel_max": 1.02591813, + "scaled_max_abs": 1.02591813 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9962.78246, + "index": 15, + "metrics": { + "corr": 0.398940282, + "finite": true, + "max_abs": 17.958067, + "mean_abs": 1.37885743, + "psnr_db": 21.0934397, + "ref_absmax": 18.0251522, + "rel_max": 0.996278246, + "scaled_max_abs": 0.996278246 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp32", + "id": "mobilenet_v3_small__drop_normalize__coreml_fp32", + "model": "mobilenet_v3_small", + "path": "coreml", + "variant": "drop_normalize" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/mobilenet_v3_small__drop_normalize__litert_fp16.json b/bench/verdicts_e2e_gated/mobilenet_v3_small__drop_normalize__litert_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..7a729c6bd857a433eb13d99797b8eeeecf11fe74 --- /dev/null +++ b/bench/verdicts_e2e_gated/mobilenet_v3_small__drop_normalize__litert_fp16.json @@ -0,0 +1,1192 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "net.features.0", + "explained_by": "no_normalize", + "nominal_band_ratio": 77.8944821, + "results": [ + { + "band_ratio": 80.8714235, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 95.027987, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 103.128385, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 98.2558418, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 0.0595953779, + "explains": true, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "flag" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 0.00233389292, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000168800354, + "mean_abs": 9.28217727e-06, + "psnr_db": 117.610056, + "ref_absmax": 7.23256636, + "rel_max": 2.33389292e-05, + "scaled_max_abs": 2.33389292e-05 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 114, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 1, + "n_ops_total": 167, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": null, + "basis": "interface hypothesis 'no_normalize' explains the first over-band tap (net.features.0)", + "index": 0, + "neighbourhood": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": null + }, + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 77.921645, + "index": 1, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_0/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "fail", + "tap": "net.features.0" + } + ], + "observed_first_over_band": { + "index": 1, + "tap": "net.features.0" + }, + "shape": 224, + "tap": "normalize" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "45ac314c859f54aa3ec75da4acea83fdf52740b8ad2571c8b0ffbf71fbfb5f3e", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "4efb8c47d8f5cad43ca24434824c9983b079f80b5c0a03474adb5e37c1ef6cdc", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "tap normalize @ 224", + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)" + }, + { + "item": "tap normalize @ 192", + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D3", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.1875, + "band_ratio": 98.9844274, + "metrics": { + "corr": 0.435444235, + "finite": true, + "max_abs": 24.1370621, + "mean_abs": 1.44886368, + "psnr_db": 22.6745118, + "ref_absmax": 24.3847065, + "rel_max": 0.989844274, + "scaled_max_abs": 0.989844274 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 1, + "n_judged": 15, + "n_taps": 16, + "taps": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": null + }, + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)", + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 77.8220522, + "index": 1, + "metrics": { + "corr": 0.702320336, + "finite": true, + "max_abs": 147.88718, + "mean_abs": 0.627213962, + "psnr_db": 35.8096921, + "ref_absmax": 190.032486, + "rel_max": 0.778220522, + "scaled_max_abs": 0.778220522 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_0/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "fail", + "tap": "net.features.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 79.2894825, + "index": 2, + "metrics": { + "corr": 0.757503949, + "finite": true, + "max_abs": 36.0369978, + "mean_abs": 1.01655061, + "psnr_db": 32.3836824, + "ref_absmax": 45.4499092, + "rel_max": 0.792894825, + "scaled_max_abs": 0.792894825 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_1/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.1", + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_ratio": 63.3964616, + "index": 3, + "metrics": { + "corr": 0.487390986, + "finite": true, + "max_abs": 16.4176035, + "mean_abs": 1.18673324, + "psnr_db": 27.7979182, + "ref_absmax": 25.896719, + "rel_max": 0.633964616, + "scaled_max_abs": 0.633964616 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_2/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 79.3799788, + "index": 4, + "metrics": { + "corr": 0.757405821, + "finite": true, + "max_abs": 20.4097743, + "mean_abs": 0.969275067, + "psnr_db": 30.6215069, + "ref_absmax": 25.7114887, + "rel_max": 0.793799788, + "scaled_max_abs": 0.793799788 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_3;" + }, + "status": "fail", + "tap": "net.features.3", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 82.3909571, + "index": 5, + "metrics": { + "corr": 0.635594548, + "finite": true, + "max_abs": 14.0954118, + "mean_abs": 0.639511826, + "psnr_db": 30.118603, + "ref_absmax": 17.1079597, + "rel_max": 0.823909571, + "scaled_max_abs": 0.823909571 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_4/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.4", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 102.890814, + "index": 6, + "metrics": { + "corr": 0.528717613, + "finite": true, + "max_abs": 22.9638183, + "mean_abs": 0.699674851, + "psnr_db": 30.2279682, + "ref_absmax": 22.3186283, + "rel_max": 1.02890814, + "scaled_max_abs": 1.02890814 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_5;" + }, + "status": "fail", + "tap": "net.features.5", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 101.591282, + "index": 7, + "metrics": { + "corr": 0.243376632, + "finite": true, + "max_abs": 63.7689221, + "mean_abs": 1.3956702, + "psnr_db": 30.2742345, + "ref_absmax": 62.7700729, + "rel_max": 1.01591282, + "scaled_max_abs": 1.01591282 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_6;" + }, + "status": "fail", + "tap": "net.features.6", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 99.4285268, + "index": 8, + "metrics": { + "corr": 0.489483758, + "finite": true, + "max_abs": 20.5661094, + "mean_abs": 0.563405774, + "psnr_db": 31.0901687, + "ref_absmax": 20.6843147, + "rel_max": 0.994285268, + "scaled_max_abs": 0.994285268 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_7/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 100.549052, + "index": 9, + "metrics": { + "corr": 0.520689883, + "finite": true, + "max_abs": 19.5607805, + "mean_abs": 0.646303207, + "psnr_db": 30.1810477, + "ref_absmax": 19.453968, + "rel_max": 1.00549052, + "scaled_max_abs": 1.00549052 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_8;" + }, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 108.118376, + "index": 10, + "metrics": { + "corr": 0.650986329, + "finite": true, + "max_abs": 3.77838731, + "mean_abs": 0.244147136, + "psnr_db": 25.4095975, + "ref_absmax": 3.49467635, + "rel_max": 1.08118376, + "scaled_max_abs": 1.08118376 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_9/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 115.425794, + "index": 11, + "metrics": { + "corr": 0.66142977, + "finite": true, + "max_abs": 4.31634653, + "mean_abs": 0.302662567, + "psnr_db": 24.6000168, + "ref_absmax": 3.73949909, + "rel_max": 1.15425794, + "scaled_max_abs": 1.15425794 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_10;" + }, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 111.722545, + "index": 12, + "metrics": { + "corr": 0.658750571, + "finite": true, + "max_abs": 5.06642175, + "mean_abs": 0.360479837, + "psnr_db": 24.9862231, + "ref_absmax": 4.53482485, + "rel_max": 1.11722545, + "scaled_max_abs": 1.11722545 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_11;" + }, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 102.047024, + "index": 13, + "metrics": { + "corr": 0.558467416, + "finite": true, + "max_abs": 10.3065065, + "mean_abs": 0.206447217, + "psnr_db": 27.9108687, + "ref_absmax": 10.099762, + "rel_max": 1.02047024, + "scaled_max_abs": 1.02047024 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_12/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 103.339939, + "index": 14, + "metrics": { + "corr": 0.62520912, + "finite": true, + "max_abs": 5.42111941, + "mean_abs": 0.151684202, + "psnr_db": 25.1743631, + "ref_absmax": 5.24590921, + "rel_max": 1.03339939, + "scaled_max_abs": 1.03339939 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;;zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Seque" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 98.9844274, + "index": 15, + "metrics": { + "corr": 0.435444235, + "finite": true, + "max_abs": 24.1370621, + "mean_abs": 1.44886368, + "psnr_db": 22.6745118, + "ref_absmax": 24.3847065, + "rel_max": 0.989844274, + "scaled_max_abs": 0.989844274 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.3125, + "band_ratio": 99.7106927, + "metrics": { + "corr": 0.397626796, + "finite": true, + "max_abs": 17.9730041, + "mean_abs": 1.38199325, + "psnr_db": 21.0881603, + "ref_absmax": 18.0251522, + "rel_max": 0.997106927, + "scaled_max_abs": 0.997106927 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 1, + "n_judged": 15, + "n_taps": 16, + "taps": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": null + }, + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)", + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 77.921645, + "index": 1, + "metrics": { + "corr": 0.695830639, + "finite": true, + "max_abs": 131.717697, + "mean_abs": 0.59928565, + "psnr_db": 35.3070888, + "ref_absmax": 169.038651, + "rel_max": 0.77921645, + "scaled_max_abs": 0.77921645 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_0/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "fail", + "tap": "net.features.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 79.2156565, + "index": 2, + "metrics": { + "corr": 0.746390762, + "finite": true, + "max_abs": 35.3651533, + "mean_abs": 0.957914745, + "psnr_db": 32.3388913, + "ref_absmax": 44.644146, + "rel_max": 0.792156565, + "scaled_max_abs": 0.792156565 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_1/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.1", + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 66.4368584, + "index": 3, + "metrics": { + "corr": 0.473765684, + "finite": true, + "max_abs": 20.3394413, + "mean_abs": 1.12491993, + "psnr_db": 29.444867, + "ref_absmax": 30.6146946, + "rel_max": 0.664368584, + "scaled_max_abs": 0.664368584 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_2/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 79.8507095, + "index": 4, + "metrics": { + "corr": 0.768630814, + "finite": true, + "max_abs": 20.894273, + "mean_abs": 0.938289246, + "psnr_db": 30.8585933, + "ref_absmax": 26.1666718, + "rel_max": 0.798507095, + "scaled_max_abs": 0.798507095 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_3;" + }, + "status": "fail", + "tap": "net.features.3", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 78.8078092, + "index": 5, + "metrics": { + "corr": 0.661755732, + "finite": true, + "max_abs": 15.3683796, + "mean_abs": 0.623452257, + "psnr_db": 31.2994868, + "ref_absmax": 19.5010872, + "rel_max": 0.788078092, + "scaled_max_abs": 0.788078092 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_4/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.4", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 98.1455335, + "index": 6, + "metrics": { + "corr": 0.561161898, + "finite": true, + "max_abs": 29.4889039, + "mean_abs": 0.698385467, + "psnr_db": 32.2923923, + "ref_absmax": 30.0460987, + "rel_max": 0.981455335, + "scaled_max_abs": 0.981455335 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_5;" + }, + "status": "fail", + "tap": "net.features.5", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 100.625407, + "index": 7, + "metrics": { + "corr": 0.259057686, + "finite": true, + "max_abs": 68.1034755, + "mean_abs": 1.3473867, + "psnr_db": 31.9496172, + "ref_absmax": 67.6801987, + "rel_max": 1.00625407, + "scaled_max_abs": 1.00625407 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_6;" + }, + "status": "fail", + "tap": "net.features.6", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 103.592403, + "index": 8, + "metrics": { + "corr": 0.525241605, + "finite": true, + "max_abs": 17.9060869, + "mean_abs": 0.542668261, + "psnr_db": 30.6963417, + "ref_absmax": 17.2851353, + "rel_max": 1.03592403, + "scaled_max_abs": 1.03592403 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_7/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 107.372045, + "index": 9, + "metrics": { + "corr": 0.55387767, + "finite": true, + "max_abs": 17.9556546, + "mean_abs": 0.616817935, + "psnr_db": 29.8384517, + "ref_absmax": 16.7228394, + "rel_max": 1.07372045, + "scaled_max_abs": 1.07372045 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_8;" + }, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 116.202017, + "index": 10, + "metrics": { + "corr": 0.675129297, + "finite": true, + "max_abs": 3.14646685, + "mean_abs": 0.234039951, + "psnr_db": 23.7179357, + "ref_absmax": 2.7077558, + "rel_max": 1.16202017, + "scaled_max_abs": 1.16202017 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_9/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 120.587199, + "index": 11, + "metrics": { + "corr": 0.670987766, + "finite": true, + "max_abs": 3.96173406, + "mean_abs": 0.302815485, + "psnr_db": 23.1026925, + "ref_absmax": 3.28536868, + "rel_max": 1.20587199, + "scaled_max_abs": 1.20587199 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_10;" + }, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 117.319395, + "index": 12, + "metrics": { + "corr": 0.648383669, + "finite": true, + "max_abs": 4.65709639, + "mean_abs": 0.365712687, + "psnr_db": 23.2192529, + "ref_absmax": 3.9695878, + "rel_max": 1.17319395, + "scaled_max_abs": 1.17319395 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_11;" + }, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 103.329689, + "index": 13, + "metrics": { + "corr": 0.547596283, + "finite": true, + "max_abs": 9.56634384, + "mean_abs": 0.199395125, + "psnr_db": 27.4539839, + "ref_absmax": 9.25807858, + "rel_max": 1.03329689, + "scaled_max_abs": 1.03329689 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_12/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 102.559858, + "index": 14, + "metrics": { + "corr": 0.609612791, + "finite": true, + "max_abs": 5.3223476, + "mean_abs": 0.146935782, + "psnr_db": 25.2109192, + "ref_absmax": 5.18950367, + "rel_max": 1.02559858, + "scaled_max_abs": 1.02559858 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;;zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Seque" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 99.7106927, + "index": 15, + "metrics": { + "corr": 0.397626796, + "finite": true, + "max_abs": 17.9730041, + "mean_abs": 1.38199325, + "psnr_db": 21.0881603, + "ref_absmax": 18.0251522, + "rel_max": 0.997106927, + "scaled_max_abs": 0.997106927 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp16", + "id": "mobilenet_v3_small__drop_normalize__litert_fp16", + "model": "mobilenet_v3_small", + "path": "litert", + "variant": "drop_normalize" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/mobilenet_v3_small__drop_normalize__litert_fp32.json b/bench/verdicts_e2e_gated/mobilenet_v3_small__drop_normalize__litert_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..45c395b69ae7971182149dab3743166fb06963ae --- /dev/null +++ b/bench/verdicts_e2e_gated/mobilenet_v3_small__drop_normalize__litert_fp32.json @@ -0,0 +1,1192 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "net.features.0", + "explained_by": "no_normalize", + "nominal_band_ratio": 7789.09802, + "results": [ + { + "band_ratio": 8086.99301, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 9502.71994, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 10314.4657, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 9825.58418, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 0.00351975852, + "explains": true, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "flag" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 0.0897399182, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.49690628e-05, + "mean_abs": 6.91318442e-06, + "psnr_db": 122.096923, + "ref_absmax": 7.23970604, + "rel_max": 8.97399182e-06, + "scaled_max_abs": 8.97399182e-06 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 114, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 1, + "n_ops_total": 113, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": null, + "basis": "interface hypothesis 'no_normalize' explains the first over-band tap (net.features.0)", + "index": 0, + "neighbourhood": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": null + }, + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 7791.36563, + "index": 1, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_0/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "fail", + "tap": "net.features.0" + } + ], + "observed_first_over_band": { + "index": 1, + "tap": "net.features.0" + }, + "shape": 224, + "tap": "normalize" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "2972dea395fcdb7e81cddec1ce688664b1b368229cab7560f065fd506fe4bd4a", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "59da6c34b6192fedc906b9368f8cc8b9317216af64996caa0c4f70f617daa28b", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "tap normalize @ 224", + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)" + }, + { + "item": "tap normalize @ 192", + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D3", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.1875, + "band_ratio": 9897.12695, + "metrics": { + "corr": 0.436828651, + "finite": true, + "max_abs": 24.1338536, + "mean_abs": 1.44712715, + "psnr_db": 22.6798234, + "ref_absmax": 24.3847065, + "rel_max": 0.989712695, + "scaled_max_abs": 0.989712695 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 1, + "n_judged": 15, + "n_taps": 16, + "taps": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": null + }, + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)", + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 7781.88744, + "index": 1, + "metrics": { + "corr": 0.70259045, + "finite": true, + "max_abs": 147.881142, + "mean_abs": 0.627122534, + "psnr_db": 35.8115163, + "ref_absmax": 190.032486, + "rel_max": 0.778188744, + "scaled_max_abs": 0.778188744 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_0/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "fail", + "tap": "net.features.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7927.88252, + "index": 2, + "metrics": { + "corr": 0.757841168, + "finite": true, + "max_abs": 36.0321541, + "mean_abs": 1.01649228, + "psnr_db": 32.3851159, + "ref_absmax": 45.4499092, + "rel_max": 0.792788252, + "scaled_max_abs": 0.792788252 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_1/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.1", + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_ratio": 6340.68391, + "index": 3, + "metrics": { + "corr": 0.487555729, + "finite": true, + "max_abs": 16.4202909, + "mean_abs": 1.18701197, + "psnr_db": 27.7989398, + "ref_absmax": 25.896719, + "rel_max": 0.634068391, + "scaled_max_abs": 0.634068391 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_2/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7939.54682, + "index": 4, + "metrics": { + "corr": 0.757383139, + "finite": true, + "max_abs": 20.4137568, + "mean_abs": 0.969730056, + "psnr_db": 30.6223697, + "ref_absmax": 25.7114887, + "rel_max": 0.793954682, + "scaled_max_abs": 0.793954682 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_3;" + }, + "status": "fail", + "tap": "net.features.3", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 8243.36769, + "index": 5, + "metrics": { + "corr": 0.635632931, + "finite": true, + "max_abs": 14.1027203, + "mean_abs": 0.639348445, + "psnr_db": 30.1177617, + "ref_absmax": 17.1079597, + "rel_max": 0.824336769, + "scaled_max_abs": 0.824336769 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_4/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.4", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10288.0895, + "index": 6, + "metrics": { + "corr": 0.528692404, + "finite": true, + "max_abs": 22.9616046, + "mean_abs": 0.700230342, + "psnr_db": 30.2221304, + "ref_absmax": 22.3186283, + "rel_max": 1.02880895, + "scaled_max_abs": 1.02880895 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_5;" + }, + "status": "fail", + "tap": "net.features.5", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 10159.1505, + "index": 7, + "metrics": { + "corr": 0.242991983, + "finite": true, + "max_abs": 63.7690618, + "mean_abs": 1.39936607, + "psnr_db": 30.2686799, + "ref_absmax": 62.7700729, + "rel_max": 1.01591505, + "scaled_max_abs": 1.01591505 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_6;" + }, + "status": "fail", + "tap": "net.features.6", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9945.1135, + "index": 8, + "metrics": { + "corr": 0.488775377, + "finite": true, + "max_abs": 20.5707858, + "mean_abs": 0.564173673, + "psnr_db": 31.0831887, + "ref_absmax": 20.6843147, + "rel_max": 0.99451135, + "scaled_max_abs": 0.99451135 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_7/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10054.3296, + "index": 9, + "metrics": { + "corr": 0.520045051, + "finite": true, + "max_abs": 19.5596606, + "mean_abs": 0.64705221, + "psnr_db": 30.175389, + "ref_absmax": 19.453968, + "rel_max": 1.00543296, + "scaled_max_abs": 1.00543296 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_8;" + }, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10811.8878, + "index": 10, + "metrics": { + "corr": 0.650956311, + "finite": true, + "max_abs": 3.77840486, + "mean_abs": 0.244087491, + "psnr_db": 25.410575, + "ref_absmax": 3.49467635, + "rel_max": 1.08118878, + "scaled_max_abs": 1.08118878 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_9/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 11544.4172, + "index": 11, + "metrics": { + "corr": 0.661352826, + "finite": true, + "max_abs": 4.31703377, + "mean_abs": 0.30257747, + "psnr_db": 24.6012311, + "ref_absmax": 3.73949909, + "rel_max": 1.15444172, + "scaled_max_abs": 1.15444172 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_10;" + }, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 11173.6073, + "index": 12, + "metrics": { + "corr": 0.65832404, + "finite": true, + "max_abs": 5.0670352, + "mean_abs": 0.360629334, + "psnr_db": 24.9819151, + "ref_absmax": 4.53482485, + "rel_max": 1.11736073, + "scaled_max_abs": 1.11736073 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_11;" + }, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10203.763, + "index": 13, + "metrics": { + "corr": 0.558436215, + "finite": true, + "max_abs": 10.3055577, + "mean_abs": 0.206618667, + "psnr_db": 27.9103438, + "ref_absmax": 10.099762, + "rel_max": 1.0203763, + "scaled_max_abs": 1.0203763 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_12/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10333.0727, + "index": 14, + "metrics": { + "corr": 0.625404483, + "finite": true, + "max_abs": 5.42063615, + "mean_abs": 0.151659521, + "psnr_db": 25.1775173, + "ref_absmax": 5.24590921, + "rel_max": 1.03330727, + "scaled_max_abs": 1.03330727 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;;zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Seque" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9897.12695, + "index": 15, + "metrics": { + "corr": 0.436828651, + "finite": true, + "max_abs": 24.1338536, + "mean_abs": 1.44712715, + "psnr_db": 22.6798234, + "ref_absmax": 24.3847065, + "rel_max": 0.989712695, + "scaled_max_abs": 0.989712695 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.3125, + "band_ratio": 9962.78513, + "metrics": { + "corr": 0.398940541, + "finite": true, + "max_abs": 17.9580718, + "mean_abs": 1.37885723, + "psnr_db": 21.0934418, + "ref_absmax": 18.0251522, + "rel_max": 0.996278513, + "scaled_max_abs": 0.996278513 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 1, + "n_judged": 15, + "n_taps": 16, + "taps": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": null + }, + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)", + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 7791.36563, + "index": 1, + "metrics": { + "corr": 0.696107584, + "finite": true, + "max_abs": 131.704193, + "mean_abs": 0.599192701, + "psnr_db": 35.3090086, + "ref_absmax": 169.038651, + "rel_max": 0.779136563, + "scaled_max_abs": 0.779136563 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_0/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "fail", + "tap": "net.features.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7920.54435, + "index": 2, + "metrics": { + "corr": 0.746746359, + "finite": true, + "max_abs": 35.3605938, + "mean_abs": 0.957869425, + "psnr_db": 32.3403427, + "ref_absmax": 44.644146, + "rel_max": 0.792054435, + "scaled_max_abs": 0.792054435 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_1/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.1", + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 6644.51196, + "index": 3, + "metrics": { + "corr": 0.473915771, + "finite": true, + "max_abs": 20.3419704, + "mean_abs": 1.1251763, + "psnr_db": 29.4457714, + "ref_absmax": 30.6146946, + "rel_max": 0.664451196, + "scaled_max_abs": 0.664451196 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_2/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7984.04326, + "index": 4, + "metrics": { + "corr": 0.768612024, + "finite": true, + "max_abs": 20.8915839, + "mean_abs": 0.938666337, + "psnr_db": 30.8596482, + "ref_absmax": 26.1666718, + "rel_max": 0.798404326, + "scaled_max_abs": 0.798404326 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_3;" + }, + "status": "fail", + "tap": "net.features.3", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7883.97776, + "index": 5, + "metrics": { + "corr": 0.66173034, + "finite": true, + "max_abs": 15.3746138, + "mean_abs": 0.623409825, + "psnr_db": 31.2978394, + "ref_absmax": 19.5010872, + "rel_max": 0.788397776, + "scaled_max_abs": 0.788397776 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_4/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.4", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9816.05181, + "index": 6, + "metrics": { + "corr": 0.561157102, + "finite": true, + "max_abs": 29.4934062, + "mean_abs": 0.6990362, + "psnr_db": 32.2864322, + "ref_absmax": 30.0460987, + "rel_max": 0.981605181, + "scaled_max_abs": 0.981605181 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_5;" + }, + "status": "fail", + "tap": "net.features.5", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10062.8994, + "index": 7, + "metrics": { + "corr": 0.258385864, + "finite": true, + "max_abs": 68.1059032, + "mean_abs": 1.35223904, + "psnr_db": 31.9399253, + "ref_absmax": 67.6801987, + "rel_max": 1.00628994, + "scaled_max_abs": 1.00628994 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_6;" + }, + "status": "fail", + "tap": "net.features.6", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10359.6416, + "index": 8, + "metrics": { + "corr": 0.524392028, + "finite": true, + "max_abs": 17.9067807, + "mean_abs": 0.543505427, + "psnr_db": 30.6866604, + "ref_absmax": 17.2851353, + "rel_max": 1.03596416, + "scaled_max_abs": 1.03596416 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_7/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10736.6409, + "index": 9, + "metrics": { + "corr": 0.553062827, + "finite": true, + "max_abs": 17.9547122, + "mean_abs": 0.617732318, + "psnr_db": 29.8295296, + "ref_absmax": 16.7228394, + "rel_max": 1.07366409, + "scaled_max_abs": 1.07366409 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_8;" + }, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 11625.0733, + "index": 10, + "metrics": { + "corr": 0.674951135, + "finite": true, + "max_abs": 3.14778596, + "mean_abs": 0.234005292, + "psnr_db": 23.7175528, + "ref_absmax": 2.7077558, + "rel_max": 1.16250733, + "scaled_max_abs": 1.16250733 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_9/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 12067.8187, + "index": 11, + "metrics": { + "corr": 0.672060362, + "finite": true, + "max_abs": 3.96472335, + "mean_abs": 0.302320845, + "psnr_db": 23.1176924, + "ref_absmax": 3.28536868, + "rel_max": 1.20678187, + "scaled_max_abs": 1.20678187 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_10;" + }, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 11725.9448, + "index": 12, + "metrics": { + "corr": 0.648811815, + "finite": true, + "max_abs": 4.65471673, + "mean_abs": 0.365424116, + "psnr_db": 23.2250671, + "ref_absmax": 3.9695878, + "rel_max": 1.17259448, + "scaled_max_abs": 1.17259448 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_11;" + }, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 10333.0824, + "index": 13, + "metrics": { + "corr": 0.548142198, + "finite": true, + "max_abs": 9.5664489, + "mean_abs": 0.199321097, + "psnr_db": 27.4584384, + "ref_absmax": 9.25807858, + "rel_max": 1.03330824, + "scaled_max_abs": 1.03330824 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_12/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 10259.1819, + "index": 14, + "metrics": { + "corr": 0.609941996, + "finite": true, + "max_abs": 5.3240062, + "mean_abs": 0.146793217, + "psnr_db": 25.2147716, + "ref_absmax": 5.18950367, + "rel_max": 1.02591819, + "scaled_max_abs": 1.02591819 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;;zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Seque" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9962.78513, + "index": 15, + "metrics": { + "corr": 0.398940541, + "finite": true, + "max_abs": 17.9580718, + "mean_abs": 1.37885723, + "psnr_db": 21.0934418, + "ref_absmax": 18.0251522, + "rel_max": 0.996278513, + "scaled_max_abs": 0.996278513 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp32", + "id": "mobilenet_v3_small__drop_normalize__litert_fp32", + "model": "mobilenet_v3_small", + "path": "litert", + "variant": "drop_normalize" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/mobilenet_v3_small__drop_normalize__onnx_fp16.json b/bench/verdicts_e2e_gated/mobilenet_v3_small__drop_normalize__onnx_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..407178fd59dca04ff9e7e0f33965e164240b67b7 --- /dev/null +++ b/bench/verdicts_e2e_gated/mobilenet_v3_small__drop_normalize__onnx_fp16.json @@ -0,0 +1,1037 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "net.features.0", + "explained_by": "no_normalize", + "nominal_band_ratio": 77.9003989, + "results": [ + { + "band_ratio": 80.8731464, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 95.0293179, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 103.10089, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 98.2558418, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 0.0577101073, + "explains": true, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "flag" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": null, + "basis": "interface hypothesis 'no_normalize' explains the first over-band tap (net.features.0)", + "index": 0, + "neighbourhood": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": null + }, + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 77.9266458, + "index": 1, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.0/features.0.2/HardSwish_output_0" + }, + "status": "fail", + "tap": "net.features.0" + } + ], + "observed_first_over_band": { + "index": 1, + "tap": "net.features.0" + }, + "shape": 224, + "tap": "normalize" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "83ca9293adcbb7e338e53f761bec81810c735f9da4c912a2aa64ccc1e217c393", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "28e70054f08dc64877aa57e54c54962e8df08bb32ec4e578f5982d24f04944ae", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + }, + { + "item": "tap normalize @ 224", + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)" + }, + { + "item": "tap normalize @ 192", + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D3", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.1875, + "band_ratio": 99.0353008, + "metrics": { + "corr": 0.43595473, + "finite": true, + "max_abs": 24.1494674, + "mean_abs": 1.4480525, + "psnr_db": 22.6763248, + "ref_absmax": 24.3847065, + "rel_max": 0.990353008, + "scaled_max_abs": 0.990353008 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 1, + "n_judged": 15, + "n_taps": 16, + "taps": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": null + }, + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)", + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 77.8162929, + "index": 1, + "metrics": { + "corr": 0.702293401, + "finite": true, + "max_abs": 147.876236, + "mean_abs": 0.627268858, + "psnr_db": 35.8097297, + "ref_absmax": 190.032486, + "rel_max": 0.778162929, + "scaled_max_abs": 0.778162929 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.0/features.0.2/HardSwish_output_0" + }, + "status": "fail", + "tap": "net.features.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 79.2869498, + "index": 2, + "metrics": { + "corr": 0.757409396, + "finite": true, + "max_abs": 36.0358467, + "mean_abs": 1.01663908, + "psnr_db": 32.3833405, + "ref_absmax": 45.4499092, + "rel_max": 0.792869498, + "scaled_max_abs": 0.792869498 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.1/block/block.2/block.2.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.1", + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_ratio": 63.376152, + "index": 3, + "metrics": { + "corr": 0.487525353, + "finite": true, + "max_abs": 16.412344, + "mean_abs": 1.18658601, + "psnr_db": 27.7985605, + "ref_absmax": 25.896719, + "rel_max": 0.63376152, + "scaled_max_abs": 0.63376152 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.2/block/block.2/block.2.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 79.3836082, + "index": 4, + "metrics": { + "corr": 0.757673284, + "finite": true, + "max_abs": 20.4107075, + "mean_abs": 0.969086348, + "psnr_db": 30.6228036, + "ref_absmax": 25.7114887, + "rel_max": 0.793836082, + "scaled_max_abs": 0.793836082 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.3/Add_output_0" + }, + "status": "fail", + "tap": "net.features.3", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 82.353193, + "index": 5, + "metrics": { + "corr": 0.635576467, + "finite": true, + "max_abs": 14.0889511, + "mean_abs": 0.639241977, + "psnr_db": 30.1197276, + "ref_absmax": 17.1079597, + "rel_max": 0.82353193, + "scaled_max_abs": 0.82353193 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.4/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.4", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 102.872548, + "index": 6, + "metrics": { + "corr": 0.531642901, + "finite": true, + "max_abs": 22.9597416, + "mean_abs": 0.695622341, + "psnr_db": 30.2730606, + "ref_absmax": 22.3186283, + "rel_max": 1.02872548, + "scaled_max_abs": 1.02872548 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.5/Add_output_0" + }, + "status": "fail", + "tap": "net.features.5", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 101.592338, + "index": 7, + "metrics": { + "corr": 0.244733937, + "finite": true, + "max_abs": 63.7695847, + "mean_abs": 1.3871167, + "psnr_db": 30.2873137, + "ref_absmax": 62.7700729, + "rel_max": 1.01592338, + "scaled_max_abs": 1.01592338 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.6/Add_output_0" + }, + "status": "fail", + "tap": "net.features.6", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 99.4175132, + "index": 8, + "metrics": { + "corr": 0.491266674, + "finite": true, + "max_abs": 20.5638313, + "mean_abs": 0.561636695, + "psnr_db": 31.1054587, + "ref_absmax": 20.6843147, + "rel_max": 0.994175132, + "scaled_max_abs": 0.994175132 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.7/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 100.558862, + "index": 9, + "metrics": { + "corr": 0.521962231, + "finite": true, + "max_abs": 19.5626888, + "mean_abs": 0.644594204, + "psnr_db": 30.192431, + "ref_absmax": 19.453968, + "rel_max": 1.00558862, + "scaled_max_abs": 1.00558862 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.8/Add_output_0" + }, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 108.096858, + "index": 10, + "metrics": { + "corr": 0.651787727, + "finite": true, + "max_abs": 3.77763534, + "mean_abs": 0.244009052, + "psnr_db": 25.4148599, + "ref_absmax": 3.49467635, + "rel_max": 1.08096858, + "scaled_max_abs": 1.08096858 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.9/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 115.400065, + "index": 11, + "metrics": { + "corr": 0.661693137, + "finite": true, + "max_abs": 4.31538439, + "mean_abs": 0.302794709, + "psnr_db": 24.6005049, + "ref_absmax": 3.73949909, + "rel_max": 1.15400065, + "scaled_max_abs": 1.15400065 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.10/Add_output_0" + }, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 111.782959, + "index": 12, + "metrics": { + "corr": 0.659049567, + "finite": true, + "max_abs": 5.06916142, + "mean_abs": 0.36050056, + "psnr_db": 24.9893522, + "ref_absmax": 4.53482485, + "rel_max": 1.11782959, + "scaled_max_abs": 1.11782959 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.11/Add_output_0" + }, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 102.042611, + "index": 13, + "metrics": { + "corr": 0.558448998, + "finite": true, + "max_abs": 10.3060608, + "mean_abs": 0.206506934, + "psnr_db": 27.9085759, + "ref_absmax": 10.099762, + "rel_max": 1.02042611, + "scaled_max_abs": 1.02042611 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.12/features.12.2/HardSwish_output_0" + }, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 103.33221, + "index": 14, + "metrics": { + "corr": 0.625528089, + "finite": true, + "max_abs": 5.4207139, + "mean_abs": 0.151786366, + "psnr_db": 25.176813, + "ref_absmax": 5.24590921, + "rel_max": 1.0333221, + "scaled_max_abs": 1.0333221 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 99.0353008, + "index": 15, + "metrics": { + "corr": 0.43595473, + "finite": true, + "max_abs": 24.1494674, + "mean_abs": 1.4480525, + "psnr_db": 22.6763248, + "ref_absmax": 24.3847065, + "rel_max": 0.990353008, + "scaled_max_abs": 0.990353008 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.3125, + "band_ratio": 99.7253395, + "metrics": { + "corr": 0.397375617, + "finite": true, + "max_abs": 17.9756442, + "mean_abs": 1.38343374, + "psnr_db": 21.0828125, + "ref_absmax": 18.0251522, + "rel_max": 0.997253395, + "scaled_max_abs": 0.997253395 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 1, + "n_judged": 15, + "n_taps": 16, + "taps": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": null + }, + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)", + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 77.9266458, + "index": 1, + "metrics": { + "corr": 0.695804914, + "finite": true, + "max_abs": 131.726151, + "mean_abs": 0.599335204, + "psnr_db": 35.3071283, + "ref_absmax": 169.038651, + "rel_max": 0.779266458, + "scaled_max_abs": 0.779266458 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.0/features.0.2/HardSwish_output_0" + }, + "status": "fail", + "tap": "net.features.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 79.2280997, + "index": 2, + "metrics": { + "corr": 0.746284974, + "finite": true, + "max_abs": 35.3707085, + "mean_abs": 0.957994238, + "psnr_db": 32.3385374, + "ref_absmax": 44.644146, + "rel_max": 0.792280997, + "scaled_max_abs": 0.792280997 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.1/block/block.2/block.2.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.1", + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 66.4427895, + "index": 3, + "metrics": { + "corr": 0.473896671, + "finite": true, + "max_abs": 20.3412571, + "mean_abs": 1.12479292, + "psnr_db": 29.4455517, + "ref_absmax": 30.6146946, + "rel_max": 0.664427895, + "scaled_max_abs": 0.664427895 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.2/block/block.2/block.2.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 79.8434521, + "index": 4, + "metrics": { + "corr": 0.768930805, + "finite": true, + "max_abs": 20.892374, + "mean_abs": 0.938099552, + "psnr_db": 30.8600085, + "ref_absmax": 26.1666718, + "rel_max": 0.798434521, + "scaled_max_abs": 0.798434521 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.3/Add_output_0" + }, + "status": "fail", + "tap": "net.features.3", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 78.7872404, + "index": 5, + "metrics": { + "corr": 0.661575015, + "finite": true, + "max_abs": 15.3643684, + "mean_abs": 0.623241379, + "psnr_db": 31.2992988, + "ref_absmax": 19.5010872, + "rel_max": 0.787872404, + "scaled_max_abs": 0.787872404 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.4/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.4", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 98.116501, + "index": 6, + "metrics": { + "corr": 0.563663672, + "finite": true, + "max_abs": 29.4801807, + "mean_abs": 0.694451445, + "psnr_db": 32.336088, + "ref_absmax": 30.0460987, + "rel_max": 0.98116501, + "scaled_max_abs": 0.98116501 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.5/Add_output_0" + }, + "status": "fail", + "tap": "net.features.5", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 100.620811, + "index": 7, + "metrics": { + "corr": 0.259622243, + "finite": true, + "max_abs": 68.1003647, + "mean_abs": 1.34057656, + "psnr_db": 31.9614742, + "ref_absmax": 67.6801987, + "rel_max": 1.00620811, + "scaled_max_abs": 1.00620811 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.6/Add_output_0" + }, + "status": "fail", + "tap": "net.features.6", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 103.59163, + "index": 8, + "metrics": { + "corr": 0.526869048, + "finite": true, + "max_abs": 17.9059534, + "mean_abs": 0.541127966, + "psnr_db": 30.712502, + "ref_absmax": 17.2851353, + "rel_max": 1.0359163, + "scaled_max_abs": 1.0359163 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.7/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 107.365798, + "index": 9, + "metrics": { + "corr": 0.554966773, + "finite": true, + "max_abs": 17.9546099, + "mean_abs": 0.61536779, + "psnr_db": 29.8494469, + "ref_absmax": 16.7228394, + "rel_max": 1.07365798, + "scaled_max_abs": 1.07365798 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.8/Add_output_0" + }, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 116.28758, + "index": 10, + "metrics": { + "corr": 0.675839408, + "finite": true, + "max_abs": 3.14878368, + "mean_abs": 0.233949011, + "psnr_db": 23.721241, + "ref_absmax": 2.7077558, + "rel_max": 1.1628758, + "scaled_max_abs": 1.1628758 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.9/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 120.447959, + "index": 11, + "metrics": { + "corr": 0.670798701, + "finite": true, + "max_abs": 3.95715952, + "mean_abs": 0.303064632, + "psnr_db": 23.0966816, + "ref_absmax": 3.28536868, + "rel_max": 1.20447959, + "scaled_max_abs": 1.20447959 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.10/Add_output_0" + }, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 117.363624, + "index": 12, + "metrics": { + "corr": 0.648646833, + "finite": true, + "max_abs": 4.6588521, + "mean_abs": 0.36584309, + "psnr_db": 23.2200359, + "ref_absmax": 3.9695878, + "rel_max": 1.17363624, + "scaled_max_abs": 1.17363624 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.11/Add_output_0" + }, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 103.351697, + "index": 13, + "metrics": { + "corr": 0.546796319, + "finite": true, + "max_abs": 9.56838131, + "mean_abs": 0.199530163, + "psnr_db": 27.443541, + "ref_absmax": 9.25807858, + "rel_max": 1.03351697, + "scaled_max_abs": 1.03351697 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.12/features.12.2/HardSwish_output_0" + }, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 102.552196, + "index": 14, + "metrics": { + "corr": 0.609327452, + "finite": true, + "max_abs": 5.32194996, + "mean_abs": 0.147027173, + "psnr_db": 25.2083152, + "ref_absmax": 5.18950367, + "rel_max": 1.02552196, + "scaled_max_abs": 1.02552196 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 99.7253395, + "index": 15, + "metrics": { + "corr": 0.397375617, + "finite": true, + "max_abs": 17.9756442, + "mean_abs": 1.38343374, + "psnr_db": 21.0828125, + "ref_absmax": 18.0251522, + "rel_max": 0.997253395, + "scaled_max_abs": 0.997253395 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp16", + "id": "mobilenet_v3_small__drop_normalize__onnx_fp16", + "model": "mobilenet_v3_small", + "path": "onnx", + "variant": "drop_normalize" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/mobilenet_v3_small__drop_normalize__onnx_fp32.json b/bench/verdicts_e2e_gated/mobilenet_v3_small__drop_normalize__onnx_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..4d0e97d001f20698b210283a088d54d39a87e231 --- /dev/null +++ b/bench/verdicts_e2e_gated/mobilenet_v3_small__drop_normalize__onnx_fp32.json @@ -0,0 +1,1037 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "net.features.0", + "explained_by": "no_normalize", + "nominal_band_ratio": 7789.09802, + "results": [ + { + "band_ratio": 8086.99315, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 9502.71994, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 10314.4657, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 9825.58418, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 0.0029331321, + "explains": true, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "flag" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": null, + "basis": "interface hypothesis 'no_normalize' explains the first over-band tap (net.features.0)", + "index": 0, + "neighbourhood": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": null + }, + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 7791.36518, + "index": 1, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.0/features.0.2/HardSwish_output_0" + }, + "status": "fail", + "tap": "net.features.0" + } + ], + "observed_first_over_band": { + "index": 1, + "tap": "net.features.0" + }, + "shape": 224, + "tap": "normalize" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "1b3f0e50c5eb62bb223d94e1634565f9253997202f172ece0b17795ca6fa33ea", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "c9d006a9a83465579139c4cc4cb1c44df89d517dcbe06cfd074a9df601ca61c3", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + }, + { + "item": "tap normalize @ 224", + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)" + }, + { + "item": "tap normalize @ 192", + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D3", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.1875, + "band_ratio": 9897.13103, + "metrics": { + "corr": 0.436829134, + "finite": true, + "max_abs": 24.1338635, + "mean_abs": 1.4471258, + "psnr_db": 22.6798267, + "ref_absmax": 24.3847065, + "rel_max": 0.989713103, + "scaled_max_abs": 0.989713103 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 1, + "n_judged": 15, + "n_taps": 16, + "taps": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": null + }, + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)", + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 7781.88744, + "index": 1, + "metrics": { + "corr": 0.702590469, + "finite": true, + "max_abs": 147.881142, + "mean_abs": 0.627122529, + "psnr_db": 35.8115164, + "ref_absmax": 190.032486, + "rel_max": 0.778188744, + "scaled_max_abs": 0.778188744 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.0/features.0.2/HardSwish_output_0" + }, + "status": "fail", + "tap": "net.features.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7927.88063, + "index": 2, + "metrics": { + "corr": 0.757841089, + "finite": true, + "max_abs": 36.0321455, + "mean_abs": 1.01649233, + "psnr_db": 32.3851157, + "ref_absmax": 45.4499092, + "rel_max": 0.792788063, + "scaled_max_abs": 0.792788063 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.1/block/block.2/block.2.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.1", + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_ratio": 6340.68428, + "index": 3, + "metrics": { + "corr": 0.4875558, + "finite": true, + "max_abs": 16.4202919, + "mean_abs": 1.18701189, + "psnr_db": 27.79894, + "ref_absmax": 25.896719, + "rel_max": 0.634068428, + "scaled_max_abs": 0.634068428 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.2/block/block.2/block.2.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7939.547, + "index": 4, + "metrics": { + "corr": 0.757383244, + "finite": true, + "max_abs": 20.4137573, + "mean_abs": 0.969729894, + "psnr_db": 30.6223699, + "ref_absmax": 25.7114887, + "rel_max": 0.7939547, + "scaled_max_abs": 0.7939547 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.3/Add_output_0" + }, + "status": "fail", + "tap": "net.features.3", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 8243.37159, + "index": 5, + "metrics": { + "corr": 0.635632883, + "finite": true, + "max_abs": 14.1027269, + "mean_abs": 0.639348317, + "psnr_db": 30.1177618, + "ref_absmax": 17.1079597, + "rel_max": 0.824337159, + "scaled_max_abs": 0.824337159 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.4/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.4", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10288.0897, + "index": 6, + "metrics": { + "corr": 0.52869425, + "finite": true, + "max_abs": 22.961605, + "mean_abs": 0.70022805, + "psnr_db": 30.222158, + "ref_absmax": 22.3186283, + "rel_max": 1.02880897, + "scaled_max_abs": 1.02880897 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.5/Add_output_0" + }, + "status": "fail", + "tap": "net.features.5", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 10159.1513, + "index": 7, + "metrics": { + "corr": 0.242992666, + "finite": true, + "max_abs": 63.769067, + "mean_abs": 1.39936166, + "psnr_db": 30.2686865, + "ref_absmax": 62.7700729, + "rel_max": 1.01591513, + "scaled_max_abs": 1.01591513 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.6/Add_output_0" + }, + "status": "fail", + "tap": "net.features.6", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9945.11275, + "index": 8, + "metrics": { + "corr": 0.48877643, + "finite": true, + "max_abs": 20.5707842, + "mean_abs": 0.564172563, + "psnr_db": 31.0831974, + "ref_absmax": 20.6843147, + "rel_max": 0.994511275, + "scaled_max_abs": 0.994511275 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.7/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10054.329, + "index": 9, + "metrics": { + "corr": 0.520045948, + "finite": true, + "max_abs": 19.5596596, + "mean_abs": 0.64705113, + "psnr_db": 30.1753971, + "ref_absmax": 19.453968, + "rel_max": 1.0054329, + "scaled_max_abs": 1.0054329 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.8/Add_output_0" + }, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10811.8896, + "index": 10, + "metrics": { + "corr": 0.650957128, + "finite": true, + "max_abs": 3.77840549, + "mean_abs": 0.244087306, + "psnr_db": 25.4105824, + "ref_absmax": 3.49467635, + "rel_max": 1.08118896, + "scaled_max_abs": 1.08118896 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.9/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 11544.4175, + "index": 11, + "metrics": { + "corr": 0.661353264, + "finite": true, + "max_abs": 4.31703389, + "mean_abs": 0.302577434, + "psnr_db": 24.6012357, + "ref_absmax": 3.73949909, + "rel_max": 1.15444175, + "scaled_max_abs": 1.15444175 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.10/Add_output_0" + }, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 11173.6051, + "index": 12, + "metrics": { + "corr": 0.658324506, + "finite": true, + "max_abs": 5.06703418, + "mean_abs": 0.360629194, + "psnr_db": 24.9819214, + "ref_absmax": 4.53482485, + "rel_max": 1.11736051, + "scaled_max_abs": 1.11736051 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.11/Add_output_0" + }, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10203.7625, + "index": 13, + "metrics": { + "corr": 0.558436471, + "finite": true, + "max_abs": 10.3055572, + "mean_abs": 0.206618653, + "psnr_db": 27.9103454, + "ref_absmax": 10.099762, + "rel_max": 1.02037625, + "scaled_max_abs": 1.02037625 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.12/features.12.2/HardSwish_output_0" + }, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10333.0722, + "index": 14, + "metrics": { + "corr": 0.625404977, + "finite": true, + "max_abs": 5.42063585, + "mean_abs": 0.151659532, + "psnr_db": 25.1775218, + "ref_absmax": 5.24590921, + "rel_max": 1.03330722, + "scaled_max_abs": 1.03330722 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9897.13103, + "index": 15, + "metrics": { + "corr": 0.436829134, + "finite": true, + "max_abs": 24.1338635, + "mean_abs": 1.4471258, + "psnr_db": 22.6798267, + "ref_absmax": 24.3847065, + "rel_max": 0.989713103, + "scaled_max_abs": 0.989713103 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.3125, + "band_ratio": 9962.78992, + "metrics": { + "corr": 0.398940223, + "finite": true, + "max_abs": 17.9580805, + "mean_abs": 1.37885773, + "psnr_db": 21.0934389, + "ref_absmax": 18.0251522, + "rel_max": 0.996278992, + "scaled_max_abs": 0.996278992 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 1, + "n_judged": 15, + "n_taps": 16, + "taps": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": null + }, + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)", + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 7791.36518, + "index": 1, + "metrics": { + "corr": 0.696107603, + "finite": true, + "max_abs": 131.704185, + "mean_abs": 0.599192696, + "psnr_db": 35.3090087, + "ref_absmax": 169.038651, + "rel_max": 0.779136518, + "scaled_max_abs": 0.779136518 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.0/features.0.2/HardSwish_output_0" + }, + "status": "fail", + "tap": "net.features.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7920.54285, + "index": 2, + "metrics": { + "corr": 0.746746269, + "finite": true, + "max_abs": 35.3605871, + "mean_abs": 0.957869472, + "psnr_db": 32.3403425, + "ref_absmax": 44.644146, + "rel_max": 0.792054285, + "scaled_max_abs": 0.792054285 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.1/block/block.2/block.2.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.1", + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 6644.51165, + "index": 3, + "metrics": { + "corr": 0.473915845, + "finite": true, + "max_abs": 20.3419695, + "mean_abs": 1.12517623, + "psnr_db": 29.4457716, + "ref_absmax": 30.6146946, + "rel_max": 0.664451165, + "scaled_max_abs": 0.664451165 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.2/block/block.2/block.2.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7984.04253, + "index": 4, + "metrics": { + "corr": 0.768612131, + "finite": true, + "max_abs": 20.891582, + "mean_abs": 0.938666189, + "psnr_db": 30.8596483, + "ref_absmax": 26.1666718, + "rel_max": 0.798404253, + "scaled_max_abs": 0.798404253 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.3/Add_output_0" + }, + "status": "fail", + "tap": "net.features.3", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7883.97727, + "index": 5, + "metrics": { + "corr": 0.661730216, + "finite": true, + "max_abs": 15.3746128, + "mean_abs": 0.623409696, + "psnr_db": 31.297839, + "ref_absmax": 19.5010872, + "rel_max": 0.788397727, + "scaled_max_abs": 0.788397727 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.4/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.4", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9816.05257, + "index": 6, + "metrics": { + "corr": 0.561158598, + "finite": true, + "max_abs": 29.4934084, + "mean_abs": 0.699034157, + "psnr_db": 32.2864583, + "ref_absmax": 30.0460987, + "rel_max": 0.981605257, + "scaled_max_abs": 0.981605257 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.5/Add_output_0" + }, + "status": "fail", + "tap": "net.features.5", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10062.8997, + "index": 7, + "metrics": { + "corr": 0.258385999, + "finite": true, + "max_abs": 68.1059052, + "mean_abs": 1.35223584, + "psnr_db": 31.9399308, + "ref_absmax": 67.6801987, + "rel_max": 1.00628997, + "scaled_max_abs": 1.00628997 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.6/Add_output_0" + }, + "status": "fail", + "tap": "net.features.6", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10359.643, + "index": 8, + "metrics": { + "corr": 0.524392965, + "finite": true, + "max_abs": 17.9067831, + "mean_abs": 0.543504509, + "psnr_db": 30.6866694, + "ref_absmax": 17.2851353, + "rel_max": 1.0359643, + "scaled_max_abs": 1.0359643 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.7/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10736.6424, + "index": 9, + "metrics": { + "corr": 0.553063636, + "finite": true, + "max_abs": 17.9547145, + "mean_abs": 0.617731404, + "psnr_db": 29.8295378, + "ref_absmax": 16.7228394, + "rel_max": 1.07366424, + "scaled_max_abs": 1.07366424 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.8/Add_output_0" + }, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 11625.0871, + "index": 10, + "metrics": { + "corr": 0.674951799, + "finite": true, + "max_abs": 3.14778972, + "mean_abs": 0.234005165, + "psnr_db": 23.7175579, + "ref_absmax": 2.7077558, + "rel_max": 1.16250871, + "scaled_max_abs": 1.16250871 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.9/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 12067.8201, + "index": 11, + "metrics": { + "corr": 0.672060587, + "finite": true, + "max_abs": 3.96472383, + "mean_abs": 0.30232087, + "psnr_db": 23.1176933, + "ref_absmax": 3.28536868, + "rel_max": 1.20678201, + "scaled_max_abs": 1.20678201 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.10/Add_output_0" + }, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 11725.9478, + "index": 12, + "metrics": { + "corr": 0.648812197, + "finite": true, + "max_abs": 4.65471792, + "mean_abs": 0.365424044, + "psnr_db": 23.2250708, + "ref_absmax": 3.9695878, + "rel_max": 1.17259478, + "scaled_max_abs": 1.17259478 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.11/Add_output_0" + }, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 10333.0832, + "index": 13, + "metrics": { + "corr": 0.548141887, + "finite": true, + "max_abs": 9.56644958, + "mean_abs": 0.199321164, + "psnr_db": 27.4584342, + "ref_absmax": 9.25807858, + "rel_max": 1.03330832, + "scaled_max_abs": 1.03330832 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.12/features.12.2/HardSwish_output_0" + }, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 10259.1812, + "index": 14, + "metrics": { + "corr": 0.609941972, + "finite": true, + "max_abs": 5.32400584, + "mean_abs": 0.146793257, + "psnr_db": 25.2147717, + "ref_absmax": 5.18950367, + "rel_max": 1.02591812, + "scaled_max_abs": 1.02591812 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9962.78992, + "index": 15, + "metrics": { + "corr": 0.398940223, + "finite": true, + "max_abs": 17.9580805, + "mean_abs": 1.37885773, + "psnr_db": 21.0934389, + "ref_absmax": 18.0251522, + "rel_max": 0.996278992, + "scaled_max_abs": 0.996278992 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp32", + "id": "mobilenet_v3_small__drop_normalize__onnx_fp32", + "model": "mobilenet_v3_small", + "path": "onnx", + "variant": "drop_normalize" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/mobilenet_v3_small__fp16_as_fp32__coreml.json b/bench/verdicts_e2e_gated/mobilenet_v3_small__fp16_as_fp32__coreml.json new file mode 100644 index 0000000000000000000000000000000000000000..ff7da0abfebcf61aa68a80846c145f2aaaca4395 --- /dev/null +++ b/bench/verdicts_e2e_gated/mobilenet_v3_small__fp16_as_fp32__coreml.json @@ -0,0 +1,1034 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": "artifact computes in fp16 (declared fp32); the drift onset (normalize) is the size fp16 explains: distributed precision drift, not a single-op fault; note: taps over the fp16 band too: ['net.features.1', 'net.features.2', 'net.features.3', 'net.features.4', 'net.features.5', 'net.features.7', 'net.features.8', 'net.features.9', 'net.features.10', 'net.features.11', 'net.features.12', 'net.avgpool', 'net.classifier']", + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "normalize", + "explained_by": null, + "nominal_band_ratio": 13.0516105, + "results": [ + { + "band_ratio": 16835.9372, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 8135.60838, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 20992.1961, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 16915.457, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 21192.6264, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [ + "inputs[0]: dtype float16 (declared float32)", + "outputs[0]: dtype float16 (declared float32)" + ], + "status": "precision_narrowing" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp32", + "first_divergence": { + "basis": "artifact computes in fp16 (declared fp32); the drift onset (normalize) is the size fp16 explains: distributed precision drift, not a single-op fault; note: taps over the fp16 band too: ['net.features.1', 'net.features.2', 'net.features.3', 'net.features.4', 'net.features.5', 'net.features.7', 'net.features.8', 'net.features.9', 'net.features.10', 'net.features.11', 'net.features.12', 'net.avgpool', 'net.classifier']", + "index": null, + "onset": { + "index": 0, + "tap": "normalize" + }, + "shape": 224, + "tap": null + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "e8f4b313bc394828af089248d6d729f5cfb7d031d184bf665f719d1a66fcd7d8", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "807adc810963567dc9e14f27330f17d8d7cd30ffa6b8e35992534a3dbc2f65e9", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D1", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.84375, + "band_ratio": 447.572937, + "metrics": { + "corr": 0.999234982, + "finite": true, + "max_abs": 1.09139347, + "mean_abs": 0.0600417178, + "psnr_db": 50.1867257, + "ref_absmax": 24.3847065, + "rel_max": 0.0447572937, + "scaled_max_abs": 0.0447572937 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 0, + "n_judged": 16, + "n_taps": 16, + "taps": [ + { + "band_ratio": 11.7570499, + "index": 0, + "metrics": { + "corr": 0.999999914, + "finite": true, + "max_abs": 0.0135545731, + "mean_abs": 0.000674526699, + "psnr_db": 83.5827466, + "ref_absmax": 11.5288897, + "rel_max": 0.00117570499, + "scaled_max_abs": 0.00117570499 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "status": "fail", + "tap": "normalize", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 26.4822202, + "index": 1, + "metrics": { + "corr": 0.999998648, + "finite": true, + "max_abs": 0.503248215, + "mean_abs": 0.00245742044, + "psnr_db": 89.2955159, + "ref_absmax": 190.032486, + "rel_max": 0.00264822202, + "scaled_max_abs": 0.00264822202 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_7_cast_fp16" + }, + "status": "fail", + "tap": "net.features.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 102.786363, + "index": 2, + "metrics": { + "corr": 0.999955391, + "finite": true, + "max_abs": 0.467163086, + "mean_abs": 0.0108745644, + "psnr_db": 70.7611788, + "ref_absmax": 45.4499092, + "rel_max": 0.0102786363, + "scaled_max_abs": 0.0102786363 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_27_cast_fp16" + }, + "status": "fail", + "tap": "net.features.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 106.091941, + "index": 3, + "metrics": { + "corr": 0.999939329, + "finite": true, + "max_abs": 0.274743319, + "mean_abs": 0.0150893866, + "psnr_db": 65.8230603, + "ref_absmax": 25.896719, + "rel_max": 0.0106091941, + "scaled_max_abs": 0.0106091941 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_43_cast_fp16" + }, + "status": "fail", + "tap": "net.features.2", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 219.511544, + "index": 4, + "metrics": { + "corr": 0.999841065, + "finite": true, + "max_abs": 0.564396858, + "mean_abs": 0.0266718961, + "psnr_db": 62.2128125, + "ref_absmax": 25.7114887, + "rel_max": 0.0219511544, + "scaled_max_abs": 0.0219511544 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59_cast_fp16" + }, + "status": "fail", + "tap": "net.features.3", + "worst_probe": { + "category": "natural", + "index": 5 + } + }, + { + "band_ratio": 122.644963, + "index": 5, + "metrics": { + "corr": 0.999799843, + "finite": true, + "max_abs": 0.209820509, + "mean_abs": 0.0157979565, + "psnr_db": 61.8903255, + "ref_absmax": 17.1079597, + "rel_max": 0.0122644963, + "scaled_max_abs": 0.0122644963 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85_cast_fp16" + }, + "status": "fail", + "tap": "net.features.4", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_ratio": 214.109624, + "index": 6, + "metrics": { + "corr": 0.999504987, + "finite": true, + "max_abs": 0.477863312, + "mean_abs": 0.0243805949, + "psnr_db": 59.3153124, + "ref_absmax": 22.3186283, + "rel_max": 0.0214109624, + "scaled_max_abs": 0.0214109624 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_111_cast_fp16" + }, + "status": "fail", + "tap": "net.features.5", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_ratio": 112.218713, + "index": 7, + "metrics": { + "corr": 0.999850861, + "finite": true, + "max_abs": 0.704397678, + "mean_abs": 0.039895837, + "psnr_db": 65.3544562, + "ref_absmax": 62.7700729, + "rel_max": 0.0112218713, + "scaled_max_abs": 0.0112218713 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_137_cast_fp16" + }, + "status": "fail", + "tap": "net.features.6", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + }, + { + "band_ratio": 196.969375, + "index": 8, + "metrics": { + "corr": 0.999595316, + "finite": true, + "max_abs": 0.407417655, + "mean_abs": 0.0218482537, + "psnr_db": 61.0318832, + "ref_absmax": 20.6843147, + "rel_max": 0.0196969375, + "scaled_max_abs": 0.0196969375 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_163_cast_fp16" + }, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_ratio": 250.834797, + "index": 9, + "metrics": { + "corr": 0.999493234, + "finite": true, + "max_abs": 0.487973213, + "mean_abs": 0.0272460814, + "psnr_db": 59.0074803, + "ref_absmax": 19.453968, + "rel_max": 0.0250834797, + "scaled_max_abs": 0.0250834797 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_189_cast_fp16" + }, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_ratio": 477.444673, + "index": 10, + "metrics": { + "corr": 0.999143776, + "finite": true, + "max_abs": 0.166851461, + "mean_abs": 0.011929511, + "psnr_db": 51.0183146, + "ref_absmax": 3.49467635, + "rel_max": 0.0477444673, + "scaled_max_abs": 0.0477444673 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_215_cast_fp16" + }, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 620.57687, + "index": 11, + "metrics": { + "corr": 0.998980348, + "finite": true, + "max_abs": 0.232064664, + "mean_abs": 0.0157052516, + "psnr_db": 49.3870164, + "ref_absmax": 3.73949909, + "rel_max": 0.062057687, + "scaled_max_abs": 0.062057687 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_241_cast_fp16" + }, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 979.95766, + "index": 12, + "metrics": { + "corr": 0.998920477, + "finite": true, + "max_abs": 0.444393635, + "mean_abs": 0.0186522474, + "psnr_db": 49.5043399, + "ref_absmax": 4.53482485, + "rel_max": 0.097995766, + "scaled_max_abs": 0.097995766 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_267_cast_fp16" + }, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 787.246723, + "index": 13, + "metrics": { + "corr": 0.998558604, + "finite": true, + "max_abs": 0.795100451, + "mean_abs": 0.0110715953, + "psnr_db": 52.0070134, + "ref_absmax": 10.099762, + "rel_max": 0.0787246723, + "scaled_max_abs": 0.0787246723 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_273_cast_fp16" + }, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_ratio": 593.494378, + "index": 14, + "metrics": { + "corr": 0.999059493, + "finite": true, + "max_abs": 0.311341763, + "mean_abs": 0.00688124836, + "psnr_db": 50.5326651, + "ref_absmax": 5.24590921, + "rel_max": 0.0593494378, + "scaled_max_abs": 0.0593494378 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 447.572937, + "index": 15, + "metrics": { + "corr": 0.999234982, + "finite": true, + "max_abs": 1.09139347, + "mean_abs": 0.0600417178, + "psnr_db": 50.1867257, + "ref_absmax": 24.3847065, + "rel_max": 0.0447572937, + "scaled_max_abs": 0.0447572937 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 292.044884, + "metrics": { + "corr": 0.99960838, + "finite": true, + "max_abs": 0.526415348, + "mean_abs": 0.0415014574, + "psnr_db": 51.9897065, + "ref_absmax": 18.0251522, + "rel_max": 0.0292044884, + "scaled_max_abs": 0.0292044884 + }, + "status": "fail", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + }, + "first_fail_index": 0, + "n_judged": 16, + "n_taps": 16, + "taps": [ + { + "band_ratio": 11.6213884, + "index": 0, + "metrics": { + "corr": 0.999999912, + "finite": true, + "max_abs": 0.0133981705, + "mean_abs": 0.000679588388, + "psnr_db": 83.6184843, + "ref_absmax": 11.5288897, + "rel_max": 0.00116213884, + "scaled_max_abs": 0.00116213884 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "status": "fail", + "tap": "normalize", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 33.139093, + "index": 1, + "metrics": { + "corr": 0.999998561, + "finite": true, + "max_abs": 0.560178757, + "mean_abs": 0.00245733429, + "psnr_db": 88.488319, + "ref_absmax": 169.038651, + "rel_max": 0.0033139093, + "scaled_max_abs": 0.0033139093 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_7_cast_fp16" + }, + "status": "fail", + "tap": "net.features.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 109.594004, + "index": 2, + "metrics": { + "corr": 0.999947809, + "finite": true, + "max_abs": 0.489273071, + "mean_abs": 0.0109243768, + "psnr_db": 70.0800625, + "ref_absmax": 44.644146, + "rel_max": 0.0109594004, + "scaled_max_abs": 0.0109594004 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_27_cast_fp16" + }, + "status": "fail", + "tap": "net.features.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 100.240612, + "index": 3, + "metrics": { + "corr": 0.999928562, + "finite": true, + "max_abs": 0.306883574, + "mean_abs": 0.0154189054, + "psnr_db": 66.8123424, + "ref_absmax": 30.6146946, + "rel_max": 0.0100240612, + "scaled_max_abs": 0.0100240612 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_43_cast_fp16" + }, + "status": "fail", + "tap": "net.features.2", + "worst_probe": { + "category": "natural", + "index": 6 + } + }, + { + "band_ratio": 173.739321, + "index": 4, + "metrics": { + "corr": 0.999826151, + "finite": true, + "max_abs": 0.454617977, + "mean_abs": 0.0275043068, + "psnr_db": 61.9146954, + "ref_absmax": 26.1666718, + "rel_max": 0.0173739321, + "scaled_max_abs": 0.0173739321 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59_cast_fp16" + }, + "status": "fail", + "tap": "net.features.3", + "worst_probe": { + "category": "natural", + "index": 13 + } + }, + { + "band_ratio": 103.29661, + "index": 5, + "metrics": { + "corr": 0.99979303, + "finite": true, + "max_abs": 0.201439619, + "mean_abs": 0.016404368, + "psnr_db": 62.6750818, + "ref_absmax": 19.5010872, + "rel_max": 0.010329661, + "scaled_max_abs": 0.010329661 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85_cast_fp16" + }, + "status": "fail", + "tap": "net.features.4", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_ratio": 135.37173, + "index": 6, + "metrics": { + "corr": 0.999513853, + "finite": true, + "max_abs": 0.406739235, + "mean_abs": 0.0253501789, + "psnr_db": 61.2191237, + "ref_absmax": 30.0460987, + "rel_max": 0.013537173, + "scaled_max_abs": 0.013537173 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_111_cast_fp16" + }, + "status": "fail", + "tap": "net.features.5", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_ratio": 90.3408956, + "index": 7, + "metrics": { + "corr": 0.999871662, + "finite": true, + "max_abs": 0.611428976, + "mean_abs": 0.0359328223, + "psnr_db": 67.7936158, + "ref_absmax": 67.6801987, + "rel_max": 0.00903408956, + "scaled_max_abs": 0.00903408956 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_137_cast_fp16" + }, + "status": "fail", + "tap": "net.features.6", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + }, + { + "band_ratio": 213.995931, + "index": 8, + "metrics": { + "corr": 0.999559127, + "finite": true, + "max_abs": 0.369894862, + "mean_abs": 0.0213631066, + "psnr_db": 60.1058239, + "ref_absmax": 17.2851353, + "rel_max": 0.0213995931, + "scaled_max_abs": 0.0213995931 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_163_cast_fp16" + }, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_ratio": 282.643785, + "index": 9, + "metrics": { + "corr": 0.999500951, + "finite": true, + "max_abs": 0.472660661, + "mean_abs": 0.0256925706, + "psnr_db": 58.5906151, + "ref_absmax": 16.7228394, + "rel_max": 0.0282643785, + "scaled_max_abs": 0.0282643785 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_189_cast_fp16" + }, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_ratio": 667.671518, + "index": 10, + "metrics": { + "corr": 0.999401345, + "finite": true, + "max_abs": 0.180789143, + "mean_abs": 0.0101991881, + "psnr_db": 50.6690645, + "ref_absmax": 2.7077558, + "rel_max": 0.0667671518, + "scaled_max_abs": 0.0667671518 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_215_cast_fp16" + }, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + }, + { + "band_ratio": 689.930567, + "index": 11, + "metrics": { + "corr": 0.999307124, + "finite": true, + "max_abs": 0.226667628, + "mean_abs": 0.0133321, + "psnr_db": 49.4267834, + "ref_absmax": 3.28536868, + "rel_max": 0.0689930567, + "scaled_max_abs": 0.0689930567 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_241_cast_fp16" + }, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + }, + { + "band_ratio": 735.911813, + "index": 12, + "metrics": { + "corr": 0.999328651, + "finite": true, + "max_abs": 0.292126656, + "mean_abs": 0.015667708, + "psnr_db": 49.913118, + "ref_absmax": 3.9695878, + "rel_max": 0.0735911813, + "scaled_max_abs": 0.0735911813 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_267_cast_fp16" + }, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + }, + { + "band_ratio": 1113.51399, + "index": 13, + "metrics": { + "corr": 0.999259846, + "finite": true, + "max_abs": 1.0309, + "mean_abs": 0.00853840335, + "psnr_db": 54.55654, + "ref_absmax": 9.25807858, + "rel_max": 0.111351399, + "scaled_max_abs": 0.111351399 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_273_cast_fp16" + }, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "near_zero", + "index": 27 + } + }, + { + "band_ratio": 395.019842, + "index": 14, + "metrics": { + "corr": 0.999594702, + "finite": true, + "max_abs": 0.204995692, + "mean_abs": 0.0047363485, + "psnr_db": 54.3473048, + "ref_absmax": 5.18950367, + "rel_max": 0.0395019842, + "scaled_max_abs": 0.0395019842 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + }, + { + "band_ratio": 292.044884, + "index": 15, + "metrics": { + "corr": 0.99960838, + "finite": true, + "max_abs": 0.526415348, + "mean_abs": 0.0415014574, + "psnr_db": 51.9897065, + "ref_absmax": 18.0251522, + "rel_max": 0.0292044884, + "scaled_max_abs": 0.0292044884 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp16", + "id": "mobilenet_v3_small__fp16_as_fp32__coreml", + "model": "mobilenet_v3_small", + "path": "coreml", + "variant": "fp16_as_fp32" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/mobilenet_v3_small__fp16_as_fp32__litert.json b/bench/verdicts_e2e_gated/mobilenet_v3_small__fp16_as_fp32__litert.json new file mode 100644 index 0000000000000000000000000000000000000000..28fd0c548e457cd6c19254bcbc43f5bec2101ebe --- /dev/null +++ b/bench/verdicts_e2e_gated/mobilenet_v3_small__fp16_as_fp32__litert.json @@ -0,0 +1,1182 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": "artifact computes in fp16 (declared fp32); the drift onset (net.features.0) is the size fp16 explains: distributed precision drift, not a single-op fault; note: taps over the fp16 band too: ['net.features.7', 'net.features.8', 'net.features.9', 'net.features.10', 'net.features.11', 'net.features.12', 'net.avgpool', 'net.classifier']", + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "net.features.0", + "explained_by": null, + "nominal_band_ratio": 3.30068449, + "results": [ + { + "band_ratio": 4948.63044, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 7750.80647, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 46508.8833, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 9825.58418, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 35229.9106, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 0.0819612491, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000147819519, + "mean_abs": 7.12326743e-06, + "psnr_db": 125.094877, + "ref_absmax": 18.0352936, + "rel_max": 8.19612491e-06, + "scaled_max_abs": 8.19612491e-06 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 116, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 1, + "n_ops_total": 169, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp32", + "first_divergence": { + "basis": "artifact computes in fp16 (declared fp32); the drift onset (net.features.0) is the size fp16 explains: distributed precision drift, not a single-op fault; note: taps over the fp16 band too: ['net.features.7', 'net.features.8', 'net.features.9', 'net.features.10', 'net.features.11', 'net.features.12', 'net.avgpool', 'net.classifier']", + "index": null, + "onset": { + "index": 1, + "tap": "net.features.0" + }, + "shape": 224, + "tap": null + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "c1e0d3f6eacceb0f07eea7aaf062f75a642b665785bf323c4ed798c4c424167a", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "e68287c6bf447d1c5af1840f2957e8f25a438b576d35374a5a1e6bfa57051ad5", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D1", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 347.403663, + "metrics": { + "corr": 0.999796187, + "finite": true, + "max_abs": 0.847133636, + "mean_abs": 0.020741918, + "psnr_db": 55.7641027, + "ref_absmax": 24.3847065, + "rel_max": 0.0347403663, + "scaled_max_abs": 0.0347403663 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 1, + "n_judged": 16, + "n_taps": 16, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.26638033e-08, + "psnr_db": 163.904618, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 9.15032087, + "index": 1, + "metrics": { + "corr": 0.999999786, + "finite": true, + "max_abs": 0.173885822, + "mean_abs": 0.000502268084, + "psnr_db": 96.9119524, + "ref_absmax": 190.032486, + "rel_max": 0.000915032087, + "scaled_max_abs": 0.000915032087 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_0/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "fail", + "tap": "net.features.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7.27773511, + "index": 2, + "metrics": { + "corr": 0.999999501, + "finite": true, + "max_abs": 0.03307724, + "mean_abs": 0.00172972956, + "psnr_db": 89.9446481, + "ref_absmax": 45.4499092, + "rel_max": 0.000727773511, + "scaled_max_abs": 0.000727773511 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_1/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 15.302635, + "index": 3, + "metrics": { + "corr": 0.99999802, + "finite": true, + "max_abs": 0.0396288037, + "mean_abs": 0.00251701601, + "psnr_db": 80.5863503, + "ref_absmax": 25.896719, + "rel_max": 0.0015302635, + "scaled_max_abs": 0.0015302635 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_2/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.2", + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 24.4577705, + "index": 4, + "metrics": { + "corr": 0.999994624, + "finite": true, + "max_abs": 0.0628845692, + "mean_abs": 0.00432135067, + "psnr_db": 76.8433382, + "ref_absmax": 25.7114887, + "rel_max": 0.00244577705, + "scaled_max_abs": 0.00244577705 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_3;" + }, + "status": "fail", + "tap": "net.features.3", + "worst_probe": { + "category": "wide_range", + "index": 22 + } + }, + { + "band_ratio": 27.3230174, + "index": 5, + "metrics": { + "corr": 0.999981879, + "finite": true, + "max_abs": 0.0467441082, + "mean_abs": 0.0038035588, + "psnr_db": 72.274713, + "ref_absmax": 17.1079597, + "rel_max": 0.00273230174, + "scaled_max_abs": 0.00273230174 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_4/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.4", + "worst_probe": { + "category": "wide_range", + "index": 20 + } + }, + { + "band_ratio": 40.3152459, + "index": 6, + "metrics": { + "corr": 0.999956004, + "finite": true, + "max_abs": 0.0899780989, + "mean_abs": 0.00600733947, + "psnr_db": 69.8085829, + "ref_absmax": 22.3186283, + "rel_max": 0.00403152459, + "scaled_max_abs": 0.00403152459 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_5;" + }, + "status": "fail", + "tap": "net.features.5", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_ratio": 39.4882259, + "index": 7, + "metrics": { + "corr": 0.999974444, + "finite": true, + "max_abs": 0.247867882, + "mean_abs": 0.0121702154, + "psnr_db": 73.0406073, + "ref_absmax": 62.7700729, + "rel_max": 0.00394882259, + "scaled_max_abs": 0.00394882259 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_6;" + }, + "status": "fail", + "tap": "net.features.6", + "worst_probe": { + "category": "wide_range", + "index": 23 + } + }, + { + "band_ratio": 142.171571, + "index": 8, + "metrics": { + "corr": 0.999941634, + "finite": true, + "max_abs": 0.294072151, + "mean_abs": 0.00577465295, + "psnr_db": 69.3943408, + "ref_absmax": 20.6843147, + "rel_max": 0.0142171571, + "scaled_max_abs": 0.0142171571 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_7/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 174.337408, + "index": 9, + "metrics": { + "corr": 0.999916718, + "finite": true, + "max_abs": 0.339155436, + "mean_abs": 0.00756068161, + "psnr_db": 66.8769751, + "ref_absmax": 19.453968, + "rel_max": 0.0174337408, + "scaled_max_abs": 0.0174337408 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_8;" + }, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 426.980192, + "index": 10, + "metrics": { + "corr": 0.999817604, + "finite": true, + "max_abs": 0.149215758, + "mean_abs": 0.00381537326, + "psnr_db": 57.7094961, + "ref_absmax": 3.49467635, + "rel_max": 0.0426980192, + "scaled_max_abs": 0.0426980192 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_9/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 518.188833, + "index": 11, + "metrics": { + "corr": 0.9998211, + "finite": true, + "max_abs": 0.193776667, + "mean_abs": 0.00464179122, + "psnr_db": 56.9399931, + "ref_absmax": 3.73949909, + "rel_max": 0.0518188833, + "scaled_max_abs": 0.0518188833 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_10;" + }, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 764.62924, + "index": 12, + "metrics": { + "corr": 0.999749585, + "finite": true, + "max_abs": 0.346745968, + "mean_abs": 0.00595789127, + "psnr_db": 55.8434454, + "ref_absmax": 4.53482485, + "rel_max": 0.076462924, + "scaled_max_abs": 0.076462924 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_11;" + }, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 632.643266, + "index": 13, + "metrics": { + "corr": 0.999553138, + "finite": true, + "max_abs": 0.638954639, + "mean_abs": 0.00377065967, + "psnr_db": 57.0997046, + "ref_absmax": 10.099762, + "rel_max": 0.0632643266, + "scaled_max_abs": 0.0632643266 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_12/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 392.971952, + "index": 14, + "metrics": { + "corr": 0.999735141, + "finite": true, + "max_abs": 0.206149518, + "mean_abs": 0.00252011111, + "psnr_db": 56.0422076, + "ref_absmax": 5.24590921, + "rel_max": 0.0392971952, + "scaled_max_abs": 0.0392971952 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;;zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Seque" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 347.403663, + "index": 15, + "metrics": { + "corr": 0.999796187, + "finite": true, + "max_abs": 0.847133636, + "mean_abs": 0.020741918, + "psnr_db": 55.7641027, + "ref_absmax": 24.3847065, + "rel_max": 0.0347403663, + "scaled_max_abs": 0.0347403663 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.90625, + "band_ratio": 271.596083, + "metrics": { + "corr": 0.999929741, + "finite": true, + "max_abs": 0.489556074, + "mean_abs": 0.0129197023, + "psnr_db": 59.4536219, + "ref_absmax": 18.0251522, + "rel_max": 0.0271596083, + "scaled_max_abs": 0.0271596083 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 1, + "n_judged": 16, + "n_taps": 16, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.2793459e-08, + "psnr_db": 164.013874, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 8.68202319, + "index": 1, + "metrics": { + "corr": 0.999999767, + "finite": true, + "max_abs": 0.146759748, + "mean_abs": 0.000503267604, + "psnr_db": 96.0452891, + "ref_absmax": 169.038651, + "rel_max": 0.000868202319, + "scaled_max_abs": 0.000868202319 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_0/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "fail", + "tap": "net.features.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7.55872648, + "index": 2, + "metrics": { + "corr": 0.999999435, + "finite": true, + "max_abs": 0.0337452888, + "mean_abs": 0.00172548561, + "psnr_db": 89.4320948, + "ref_absmax": 44.644146, + "rel_max": 0.000755872648, + "scaled_max_abs": 0.000755872648 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_1/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 12.7885996, + "index": 3, + "metrics": { + "corr": 0.999997629, + "finite": true, + "max_abs": 0.039151907, + "mean_abs": 0.00258047824, + "psnr_db": 81.5125813, + "ref_absmax": 30.6146946, + "rel_max": 0.00127885996, + "scaled_max_abs": 0.00127885996 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_2/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.2", + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 27.9809812, + "index": 4, + "metrics": { + "corr": 0.999994277, + "finite": true, + "max_abs": 0.0732169151, + "mean_abs": 0.00442955329, + "psnr_db": 76.6613702, + "ref_absmax": 26.1666718, + "rel_max": 0.00279809812, + "scaled_max_abs": 0.00279809812 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_3;" + }, + "status": "fail", + "tap": "net.features.3", + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_ratio": 28.9036457, + "index": 5, + "metrics": { + "corr": 0.999980992, + "finite": true, + "max_abs": 0.0563652515, + "mean_abs": 0.00400878569, + "psnr_db": 72.9879694, + "ref_absmax": 19.5010872, + "rel_max": 0.00289036457, + "scaled_max_abs": 0.00289036457 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_4/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.4", + "worst_probe": { + "category": "wide_range", + "index": 22 + } + }, + { + "band_ratio": 31.0832262, + "index": 6, + "metrics": { + "corr": 0.999956355, + "finite": true, + "max_abs": 0.0933929682, + "mean_abs": 0.00625826495, + "psnr_db": 71.6653247, + "ref_absmax": 30.0460987, + "rel_max": 0.00310832262, + "scaled_max_abs": 0.00310832262 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_5;" + }, + "status": "fail", + "tap": "net.features.5", + "worst_probe": { + "category": "near_zero", + "index": 27 + } + }, + { + "band_ratio": 29.2023152, + "index": 7, + "metrics": { + "corr": 0.999987205, + "finite": true, + "max_abs": 0.19764185, + "mean_abs": 0.00882840116, + "psnr_db": 77.7884462, + "ref_absmax": 67.6801987, + "rel_max": 0.00292023152, + "scaled_max_abs": 0.00292023152 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_6;" + }, + "status": "fail", + "tap": "net.features.6", + "worst_probe": { + "category": "wide_range", + "index": 20 + } + }, + { + "band_ratio": 169.154072, + "index": 8, + "metrics": { + "corr": 0.999942873, + "finite": true, + "max_abs": 0.292385101, + "mean_abs": 0.00539707911, + "psnr_db": 68.9160235, + "ref_absmax": 17.2851353, + "rel_max": 0.0169154072, + "scaled_max_abs": 0.0169154072 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_7/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 238.189477, + "index": 9, + "metrics": { + "corr": 0.999929405, + "finite": true, + "max_abs": 0.398320436, + "mean_abs": 0.00659560857, + "psnr_db": 67.0793221, + "ref_absmax": 16.7228394, + "rel_max": 0.0238189477, + "scaled_max_abs": 0.0238189477 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_8;" + }, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 386.260521, + "index": 10, + "metrics": { + "corr": 0.99987447, + "finite": true, + "max_abs": 0.104589917, + "mean_abs": 0.0031962443, + "psnr_db": 57.4378382, + "ref_absmax": 2.7077558, + "rel_max": 0.0386260521, + "scaled_max_abs": 0.0386260521 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_9/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 426.017801, + "index": 11, + "metrics": { + "corr": 0.999873544, + "finite": true, + "max_abs": 0.139962554, + "mean_abs": 0.00412300785, + "psnr_db": 56.8254194, + "ref_absmax": 3.28536868, + "rel_max": 0.0426017801, + "scaled_max_abs": 0.0426017801 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_10;" + }, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 543.799083, + "index": 12, + "metrics": { + "corr": 0.999847259, + "finite": true, + "max_abs": 0.215865821, + "mean_abs": 0.00501177022, + "psnr_db": 56.3378385, + "ref_absmax": 3.9695878, + "rel_max": 0.0543799083, + "scaled_max_abs": 0.0543799083 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_11;" + }, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 775.258635, + "index": 13, + "metrics": { + "corr": 0.999759024, + "finite": true, + "max_abs": 0.717740536, + "mean_abs": 0.00289672989, + "psnr_db": 59.4037277, + "ref_absmax": 9.25807858, + "rel_max": 0.0775258635, + "scaled_max_abs": 0.0775258635 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_12/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 267.350447, + "index": 14, + "metrics": { + "corr": 0.999878283, + "finite": true, + "max_abs": 0.138741612, + "mean_abs": 0.001866989, + "psnr_db": 59.520476, + "ref_absmax": 5.18950367, + "rel_max": 0.0267350447, + "scaled_max_abs": 0.0267350447 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;;zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Seque" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 271.596083, + "index": 15, + "metrics": { + "corr": 0.999929741, + "finite": true, + "max_abs": 0.489556074, + "mean_abs": 0.0129197023, + "psnr_db": 59.4536219, + "ref_absmax": 18.0251522, + "rel_max": 0.0271596083, + "scaled_max_abs": 0.0271596083 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp16", + "id": "mobilenet_v3_small__fp16_as_fp32__litert", + "model": "mobilenet_v3_small", + "path": "litert", + "variant": "fp16_as_fp32" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/mobilenet_v3_small__fp16_as_fp32__onnx.json b/bench/verdicts_e2e_gated/mobilenet_v3_small__fp16_as_fp32__onnx.json new file mode 100644 index 0000000000000000000000000000000000000000..6e69910501758520942bc80e62bce54334201e52 --- /dev/null +++ b/bench/verdicts_e2e_gated/mobilenet_v3_small__fp16_as_fp32__onnx.json @@ -0,0 +1,1031 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": "artifact computes in fp16 (declared fp32); the drift onset (normalize) is the size fp16 explains: distributed precision drift, not a single-op fault; note: taps over the fp16 band too: ['net.features.7', 'net.features.8', 'net.features.9', 'net.features.10', 'net.features.11', 'net.features.12', 'net.avgpool', 'net.classifier']", + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "normalize", + "explained_by": null, + "nominal_band_ratio": 5.61457669, + "results": [ + { + "band_ratio": 16837.3835, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 8136.66388, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 20992.2062, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 16908.0588, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 21191.8018, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp32", + "first_divergence": { + "basis": "artifact computes in fp16 (declared fp32); the drift onset (normalize) is the size fp16 explains: distributed precision drift, not a single-op fault; note: taps over the fp16 band too: ['net.features.7', 'net.features.8', 'net.features.9', 'net.features.10', 'net.features.11', 'net.features.12', 'net.avgpool', 'net.classifier']", + "index": null, + "onset": { + "index": 0, + "tap": "normalize" + }, + "shape": 224, + "tap": null + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "0f5c1e94183c9903ece898f192769178a20e4556d20c0b1ef4fc23502e5893f5", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "8ce44e6b921ee910b6c36de85b86a9608df76e3c1728f56afa10f6f5dd60ae3c", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D1", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 310.759602, + "metrics": { + "corr": 0.999689586, + "finite": true, + "max_abs": 0.757778168, + "mean_abs": 0.0324179629, + "psnr_db": 54.0300036, + "ref_absmax": 24.3847065, + "rel_max": 0.0310759602, + "scaled_max_abs": 0.0310759602 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 0, + "n_judged": 16, + "n_taps": 16, + "taps": [ + { + "band_ratio": 4.41313312, + "index": 0, + "metrics": { + "corr": 0.999999966, + "finite": true, + "max_abs": 0.00508785248, + "mean_abs": 0.000405953078, + "psnr_db": 88.0186903, + "ref_absmax": 11.5288897, + "rel_max": 0.000441313312, + "scaled_max_abs": 0.000441313312 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "fail", + "tap": "normalize", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9.08058909, + "index": 1, + "metrics": { + "corr": 0.999999747, + "finite": true, + "max_abs": 0.172560692, + "mean_abs": 0.000883766055, + "psnr_db": 96.2909345, + "ref_absmax": 190.032486, + "rel_max": 0.000908058909, + "scaled_max_abs": 0.000908058909 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.0/features.0.2/HardSwish_output_0" + }, + "status": "fail", + "tap": "net.features.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7.26273228, + "index": 2, + "metrics": { + "corr": 0.99999925, + "finite": true, + "max_abs": 0.0330090523, + "mean_abs": 0.0021913404, + "psnr_db": 88.346094, + "ref_absmax": 45.4499092, + "rel_max": 0.000726273228, + "scaled_max_abs": 0.000726273228 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.1/block/block.2/block.2.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 19.2673754, + "index": 3, + "metrics": { + "corr": 0.99999661, + "finite": true, + "max_abs": 0.0498961806, + "mean_abs": 0.00335121535, + "psnr_db": 78.3312341, + "ref_absmax": 25.896719, + "rel_max": 0.00192673754, + "scaled_max_abs": 0.00192673754 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.2/block/block.2/block.2.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.2", + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 28.1512363, + "index": 4, + "metrics": { + "corr": 0.999992632, + "finite": true, + "max_abs": 0.0723810196, + "mean_abs": 0.00526209009, + "psnr_db": 75.4762491, + "ref_absmax": 25.7114887, + "rel_max": 0.00281512363, + "scaled_max_abs": 0.00281512363 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.3/Add_output_0" + }, + "status": "fail", + "tap": "net.features.3", + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 47.6705887, + "index": 5, + "metrics": { + "corr": 0.999968504, + "finite": true, + "max_abs": 0.0815546513, + "mean_abs": 0.00506719657, + "psnr_db": 69.8638336, + "ref_absmax": 17.1079597, + "rel_max": 0.00476705887, + "scaled_max_abs": 0.00476705887 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.4/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.4", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + }, + { + "band_ratio": 53.3482606, + "index": 6, + "metrics": { + "corr": 0.999933184, + "finite": true, + "max_abs": 0.119066, + "mean_abs": 0.00772219183, + "psnr_db": 67.9874935, + "ref_absmax": 22.3186283, + "rel_max": 0.00533482606, + "scaled_max_abs": 0.00533482606 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.5/Add_output_0" + }, + "status": "fail", + "tap": "net.features.5", + "worst_probe": { + "category": "wide_range", + "index": 23 + } + }, + { + "band_ratio": 81.3875363, + "index": 7, + "metrics": { + "corr": 0.999911881, + "finite": true, + "max_abs": 0.510870159, + "mean_abs": 0.0200473288, + "psnr_db": 67.667567, + "ref_absmax": 62.7700729, + "rel_max": 0.00813875363, + "scaled_max_abs": 0.00813875363 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.6/Add_output_0" + }, + "status": "fail", + "tap": "net.features.6", + "worst_probe": { + "category": "wide_range", + "index": 23 + } + }, + { + "band_ratio": 122.162419, + "index": 8, + "metrics": { + "corr": 0.999899008, + "finite": true, + "max_abs": 0.252684593, + "mean_abs": 0.00816732899, + "psnr_db": 67.0492169, + "ref_absmax": 20.6843147, + "rel_max": 0.0122162419, + "scaled_max_abs": 0.0122162419 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.7/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 198.082609, + "index": 9, + "metrics": { + "corr": 0.999808898, + "finite": true, + "max_abs": 0.385349274, + "mean_abs": 0.0114271704, + "psnr_db": 63.2680365, + "ref_absmax": 19.453968, + "rel_max": 0.0198082609, + "scaled_max_abs": 0.0198082609 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.8/Add_output_0" + }, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "wide_range", + "index": 23 + } + }, + { + "band_ratio": 376.845229, + "index": 10, + "metrics": { + "corr": 0.999601539, + "finite": true, + "max_abs": 0.131695211, + "mean_abs": 0.00601521229, + "psnr_db": 54.3157289, + "ref_absmax": 3.49467635, + "rel_max": 0.0376845229, + "scaled_max_abs": 0.0376845229 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.9/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 449.988479, + "index": 11, + "metrics": { + "corr": 0.999634288, + "finite": true, + "max_abs": 0.168273151, + "mean_abs": 0.00733745012, + "psnr_db": 53.8422497, + "ref_absmax": 3.73949909, + "rel_max": 0.0449988479, + "scaled_max_abs": 0.0449988479 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.10/Add_output_0" + }, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 678.471375, + "index": 12, + "metrics": { + "corr": 0.999579659, + "finite": true, + "max_abs": 0.307674885, + "mean_abs": 0.00914591375, + "psnr_db": 53.5889895, + "ref_absmax": 4.53482485, + "rel_max": 0.0678471375, + "scaled_max_abs": 0.0678471375 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.11/Add_output_0" + }, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 552.412343, + "index": 13, + "metrics": { + "corr": 0.999361157, + "finite": true, + "max_abs": 0.557923317, + "mean_abs": 0.00560181436, + "psnr_db": 55.5456197, + "ref_absmax": 10.099762, + "rel_max": 0.0552412343, + "scaled_max_abs": 0.0552412343 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.12/features.12.2/HardSwish_output_0" + }, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 352.594163, + "index": 14, + "metrics": { + "corr": 0.999557957, + "finite": true, + "max_abs": 0.184967697, + "mean_abs": 0.00389058194, + "psnr_db": 53.8034433, + "ref_absmax": 5.24590921, + "rel_max": 0.0352594163, + "scaled_max_abs": 0.0352594163 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 310.759602, + "index": 15, + "metrics": { + "corr": 0.999689586, + "finite": true, + "max_abs": 0.757778168, + "mean_abs": 0.0324179629, + "psnr_db": 54.0300036, + "ref_absmax": 24.3847065, + "rel_max": 0.0310759602, + "scaled_max_abs": 0.0310759602 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 216.154874, + "metrics": { + "corr": 0.999892736, + "finite": true, + "max_abs": 0.38962245, + "mean_abs": 0.0207615408, + "psnr_db": 57.5998751, + "ref_absmax": 18.0251522, + "rel_max": 0.0216154874, + "scaled_max_abs": 0.0216154874 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 0, + "n_judged": 16, + "n_taps": 16, + "taps": [ + { + "band_ratio": 4.39328023, + "index": 0, + "metrics": { + "corr": 0.999999965, + "finite": true, + "max_abs": 0.00506496429, + "mean_abs": 0.000406712054, + "psnr_db": 88.0749992, + "ref_absmax": 11.5288897, + "rel_max": 0.000439328023, + "scaled_max_abs": 0.000439328023 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "fail", + "tap": "normalize", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 8.67140259, + "index": 1, + "metrics": { + "corr": 0.999999726, + "finite": true, + "max_abs": 0.146580219, + "mean_abs": 0.000882941117, + "psnr_db": 95.4408227, + "ref_absmax": 169.038651, + "rel_max": 0.000867140259, + "scaled_max_abs": 0.000867140259 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.0/features.0.2/HardSwish_output_0" + }, + "status": "fail", + "tap": "net.features.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7.45469506, + "index": 2, + "metrics": { + "corr": 0.999999152, + "finite": true, + "max_abs": 0.0332808495, + "mean_abs": 0.00218689379, + "psnr_db": 87.8352672, + "ref_absmax": 44.644146, + "rel_max": 0.000745469506, + "scaled_max_abs": 0.000745469506 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.1/block/block.2/block.2.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 15.5432319, + "index": 3, + "metrics": { + "corr": 0.999995967, + "finite": true, + "max_abs": 0.0475851297, + "mean_abs": 0.00342715191, + "psnr_db": 79.2772077, + "ref_absmax": 30.6146946, + "rel_max": 0.00155432319, + "scaled_max_abs": 0.00155432319 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.2/block/block.2/block.2.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.2", + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 29.0781924, + "index": 4, + "metrics": { + "corr": 0.999991914, + "finite": true, + "max_abs": 0.0760879517, + "mean_abs": 0.00542803163, + "psnr_db": 75.1554022, + "ref_absmax": 26.1666718, + "rel_max": 0.00290781924, + "scaled_max_abs": 0.00290781924 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.3/Add_output_0" + }, + "status": "fail", + "tap": "net.features.3", + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 45.99975, + "index": 5, + "metrics": { + "corr": 0.99996609, + "finite": true, + "max_abs": 0.0897045135, + "mean_abs": 0.00541450367, + "psnr_db": 70.4385356, + "ref_absmax": 19.5010872, + "rel_max": 0.004599975, + "scaled_max_abs": 0.004599975 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.4/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.4", + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_ratio": 37.1252835, + "index": 6, + "metrics": { + "corr": 0.999930178, + "finite": true, + "max_abs": 0.111546993, + "mean_abs": 0.00825263387, + "psnr_db": 69.5801725, + "ref_absmax": 30.0460987, + "rel_max": 0.00371252835, + "scaled_max_abs": 0.00371252835 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.5/Add_output_0" + }, + "status": "fail", + "tap": "net.features.5", + "worst_probe": { + "category": "wide_range", + "index": 21 + } + }, + { + "band_ratio": 44.6367729, + "index": 7, + "metrics": { + "corr": 0.99997663, + "finite": true, + "max_abs": 0.302102566, + "mean_abs": 0.0119582523, + "psnr_db": 75.166003, + "ref_absmax": 67.6801987, + "rel_max": 0.00446367729, + "scaled_max_abs": 0.00446367729 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.6/Add_output_0" + }, + "status": "fail", + "tap": "net.features.6", + "worst_probe": { + "category": "wide_range", + "index": 22 + } + }, + { + "band_ratio": 124.98691, + "index": 8, + "metrics": { + "corr": 0.999928619, + "finite": true, + "max_abs": 0.216041565, + "mean_abs": 0.0069844028, + "psnr_db": 67.9933993, + "ref_absmax": 17.2851353, + "rel_max": 0.012498691, + "scaled_max_abs": 0.012498691 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.7/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 183.309478, + "index": 9, + "metrics": { + "corr": 0.999903542, + "finite": true, + "max_abs": 0.306545496, + "mean_abs": 0.0089378061, + "psnr_db": 65.732113, + "ref_absmax": 16.7228394, + "rel_max": 0.0183309478, + "scaled_max_abs": 0.0183309478 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.8/Add_output_0" + }, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 298.509586, + "index": 10, + "metrics": { + "corr": 0.999829019, + "finite": true, + "max_abs": 0.0808291063, + "mean_abs": 0.00452532728, + "psnr_db": 56.0742489, + "ref_absmax": 2.7077558, + "rel_max": 0.0298509586, + "scaled_max_abs": 0.0298509586 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.9/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 352.693991, + "index": 11, + "metrics": { + "corr": 0.999808855, + "finite": true, + "max_abs": 0.115872979, + "mean_abs": 0.00596741333, + "psnr_db": 55.017935, + "ref_absmax": 3.28536868, + "rel_max": 0.0352693991, + "scaled_max_abs": 0.0352693991 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.10/Add_output_0" + }, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "wide_range", + "index": 22 + } + }, + { + "band_ratio": 424.804597, + "index": 12, + "metrics": { + "corr": 0.999801387, + "finite": true, + "max_abs": 0.168629915, + "mean_abs": 0.00716211491, + "psnr_db": 55.1986028, + "ref_absmax": 3.9695878, + "rel_max": 0.0424804597, + "scaled_max_abs": 0.0424804597 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.11/Add_output_0" + }, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 582.480643, + "index": 13, + "metrics": { + "corr": 0.999724486, + "finite": true, + "max_abs": 0.539265156, + "mean_abs": 0.00407862978, + "psnr_db": 58.811884, + "ref_absmax": 9.25807858, + "rel_max": 0.0582480643, + "scaled_max_abs": 0.0582480643 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.12/features.12.2/HardSwish_output_0" + }, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 219.971823, + "index": 14, + "metrics": { + "corr": 0.99981986, + "finite": true, + "max_abs": 0.114154458, + "mean_abs": 0.00278554343, + "psnr_db": 57.8018872, + "ref_absmax": 5.18950367, + "rel_max": 0.0219971823, + "scaled_max_abs": 0.0219971823 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 216.154874, + "index": 15, + "metrics": { + "corr": 0.999892736, + "finite": true, + "max_abs": 0.38962245, + "mean_abs": 0.0207615408, + "psnr_db": 57.5998751, + "ref_absmax": 18.0251522, + "rel_max": 0.0216154874, + "scaled_max_abs": 0.0216154874 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp16", + "id": "mobilenet_v3_small__fp16_as_fp32__onnx", + "model": "mobilenet_v3_small", + "path": "onnx", + "variant": "fp16_as_fp32" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/mobilenet_v3_small__input_hw_swap__coreml_fp16.json b/bench/verdicts_e2e_gated/mobilenet_v3_small__input_hw_swap__coreml_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..e01be44001989bf1ad263f1a0a80f5dcdd908268 --- /dev/null +++ b/bench/verdicts_e2e_gated/mobilenet_v3_small__input_hw_swap__coreml_fp16.json @@ -0,0 +1,1061 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "normalize", + "explained_by": "hw_transpose", + "nominal_band_ratio": 169.15457, + "results": [ + { + "band_ratio": 169.15457, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 119.778016, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 210.748392, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 0.130516105, + "explains": true, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 311.914062, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [ + "inputs[0]: dtype float16 (declared float32)", + "outputs[0]: dtype float16 (declared float32)" + ], + "status": "precision_narrowing" + }, + "status": "flag" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "_inversed_input_1_cast_fp16", + "basis": "interface hypothesis 'hw_transpose' explains the first over-band tap (normalize)", + "index": 0, + "neighbourhood": [ + { + "band_ratio": 111.131751, + "index": 0, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "status": "fail", + "tap": "normalize" + }, + { + "band_ratio": 101.899772, + "index": 1, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_7_cast_fp16" + }, + "status": "fail", + "tap": "net.features.0" + } + ], + "observed_first_over_band": { + "index": 0, + "tap": "normalize" + }, + "shape": 224, + "tap": "normalize" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "fb288f2fe8b630f581fb87dce5e4469256277b0726ce9d098b34d22d5a30feaf", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "4022572138ba688ee1daa81417b2a9df54940ed0414ea608ca6391c15c045c91", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D3", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.46875, + "band_ratio": 26.5890083, + "metrics": { + "corr": 0.971696777, + "finite": true, + "max_abs": 6.48365164, + "mean_abs": 0.363078632, + "psnr_db": 34.8362059, + "ref_absmax": 24.3847065, + "rel_max": 0.265890083, + "scaled_max_abs": 0.265890083 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 0, + "n_judged": 16, + "n_taps": 16, + "taps": [ + { + "band_ratio": 116.179894, + "index": 0, + "metrics": { + "corr": 0.675688296, + "finite": true, + "max_abs": 13.3942518, + "mean_abs": 0.90015469, + "psnr_db": 19.0467187, + "ref_absmax": 11.5288897, + "rel_max": 1.16179894, + "scaled_max_abs": 1.16179894 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "status": "fail", + "tap": "normalize", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 101.890474, + "index": 1, + "metrics": { + "corr": 0.363067615, + "finite": true, + "max_abs": 193.625, + "mean_abs": 0.954019075, + "psnr_db": 32.6068247, + "ref_absmax": 190.032486, + "rel_max": 1.01890474, + "scaled_max_abs": 1.01890474 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_7_cast_fp16" + }, + "status": "fail", + "tap": "net.features.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 105.681272, + "index": 2, + "metrics": { + "corr": 0.457535374, + "finite": true, + "max_abs": 48.032042, + "mean_abs": 1.31101934, + "psnr_db": 29.9415009, + "ref_absmax": 45.4499092, + "rel_max": 1.05681272, + "scaled_max_abs": 1.05681272 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_27_cast_fp16" + }, + "status": "fail", + "tap": "net.features.1", + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_ratio": 65.3385643, + "index": 3, + "metrics": { + "corr": 0.78659771, + "finite": true, + "max_abs": 16.9205444, + "mean_abs": 0.791647349, + "psnr_db": 30.383913, + "ref_absmax": 25.896719, + "rel_max": 0.653385643, + "scaled_max_abs": 0.653385643 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_43_cast_fp16" + }, + "status": "fail", + "tap": "net.features.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 98.7652042, + "index": 4, + "metrics": { + "corr": 0.675710201, + "finite": true, + "max_abs": 25.3940043, + "mean_abs": 1.08726072, + "psnr_db": 29.1411362, + "ref_absmax": 25.7114887, + "rel_max": 0.987652042, + "scaled_max_abs": 0.987652042 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59_cast_fp16" + }, + "status": "fail", + "tap": "net.features.3", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 61.2075085, + "index": 5, + "metrics": { + "corr": 0.808547366, + "finite": true, + "max_abs": 10.4713559, + "mean_abs": 0.447634638, + "psnr_db": 32.0832534, + "ref_absmax": 17.1079597, + "rel_max": 0.612075085, + "scaled_max_abs": 0.612075085 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85_cast_fp16" + }, + "status": "fail", + "tap": "net.features.4", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 79.2621008, + "index": 6, + "metrics": { + "corr": 0.675125038, + "finite": true, + "max_abs": 17.6902137, + "mean_abs": 0.598521194, + "psnr_db": 31.1454074, + "ref_absmax": 22.3186283, + "rel_max": 0.792621008, + "scaled_max_abs": 0.792621008 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_111_cast_fp16" + }, + "status": "fail", + "tap": "net.features.5", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 64.7117667, + "index": 7, + "metrics": { + "corr": 0.863508749, + "finite": true, + "max_abs": 40.6196232, + "mean_abs": 0.973486837, + "psnr_db": 35.7874732, + "ref_absmax": 62.7700729, + "rel_max": 0.647117667, + "scaled_max_abs": 0.647117667 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_137_cast_fp16" + }, + "status": "fail", + "tap": "net.features.6", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 62.2282134, + "index": 8, + "metrics": { + "corr": 0.719578742, + "finite": true, + "max_abs": 12.8714795, + "mean_abs": 0.538351556, + "psnr_db": 32.5576977, + "ref_absmax": 20.6843147, + "rel_max": 0.622282134, + "scaled_max_abs": 0.622282134 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_163_cast_fp16" + }, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 65.103991, + "index": 9, + "metrics": { + "corr": 0.67173517, + "finite": true, + "max_abs": 12.6653096, + "mean_abs": 0.658812384, + "psnr_db": 30.8379961, + "ref_absmax": 19.453968, + "rel_max": 0.65103991, + "scaled_max_abs": 0.65103991 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_189_cast_fp16" + }, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 82.8832285, + "index": 10, + "metrics": { + "corr": 0.806238219, + "finite": true, + "max_abs": 2.89650059, + "mean_abs": 0.18554648, + "psnr_db": 27.488687, + "ref_absmax": 3.49467635, + "rel_max": 0.828832285, + "scaled_max_abs": 0.828832285 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_215_cast_fp16" + }, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 79.0928373, + "index": 11, + "metrics": { + "corr": 0.819132667, + "finite": true, + "max_abs": 2.95767593, + "mean_abs": 0.219996276, + "psnr_db": 26.9056413, + "ref_absmax": 3.73949909, + "rel_max": 0.790928373, + "scaled_max_abs": 0.790928373 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_241_cast_fp16" + }, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 76.6231833, + "index": 12, + "metrics": { + "corr": 0.836015864, + "finite": true, + "max_abs": 3.47472715, + "mean_abs": 0.246900915, + "psnr_db": 27.7233235, + "ref_absmax": 4.53482485, + "rel_max": 0.766231833, + "scaled_max_abs": 0.766231833 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_267_cast_fp16" + }, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 80.4858434, + "index": 13, + "metrics": { + "corr": 0.79298428, + "finite": true, + "max_abs": 8.12887859, + "mean_abs": 0.147385946, + "psnr_db": 30.4681308, + "ref_absmax": 10.099762, + "rel_max": 0.804858434, + "scaled_max_abs": 0.804858434 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_273_cast_fp16" + }, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 25.4971369, + "index": 14, + "metrics": { + "corr": 0.967385596, + "finite": true, + "max_abs": 1.33755665, + "mean_abs": 0.0474340597, + "psnr_db": 35.1565749, + "ref_absmax": 5.24590921, + "rel_max": 0.254971369, + "scaled_max_abs": 0.254971369 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 26.5890083, + "index": 15, + "metrics": { + "corr": 0.971696777, + "finite": true, + "max_abs": 6.48365164, + "mean_abs": 0.363078632, + "psnr_db": 34.8362059, + "ref_absmax": 24.3847065, + "rel_max": 0.265890083, + "scaled_max_abs": 0.265890083 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.6875, + "band_ratio": 60.2058811, + "metrics": { + "corr": 0.964704958, + "finite": true, + "max_abs": 10.8522017, + "mean_abs": 0.347250519, + "psnr_db": 32.493779, + "ref_absmax": 18.0251522, + "rel_max": 0.602058811, + "scaled_max_abs": 0.602058811 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 0, + "n_judged": 16, + "n_taps": 16, + "taps": [ + { + "band_ratio": 111.131751, + "index": 0, + "metrics": { + "corr": 0.709013383, + "finite": true, + "max_abs": 12.8122569, + "mean_abs": 0.853087416, + "psnr_db": 19.622833, + "ref_absmax": 11.5288897, + "rel_max": 1.11131751, + "scaled_max_abs": 1.11131751 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "status": "fail", + "tap": "normalize", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 101.899772, + "index": 1, + "metrics": { + "corr": 0.372302138, + "finite": true, + "max_abs": 172.25, + "mean_abs": 0.89880499, + "psnr_db": 32.126117, + "ref_absmax": 169.038651, + "rel_max": 1.01899772, + "scaled_max_abs": 1.01899772 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_7_cast_fp16" + }, + "status": "fail", + "tap": "net.features.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 113.002125, + "index": 2, + "metrics": { + "corr": 0.465592207, + "finite": true, + "max_abs": 50.4488335, + "mean_abs": 1.224143, + "psnr_db": 30.0002842, + "ref_absmax": 44.644146, + "rel_max": 1.13002125, + "scaled_max_abs": 1.13002125 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_27_cast_fp16" + }, + "status": "fail", + "tap": "net.features.1", + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 68.8718003, + "index": 3, + "metrics": { + "corr": 0.780683701, + "finite": true, + "max_abs": 21.0848913, + "mean_abs": 0.748435448, + "psnr_db": 31.9598065, + "ref_absmax": 30.6146946, + "rel_max": 0.688718003, + "scaled_max_abs": 0.688718003 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_43_cast_fp16" + }, + "status": "fail", + "tap": "net.features.2", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 94.6045564, + "index": 4, + "metrics": { + "corr": 0.691360585, + "finite": true, + "max_abs": 24.7548637, + "mean_abs": 1.04435144, + "psnr_db": 29.4463462, + "ref_absmax": 26.1666718, + "rel_max": 0.946045564, + "scaled_max_abs": 0.946045564 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59_cast_fp16" + }, + "status": "fail", + "tap": "net.features.3", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 61.7847447, + "index": 5, + "metrics": { + "corr": 0.81581107, + "finite": true, + "max_abs": 12.0486969, + "mean_abs": 0.44160332, + "psnr_db": 33.1784263, + "ref_absmax": 19.5010872, + "rel_max": 0.617847447, + "scaled_max_abs": 0.617847447 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85_cast_fp16" + }, + "status": "fail", + "tap": "net.features.4", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 89.5243366, + "index": 6, + "metrics": { + "corr": 0.695473034, + "finite": true, + "max_abs": 26.8985705, + "mean_abs": 0.593127922, + "psnr_db": 33.240972, + "ref_absmax": 30.0460987, + "rel_max": 0.895243366, + "scaled_max_abs": 0.895243366 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_111_cast_fp16" + }, + "status": "fail", + "tap": "net.features.5", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 75.9319011, + "index": 7, + "metrics": { + "corr": 0.849208459, + "finite": true, + "max_abs": 51.3908615, + "mean_abs": 0.920997859, + "psnr_db": 37.2864144, + "ref_absmax": 67.6801987, + "rel_max": 0.759319011, + "scaled_max_abs": 0.759319011 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_137_cast_fp16" + }, + "status": "fail", + "tap": "net.features.6", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 77.6314722, + "index": 8, + "metrics": { + "corr": 0.663475153, + "finite": true, + "max_abs": 13.418705, + "mean_abs": 0.532440942, + "psnr_db": 31.5064834, + "ref_absmax": 17.2851353, + "rel_max": 0.776314722, + "scaled_max_abs": 0.776314722 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_163_cast_fp16" + }, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 85.5612732, + "index": 9, + "metrics": { + "corr": 0.61670426, + "finite": true, + "max_abs": 14.3082743, + "mean_abs": 0.647189727, + "psnr_db": 29.9194757, + "ref_absmax": 16.7228394, + "rel_max": 0.855612732, + "scaled_max_abs": 0.855612732 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_189_cast_fp16" + }, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 103.746544, + "index": 10, + "metrics": { + "corr": 0.80033437, + "finite": true, + "max_abs": 2.80920306, + "mean_abs": 0.181268879, + "psnr_db": 25.4679308, + "ref_absmax": 2.7077558, + "rel_max": 1.03746544, + "scaled_max_abs": 1.03746544 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_215_cast_fp16" + }, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 98.7749563, + "index": 11, + "metrics": { + "corr": 0.828824591, + "finite": true, + "max_abs": 3.24512148, + "mean_abs": 0.214203435, + "psnr_db": 25.5322255, + "ref_absmax": 3.28536868, + "rel_max": 0.987749563, + "scaled_max_abs": 0.987749563 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_241_cast_fp16" + }, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 112.420507, + "index": 12, + "metrics": { + "corr": 0.830678246, + "finite": true, + "max_abs": 4.46263075, + "mean_abs": 0.246143494, + "psnr_db": 25.9345365, + "ref_absmax": 3.9695878, + "rel_max": 1.12420507, + "scaled_max_abs": 1.12420507 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_267_cast_fp16" + }, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 73.8375403, + "index": 13, + "metrics": { + "corr": 0.780368759, + "finite": true, + "max_abs": 6.8359375, + "mean_abs": 0.142962932, + "psnr_db": 29.8453496, + "ref_absmax": 9.25807858, + "rel_max": 0.738375403, + "scaled_max_abs": 0.738375403 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_273_cast_fp16" + }, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 56.9563688, + "index": 14, + "metrics": { + "corr": 0.953267347, + "finite": true, + "max_abs": 2.95575285, + "mean_abs": 0.043758838, + "psnr_db": 33.7928301, + "ref_absmax": 5.18950367, + "rel_max": 0.569563688, + "scaled_max_abs": 0.569563688 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 60.2058811, + "index": 15, + "metrics": { + "corr": 0.964704958, + "finite": true, + "max_abs": 10.8522017, + "mean_abs": 0.347250519, + "psnr_db": 32.493779, + "ref_absmax": 18.0251522, + "rel_max": 0.602058811, + "scaled_max_abs": 0.602058811 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp16", + "id": "mobilenet_v3_small__input_hw_swap__coreml_fp16", + "model": "mobilenet_v3_small", + "path": "coreml", + "variant": "input_hw_swap" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/mobilenet_v3_small__input_hw_swap__coreml_fp32.json b/bench/verdicts_e2e_gated/mobilenet_v3_small__input_hw_swap__coreml_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..090ef5e426dc80473e20b40be46346b4a4f71127 --- /dev/null +++ b/bench/verdicts_e2e_gated/mobilenet_v3_small__input_hw_swap__coreml_fp32.json @@ -0,0 +1,1058 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "normalize", + "explained_by": "hw_transpose", + "nominal_band_ratio": 16910.1721, + "results": [ + { + "band_ratio": 16910.1721, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 11978.5595, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 21078.7917, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 0.000903100643, + "explains": true, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 31179.0395, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "flag" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "_inversed_input_1", + "basis": "interface hypothesis 'hw_transpose' explains the first over-band tap (normalize)", + "index": 0, + "neighbourhood": [ + { + "band_ratio": 11112.3355, + "index": 0, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "fail", + "tap": "normalize" + }, + { + "band_ratio": 10190.1009, + "index": 1, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_7" + }, + "status": "fail", + "tap": "net.features.0" + } + ], + "observed_first_over_band": { + "index": 0, + "tap": "normalize" + }, + "shape": 224, + "tap": "normalize" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "be014e59adab9e379f322ad86658ab7d29abe463412edecc01c8b3fe54372866", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "3d5784f79c5bd3dd85cb04f87837d56f733ad4faa70438b9834036b69f70bf63", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D3", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.5625, + "band_ratio": 2698.74483, + "metrics": { + "corr": 0.972569326, + "finite": true, + "max_abs": 6.58081007, + "mean_abs": 0.331052267, + "psnr_db": 34.9704916, + "ref_absmax": 24.3847065, + "rel_max": 0.269874483, + "scaled_max_abs": 0.269874483 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 0, + "n_judged": 16, + "n_taps": 16, + "taps": [ + { + "band_ratio": 11616.7792, + "index": 0, + "metrics": { + "corr": 0.675680702, + "finite": true, + "max_abs": 13.3928566, + "mean_abs": 0.899941872, + "psnr_db": 19.0470658, + "ref_absmax": 11.5288897, + "rel_max": 1.16167792, + "scaled_max_abs": 1.16167792 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "fail", + "tap": "normalize", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 10189.7307, + "index": 1, + "metrics": { + "corr": 0.363074553, + "finite": true, + "max_abs": 193.637985, + "mean_abs": 0.953560861, + "psnr_db": 32.6065798, + "ref_absmax": 190.032486, + "rel_max": 1.01897307, + "scaled_max_abs": 1.01897307 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_7" + }, + "status": "fail", + "tap": "net.features.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 10556.9616, + "index": 2, + "metrics": { + "corr": 0.457524694, + "finite": true, + "max_abs": 47.9812946, + "mean_abs": 1.30964354, + "psnr_db": 29.9416753, + "ref_absmax": 45.4499092, + "rel_max": 1.05569616, + "scaled_max_abs": 1.05569616 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_27" + }, + "status": "fail", + "tap": "net.features.1", + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 6543.96776, + "index": 3, + "metrics": { + "corr": 0.786675367, + "finite": true, + "max_abs": 16.9467294, + "mean_abs": 0.788353925, + "psnr_db": 30.3848734, + "ref_absmax": 25.896719, + "rel_max": 0.654396776, + "scaled_max_abs": 0.654396776 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_43" + }, + "status": "fail", + "tap": "net.features.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9893.66405, + "index": 4, + "metrics": { + "corr": 0.675982551, + "finite": true, + "max_abs": 25.4380832, + "mean_abs": 1.08114142, + "psnr_db": 29.1426615, + "ref_absmax": 25.7114887, + "rel_max": 0.989366405, + "scaled_max_abs": 0.989366405 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59" + }, + "status": "fail", + "tap": "net.features.3", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6093.94667, + "index": 5, + "metrics": { + "corr": 0.80886102, + "finite": true, + "max_abs": 10.4254994, + "mean_abs": 0.441239918, + "psnr_db": 32.0889632, + "ref_absmax": 17.1079597, + "rel_max": 0.609394667, + "scaled_max_abs": 0.609394667 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85" + }, + "status": "fail", + "tap": "net.features.4", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7907.75074, + "index": 6, + "metrics": { + "corr": 0.675918441, + "finite": true, + "max_abs": 17.6490149, + "mean_abs": 0.58792647, + "psnr_db": 31.1553293, + "ref_absmax": 22.3186283, + "rel_max": 0.790775074, + "scaled_max_abs": 0.790775074 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_111" + }, + "status": "fail", + "tap": "net.features.5", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6447.4456, + "index": 7, + "metrics": { + "corr": 0.863682119, + "finite": true, + "max_abs": 40.4706631, + "mean_abs": 0.954795643, + "psnr_db": 35.7998917, + "ref_absmax": 62.7700729, + "rel_max": 0.64474456, + "scaled_max_abs": 0.64474456 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_137" + }, + "status": "fail", + "tap": "net.features.6", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6184.15994, + "index": 8, + "metrics": { + "corr": 0.719534219, + "finite": true, + "max_abs": 12.7915111, + "mean_abs": 0.53026605, + "psnr_db": 32.564467, + "ref_absmax": 20.6843147, + "rel_max": 0.618415994, + "scaled_max_abs": 0.618415994 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_163" + }, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6488.33425, + "index": 9, + "metrics": { + "corr": 0.671556979, + "finite": true, + "max_abs": 12.6223847, + "mean_abs": 0.648728119, + "psnr_db": 30.8458384, + "ref_absmax": 19.453968, + "rel_max": 0.648833425, + "scaled_max_abs": 0.648833425 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_189" + }, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 8297.67457, + "index": 10, + "metrics": { + "corr": 0.80663652, + "finite": true, + "max_abs": 2.89976871, + "mean_abs": 0.179967072, + "psnr_db": 27.5011006, + "ref_absmax": 3.49467635, + "rel_max": 0.829767457, + "scaled_max_abs": 0.829767457 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_215" + }, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7958.85267, + "index": 11, + "metrics": { + "corr": 0.819688837, + "finite": true, + "max_abs": 2.97621223, + "mean_abs": 0.212396179, + "psnr_db": 26.9183157, + "ref_absmax": 3.73949909, + "rel_max": 0.795885267, + "scaled_max_abs": 0.795885267 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_241" + }, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7677.9966, + "index": 12, + "metrics": { + "corr": 0.836364092, + "finite": true, + "max_abs": 3.48183697, + "mean_abs": 0.238270101, + "psnr_db": 27.7354159, + "ref_absmax": 4.53482485, + "rel_max": 0.76779966, + "scaled_max_abs": 0.76779966 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_267" + }, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 8142.69155, + "index": 13, + "metrics": { + "corr": 0.793610029, + "finite": true, + "max_abs": 8.22392464, + "mean_abs": 0.142642287, + "psnr_db": 30.482291, + "ref_absmax": 10.099762, + "rel_max": 0.814269155, + "scaled_max_abs": 0.814269155 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_273" + }, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 2538.00174, + "index": 14, + "metrics": { + "corr": 0.967812469, + "finite": true, + "max_abs": 1.33141267, + "mean_abs": 0.0437769809, + "psnr_db": 35.2251846, + "ref_absmax": 5.24590921, + "rel_max": 0.253800174, + "scaled_max_abs": 0.253800174 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 2698.74483, + "index": 15, + "metrics": { + "corr": 0.972569326, + "finite": true, + "max_abs": 6.58081007, + "mean_abs": 0.331052267, + "psnr_db": 34.9704916, + "ref_absmax": 24.3847065, + "rel_max": 0.269874483, + "scaled_max_abs": 0.269874483 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.6875, + "band_ratio": 5138.46718, + "metrics": { + "corr": 0.966819993, + "finite": true, + "max_abs": 9.26216531, + "mean_abs": 0.325558293, + "psnr_db": 32.7645777, + "ref_absmax": 18.0251522, + "rel_max": 0.513846718, + "scaled_max_abs": 0.513846718 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 0, + "n_judged": 16, + "n_taps": 16, + "taps": [ + { + "band_ratio": 11112.3355, + "index": 0, + "metrics": { + "corr": 0.709006651, + "finite": true, + "max_abs": 12.811289, + "mean_abs": 0.852875392, + "psnr_db": 19.6231673, + "ref_absmax": 11.5288897, + "rel_max": 1.11123355, + "scaled_max_abs": 1.11123355 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "fail", + "tap": "normalize", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10190.1009, + "index": 1, + "metrics": { + "corr": 0.372312512, + "finite": true, + "max_abs": 172.25209, + "mean_abs": 0.898352129, + "psnr_db": 32.1259687, + "ref_absmax": 169.038651, + "rel_max": 1.01901009, + "scaled_max_abs": 1.01901009 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_7" + }, + "status": "fail", + "tap": "net.features.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 11299.3129, + "index": 2, + "metrics": { + "corr": 0.465585725, + "finite": true, + "max_abs": 50.4448175, + "mean_abs": 1.22277437, + "psnr_db": 30.0006224, + "ref_absmax": 44.644146, + "rel_max": 1.12993129, + "scaled_max_abs": 1.12993129 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_27" + }, + "status": "fail", + "tap": "net.features.1", + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 6867.393, + "index": 3, + "metrics": { + "corr": 0.780780246, + "finite": true, + "max_abs": 21.0243139, + "mean_abs": 0.744990385, + "psnr_db": 31.9611218, + "ref_absmax": 30.6146946, + "rel_max": 0.6867393, + "scaled_max_abs": 0.6867393 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_43" + }, + "status": "fail", + "tap": "net.features.2", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9467.07153, + "index": 4, + "metrics": { + "corr": 0.691615516, + "finite": true, + "max_abs": 24.7721753, + "mean_abs": 1.03836999, + "psnr_db": 29.4476429, + "ref_absmax": 26.1666718, + "rel_max": 0.946707153, + "scaled_max_abs": 0.946707153 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59" + }, + "status": "fail", + "tap": "net.features.3", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6173.36159, + "index": 5, + "metrics": { + "corr": 0.816121626, + "finite": true, + "max_abs": 12.0387263, + "mean_abs": 0.435172113, + "psnr_db": 33.1845303, + "ref_absmax": 19.5010872, + "rel_max": 0.617336159, + "scaled_max_abs": 0.617336159 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85" + }, + "status": "fail", + "tap": "net.features.4", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 8961.34128, + "index": 6, + "metrics": { + "corr": 0.696017609, + "finite": true, + "max_abs": 26.9253345, + "mean_abs": 0.5825052, + "psnr_db": 33.2513232, + "ref_absmax": 30.0460987, + "rel_max": 0.896134128, + "scaled_max_abs": 0.896134128 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_111" + }, + "status": "fail", + "tap": "net.features.5", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7564.11489, + "index": 7, + "metrics": { + "corr": 0.851008167, + "finite": true, + "max_abs": 51.1940799, + "mean_abs": 0.905477928, + "psnr_db": 37.3055082, + "ref_absmax": 67.6801987, + "rel_max": 0.756411489, + "scaled_max_abs": 0.756411489 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_137" + }, + "status": "fail", + "tap": "net.features.6", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7734.77653, + "index": 8, + "metrics": { + "corr": 0.66685188, + "finite": true, + "max_abs": 13.3696659, + "mean_abs": 0.524639733, + "psnr_db": 31.5329965, + "ref_absmax": 17.2851353, + "rel_max": 0.773477653, + "scaled_max_abs": 0.773477653 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_163" + }, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 8538.79658, + "index": 9, + "metrics": { + "corr": 0.62027205, + "finite": true, + "max_abs": 14.2792923, + "mean_abs": 0.638317809, + "psnr_db": 29.9435768, + "ref_absmax": 16.7228394, + "rel_max": 0.853879658, + "scaled_max_abs": 0.853879658 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_189" + }, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10099.8328, + "index": 10, + "metrics": { + "corr": 0.802671561, + "finite": true, + "max_abs": 2.73478809, + "mean_abs": 0.176687723, + "psnr_db": 25.5168741, + "ref_absmax": 2.7077558, + "rel_max": 1.00998328, + "scaled_max_abs": 1.00998328 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_215" + }, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9466.98636, + "index": 11, + "metrics": { + "corr": 0.831576059, + "finite": true, + "max_abs": 3.11025405, + "mean_abs": 0.207864352, + "psnr_db": 25.5905355, + "ref_absmax": 3.28536868, + "rel_max": 0.946698636, + "scaled_max_abs": 0.946698636 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_241" + }, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10371.1217, + "index": 12, + "metrics": { + "corr": 0.835299006, + "finite": true, + "max_abs": 4.11690784, + "mean_abs": 0.238114155, + "psnr_db": 26.0501857, + "ref_absmax": 3.9695878, + "rel_max": 1.03711217, + "scaled_max_abs": 1.03711217 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_267" + }, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7378.08721, + "index": 13, + "metrics": { + "corr": 0.785849072, + "finite": true, + "max_abs": 6.83069111, + "mean_abs": 0.139066068, + "psnr_db": 29.9614255, + "ref_absmax": 9.25807858, + "rel_max": 0.737808721, + "scaled_max_abs": 0.737808721 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_273" + }, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "uniform", + "index": 16 + } + }, + { + "band_ratio": 5603.29299, + "index": 14, + "metrics": { + "corr": 0.959090914, + "finite": true, + "max_abs": 2.90783095, + "mean_abs": 0.0407188376, + "psnr_db": 34.372119, + "ref_absmax": 5.18950367, + "rel_max": 0.560329299, + "scaled_max_abs": 0.560329299 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 5138.46718, + "index": 15, + "metrics": { + "corr": 0.966819993, + "finite": true, + "max_abs": 9.26216531, + "mean_abs": 0.325558293, + "psnr_db": 32.7645777, + "ref_absmax": 18.0251522, + "rel_max": 0.513846718, + "scaled_max_abs": 0.513846718 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp32", + "id": "mobilenet_v3_small__input_hw_swap__coreml_fp32", + "model": "mobilenet_v3_small", + "path": "coreml", + "variant": "input_hw_swap" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/mobilenet_v3_small__input_hw_swap__litert_fp16.json b/bench/verdicts_e2e_gated/mobilenet_v3_small__input_hw_swap__litert_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..211adcd7ff4d7e41aeaf160448e94242a89976da --- /dev/null +++ b/bench/verdicts_e2e_gated/mobilenet_v3_small__input_hw_swap__litert_fp16.json @@ -0,0 +1,1227 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "normalize", + "explained_by": "hw_transpose", + "nominal_band_ratio": 169.101721, + "results": [ + { + "band_ratio": 169.101721, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 119.785595, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 210.787917, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 9.03100643e-06, + "explains": true, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 311.790395, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "flag" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 0.000814625376, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000145077705, + "mean_abs": 6.86047391e-06, + "psnr_db": 125.130599, + "ref_absmax": 17.8091316, + "rel_max": 8.14625376e-06, + "scaled_max_abs": 8.14625376e-06 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 116, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 1, + "n_ops_total": 169, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "zoo.Source/zoo.Normalize_normalize;5", + "basis": "interface hypothesis 'hw_transpose' explains the first over-band tap (normalize)", + "index": 0, + "neighbourhood": [ + { + "band_ratio": 111.123355, + "index": 0, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;5" + }, + "status": "fail", + "tap": "normalize" + }, + { + "band_ratio": 101.886295, + "index": 1, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_0/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "fail", + "tap": "net.features.0" + } + ], + "observed_first_over_band": { + "index": 0, + "tap": "normalize" + }, + "shape": 224, + "tap": "normalize" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "b08dcd30f0f03fc7ef38ef3eda4f2eb2dc76e9d2df14ed0751b364daba588101", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "e005c0344031287065c0c7fb33041f7bfb45c981fd92ab01fea8e91b0be19f62", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D3", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.5625, + "band_ratio": 26.2153129, + "metrics": { + "corr": 0.972442933, + "finite": true, + "max_abs": 6.3925271, + "mean_abs": 0.340524203, + "psnr_db": 34.9519449, + "ref_absmax": 24.3847065, + "rel_max": 0.262153129, + "scaled_max_abs": 0.262153129 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 0, + "n_judged": 16, + "n_taps": 16, + "taps": [ + { + "band_ratio": 116.167792, + "index": 0, + "metrics": { + "corr": 0.675680702, + "finite": true, + "max_abs": 13.3928566, + "mean_abs": 0.899941872, + "psnr_db": 19.0470658, + "ref_absmax": 11.5288897, + "rel_max": 1.16167792, + "scaled_max_abs": 1.16167792 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;5" + }, + "status": "fail", + "tap": "normalize", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 101.87969, + "index": 1, + "metrics": { + "corr": 0.363051158, + "finite": true, + "max_abs": 193.604507, + "mean_abs": 0.953606988, + "psnr_db": 32.6073164, + "ref_absmax": 190.032486, + "rel_max": 1.0187969, + "scaled_max_abs": 1.0187969 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_0/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "fail", + "tap": "net.features.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 105.568634, + "index": 2, + "metrics": { + "corr": 0.457491024, + "finite": true, + "max_abs": 47.9808483, + "mean_abs": 1.30982975, + "psnr_db": 29.9422614, + "ref_absmax": 45.4499092, + "rel_max": 1.05568634, + "scaled_max_abs": 1.05568634 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_1/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.1", + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 65.4583816, + "index": 3, + "metrics": { + "corr": 0.786653276, + "finite": true, + "max_abs": 16.9515731, + "mean_abs": 0.789059855, + "psnr_db": 30.3852712, + "ref_absmax": 25.896719, + "rel_max": 0.654583816, + "scaled_max_abs": 0.654583816 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_2/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 99.0291464, + "index": 4, + "metrics": { + "corr": 0.675928863, + "finite": true, + "max_abs": 25.4618678, + "mean_abs": 1.08253132, + "psnr_db": 29.142797, + "ref_absmax": 25.7114887, + "rel_max": 0.990291464, + "scaled_max_abs": 0.990291464 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_3;" + }, + "status": "fail", + "tap": "net.features.3", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 61.0086791, + "index": 5, + "metrics": { + "corr": 0.808751105, + "finite": true, + "max_abs": 10.4373403, + "mean_abs": 0.443033568, + "psnr_db": 32.0878942, + "ref_absmax": 17.1079597, + "rel_max": 0.610086791, + "scaled_max_abs": 0.610086791 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_4/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.4", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 79.2182428, + "index": 6, + "metrics": { + "corr": 0.675702407, + "finite": true, + "max_abs": 17.6804252, + "mean_abs": 0.590791132, + "psnr_db": 31.1528672, + "ref_absmax": 22.3186283, + "rel_max": 0.792182428, + "scaled_max_abs": 0.792182428 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_5;" + }, + "status": "fail", + "tap": "net.features.5", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 64.5517587, + "index": 7, + "metrics": { + "corr": 0.863557509, + "finite": true, + "max_abs": 40.519186, + "mean_abs": 0.962096969, + "psnr_db": 35.7960132, + "ref_absmax": 62.7700729, + "rel_max": 0.645517587, + "scaled_max_abs": 0.645517587 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_6;" + }, + "status": "fail", + "tap": "net.features.6", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 61.8495758, + "index": 8, + "metrics": { + "corr": 0.719367426, + "finite": true, + "max_abs": 12.7931609, + "mean_abs": 0.532501167, + "psnr_db": 32.5646591, + "ref_absmax": 20.6843147, + "rel_max": 0.618495758, + "scaled_max_abs": 0.618495758 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_7/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 64.7487328, + "index": 9, + "metrics": { + "corr": 0.671517594, + "finite": true, + "max_abs": 12.5961978, + "mean_abs": 0.651926648, + "psnr_db": 30.8458691, + "ref_absmax": 19.453968, + "rel_max": 0.647487328, + "scaled_max_abs": 0.647487328 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_8;" + }, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 82.8481754, + "index": 10, + "metrics": { + "corr": 0.806809356, + "finite": true, + "max_abs": 2.89527559, + "mean_abs": 0.181830302, + "psnr_db": 27.5002496, + "ref_absmax": 3.49467635, + "rel_max": 0.828481754, + "scaled_max_abs": 0.828481754 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_9/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 79.3033321, + "index": 11, + "metrics": { + "corr": 0.819817603, + "finite": true, + "max_abs": 2.96554738, + "mean_abs": 0.214591924, + "psnr_db": 26.918565, + "ref_absmax": 3.73949909, + "rel_max": 0.793033321, + "scaled_max_abs": 0.793033321 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_10;" + }, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 76.5880257, + "index": 12, + "metrics": { + "corr": 0.83652496, + "finite": true, + "max_abs": 3.47313282, + "mean_abs": 0.24095052, + "psnr_db": 27.7357284, + "ref_absmax": 4.53482485, + "rel_max": 0.765880257, + "scaled_max_abs": 0.765880257 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_11;" + }, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 81.2099919, + "index": 13, + "metrics": { + "corr": 0.793624157, + "finite": true, + "max_abs": 8.20201588, + "mean_abs": 0.144098941, + "psnr_db": 30.481047, + "ref_absmax": 10.099762, + "rel_max": 0.812099919, + "scaled_max_abs": 0.812099919 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_12/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 25.0432429, + "index": 14, + "metrics": { + "corr": 0.967776438, + "finite": true, + "max_abs": 1.31374579, + "mean_abs": 0.0449365598, + "psnr_db": 35.2158288, + "ref_absmax": 5.24590921, + "rel_max": 0.250432429, + "scaled_max_abs": 0.250432429 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;;zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Seque" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 26.2153129, + "index": 15, + "metrics": { + "corr": 0.972442933, + "finite": true, + "max_abs": 6.3925271, + "mean_abs": 0.340524203, + "psnr_db": 34.9519449, + "ref_absmax": 24.3847065, + "rel_max": 0.262153129, + "scaled_max_abs": 0.262153129 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.5625, + "band_ratio": 55.5855916, + "metrics": { + "corr": 0.965673201, + "finite": true, + "max_abs": 10.0193875, + "mean_abs": 0.333476162, + "psnr_db": 32.6072353, + "ref_absmax": 18.0251522, + "rel_max": 0.555855916, + "scaled_max_abs": 0.555855916 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 0, + "n_judged": 16, + "n_taps": 16, + "taps": [ + { + "band_ratio": 111.123355, + "index": 0, + "metrics": { + "corr": 0.709006651, + "finite": true, + "max_abs": 12.811289, + "mean_abs": 0.852875392, + "psnr_db": 19.6231673, + "ref_absmax": 11.5288897, + "rel_max": 1.11123355, + "scaled_max_abs": 1.11123355 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;5" + }, + "status": "fail", + "tap": "normalize", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 101.886295, + "index": 1, + "metrics": { + "corr": 0.372289079, + "finite": true, + "max_abs": 172.227219, + "mean_abs": 0.898391614, + "psnr_db": 32.1266824, + "ref_absmax": 169.038651, + "rel_max": 1.01886295, + "scaled_max_abs": 1.01886295 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_0/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "fail", + "tap": "net.features.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 112.993057, + "index": 2, + "metrics": { + "corr": 0.465554096, + "finite": true, + "max_abs": 50.4447851, + "mean_abs": 1.22297535, + "psnr_db": 30.0012043, + "ref_absmax": 44.644146, + "rel_max": 1.12993057, + "scaled_max_abs": 1.12993057 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_1/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.1", + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 68.716021, + "index": 3, + "metrics": { + "corr": 0.780754403, + "finite": true, + "max_abs": 21.0372, + "mean_abs": 0.745731819, + "psnr_db": 31.9614338, + "ref_absmax": 30.6146946, + "rel_max": 0.68716021, + "scaled_max_abs": 0.68716021 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_2/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.2", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 94.678789, + "index": 4, + "metrics": { + "corr": 0.691554751, + "finite": true, + "max_abs": 24.7742879, + "mean_abs": 1.03963028, + "psnr_db": 29.447784, + "ref_absmax": 26.1666718, + "rel_max": 0.94678789, + "scaled_max_abs": 0.94678789 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_3;" + }, + "status": "fail", + "tap": "net.features.3", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 61.7957334, + "index": 5, + "metrics": { + "corr": 0.81599157, + "finite": true, + "max_abs": 12.0508398, + "mean_abs": 0.436939513, + "psnr_db": 33.1835069, + "ref_absmax": 19.5010872, + "rel_max": 0.617957334, + "scaled_max_abs": 0.617957334 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_4/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.4", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 89.6876979, + "index": 6, + "metrics": { + "corr": 0.695777595, + "finite": true, + "max_abs": 26.9476542, + "mean_abs": 0.585337381, + "psnr_db": 33.2493166, + "ref_absmax": 30.0460987, + "rel_max": 0.896876979, + "scaled_max_abs": 0.896876979 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_5;" + }, + "status": "fail", + "tap": "net.features.5", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 75.7323459, + "index": 7, + "metrics": { + "corr": 0.85025776, + "finite": true, + "max_abs": 51.2558022, + "mean_abs": 0.91026677, + "psnr_db": 37.2995733, + "ref_absmax": 67.6801987, + "rel_max": 0.757323459, + "scaled_max_abs": 0.757323459 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_6;" + }, + "status": "fail", + "tap": "net.features.6", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 77.4908471, + "index": 8, + "metrics": { + "corr": 0.665348108, + "finite": true, + "max_abs": 13.3943977, + "mean_abs": 0.526861207, + "psnr_db": 31.5223329, + "ref_absmax": 17.2851353, + "rel_max": 0.774908471, + "scaled_max_abs": 0.774908471 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_7/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 85.4676856, + "index": 9, + "metrics": { + "corr": 0.618764138, + "finite": true, + "max_abs": 14.2926238, + "mean_abs": 0.640988237, + "psnr_db": 29.9343776, + "ref_absmax": 16.7228394, + "rel_max": 0.854676856, + "scaled_max_abs": 0.854676856 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_8;" + }, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 101.908565, + "index": 10, + "metrics": { + "corr": 0.80192181, + "finite": true, + "max_abs": 2.75943509, + "mean_abs": 0.178248868, + "psnr_db": 25.4967866, + "ref_absmax": 2.7077558, + "rel_max": 1.01908565, + "scaled_max_abs": 1.01908565 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_9/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 97.9496126, + "index": 11, + "metrics": { + "corr": 0.830523376, + "finite": true, + "max_abs": 3.2180059, + "mean_abs": 0.209999753, + "psnr_db": 25.5658761, + "ref_absmax": 3.28536868, + "rel_max": 0.979496126, + "scaled_max_abs": 0.979496126 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_10;" + }, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 107.585273, + "index": 12, + "metrics": { + "corr": 0.833596133, + "finite": true, + "max_abs": 4.27069187, + "mean_abs": 0.240823059, + "psnr_db": 26.0029489, + "ref_absmax": 3.9695878, + "rel_max": 1.07585273, + "scaled_max_abs": 1.07585273 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_11;" + }, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 73.6744371, + "index": 13, + "metrics": { + "corr": 0.783822201, + "finite": true, + "max_abs": 6.82083727, + "mean_abs": 0.140389538, + "psnr_db": 29.914645, + "ref_absmax": 9.25807858, + "rel_max": 0.736744371, + "scaled_max_abs": 0.736744371 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_12/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "uniform", + "index": 16 + } + }, + { + "band_ratio": 56.3174332, + "index": 14, + "metrics": { + "corr": 0.956541959, + "finite": true, + "max_abs": 2.92259526, + "mean_abs": 0.0418745793, + "psnr_db": 34.1069841, + "ref_absmax": 5.18950367, + "rel_max": 0.563174332, + "scaled_max_abs": 0.563174332 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;;zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Seque" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 55.5855916, + "index": 15, + "metrics": { + "corr": 0.965673201, + "finite": true, + "max_abs": 10.0193875, + "mean_abs": 0.333476162, + "psnr_db": 32.6072353, + "ref_absmax": 18.0251522, + "rel_max": 0.555855916, + "scaled_max_abs": 0.555855916 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp16", + "id": "mobilenet_v3_small__input_hw_swap__litert_fp16", + "model": "mobilenet_v3_small", + "path": "litert", + "variant": "input_hw_swap" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/mobilenet_v3_small__input_hw_swap__litert_fp32.json b/bench/verdicts_e2e_gated/mobilenet_v3_small__input_hw_swap__litert_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..c4717f65432ea3e8b117e4fba8c4a2bb7c1f852c --- /dev/null +++ b/bench/verdicts_e2e_gated/mobilenet_v3_small__input_hw_swap__litert_fp32.json @@ -0,0 +1,1227 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "normalize", + "explained_by": "hw_transpose", + "nominal_band_ratio": 16910.1721, + "results": [ + { + "band_ratio": 16910.1721, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 11978.5595, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 21078.7917, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 0.000903100643, + "explains": true, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 31179.0395, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "flag" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 0.0772368847, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000137388706, + "mean_abs": 5.9094717e-06, + "psnr_db": 127.54598, + "ref_absmax": 17.7879658, + "rel_max": 7.72368847e-06, + "scaled_max_abs": 7.72368847e-06 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 116, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 1, + "n_ops_total": 115, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "zoo.Source/zoo.Normalize_normalize;5", + "basis": "interface hypothesis 'hw_transpose' explains the first over-band tap (normalize)", + "index": 0, + "neighbourhood": [ + { + "band_ratio": 11112.3355, + "index": 0, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;5" + }, + "status": "fail", + "tap": "normalize" + }, + { + "band_ratio": 10190.1018, + "index": 1, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_0/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "fail", + "tap": "net.features.0" + } + ], + "observed_first_over_band": { + "index": 0, + "tap": "normalize" + }, + "shape": 224, + "tap": "normalize" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "98b2929386ef1945edc54d974d95025a70dbdb2956a870002d958ddd27d3417b", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "3672bd9f030b86cca1fdc6638d9dba697fd8be1d75abef76b9a7c1e5a2c10147", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D3", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.5625, + "band_ratio": 2698.76243, + "metrics": { + "corr": 0.972569217, + "finite": true, + "max_abs": 6.58085299, + "mean_abs": 0.331052932, + "psnr_db": 34.9704749, + "ref_absmax": 24.3847065, + "rel_max": 0.269876243, + "scaled_max_abs": 0.269876243 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 0, + "n_judged": 16, + "n_taps": 16, + "taps": [ + { + "band_ratio": 11616.7792, + "index": 0, + "metrics": { + "corr": 0.675680702, + "finite": true, + "max_abs": 13.3928566, + "mean_abs": 0.899941872, + "psnr_db": 19.0470658, + "ref_absmax": 11.5288897, + "rel_max": 1.16167792, + "scaled_max_abs": 1.16167792 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;5" + }, + "status": "fail", + "tap": "normalize", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 10189.7315, + "index": 1, + "metrics": { + "corr": 0.363074549, + "finite": true, + "max_abs": 193.638, + "mean_abs": 0.953560861, + "psnr_db": 32.6065797, + "ref_absmax": 190.032486, + "rel_max": 1.01897315, + "scaled_max_abs": 1.01897315 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_0/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "fail", + "tap": "net.features.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 10556.9614, + "index": 2, + "metrics": { + "corr": 0.457524657, + "finite": true, + "max_abs": 47.9812937, + "mean_abs": 1.30964353, + "psnr_db": 29.941675, + "ref_absmax": 45.4499092, + "rel_max": 1.05569614, + "scaled_max_abs": 1.05569614 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_1/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.1", + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 6543.97034, + "index": 3, + "metrics": { + "corr": 0.786675349, + "finite": true, + "max_abs": 16.9467361, + "mean_abs": 0.788353897, + "psnr_db": 30.384873, + "ref_absmax": 25.896719, + "rel_max": 0.654397034, + "scaled_max_abs": 0.654397034 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_2/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9893.66257, + "index": 4, + "metrics": { + "corr": 0.675982531, + "finite": true, + "max_abs": 25.4380794, + "mean_abs": 1.08114142, + "psnr_db": 29.1426608, + "ref_absmax": 25.7114887, + "rel_max": 0.989366257, + "scaled_max_abs": 0.989366257 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_3;" + }, + "status": "fail", + "tap": "net.features.3", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6093.95113, + "index": 5, + "metrics": { + "corr": 0.808861054, + "finite": true, + "max_abs": 10.4255071, + "mean_abs": 0.441239882, + "psnr_db": 32.0889624, + "ref_absmax": 17.1079597, + "rel_max": 0.609395113, + "scaled_max_abs": 0.609395113 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_4/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.4", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7907.75587, + "index": 6, + "metrics": { + "corr": 0.675918489, + "finite": true, + "max_abs": 17.6490264, + "mean_abs": 0.587926331, + "psnr_db": 31.1553284, + "ref_absmax": 22.3186283, + "rel_max": 0.790775587, + "scaled_max_abs": 0.790775587 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_5;" + }, + "status": "fail", + "tap": "net.features.5", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6447.45411, + "index": 7, + "metrics": { + "corr": 0.863682118, + "finite": true, + "max_abs": 40.4707165, + "mean_abs": 0.954795866, + "psnr_db": 35.79989, + "ref_absmax": 62.7700729, + "rel_max": 0.644745411, + "scaled_max_abs": 0.644745411 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_6;" + }, + "status": "fail", + "tap": "net.features.6", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6184.17147, + "index": 8, + "metrics": { + "corr": 0.71953427, + "finite": true, + "max_abs": 12.7915349, + "mean_abs": 0.530266117, + "psnr_db": 32.5644643, + "ref_absmax": 20.6843147, + "rel_max": 0.618417147, + "scaled_max_abs": 0.618417147 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_7/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6488.34504, + "index": 9, + "metrics": { + "corr": 0.671557024, + "finite": true, + "max_abs": 12.6224057, + "mean_abs": 0.648728268, + "psnr_db": 30.8458362, + "ref_absmax": 19.453968, + "rel_max": 0.648834504, + "scaled_max_abs": 0.648834504 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_8;" + }, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 8297.6715, + "index": 10, + "metrics": { + "corr": 0.806636463, + "finite": true, + "max_abs": 2.89976764, + "mean_abs": 0.179967138, + "psnr_db": 27.501099, + "ref_absmax": 3.49467635, + "rel_max": 0.82976715, + "scaled_max_abs": 0.82976715 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_9/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7958.84311, + "index": 11, + "metrics": { + "corr": 0.819688772, + "finite": true, + "max_abs": 2.97620866, + "mean_abs": 0.212396265, + "psnr_db": 26.9183137, + "ref_absmax": 3.73949909, + "rel_max": 0.795884311, + "scaled_max_abs": 0.795884311 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_10;" + }, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7677.98562, + "index": 12, + "metrics": { + "corr": 0.836363979, + "finite": true, + "max_abs": 3.481832, + "mean_abs": 0.238270275, + "psnr_db": 27.7354129, + "ref_absmax": 4.53482485, + "rel_max": 0.767798562, + "scaled_max_abs": 0.767798562 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_11;" + }, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 8142.68305, + "index": 13, + "metrics": { + "corr": 0.7936099, + "finite": true, + "max_abs": 8.22391605, + "mean_abs": 0.142642402, + "psnr_db": 30.4822875, + "ref_absmax": 10.099762, + "rel_max": 0.814268305, + "scaled_max_abs": 0.814268305 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_12/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 2538.02174, + "index": 14, + "metrics": { + "corr": 0.967812378, + "finite": true, + "max_abs": 1.33142316, + "mean_abs": 0.043777062, + "psnr_db": 35.225172, + "ref_absmax": 5.24590921, + "rel_max": 0.253802174, + "scaled_max_abs": 0.253802174 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;;zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Seque" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 2698.76243, + "index": 15, + "metrics": { + "corr": 0.972569217, + "finite": true, + "max_abs": 6.58085299, + "mean_abs": 0.331052932, + "psnr_db": 34.9704749, + "ref_absmax": 24.3847065, + "rel_max": 0.269876243, + "scaled_max_abs": 0.269876243 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.6875, + "band_ratio": 5138.60845, + "metrics": { + "corr": 0.966819629, + "finite": true, + "max_abs": 9.26241994, + "mean_abs": 0.325559513, + "psnr_db": 32.7645216, + "ref_absmax": 18.0251522, + "rel_max": 0.513860845, + "scaled_max_abs": 0.513860845 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 0, + "n_judged": 16, + "n_taps": 16, + "taps": [ + { + "band_ratio": 11112.3355, + "index": 0, + "metrics": { + "corr": 0.709006651, + "finite": true, + "max_abs": 12.811289, + "mean_abs": 0.852875392, + "psnr_db": 19.6231673, + "ref_absmax": 11.5288897, + "rel_max": 1.11123355, + "scaled_max_abs": 1.11123355 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;5" + }, + "status": "fail", + "tap": "normalize", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10190.1018, + "index": 1, + "metrics": { + "corr": 0.372312506, + "finite": true, + "max_abs": 172.252106, + "mean_abs": 0.898352127, + "psnr_db": 32.1259686, + "ref_absmax": 169.038651, + "rel_max": 1.01901018, + "scaled_max_abs": 1.01901018 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_0/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "fail", + "tap": "net.features.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 11299.3129, + "index": 2, + "metrics": { + "corr": 0.465585689, + "finite": true, + "max_abs": 50.4448175, + "mean_abs": 1.22277436, + "psnr_db": 30.0006222, + "ref_absmax": 44.644146, + "rel_max": 1.12993129, + "scaled_max_abs": 1.12993129 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_1/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.1", + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 6867.39549, + "index": 3, + "metrics": { + "corr": 0.780780231, + "finite": true, + "max_abs": 21.0243216, + "mean_abs": 0.744990363, + "psnr_db": 31.9611214, + "ref_absmax": 30.6146946, + "rel_max": 0.686739549, + "scaled_max_abs": 0.686739549 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_2/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.2", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9467.07189, + "index": 4, + "metrics": { + "corr": 0.69161552, + "finite": true, + "max_abs": 24.7721763, + "mean_abs": 1.03836999, + "psnr_db": 29.4476424, + "ref_absmax": 26.1666718, + "rel_max": 0.946707189, + "scaled_max_abs": 0.946707189 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_3;" + }, + "status": "fail", + "tap": "net.features.3", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6173.36502, + "index": 5, + "metrics": { + "corr": 0.816121686, + "finite": true, + "max_abs": 12.0387329, + "mean_abs": 0.43517209, + "psnr_db": 33.1845299, + "ref_absmax": 19.5010872, + "rel_max": 0.617336502, + "scaled_max_abs": 0.617336502 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_4/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.4", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 8961.34889, + "index": 6, + "metrics": { + "corr": 0.696017737, + "finite": true, + "max_abs": 26.9253573, + "mean_abs": 0.582505259, + "psnr_db": 33.2513221, + "ref_absmax": 30.0460987, + "rel_max": 0.896134889, + "scaled_max_abs": 0.896134889 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_5;" + }, + "status": "fail", + "tap": "net.features.5", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7564.12166, + "index": 7, + "metrics": { + "corr": 0.851007924, + "finite": true, + "max_abs": 51.1941257, + "mean_abs": 0.905478139, + "psnr_db": 37.305506, + "ref_absmax": 67.6801987, + "rel_max": 0.756412166, + "scaled_max_abs": 0.756412166 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_6;" + }, + "status": "fail", + "tap": "net.features.6", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7734.78329, + "index": 8, + "metrics": { + "corr": 0.666851393, + "finite": true, + "max_abs": 13.3696775, + "mean_abs": 0.524639951, + "psnr_db": 31.532992, + "ref_absmax": 17.2851353, + "rel_max": 0.773478329, + "scaled_max_abs": 0.773478329 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_7/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 8538.80413, + "index": 9, + "metrics": { + "corr": 0.620271522, + "finite": true, + "max_abs": 14.279305, + "mean_abs": 0.638318112, + "psnr_db": 29.9435727, + "ref_absmax": 16.7228394, + "rel_max": 0.853880413, + "scaled_max_abs": 0.853880413 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_8;" + }, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10099.8601, + "index": 10, + "metrics": { + "corr": 0.802671147, + "finite": true, + "max_abs": 2.73479548, + "mean_abs": 0.176687949, + "psnr_db": 25.5168653, + "ref_absmax": 2.7077558, + "rel_max": 1.00998601, + "scaled_max_abs": 1.00998601 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_9/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9467.11554, + "index": 11, + "metrics": { + "corr": 0.831575602, + "finite": true, + "max_abs": 3.11029649, + "mean_abs": 0.207864554, + "psnr_db": 25.5905249, + "ref_absmax": 3.28536868, + "rel_max": 0.946711554, + "scaled_max_abs": 0.946711554 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_10;" + }, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10371.3001, + "index": 12, + "metrics": { + "corr": 0.835298339, + "finite": true, + "max_abs": 4.11697865, + "mean_abs": 0.238114537, + "psnr_db": 26.050168, + "ref_absmax": 3.9695878, + "rel_max": 1.03713001, + "scaled_max_abs": 1.03713001 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_11;" + }, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7378.07125, + "index": 13, + "metrics": { + "corr": 0.785848329, + "finite": true, + "max_abs": 6.83067633, + "mean_abs": 0.139066287, + "psnr_db": 29.9614073, + "ref_absmax": 9.25807858, + "rel_max": 0.737807125, + "scaled_max_abs": 0.737807125 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_12/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "uniform", + "index": 16 + } + }, + { + "band_ratio": 5603.31688, + "index": 14, + "metrics": { + "corr": 0.959090108, + "finite": true, + "max_abs": 2.90784335, + "mean_abs": 0.0407189853, + "psnr_db": 34.3720321, + "ref_absmax": 5.18950367, + "rel_max": 0.560331688, + "scaled_max_abs": 0.560331688 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;;zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Seque" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 5138.60845, + "index": 15, + "metrics": { + "corr": 0.966819629, + "finite": true, + "max_abs": 9.26241994, + "mean_abs": 0.325559513, + "psnr_db": 32.7645216, + "ref_absmax": 18.0251522, + "rel_max": 0.513860845, + "scaled_max_abs": 0.513860845 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp32", + "id": "mobilenet_v3_small__input_hw_swap__litert_fp32", + "model": "mobilenet_v3_small", + "path": "litert", + "variant": "input_hw_swap" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/mobilenet_v3_small__input_hw_swap__onnx_fp16.json b/bench/verdicts_e2e_gated/mobilenet_v3_small__input_hw_swap__onnx_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..90e9e031b409992a0b6b87ea39933023035eb5a7 --- /dev/null +++ b/bench/verdicts_e2e_gated/mobilenet_v3_small__input_hw_swap__onnx_fp16.json @@ -0,0 +1,1058 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "normalize", + "explained_by": "hw_transpose", + "nominal_band_ratio": 169.080588, + "results": [ + { + "band_ratio": 169.080588, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 119.778016, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 210.748392, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 0.0933896374, + "explains": true, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 311.914062, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "flag" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "/normalize/Div_output_0", + "basis": "interface hypothesis 'hw_transpose' explains the first over-band tap (normalize)", + "index": 0, + "neighbourhood": [ + { + "band_ratio": 111.131751, + "index": 0, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "fail", + "tap": "normalize" + }, + { + "band_ratio": 101.899772, + "index": 1, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.0/features.0.2/HardSwish_output_0" + }, + "status": "fail", + "tap": "net.features.0" + } + ], + "observed_first_over_band": { + "index": 0, + "tap": "normalize" + }, + "shape": 224, + "tap": "normalize" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "85e0b88657c03cc9f397844a822969df83763ce2fe4671ecd5ef05f5f3d5e930", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "63f0cef96c8f216a29c290fcb114abde3efd6142a0e7bc61526e01cbe3aa1b98", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D3", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.5625, + "band_ratio": 26.4256889, + "metrics": { + "corr": 0.972330167, + "finite": true, + "max_abs": 6.44382668, + "mean_abs": 0.347364495, + "psnr_db": 34.9341851, + "ref_absmax": 24.3847065, + "rel_max": 0.264256889, + "scaled_max_abs": 0.264256889 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 0, + "n_judged": 16, + "n_taps": 16, + "taps": [ + { + "band_ratio": 116.187157, + "index": 0, + "metrics": { + "corr": 0.675686237, + "finite": true, + "max_abs": 13.3950891, + "mean_abs": 0.900044108, + "psnr_db": 19.0469554, + "ref_absmax": 11.5288897, + "rel_max": 1.16187157, + "scaled_max_abs": 1.16187157 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "fail", + "tap": "normalize", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 101.890474, + "index": 1, + "metrics": { + "corr": 0.363054952, + "finite": true, + "max_abs": 193.625, + "mean_abs": 0.953681082, + "psnr_db": 32.6072618, + "ref_absmax": 190.032486, + "rel_max": 1.01890474, + "scaled_max_abs": 1.01890474 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.0/features.0.2/HardSwish_output_0" + }, + "status": "fail", + "tap": "net.features.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 105.57051, + "index": 2, + "metrics": { + "corr": 0.457484149, + "finite": true, + "max_abs": 47.9817009, + "mean_abs": 1.30989908, + "psnr_db": 29.9422299, + "ref_absmax": 45.4499092, + "rel_max": 1.0557051, + "scaled_max_abs": 1.0557051 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.1/block/block.2/block.2.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.1", + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 65.459236, + "index": 3, + "metrics": { + "corr": 0.786660221, + "finite": true, + "max_abs": 16.9517944, + "mean_abs": 0.789361565, + "psnr_db": 30.3852922, + "ref_absmax": 25.896719, + "rel_max": 0.65459236, + "scaled_max_abs": 0.65459236 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.2/block/block.2/block.2.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 99.0082862, + "index": 4, + "metrics": { + "corr": 0.675919264, + "finite": true, + "max_abs": 25.4565043, + "mean_abs": 1.08275882, + "psnr_db": 29.1431039, + "ref_absmax": 25.7114887, + "rel_max": 0.990082862, + "scaled_max_abs": 0.990082862 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.3/Add_output_0" + }, + "status": "fail", + "tap": "net.features.3", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 60.9791791, + "index": 5, + "metrics": { + "corr": 0.808674172, + "finite": true, + "max_abs": 10.4322934, + "mean_abs": 0.443676799, + "psnr_db": 32.0881499, + "ref_absmax": 17.1079597, + "rel_max": 0.609791791, + "scaled_max_abs": 0.609791791 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.4/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.4", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 79.1920921, + "index": 6, + "metrics": { + "corr": 0.675547284, + "finite": true, + "max_abs": 17.6745887, + "mean_abs": 0.591670084, + "psnr_db": 31.1531908, + "ref_absmax": 22.3186283, + "rel_max": 0.791920921, + "scaled_max_abs": 0.791920921 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.5/Add_output_0" + }, + "status": "fail", + "tap": "net.features.5", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 64.5126273, + "index": 7, + "metrics": { + "corr": 0.863514021, + "finite": true, + "max_abs": 40.4946232, + "mean_abs": 0.968672536, + "psnr_db": 35.7947947, + "ref_absmax": 62.7700729, + "rel_max": 0.645126273, + "scaled_max_abs": 0.645126273 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.6/Add_output_0" + }, + "status": "fail", + "tap": "net.features.6", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 61.8505118, + "index": 8, + "metrics": { + "corr": 0.719359704, + "finite": true, + "max_abs": 12.7933545, + "mean_abs": 0.534156374, + "psnr_db": 32.5636897, + "ref_absmax": 20.6843147, + "rel_max": 0.618505118, + "scaled_max_abs": 0.618505118 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.7/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 64.8228787, + "index": 9, + "metrics": { + "corr": 0.671565246, + "finite": true, + "max_abs": 12.6106221, + "mean_abs": 0.654689416, + "psnr_db": 30.8437231, + "ref_absmax": 19.453968, + "rel_max": 0.648228787, + "scaled_max_abs": 0.648228787 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.8/Add_output_0" + }, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 82.8832285, + "index": 10, + "metrics": { + "corr": 0.806760668, + "finite": true, + "max_abs": 2.89650059, + "mean_abs": 0.183407761, + "psnr_db": 27.4964162, + "ref_absmax": 3.49467635, + "rel_max": 0.828832285, + "scaled_max_abs": 0.828832285 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.9/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 79.2625835, + "index": 11, + "metrics": { + "corr": 0.819692277, + "finite": true, + "max_abs": 2.96402359, + "mean_abs": 0.216393586, + "psnr_db": 26.9164965, + "ref_absmax": 3.73949909, + "rel_max": 0.792625835, + "scaled_max_abs": 0.792625835 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.10/Add_output_0" + }, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 76.5908812, + "index": 12, + "metrics": { + "corr": 0.836477004, + "finite": true, + "max_abs": 3.47326231, + "mean_abs": 0.243074575, + "psnr_db": 27.7324117, + "ref_absmax": 4.53482485, + "rel_max": 0.765908812, + "scaled_max_abs": 0.765908812 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.11/Add_output_0" + }, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 81.4140831, + "index": 13, + "metrics": { + "corr": 0.793535353, + "finite": true, + "max_abs": 8.22262859, + "mean_abs": 0.14534595, + "psnr_db": 30.4762448, + "ref_absmax": 10.099762, + "rel_max": 0.814140831, + "scaled_max_abs": 0.814140831 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.12/features.12.2/HardSwish_output_0" + }, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 25.0700656, + "index": 14, + "metrics": { + "corr": 0.967539965, + "finite": true, + "max_abs": 1.31515288, + "mean_abs": 0.045934398, + "psnr_db": 35.1793523, + "ref_absmax": 5.24590921, + "rel_max": 0.250700656, + "scaled_max_abs": 0.250700656 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 26.4256889, + "index": 15, + "metrics": { + "corr": 0.972330167, + "finite": true, + "max_abs": 6.44382668, + "mean_abs": 0.347364495, + "psnr_db": 34.9341851, + "ref_absmax": 24.3847065, + "rel_max": 0.264256889, + "scaled_max_abs": 0.264256889 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.6875, + "band_ratio": 53.6740925, + "metrics": { + "corr": 0.966261522, + "finite": true, + "max_abs": 9.67483687, + "mean_abs": 0.334341857, + "psnr_db": 32.6885775, + "ref_absmax": 18.0251522, + "rel_max": 0.536740925, + "scaled_max_abs": 0.536740925 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 0, + "n_judged": 16, + "n_taps": 16, + "taps": [ + { + "band_ratio": 111.131751, + "index": 0, + "metrics": { + "corr": 0.709012436, + "finite": true, + "max_abs": 12.8122569, + "mean_abs": 0.852976692, + "psnr_db": 19.6230811, + "ref_absmax": 11.5288897, + "rel_max": 1.11131751, + "scaled_max_abs": 1.11131751 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "fail", + "tap": "normalize", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 101.899772, + "index": 1, + "metrics": { + "corr": 0.372294259, + "finite": true, + "max_abs": 172.25, + "mean_abs": 0.898463163, + "psnr_db": 32.1266287, + "ref_absmax": 169.038651, + "rel_max": 1.01899772, + "scaled_max_abs": 1.01899772 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.0/features.0.2/HardSwish_output_0" + }, + "status": "fail", + "tap": "net.features.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 112.993375, + "index": 2, + "metrics": { + "corr": 0.465547944, + "finite": true, + "max_abs": 50.4449272, + "mean_abs": 1.22304354, + "psnr_db": 30.0011827, + "ref_absmax": 44.644146, + "rel_max": 1.12993375, + "scaled_max_abs": 1.12993375 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.1/block/block.2/block.2.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.1", + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 68.7697251, + "index": 3, + "metrics": { + "corr": 0.780757354, + "finite": true, + "max_abs": 21.0536413, + "mean_abs": 0.74603061, + "psnr_db": 31.9614614, + "ref_absmax": 30.6146946, + "rel_max": 0.687697251, + "scaled_max_abs": 0.687697251 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.2/block/block.2/block.2.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.2", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 94.6866623, + "index": 4, + "metrics": { + "corr": 0.691532615, + "finite": true, + "max_abs": 24.7763481, + "mean_abs": 1.03984793, + "psnr_db": 29.4480599, + "ref_absmax": 26.1666718, + "rel_max": 0.946866623, + "scaled_max_abs": 0.946866623 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.3/Add_output_0" + }, + "status": "fail", + "tap": "net.features.3", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 61.7847447, + "index": 5, + "metrics": { + "corr": 0.815873025, + "finite": true, + "max_abs": 12.0486969, + "mean_abs": 0.437623401, + "psnr_db": 33.1834068, + "ref_absmax": 19.5010872, + "rel_max": 0.617847447, + "scaled_max_abs": 0.617847447 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.4/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.4", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 89.6283434, + "index": 6, + "metrics": { + "corr": 0.695541693, + "finite": true, + "max_abs": 26.9298205, + "mean_abs": 0.586359649, + "psnr_db": 33.250061, + "ref_absmax": 30.0460987, + "rel_max": 0.896283434, + "scaled_max_abs": 0.896283434 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.5/Add_output_0" + }, + "status": "fail", + "tap": "net.features.5", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 75.6880498, + "index": 7, + "metrics": { + "corr": 0.85056292, + "finite": true, + "max_abs": 51.2258224, + "mean_abs": 0.911780437, + "psnr_db": 37.3025663, + "ref_absmax": 67.6801987, + "rel_max": 0.756880498, + "scaled_max_abs": 0.756880498 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.6/Add_output_0" + }, + "status": "fail", + "tap": "net.features.6", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 77.4393816, + "index": 8, + "metrics": { + "corr": 0.666146045, + "finite": true, + "max_abs": 13.3855019, + "mean_abs": 0.527543749, + "psnr_db": 31.5280563, + "ref_absmax": 17.2851353, + "rel_max": 0.774393816, + "scaled_max_abs": 0.774393816 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.7/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 85.4444793, + "index": 9, + "metrics": { + "corr": 0.61962519, + "finite": true, + "max_abs": 14.288743, + "mean_abs": 0.642043924, + "psnr_db": 29.9388917, + "ref_absmax": 16.7228394, + "rel_max": 0.854444793, + "scaled_max_abs": 0.854444793 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.8/Add_output_0" + }, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 101.51049, + "index": 10, + "metrics": { + "corr": 0.802587202, + "finite": true, + "max_abs": 2.74865618, + "mean_abs": 0.178809055, + "psnr_db": 25.5093157, + "ref_absmax": 2.7077558, + "rel_max": 1.0151049, + "scaled_max_abs": 1.0151049 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.9/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 96.6347855, + "index": 11, + "metrics": { + "corr": 0.830987685, + "finite": true, + "max_abs": 3.17480898, + "mean_abs": 0.210788693, + "psnr_db": 25.5820392, + "ref_absmax": 3.28536868, + "rel_max": 0.966347855, + "scaled_max_abs": 0.966347855 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.10/Add_output_0" + }, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 105.827411, + "index": 12, + "metrics": { + "corr": 0.834587814, + "finite": true, + "max_abs": 4.200912, + "mean_abs": 0.241603986, + "psnr_db": 26.0303976, + "ref_absmax": 3.9695878, + "rel_max": 1.05827411, + "scaled_max_abs": 1.05827411 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.11/Add_output_0" + }, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 73.8790767, + "index": 13, + "metrics": { + "corr": 0.785169584, + "finite": true, + "max_abs": 6.83978297, + "mean_abs": 0.140814639, + "psnr_db": 29.9424678, + "ref_absmax": 9.25807858, + "rel_max": 0.738790767, + "scaled_max_abs": 0.738790767 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.12/features.12.2/HardSwish_output_0" + }, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "uniform", + "index": 16 + } + }, + { + "band_ratio": 56.0907393, + "index": 14, + "metrics": { + "corr": 0.957770657, + "finite": true, + "max_abs": 2.91083097, + "mean_abs": 0.0421924141, + "psnr_db": 34.2305118, + "ref_absmax": 5.18950367, + "rel_max": 0.560907393, + "scaled_max_abs": 0.560907393 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 53.6740925, + "index": 15, + "metrics": { + "corr": 0.966261522, + "finite": true, + "max_abs": 9.67483687, + "mean_abs": 0.334341857, + "psnr_db": 32.6885775, + "ref_absmax": 18.0251522, + "rel_max": 0.536740925, + "scaled_max_abs": 0.536740925 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp16", + "id": "mobilenet_v3_small__input_hw_swap__onnx_fp16", + "model": "mobilenet_v3_small", + "path": "onnx", + "variant": "input_hw_swap" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/mobilenet_v3_small__input_hw_swap__onnx_fp32.json b/bench/verdicts_e2e_gated/mobilenet_v3_small__input_hw_swap__onnx_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..80e03d6d2d70609a6099298ef51752f706b68af4 --- /dev/null +++ b/bench/verdicts_e2e_gated/mobilenet_v3_small__input_hw_swap__onnx_fp32.json @@ -0,0 +1,1058 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "normalize", + "explained_by": "hw_transpose", + "nominal_band_ratio": 16910.1721, + "results": [ + { + "band_ratio": 16910.1721, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 11978.5595, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 21078.7917, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 0.0, + "explains": true, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 31179.0395, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "flag" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "/normalize/Div_output_0", + "basis": "interface hypothesis 'hw_transpose' explains the first over-band tap (normalize)", + "index": 0, + "neighbourhood": [ + { + "band_ratio": 11112.3355, + "index": 0, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "fail", + "tap": "normalize" + }, + { + "band_ratio": 10190.1018, + "index": 1, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.0/features.0.2/HardSwish_output_0" + }, + "status": "fail", + "tap": "net.features.0" + } + ], + "observed_first_over_band": { + "index": 0, + "tap": "normalize" + }, + "shape": 224, + "tap": "normalize" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "6a05ea1107a03fb5707300201aa773d4b3c474159a56ac98e0f7cd8ac2c53b95", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "a6735af5a3eebfd401ed50d018e7d6b496dacfd7e9785f229e7b48195057b975", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D3", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.5625, + "band_ratio": 2698.72059, + "metrics": { + "corr": 0.972569412, + "finite": true, + "max_abs": 6.58075094, + "mean_abs": 0.33105241, + "psnr_db": 34.970505, + "ref_absmax": 24.3847065, + "rel_max": 0.269872059, + "scaled_max_abs": 0.269872059 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 0, + "n_judged": 16, + "n_taps": 16, + "taps": [ + { + "band_ratio": 11616.7792, + "index": 0, + "metrics": { + "corr": 0.675680703, + "finite": true, + "max_abs": 13.3928566, + "mean_abs": 0.899941866, + "psnr_db": 19.0470658, + "ref_absmax": 11.5288897, + "rel_max": 1.16167792, + "scaled_max_abs": 1.16167792 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "fail", + "tap": "normalize", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 10189.7307, + "index": 1, + "metrics": { + "corr": 0.36307455, + "finite": true, + "max_abs": 193.637985, + "mean_abs": 0.953560859, + "psnr_db": 32.6065796, + "ref_absmax": 190.032486, + "rel_max": 1.01897307, + "scaled_max_abs": 1.01897307 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.0/features.0.2/HardSwish_output_0" + }, + "status": "fail", + "tap": "net.features.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 10556.9614, + "index": 2, + "metrics": { + "corr": 0.457524686, + "finite": true, + "max_abs": 47.9812937, + "mean_abs": 1.30964353, + "psnr_db": 29.9416751, + "ref_absmax": 45.4499092, + "rel_max": 1.05569614, + "scaled_max_abs": 1.05569614 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.1/block/block.2/block.2.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.1", + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 6543.96961, + "index": 3, + "metrics": { + "corr": 0.786675363, + "finite": true, + "max_abs": 16.9467342, + "mean_abs": 0.788354016, + "psnr_db": 30.3848733, + "ref_absmax": 25.896719, + "rel_max": 0.654396961, + "scaled_max_abs": 0.654396961 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.2/block/block.2/block.2.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9893.66405, + "index": 4, + "metrics": { + "corr": 0.675982533, + "finite": true, + "max_abs": 25.4380832, + "mean_abs": 1.08114153, + "psnr_db": 29.1426613, + "ref_absmax": 25.7114887, + "rel_max": 0.989366405, + "scaled_max_abs": 0.989366405 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.3/Add_output_0" + }, + "status": "fail", + "tap": "net.features.3", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6093.94946, + "index": 5, + "metrics": { + "corr": 0.808861011, + "finite": true, + "max_abs": 10.4255042, + "mean_abs": 0.441239982, + "psnr_db": 32.0889631, + "ref_absmax": 17.1079597, + "rel_max": 0.609394946, + "scaled_max_abs": 0.609394946 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.4/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.4", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7907.7533, + "index": 6, + "metrics": { + "corr": 0.675918437, + "finite": true, + "max_abs": 17.6490207, + "mean_abs": 0.587926484, + "psnr_db": 31.1553292, + "ref_absmax": 22.3186283, + "rel_max": 0.79077533, + "scaled_max_abs": 0.79077533 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.5/Add_output_0" + }, + "status": "fail", + "tap": "net.features.5", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6447.44621, + "index": 7, + "metrics": { + "corr": 0.863682087, + "finite": true, + "max_abs": 40.4706669, + "mean_abs": 0.95479562, + "psnr_db": 35.7998915, + "ref_absmax": 62.7700729, + "rel_max": 0.644744621, + "scaled_max_abs": 0.644744621 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.6/Add_output_0" + }, + "status": "fail", + "tap": "net.features.6", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6184.16271, + "index": 8, + "metrics": { + "corr": 0.719534133, + "finite": true, + "max_abs": 12.7915168, + "mean_abs": 0.530266014, + "psnr_db": 32.5644673, + "ref_absmax": 20.6843147, + "rel_max": 0.618416271, + "scaled_max_abs": 0.618416271 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.7/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6488.33229, + "index": 9, + "metrics": { + "corr": 0.671556887, + "finite": true, + "max_abs": 12.6223809, + "mean_abs": 0.64872809, + "psnr_db": 30.8458385, + "ref_absmax": 19.453968, + "rel_max": 0.648833229, + "scaled_max_abs": 0.648833229 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.8/Add_output_0" + }, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 8297.66877, + "index": 10, + "metrics": { + "corr": 0.806636505, + "finite": true, + "max_abs": 2.89976668, + "mean_abs": 0.179967077, + "psnr_db": 27.5011008, + "ref_absmax": 3.49467635, + "rel_max": 0.829766877, + "scaled_max_abs": 0.829766877 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.9/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7958.85873, + "index": 11, + "metrics": { + "corr": 0.819688813, + "finite": true, + "max_abs": 2.9762145, + "mean_abs": 0.212396214, + "psnr_db": 26.9183156, + "ref_absmax": 3.73949909, + "rel_max": 0.795885873, + "scaled_max_abs": 0.795885873 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.10/Add_output_0" + }, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7678.00225, + "index": 12, + "metrics": { + "corr": 0.836364082, + "finite": true, + "max_abs": 3.48183954, + "mean_abs": 0.238270155, + "psnr_db": 27.7354164, + "ref_absmax": 4.53482485, + "rel_max": 0.767800225, + "scaled_max_abs": 0.767800225 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.11/Add_output_0" + }, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 8142.70571, + "index": 13, + "metrics": { + "corr": 0.793610036, + "finite": true, + "max_abs": 8.22393894, + "mean_abs": 0.142642326, + "psnr_db": 30.4822911, + "ref_absmax": 10.099762, + "rel_max": 0.814270571, + "scaled_max_abs": 0.814270571 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.12/features.12.2/HardSwish_output_0" + }, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 2537.97811, + "index": 14, + "metrics": { + "corr": 0.967812525, + "finite": true, + "max_abs": 1.33140028, + "mean_abs": 0.0437770289, + "psnr_db": 35.2251926, + "ref_absmax": 5.24590921, + "rel_max": 0.253797811, + "scaled_max_abs": 0.253797811 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 2698.72059, + "index": 15, + "metrics": { + "corr": 0.972569412, + "finite": true, + "max_abs": 6.58075094, + "mean_abs": 0.33105241, + "psnr_db": 34.970505, + "ref_absmax": 24.3847065, + "rel_max": 0.269872059, + "scaled_max_abs": 0.269872059 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.6875, + "band_ratio": 5138.47327, + "metrics": { + "corr": 0.966820031, + "finite": true, + "max_abs": 9.26217628, + "mean_abs": 0.325557592, + "psnr_db": 32.764582, + "ref_absmax": 18.0251522, + "rel_max": 0.513847327, + "scaled_max_abs": 0.513847327 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 0, + "n_judged": 16, + "n_taps": 16, + "taps": [ + { + "band_ratio": 11112.3355, + "index": 0, + "metrics": { + "corr": 0.709006652, + "finite": true, + "max_abs": 12.811289, + "mean_abs": 0.852875386, + "psnr_db": 19.6231673, + "ref_absmax": 11.5288897, + "rel_max": 1.11123355, + "scaled_max_abs": 1.11123355 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "fail", + "tap": "normalize", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10190.1018, + "index": 1, + "metrics": { + "corr": 0.372312508, + "finite": true, + "max_abs": 172.252106, + "mean_abs": 0.898352126, + "psnr_db": 32.1259685, + "ref_absmax": 169.038651, + "rel_max": 1.01901018, + "scaled_max_abs": 1.01901018 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.0/features.0.2/HardSwish_output_0" + }, + "status": "fail", + "tap": "net.features.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 11299.3128, + "index": 2, + "metrics": { + "corr": 0.465585719, + "finite": true, + "max_abs": 50.4448171, + "mean_abs": 1.22277436, + "psnr_db": 30.0006222, + "ref_absmax": 44.644146, + "rel_max": 1.12993128, + "scaled_max_abs": 1.12993128 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.1/block/block.2/block.2.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.1", + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 6867.40047, + "index": 3, + "metrics": { + "corr": 0.780780243, + "finite": true, + "max_abs": 21.0243368, + "mean_abs": 0.744990459, + "psnr_db": 31.9611217, + "ref_absmax": 30.6146946, + "rel_max": 0.686740047, + "scaled_max_abs": 0.686740047 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.2/block/block.2/block.2.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.2", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9467.07262, + "index": 4, + "metrics": { + "corr": 0.691615515, + "finite": true, + "max_abs": 24.7721782, + "mean_abs": 1.03837007, + "psnr_db": 29.4476429, + "ref_absmax": 26.1666718, + "rel_max": 0.946707262, + "scaled_max_abs": 0.946707262 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.3/Add_output_0" + }, + "status": "fail", + "tap": "net.features.3", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6173.36502, + "index": 5, + "metrics": { + "corr": 0.816121627, + "finite": true, + "max_abs": 12.0387329, + "mean_abs": 0.435172159, + "psnr_db": 33.1845303, + "ref_absmax": 19.5010872, + "rel_max": 0.617336502, + "scaled_max_abs": 0.617336502 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.4/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.4", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 8961.35016, + "index": 6, + "metrics": { + "corr": 0.696017619, + "finite": true, + "max_abs": 26.9253612, + "mean_abs": 0.582505241, + "psnr_db": 33.2513231, + "ref_absmax": 30.0460987, + "rel_max": 0.896135016, + "scaled_max_abs": 0.896135016 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.5/Add_output_0" + }, + "status": "fail", + "tap": "net.features.5", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7564.11491, + "index": 7, + "metrics": { + "corr": 0.85100818, + "finite": true, + "max_abs": 51.19408, + "mean_abs": 0.905477992, + "psnr_db": 37.3055084, + "ref_absmax": 67.6801987, + "rel_max": 0.756411491, + "scaled_max_abs": 0.756411491 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.6/Add_output_0" + }, + "status": "fail", + "tap": "net.features.6", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7734.77639, + "index": 8, + "metrics": { + "corr": 0.666851849, + "finite": true, + "max_abs": 13.3696656, + "mean_abs": 0.524639727, + "psnr_db": 31.5329967, + "ref_absmax": 17.2851353, + "rel_max": 0.773477639, + "scaled_max_abs": 0.773477639 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.7/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 8538.79815, + "index": 9, + "metrics": { + "corr": 0.620272039, + "finite": true, + "max_abs": 14.279295, + "mean_abs": 0.638317793, + "psnr_db": 29.9435771, + "ref_absmax": 16.7228394, + "rel_max": 0.853879815, + "scaled_max_abs": 0.853879815 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.8/Add_output_0" + }, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10099.8425, + "index": 10, + "metrics": { + "corr": 0.802671524, + "finite": true, + "max_abs": 2.73479071, + "mean_abs": 0.176687732, + "psnr_db": 25.5168743, + "ref_absmax": 2.7077558, + "rel_max": 1.00998425, + "scaled_max_abs": 1.00998425 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.9/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9466.99725, + "index": 11, + "metrics": { + "corr": 0.831575959, + "finite": true, + "max_abs": 3.11025763, + "mean_abs": 0.207864235, + "psnr_db": 25.5905359, + "ref_absmax": 3.28536868, + "rel_max": 0.946699725, + "scaled_max_abs": 0.946699725 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.10/Add_output_0" + }, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10371.1319, + "index": 12, + "metrics": { + "corr": 0.835298961, + "finite": true, + "max_abs": 4.11691189, + "mean_abs": 0.238114043, + "psnr_db": 26.050186, + "ref_absmax": 3.9695878, + "rel_max": 1.03711319, + "scaled_max_abs": 1.03711319 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.11/Add_output_0" + }, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7378.08721, + "index": 13, + "metrics": { + "corr": 0.785849081, + "finite": true, + "max_abs": 6.83069111, + "mean_abs": 0.139066013, + "psnr_db": 29.961426, + "ref_absmax": 9.25807858, + "rel_max": 0.737808721, + "scaled_max_abs": 0.737808721 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.12/features.12.2/HardSwish_output_0" + }, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "uniform", + "index": 16 + } + }, + { + "band_ratio": 5603.30057, + "index": 14, + "metrics": { + "corr": 0.959090882, + "finite": true, + "max_abs": 2.90783489, + "mean_abs": 0.0407187713, + "psnr_db": 34.3721154, + "ref_absmax": 5.18950367, + "rel_max": 0.560330057, + "scaled_max_abs": 0.560330057 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 5138.47327, + "index": 15, + "metrics": { + "corr": 0.966820031, + "finite": true, + "max_abs": 9.26217628, + "mean_abs": 0.325557592, + "psnr_db": 32.764582, + "ref_absmax": 18.0251522, + "rel_max": 0.513847327, + "scaled_max_abs": 0.513847327 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp32", + "id": "mobilenet_v3_small__input_hw_swap__onnx_fp32", + "model": "mobilenet_v3_small", + "path": "onnx", + "variant": "input_hw_swap" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/mobilenet_v3_small__int8_clean__onnx_int8.json b/bench/verdicts_e2e_gated/mobilenet_v3_small__int8_clean__onnx_int8.json new file mode 100644 index 0000000000000000000000000000000000000000..a6e9de05163ff97a57c9bcd56d7fde582acfb3f3 --- /dev/null +++ b/bench/verdicts_e2e_gated/mobilenet_v3_small__int8_clean__onnx_int8.json @@ -0,0 +1,1503 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "net.features.0", + "explained_by": null, + "nominal_band_ratio": 1.559964, + "results": [ + { + "band_ratio": 7.13344785, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 8.10510321, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 76.5840225, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 63.2870873, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 28.8528883, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "status": "flag" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "int8", + "first_divergence": { + "artifact_tensor": "/net/features/features.0/features.0.2/HardSwish_output_0_DequantizeLinear_Output", + "basis": "earliest tap over the int8 band", + "index": 1, + "neighbourhood": [ + { + "band_ratio": 0.0358761909, + "index": 0, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 1.49968427, + "index": 1, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.0/features.0.2/HardSwish_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.0" + }, + { + "band_ratio": 24.1337964, + "index": 2, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.1/block/block.2/block.2.0/Conv_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.1" + } + ], + "shape": 224, + "tap": "net.features.0" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "c5a97a1042d2323f67ea980fba4a836a2ab918d1eeb9538a2c8063d102cf3d6e", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "df8f534c401886d7fe90a7a47c95dd0dc5f81cf5cfa90b03b57816db04875745", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "int8 band on exciter probes", + "reason": "a statically quantised model is specified on its calibration distribution; exciter categories ['wide_range', 'near_zero', 'saturating'] are measured and reported per tap ('ungated_exciters') but do not gate" + }, + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D4", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.28125, + "band_ratio": 79.2727252, + "metrics": { + "corr": 0.207272748, + "finite": true, + "max_abs": 9.65353417, + "mean_abs": 1.9152939, + "psnr_db": 15.2615246, + "ref_absmax": 8.47343636, + "rel_max": 1.13927028, + "scaled_max_abs": 1.13927028 + }, + "status": "fail", + "ungated_exciters": { + "band_ratio": 37.0638148, + "metrics": { + "corr": 0.629361852, + "finite": true, + "max_abs": 22.2448335, + "mean_abs": 1.83811503, + "psnr_db": 20.9384841, + "ref_absmax": 24.3847065, + "rel_max": 0.912245283, + "scaled_max_abs": 0.912245283 + } + }, + "worst_probe": { + "category": "uniform", + "index": 17 + } + }, + "first_fail_index": 1, + "n_judged": 16, + "n_taps": 16, + "taps": [ + { + "band_ratio": 0.0358443598, + "index": 0, + "metrics": { + "corr": 0.99998378, + "finite": true, + "max_abs": 0.0093292594, + "mean_abs": 0.00466938237, + "psnr_db": 58.9115834, + "ref_absmax": 2.6400001, + "rel_max": 0.00353381024, + "scaled_max_abs": 0.00353381024 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "normalize", + "ungated_exciters": { + "band_ratio": 7.29207513, + "metrics": { + "corr": 0.927079249, + "finite": true, + "max_abs": 8.8980484, + "mean_abs": 0.355833548, + "psnr_db": 21.0584139, + "ref_absmax": 11.5288897, + "rel_max": 0.771804455, + "scaled_max_abs": 0.771804455 + } + } + }, + { + "band_ratio": 1.42017195, + "index": 1, + "metrics": { + "corr": 0.985798281, + "finite": true, + "max_abs": 92.5418434, + "mean_abs": 0.124437339, + "psnr_db": 46.6312271, + "ref_absmax": 155.765991, + "rel_max": 0.594108141, + "scaled_max_abs": 0.594108141 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.0/features.0.2/HardSwish_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.0", + "ungated_exciters": { + "band_ratio": 30.0718898, + "metrics": { + "corr": 0.699281102, + "finite": true, + "max_abs": 182.968063, + "mean_abs": 0.394718264, + "psnr_db": 36.7313823, + "ref_absmax": 190.032486, + "rel_max": 0.962825182, + "scaled_max_abs": 0.962825182 + } + }, + "worst_probe": { + "category": "uniform", + "index": 16 + } + }, + { + "band_ratio": 24.7289881, + "index": 2, + "metrics": { + "corr": 0.752710119, + "finite": true, + "max_abs": 12.0532521, + "mean_abs": 0.858553063, + "psnr_db": 28.3398355, + "ref_absmax": 23.7995548, + "rel_max": 0.506448637, + "scaled_max_abs": 0.506448637 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.1/block/block.2/block.2.0/Conv_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.1", + "ungated_exciters": { + "band_ratio": 31.8811712, + "metrics": { + "corr": 0.681188288, + "finite": true, + "max_abs": 34.6556585, + "mean_abs": 0.89980856, + "psnr_db": 30.7642058, + "ref_absmax": 45.4499092, + "rel_max": 0.76250226, + "scaled_max_abs": 0.76250226 + } + }, + "worst_probe": { + "category": "natural", + "index": 8 + } + }, + { + "band_ratio": 22.4803654, + "index": 3, + "metrics": { + "corr": 0.775196346, + "finite": true, + "max_abs": 11.1481857, + "mean_abs": 0.807375715, + "psnr_db": 26.6212337, + "ref_absmax": 16.5510483, + "rel_max": 0.673563725, + "scaled_max_abs": 0.673563725 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.2/block/block.2/block.2.0/Conv_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.2", + "ungated_exciters": { + "band_ratio": 31.2183543, + "metrics": { + "corr": 0.687816457, + "finite": true, + "max_abs": 17.183762, + "mean_abs": 1.00608293, + "psnr_db": 27.1613232, + "ref_absmax": 25.896719, + "rel_max": 0.663549771, + "scaled_max_abs": 0.663549771 + } + }, + "worst_probe": { + "category": "natural", + "index": 15 + } + }, + { + "band_ratio": 37.1313367, + "index": 4, + "metrics": { + "corr": 0.628686633, + "finite": true, + "max_abs": 11.0903921, + "mean_abs": 1.07996563, + "psnr_db": 25.8387221, + "ref_absmax": 19.068903, + "rel_max": 0.581595707, + "scaled_max_abs": 0.581595707 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.3/Add_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.3", + "ungated_exciters": { + "band_ratio": 26.1533793, + "metrics": { + "corr": 0.738466207, + "finite": true, + "max_abs": 24.9516305, + "mean_abs": 1.15688126, + "psnr_db": 28.0964648, + "ref_absmax": 25.7114887, + "rel_max": 0.970446745, + "scaled_max_abs": 0.970446745 + } + }, + "worst_probe": { + "category": "uniform", + "index": 19 + } + }, + { + "band_ratio": 87.1235622, + "index": 5, + "metrics": { + "corr": 0.128764378, + "finite": true, + "max_abs": 3.80840302, + "mean_abs": 0.87397144, + "psnr_db": 16.2547723, + "ref_absmax": 3.73605371, + "rel_max": 1.01936517, + "scaled_max_abs": 1.01936517 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.4/block/block.3/block.3.0/Conv_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.4", + "ungated_exciters": { + "band_ratio": 51.937385, + "metrics": { + "corr": 0.48062615, + "finite": true, + "max_abs": 17.4586187, + "mean_abs": 1.00834258, + "psnr_db": 26.0572438, + "ref_absmax": 17.1079597, + "rel_max": 1.02049683, + "scaled_max_abs": 1.02049683 + } + }, + "worst_probe": { + "category": "natural", + "index": 3 + } + }, + { + "band_ratio": 77.9404654, + "index": 6, + "metrics": { + "corr": 0.220595346, + "finite": true, + "max_abs": 5.29166651, + "mean_abs": 0.922962856, + "psnr_db": 15.9905563, + "ref_absmax": 3.86317372, + "rel_max": 1.36977182, + "scaled_max_abs": 1.36977182 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.5/Add_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.5", + "ungated_exciters": { + "band_ratio": 57.6997339, + "metrics": { + "corr": 0.423002661, + "finite": true, + "max_abs": 20.1553373, + "mean_abs": 1.08060888, + "psnr_db": 27.0884685, + "ref_absmax": 22.3186283, + "rel_max": 0.903072404, + "scaled_max_abs": 0.903072404 + } + }, + "worst_probe": { + "category": "uniform", + "index": 16 + } + }, + { + "band_ratio": 66.9857809, + "index": 7, + "metrics": { + "corr": 0.330142191, + "finite": true, + "max_abs": 6.92493987, + "mean_abs": 1.21730102, + "psnr_db": 17.6686061, + "ref_absmax": 6.44057798, + "rel_max": 1.07520472, + "scaled_max_abs": 1.07520472 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.6/Add_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.6", + "ungated_exciters": { + "band_ratio": 71.5075916, + "metrics": { + "corr": 0.284924084, + "finite": true, + "max_abs": 62.5242316, + "mean_abs": 2.47860103, + "psnr_db": 26.5274494, + "ref_absmax": 62.7700729, + "rel_max": 0.996083463, + "scaled_max_abs": 0.996083463 + } + }, + "worst_probe": { + "category": "natural", + "index": 7 + } + }, + { + "band_ratio": 66.581552, + "index": 8, + "metrics": { + "corr": 0.33418448, + "finite": true, + "max_abs": 5.67223835, + "mean_abs": 0.677296637, + "psnr_db": 19.0013975, + "ref_absmax": 3.93024445, + "rel_max": 1.44322788, + "scaled_max_abs": 1.44322788 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.7/block/block.3/block.3.0/Conv_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.7", + "ungated_exciters": { + "band_ratio": 68.1176743, + "metrics": { + "corr": 0.318823257, + "finite": true, + "max_abs": 19.5892518, + "mean_abs": 0.865074792, + "psnr_db": 27.5543597, + "ref_absmax": 20.6843147, + "rel_max": 0.947058291, + "scaled_max_abs": 0.947058291 + } + }, + "worst_probe": { + "category": "natural", + "index": 8 + } + }, + { + "band_ratio": 63.1256791, + "index": 9, + "metrics": { + "corr": 0.368743209, + "finite": true, + "max_abs": 5.70869851, + "mean_abs": 0.793413004, + "psnr_db": 19.4516978, + "ref_absmax": 5.01391029, + "rel_max": 1.13857213, + "scaled_max_abs": 1.13857213 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.8/Add_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.8", + "ungated_exciters": { + "band_ratio": 70.5733959, + "metrics": { + "corr": 0.294266041, + "finite": true, + "max_abs": 18.6991002, + "mean_abs": 0.978448448, + "psnr_db": 26.6775614, + "ref_absmax": 19.453968, + "rel_max": 0.96119723, + "scaled_max_abs": 0.96119723 + } + }, + "worst_probe": { + "category": "natural", + "index": 8 + } + }, + { + "band_ratio": 65.5866649, + "index": 10, + "metrics": { + "corr": 0.344133351, + "finite": true, + "max_abs": 2.82424152, + "mean_abs": 0.377374869, + "psnr_db": 17.941985, + "ref_absmax": 1.95912504, + "rel_max": 1.44158308, + "scaled_max_abs": 1.44158308 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.9/block/block.3/block.3.0/Conv_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.9", + "ungated_exciters": { + "band_ratio": 56.4055017, + "metrics": { + "corr": 0.435944983, + "finite": true, + "max_abs": 3.61226396, + "mean_abs": 0.35568634, + "psnr_db": 22.1988696, + "ref_absmax": 3.49467635, + "rel_max": 1.03364764, + "scaled_max_abs": 1.03364764 + } + }, + "worst_probe": { + "category": "natural", + "index": 8 + } + }, + { + "band_ratio": 69.5755592, + "index": 11, + "metrics": { + "corr": 0.304244408, + "finite": true, + "max_abs": 3.00405228, + "mean_abs": 0.491827053, + "psnr_db": 17.85736, + "ref_absmax": 2.49726367, + "rel_max": 1.20293757, + "scaled_max_abs": 1.20293757 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.10/Add_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.10", + "ungated_exciters": { + "band_ratio": 49.1312956, + "metrics": { + "corr": 0.508687044, + "finite": true, + "max_abs": 4.01572141, + "mean_abs": 0.408033643, + "psnr_db": 21.8712918, + "ref_absmax": 3.73949909, + "rel_max": 1.07386613, + "scaled_max_abs": 1.07386613 + } + }, + "worst_probe": { + "category": "natural", + "index": 6 + } + }, + { + "band_ratio": 71.9184874, + "index": 12, + "metrics": { + "corr": 0.280815126, + "finite": true, + "max_abs": 3.28430164, + "mean_abs": 0.587152558, + "psnr_db": 16.4380584, + "ref_absmax": 2.55655575, + "rel_max": 1.28465872, + "scaled_max_abs": 1.28465872 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.11/Add_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.11", + "ungated_exciters": { + "band_ratio": 52.8044858, + "metrics": { + "corr": 0.471955142, + "finite": true, + "max_abs": 4.68407673, + "mean_abs": 0.508189864, + "psnr_db": 21.95764, + "ref_absmax": 4.53482485, + "rel_max": 1.03291238, + "scaled_max_abs": 1.03291238 + } + }, + "worst_probe": { + "category": "natural", + "index": 11 + } + }, + { + "band_ratio": 71.765854, + "index": 13, + "metrics": { + "corr": 0.28234146, + "finite": true, + "max_abs": 7.02913295, + "mean_abs": 0.331412764, + "psnr_db": 21.5834393, + "ref_absmax": 6.42993307, + "rel_max": 1.09318913, + "scaled_max_abs": 1.09318913 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.12/features.12.2/HardSwish_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.12", + "ungated_exciters": { + "band_ratio": 61.838134, + "metrics": { + "corr": 0.38161866, + "finite": true, + "max_abs": 10.099762, + "mean_abs": 0.287487297, + "psnr_db": 25.0326602, + "ref_absmax": 10.099762, + "rel_max": 1.0, + "scaled_max_abs": 1.0 + } + }, + "worst_probe": { + "category": "natural", + "index": 2 + } + }, + { + "band_ratio": 65.4252062, + "index": 14, + "metrics": { + "corr": 0.345747938, + "finite": true, + "max_abs": 2.77919528, + "mean_abs": 0.248918589, + "psnr_db": 17.292882, + "ref_absmax": 2.65402794, + "rel_max": 1.04716127, + "scaled_max_abs": 1.04716127 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_exciters": { + "band_ratio": 55.9936347, + "metrics": { + "corr": 0.440063653, + "finite": true, + "max_abs": 5.24590921, + "mean_abs": 0.220500158, + "psnr_db": 22.081467, + "ref_absmax": 5.24590921, + "rel_max": 1.0, + "scaled_max_abs": 1.0 + } + }, + "worst_probe": { + "category": "natural", + "index": 15 + } + }, + { + "band_ratio": 79.2727252, + "index": 15, + "metrics": { + "corr": 0.207272748, + "finite": true, + "max_abs": 9.65353417, + "mean_abs": 1.9152939, + "psnr_db": 15.2615246, + "ref_absmax": 8.47343636, + "rel_max": 1.13927028, + "scaled_max_abs": 1.13927028 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier", + "ungated_exciters": { + "band_ratio": 37.0638148, + "metrics": { + "corr": 0.629361852, + "finite": true, + "max_abs": 22.2448335, + "mean_abs": 1.83811503, + "psnr_db": 20.9384841, + "ref_absmax": 24.3847065, + "rel_max": 0.912245283, + "scaled_max_abs": 0.912245283 + } + }, + "worst_probe": { + "category": "uniform", + "index": 17 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.125, + "band_ratio": 77.346894, + "metrics": { + "corr": 0.22653106, + "finite": true, + "max_abs": 9.36063409, + "mean_abs": 1.7451794, + "psnr_db": 15.4434764, + "ref_absmax": 8.29382229, + "rel_max": 1.12862728, + "scaled_max_abs": 1.12862728 + }, + "status": "fail", + "ungated_exciters": { + "band_ratio": 56.252668, + "metrics": { + "corr": 0.43747332, + "finite": true, + "max_abs": 16.5776234, + "mean_abs": 2.14491334, + "psnr_db": 18.6972738, + "ref_absmax": 18.0251522, + "rel_max": 0.919693946, + "scaled_max_abs": 0.919693946 + } + }, + "worst_probe": { + "category": "uniform", + "index": 16 + } + }, + "first_fail_index": 1, + "n_judged": 16, + "n_taps": 16, + "taps": [ + { + "band_ratio": 0.0358761909, + "index": 0, + "metrics": { + "corr": 0.999983129, + "finite": true, + "max_abs": 0.009329319, + "mean_abs": 0.00467525361, + "psnr_db": 58.9038735, + "ref_absmax": 2.6400001, + "rel_max": 0.00353383281, + "scaled_max_abs": 0.00353383281 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "normalize", + "ungated_exciters": { + "band_ratio": 6.40507214, + "metrics": { + "corr": 0.935949279, + "finite": true, + "max_abs": 8.8980484, + "mean_abs": 0.346772095, + "psnr_db": 21.6136782, + "ref_absmax": 11.5288897, + "rel_max": 0.771804455, + "scaled_max_abs": 0.771804455 + } + } + }, + { + "band_ratio": 1.49968427, + "index": 1, + "metrics": { + "corr": 0.985003157, + "finite": true, + "max_abs": 96.7626572, + "mean_abs": 0.129738686, + "psnr_db": 46.7789777, + "ref_absmax": 159.543579, + "rel_max": 0.606496718, + "scaled_max_abs": 0.606496718 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.0/features.0.2/HardSwish_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.0", + "ungated_exciters": { + "band_ratio": 31.641311, + "metrics": { + "corr": 0.68358689, + "finite": true, + "max_abs": 147.390145, + "mean_abs": 0.373456672, + "psnr_db": 36.8636755, + "ref_absmax": 169.038651, + "rel_max": 0.871931622, + "scaled_max_abs": 0.871931622 + } + }, + "worst_probe": { + "category": "uniform", + "index": 18 + } + }, + { + "band_ratio": 24.1337964, + "index": 2, + "metrics": { + "corr": 0.758662036, + "finite": true, + "max_abs": 12.1677488, + "mean_abs": 0.836431342, + "psnr_db": 28.2712451, + "ref_absmax": 18.9904041, + "rel_max": 0.640731431, + "scaled_max_abs": 0.640731431 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.1/block/block.2/block.2.0/Conv_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.1", + "ungated_exciters": { + "band_ratio": 32.41996, + "metrics": { + "corr": 0.6758004, + "finite": true, + "max_abs": 32.7971554, + "mean_abs": 0.821957581, + "psnr_db": 30.9380241, + "ref_absmax": 44.644146, + "rel_max": 0.734635072, + "scaled_max_abs": 0.734635072 + } + }, + "worst_probe": { + "category": "natural", + "index": 9 + } + }, + { + "band_ratio": 21.9247707, + "index": 3, + "metrics": { + "corr": 0.780752293, + "finite": true, + "max_abs": 10.5764313, + "mean_abs": 0.785204666, + "psnr_db": 25.6597008, + "ref_absmax": 14.3625708, + "rel_max": 0.736388454, + "scaled_max_abs": 0.736388454 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.2/block/block.2/block.2.0/Conv_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.2", + "ungated_exciters": { + "band_ratio": 33.0384665, + "metrics": { + "corr": 0.669615335, + "finite": true, + "max_abs": 21.6841269, + "mean_abs": 0.959784233, + "psnr_db": 28.9257452, + "ref_absmax": 30.6146946, + "rel_max": 0.708291464, + "scaled_max_abs": 0.708291464 + } + }, + "worst_probe": { + "category": "uniform", + "index": 19 + } + }, + { + "band_ratio": 36.4573716, + "index": 4, + "metrics": { + "corr": 0.635426284, + "finite": true, + "max_abs": 10.6273589, + "mean_abs": 1.04978782, + "psnr_db": 24.8472385, + "ref_absmax": 14.6985712, + "rel_max": 0.723019861, + "scaled_max_abs": 0.723019861 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.3/Add_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.3", + "ungated_exciters": { + "band_ratio": 23.8769117, + "metrics": { + "corr": 0.761230883, + "finite": true, + "max_abs": 23.2994709, + "mean_abs": 1.11933342, + "psnr_db": 28.5102247, + "ref_absmax": 26.1666718, + "rel_max": 0.890425467, + "scaled_max_abs": 0.890425467 + } + }, + "worst_probe": { + "category": "uniform", + "index": 18 + } + }, + { + "band_ratio": 84.3533017, + "index": 5, + "metrics": { + "corr": 0.156466983, + "finite": true, + "max_abs": 3.69145763, + "mean_abs": 0.845470912, + "psnr_db": 16.3871024, + "ref_absmax": 3.61854959, + "rel_max": 1.02014842, + "scaled_max_abs": 1.02014842 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.4/block/block.3/block.3.0/Conv_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.4", + "ungated_exciters": { + "band_ratio": 49.6311889, + "metrics": { + "corr": 0.503688111, + "finite": true, + "max_abs": 19.9985257, + "mean_abs": 0.989274182, + "psnr_db": 27.0935533, + "ref_absmax": 19.5010872, + "rel_max": 1.02550825, + "scaled_max_abs": 1.02550825 + } + }, + "worst_probe": { + "category": "natural", + "index": 5 + } + }, + { + "band_ratio": 74.5743036, + "index": 6, + "metrics": { + "corr": 0.254256964, + "finite": true, + "max_abs": 5.37905097, + "mean_abs": 0.897425735, + "psnr_db": 16.7841113, + "ref_absmax": 4.3690753, + "rel_max": 1.23116463, + "scaled_max_abs": 1.23116463 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.5/Add_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.5", + "ungated_exciters": { + "band_ratio": 59.9000645, + "metrics": { + "corr": 0.400999355, + "finite": true, + "max_abs": 29.4028873, + "mean_abs": 1.18718761, + "psnr_db": 28.6306684, + "ref_absmax": 30.0460987, + "rel_max": 0.978592516, + "scaled_max_abs": 0.978592516 + } + }, + "worst_probe": { + "category": "uniform", + "index": 19 + } + }, + { + "band_ratio": 64.4963086, + "index": 7, + "metrics": { + "corr": 0.355036914, + "finite": true, + "max_abs": 6.76949787, + "mean_abs": 1.18396791, + "psnr_db": 18.0915845, + "ref_absmax": 6.4850378, + "rel_max": 1.04386406, + "scaled_max_abs": 1.04386406 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.6/Add_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.6", + "ungated_exciters": { + "band_ratio": 71.9291389, + "metrics": { + "corr": 0.280708611, + "finite": true, + "max_abs": 67.0166258, + "mean_abs": 2.4956199, + "psnr_db": 28.2766305, + "ref_absmax": 67.6801987, + "rel_max": 0.990195465, + "scaled_max_abs": 0.990195465 + } + }, + "worst_probe": { + "category": "natural", + "index": 15 + } + }, + { + "band_ratio": 64.337707, + "index": 8, + "metrics": { + "corr": 0.35662293, + "finite": true, + "max_abs": 6.01789165, + "mean_abs": 0.653462344, + "psnr_db": 18.877128, + "ref_absmax": 3.77111506, + "rel_max": 1.59578574, + "scaled_max_abs": 1.59578574 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.7/block/block.3/block.3.0/Conv_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.7", + "ungated_exciters": { + "band_ratio": 70.990791, + "metrics": { + "corr": 0.29009209, + "finite": true, + "max_abs": 16.9826107, + "mean_abs": 0.854367038, + "psnr_db": 27.0161316, + "ref_absmax": 17.2851353, + "rel_max": 0.982497993, + "scaled_max_abs": 0.982497993 + } + }, + "worst_probe": { + "category": "natural", + "index": 9 + } + }, + { + "band_ratio": 61.9949593, + "index": 9, + "metrics": { + "corr": 0.380050407, + "finite": true, + "max_abs": 6.56561947, + "mean_abs": 0.777001509, + "psnr_db": 19.914196, + "ref_absmax": 5.20777416, + "rel_max": 1.26073429, + "scaled_max_abs": 1.26073429 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.8/Add_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.8", + "ungated_exciters": { + "band_ratio": 74.297247, + "metrics": { + "corr": 0.25702753, + "finite": true, + "max_abs": 16.2092239, + "mean_abs": 0.949972395, + "psnr_db": 26.2322167, + "ref_absmax": 16.7228394, + "rel_max": 0.969286588, + "scaled_max_abs": 0.969286588 + } + }, + "worst_probe": { + "category": "natural", + "index": 9 + } + }, + { + "band_ratio": 63.8007513, + "index": 10, + "metrics": { + "corr": 0.361992487, + "finite": true, + "max_abs": 2.82255924, + "mean_abs": 0.369395254, + "psnr_db": 17.1149097, + "ref_absmax": 1.76286125, + "rel_max": 1.60112387, + "scaled_max_abs": 1.60112387 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.9/block/block.3/block.3.0/Conv_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.9", + "ungated_exciters": { + "band_ratio": 61.7294318, + "metrics": { + "corr": 0.382705682, + "finite": true, + "max_abs": 2.86973745, + "mean_abs": 0.369212878, + "psnr_db": 19.9984101, + "ref_absmax": 2.7077558, + "rel_max": 1.05982136, + "scaled_max_abs": 1.05982136 + } + }, + "worst_probe": { + "category": "natural", + "index": 3 + } + }, + { + "band_ratio": 67.4824733, + "index": 11, + "metrics": { + "corr": 0.325175267, + "finite": true, + "max_abs": 2.8269217, + "mean_abs": 0.48303494, + "psnr_db": 17.3079983, + "ref_absmax": 2.4487865, + "rel_max": 1.15441738, + "scaled_max_abs": 1.15441738 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.10/Add_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.10", + "ungated_exciters": { + "band_ratio": 56.1394663, + "metrics": { + "corr": 0.438605337, + "finite": true, + "max_abs": 4.03412837, + "mean_abs": 0.462440638, + "psnr_db": 19.6937201, + "ref_absmax": 3.28536868, + "rel_max": 1.22790736, + "scaled_max_abs": 1.22790736 + } + }, + "worst_probe": { + "category": "natural", + "index": 3 + } + }, + { + "band_ratio": 70.0491738, + "index": 12, + "metrics": { + "corr": 0.299508262, + "finite": true, + "max_abs": 3.59887183, + "mean_abs": 0.574653143, + "psnr_db": 17.5252508, + "ref_absmax": 2.86192513, + "rel_max": 1.25750034, + "scaled_max_abs": 1.25750034 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.11/Add_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.11", + "ungated_exciters": { + "band_ratio": 59.3435514, + "metrics": { + "corr": 0.406564486, + "finite": true, + "max_abs": 4.65196878, + "mean_abs": 0.553563335, + "psnr_db": 19.9009129, + "ref_absmax": 3.9695878, + "rel_max": 1.17190222, + "scaled_max_abs": 1.17190222 + } + }, + "worst_probe": { + "category": "natural", + "index": 6 + } + }, + { + "band_ratio": 70.6826349, + "index": 13, + "metrics": { + "corr": 0.293173651, + "finite": true, + "max_abs": 6.8753888, + "mean_abs": 0.308002247, + "psnr_db": 22.5117829, + "ref_absmax": 6.71125937, + "rel_max": 1.02445583, + "scaled_max_abs": 1.02445583 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.12/features.12.2/HardSwish_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.12", + "ungated_exciters": { + "band_ratio": 68.6545327, + "metrics": { + "corr": 0.313454673, + "finite": true, + "max_abs": 9.62387198, + "mean_abs": 0.291193929, + "psnr_db": 24.4206749, + "ref_absmax": 9.25807858, + "rel_max": 1.03951073, + "scaled_max_abs": 1.03951073 + } + }, + "worst_probe": { + "category": "natural", + "index": 12 + } + }, + { + "band_ratio": 63.8910392, + "index": 14, + "metrics": { + "corr": 0.361089608, + "finite": true, + "max_abs": 3.03119129, + "mean_abs": 0.228600809, + "psnr_db": 17.3961493, + "ref_absmax": 2.49862957, + "rel_max": 1.21314153, + "scaled_max_abs": 1.21314153 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_exciters": { + "band_ratio": 63.8023291, + "metrics": { + "corr": 0.361976709, + "finite": true, + "max_abs": 5.52426839, + "mean_abs": 0.22730879, + "psnr_db": 21.8363349, + "ref_absmax": 5.18950367, + "rel_max": 1.06450804, + "scaled_max_abs": 1.06450804 + } + }, + "worst_probe": { + "category": "uniform", + "index": 19 + } + }, + { + "band_ratio": 77.346894, + "index": 15, + "metrics": { + "corr": 0.22653106, + "finite": true, + "max_abs": 9.36063409, + "mean_abs": 1.7451794, + "psnr_db": 15.4434764, + "ref_absmax": 8.29382229, + "rel_max": 1.12862728, + "scaled_max_abs": 1.12862728 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier", + "ungated_exciters": { + "band_ratio": 56.252668, + "metrics": { + "corr": 0.43747332, + "finite": true, + "max_abs": 16.5776234, + "mean_abs": 2.14491334, + "psnr_db": 18.6972738, + "ref_absmax": 18.0251522, + "rel_max": 0.919693946, + "scaled_max_abs": 0.919693946 + } + }, + "worst_probe": { + "category": "uniform", + "index": 16 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "int8", + "id": "mobilenet_v3_small__int8_clean__onnx_int8", + "model": "mobilenet_v3_small", + "path": "onnx", + "variant": "int8_clean" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/mobilenet_v3_small__int8_override_features_3__onnx_int8.json b/bench/verdicts_e2e_gated/mobilenet_v3_small__int8_override_features_3__onnx_int8.json new file mode 100644 index 0000000000000000000000000000000000000000..1c51f2e6ef1dc00b7e37f491a167f8af6ce64513 --- /dev/null +++ b/bench/verdicts_e2e_gated/mobilenet_v3_small__int8_override_features_3__onnx_int8.json @@ -0,0 +1,1503 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "net.features.0", + "explained_by": null, + "nominal_band_ratio": 1.559964, + "results": [ + { + "band_ratio": 7.13344785, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 8.10510321, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 76.5840225, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 63.2870873, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 28.8528883, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "status": "flag" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "int8", + "first_divergence": { + "artifact_tensor": "/net/features/features.0/features.0.2/HardSwish_output_0_DequantizeLinear_Output", + "basis": "earliest tap over the int8 band", + "index": 1, + "neighbourhood": [ + { + "band_ratio": 0.0358761909, + "index": 0, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 1.49968427, + "index": 1, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.0/features.0.2/HardSwish_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.0" + }, + { + "band_ratio": 24.1337964, + "index": 2, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.1/block/block.2/block.2.0/Conv_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.1" + } + ], + "shape": 224, + "tap": "net.features.0" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "385c565eeaeaa368746c63eabe9f04a52debf28f4b33c4b0095c1736d89fc217", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "a7bc4a9884183614f2a166c590324555f324e34bcde1aac5e40fd872a0bb6973", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "int8 band on exciter probes", + "reason": "a statically quantised model is specified on its calibration distribution; exciter categories ['wide_range', 'near_zero', 'saturating'] are measured and reported per tap ('ungated_exciters') but do not gate" + }, + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D4", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.03125, + "band_ratio": 74.002172, + "metrics": { + "corr": 0.25997828, + "finite": true, + "max_abs": 10.4197469, + "mean_abs": 2.37446663, + "psnr_db": 13.6093526, + "ref_absmax": 8.47343636, + "rel_max": 1.22969554, + "scaled_max_abs": 1.22969554 + }, + "status": "fail", + "ungated_exciters": { + "band_ratio": 64.6560591, + "metrics": { + "corr": 0.353439409, + "finite": true, + "max_abs": 21.7353399, + "mean_abs": 2.56362583, + "psnr_db": 19.7272921, + "ref_absmax": 24.3847065, + "rel_max": 0.891351302, + "scaled_max_abs": 0.891351302 + } + }, + "worst_probe": { + "category": "uniform", + "index": 18 + } + }, + "first_fail_index": 1, + "n_judged": 16, + "n_taps": 16, + "taps": [ + { + "band_ratio": 0.0358443598, + "index": 0, + "metrics": { + "corr": 0.99998378, + "finite": true, + "max_abs": 0.0093292594, + "mean_abs": 0.00466938237, + "psnr_db": 58.9115834, + "ref_absmax": 2.6400001, + "rel_max": 0.00353381024, + "scaled_max_abs": 0.00353381024 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "normalize", + "ungated_exciters": { + "band_ratio": 7.29207513, + "metrics": { + "corr": 0.927079249, + "finite": true, + "max_abs": 8.8980484, + "mean_abs": 0.355833548, + "psnr_db": 21.0584139, + "ref_absmax": 11.5288897, + "rel_max": 0.771804455, + "scaled_max_abs": 0.771804455 + } + } + }, + { + "band_ratio": 1.42017195, + "index": 1, + "metrics": { + "corr": 0.985798281, + "finite": true, + "max_abs": 92.5418434, + "mean_abs": 0.124437339, + "psnr_db": 46.6312271, + "ref_absmax": 155.765991, + "rel_max": 0.594108141, + "scaled_max_abs": 0.594108141 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.0/features.0.2/HardSwish_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.0", + "ungated_exciters": { + "band_ratio": 30.0718898, + "metrics": { + "corr": 0.699281102, + "finite": true, + "max_abs": 182.968063, + "mean_abs": 0.394718264, + "psnr_db": 36.7313823, + "ref_absmax": 190.032486, + "rel_max": 0.962825182, + "scaled_max_abs": 0.962825182 + } + }, + "worst_probe": { + "category": "uniform", + "index": 16 + } + }, + { + "band_ratio": 24.7289881, + "index": 2, + "metrics": { + "corr": 0.752710119, + "finite": true, + "max_abs": 12.0532521, + "mean_abs": 0.858553063, + "psnr_db": 28.3398355, + "ref_absmax": 23.7995548, + "rel_max": 0.506448637, + "scaled_max_abs": 0.506448637 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.1/block/block.2/block.2.0/Conv_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.1", + "ungated_exciters": { + "band_ratio": 31.8811712, + "metrics": { + "corr": 0.681188288, + "finite": true, + "max_abs": 34.6556585, + "mean_abs": 0.89980856, + "psnr_db": 30.7642058, + "ref_absmax": 45.4499092, + "rel_max": 0.76250226, + "scaled_max_abs": 0.76250226 + } + }, + "worst_probe": { + "category": "natural", + "index": 8 + } + }, + { + "band_ratio": 22.4803654, + "index": 3, + "metrics": { + "corr": 0.775196346, + "finite": true, + "max_abs": 11.1481857, + "mean_abs": 0.807375715, + "psnr_db": 26.6212337, + "ref_absmax": 16.5510483, + "rel_max": 0.673563725, + "scaled_max_abs": 0.673563725 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.2/block/block.2/block.2.0/Conv_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.2", + "ungated_exciters": { + "band_ratio": 31.2183543, + "metrics": { + "corr": 0.687816457, + "finite": true, + "max_abs": 17.183762, + "mean_abs": 1.00608293, + "psnr_db": 27.1613232, + "ref_absmax": 25.896719, + "rel_max": 0.663549771, + "scaled_max_abs": 0.663549771 + } + }, + "worst_probe": { + "category": "natural", + "index": 15 + } + }, + { + "band_ratio": 51.0227467, + "index": 4, + "metrics": { + "corr": 0.489772533, + "finite": true, + "max_abs": 18.812903, + "mean_abs": 1.04975344, + "psnr_db": 25.996885, + "ref_absmax": 19.068903, + "rel_max": 0.986575001, + "scaled_max_abs": 0.986575001 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.3/Add_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.3", + "ungated_exciters": { + "band_ratio": 46.2250757, + "metrics": { + "corr": 0.537749243, + "finite": true, + "max_abs": 25.4574887, + "mean_abs": 1.829094, + "psnr_db": 25.0516266, + "ref_absmax": 25.7114887, + "rel_max": 0.990121147, + "scaled_max_abs": 0.990121147 + } + }, + "worst_probe": { + "category": "uniform", + "index": 19 + } + }, + { + "band_ratio": 60.3435205, + "index": 5, + "metrics": { + "corr": 0.396564795, + "finite": true, + "max_abs": 4.32435381, + "mean_abs": 0.610089787, + "psnr_db": 19.0238439, + "ref_absmax": 3.73605371, + "rel_max": 1.15746565, + "scaled_max_abs": 1.15746565 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.4/block/block.3/block.3.0/Conv_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.4", + "ungated_exciters": { + "band_ratio": 98.0864084, + "metrics": { + "corr": 0.0191359164, + "finite": true, + "max_abs": 16.9910734, + "mean_abs": 1.25651151, + "psnr_db": 24.7201968, + "ref_absmax": 17.1079597, + "rel_max": 0.993167722, + "scaled_max_abs": 0.993167722 + } + }, + "worst_probe": { + "category": "uniform", + "index": 17 + } + }, + { + "band_ratio": 59.6565566, + "index": 6, + "metrics": { + "corr": 0.403434434, + "finite": true, + "max_abs": 5.5294925, + "mean_abs": 0.715437258, + "psnr_db": 18.3878006, + "ref_absmax": 3.86317372, + "rel_max": 1.43133416, + "scaled_max_abs": 1.43133416 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.5/Add_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.5", + "ungated_exciters": { + "band_ratio": 90.8671858, + "metrics": { + "corr": 0.0913281424, + "finite": true, + "max_abs": 21.9678244, + "mean_abs": 1.2452552, + "psnr_db": 26.1094336, + "ref_absmax": 22.3186283, + "rel_max": 0.984282012, + "scaled_max_abs": 0.984282012 + } + }, + "worst_probe": { + "category": "uniform", + "index": 16 + } + }, + { + "band_ratio": 57.3786903, + "index": 7, + "metrics": { + "corr": 0.426213097, + "finite": true, + "max_abs": 6.36359692, + "mean_abs": 1.04226206, + "psnr_db": 19.1813329, + "ref_absmax": 6.44057798, + "rel_max": 0.988047491, + "scaled_max_abs": 0.988047491 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.6/Add_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.6", + "ungated_exciters": { + "band_ratio": 93.9044528, + "metrics": { + "corr": 0.0609554722, + "finite": true, + "max_abs": 63.3027291, + "mean_abs": 2.77316518, + "psnr_db": 26.0931265, + "ref_absmax": 62.7700729, + "rel_max": 1.00848583, + "scaled_max_abs": 1.00848583 + } + }, + "worst_probe": { + "category": "uniform", + "index": 18 + } + }, + { + "band_ratio": 60.5650248, + "index": 8, + "metrics": { + "corr": 0.394349752, + "finite": true, + "max_abs": 4.75190288, + "mean_abs": 0.645597412, + "psnr_db": 19.6311399, + "ref_absmax": 3.93024445, + "rel_max": 1.20906039, + "scaled_max_abs": 1.20906039 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.7/block/block.3/block.3.0/Conv_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.7", + "ungated_exciters": { + "band_ratio": 83.2820518, + "metrics": { + "corr": 0.167179482, + "finite": true, + "max_abs": 21.1015059, + "mean_abs": 1.01139418, + "psnr_db": 26.9196589, + "ref_absmax": 20.6843147, + "rel_max": 1.02016945, + "scaled_max_abs": 1.02016945 + } + }, + "worst_probe": { + "category": "natural", + "index": 10 + } + }, + { + "band_ratio": 60.3179855, + "index": 9, + "metrics": { + "corr": 0.396820145, + "finite": true, + "max_abs": 5.35447586, + "mean_abs": 0.794542956, + "psnr_db": 19.5295065, + "ref_absmax": 5.01391029, + "rel_max": 1.06792414, + "scaled_max_abs": 1.06792414 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.8/Add_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.8", + "ungated_exciters": { + "band_ratio": 78.8630679, + "metrics": { + "corr": 0.211369321, + "finite": true, + "max_abs": 19.7008768, + "mean_abs": 1.09714281, + "psnr_db": 26.2682631, + "ref_absmax": 19.453968, + "rel_max": 1.01269195, + "scaled_max_abs": 1.01269195 + } + }, + "worst_probe": { + "category": "natural", + "index": 14 + } + }, + { + "band_ratio": 57.2834538, + "index": 10, + "metrics": { + "corr": 0.427165462, + "finite": true, + "max_abs": 2.64700532, + "mean_abs": 0.381475262, + "psnr_db": 17.9540255, + "ref_absmax": 1.95912504, + "rel_max": 1.35111607, + "scaled_max_abs": 1.35111607 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.9/block/block.3/block.3.0/Conv_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.9", + "ungated_exciters": { + "band_ratio": 68.5269606, + "metrics": { + "corr": 0.314730394, + "finite": true, + "max_abs": 3.49882734, + "mean_abs": 0.455257073, + "psnr_db": 20.7814791, + "ref_absmax": 3.49467635, + "rel_max": 1.0011878, + "scaled_max_abs": 1.0011878 + } + }, + "worst_probe": { + "category": "natural", + "index": 5 + } + }, + { + "band_ratio": 54.9008124, + "index": 11, + "metrics": { + "corr": 0.450991876, + "finite": true, + "max_abs": 2.81372547, + "mean_abs": 0.452005646, + "psnr_db": 18.6148301, + "ref_absmax": 2.49726367, + "rel_max": 1.12672342, + "scaled_max_abs": 1.12672342 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.10/Add_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.10", + "ungated_exciters": { + "band_ratio": 65.9262875, + "metrics": { + "corr": 0.340737125, + "finite": true, + "max_abs": 4.05024919, + "mean_abs": 0.553866051, + "psnr_db": 20.0768056, + "ref_absmax": 3.73949909, + "rel_max": 1.08309939, + "scaled_max_abs": 1.08309939 + } + }, + "worst_probe": { + "category": "natural", + "index": 11 + } + }, + { + "band_ratio": 55.6207096, + "index": 12, + "metrics": { + "corr": 0.443792904, + "finite": true, + "max_abs": 3.29041767, + "mean_abs": 0.546674897, + "psnr_db": 17.2325635, + "ref_absmax": 2.55655575, + "rel_max": 1.28705102, + "scaled_max_abs": 1.28705102 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.11/Add_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.11", + "ungated_exciters": { + "band_ratio": 62.7334134, + "metrics": { + "corr": 0.372665866, + "finite": true, + "max_abs": 5.50243402, + "mean_abs": 0.640704163, + "psnr_db": 20.6196807, + "ref_absmax": 4.53482485, + "rel_max": 1.213373, + "scaled_max_abs": 1.213373 + } + }, + "worst_probe": { + "category": "natural", + "index": 6 + } + }, + { + "band_ratio": 60.2470837, + "index": 13, + "metrics": { + "corr": 0.397529163, + "finite": true, + "max_abs": 6.77673477, + "mean_abs": 0.279969629, + "psnr_db": 23.0809402, + "ref_absmax": 6.42993307, + "rel_max": 1.05393551, + "scaled_max_abs": 1.05393551 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.12/features.12.2/HardSwish_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.12", + "ungated_exciters": { + "band_ratio": 73.7783202, + "metrics": { + "corr": 0.262216798, + "finite": true, + "max_abs": 10.4754638, + "mean_abs": 0.35015848, + "psnr_db": 23.93843, + "ref_absmax": 10.099762, + "rel_max": 1.03719908, + "scaled_max_abs": 1.03719908 + } + }, + "worst_probe": { + "category": "natural", + "index": 14 + } + }, + { + "band_ratio": 53.2069046, + "index": 14, + "metrics": { + "corr": 0.467930954, + "finite": true, + "max_abs": 2.35092282, + "mean_abs": 0.218516221, + "psnr_db": 18.2550836, + "ref_absmax": 2.65402794, + "rel_max": 0.885794301, + "scaled_max_abs": 0.885794301 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_exciters": { + "band_ratio": 70.5642035, + "metrics": { + "corr": 0.294357965, + "finite": true, + "max_abs": 5.34420216, + "mean_abs": 0.280558886, + "psnr_db": 20.6426426, + "ref_absmax": 5.24590921, + "rel_max": 1.01873707, + "scaled_max_abs": 1.01873707 + } + }, + "worst_probe": { + "category": "natural", + "index": 5 + } + }, + { + "band_ratio": 74.002172, + "index": 15, + "metrics": { + "corr": 0.25997828, + "finite": true, + "max_abs": 10.4197469, + "mean_abs": 2.37446663, + "psnr_db": 13.6093526, + "ref_absmax": 8.47343636, + "rel_max": 1.22969554, + "scaled_max_abs": 1.22969554 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier", + "ungated_exciters": { + "band_ratio": 64.6560591, + "metrics": { + "corr": 0.353439409, + "finite": true, + "max_abs": 21.7353399, + "mean_abs": 2.56362583, + "psnr_db": 19.7272921, + "ref_absmax": 24.3847065, + "rel_max": 0.891351302, + "scaled_max_abs": 0.891351302 + } + }, + "worst_probe": { + "category": "uniform", + "index": 18 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.0, + "band_ratio": 64.0362023, + "metrics": { + "corr": 0.359637977, + "finite": true, + "max_abs": 10.0992532, + "mean_abs": 2.40290978, + "psnr_db": 13.0254625, + "ref_absmax": 8.29382229, + "rel_max": 1.21768382, + "scaled_max_abs": 1.21768382 + }, + "status": "fail", + "ungated_exciters": { + "band_ratio": 64.7332045, + "metrics": { + "corr": 0.352667955, + "finite": true, + "max_abs": 15.0173705, + "mean_abs": 2.5218368, + "psnr_db": 18.4467961, + "ref_absmax": 18.0251522, + "rel_max": 0.833134183, + "scaled_max_abs": 0.833134183 + } + }, + "worst_probe": { + "category": "uniform", + "index": 16 + } + }, + "first_fail_index": 1, + "n_judged": 16, + "n_taps": 16, + "taps": [ + { + "band_ratio": 0.0358761909, + "index": 0, + "metrics": { + "corr": 0.999983129, + "finite": true, + "max_abs": 0.009329319, + "mean_abs": 0.00467525361, + "psnr_db": 58.9038735, + "ref_absmax": 2.6400001, + "rel_max": 0.00353383281, + "scaled_max_abs": 0.00353383281 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "normalize", + "ungated_exciters": { + "band_ratio": 6.40507214, + "metrics": { + "corr": 0.935949279, + "finite": true, + "max_abs": 8.8980484, + "mean_abs": 0.346772095, + "psnr_db": 21.6136782, + "ref_absmax": 11.5288897, + "rel_max": 0.771804455, + "scaled_max_abs": 0.771804455 + } + } + }, + { + "band_ratio": 1.49968427, + "index": 1, + "metrics": { + "corr": 0.985003157, + "finite": true, + "max_abs": 96.7626572, + "mean_abs": 0.129738686, + "psnr_db": 46.7789777, + "ref_absmax": 159.543579, + "rel_max": 0.606496718, + "scaled_max_abs": 0.606496718 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.0/features.0.2/HardSwish_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.0", + "ungated_exciters": { + "band_ratio": 31.641311, + "metrics": { + "corr": 0.68358689, + "finite": true, + "max_abs": 147.390145, + "mean_abs": 0.373456672, + "psnr_db": 36.8636755, + "ref_absmax": 169.038651, + "rel_max": 0.871931622, + "scaled_max_abs": 0.871931622 + } + }, + "worst_probe": { + "category": "uniform", + "index": 18 + } + }, + { + "band_ratio": 24.1337964, + "index": 2, + "metrics": { + "corr": 0.758662036, + "finite": true, + "max_abs": 12.1677488, + "mean_abs": 0.836431342, + "psnr_db": 28.2712451, + "ref_absmax": 18.9904041, + "rel_max": 0.640731431, + "scaled_max_abs": 0.640731431 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.1/block/block.2/block.2.0/Conv_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.1", + "ungated_exciters": { + "band_ratio": 32.41996, + "metrics": { + "corr": 0.6758004, + "finite": true, + "max_abs": 32.7971554, + "mean_abs": 0.821957581, + "psnr_db": 30.9380241, + "ref_absmax": 44.644146, + "rel_max": 0.734635072, + "scaled_max_abs": 0.734635072 + } + }, + "worst_probe": { + "category": "natural", + "index": 9 + } + }, + { + "band_ratio": 21.9247707, + "index": 3, + "metrics": { + "corr": 0.780752293, + "finite": true, + "max_abs": 10.5764313, + "mean_abs": 0.785204666, + "psnr_db": 25.6597008, + "ref_absmax": 14.3625708, + "rel_max": 0.736388454, + "scaled_max_abs": 0.736388454 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.2/block/block.2/block.2.0/Conv_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.2", + "ungated_exciters": { + "band_ratio": 33.0384665, + "metrics": { + "corr": 0.669615335, + "finite": true, + "max_abs": 21.6841269, + "mean_abs": 0.959784233, + "psnr_db": 28.9257452, + "ref_absmax": 30.6146946, + "rel_max": 0.708291464, + "scaled_max_abs": 0.708291464 + } + }, + "worst_probe": { + "category": "uniform", + "index": 19 + } + }, + { + "band_ratio": 50.9542449, + "index": 4, + "metrics": { + "corr": 0.490457551, + "finite": true, + "max_abs": 14.4425712, + "mean_abs": 1.02492295, + "psnr_db": 24.937234, + "ref_absmax": 14.6985712, + "rel_max": 0.98258334, + "scaled_max_abs": 0.98258334 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.3/Add_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.3", + "ungated_exciters": { + "band_ratio": 45.4234269, + "metrics": { + "corr": 0.545765731, + "finite": true, + "max_abs": 25.9126717, + "mean_abs": 1.80612101, + "psnr_db": 25.1579649, + "ref_absmax": 26.1666718, + "rel_max": 0.990292995, + "scaled_max_abs": 0.990292995 + } + }, + "worst_probe": { + "category": "uniform", + "index": 17 + } + }, + { + "band_ratio": 59.8089257, + "index": 5, + "metrics": { + "corr": 0.401910743, + "finite": true, + "max_abs": 4.13972926, + "mean_abs": 0.598347106, + "psnr_db": 18.9966484, + "ref_absmax": 3.61854959, + "rel_max": 1.14402999, + "scaled_max_abs": 1.14402999 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.4/block/block.3/block.3.0/Conv_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.4", + "ungated_exciters": { + "band_ratio": 96.9789652, + "metrics": { + "corr": 0.0302103484, + "finite": true, + "max_abs": 19.4300245, + "mean_abs": 1.27477001, + "psnr_db": 25.6109726, + "ref_absmax": 19.5010872, + "rel_max": 0.996355965, + "scaled_max_abs": 0.996355965 + } + }, + "worst_probe": { + "category": "uniform", + "index": 16 + } + }, + { + "band_ratio": 57.9325365, + "index": 6, + "metrics": { + "corr": 0.420674635, + "finite": true, + "max_abs": 4.8187499, + "mean_abs": 0.703521365, + "psnr_db": 19.0217171, + "ref_absmax": 4.3690753, + "rel_max": 1.10292215, + "scaled_max_abs": 1.10292215 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.5/Add_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.5", + "ungated_exciters": { + "band_ratio": 90.866251, + "metrics": { + "corr": 0.0913374904, + "finite": true, + "max_abs": 29.9291512, + "mean_abs": 1.31583332, + "psnr_db": 27.8128813, + "ref_absmax": 30.0460987, + "rel_max": 0.99610773, + "scaled_max_abs": 0.99610773 + } + }, + "worst_probe": { + "category": "uniform", + "index": 16 + } + }, + { + "band_ratio": 55.6618253, + "index": 7, + "metrics": { + "corr": 0.443381747, + "finite": true, + "max_abs": 5.96502781, + "mean_abs": 1.02968064, + "psnr_db": 19.4558366, + "ref_absmax": 6.4850378, + "rel_max": 0.919813884, + "scaled_max_abs": 0.919813884 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.6/Add_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.6", + "ungated_exciters": { + "band_ratio": 94.0088282, + "metrics": { + "corr": 0.0599117185, + "finite": true, + "max_abs": 68.1225806, + "mean_abs": 2.64363067, + "psnr_db": 27.8313862, + "ref_absmax": 67.6801987, + "rel_max": 1.00653636, + "scaled_max_abs": 1.00653636 + } + }, + "worst_probe": { + "category": "uniform", + "index": 18 + } + }, + { + "band_ratio": 59.0887192, + "index": 8, + "metrics": { + "corr": 0.409112808, + "finite": true, + "max_abs": 4.4080528, + "mean_abs": 0.623433883, + "psnr_db": 19.4943119, + "ref_absmax": 3.77111506, + "rel_max": 1.16889905, + "scaled_max_abs": 1.16889905 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.7/block/block.3/block.3.0/Conv_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.7", + "ungated_exciters": { + "band_ratio": 82.9688721, + "metrics": { + "corr": 0.170311279, + "finite": true, + "max_abs": 17.9393831, + "mean_abs": 0.963150266, + "psnr_db": 26.5038548, + "ref_absmax": 17.2851353, + "rel_max": 1.03785032, + "scaled_max_abs": 1.03785032 + } + }, + "worst_probe": { + "category": "natural", + "index": 12 + } + }, + { + "band_ratio": 58.6857181, + "index": 9, + "metrics": { + "corr": 0.413142819, + "finite": true, + "max_abs": 4.40095901, + "mean_abs": 0.764747891, + "psnr_db": 20.1306353, + "ref_absmax": 5.20777416, + "rel_max": 0.845074859, + "scaled_max_abs": 0.845074859 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.8/Add_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.8", + "ungated_exciters": { + "band_ratio": 79.3265684, + "metrics": { + "corr": 0.206734316, + "finite": true, + "max_abs": 16.9934685, + "mean_abs": 1.04352337, + "psnr_db": 25.9044047, + "ref_absmax": 16.7228394, + "rel_max": 1.01618321, + "scaled_max_abs": 1.01618321 + } + }, + "worst_probe": { + "category": "natural", + "index": 7 + } + }, + { + "band_ratio": 55.0540165, + "index": 10, + "metrics": { + "corr": 0.449459835, + "finite": true, + "max_abs": 2.23489785, + "mean_abs": 0.380478328, + "psnr_db": 16.9803817, + "ref_absmax": 1.76286125, + "rel_max": 1.2677673, + "scaled_max_abs": 1.2677673 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.9/block/block.3/block.3.0/Conv_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.9", + "ungated_exciters": { + "band_ratio": 69.696265, + "metrics": { + "corr": 0.30303735, + "finite": true, + "max_abs": 3.14158821, + "mean_abs": 0.455024052, + "psnr_db": 18.6632768, + "ref_absmax": 2.7077558, + "rel_max": 1.16021844, + "scaled_max_abs": 1.16021844 + } + }, + "worst_probe": { + "category": "natural", + "index": 5 + } + }, + { + "band_ratio": 53.0041582, + "index": 11, + "metrics": { + "corr": 0.469958418, + "finite": true, + "max_abs": 2.58589721, + "mean_abs": 0.462678414, + "psnr_db": 17.7537514, + "ref_absmax": 2.4487865, + "rel_max": 1.05599129, + "scaled_max_abs": 1.05599129 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.10/Add_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.10", + "ungated_exciters": { + "band_ratio": 67.8389118, + "metrics": { + "corr": 0.321610882, + "finite": true, + "max_abs": 3.41925287, + "mean_abs": 0.589025723, + "psnr_db": 18.012606, + "ref_absmax": 3.28536868, + "rel_max": 1.04075165, + "scaled_max_abs": 1.04075165 + } + }, + "worst_probe": { + "category": "uniform", + "index": 18 + } + }, + { + "band_ratio": 53.6972093, + "index": 12, + "metrics": { + "corr": 0.463027907, + "finite": true, + "max_abs": 3.25838405, + "mean_abs": 0.548798469, + "psnr_db": 18.1096306, + "ref_absmax": 2.86192513, + "rel_max": 1.13852875, + "scaled_max_abs": 1.13852875 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.11/Add_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.11", + "ungated_exciters": { + "band_ratio": 66.9989018, + "metrics": { + "corr": 0.330010982, + "finite": true, + "max_abs": 4.33573914, + "mean_abs": 0.696543729, + "psnr_db": 18.4755927, + "ref_absmax": 3.9695878, + "rel_max": 1.09223913, + "scaled_max_abs": 1.09223913 + } + }, + "worst_probe": { + "category": "natural", + "index": 11 + } + }, + { + "band_ratio": 58.606002, + "index": 13, + "metrics": { + "corr": 0.41393998, + "finite": true, + "max_abs": 7.07705277, + "mean_abs": 0.272797712, + "psnr_db": 23.5830509, + "ref_absmax": 6.71125937, + "rel_max": 1.05450444, + "scaled_max_abs": 1.05450444 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.12/features.12.2/HardSwish_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.12", + "ungated_exciters": { + "band_ratio": 75.1829447, + "metrics": { + "corr": 0.248170553, + "finite": true, + "max_abs": 9.52703533, + "mean_abs": 0.345134174, + "psnr_db": 23.3990451, + "ref_absmax": 9.25807858, + "rel_max": 1.02905103, + "scaled_max_abs": 1.02905103 + } + }, + "worst_probe": { + "category": "natural", + "index": 6 + } + }, + { + "band_ratio": 51.5573688, + "index": 14, + "metrics": { + "corr": 0.484426312, + "finite": true, + "max_abs": 2.51767674, + "mean_abs": 0.213286021, + "psnr_db": 17.871852, + "ref_absmax": 2.49862957, + "rel_max": 1.00762305, + "scaled_max_abs": 1.00762305 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_exciters": { + "band_ratio": 72.1860292, + "metrics": { + "corr": 0.278139708, + "finite": true, + "max_abs": 5.3807978, + "mean_abs": 0.279542489, + "psnr_db": 20.5378772, + "ref_absmax": 5.18950367, + "rel_max": 1.03686174, + "scaled_max_abs": 1.03686174 + } + }, + "worst_probe": { + "category": "natural", + "index": 15 + } + }, + { + "band_ratio": 64.0362023, + "index": 15, + "metrics": { + "corr": 0.359637977, + "finite": true, + "max_abs": 10.0992532, + "mean_abs": 2.40290978, + "psnr_db": 13.0254625, + "ref_absmax": 8.29382229, + "rel_max": 1.21768382, + "scaled_max_abs": 1.21768382 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier", + "ungated_exciters": { + "band_ratio": 64.7332045, + "metrics": { + "corr": 0.352667955, + "finite": true, + "max_abs": 15.0173705, + "mean_abs": 2.5218368, + "psnr_db": 18.4467961, + "ref_absmax": 18.0251522, + "rel_max": 0.833134183, + "scaled_max_abs": 0.833134183 + } + }, + "worst_probe": { + "category": "uniform", + "index": 16 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "int8", + "id": "mobilenet_v3_small__int8_override_features_3__onnx_int8", + "model": "mobilenet_v3_small", + "path": "onnx", + "variant": "int8_override_features_3" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/mobilenet_v3_small__int8_override_features_9__onnx_int8.json b/bench/verdicts_e2e_gated/mobilenet_v3_small__int8_override_features_9__onnx_int8.json new file mode 100644 index 0000000000000000000000000000000000000000..b8e1ea4b0d99e8991fa5f5494d43a6e10f554f82 --- /dev/null +++ b/bench/verdicts_e2e_gated/mobilenet_v3_small__int8_override_features_9__onnx_int8.json @@ -0,0 +1,1503 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "net.features.0", + "explained_by": null, + "nominal_band_ratio": 1.559964, + "results": [ + { + "band_ratio": 7.13344785, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 8.10510321, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 76.5840225, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 63.2870873, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 28.8528883, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "status": "flag" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "int8", + "first_divergence": { + "artifact_tensor": "/net/features/features.0/features.0.2/HardSwish_output_0_DequantizeLinear_Output", + "basis": "earliest tap over the int8 band", + "index": 1, + "neighbourhood": [ + { + "band_ratio": 0.0358761909, + "index": 0, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 1.49968427, + "index": 1, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.0/features.0.2/HardSwish_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.0" + }, + { + "band_ratio": 24.1337964, + "index": 2, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.1/block/block.2/block.2.0/Conv_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.1" + } + ], + "shape": 224, + "tap": "net.features.0" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "97fdd8d1eb0b6c529829cf06017e88b9fd8d8c9ab3358b4b053a832cabb3560b", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "ba44c8a7f7fcb51d96653dfc257e6d48b040c3a996f76c7359f9090780c78ab0", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "int8 band on exciter probes", + "reason": "a statically quantised model is specified on its calibration distribution; exciter categories ['wide_range', 'near_zero', 'saturating'] are measured and reported per tap ('ungated_exciters') but do not gate" + }, + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D4", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.15625, + "band_ratio": 63.8485133, + "metrics": { + "corr": 0.361514867, + "finite": true, + "max_abs": 10.1120784, + "mean_abs": 1.62313719, + "psnr_db": 16.6815233, + "ref_absmax": 8.47343636, + "rel_max": 1.19338578, + "scaled_max_abs": 1.19338578 + }, + "status": "fail", + "ungated_exciters": { + "band_ratio": 62.3002376, + "metrics": { + "corr": 0.376997624, + "finite": true, + "max_abs": 23.2638206, + "mean_abs": 2.20467706, + "psnr_db": 19.5972296, + "ref_absmax": 24.3847065, + "rel_max": 0.954033244, + "scaled_max_abs": 0.954033244 + } + }, + "worst_probe": { + "category": "uniform", + "index": 17 + } + }, + "first_fail_index": 1, + "n_judged": 16, + "n_taps": 16, + "taps": [ + { + "band_ratio": 0.0358443598, + "index": 0, + "metrics": { + "corr": 0.99998378, + "finite": true, + "max_abs": 0.0093292594, + "mean_abs": 0.00466938237, + "psnr_db": 58.9115834, + "ref_absmax": 2.6400001, + "rel_max": 0.00353381024, + "scaled_max_abs": 0.00353381024 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "normalize", + "ungated_exciters": { + "band_ratio": 7.29207513, + "metrics": { + "corr": 0.927079249, + "finite": true, + "max_abs": 8.8980484, + "mean_abs": 0.355833548, + "psnr_db": 21.0584139, + "ref_absmax": 11.5288897, + "rel_max": 0.771804455, + "scaled_max_abs": 0.771804455 + } + } + }, + { + "band_ratio": 1.42017195, + "index": 1, + "metrics": { + "corr": 0.985798281, + "finite": true, + "max_abs": 92.5418434, + "mean_abs": 0.124437339, + "psnr_db": 46.6312271, + "ref_absmax": 155.765991, + "rel_max": 0.594108141, + "scaled_max_abs": 0.594108141 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.0/features.0.2/HardSwish_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.0", + "ungated_exciters": { + "band_ratio": 30.0718898, + "metrics": { + "corr": 0.699281102, + "finite": true, + "max_abs": 182.968063, + "mean_abs": 0.394718264, + "psnr_db": 36.7313823, + "ref_absmax": 190.032486, + "rel_max": 0.962825182, + "scaled_max_abs": 0.962825182 + } + }, + "worst_probe": { + "category": "uniform", + "index": 16 + } + }, + { + "band_ratio": 24.7289881, + "index": 2, + "metrics": { + "corr": 0.752710119, + "finite": true, + "max_abs": 12.0532521, + "mean_abs": 0.858553063, + "psnr_db": 28.3398355, + "ref_absmax": 23.7995548, + "rel_max": 0.506448637, + "scaled_max_abs": 0.506448637 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.1/block/block.2/block.2.0/Conv_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.1", + "ungated_exciters": { + "band_ratio": 31.8811712, + "metrics": { + "corr": 0.681188288, + "finite": true, + "max_abs": 34.6556585, + "mean_abs": 0.89980856, + "psnr_db": 30.7642058, + "ref_absmax": 45.4499092, + "rel_max": 0.76250226, + "scaled_max_abs": 0.76250226 + } + }, + "worst_probe": { + "category": "natural", + "index": 8 + } + }, + { + "band_ratio": 22.4803654, + "index": 3, + "metrics": { + "corr": 0.775196346, + "finite": true, + "max_abs": 11.1481857, + "mean_abs": 0.807375715, + "psnr_db": 26.6212337, + "ref_absmax": 16.5510483, + "rel_max": 0.673563725, + "scaled_max_abs": 0.673563725 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.2/block/block.2/block.2.0/Conv_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.2", + "ungated_exciters": { + "band_ratio": 31.2183543, + "metrics": { + "corr": 0.687816457, + "finite": true, + "max_abs": 17.183762, + "mean_abs": 1.00608293, + "psnr_db": 27.1613232, + "ref_absmax": 25.896719, + "rel_max": 0.663549771, + "scaled_max_abs": 0.663549771 + } + }, + "worst_probe": { + "category": "natural", + "index": 15 + } + }, + { + "band_ratio": 37.1313367, + "index": 4, + "metrics": { + "corr": 0.628686633, + "finite": true, + "max_abs": 11.0903921, + "mean_abs": 1.07996563, + "psnr_db": 25.8387221, + "ref_absmax": 19.068903, + "rel_max": 0.581595707, + "scaled_max_abs": 0.581595707 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.3/Add_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.3", + "ungated_exciters": { + "band_ratio": 26.1533793, + "metrics": { + "corr": 0.738466207, + "finite": true, + "max_abs": 24.9516305, + "mean_abs": 1.15688126, + "psnr_db": 28.0964648, + "ref_absmax": 25.7114887, + "rel_max": 0.970446745, + "scaled_max_abs": 0.970446745 + } + }, + "worst_probe": { + "category": "uniform", + "index": 19 + } + }, + { + "band_ratio": 87.1235622, + "index": 5, + "metrics": { + "corr": 0.128764378, + "finite": true, + "max_abs": 3.80840302, + "mean_abs": 0.87397144, + "psnr_db": 16.2547723, + "ref_absmax": 3.73605371, + "rel_max": 1.01936517, + "scaled_max_abs": 1.01936517 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.4/block/block.3/block.3.0/Conv_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.4", + "ungated_exciters": { + "band_ratio": 51.937385, + "metrics": { + "corr": 0.48062615, + "finite": true, + "max_abs": 17.4586187, + "mean_abs": 1.00834258, + "psnr_db": 26.0572438, + "ref_absmax": 17.1079597, + "rel_max": 1.02049683, + "scaled_max_abs": 1.02049683 + } + }, + "worst_probe": { + "category": "natural", + "index": 3 + } + }, + { + "band_ratio": 77.9404654, + "index": 6, + "metrics": { + "corr": 0.220595346, + "finite": true, + "max_abs": 5.29166651, + "mean_abs": 0.922962856, + "psnr_db": 15.9905563, + "ref_absmax": 3.86317372, + "rel_max": 1.36977182, + "scaled_max_abs": 1.36977182 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.5/Add_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.5", + "ungated_exciters": { + "band_ratio": 57.6997339, + "metrics": { + "corr": 0.423002661, + "finite": true, + "max_abs": 20.1553373, + "mean_abs": 1.08060888, + "psnr_db": 27.0884685, + "ref_absmax": 22.3186283, + "rel_max": 0.903072404, + "scaled_max_abs": 0.903072404 + } + }, + "worst_probe": { + "category": "uniform", + "index": 16 + } + }, + { + "band_ratio": 66.9857809, + "index": 7, + "metrics": { + "corr": 0.330142191, + "finite": true, + "max_abs": 6.92493987, + "mean_abs": 1.21730102, + "psnr_db": 17.6686061, + "ref_absmax": 6.44057798, + "rel_max": 1.07520472, + "scaled_max_abs": 1.07520472 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.6/Add_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.6", + "ungated_exciters": { + "band_ratio": 71.5075916, + "metrics": { + "corr": 0.284924084, + "finite": true, + "max_abs": 62.5242316, + "mean_abs": 2.47860103, + "psnr_db": 26.5274494, + "ref_absmax": 62.7700729, + "rel_max": 0.996083463, + "scaled_max_abs": 0.996083463 + } + }, + "worst_probe": { + "category": "natural", + "index": 7 + } + }, + { + "band_ratio": 66.581552, + "index": 8, + "metrics": { + "corr": 0.33418448, + "finite": true, + "max_abs": 5.67223835, + "mean_abs": 0.677296637, + "psnr_db": 19.0013975, + "ref_absmax": 3.93024445, + "rel_max": 1.44322788, + "scaled_max_abs": 1.44322788 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.7/block/block.3/block.3.0/Conv_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.7", + "ungated_exciters": { + "band_ratio": 68.1176743, + "metrics": { + "corr": 0.318823257, + "finite": true, + "max_abs": 19.5892518, + "mean_abs": 0.865074792, + "psnr_db": 27.5543597, + "ref_absmax": 20.6843147, + "rel_max": 0.947058291, + "scaled_max_abs": 0.947058291 + } + }, + "worst_probe": { + "category": "natural", + "index": 8 + } + }, + { + "band_ratio": 63.1256791, + "index": 9, + "metrics": { + "corr": 0.368743209, + "finite": true, + "max_abs": 5.70869851, + "mean_abs": 0.793413004, + "psnr_db": 19.4516978, + "ref_absmax": 5.01391029, + "rel_max": 1.13857213, + "scaled_max_abs": 1.13857213 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.8/Add_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.8", + "ungated_exciters": { + "band_ratio": 70.5733959, + "metrics": { + "corr": 0.294266041, + "finite": true, + "max_abs": 18.6991002, + "mean_abs": 0.978448448, + "psnr_db": 26.6775614, + "ref_absmax": 19.453968, + "rel_max": 0.96119723, + "scaled_max_abs": 0.96119723 + } + }, + "worst_probe": { + "category": "natural", + "index": 8 + } + }, + { + "band_ratio": 65.2502964, + "index": 10, + "metrics": { + "corr": 0.347497036, + "finite": true, + "max_abs": 1.92246825, + "mean_abs": 0.298118806, + "psnr_db": 20.0679979, + "ref_absmax": 1.95912504, + "rel_max": 0.9812892, + "scaled_max_abs": 0.9812892 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.9/block/block.3/block.3.0/Conv_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.9", + "ungated_exciters": { + "band_ratio": 60.7794486, + "metrics": { + "corr": 0.392205514, + "finite": true, + "max_abs": 3.60867636, + "mean_abs": 0.334290923, + "psnr_db": 22.9086245, + "ref_absmax": 3.49467635, + "rel_max": 1.03262105, + "scaled_max_abs": 1.03262105 + } + }, + "worst_probe": { + "category": "natural", + "index": 13 + } + }, + { + "band_ratio": 66.6119802, + "index": 11, + "metrics": { + "corr": 0.333880198, + "finite": true, + "max_abs": 3.27717614, + "mean_abs": 0.394518924, + "psnr_db": 19.6588601, + "ref_absmax": 2.49726367, + "rel_max": 1.31230682, + "scaled_max_abs": 1.31230682 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.10/Add_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.10", + "ungated_exciters": { + "band_ratio": 63.8006654, + "metrics": { + "corr": 0.361993346, + "finite": true, + "max_abs": 3.91213804, + "mean_abs": 0.417723128, + "psnr_db": 21.8811371, + "ref_absmax": 3.73949909, + "rel_max": 1.04616633, + "scaled_max_abs": 1.04616633 + } + }, + "worst_probe": { + "category": "natural", + "index": 11 + } + }, + { + "band_ratio": 66.6134664, + "index": 12, + "metrics": { + "corr": 0.333865336, + "finite": true, + "max_abs": 2.84938395, + "mean_abs": 0.533604697, + "psnr_db": 17.2409675, + "ref_absmax": 2.55655575, + "rel_max": 1.11454012, + "scaled_max_abs": 1.11454012 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.11/Add_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.11", + "ungated_exciters": { + "band_ratio": 56.7340644, + "metrics": { + "corr": 0.432659356, + "finite": true, + "max_abs": 4.96939158, + "mean_abs": 0.514583667, + "psnr_db": 21.9789432, + "ref_absmax": 4.53482485, + "rel_max": 1.09582878, + "scaled_max_abs": 1.09582878 + } + }, + "worst_probe": { + "category": "natural", + "index": 2 + } + }, + { + "band_ratio": 67.2697418, + "index": 13, + "metrics": { + "corr": 0.327302582, + "finite": true, + "max_abs": 6.71893448, + "mean_abs": 0.302601247, + "psnr_db": 22.5317023, + "ref_absmax": 6.42993307, + "rel_max": 1.04494625, + "scaled_max_abs": 1.04494625 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.12/features.12.2/HardSwish_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.12", + "ungated_exciters": { + "band_ratio": 63.973337, + "metrics": { + "corr": 0.36026663, + "finite": true, + "max_abs": 9.97298712, + "mean_abs": 0.308378123, + "psnr_db": 25.0202106, + "ref_absmax": 10.099762, + "rel_max": 0.987447739, + "scaled_max_abs": 0.987447739 + } + }, + "worst_probe": { + "category": "natural", + "index": 14 + } + }, + { + "band_ratio": 60.2045741, + "index": 14, + "metrics": { + "corr": 0.397954259, + "finite": true, + "max_abs": 2.76332819, + "mean_abs": 0.250152519, + "psnr_db": 17.1443977, + "ref_absmax": 2.65402794, + "rel_max": 1.04118278, + "scaled_max_abs": 1.04118278 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_exciters": { + "band_ratio": 56.6071865, + "metrics": { + "corr": 0.433928135, + "finite": true, + "max_abs": 5.09300908, + "mean_abs": 0.255796932, + "psnr_db": 21.8209056, + "ref_absmax": 5.24590921, + "rel_max": 0.970853455, + "scaled_max_abs": 0.970853455 + } + }, + "worst_probe": { + "category": "natural", + "index": 7 + } + }, + { + "band_ratio": 63.8485133, + "index": 15, + "metrics": { + "corr": 0.361514867, + "finite": true, + "max_abs": 10.1120784, + "mean_abs": 1.62313719, + "psnr_db": 16.6815233, + "ref_absmax": 8.47343636, + "rel_max": 1.19338578, + "scaled_max_abs": 1.19338578 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier", + "ungated_exciters": { + "band_ratio": 62.3002376, + "metrics": { + "corr": 0.376997624, + "finite": true, + "max_abs": 23.2638206, + "mean_abs": 2.20467706, + "psnr_db": 19.5972296, + "ref_absmax": 24.3847065, + "rel_max": 0.954033244, + "scaled_max_abs": 0.954033244 + } + }, + "worst_probe": { + "category": "uniform", + "index": 17 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.09375, + "band_ratio": 56.27621, + "metrics": { + "corr": 0.4372379, + "finite": true, + "max_abs": 8.76705694, + "mean_abs": 1.38969475, + "psnr_db": 17.4150286, + "ref_absmax": 8.29382229, + "rel_max": 1.05705869, + "scaled_max_abs": 1.05705869 + }, + "status": "fail", + "ungated_exciters": { + "band_ratio": 64.6069459, + "metrics": { + "corr": 0.353930541, + "finite": true, + "max_abs": 17.2974631, + "mean_abs": 2.29744748, + "psnr_db": 18.0013378, + "ref_absmax": 18.0251522, + "rel_max": 0.959629237, + "scaled_max_abs": 0.959629237 + } + }, + "worst_probe": { + "category": "uniform", + "index": 17 + } + }, + "first_fail_index": 1, + "n_judged": 16, + "n_taps": 16, + "taps": [ + { + "band_ratio": 0.0358761909, + "index": 0, + "metrics": { + "corr": 0.999983129, + "finite": true, + "max_abs": 0.009329319, + "mean_abs": 0.00467525361, + "psnr_db": 58.9038735, + "ref_absmax": 2.6400001, + "rel_max": 0.00353383281, + "scaled_max_abs": 0.00353383281 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "normalize", + "ungated_exciters": { + "band_ratio": 6.40507214, + "metrics": { + "corr": 0.935949279, + "finite": true, + "max_abs": 8.8980484, + "mean_abs": 0.346772095, + "psnr_db": 21.6136782, + "ref_absmax": 11.5288897, + "rel_max": 0.771804455, + "scaled_max_abs": 0.771804455 + } + } + }, + { + "band_ratio": 1.49968427, + "index": 1, + "metrics": { + "corr": 0.985003157, + "finite": true, + "max_abs": 96.7626572, + "mean_abs": 0.129738686, + "psnr_db": 46.7789777, + "ref_absmax": 159.543579, + "rel_max": 0.606496718, + "scaled_max_abs": 0.606496718 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.0/features.0.2/HardSwish_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.0", + "ungated_exciters": { + "band_ratio": 31.641311, + "metrics": { + "corr": 0.68358689, + "finite": true, + "max_abs": 147.390145, + "mean_abs": 0.373456672, + "psnr_db": 36.8636755, + "ref_absmax": 169.038651, + "rel_max": 0.871931622, + "scaled_max_abs": 0.871931622 + } + }, + "worst_probe": { + "category": "uniform", + "index": 18 + } + }, + { + "band_ratio": 24.1337964, + "index": 2, + "metrics": { + "corr": 0.758662036, + "finite": true, + "max_abs": 12.1677488, + "mean_abs": 0.836431342, + "psnr_db": 28.2712451, + "ref_absmax": 18.9904041, + "rel_max": 0.640731431, + "scaled_max_abs": 0.640731431 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.1/block/block.2/block.2.0/Conv_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.1", + "ungated_exciters": { + "band_ratio": 32.41996, + "metrics": { + "corr": 0.6758004, + "finite": true, + "max_abs": 32.7971554, + "mean_abs": 0.821957581, + "psnr_db": 30.9380241, + "ref_absmax": 44.644146, + "rel_max": 0.734635072, + "scaled_max_abs": 0.734635072 + } + }, + "worst_probe": { + "category": "natural", + "index": 9 + } + }, + { + "band_ratio": 21.9247707, + "index": 3, + "metrics": { + "corr": 0.780752293, + "finite": true, + "max_abs": 10.5764313, + "mean_abs": 0.785204666, + "psnr_db": 25.6597008, + "ref_absmax": 14.3625708, + "rel_max": 0.736388454, + "scaled_max_abs": 0.736388454 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.2/block/block.2/block.2.0/Conv_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.2", + "ungated_exciters": { + "band_ratio": 33.0384665, + "metrics": { + "corr": 0.669615335, + "finite": true, + "max_abs": 21.6841269, + "mean_abs": 0.959784233, + "psnr_db": 28.9257452, + "ref_absmax": 30.6146946, + "rel_max": 0.708291464, + "scaled_max_abs": 0.708291464 + } + }, + "worst_probe": { + "category": "uniform", + "index": 19 + } + }, + { + "band_ratio": 36.4573716, + "index": 4, + "metrics": { + "corr": 0.635426284, + "finite": true, + "max_abs": 10.6273589, + "mean_abs": 1.04978782, + "psnr_db": 24.8472385, + "ref_absmax": 14.6985712, + "rel_max": 0.723019861, + "scaled_max_abs": 0.723019861 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.3/Add_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.3", + "ungated_exciters": { + "band_ratio": 23.8769117, + "metrics": { + "corr": 0.761230883, + "finite": true, + "max_abs": 23.2994709, + "mean_abs": 1.11933342, + "psnr_db": 28.5102247, + "ref_absmax": 26.1666718, + "rel_max": 0.890425467, + "scaled_max_abs": 0.890425467 + } + }, + "worst_probe": { + "category": "uniform", + "index": 18 + } + }, + { + "band_ratio": 84.3533017, + "index": 5, + "metrics": { + "corr": 0.156466983, + "finite": true, + "max_abs": 3.69145763, + "mean_abs": 0.845470912, + "psnr_db": 16.3871024, + "ref_absmax": 3.61854959, + "rel_max": 1.02014842, + "scaled_max_abs": 1.02014842 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.4/block/block.3/block.3.0/Conv_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.4", + "ungated_exciters": { + "band_ratio": 49.6311889, + "metrics": { + "corr": 0.503688111, + "finite": true, + "max_abs": 19.9985257, + "mean_abs": 0.989274182, + "psnr_db": 27.0935533, + "ref_absmax": 19.5010872, + "rel_max": 1.02550825, + "scaled_max_abs": 1.02550825 + } + }, + "worst_probe": { + "category": "natural", + "index": 5 + } + }, + { + "band_ratio": 74.5743036, + "index": 6, + "metrics": { + "corr": 0.254256964, + "finite": true, + "max_abs": 5.37905097, + "mean_abs": 0.897425735, + "psnr_db": 16.7841113, + "ref_absmax": 4.3690753, + "rel_max": 1.23116463, + "scaled_max_abs": 1.23116463 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.5/Add_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.5", + "ungated_exciters": { + "band_ratio": 59.9000645, + "metrics": { + "corr": 0.400999355, + "finite": true, + "max_abs": 29.4028873, + "mean_abs": 1.18718761, + "psnr_db": 28.6306684, + "ref_absmax": 30.0460987, + "rel_max": 0.978592516, + "scaled_max_abs": 0.978592516 + } + }, + "worst_probe": { + "category": "uniform", + "index": 19 + } + }, + { + "band_ratio": 64.4963086, + "index": 7, + "metrics": { + "corr": 0.355036914, + "finite": true, + "max_abs": 6.76949787, + "mean_abs": 1.18396791, + "psnr_db": 18.0915845, + "ref_absmax": 6.4850378, + "rel_max": 1.04386406, + "scaled_max_abs": 1.04386406 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.6/Add_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.6", + "ungated_exciters": { + "band_ratio": 71.9291389, + "metrics": { + "corr": 0.280708611, + "finite": true, + "max_abs": 67.0166258, + "mean_abs": 2.4956199, + "psnr_db": 28.2766305, + "ref_absmax": 67.6801987, + "rel_max": 0.990195465, + "scaled_max_abs": 0.990195465 + } + }, + "worst_probe": { + "category": "natural", + "index": 15 + } + }, + { + "band_ratio": 64.337707, + "index": 8, + "metrics": { + "corr": 0.35662293, + "finite": true, + "max_abs": 6.01789165, + "mean_abs": 0.653462344, + "psnr_db": 18.877128, + "ref_absmax": 3.77111506, + "rel_max": 1.59578574, + "scaled_max_abs": 1.59578574 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.7/block/block.3/block.3.0/Conv_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.7", + "ungated_exciters": { + "band_ratio": 70.990791, + "metrics": { + "corr": 0.29009209, + "finite": true, + "max_abs": 16.9826107, + "mean_abs": 0.854367038, + "psnr_db": 27.0161316, + "ref_absmax": 17.2851353, + "rel_max": 0.982497993, + "scaled_max_abs": 0.982497993 + } + }, + "worst_probe": { + "category": "natural", + "index": 9 + } + }, + { + "band_ratio": 61.9949593, + "index": 9, + "metrics": { + "corr": 0.380050407, + "finite": true, + "max_abs": 6.56561947, + "mean_abs": 0.777001509, + "psnr_db": 19.914196, + "ref_absmax": 5.20777416, + "rel_max": 1.26073429, + "scaled_max_abs": 1.26073429 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.8/Add_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.8", + "ungated_exciters": { + "band_ratio": 74.297247, + "metrics": { + "corr": 0.25702753, + "finite": true, + "max_abs": 16.2092239, + "mean_abs": 0.949972395, + "psnr_db": 26.2322167, + "ref_absmax": 16.7228394, + "rel_max": 0.969286588, + "scaled_max_abs": 0.969286588 + } + }, + "worst_probe": { + "category": "natural", + "index": 9 + } + }, + { + "band_ratio": 62.8471619, + "index": 10, + "metrics": { + "corr": 0.371528381, + "finite": true, + "max_abs": 1.84063306, + "mean_abs": 0.293989822, + "psnr_db": 19.207538, + "ref_absmax": 1.76286125, + "rel_max": 1.04411681, + "scaled_max_abs": 1.04411681 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.9/block/block.3/block.3.0/Conv_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.9", + "ungated_exciters": { + "band_ratio": 64.277526, + "metrics": { + "corr": 0.35722474, + "finite": true, + "max_abs": 2.59765479, + "mean_abs": 0.329777071, + "psnr_db": 21.1130667, + "ref_absmax": 2.7077558, + "rel_max": 0.959338647, + "scaled_max_abs": 0.959338647 + } + }, + "worst_probe": { + "category": "natural", + "index": 9 + } + }, + { + "band_ratio": 64.0486709, + "index": 11, + "metrics": { + "corr": 0.359513291, + "finite": true, + "max_abs": 3.14994502, + "mean_abs": 0.385349317, + "psnr_db": 19.1915249, + "ref_absmax": 2.4487865, + "rel_max": 1.28632897, + "scaled_max_abs": 1.28632897 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.10/Add_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.10", + "ungated_exciters": { + "band_ratio": 65.7162201, + "metrics": { + "corr": 0.342837799, + "finite": true, + "max_abs": 3.5620842, + "mean_abs": 0.443114193, + "psnr_db": 20.0489875, + "ref_absmax": 3.28536868, + "rel_max": 1.08422663, + "scaled_max_abs": 1.08422663 + } + }, + "worst_probe": { + "category": "natural", + "index": 8 + } + }, + { + "band_ratio": 63.1387942, + "index": 12, + "metrics": { + "corr": 0.368612058, + "finite": true, + "max_abs": 3.56725383, + "mean_abs": 0.50854051, + "psnr_db": 18.5674434, + "ref_absmax": 2.86192513, + "rel_max": 1.24645254, + "scaled_max_abs": 1.24645254 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.11/Add_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.11", + "ungated_exciters": { + "band_ratio": 58.1036224, + "metrics": { + "corr": 0.418963776, + "finite": true, + "max_abs": 4.47589123, + "mean_abs": 0.532552178, + "psnr_db": 20.2615, + "ref_absmax": 3.9695878, + "rel_max": 1.12754559, + "scaled_max_abs": 1.12754559 + } + }, + "worst_probe": { + "category": "natural", + "index": 8 + } + }, + { + "band_ratio": 63.0656195, + "index": 13, + "metrics": { + "corr": 0.369343805, + "finite": true, + "max_abs": 7.07705277, + "mean_abs": 0.278216268, + "psnr_db": 23.6649104, + "ref_absmax": 6.71125937, + "rel_max": 1.05450444, + "scaled_max_abs": 1.05450444 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.12/features.12.2/HardSwish_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.features.12", + "ungated_exciters": { + "band_ratio": 64.8027207, + "metrics": { + "corr": 0.351972793, + "finite": true, + "max_abs": 9.49323148, + "mean_abs": 0.294511437, + "psnr_db": 24.7767704, + "ref_absmax": 9.25807858, + "rel_max": 1.02539975, + "scaled_max_abs": 1.02539975 + } + }, + "worst_probe": { + "category": "natural", + "index": 6 + } + }, + { + "band_ratio": 55.3058541, + "index": 14, + "metrics": { + "corr": 0.446941459, + "finite": true, + "max_abs": 2.61891995, + "mean_abs": 0.226592682, + "psnr_db": 17.5643463, + "ref_absmax": 2.49862957, + "rel_max": 1.04814254, + "scaled_max_abs": 1.04814254 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_exciters": { + "band_ratio": 58.8343246, + "metrics": { + "corr": 0.411656754, + "finite": true, + "max_abs": 4.79495952, + "mean_abs": 0.246272964, + "psnr_db": 21.9951012, + "ref_absmax": 5.18950367, + "rel_max": 0.923972661, + "scaled_max_abs": 0.923972661 + } + }, + "worst_probe": { + "category": "natural", + "index": 2 + } + }, + { + "band_ratio": 56.27621, + "index": 15, + "metrics": { + "corr": 0.4372379, + "finite": true, + "max_abs": 8.76705694, + "mean_abs": 1.38969475, + "psnr_db": 17.4150286, + "ref_absmax": 8.29382229, + "rel_max": 1.05705869, + "scaled_max_abs": 1.05705869 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier", + "ungated_exciters": { + "band_ratio": 64.6069459, + "metrics": { + "corr": 0.353930541, + "finite": true, + "max_abs": 17.2974631, + "mean_abs": 2.29744748, + "psnr_db": 18.0013378, + "ref_absmax": 18.0251522, + "rel_max": 0.959629237, + "scaled_max_abs": 0.959629237 + } + }, + "worst_probe": { + "category": "uniform", + "index": 17 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "int8", + "id": "mobilenet_v3_small__int8_override_features_9__onnx_int8", + "model": "mobilenet_v3_small", + "path": "onnx", + "variant": "int8_override_features_9" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/mobilenet_v3_small__layout_swap__coreml_fp16.json b/bench/verdicts_e2e_gated/mobilenet_v3_small__layout_swap__coreml_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..e2c729baf4adea94663aa5ba02afa7742dd6fc49 --- /dev/null +++ b/bench/verdicts_e2e_gated/mobilenet_v3_small__layout_swap__coreml_fp16.json @@ -0,0 +1,1053 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "at": "net.features.1", + "explained_by": null, + "nominal_band_ratio": 0.889396549, + "results": [ + { + "band_ratio": 88.0535283, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 70.5427189, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 608.928887, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 113.160239, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 379.294491, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [ + "inputs[0]: dtype float16 (declared float32)", + "outputs[0]: dtype float16 (declared float32)" + ], + "status": "precision_narrowing" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "input_27_cast_fp16", + "basis": "earliest tap over band with in-band predecessors", + "index": 2, + "neighbourhood": [ + { + "band_ratio": 0.33139093, + "index": 1, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_7_cast_fp16" + }, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_ratio": 1.09594004, + "index": 2, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_27_cast_fp16" + }, + "status": "fail", + "tap": "net.features.1" + }, + { + "band_ratio": 1.00240612, + "index": 3, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_43_cast_fp16" + }, + "status": "fail", + "tap": "net.features.2" + } + ], + "shape": 224, + "tap": "net.features.1" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "ed548b17c5c9ec1bd9522fc16c042f2034dbf39d8b4e84999236f34fa0b0bc13", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "b51b5bd692b7f42370e7c0cffa0d75890b102cd2dded2256d210141271fc16d5", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D2", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.34375, + "band_ratio": 16.7281299, + "metrics": { + "corr": 0.964496403, + "finite": true, + "max_abs": 4.07910538, + "mean_abs": 0.539675587, + "psnr_db": 33.5586623, + "ref_absmax": 24.3847065, + "rel_max": 0.167281299, + "scaled_max_abs": 0.167281299 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 2, + "n_judged": 16, + "n_taps": 16, + "taps": [ + { + "band_ratio": 0.117570499, + "index": 0, + "metrics": { + "corr": 0.999999914, + "finite": true, + "max_abs": 0.0135545731, + "mean_abs": 0.000674526699, + "psnr_db": 83.5827466, + "ref_absmax": 11.5288897, + "rel_max": 0.00117570499, + "scaled_max_abs": 0.00117570499 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.264822202, + "index": 1, + "metrics": { + "corr": 0.999998648, + "finite": true, + "max_abs": 0.503248215, + "mean_abs": 0.00245742044, + "psnr_db": 89.2955159, + "ref_absmax": 190.032486, + "rel_max": 0.00264822202, + "scaled_max_abs": 0.00264822202 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_7_cast_fp16" + }, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_ratio": 1.02786363, + "index": 2, + "metrics": { + "corr": 0.999955391, + "finite": true, + "max_abs": 0.467163086, + "mean_abs": 0.0108745644, + "psnr_db": 70.7611788, + "ref_absmax": 45.4499092, + "rel_max": 0.0102786363, + "scaled_max_abs": 0.0102786363 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_27_cast_fp16" + }, + "status": "fail", + "tap": "net.features.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 1.06091941, + "index": 3, + "metrics": { + "corr": 0.999939329, + "finite": true, + "max_abs": 0.274743319, + "mean_abs": 0.0150893866, + "psnr_db": 65.8230603, + "ref_absmax": 25.896719, + "rel_max": 0.0106091941, + "scaled_max_abs": 0.0106091941 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_43_cast_fp16" + }, + "status": "fail", + "tap": "net.features.2", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 2.19511544, + "index": 4, + "metrics": { + "corr": 0.999841065, + "finite": true, + "max_abs": 0.564396858, + "mean_abs": 0.0266718961, + "psnr_db": 62.2128125, + "ref_absmax": 25.7114887, + "rel_max": 0.0219511544, + "scaled_max_abs": 0.0219511544 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59_cast_fp16" + }, + "status": "fail", + "tap": "net.features.3", + "worst_probe": { + "category": "natural", + "index": 5 + } + }, + { + "band_ratio": 1.22644963, + "index": 5, + "metrics": { + "corr": 0.999799843, + "finite": true, + "max_abs": 0.209820509, + "mean_abs": 0.0157979565, + "psnr_db": 61.8903255, + "ref_absmax": 17.1079597, + "rel_max": 0.0122644963, + "scaled_max_abs": 0.0122644963 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85_cast_fp16" + }, + "status": "fail", + "tap": "net.features.4", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_ratio": 2.14109624, + "index": 6, + "metrics": { + "corr": 0.999504987, + "finite": true, + "max_abs": 0.477863312, + "mean_abs": 0.0243805949, + "psnr_db": 59.3153124, + "ref_absmax": 22.3186283, + "rel_max": 0.0214109624, + "scaled_max_abs": 0.0214109624 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_111_cast_fp16" + }, + "status": "fail", + "tap": "net.features.5", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_ratio": 73.0756251, + "index": 7, + "metrics": { + "corr": 0.840036827, + "finite": true, + "max_abs": 45.8696232, + "mean_abs": 1.13472148, + "psnr_db": 35.1090801, + "ref_absmax": 62.7700729, + "rel_max": 0.730756251, + "scaled_max_abs": 0.730756251 + }, + "op": { + "candidates": 4, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_137_cast_fp16" + }, + "status": "fail", + "tap": "net.features.6", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 64.561411, + "index": 8, + "metrics": { + "corr": 0.680934369, + "finite": true, + "max_abs": 13.3540854, + "mean_abs": 0.620226663, + "psnr_db": 32.0315137, + "ref_absmax": 20.6843147, + "rel_max": 0.64561411, + "scaled_max_abs": 0.64561411 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_163_cast_fp16" + }, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 73.7783139, + "index": 9, + "metrics": { + "corr": 0.611187384, + "finite": true, + "max_abs": 14.3528096, + "mean_abs": 0.774588963, + "psnr_db": 30.1796531, + "ref_absmax": 19.453968, + "rel_max": 0.737783139, + "scaled_max_abs": 0.737783139 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_189_cast_fp16" + }, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 65.9164735, + "index": 10, + "metrics": { + "corr": 0.770585869, + "finite": true, + "max_abs": 2.30356741, + "mean_abs": 0.221830253, + "psnr_db": 26.6341419, + "ref_absmax": 3.49467635, + "rel_max": 0.659164735, + "scaled_max_abs": 0.659164735 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_215_cast_fp16" + }, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 74.3511277, + "index": 11, + "metrics": { + "corr": 0.784438489, + "finite": true, + "max_abs": 2.78035975, + "mean_abs": 0.267661433, + "psnr_db": 25.9725339, + "ref_absmax": 3.73949909, + "rel_max": 0.743511277, + "scaled_max_abs": 0.743511277 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_241_cast_fp16" + }, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 74.4750935, + "index": 12, + "metrics": { + "corr": 0.797285795, + "finite": true, + "max_abs": 3.37731504, + "mean_abs": 0.309219323, + "psnr_db": 26.6334479, + "ref_absmax": 4.53482485, + "rel_max": 0.744750935, + "scaled_max_abs": 0.744750935 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_267_cast_fp16" + }, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 88.0869827, + "index": 13, + "metrics": { + "corr": 0.762083739, + "finite": true, + "max_abs": 8.89657557, + "mean_abs": 0.1795187, + "psnr_db": 29.6537818, + "ref_absmax": 10.099762, + "rel_max": 0.880869827, + "scaled_max_abs": 0.880869827 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_273_cast_fp16" + }, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_ratio": 23.2093312, + "index": 14, + "metrics": { + "corr": 0.966445133, + "finite": true, + "max_abs": 1.21754044, + "mean_abs": 0.06128933, + "psnr_db": 34.9476438, + "ref_absmax": 5.24590921, + "rel_max": 0.232093312, + "scaled_max_abs": 0.232093312 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "natural", + "index": 3 + } + }, + { + "band_ratio": 16.7281299, + "index": 15, + "metrics": { + "corr": 0.964496403, + "finite": true, + "max_abs": 4.07910538, + "mean_abs": 0.539675587, + "psnr_db": 33.5586623, + "ref_absmax": 24.3847065, + "rel_max": 0.167281299, + "scaled_max_abs": 0.167281299 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.65625, + "band_ratio": 15.2057311, + "metrics": { + "corr": 0.973459475, + "finite": true, + "max_abs": 2.74085617, + "mean_abs": 0.441873597, + "psnr_db": 33.3973167, + "ref_absmax": 18.0251522, + "rel_max": 0.152057311, + "scaled_max_abs": 0.152057311 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 8 + } + }, + "first_fail_index": 2, + "n_judged": 16, + "n_taps": 16, + "taps": [ + { + "band_ratio": 0.116213884, + "index": 0, + "metrics": { + "corr": 0.999999912, + "finite": true, + "max_abs": 0.0133981705, + "mean_abs": 0.000679588388, + "psnr_db": 83.6184843, + "ref_absmax": 11.5288897, + "rel_max": 0.00116213884, + "scaled_max_abs": 0.00116213884 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.33139093, + "index": 1, + "metrics": { + "corr": 0.999998561, + "finite": true, + "max_abs": 0.560178757, + "mean_abs": 0.00245733429, + "psnr_db": 88.488319, + "ref_absmax": 169.038651, + "rel_max": 0.0033139093, + "scaled_max_abs": 0.0033139093 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_7_cast_fp16" + }, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_ratio": 1.09594004, + "index": 2, + "metrics": { + "corr": 0.999947809, + "finite": true, + "max_abs": 0.489273071, + "mean_abs": 0.0109243768, + "psnr_db": 70.0800625, + "ref_absmax": 44.644146, + "rel_max": 0.0109594004, + "scaled_max_abs": 0.0109594004 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_27_cast_fp16" + }, + "status": "fail", + "tap": "net.features.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 1.00240612, + "index": 3, + "metrics": { + "corr": 0.999928562, + "finite": true, + "max_abs": 0.306883574, + "mean_abs": 0.0154189054, + "psnr_db": 66.8123424, + "ref_absmax": 30.6146946, + "rel_max": 0.0100240612, + "scaled_max_abs": 0.0100240612 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_43_cast_fp16" + }, + "status": "fail", + "tap": "net.features.2", + "worst_probe": { + "category": "natural", + "index": 6 + } + }, + { + "band_ratio": 1.73739321, + "index": 4, + "metrics": { + "corr": 0.999826151, + "finite": true, + "max_abs": 0.454617977, + "mean_abs": 0.0275043068, + "psnr_db": 61.9146954, + "ref_absmax": 26.1666718, + "rel_max": 0.0173739321, + "scaled_max_abs": 0.0173739321 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59_cast_fp16" + }, + "status": "fail", + "tap": "net.features.3", + "worst_probe": { + "category": "natural", + "index": 13 + } + }, + { + "band_ratio": 1.0329661, + "index": 5, + "metrics": { + "corr": 0.99979303, + "finite": true, + "max_abs": 0.201439619, + "mean_abs": 0.016404368, + "psnr_db": 62.6750818, + "ref_absmax": 19.5010872, + "rel_max": 0.010329661, + "scaled_max_abs": 0.010329661 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85_cast_fp16" + }, + "status": "fail", + "tap": "net.features.4", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_ratio": 1.3537173, + "index": 6, + "metrics": { + "corr": 0.999513853, + "finite": true, + "max_abs": 0.406739235, + "mean_abs": 0.0253501789, + "psnr_db": 61.2191237, + "ref_absmax": 30.0460987, + "rel_max": 0.013537173, + "scaled_max_abs": 0.013537173 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_111_cast_fp16" + }, + "status": "fail", + "tap": "net.features.5", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_ratio": 82.6616205, + "index": 7, + "metrics": { + "corr": 0.831392185, + "finite": true, + "max_abs": 55.945549, + "mean_abs": 1.10240856, + "psnr_db": 36.6084963, + "ref_absmax": 67.6801987, + "rel_max": 0.826616205, + "scaled_max_abs": 0.826616205 + }, + "op": { + "candidates": 4, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_137_cast_fp16" + }, + "status": "fail", + "tap": "net.features.6", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 61.3695406, + "index": 8, + "metrics": { + "corr": 0.642824182, + "finite": true, + "max_abs": 10.6078081, + "mean_abs": 0.612760024, + "psnr_db": 31.0082047, + "ref_absmax": 17.2851353, + "rel_max": 0.613695406, + "scaled_max_abs": 0.613695406 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_163_cast_fp16" + }, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 65.2239317, + "index": 9, + "metrics": { + "corr": 0.57628143, + "finite": true, + "max_abs": 10.9072933, + "mean_abs": 0.75831416, + "psnr_db": 29.3109862, + "ref_absmax": 16.7228394, + "rel_max": 0.652239317, + "scaled_max_abs": 0.652239317 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_189_cast_fp16" + }, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 99.9596994, + "index": 10, + "metrics": { + "corr": 0.768517144, + "finite": true, + "max_abs": 2.70666456, + "mean_abs": 0.217284887, + "psnr_db": 24.694237, + "ref_absmax": 2.7077558, + "rel_max": 0.999596994, + "scaled_max_abs": 0.999596994 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_215_cast_fp16" + }, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 79.6089286, + "index": 11, + "metrics": { + "corr": 0.780790258, + "finite": true, + "max_abs": 2.61544681, + "mean_abs": 0.269198887, + "psnr_db": 24.4122682, + "ref_absmax": 3.28536868, + "rel_max": 0.796089286, + "scaled_max_abs": 0.796089286 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_241_cast_fp16" + }, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 90.540719, + "index": 12, + "metrics": { + "corr": 0.799586662, + "finite": true, + "max_abs": 3.59409334, + "mean_abs": 0.304495291, + "psnr_db": 25.1538306, + "ref_absmax": 3.9695878, + "rel_max": 0.90540719, + "scaled_max_abs": 0.90540719 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_267_cast_fp16" + }, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "uniform", + "index": 17 + } + }, + { + "band_ratio": 75.192645, + "index": 13, + "metrics": { + "corr": 0.762774438, + "finite": true, + "max_abs": 6.96139416, + "mean_abs": 0.170640637, + "psnr_db": 29.3704607, + "ref_absmax": 9.25807858, + "rel_max": 0.75192645, + "scaled_max_abs": 0.75192645 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_273_cast_fp16" + }, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "uniform", + "index": 17 + } + }, + { + "band_ratio": 14.4853886, + "index": 14, + "metrics": { + "corr": 0.974324806, + "finite": true, + "max_abs": 0.751719773, + "mean_abs": 0.0527290075, + "psnr_db": 36.2976735, + "ref_absmax": 5.18950367, + "rel_max": 0.144853886, + "scaled_max_abs": 0.144853886 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "natural", + "index": 2 + } + }, + { + "band_ratio": 15.2057311, + "index": 15, + "metrics": { + "corr": 0.973459475, + "finite": true, + "max_abs": 2.74085617, + "mean_abs": 0.441873597, + "psnr_db": 33.3973167, + "ref_absmax": 18.0251522, + "rel_max": 0.152057311, + "scaled_max_abs": 0.152057311 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "natural", + "index": 8 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp16", + "id": "mobilenet_v3_small__layout_swap__coreml_fp16", + "model": "mobilenet_v3_small", + "path": "coreml", + "variant": "layout_swap" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/mobilenet_v3_small__layout_swap__coreml_fp32.json b/bench/verdicts_e2e_gated/mobilenet_v3_small__layout_swap__coreml_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..4dc6f9dd1b87147d13b7eb9312cbdc4bb38428ea --- /dev/null +++ b/bench/verdicts_e2e_gated/mobilenet_v3_small__layout_swap__coreml_fp32.json @@ -0,0 +1,981 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "reason": "first divergence at tap 7 is beyond the hypothesis taps (first 3) \u2014 interface faults surface earlier", + "status": "not_evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "input_137", + "basis": "earliest tap over band with in-band predecessors", + "index": 7, + "neighbourhood": [ + { + "band_ratio": 0.0479676355, + "index": 6, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_111" + }, + "status": "pass", + "tap": "net.features.5" + }, + { + "band_ratio": 8249.98191, + "index": 7, + "op": { + "candidates": 4, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_137" + }, + "status": "fail", + "tap": "net.features.6" + }, + { + "band_ratio": 6166.2458, + "index": 8, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_163" + }, + "status": "fail", + "tap": "net.features.7" + } + ], + "shape": 224, + "tap": "net.features.6" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "e7c7b38b4fab5b595d7fe0fd5c1bded28917544a332d878c06117069e45e6552", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "0b9ac60992765f63ba85e16a8f35fa7bfbce6374a8d5b4e734ce57ce7e1c6fe5", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D2", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.34375, + "band_ratio": 1627.39783, + "metrics": { + "corr": 0.96454014, + "finite": true, + "max_abs": 3.96836185, + "mean_abs": 0.530406957, + "psnr_db": 33.5907671, + "ref_absmax": 24.3847065, + "rel_max": 0.162739783, + "scaled_max_abs": 0.162739783 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 7, + "n_judged": 16, + "n_taps": 16, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.26638033e-08, + "psnr_db": 163.904618, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.00401478436, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.62939453e-05, + "mean_abs": 3.28296435e-07, + "psnr_db": 166.338486, + "ref_absmax": 190.032486, + "rel_max": 4.01478436e-07, + "scaled_max_abs": 4.01478436e-07 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_7" + }, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_ratio": 0.0140782649, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.39855862e-05, + "mean_abs": 1.75256269e-06, + "psnr_db": 146.780382, + "ref_absmax": 45.4499092, + "rel_max": 1.40782649e-06, + "scaled_max_abs": 1.40782649e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_27" + }, + "status": "pass", + "tap": "net.features.1" + }, + { + "band_ratio": 0.0168018932, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.35113907e-05, + "mean_abs": 2.55808928e-06, + "psnr_db": 141.163244, + "ref_absmax": 25.896719, + "rel_max": 1.68018932e-06, + "scaled_max_abs": 1.68018932e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_43" + }, + "status": "pass", + "tap": "net.features.2" + }, + { + "band_ratio": 0.087118353, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000223994255, + "mean_abs": 5.04164043e-06, + "psnr_db": 135.403114, + "ref_absmax": 25.7114887, + "rel_max": 8.7118353e-06, + "scaled_max_abs": 8.7118353e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59" + }, + "status": "pass", + "tap": "net.features.3" + }, + { + "band_ratio": 0.0493338646, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.4400177e-05, + "mean_abs": 2.84415636e-06, + "psnr_db": 136.267966, + "ref_absmax": 17.1079597, + "rel_max": 4.93338646e-06, + "scaled_max_abs": 4.93338646e-06 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85" + }, + "status": "pass", + "tap": "net.features.4" + }, + { + "band_ratio": 0.0607833822, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000135660172, + "mean_abs": 4.31367924e-06, + "psnr_db": 133.74631, + "ref_absmax": 22.3186283, + "rel_max": 6.07833822e-06, + "scaled_max_abs": 6.07833822e-06 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_111" + }, + "status": "pass", + "tap": "net.features.5" + }, + { + "band_ratio": 7272.9094, + "index": 7, + "metrics": { + "corr": 0.839957417, + "finite": true, + "max_abs": 45.6521053, + "mean_abs": 1.12782642, + "psnr_db": 35.1148773, + "ref_absmax": 62.7700729, + "rel_max": 0.72729094, + "scaled_max_abs": 0.72729094 + }, + "op": { + "candidates": 4, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_137" + }, + "status": "fail", + "tap": "net.features.6", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6447.83923, + "index": 8, + "metrics": { + "corr": 0.680861681, + "finite": true, + "max_abs": 13.3369136, + "mean_abs": 0.617803023, + "psnr_db": 32.0381731, + "ref_absmax": 20.6843147, + "rel_max": 0.644783923, + "scaled_max_abs": 0.644783923 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_163" + }, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7362.28403, + "index": 9, + "metrics": { + "corr": 0.610954467, + "finite": true, + "max_abs": 14.3225638, + "mean_abs": 0.772192768, + "psnr_db": 30.1892044, + "ref_absmax": 19.453968, + "rel_max": 0.736228403, + "scaled_max_abs": 0.736228403 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_189" + }, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6631.18969, + "index": 10, + "metrics": { + "corr": 0.770989049, + "finite": true, + "max_abs": 2.31738618, + "mean_abs": 0.220651534, + "psnr_db": 26.6466638, + "ref_absmax": 3.49467635, + "rel_max": 0.663118969, + "scaled_max_abs": 0.663118969 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_215" + }, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7513.62085, + "index": 11, + "metrics": { + "corr": 0.785683753, + "finite": true, + "max_abs": 2.80971783, + "mean_abs": 0.265896149, + "psnr_db": 25.9953907, + "ref_absmax": 3.73949909, + "rel_max": 0.751362085, + "scaled_max_abs": 0.751362085 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_241" + }, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7555.36848, + "index": 12, + "metrics": { + "corr": 0.798114621, + "finite": true, + "max_abs": 3.42622727, + "mean_abs": 0.307456877, + "psnr_db": 26.6512396, + "ref_absmax": 4.53482485, + "rel_max": 0.755536848, + "scaled_max_abs": 0.755536848 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_267" + }, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 8713.10386, + "index": 13, + "metrics": { + "corr": 0.762458046, + "finite": true, + "max_abs": 8.80002749, + "mean_abs": 0.178934675, + "psnr_db": 29.6498431, + "ref_absmax": 10.099762, + "rel_max": 0.871310386, + "scaled_max_abs": 0.871310386 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_273" + }, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_ratio": 2341.74079, + "index": 14, + "metrics": { + "corr": 0.966797093, + "finite": true, + "max_abs": 1.22845596, + "mean_abs": 0.0604077856, + "psnr_db": 34.9826989, + "ref_absmax": 5.24590921, + "rel_max": 0.234174079, + "scaled_max_abs": 0.234174079 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "natural", + "index": 3 + } + }, + { + "band_ratio": 1627.39783, + "index": 15, + "metrics": { + "corr": 0.96454014, + "finite": true, + "max_abs": 3.96836185, + "mean_abs": 0.530406957, + "psnr_db": 33.5907671, + "ref_absmax": 24.3847065, + "rel_max": 0.162739783, + "scaled_max_abs": 0.162739783 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.625, + "band_ratio": 1520.01599, + "metrics": { + "corr": 0.973850743, + "finite": true, + "max_abs": 2.73985195, + "mean_abs": 0.433899731, + "psnr_db": 33.4352885, + "ref_absmax": 18.0251522, + "rel_max": 0.152001599, + "scaled_max_abs": 0.152001599 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 8 + } + }, + "first_fail_index": 7, + "n_judged": 16, + "n_taps": 16, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.2793459e-08, + "psnr_db": 164.013874, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.00361072193, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.10351562e-05, + "mean_abs": 3.27406325e-07, + "psnr_db": 165.532994, + "ref_absmax": 169.038651, + "rel_max": 3.61072193e-07, + "scaled_max_abs": 3.61072193e-07 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_7" + }, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_ratio": 0.0153937664, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.87241554e-05, + "mean_abs": 1.75363639e-06, + "psnr_db": 146.190871, + "ref_absmax": 44.644146, + "rel_max": 1.53937664e-06, + "scaled_max_abs": 1.53937664e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_27" + }, + "status": "pass", + "tap": "net.features.1" + }, + { + "band_ratio": 0.0136285048, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.17232513e-05, + "mean_abs": 2.61711599e-06, + "psnr_db": 142.200155, + "ref_absmax": 30.6146946, + "rel_max": 1.36285048e-06, + "scaled_max_abs": 1.36285048e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_43" + }, + "status": "pass", + "tap": "net.features.2" + }, + { + "band_ratio": 0.0653297152, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000170946121, + "mean_abs": 5.15982585e-06, + "psnr_db": 135.344389, + "ref_absmax": 26.1666718, + "rel_max": 6.53297152e-06, + "scaled_max_abs": 6.53297152e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59" + }, + "status": "pass", + "tap": "net.features.3" + }, + { + "band_ratio": 0.0415681014, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.10623169e-05, + "mean_abs": 2.93827984e-06, + "psnr_db": 137.117562, + "ref_absmax": 19.5010872, + "rel_max": 4.15681014e-06, + "scaled_max_abs": 4.15681014e-06 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85" + }, + "status": "pass", + "tap": "net.features.4" + }, + { + "band_ratio": 0.0479676355, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000144124031, + "mean_abs": 4.59301085e-06, + "psnr_db": 135.369807, + "ref_absmax": 30.0460987, + "rel_max": 4.79676355e-06, + "scaled_max_abs": 4.79676355e-06 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_111" + }, + "status": "pass", + "tap": "net.features.5" + }, + { + "band_ratio": 8249.98191, + "index": 7, + "metrics": { + "corr": 0.831254163, + "finite": true, + "max_abs": 55.8360415, + "mean_abs": 1.09702289, + "psnr_db": 36.6050383, + "ref_absmax": 67.6801987, + "rel_max": 0.824998191, + "scaled_max_abs": 0.824998191 + }, + "op": { + "candidates": 4, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_137" + }, + "status": "fail", + "tap": "net.features.6", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6166.2458, + "index": 8, + "metrics": { + "corr": 0.643770507, + "finite": true, + "max_abs": 10.6584393, + "mean_abs": 0.610271299, + "psnr_db": 31.0140843, + "ref_absmax": 17.2851353, + "rel_max": 0.61662458, + "scaled_max_abs": 0.61662458 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_163" + }, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6552.52309, + "index": 9, + "metrics": { + "corr": 0.577102154, + "finite": true, + "max_abs": 10.9576791, + "mean_abs": 0.755940075, + "psnr_db": 29.318798, + "ref_absmax": 16.7228394, + "rel_max": 0.655252309, + "scaled_max_abs": 0.655252309 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_189" + }, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9945.89532, + "index": 10, + "metrics": { + "corr": 0.769182976, + "finite": true, + "max_abs": 2.69310558, + "mean_abs": 0.216244081, + "psnr_db": 24.706301, + "ref_absmax": 2.7077558, + "rel_max": 0.994589532, + "scaled_max_abs": 0.994589532 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_215" + }, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7865.50311, + "index": 11, + "metrics": { + "corr": 0.782291136, + "finite": true, + "max_abs": 2.58410776, + "mean_abs": 0.267371593, + "psnr_db": 24.438426, + "ref_absmax": 3.28536868, + "rel_max": 0.786550311, + "scaled_max_abs": 0.786550311 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_241" + }, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9032.70449, + "index": 12, + "metrics": { + "corr": 0.801456514, + "finite": true, + "max_abs": 3.58561136, + "mean_abs": 0.301930235, + "psnr_db": 25.1908214, + "ref_absmax": 3.9695878, + "rel_max": 0.903270449, + "scaled_max_abs": 0.903270449 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_267" + }, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "uniform", + "index": 17 + } + }, + { + "band_ratio": 7446.0646, + "index": 13, + "metrics": { + "corr": 0.764425287, + "finite": true, + "max_abs": 6.89362511, + "mean_abs": 0.169467689, + "psnr_db": 29.4015, + "ref_absmax": 9.25807858, + "rel_max": 0.74460646, + "scaled_max_abs": 0.74460646 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_273" + }, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "uniform", + "index": 17 + } + }, + { + "band_ratio": 1470.68784, + "index": 14, + "metrics": { + "corr": 0.975191849, + "finite": true, + "max_abs": 0.763213992, + "mean_abs": 0.0517066072, + "psnr_db": 36.44535, + "ref_absmax": 5.18950367, + "rel_max": 0.147068784, + "scaled_max_abs": 0.147068784 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "natural", + "index": 2 + } + }, + { + "band_ratio": 1520.01599, + "index": 15, + "metrics": { + "corr": 0.973850743, + "finite": true, + "max_abs": 2.73985195, + "mean_abs": 0.433899731, + "psnr_db": 33.4352885, + "ref_absmax": 18.0251522, + "rel_max": 0.152001599, + "scaled_max_abs": 0.152001599 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "natural", + "index": 8 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp32", + "id": "mobilenet_v3_small__layout_swap__coreml_fp32", + "model": "mobilenet_v3_small", + "path": "coreml", + "variant": "layout_swap" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/mobilenet_v3_small__layout_swap__litert_fp16.json b/bench/verdicts_e2e_gated/mobilenet_v3_small__layout_swap__litert_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..b762e7e542b020be6c247759982e07dd042818dc --- /dev/null +++ b/bench/verdicts_e2e_gated/mobilenet_v3_small__layout_swap__litert_fp16.json @@ -0,0 +1,1147 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "reason": "first divergence at tap 8 is beyond the hypothesis taps (first 3) \u2014 interface faults surface earlier", + "status": "not_evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 0.000911087498, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000173091888, + "mean_abs": 7.93089959e-06, + "psnr_db": 124.261647, + "ref_absmax": 18.9983826, + "rel_max": 9.11087498e-06, + "scaled_max_abs": 9.11087498e-06 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 117, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 1, + "n_ops_total": 170, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_7/torch.nn.modules.container.Sequential_block/t", + "basis": "earliest tap over band with in-band predecessors", + "index": 8, + "neighbourhood": [ + { + "band_ratio": 0.292023152, + "index": 7, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/zoo.HWSwap_6/torchvision.models.mobilenetv3.InvertedResidual_inner;" + }, + "status": "pass", + "tap": "net.features.6" + }, + { + "band_ratio": 61.6323818, + "index": 8, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_7/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.7" + }, + { + "band_ratio": 65.4851692, + "index": 9, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_8;" + }, + "status": "fail", + "tap": "net.features.8" + } + ], + "shape": 224, + "tap": "net.features.7" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "6d24192206804b830c6ac3b3ace08fd3001ce6e83bf79d254f7116fde24f965e", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "8cb7f246b5e80296c972d0e5ae61411c6510ba8367f400252cfcd0e072d3fda5", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D2", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.34375, + "band_ratio": 16.2677717, + "metrics": { + "corr": 0.964457426, + "finite": true, + "max_abs": 3.96684837, + "mean_abs": 0.533774297, + "psnr_db": 33.5569774, + "ref_absmax": 24.3847065, + "rel_max": 0.162677717, + "scaled_max_abs": 0.162677717 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 8, + "n_judged": 16, + "n_taps": 16, + "taps": [ + { + "band_ratio": 8.27203959e-06, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.26638033e-08, + "psnr_db": 163.904618, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0915032087, + "index": 1, + "metrics": { + "corr": 0.999999786, + "finite": true, + "max_abs": 0.173885822, + "mean_abs": 0.000502268084, + "psnr_db": 96.9119524, + "ref_absmax": 190.032486, + "rel_max": 0.000915032087, + "scaled_max_abs": 0.000915032087 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_0/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_ratio": 0.0727773511, + "index": 2, + "metrics": { + "corr": 0.999999501, + "finite": true, + "max_abs": 0.03307724, + "mean_abs": 0.00172972956, + "psnr_db": 89.9446481, + "ref_absmax": 45.4499092, + "rel_max": 0.000727773511, + "scaled_max_abs": 0.000727773511 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_1/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.1" + }, + { + "band_ratio": 0.15302635, + "index": 3, + "metrics": { + "corr": 0.99999802, + "finite": true, + "max_abs": 0.0396288037, + "mean_abs": 0.00251701601, + "psnr_db": 80.5863503, + "ref_absmax": 25.896719, + "rel_max": 0.0015302635, + "scaled_max_abs": 0.0015302635 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_2/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.2" + }, + { + "band_ratio": 0.244577705, + "index": 4, + "metrics": { + "corr": 0.999994624, + "finite": true, + "max_abs": 0.0628845692, + "mean_abs": 0.00432135067, + "psnr_db": 76.8433382, + "ref_absmax": 25.7114887, + "rel_max": 0.00244577705, + "scaled_max_abs": 0.00244577705 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_3;" + }, + "status": "pass", + "tap": "net.features.3" + }, + { + "band_ratio": 0.273230174, + "index": 5, + "metrics": { + "corr": 0.999981879, + "finite": true, + "max_abs": 0.0467441082, + "mean_abs": 0.0038035588, + "psnr_db": 72.274713, + "ref_absmax": 17.1079597, + "rel_max": 0.00273230174, + "scaled_max_abs": 0.00273230174 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_4/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.4" + }, + { + "band_ratio": 0.403152459, + "index": 6, + "metrics": { + "corr": 0.999956004, + "finite": true, + "max_abs": 0.0899780989, + "mean_abs": 0.00600733947, + "psnr_db": 69.8085829, + "ref_absmax": 22.3186283, + "rel_max": 0.00403152459, + "scaled_max_abs": 0.00403152459 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_5;" + }, + "status": "pass", + "tap": "net.features.5" + }, + { + "band_ratio": 0.394882259, + "index": 7, + "metrics": { + "corr": 0.999974444, + "finite": true, + "max_abs": 0.247867882, + "mean_abs": 0.0121702154, + "psnr_db": 73.0406073, + "ref_absmax": 62.7700729, + "rel_max": 0.00394882259, + "scaled_max_abs": 0.00394882259 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/zoo.HWSwap_6/torchvision.models.mobilenetv3.InvertedResidual_inner;" + }, + "status": "pass", + "tap": "net.features.6" + }, + { + "band_ratio": 64.2407749, + "index": 8, + "metrics": { + "corr": 0.680538763, + "finite": true, + "max_abs": 13.2877641, + "mean_abs": 0.618094969, + "psnr_db": 32.0398385, + "ref_absmax": 20.6843147, + "rel_max": 0.642407749, + "scaled_max_abs": 0.642407749 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_7/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 73.4365808, + "index": 9, + "metrics": { + "corr": 0.610860656, + "finite": true, + "max_abs": 14.286329, + "mean_abs": 0.772608053, + "psnr_db": 30.1896007, + "ref_absmax": 19.453968, + "rel_max": 0.734365808, + "scaled_max_abs": 0.734365808 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_8;" + }, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 66.1017835, + "index": 10, + "metrics": { + "corr": 0.771180541, + "finite": true, + "max_abs": 2.31004339, + "mean_abs": 0.220800071, + "psnr_db": 26.6452742, + "ref_absmax": 3.49467635, + "rel_max": 0.661017835, + "scaled_max_abs": 0.661017835 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_9/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 74.9570614, + "index": 11, + "metrics": { + "corr": 0.785519837, + "finite": true, + "max_abs": 2.80301863, + "mean_abs": 0.266153851, + "psnr_db": 25.9913879, + "ref_absmax": 3.73949909, + "rel_max": 0.749570614, + "scaled_max_abs": 0.749570614 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_10;" + }, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 75.2193299, + "index": 12, + "metrics": { + "corr": 0.797907187, + "finite": true, + "max_abs": 3.41106486, + "mean_abs": 0.307795362, + "psnr_db": 26.6452156, + "ref_absmax": 4.53482485, + "rel_max": 0.752193299, + "scaled_max_abs": 0.752193299 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_11;" + }, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 87.4639071, + "index": 13, + "metrics": { + "corr": 0.762391819, + "finite": true, + "max_abs": 8.83364642, + "mean_abs": 0.179010941, + "psnr_db": 29.6513694, + "ref_absmax": 10.099762, + "rel_max": 0.874639071, + "scaled_max_abs": 0.874639071 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_12/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_ratio": 23.541196, + "index": 14, + "metrics": { + "corr": 0.966690057, + "finite": true, + "max_abs": 1.23494977, + "mean_abs": 0.0605709507, + "psnr_db": 34.9696828, + "ref_absmax": 5.24590921, + "rel_max": 0.23541196, + "scaled_max_abs": 0.23541196 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;;zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Seque" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "natural", + "index": 3 + } + }, + { + "band_ratio": 16.2677717, + "index": 15, + "metrics": { + "corr": 0.964457426, + "finite": true, + "max_abs": 3.96684837, + "mean_abs": 0.533774297, + "psnr_db": 33.5569774, + "ref_absmax": 24.3847065, + "rel_max": 0.162677717, + "scaled_max_abs": 0.162677717 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.625, + "band_ratio": 15.2151553, + "metrics": { + "corr": 0.973580909, + "finite": true, + "max_abs": 2.7425549, + "mean_abs": 0.437478455, + "psnr_db": 33.3833201, + "ref_absmax": 18.0251522, + "rel_max": 0.152151553, + "scaled_max_abs": 0.152151553 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 8 + } + }, + "first_fail_index": 8, + "n_judged": 16, + "n_taps": 16, + "taps": [ + { + "band_ratio": 8.27203959e-06, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.2793459e-08, + "psnr_db": 164.013874, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0868202319, + "index": 1, + "metrics": { + "corr": 0.999999767, + "finite": true, + "max_abs": 0.146759748, + "mean_abs": 0.000503267604, + "psnr_db": 96.0452891, + "ref_absmax": 169.038651, + "rel_max": 0.000868202319, + "scaled_max_abs": 0.000868202319 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_0/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_ratio": 0.0755872648, + "index": 2, + "metrics": { + "corr": 0.999999435, + "finite": true, + "max_abs": 0.0337452888, + "mean_abs": 0.00172548561, + "psnr_db": 89.4320948, + "ref_absmax": 44.644146, + "rel_max": 0.000755872648, + "scaled_max_abs": 0.000755872648 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_1/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.1" + }, + { + "band_ratio": 0.127885996, + "index": 3, + "metrics": { + "corr": 0.999997629, + "finite": true, + "max_abs": 0.039151907, + "mean_abs": 0.00258047824, + "psnr_db": 81.5125813, + "ref_absmax": 30.6146946, + "rel_max": 0.00127885996, + "scaled_max_abs": 0.00127885996 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_2/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.2" + }, + { + "band_ratio": 0.279809812, + "index": 4, + "metrics": { + "corr": 0.999994277, + "finite": true, + "max_abs": 0.0732169151, + "mean_abs": 0.00442955329, + "psnr_db": 76.6613702, + "ref_absmax": 26.1666718, + "rel_max": 0.00279809812, + "scaled_max_abs": 0.00279809812 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_3;" + }, + "status": "pass", + "tap": "net.features.3" + }, + { + "band_ratio": 0.289036457, + "index": 5, + "metrics": { + "corr": 0.999980992, + "finite": true, + "max_abs": 0.0563652515, + "mean_abs": 0.00400878569, + "psnr_db": 72.9879694, + "ref_absmax": 19.5010872, + "rel_max": 0.00289036457, + "scaled_max_abs": 0.00289036457 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_4/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.4" + }, + { + "band_ratio": 0.310832262, + "index": 6, + "metrics": { + "corr": 0.999956355, + "finite": true, + "max_abs": 0.0933929682, + "mean_abs": 0.00625826495, + "psnr_db": 71.6653247, + "ref_absmax": 30.0460987, + "rel_max": 0.00310832262, + "scaled_max_abs": 0.00310832262 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_5;" + }, + "status": "pass", + "tap": "net.features.5" + }, + { + "band_ratio": 0.292023152, + "index": 7, + "metrics": { + "corr": 0.999987205, + "finite": true, + "max_abs": 0.19764185, + "mean_abs": 0.00882840116, + "psnr_db": 77.7884462, + "ref_absmax": 67.6801987, + "rel_max": 0.00292023152, + "scaled_max_abs": 0.00292023152 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/zoo.HWSwap_6/torchvision.models.mobilenetv3.InvertedResidual_inner;" + }, + "status": "pass", + "tap": "net.features.6" + }, + { + "band_ratio": 61.6323818, + "index": 8, + "metrics": { + "corr": 0.643084313, + "finite": true, + "max_abs": 10.6532406, + "mean_abs": 0.610727632, + "psnr_db": 31.0113026, + "ref_absmax": 17.2851353, + "rel_max": 0.616323818, + "scaled_max_abs": 0.616323818 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_7/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 65.4851692, + "index": 9, + "metrics": { + "corr": 0.576588924, + "finite": true, + "max_abs": 10.9509797, + "mean_abs": 0.756522413, + "psnr_db": 29.3157056, + "ref_absmax": 16.7228394, + "rel_max": 0.654851692, + "scaled_max_abs": 0.654851692 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_8;" + }, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 100.450181, + "index": 10, + "metrics": { + "corr": 0.769068354, + "finite": true, + "max_abs": 2.71994561, + "mean_abs": 0.216404919, + "psnr_db": 24.70265, + "ref_absmax": 2.7077558, + "rel_max": 1.00450181, + "scaled_max_abs": 1.00450181 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_9/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 78.8900629, + "index": 11, + "metrics": { + "corr": 0.781531927, + "finite": true, + "max_abs": 2.59182942, + "mean_abs": 0.267854646, + "psnr_db": 24.4251178, + "ref_absmax": 3.28536868, + "rel_max": 0.788900629, + "scaled_max_abs": 0.788900629 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_10;" + }, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 90.1437379, + "index": 12, + "metrics": { + "corr": 0.800788093, + "finite": true, + "max_abs": 3.57833482, + "mean_abs": 0.302640747, + "psnr_db": 25.173937, + "ref_absmax": 3.9695878, + "rel_max": 0.901437379, + "scaled_max_abs": 0.901437379 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_11;" + }, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "uniform", + "index": 17 + } + }, + { + "band_ratio": 74.4918734, + "index": 13, + "metrics": { + "corr": 0.763877768, + "finite": true, + "max_abs": 6.89651617, + "mean_abs": 0.169883306, + "psnr_db": 29.3853114, + "ref_absmax": 9.25807858, + "rel_max": 0.744918734, + "scaled_max_abs": 0.744918734 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_12/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "uniform", + "index": 17 + } + }, + { + "band_ratio": 14.620363, + "index": 14, + "metrics": { + "corr": 0.974805249, + "finite": true, + "max_abs": 0.758724272, + "mean_abs": 0.052067962, + "psnr_db": 36.3691868, + "ref_absmax": 5.18950367, + "rel_max": 0.14620363, + "scaled_max_abs": 0.14620363 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;;zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Seque" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "natural", + "index": 2 + } + }, + { + "band_ratio": 15.2151553, + "index": 15, + "metrics": { + "corr": 0.973580909, + "finite": true, + "max_abs": 2.7425549, + "mean_abs": 0.437478455, + "psnr_db": 33.3833201, + "ref_absmax": 18.0251522, + "rel_max": 0.152151553, + "scaled_max_abs": 0.152151553 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "natural", + "index": 8 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp16", + "id": "mobilenet_v3_small__layout_swap__litert_fp16", + "model": "mobilenet_v3_small", + "path": "litert", + "variant": "layout_swap" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/mobilenet_v3_small__layout_swap__litert_fp32.json b/bench/verdicts_e2e_gated/mobilenet_v3_small__layout_swap__litert_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..b98fd05a7165b73931728f6769be1c38a0acf4d4 --- /dev/null +++ b/bench/verdicts_e2e_gated/mobilenet_v3_small__layout_swap__litert_fp32.json @@ -0,0 +1,1147 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "reason": "first divergence at tap 8 is beyond the hypothesis taps (first 3) \u2014 interface faults surface earlier", + "status": "not_evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 0.0547518365, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0001039505, + "mean_abs": 5.58531939e-06, + "psnr_db": 129.217231, + "ref_absmax": 18.9857559, + "rel_max": 5.47518365e-06, + "scaled_max_abs": 5.47518365e-06 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 117, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 1, + "n_ops_total": 116, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_7/torch.nn.modules.container.Sequential_block/t", + "basis": "earliest tap over band with in-band predecessors", + "index": 8, + "neighbourhood": [ + { + "band_ratio": 0.0154295259, + "index": 7, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/zoo.HWSwap_6/torchvision.models.mobilenetv3.InvertedResidual_inner;" + }, + "status": "pass", + "tap": "net.features.6" + }, + { + "band_ratio": 6166.24159, + "index": 8, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_7/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.7" + }, + { + "band_ratio": 6552.51795, + "index": 9, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_8;" + }, + "status": "fail", + "tap": "net.features.8" + } + ], + "shape": 224, + "tap": "net.features.7" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "c13f8a5796b6667b528c1a82cbb22bc58f4a35b40ef1970022c02fe4b2ed4d61", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "6a328f36a304e374e80b64e51f4bef2e3b3720a1b6479502e7647343aa40b742", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D2", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.34375, + "band_ratio": 1627.42091, + "metrics": { + "corr": 0.964539966, + "finite": true, + "max_abs": 3.96841812, + "mean_abs": 0.530407957, + "psnr_db": 33.5907431, + "ref_absmax": 24.3847065, + "rel_max": 0.162742091, + "scaled_max_abs": 0.162742091 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 8, + "n_judged": 16, + "n_taps": 16, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.26638033e-08, + "psnr_db": 163.904618, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.00421552358, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.01086426e-05, + "mean_abs": 2.27467979e-07, + "psnr_db": 166.067675, + "ref_absmax": 190.032486, + "rel_max": 4.21552358e-07, + "scaled_max_abs": 4.21552358e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_0/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_ratio": 0.00902267932, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.10079956e-05, + "mean_abs": 1.0080085e-06, + "psnr_db": 152.997611, + "ref_absmax": 45.4499092, + "rel_max": 9.02267932e-07, + "scaled_max_abs": 9.02267932e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_1/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.1" + }, + { + "band_ratio": 0.0102192337, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.64644623e-05, + "mean_abs": 1.53339525e-06, + "psnr_db": 145.715772, + "ref_absmax": 25.896719, + "rel_max": 1.02192337e-06, + "scaled_max_abs": 1.02192337e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_2/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.2" + }, + { + "band_ratio": 0.0320840342, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.24928284e-05, + "mean_abs": 3.09957574e-06, + "psnr_db": 139.892867, + "ref_absmax": 25.7114887, + "rel_max": 3.20840342e-06, + "scaled_max_abs": 3.20840342e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_3;" + }, + "status": "pass", + "tap": "net.features.3" + }, + { + "band_ratio": 0.0234126815, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.00543213e-05, + "mean_abs": 2.00923851e-06, + "psnr_db": 138.932066, + "ref_absmax": 17.1079597, + "rel_max": 2.34126815e-06, + "scaled_max_abs": 2.34126815e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_4/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.4" + }, + { + "band_ratio": 0.0254243321, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.67436218e-05, + "mean_abs": 2.97928019e-06, + "psnr_db": 137.091891, + "ref_absmax": 22.3186283, + "rel_max": 2.54243321e-06, + "scaled_max_abs": 2.54243321e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_5;" + }, + "status": "pass", + "tap": "net.features.5" + }, + { + "band_ratio": 0.0144334801, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.05990601e-05, + "mean_abs": 5.44640999e-06, + "psnr_db": 141.651884, + "ref_absmax": 62.7700729, + "rel_max": 1.44334801e-06, + "scaled_max_abs": 1.44334801e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/zoo.HWSwap_6/torchvision.models.mobilenetv3.InvertedResidual_inner;" + }, + "status": "pass", + "tap": "net.features.6" + }, + { + "band_ratio": 6447.83969, + "index": 8, + "metrics": { + "corr": 0.680861759, + "finite": true, + "max_abs": 13.3369145, + "mean_abs": 0.617803146, + "psnr_db": 32.0381713, + "ref_absmax": 20.6843147, + "rel_max": 0.644783969, + "scaled_max_abs": 0.644783969 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_7/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7362.28501, + "index": 9, + "metrics": { + "corr": 0.610954569, + "finite": true, + "max_abs": 14.3225657, + "mean_abs": 0.772192836, + "psnr_db": 30.1892034, + "ref_absmax": 19.453968, + "rel_max": 0.736228501, + "scaled_max_abs": 0.736228501 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_8;" + }, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6631.1902, + "index": 10, + "metrics": { + "corr": 0.770989038, + "finite": true, + "max_abs": 2.31738636, + "mean_abs": 0.220651588, + "psnr_db": 26.6466624, + "ref_absmax": 3.49467635, + "rel_max": 0.66311902, + "scaled_max_abs": 0.66311902 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_9/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7513.62611, + "index": 11, + "metrics": { + "corr": 0.785683742, + "finite": true, + "max_abs": 2.8097198, + "mean_abs": 0.265896188, + "psnr_db": 25.9953901, + "ref_absmax": 3.73949909, + "rel_max": 0.751362611, + "scaled_max_abs": 0.751362611 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_10;" + }, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7555.36283, + "index": 12, + "metrics": { + "corr": 0.798114535, + "finite": true, + "max_abs": 3.42622471, + "mean_abs": 0.307456968, + "psnr_db": 26.6512382, + "ref_absmax": 4.53482485, + "rel_max": 0.755536283, + "scaled_max_abs": 0.755536283 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_11;" + }, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 8713.09913, + "index": 13, + "metrics": { + "corr": 0.762457947, + "finite": true, + "max_abs": 8.80002272, + "mean_abs": 0.178934738, + "psnr_db": 29.6498416, + "ref_absmax": 10.099762, + "rel_max": 0.871309913, + "scaled_max_abs": 0.871309913 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_12/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_ratio": 2341.73579, + "index": 14, + "metrics": { + "corr": 0.966796995, + "finite": true, + "max_abs": 1.22845334, + "mean_abs": 0.0604078064, + "psnr_db": 34.9826857, + "ref_absmax": 5.24590921, + "rel_max": 0.234173579, + "scaled_max_abs": 0.234173579 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;;zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Seque" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "natural", + "index": 3 + } + }, + { + "band_ratio": 1627.42091, + "index": 15, + "metrics": { + "corr": 0.964539966, + "finite": true, + "max_abs": 3.96841812, + "mean_abs": 0.530407957, + "psnr_db": 33.5907431, + "ref_absmax": 24.3847065, + "rel_max": 0.162742091, + "scaled_max_abs": 0.162742091 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.625, + "band_ratio": 1520.0062, + "metrics": { + "corr": 0.973850754, + "finite": true, + "max_abs": 2.73983431, + "mean_abs": 0.433899568, + "psnr_db": 33.4352953, + "ref_absmax": 18.0251522, + "rel_max": 0.15200062, + "scaled_max_abs": 0.15200062 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 8 + } + }, + "first_fail_index": 8, + "n_judged": 16, + "n_taps": 16, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.2793459e-08, + "psnr_db": 164.013874, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.00530324784, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.96453857e-05, + "mean_abs": 2.25372134e-07, + "psnr_db": 165.388517, + "ref_absmax": 169.038651, + "rel_max": 5.30324784e-07, + "scaled_max_abs": 5.30324784e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_0/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_ratio": 0.00747659079, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.33786011e-05, + "mean_abs": 1.00480479e-06, + "psnr_db": 152.460917, + "ref_absmax": 44.644146, + "rel_max": 7.47659079e-07, + "scaled_max_abs": 7.47659079e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_1/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.1" + }, + { + "band_ratio": 0.0121488386, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.71932983e-05, + "mean_abs": 1.59080642e-06, + "psnr_db": 146.525466, + "ref_absmax": 30.6146946, + "rel_max": 1.21488386e-06, + "scaled_max_abs": 1.21488386e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_2/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.2" + }, + { + "band_ratio": 0.0325737422, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.5234642e-05, + "mean_abs": 3.21546023e-06, + "psnr_db": 139.580403, + "ref_absmax": 26.1666718, + "rel_max": 3.25737422e-06, + "scaled_max_abs": 3.25737422e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_3;" + }, + "status": "pass", + "tap": "net.features.3" + }, + { + "band_ratio": 0.0219455123, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.27961349e-05, + "mean_abs": 2.13495104e-06, + "psnr_db": 139.420031, + "ref_absmax": 19.5010872, + "rel_max": 2.19455123e-06, + "scaled_max_abs": 2.19455123e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_4/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.4" + }, + { + "band_ratio": 0.0270586662, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.13007355e-05, + "mean_abs": 3.28263783e-06, + "psnr_db": 138.252109, + "ref_absmax": 30.0460987, + "rel_max": 2.70586662e-06, + "scaled_max_abs": 2.70586662e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_5;" + }, + "status": "pass", + "tap": "net.features.5" + }, + { + "band_ratio": 0.0154295259, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000104427338, + "mean_abs": 4.80388392e-06, + "psnr_db": 144.501741, + "ref_absmax": 67.6801987, + "rel_max": 1.54295259e-06, + "scaled_max_abs": 1.54295259e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/zoo.HWSwap_6/torchvision.models.mobilenetv3.InvertedResidual_inner;" + }, + "status": "pass", + "tap": "net.features.6" + }, + { + "band_ratio": 6166.24159, + "index": 8, + "metrics": { + "corr": 0.643770552, + "finite": true, + "max_abs": 10.658432, + "mean_abs": 0.610271318, + "psnr_db": 31.0140839, + "ref_absmax": 17.2851353, + "rel_max": 0.616624159, + "scaled_max_abs": 0.616624159 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_7/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6552.51795, + "index": 9, + "metrics": { + "corr": 0.5771022, + "finite": true, + "max_abs": 10.9576705, + "mean_abs": 0.75594006, + "psnr_db": 29.3187977, + "ref_absmax": 16.7228394, + "rel_max": 0.655251795, + "scaled_max_abs": 0.655251795 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_8;" + }, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9945.87023, + "index": 10, + "metrics": { + "corr": 0.769182981, + "finite": true, + "max_abs": 2.69309878, + "mean_abs": 0.216244093, + "psnr_db": 24.7063007, + "ref_absmax": 2.7077558, + "rel_max": 0.994587023, + "scaled_max_abs": 0.994587023 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_9/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7865.50274, + "index": 11, + "metrics": { + "corr": 0.782291166, + "finite": true, + "max_abs": 2.58410764, + "mean_abs": 0.267371548, + "psnr_db": 24.4384278, + "ref_absmax": 3.28536868, + "rel_max": 0.786550274, + "scaled_max_abs": 0.786550274 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_10;" + }, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9032.70269, + "index": 12, + "metrics": { + "corr": 0.801456575, + "finite": true, + "max_abs": 3.58561064, + "mean_abs": 0.301930199, + "psnr_db": 25.1908236, + "ref_absmax": 3.9695878, + "rel_max": 0.903270269, + "scaled_max_abs": 0.903270269 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_11;" + }, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "uniform", + "index": 17 + } + }, + { + "band_ratio": 7446.05842, + "index": 13, + "metrics": { + "corr": 0.764425334, + "finite": true, + "max_abs": 6.89361939, + "mean_abs": 0.169467662, + "psnr_db": 29.4015013, + "ref_absmax": 9.25807858, + "rel_max": 0.744605842, + "scaled_max_abs": 0.744605842 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_12/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "uniform", + "index": 17 + } + }, + { + "band_ratio": 1470.68473, + "index": 14, + "metrics": { + "corr": 0.9751919, + "finite": true, + "max_abs": 0.763212383, + "mean_abs": 0.0517065869, + "psnr_db": 36.4453592, + "ref_absmax": 5.18950367, + "rel_max": 0.147068473, + "scaled_max_abs": 0.147068473 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;;zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Seque" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "natural", + "index": 2 + } + }, + { + "band_ratio": 1520.0062, + "index": 15, + "metrics": { + "corr": 0.973850754, + "finite": true, + "max_abs": 2.73983431, + "mean_abs": 0.433899568, + "psnr_db": 33.4352953, + "ref_absmax": 18.0251522, + "rel_max": 0.15200062, + "scaled_max_abs": 0.15200062 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "natural", + "index": 8 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp32", + "id": "mobilenet_v3_small__layout_swap__litert_fp32", + "model": "mobilenet_v3_small", + "path": "litert", + "variant": "layout_swap" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/mobilenet_v3_small__layout_swap__onnx_fp16.json b/bench/verdicts_e2e_gated/mobilenet_v3_small__layout_swap__onnx_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..6760afa27b9064de1782ff211a3ce9bb17e0600f --- /dev/null +++ b/bench/verdicts_e2e_gated/mobilenet_v3_small__layout_swap__onnx_fp16.json @@ -0,0 +1,981 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "reason": "first divergence at tap 7 is beyond the hypothesis taps (first 3) \u2014 interface faults surface earlier", + "status": "not_evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "/net/features/features.6/Transpose_output_0", + "basis": "earliest tap over band with in-band predecessors", + "index": 7, + "neighbourhood": [ + { + "band_ratio": 0.371252835, + "index": 6, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.5/Add_output_0" + }, + "status": "pass", + "tap": "net.features.5" + }, + { + "band_ratio": 82.5346447, + "index": 7, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.6/Transpose_output_0" + }, + "status": "fail", + "tap": "net.features.6" + }, + { + "band_ratio": 61.6011793, + "index": 8, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.7/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.7" + } + ], + "shape": 224, + "tap": "net.features.6" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "68dfd7d2abd6a0f8ebc7966f2746406a75c168d22e002c15dafd353c9467a52e", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "0e3e5641e838f835b1a192d7cb7b3872d0c01900222401dfefa17723ab100bff", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0116386414, + "224": 0.00447177887 + }, + "primary_class": "D2", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.34375, + "band_ratio": 16.2936974, + "metrics": { + "corr": 0.964895574, + "finite": true, + "max_abs": 3.97317028, + "mean_abs": 0.531149492, + "psnr_db": 33.6099927, + "ref_absmax": 24.3847065, + "rel_max": 0.162936974, + "scaled_max_abs": 0.162936974 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 7, + "n_judged": 16, + "n_taps": 16, + "taps": [ + { + "band_ratio": 0.0441313312, + "index": 0, + "metrics": { + "corr": 0.999999966, + "finite": true, + "max_abs": 0.00508785248, + "mean_abs": 0.000405953078, + "psnr_db": 88.0186903, + "ref_absmax": 11.5288897, + "rel_max": 0.000441313312, + "scaled_max_abs": 0.000441313312 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0908058909, + "index": 1, + "metrics": { + "corr": 0.999999747, + "finite": true, + "max_abs": 0.172560692, + "mean_abs": 0.000883766055, + "psnr_db": 96.2909345, + "ref_absmax": 190.032486, + "rel_max": 0.000908058909, + "scaled_max_abs": 0.000908058909 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.0/features.0.2/HardSwish_output_0" + }, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_ratio": 0.0726273228, + "index": 2, + "metrics": { + "corr": 0.99999925, + "finite": true, + "max_abs": 0.0330090523, + "mean_abs": 0.0021913404, + "psnr_db": 88.346094, + "ref_absmax": 45.4499092, + "rel_max": 0.000726273228, + "scaled_max_abs": 0.000726273228 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.1/block/block.2/block.2.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.1" + }, + { + "band_ratio": 0.192673754, + "index": 3, + "metrics": { + "corr": 0.99999661, + "finite": true, + "max_abs": 0.0498961806, + "mean_abs": 0.00335121535, + "psnr_db": 78.3312341, + "ref_absmax": 25.896719, + "rel_max": 0.00192673754, + "scaled_max_abs": 0.00192673754 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.2/block/block.2/block.2.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.2" + }, + { + "band_ratio": 0.281512363, + "index": 4, + "metrics": { + "corr": 0.999992632, + "finite": true, + "max_abs": 0.0723810196, + "mean_abs": 0.00526209009, + "psnr_db": 75.4762491, + "ref_absmax": 25.7114887, + "rel_max": 0.00281512363, + "scaled_max_abs": 0.00281512363 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.3/Add_output_0" + }, + "status": "pass", + "tap": "net.features.3" + }, + { + "band_ratio": 0.476705887, + "index": 5, + "metrics": { + "corr": 0.999968504, + "finite": true, + "max_abs": 0.0815546513, + "mean_abs": 0.00506719657, + "psnr_db": 69.8638336, + "ref_absmax": 17.1079597, + "rel_max": 0.00476705887, + "scaled_max_abs": 0.00476705887 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.4/block/block.3/block.3.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.4" + }, + { + "band_ratio": 0.533482606, + "index": 6, + "metrics": { + "corr": 0.999933184, + "finite": true, + "max_abs": 0.119066, + "mean_abs": 0.00772219183, + "psnr_db": 67.9874935, + "ref_absmax": 22.3186283, + "rel_max": 0.00533482606, + "scaled_max_abs": 0.00533482606 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.5/Add_output_0" + }, + "status": "pass", + "tap": "net.features.5" + }, + { + "band_ratio": 72.7625158, + "index": 7, + "metrics": { + "corr": 0.839883759, + "finite": true, + "max_abs": 45.6730843, + "mean_abs": 1.13135886, + "psnr_db": 35.1127899, + "ref_absmax": 62.7700729, + "rel_max": 0.727625158, + "scaled_max_abs": 0.727625158 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.6/Transpose_output_0" + }, + "status": "fail", + "tap": "net.features.6", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 64.2970198, + "index": 8, + "metrics": { + "corr": 0.680532538, + "finite": true, + "max_abs": 13.2993979, + "mean_abs": 0.618189902, + "psnr_db": 32.0386556, + "ref_absmax": 20.6843147, + "rel_max": 0.642970198, + "scaled_max_abs": 0.642970198 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.7/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 73.4972016, + "index": 9, + "metrics": { + "corr": 0.610858379, + "finite": true, + "max_abs": 14.2981221, + "mean_abs": 0.772957618, + "psnr_db": 30.1867163, + "ref_absmax": 19.453968, + "rel_max": 0.734972016, + "scaled_max_abs": 0.734972016 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.8/Add_output_0" + }, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 66.1120835, + "index": 10, + "metrics": { + "corr": 0.771244571, + "finite": true, + "max_abs": 2.31040335, + "mean_abs": 0.220876285, + "psnr_db": 26.6455367, + "ref_absmax": 3.49467635, + "rel_max": 0.661120835, + "scaled_max_abs": 0.661120835 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.9/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 74.9909402, + "index": 11, + "metrics": { + "corr": 0.78542802, + "finite": true, + "max_abs": 2.80428553, + "mean_abs": 0.266223607, + "psnr_db": 25.9914938, + "ref_absmax": 3.73949909, + "rel_max": 0.749909402, + "scaled_max_abs": 0.749909402 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.10/Add_output_0" + }, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 75.2296504, + "index": 12, + "metrics": { + "corr": 0.797972634, + "finite": true, + "max_abs": 3.41153288, + "mean_abs": 0.30785826, + "psnr_db": 26.6453014, + "ref_absmax": 4.53482485, + "rel_max": 0.752296504, + "scaled_max_abs": 0.752296504 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.11/Add_output_0" + }, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 87.6228628, + "index": 13, + "metrics": { + "corr": 0.762514907, + "finite": true, + "max_abs": 8.84970057, + "mean_abs": 0.178993514, + "psnr_db": 29.6525846, + "ref_absmax": 10.099762, + "rel_max": 0.876228628, + "scaled_max_abs": 0.876228628 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.12/features.12.2/HardSwish_output_0" + }, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_ratio": 23.3210254, + "index": 14, + "metrics": { + "corr": 0.966937773, + "finite": true, + "max_abs": 1.22339982, + "mean_abs": 0.0605297611, + "psnr_db": 34.9999773, + "ref_absmax": 5.24590921, + "rel_max": 0.233210254, + "scaled_max_abs": 0.233210254 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "natural", + "index": 3 + } + }, + { + "band_ratio": 16.2939555, + "index": 15, + "metrics": { + "corr": 0.964901335, + "finite": true, + "max_abs": 3.97323322, + "mean_abs": 0.53116459, + "psnr_db": 33.6101416, + "ref_absmax": 24.3847065, + "rel_max": 0.162939555, + "scaled_max_abs": 0.162939555 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.65625, + "band_ratio": 15.122729, + "metrics": { + "corr": 0.974062315, + "finite": true, + "max_abs": 2.72589493, + "mean_abs": 0.433542801, + "psnr_db": 33.4798078, + "ref_absmax": 18.0251522, + "rel_max": 0.15122729, + "scaled_max_abs": 0.15122729 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 8 + } + }, + "first_fail_index": 7, + "n_judged": 16, + "n_taps": 16, + "taps": [ + { + "band_ratio": 0.0439328023, + "index": 0, + "metrics": { + "corr": 0.999999965, + "finite": true, + "max_abs": 0.00506496429, + "mean_abs": 0.000406712054, + "psnr_db": 88.0749992, + "ref_absmax": 11.5288897, + "rel_max": 0.000439328023, + "scaled_max_abs": 0.000439328023 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0867140259, + "index": 1, + "metrics": { + "corr": 0.999999726, + "finite": true, + "max_abs": 0.146580219, + "mean_abs": 0.000882941117, + "psnr_db": 95.4408227, + "ref_absmax": 169.038651, + "rel_max": 0.000867140259, + "scaled_max_abs": 0.000867140259 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.0/features.0.2/HardSwish_output_0" + }, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_ratio": 0.0745469506, + "index": 2, + "metrics": { + "corr": 0.999999152, + "finite": true, + "max_abs": 0.0332808495, + "mean_abs": 0.00218689379, + "psnr_db": 87.8352672, + "ref_absmax": 44.644146, + "rel_max": 0.000745469506, + "scaled_max_abs": 0.000745469506 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.1/block/block.2/block.2.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.1" + }, + { + "band_ratio": 0.155432319, + "index": 3, + "metrics": { + "corr": 0.999995967, + "finite": true, + "max_abs": 0.0475851297, + "mean_abs": 0.00342715191, + "psnr_db": 79.2772077, + "ref_absmax": 30.6146946, + "rel_max": 0.00155432319, + "scaled_max_abs": 0.00155432319 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.2/block/block.2/block.2.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.2" + }, + { + "band_ratio": 0.290781924, + "index": 4, + "metrics": { + "corr": 0.999991914, + "finite": true, + "max_abs": 0.0760879517, + "mean_abs": 0.00542803163, + "psnr_db": 75.1554022, + "ref_absmax": 26.1666718, + "rel_max": 0.00290781924, + "scaled_max_abs": 0.00290781924 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.3/Add_output_0" + }, + "status": "pass", + "tap": "net.features.3" + }, + { + "band_ratio": 0.4599975, + "index": 5, + "metrics": { + "corr": 0.99996609, + "finite": true, + "max_abs": 0.0897045135, + "mean_abs": 0.00541450367, + "psnr_db": 70.4385356, + "ref_absmax": 19.5010872, + "rel_max": 0.004599975, + "scaled_max_abs": 0.004599975 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.4/block/block.3/block.3.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.4" + }, + { + "band_ratio": 0.371252835, + "index": 6, + "metrics": { + "corr": 0.999930178, + "finite": true, + "max_abs": 0.111546993, + "mean_abs": 0.00825263387, + "psnr_db": 69.5801725, + "ref_absmax": 30.0460987, + "rel_max": 0.00371252835, + "scaled_max_abs": 0.00371252835 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.5/Add_output_0" + }, + "status": "pass", + "tap": "net.features.5" + }, + { + "band_ratio": 82.5346447, + "index": 7, + "metrics": { + "corr": 0.831250494, + "finite": true, + "max_abs": 55.8596115, + "mean_abs": 1.09800683, + "psnr_db": 36.6068854, + "ref_absmax": 67.6801987, + "rel_max": 0.825346447, + "scaled_max_abs": 0.825346447 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.6/Transpose_output_0" + }, + "status": "fail", + "tap": "net.features.6", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 61.6011793, + "index": 8, + "metrics": { + "corr": 0.643234938, + "finite": true, + "max_abs": 10.6478472, + "mean_abs": 0.610820228, + "psnr_db": 31.0108111, + "ref_absmax": 17.2851353, + "rel_max": 0.616011793, + "scaled_max_abs": 0.616011793 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.7/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 65.4507673, + "index": 9, + "metrics": { + "corr": 0.576673332, + "finite": true, + "max_abs": 10.9452267, + "mean_abs": 0.756783409, + "psnr_db": 29.3141884, + "ref_absmax": 16.7228394, + "rel_max": 0.654507673, + "scaled_max_abs": 0.654507673 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.8/Add_output_0" + }, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 100.239206, + "index": 10, + "metrics": { + "corr": 0.769213022, + "finite": true, + "max_abs": 2.71423292, + "mean_abs": 0.216383291, + "psnr_db": 24.7039864, + "ref_absmax": 2.7077558, + "rel_max": 1.00239206, + "scaled_max_abs": 1.00239206 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.9/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 78.8063645, + "index": 11, + "metrics": { + "corr": 0.781260361, + "finite": true, + "max_abs": 2.58907962, + "mean_abs": 0.267973345, + "psnr_db": 24.423364, + "ref_absmax": 3.28536868, + "rel_max": 0.788063645, + "scaled_max_abs": 0.788063645 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.10/Add_output_0" + }, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 90.2947079, + "index": 12, + "metrics": { + "corr": 0.800691529, + "finite": true, + "max_abs": 3.58432771, + "mean_abs": 0.302767422, + "psnr_db": 25.1726108, + "ref_absmax": 3.9695878, + "rel_max": 0.902947079, + "scaled_max_abs": 0.902947079 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.11/Add_output_0" + }, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "uniform", + "index": 17 + } + }, + { + "band_ratio": 74.7285234, + "index": 13, + "metrics": { + "corr": 0.764086404, + "finite": true, + "max_abs": 6.91842541, + "mean_abs": 0.169940392, + "psnr_db": 29.3887646, + "ref_absmax": 9.25807858, + "rel_max": 0.747285234, + "scaled_max_abs": 0.747285234 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.12/features.12.2/HardSwish_output_0" + }, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "uniform", + "index": 17 + } + }, + { + "band_ratio": 14.3818894, + "index": 14, + "metrics": { + "corr": 0.975121352, + "finite": true, + "max_abs": 0.746348679, + "mean_abs": 0.0518787585, + "psnr_db": 36.4223448, + "ref_absmax": 5.18950367, + "rel_max": 0.143818894, + "scaled_max_abs": 0.143818894 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "natural", + "index": 2 + } + }, + { + "band_ratio": 15.1223878, + "index": 15, + "metrics": { + "corr": 0.974064233, + "finite": true, + "max_abs": 2.72583342, + "mean_abs": 0.433563169, + "psnr_db": 33.4794238, + "ref_absmax": 18.0251522, + "rel_max": 0.151223878, + "scaled_max_abs": 0.151223878 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "natural", + "index": 8 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp16", + "id": "mobilenet_v3_small__layout_swap__onnx_fp16", + "model": "mobilenet_v3_small", + "path": "onnx", + "variant": "layout_swap" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/mobilenet_v3_small__layout_swap__onnx_fp32.json b/bench/verdicts_e2e_gated/mobilenet_v3_small__layout_swap__onnx_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..09e92ffc75fef008f2a3f049880f3f7caf576ff7 --- /dev/null +++ b/bench/verdicts_e2e_gated/mobilenet_v3_small__layout_swap__onnx_fp32.json @@ -0,0 +1,981 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "reason": "first divergence at tap 7 is beyond the hypothesis taps (first 3) \u2014 interface faults surface earlier", + "status": "not_evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "/net/features/features.6/Transpose_output_0", + "basis": "earliest tap over band with in-band predecessors", + "index": 7, + "neighbourhood": [ + { + "band_ratio": 0.0253129458, + "index": 6, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.5/Add_output_0" + }, + "status": "pass", + "tap": "net.features.5" + }, + { + "band_ratio": 8249.98022, + "index": 7, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.6/Transpose_output_0" + }, + "status": "fail", + "tap": "net.features.6" + }, + { + "band_ratio": 6166.24139, + "index": 8, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.7/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.7" + } + ], + "shape": 224, + "tap": "net.features.6" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "9fa2a4b2ace0e46205ff1a05180c760d67e984bf4e22c8081550d90f7382fd97", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "b7e5578f7277da36e0dd702a781772e0972c0cf8e74a5e2f7fd088240c61e09f", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D2", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.34375, + "band_ratio": 1627.39901, + "metrics": { + "corr": 0.964540073, + "finite": true, + "max_abs": 3.96836472, + "mean_abs": 0.530407211, + "psnr_db": 33.5907633, + "ref_absmax": 24.3847065, + "rel_max": 0.162739901, + "scaled_max_abs": 0.162739901 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 7, + "n_judged": 16, + "n_taps": 16, + "taps": [ + { + "band_ratio": 0.0, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 11.5288897, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.00321182749, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.10351562e-05, + "mean_abs": 1.92955669e-07, + "psnr_db": 167.753619, + "ref_absmax": 190.032486, + "rel_max": 3.21182749e-07, + "scaled_max_abs": 3.21182749e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.0/features.0.2/HardSwish_output_0" + }, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_ratio": 0.00797353056, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.6239624e-05, + "mean_abs": 1.02951828e-06, + "psnr_db": 152.906263, + "ref_absmax": 45.4499092, + "rel_max": 7.97353056e-07, + "scaled_max_abs": 7.97353056e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.1/block/block.2/block.2.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.1" + }, + { + "band_ratio": 0.0107255921, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.77757645e-05, + "mean_abs": 1.70024624e-06, + "psnr_db": 143.974771, + "ref_absmax": 25.896719, + "rel_max": 1.07255921e-06, + "scaled_max_abs": 1.07255921e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.2/block/block.2/block.2.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.2" + }, + { + "band_ratio": 0.0318522131, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.18967819e-05, + "mean_abs": 3.22833409e-06, + "psnr_db": 139.462863, + "ref_absmax": 25.7114887, + "rel_max": 3.18522131e-06, + "scaled_max_abs": 3.18522131e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.3/Add_output_0" + }, + "status": "pass", + "tap": "net.features.3" + }, + { + "band_ratio": 0.0199286515, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.40938568e-05, + "mean_abs": 2.22993283e-06, + "psnr_db": 137.575451, + "ref_absmax": 17.1079597, + "rel_max": 1.99286515e-06, + "scaled_max_abs": 1.99286515e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.4/block/block.3/block.3.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.4" + }, + { + "band_ratio": 0.0266528187, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.94854355e-05, + "mean_abs": 3.2667923e-06, + "psnr_db": 135.67943, + "ref_absmax": 22.3186283, + "rel_max": 2.66528187e-06, + "scaled_max_abs": 2.66528187e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.5/Add_output_0" + }, + "status": "pass", + "tap": "net.features.5" + }, + { + "band_ratio": 7272.90514, + "index": 7, + "metrics": { + "corr": 0.839957419, + "finite": true, + "max_abs": 45.6520786, + "mean_abs": 1.12782624, + "psnr_db": 35.1148773, + "ref_absmax": 62.7700729, + "rel_max": 0.727290514, + "scaled_max_abs": 0.727290514 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.6/Transpose_output_0" + }, + "status": "fail", + "tap": "net.features.6", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6447.84199, + "index": 8, + "metrics": { + "corr": 0.680861708, + "finite": true, + "max_abs": 13.3369193, + "mean_abs": 0.617803012, + "psnr_db": 32.0381724, + "ref_absmax": 20.6843147, + "rel_max": 0.644784199, + "scaled_max_abs": 0.644784199 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.7/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7362.28501, + "index": 9, + "metrics": { + "corr": 0.610954474, + "finite": true, + "max_abs": 14.3225657, + "mean_abs": 0.772192723, + "psnr_db": 30.1892042, + "ref_absmax": 19.453968, + "rel_max": 0.736228501, + "scaled_max_abs": 0.736228501 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.8/Add_output_0" + }, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6631.19916, + "index": 10, + "metrics": { + "corr": 0.770989041, + "finite": true, + "max_abs": 2.31738949, + "mean_abs": 0.220651509, + "psnr_db": 26.6466645, + "ref_absmax": 3.49467635, + "rel_max": 0.663119916, + "scaled_max_abs": 0.663119916 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.9/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7513.63312, + "index": 11, + "metrics": { + "corr": 0.785683755, + "finite": true, + "max_abs": 2.80972242, + "mean_abs": 0.265896118, + "psnr_db": 25.9953915, + "ref_absmax": 3.73949909, + "rel_max": 0.751363312, + "scaled_max_abs": 0.751363312 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.10/Add_output_0" + }, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7555.38465, + "index": 12, + "metrics": { + "corr": 0.798114624, + "finite": true, + "max_abs": 3.4262346, + "mean_abs": 0.307456851, + "psnr_db": 26.6512402, + "ref_absmax": 4.53482485, + "rel_max": 0.755538465, + "scaled_max_abs": 0.755538465 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.11/Add_output_0" + }, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 8713.09819, + "index": 13, + "metrics": { + "corr": 0.762458024, + "finite": true, + "max_abs": 8.80002177, + "mean_abs": 0.178934681, + "psnr_db": 29.6498426, + "ref_absmax": 10.099762, + "rel_max": 0.871309819, + "scaled_max_abs": 0.871309819 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.12/features.12.2/HardSwish_output_0" + }, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_ratio": 2341.74398, + "index": 14, + "metrics": { + "corr": 0.966797079, + "finite": true, + "max_abs": 1.22845763, + "mean_abs": 0.0604077955, + "psnr_db": 34.9826973, + "ref_absmax": 5.24590921, + "rel_max": 0.234174398, + "scaled_max_abs": 0.234174398 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "natural", + "index": 3 + } + }, + { + "band_ratio": 1627.39901, + "index": 15, + "metrics": { + "corr": 0.964540073, + "finite": true, + "max_abs": 3.96836472, + "mean_abs": 0.530407211, + "psnr_db": 33.5907633, + "ref_absmax": 24.3847065, + "rel_max": 0.162739901, + "scaled_max_abs": 0.162739901 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.625, + "band_ratio": 1520.01162, + "metrics": { + "corr": 0.973850743, + "finite": true, + "max_abs": 2.73984408, + "mean_abs": 0.433899629, + "psnr_db": 33.4352917, + "ref_absmax": 18.0251522, + "rel_max": 0.152001162, + "scaled_max_abs": 0.152001162 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 8 + } + }, + "first_fail_index": 7, + "n_judged": 16, + "n_taps": 16, + "taps": [ + { + "band_ratio": 0.0, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 11.5288897, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.00362482631, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.12735748e-05, + "mean_abs": 1.91186026e-07, + "psnr_db": 167.001893, + "ref_absmax": 169.038651, + "rel_max": 3.62482631e-07, + "scaled_max_abs": 3.62482631e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.0/features.0.2/HardSwish_output_0" + }, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_ratio": 0.00790382455, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.52859497e-05, + "mean_abs": 1.02470507e-06, + "psnr_db": 152.38333, + "ref_absmax": 44.644146, + "rel_max": 7.90382455e-07, + "scaled_max_abs": 7.90382455e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.1/block/block.2/block.2.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.1" + }, + { + "band_ratio": 0.00969570773, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.96831131e-05, + "mean_abs": 1.73306984e-06, + "psnr_db": 144.957341, + "ref_absmax": 30.6146946, + "rel_max": 9.69570773e-07, + "scaled_max_abs": 9.69570773e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.2/block/block.2/block.2.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.2" + }, + { + "band_ratio": 0.02888357, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.55786896e-05, + "mean_abs": 3.29638873e-06, + "psnr_db": 139.315817, + "ref_absmax": 26.1666718, + "rel_max": 2.888357e-06, + "scaled_max_abs": 2.888357e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.3/Add_output_0" + }, + "status": "pass", + "tap": "net.features.3" + }, + { + "band_ratio": 0.0177275726, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.4570694e-05, + "mean_abs": 2.3439867e-06, + "psnr_db": 138.263237, + "ref_absmax": 19.5010872, + "rel_max": 1.77275726e-06, + "scaled_max_abs": 1.77275726e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.4/block/block.3/block.3.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.4" + }, + { + "band_ratio": 0.0253129458, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.60555267e-05, + "mean_abs": 3.54574017e-06, + "psnr_db": 136.969347, + "ref_absmax": 30.0460987, + "rel_max": 2.53129458e-06, + "scaled_max_abs": 2.53129458e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.5/Add_output_0" + }, + "status": "pass", + "tap": "net.features.5" + }, + { + "band_ratio": 8249.98022, + "index": 7, + "metrics": { + "corr": 0.831254151, + "finite": true, + "max_abs": 55.83603, + "mean_abs": 1.09702284, + "psnr_db": 36.6050381, + "ref_absmax": 67.6801987, + "rel_max": 0.824998022, + "scaled_max_abs": 0.824998022 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.6/Transpose_output_0" + }, + "status": "fail", + "tap": "net.features.6", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6166.24139, + "index": 8, + "metrics": { + "corr": 0.643770523, + "finite": true, + "max_abs": 10.6584316, + "mean_abs": 0.610271268, + "psnr_db": 31.0140848, + "ref_absmax": 17.2851353, + "rel_max": 0.616624139, + "scaled_max_abs": 0.616624139 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.7/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6552.51758, + "index": 9, + "metrics": { + "corr": 0.577102191, + "finite": true, + "max_abs": 10.9576699, + "mean_abs": 0.755940014, + "psnr_db": 29.3187986, + "ref_absmax": 16.7228394, + "rel_max": 0.655251758, + "scaled_max_abs": 0.655251758 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.8/Add_output_0" + }, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9945.89268, + "index": 10, + "metrics": { + "corr": 0.76918299, + "finite": true, + "max_abs": 2.69310486, + "mean_abs": 0.216244063, + "psnr_db": 24.7063022, + "ref_absmax": 2.7077558, + "rel_max": 0.994589268, + "scaled_max_abs": 0.994589268 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.9/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7865.50075, + "index": 11, + "metrics": { + "corr": 0.78229108, + "finite": true, + "max_abs": 2.58410698, + "mean_abs": 0.267371559, + "psnr_db": 24.4384274, + "ref_absmax": 3.28536868, + "rel_max": 0.786550075, + "scaled_max_abs": 0.786550075 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.10/Add_output_0" + }, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9032.69428, + "index": 12, + "metrics": { + "corr": 0.801456576, + "finite": true, + "max_abs": 3.58560731, + "mean_abs": 0.301930165, + "psnr_db": 25.1908239, + "ref_absmax": 3.9695878, + "rel_max": 0.903269428, + "scaled_max_abs": 0.903269428 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.11/Add_output_0" + }, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "uniform", + "index": 17 + } + }, + { + "band_ratio": 7446.04348, + "index": 13, + "metrics": { + "corr": 0.764425395, + "finite": true, + "max_abs": 6.89360556, + "mean_abs": 0.169467644, + "psnr_db": 29.4015031, + "ref_absmax": 9.25807858, + "rel_max": 0.744604348, + "scaled_max_abs": 0.744604348 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.12/features.12.2/HardSwish_output_0" + }, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "uniform", + "index": 17 + } + }, + { + "band_ratio": 1470.68428, + "index": 14, + "metrics": { + "corr": 0.975191865, + "finite": true, + "max_abs": 0.763212144, + "mean_abs": 0.0517065955, + "psnr_db": 36.4453534, + "ref_absmax": 5.18950367, + "rel_max": 0.147068428, + "scaled_max_abs": 0.147068428 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "natural", + "index": 2 + } + }, + { + "band_ratio": 1520.01162, + "index": 15, + "metrics": { + "corr": 0.973850743, + "finite": true, + "max_abs": 2.73984408, + "mean_abs": 0.433899629, + "psnr_db": 33.4352917, + "ref_absmax": 18.0251522, + "rel_max": 0.152001162, + "scaled_max_abs": 0.152001162 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "natural", + "index": 8 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp32", + "id": "mobilenet_v3_small__layout_swap__onnx_fp32", + "model": "mobilenet_v3_small", + "path": "onnx", + "variant": "layout_swap" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/mobilenet_v3_small__pool_divisor__coreml_fp16.json b/bench/verdicts_e2e_gated/mobilenet_v3_small__pool_divisor__coreml_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..7bd6c89830484f5b9c0ddfab13eadb151086bbba --- /dev/null +++ b/bench/verdicts_e2e_gated/mobilenet_v3_small__pool_divisor__coreml_fp16.json @@ -0,0 +1,1045 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "at": "net.features.1", + "explained_by": null, + "nominal_band_ratio": 0.889396549, + "results": [ + { + "band_ratio": 88.0535283, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 70.5427189, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 608.928887, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 113.160239, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 379.294491, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [ + "inputs[0]: dtype float16 (declared float32)", + "outputs[0]: dtype float16 (declared float32)" + ], + "status": "precision_narrowing" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "input_27_cast_fp16", + "basis": "earliest tap over band with in-band predecessors", + "index": 2, + "neighbourhood": [ + { + "band_ratio": 0.33139093, + "index": 1, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_7_cast_fp16" + }, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_ratio": 1.09594004, + "index": 2, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_27_cast_fp16" + }, + "status": "fail", + "tap": "net.features.1" + }, + { + "band_ratio": 1.00240612, + "index": 3, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_43_cast_fp16" + }, + "status": "fail", + "tap": "net.features.2" + } + ], + "shape": 224, + "tap": "net.features.1" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "9cde7d9d307d395a60e64ec8d2aeff7951c24d96c923980dd6b2698a98fa49fd", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "066bc3dbf358cb49f5591b7e68da2c648b9f7abfbff7c9d6d6b339b39e2ae46c", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D2", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.90625, + "band_ratio": 4.47572937, + "metrics": { + "corr": 0.999319526, + "finite": true, + "max_abs": 1.09139347, + "mean_abs": 0.0562833202, + "psnr_db": 50.6735352, + "ref_absmax": 24.3847065, + "rel_max": 0.0447572937, + "scaled_max_abs": 0.0447572937 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 2, + "n_judged": 16, + "n_taps": 16, + "taps": [ + { + "band_ratio": 0.117570499, + "index": 0, + "metrics": { + "corr": 0.999999914, + "finite": true, + "max_abs": 0.0135545731, + "mean_abs": 0.000674526699, + "psnr_db": 83.5827466, + "ref_absmax": 11.5288897, + "rel_max": 0.00117570499, + "scaled_max_abs": 0.00117570499 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.264822202, + "index": 1, + "metrics": { + "corr": 0.999998648, + "finite": true, + "max_abs": 0.503248215, + "mean_abs": 0.00245742044, + "psnr_db": 89.2955159, + "ref_absmax": 190.032486, + "rel_max": 0.00264822202, + "scaled_max_abs": 0.00264822202 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_7_cast_fp16" + }, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_ratio": 1.02786363, + "index": 2, + "metrics": { + "corr": 0.999955391, + "finite": true, + "max_abs": 0.467163086, + "mean_abs": 0.0108745644, + "psnr_db": 70.7611788, + "ref_absmax": 45.4499092, + "rel_max": 0.0102786363, + "scaled_max_abs": 0.0102786363 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_27_cast_fp16" + }, + "status": "fail", + "tap": "net.features.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 1.06091941, + "index": 3, + "metrics": { + "corr": 0.999939329, + "finite": true, + "max_abs": 0.274743319, + "mean_abs": 0.0150893866, + "psnr_db": 65.8230603, + "ref_absmax": 25.896719, + "rel_max": 0.0106091941, + "scaled_max_abs": 0.0106091941 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_43_cast_fp16" + }, + "status": "fail", + "tap": "net.features.2", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 2.19511544, + "index": 4, + "metrics": { + "corr": 0.999841065, + "finite": true, + "max_abs": 0.564396858, + "mean_abs": 0.0266718961, + "psnr_db": 62.2128125, + "ref_absmax": 25.7114887, + "rel_max": 0.0219511544, + "scaled_max_abs": 0.0219511544 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59_cast_fp16" + }, + "status": "fail", + "tap": "net.features.3", + "worst_probe": { + "category": "natural", + "index": 5 + } + }, + { + "band_ratio": 1.52249219, + "index": 5, + "metrics": { + "corr": 0.999759723, + "finite": true, + "max_abs": 0.26046735, + "mean_abs": 0.0164695043, + "psnr_db": 61.0597426, + "ref_absmax": 17.1079597, + "rel_max": 0.0152249219, + "scaled_max_abs": 0.0152249219 + }, + "op": { + "candidates": 4, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_83_cast_fp16" + }, + "status": "fail", + "tap": "net.features.4", + "worst_probe": { + "category": "near_zero", + "index": 27 + } + }, + { + "band_ratio": 2.1104674, + "index": 6, + "metrics": { + "corr": 0.999447351, + "finite": true, + "max_abs": 0.471027374, + "mean_abs": 0.0248036537, + "psnr_db": 58.8381999, + "ref_absmax": 22.3186283, + "rel_max": 0.021104674, + "scaled_max_abs": 0.021104674 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_109_cast_fp16" + }, + "status": "fail", + "tap": "net.features.5", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_ratio": 0.909650714, + "index": 7, + "metrics": { + "corr": 0.999853196, + "finite": true, + "max_abs": 0.570988417, + "mean_abs": 0.0399705316, + "psnr_db": 65.410923, + "ref_absmax": 62.7700729, + "rel_max": 0.00909650714, + "scaled_max_abs": 0.00909650714 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_135_cast_fp16" + }, + "status": "pass", + "tap": "net.features.6" + }, + { + "band_ratio": 1.53782485, + "index": 8, + "metrics": { + "corr": 0.999625919, + "finite": true, + "max_abs": 0.318088531, + "mean_abs": 0.0213923881, + "psnr_db": 61.3762014, + "ref_absmax": 20.6843147, + "rel_max": 0.0153782485, + "scaled_max_abs": 0.0153782485 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_161_cast_fp16" + }, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 2.11867255, + "index": 9, + "metrics": { + "corr": 0.999520738, + "finite": true, + "max_abs": 0.41216588, + "mean_abs": 0.0268162284, + "psnr_db": 59.2518108, + "ref_absmax": 19.453968, + "rel_max": 0.0211867255, + "scaled_max_abs": 0.0211867255 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_187_cast_fp16" + }, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 4.77444673, + "index": 10, + "metrics": { + "corr": 0.999219809, + "finite": true, + "max_abs": 0.166851461, + "mean_abs": 0.0114757947, + "psnr_db": 51.4189906, + "ref_absmax": 3.49467635, + "rel_max": 0.0477444673, + "scaled_max_abs": 0.0477444673 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_213_cast_fp16" + }, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6.2057687, + "index": 11, + "metrics": { + "corr": 0.999094061, + "finite": true, + "max_abs": 0.232064664, + "mean_abs": 0.0150175555, + "psnr_db": 49.9018713, + "ref_absmax": 3.73949909, + "rel_max": 0.062057687, + "scaled_max_abs": 0.062057687 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_239_cast_fp16" + }, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9.7995766, + "index": 12, + "metrics": { + "corr": 0.999010097, + "finite": true, + "max_abs": 0.444393635, + "mean_abs": 0.0180254892, + "psnr_db": 49.8811481, + "ref_absmax": 4.53482485, + "rel_max": 0.097995766, + "scaled_max_abs": 0.097995766 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_265_cast_fp16" + }, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7.82538435, + "index": 13, + "metrics": { + "corr": 0.998635748, + "finite": true, + "max_abs": 0.790345192, + "mean_abs": 0.0107832593, + "psnr_db": 52.2431642, + "ref_absmax": 10.099762, + "rel_max": 0.0782538435, + "scaled_max_abs": 0.0782538435 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_271_cast_fp16" + }, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 5.93494378, + "index": 14, + "metrics": { + "corr": 0.999149208, + "finite": true, + "max_abs": 0.311341763, + "mean_abs": 0.00660600486, + "psnr_db": 50.9603603, + "ref_absmax": 5.24590921, + "rel_max": 0.0593494378, + "scaled_max_abs": 0.0593494378 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 4.47572937, + "index": 15, + "metrics": { + "corr": 0.999319526, + "finite": true, + "max_abs": 1.09139347, + "mean_abs": 0.0562833202, + "psnr_db": 50.6735352, + "ref_absmax": 24.3847065, + "rel_max": 0.0447572937, + "scaled_max_abs": 0.0447572937 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 1.83350738, + "metrics": { + "corr": 0.999757484, + "finite": true, + "max_abs": 0.330492496, + "mean_abs": 0.0361106457, + "psnr_db": 53.9567107, + "ref_absmax": 18.0251522, + "rel_max": 0.0183350738, + "scaled_max_abs": 0.0183350738 + }, + "status": "fail", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + }, + "first_fail_index": 2, + "n_judged": 16, + "n_taps": 16, + "taps": [ + { + "band_ratio": 0.116213884, + "index": 0, + "metrics": { + "corr": 0.999999912, + "finite": true, + "max_abs": 0.0133981705, + "mean_abs": 0.000679588388, + "psnr_db": 83.6184843, + "ref_absmax": 11.5288897, + "rel_max": 0.00116213884, + "scaled_max_abs": 0.00116213884 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.33139093, + "index": 1, + "metrics": { + "corr": 0.999998561, + "finite": true, + "max_abs": 0.560178757, + "mean_abs": 0.00245733429, + "psnr_db": 88.488319, + "ref_absmax": 169.038651, + "rel_max": 0.0033139093, + "scaled_max_abs": 0.0033139093 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_7_cast_fp16" + }, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_ratio": 1.09594004, + "index": 2, + "metrics": { + "corr": 0.999947809, + "finite": true, + "max_abs": 0.489273071, + "mean_abs": 0.0109243768, + "psnr_db": 70.0800625, + "ref_absmax": 44.644146, + "rel_max": 0.0109594004, + "scaled_max_abs": 0.0109594004 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_27_cast_fp16" + }, + "status": "fail", + "tap": "net.features.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 1.00240612, + "index": 3, + "metrics": { + "corr": 0.999928562, + "finite": true, + "max_abs": 0.306883574, + "mean_abs": 0.0154189054, + "psnr_db": 66.8123424, + "ref_absmax": 30.6146946, + "rel_max": 0.0100240612, + "scaled_max_abs": 0.0100240612 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_43_cast_fp16" + }, + "status": "fail", + "tap": "net.features.2", + "worst_probe": { + "category": "natural", + "index": 6 + } + }, + { + "band_ratio": 1.73739321, + "index": 4, + "metrics": { + "corr": 0.999826151, + "finite": true, + "max_abs": 0.454617977, + "mean_abs": 0.0275043068, + "psnr_db": 61.9146954, + "ref_absmax": 26.1666718, + "rel_max": 0.0173739321, + "scaled_max_abs": 0.0173739321 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59_cast_fp16" + }, + "status": "fail", + "tap": "net.features.3", + "worst_probe": { + "category": "natural", + "index": 13 + } + }, + { + "band_ratio": 1.35095718, + "index": 5, + "metrics": { + "corr": 0.999760602, + "finite": true, + "max_abs": 0.263451338, + "mean_abs": 0.0169155159, + "psnr_db": 62.0012665, + "ref_absmax": 19.5010872, + "rel_max": 0.0135095718, + "scaled_max_abs": 0.0135095718 + }, + "op": { + "candidates": 4, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_83_cast_fp16" + }, + "status": "fail", + "tap": "net.features.4", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_ratio": 1.3537173, + "index": 6, + "metrics": { + "corr": 0.999466814, + "finite": true, + "max_abs": 0.406739235, + "mean_abs": 0.025745665, + "psnr_db": 60.821415, + "ref_absmax": 30.0460987, + "rel_max": 0.013537173, + "scaled_max_abs": 0.013537173 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_109_cast_fp16" + }, + "status": "fail", + "tap": "net.features.5", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_ratio": 0.820649453, + "index": 7, + "metrics": { + "corr": 0.999869972, + "finite": true, + "max_abs": 0.55541718, + "mean_abs": 0.0362369712, + "psnr_db": 67.7357211, + "ref_absmax": 67.6801987, + "rel_max": 0.00820649453, + "scaled_max_abs": 0.00820649453 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_135_cast_fp16" + }, + "status": "pass", + "tap": "net.features.6" + }, + { + "band_ratio": 1.99108646, + "index": 8, + "metrics": { + "corr": 0.999611423, + "finite": true, + "max_abs": 0.344161987, + "mean_abs": 0.0206660012, + "psnr_db": 60.6545893, + "ref_absmax": 17.2851353, + "rel_max": 0.0199108646, + "scaled_max_abs": 0.0199108646 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_161_cast_fp16" + }, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 2.3540493, + "index": 9, + "metrics": { + "corr": 0.999548596, + "finite": true, + "max_abs": 0.393663883, + "mean_abs": 0.0250305922, + "psnr_db": 59.028162, + "ref_absmax": 16.7228394, + "rel_max": 0.023540493, + "scaled_max_abs": 0.023540493 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_187_cast_fp16" + }, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + }, + { + "band_ratio": 4.38193852, + "index": 10, + "metrics": { + "corr": 0.999523738, + "finite": true, + "max_abs": 0.118652195, + "mean_abs": 0.0095388501, + "psnr_db": 51.6614998, + "ref_absmax": 2.7077558, + "rel_max": 0.0438193852, + "scaled_max_abs": 0.0438193852 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_213_cast_fp16" + }, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "near_zero", + "index": 27 + } + }, + { + "band_ratio": 5.62934716, + "index": 11, + "metrics": { + "corr": 0.999462721, + "finite": true, + "max_abs": 0.184944808, + "mean_abs": 0.0124173898, + "psnr_db": 50.5313684, + "ref_absmax": 3.28536868, + "rel_max": 0.0562934716, + "scaled_max_abs": 0.0562934716 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_239_cast_fp16" + }, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + }, + { + "band_ratio": 6.43657666, + "index": 12, + "metrics": { + "corr": 0.999472625, + "finite": true, + "max_abs": 0.255505562, + "mean_abs": 0.0146104823, + "psnr_db": 50.9579502, + "ref_absmax": 3.9695878, + "rel_max": 0.0643657666, + "scaled_max_abs": 0.0643657666 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_265_cast_fp16" + }, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + }, + { + "band_ratio": 9.88593552, + "index": 13, + "metrics": { + "corr": 0.999401631, + "finite": true, + "max_abs": 0.915247679, + "mean_abs": 0.0080544773, + "psnr_db": 55.4743789, + "ref_absmax": 9.25807858, + "rel_max": 0.0988593552, + "scaled_max_abs": 0.0988593552 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_271_cast_fp16" + }, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + }, + { + "band_ratio": 2.47298285, + "index": 14, + "metrics": { + "corr": 0.999738832, + "finite": true, + "max_abs": 0.128335536, + "mean_abs": 0.00433290907, + "psnr_db": 56.2337952, + "ref_absmax": 5.18950367, + "rel_max": 0.0247298285, + "scaled_max_abs": 0.0247298285 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + }, + { + "band_ratio": 1.83350738, + "index": 15, + "metrics": { + "corr": 0.999757484, + "finite": true, + "max_abs": 0.330492496, + "mean_abs": 0.0361106457, + "psnr_db": 53.9567107, + "ref_absmax": 18.0251522, + "rel_max": 0.0183350738, + "scaled_max_abs": 0.0183350738 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp16", + "id": "mobilenet_v3_small__pool_divisor__coreml_fp16", + "model": "mobilenet_v3_small", + "path": "coreml", + "variant": "pool_divisor" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/mobilenet_v3_small__pool_divisor__coreml_fp32.json b/bench/verdicts_e2e_gated/mobilenet_v3_small__pool_divisor__coreml_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..3ac3b532189771d36f9a4fe30d0e4b12cb36d5e2 --- /dev/null +++ b/bench/verdicts_e2e_gated/mobilenet_v3_small__pool_divisor__coreml_fp32.json @@ -0,0 +1,997 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "reason": "first divergence at tap 5 is beyond the hypothesis taps (first 3) \u2014 interface faults surface earlier", + "status": "not_evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "input_83", + "basis": "earliest tap over band with in-band predecessors", + "index": 5, + "neighbourhood": [ + { + "band_ratio": 0.0653297152, + "index": 4, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59" + }, + "status": "pass", + "tap": "net.features.3" + }, + { + "band_ratio": 60.1799742, + "index": 5, + "op": { + "candidates": 4, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_83" + }, + "status": "fail", + "tap": "net.features.4" + }, + { + "band_ratio": 85.712491, + "index": 6, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_109" + }, + "status": "fail", + "tap": "net.features.5" + } + ], + "shape": 224, + "tap": "net.features.4" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "770a7b8e7fc1be9caaf63f93b5df31be8c81862476e8252d3e9c0bb0f89742b8", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "331c577acf0c2b844056eca7996d753007b77a44a241b894d13f350a00cb09fd", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D2", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 48.0323645, + "metrics": { + "corr": 0.999989974, + "finite": true, + "max_abs": 0.117125511, + "mean_abs": 0.00323300816, + "psnr_db": 69.2831926, + "ref_absmax": 24.3847065, + "rel_max": 0.00480323645, + "scaled_max_abs": 0.00480323645 + }, + "status": "fail", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + "first_fail_index": 5, + "n_judged": 16, + "n_taps": 16, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.26638033e-08, + "psnr_db": 163.904618, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.00401478436, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.62939453e-05, + "mean_abs": 3.28296435e-07, + "psnr_db": 166.338486, + "ref_absmax": 190.032486, + "rel_max": 4.01478436e-07, + "scaled_max_abs": 4.01478436e-07 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_7" + }, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_ratio": 0.0140782649, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.39855862e-05, + "mean_abs": 1.75256269e-06, + "psnr_db": 146.780382, + "ref_absmax": 45.4499092, + "rel_max": 1.40782649e-06, + "scaled_max_abs": 1.40782649e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_27" + }, + "status": "pass", + "tap": "net.features.1" + }, + { + "band_ratio": 0.0168018932, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.35113907e-05, + "mean_abs": 2.55808928e-06, + "psnr_db": 141.163244, + "ref_absmax": 25.896719, + "rel_max": 1.68018932e-06, + "scaled_max_abs": 1.68018932e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_43" + }, + "status": "pass", + "tap": "net.features.2" + }, + { + "band_ratio": 0.087118353, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000223994255, + "mean_abs": 5.04164043e-06, + "psnr_db": 135.403114, + "ref_absmax": 25.7114887, + "rel_max": 8.7118353e-06, + "scaled_max_abs": 8.7118353e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59" + }, + "status": "pass", + "tap": "net.features.3" + }, + { + "band_ratio": 72.3507603, + "index": 5, + "metrics": { + "corr": 0.999923865, + "finite": true, + "max_abs": 0.12377739, + "mean_abs": 0.00422738738, + "psnr_db": 65.9983138, + "ref_absmax": 17.1079597, + "rel_max": 0.00723507603, + "scaled_max_abs": 0.00723507603 + }, + "op": { + "candidates": 4, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_83" + }, + "status": "fail", + "tap": "net.features.4", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_ratio": 129.084996, + "index": 6, + "metrics": { + "corr": 0.999871564, + "finite": true, + "max_abs": 0.288100004, + "mean_abs": 0.00521744678, + "psnr_db": 65.172084, + "ref_absmax": 22.3186283, + "rel_max": 0.0129084996, + "scaled_max_abs": 0.0129084996 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_109" + }, + "status": "fail", + "tap": "net.features.5", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_ratio": 109.486645, + "index": 7, + "metrics": { + "corr": 0.999977801, + "finite": true, + "max_abs": 0.687248468, + "mean_abs": 0.0063360425, + "psnr_db": 73.6793652, + "ref_absmax": 62.7700729, + "rel_max": 0.0109486645, + "scaled_max_abs": 0.0109486645 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_135" + }, + "status": "fail", + "tap": "net.features.6", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_ratio": 121.877714, + "index": 8, + "metrics": { + "corr": 0.999959484, + "finite": true, + "max_abs": 0.252095699, + "mean_abs": 0.00260558749, + "psnr_db": 71.0354265, + "ref_absmax": 20.6843147, + "rel_max": 0.0121877714, + "scaled_max_abs": 0.0121877714 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_161" + }, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_ratio": 196.8774, + "index": 9, + "metrics": { + "corr": 0.999953213, + "finite": true, + "max_abs": 0.383004665, + "mean_abs": 0.00291951166, + "psnr_db": 69.3781414, + "ref_absmax": 19.453968, + "rel_max": 0.01968774, + "scaled_max_abs": 0.01968774 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_187" + }, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_ratio": 323.033197, + "index": 10, + "metrics": { + "corr": 0.999936309, + "finite": true, + "max_abs": 0.112889647, + "mean_abs": 0.00136118099, + "psnr_db": 62.3043739, + "ref_absmax": 3.49467635, + "rel_max": 0.0323033197, + "scaled_max_abs": 0.0323033197 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_213" + }, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_ratio": 309.947894, + "index": 11, + "metrics": { + "corr": 0.999951369, + "finite": true, + "max_abs": 0.115904987, + "mean_abs": 0.00143140031, + "psnr_db": 62.6083459, + "ref_absmax": 3.73949909, + "rel_max": 0.0309947894, + "scaled_max_abs": 0.0309947894 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_239" + }, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_ratio": 274.616631, + "index": 12, + "metrics": { + "corr": 0.99995251, + "finite": true, + "max_abs": 0.124533832, + "mean_abs": 0.00169798193, + "psnr_db": 63.065194, + "ref_absmax": 4.53482485, + "rel_max": 0.0274616631, + "scaled_max_abs": 0.0274616631 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_265" + }, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_ratio": 266.970539, + "index": 13, + "metrics": { + "corr": 0.999957372, + "finite": true, + "max_abs": 0.269633889, + "mean_abs": 0.000834900391, + "psnr_db": 67.2958323, + "ref_absmax": 10.099762, + "rel_max": 0.0266970539, + "scaled_max_abs": 0.0266970539 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_271" + }, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_ratio": 93.814517, + "index": 14, + "metrics": { + "corr": 0.999984057, + "finite": true, + "max_abs": 0.0492142439, + "mean_abs": 0.000526692009, + "psnr_db": 68.1693368, + "ref_absmax": 5.24590921, + "rel_max": 0.0093814517, + "scaled_max_abs": 0.0093814517 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "near_zero", + "index": 27 + } + }, + { + "band_ratio": 48.0323645, + "index": 15, + "metrics": { + "corr": 0.999989974, + "finite": true, + "max_abs": 0.117125511, + "mean_abs": 0.00323300816, + "psnr_db": 69.2831926, + "ref_absmax": 24.3847065, + "rel_max": 0.00480323645, + "scaled_max_abs": 0.00480323645 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.875, + "band_ratio": 94.1307952, + "metrics": { + "corr": 0.999967687, + "finite": true, + "max_abs": 0.169672191, + "mean_abs": 0.00540374165, + "psnr_db": 62.9237493, + "ref_absmax": 18.0251522, + "rel_max": 0.00941307952, + "scaled_max_abs": 0.00941307952 + }, + "status": "fail", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + }, + "first_fail_index": 5, + "n_judged": 16, + "n_taps": 16, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.2793459e-08, + "psnr_db": 164.013874, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.00361072193, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.10351562e-05, + "mean_abs": 3.27406325e-07, + "psnr_db": 165.532994, + "ref_absmax": 169.038651, + "rel_max": 3.61072193e-07, + "scaled_max_abs": 3.61072193e-07 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_7" + }, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_ratio": 0.0153937664, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.87241554e-05, + "mean_abs": 1.75363639e-06, + "psnr_db": 146.190871, + "ref_absmax": 44.644146, + "rel_max": 1.53937664e-06, + "scaled_max_abs": 1.53937664e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_27" + }, + "status": "pass", + "tap": "net.features.1" + }, + { + "band_ratio": 0.0136285048, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.17232513e-05, + "mean_abs": 2.61711599e-06, + "psnr_db": 142.200155, + "ref_absmax": 30.6146946, + "rel_max": 1.36285048e-06, + "scaled_max_abs": 1.36285048e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_43" + }, + "status": "pass", + "tap": "net.features.2" + }, + { + "band_ratio": 0.0653297152, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000170946121, + "mean_abs": 5.15982585e-06, + "psnr_db": 135.344389, + "ref_absmax": 26.1666718, + "rel_max": 6.53297152e-06, + "scaled_max_abs": 6.53297152e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59" + }, + "status": "pass", + "tap": "net.features.3" + }, + { + "band_ratio": 60.1799742, + "index": 5, + "metrics": { + "corr": 0.999932921, + "finite": true, + "max_abs": 0.117357492, + "mean_abs": 0.00400841999, + "psnr_db": 67.4738744, + "ref_absmax": 19.5010872, + "rel_max": 0.00601799742, + "scaled_max_abs": 0.00601799742 + }, + "op": { + "candidates": 4, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_83" + }, + "status": "fail", + "tap": "net.features.4", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + }, + { + "band_ratio": 85.712491, + "index": 6, + "metrics": { + "corr": 0.999900666, + "finite": true, + "max_abs": 0.257532597, + "mean_abs": 0.00479375943, + "psnr_db": 68.1120008, + "ref_absmax": 30.0460987, + "rel_max": 0.0085712491, + "scaled_max_abs": 0.0085712491 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_109" + }, + "status": "fail", + "tap": "net.features.5", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_ratio": 85.5890596, + "index": 7, + "metrics": { + "corr": 0.99997811, + "finite": true, + "max_abs": 0.579268456, + "mean_abs": 0.00586038206, + "psnr_db": 75.4556595, + "ref_absmax": 67.6801987, + "rel_max": 0.00855890596, + "scaled_max_abs": 0.00855890596 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_135" + }, + "status": "fail", + "tap": "net.features.6", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_ratio": 156.08408, + "index": 8, + "metrics": { + "corr": 0.999964026, + "finite": true, + "max_abs": 0.269793443, + "mean_abs": 0.00222749614, + "psnr_db": 70.981692, + "ref_absmax": 17.2851353, + "rel_max": 0.015608408, + "scaled_max_abs": 0.015608408 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_161" + }, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "near_zero", + "index": 27 + } + }, + { + "band_ratio": 234.825648, + "index": 9, + "metrics": { + "corr": 0.999962317, + "finite": true, + "max_abs": 0.392695159, + "mean_abs": 0.00237749312, + "psnr_db": 69.8119691, + "ref_absmax": 16.7228394, + "rel_max": 0.0234825648, + "scaled_max_abs": 0.0234825648 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_187" + }, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "near_zero", + "index": 27 + } + }, + { + "band_ratio": 519.043024, + "index": 10, + "metrics": { + "corr": 0.999939149, + "finite": true, + "max_abs": 0.140544176, + "mean_abs": 0.00123403178, + "psnr_db": 60.5993963, + "ref_absmax": 2.7077558, + "rel_max": 0.0519043024, + "scaled_max_abs": 0.0519043024 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_213" + }, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "near_zero", + "index": 27 + } + }, + { + "band_ratio": 416.549799, + "index": 11, + "metrics": { + "corr": 0.999941957, + "finite": true, + "max_abs": 0.136851966, + "mean_abs": 0.0015622424, + "psnr_db": 60.2066233, + "ref_absmax": 3.28536868, + "rel_max": 0.0416549799, + "scaled_max_abs": 0.0416549799 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_239" + }, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "near_zero", + "index": 27 + } + }, + { + "band_ratio": 380.466073, + "index": 12, + "metrics": { + "corr": 0.999945389, + "finite": true, + "max_abs": 0.151029348, + "mean_abs": 0.00180595177, + "psnr_db": 60.8107237, + "ref_absmax": 3.9695878, + "rel_max": 0.0380466073, + "scaled_max_abs": 0.0380466073 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_265" + }, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + }, + { + "band_ratio": 344.031639, + "index": 13, + "metrics": { + "corr": 0.999941621, + "finite": true, + "max_abs": 0.318507195, + "mean_abs": 0.000849844683, + "psnr_db": 65.5837581, + "ref_absmax": 9.25807858, + "rel_max": 0.0344031639, + "scaled_max_abs": 0.0344031639 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_271" + }, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + }, + { + "band_ratio": 148.594694, + "index": 14, + "metrics": { + "corr": 0.999969781, + "finite": true, + "max_abs": 0.0771132708, + "mean_abs": 0.000605925288, + "psnr_db": 65.6155315, + "ref_absmax": 5.18950367, + "rel_max": 0.0148594694, + "scaled_max_abs": 0.0148594694 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + }, + { + "band_ratio": 94.1307952, + "index": 15, + "metrics": { + "corr": 0.999967687, + "finite": true, + "max_abs": 0.169672191, + "mean_abs": 0.00540374165, + "psnr_db": 62.9237493, + "ref_absmax": 18.0251522, + "rel_max": 0.00941307952, + "scaled_max_abs": 0.00941307952 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp32", + "id": "mobilenet_v3_small__pool_divisor__coreml_fp32", + "model": "mobilenet_v3_small", + "path": "coreml", + "variant": "pool_divisor" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/mobilenet_v3_small__pool_divisor__litert_fp16.json b/bench/verdicts_e2e_gated/mobilenet_v3_small__pool_divisor__litert_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..e263f0cbddfd61466a9b9f4203e74fbdfbc981c8 --- /dev/null +++ b/bench/verdicts_e2e_gated/mobilenet_v3_small__pool_divisor__litert_fp16.json @@ -0,0 +1,1155 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "reason": "first divergence at tap 8 is beyond the hypothesis taps (first 3) \u2014 interface faults surface earlier", + "status": "not_evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 0.000819612491, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.000147819519, + "mean_abs": 7.20026933e-06, + "psnr_db": 125.067281, + "ref_absmax": 18.0352936, + "rel_max": 8.19612491e-06, + "scaled_max_abs": 8.19612491e-06 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 120, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 1, + "n_ops_total": 172, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_7/torch.nn.modules.container.Sequential_block/t", + "basis": "earliest tap over band with in-band predecessors", + "index": 8, + "neighbourhood": [ + { + "band_ratio": 0.831146991, + "index": 7, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_6;" + }, + "status": "pass", + "tap": "net.features.6" + }, + { + "band_ratio": 1.69154072, + "index": 8, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_7/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.7" + }, + { + "band_ratio": 2.38189477, + "index": 9, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_8;" + }, + "status": "fail", + "tap": "net.features.8" + } + ], + "shape": 224, + "tap": "net.features.7" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "6bb018d70a7278d81434bac4e919ff23b535b08931a5951af52a1a231b6f028a", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "47a6d63e19b39108e9030b22ece2a0439e7abd477262465d67f87929ecaa65c6", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D2", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 3.47403663, + "metrics": { + "corr": 0.999783978, + "finite": true, + "max_abs": 0.847133636, + "mean_abs": 0.0226378028, + "psnr_db": 55.5247978, + "ref_absmax": 24.3847065, + "rel_max": 0.0347403663, + "scaled_max_abs": 0.0347403663 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 6, + "n_judged": 16, + "n_taps": 16, + "taps": [ + { + "band_ratio": 8.27203959e-06, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.26638033e-08, + "psnr_db": 163.904618, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0915032087, + "index": 1, + "metrics": { + "corr": 0.999999786, + "finite": true, + "max_abs": 0.173885822, + "mean_abs": 0.000502268084, + "psnr_db": 96.9119524, + "ref_absmax": 190.032486, + "rel_max": 0.000915032087, + "scaled_max_abs": 0.000915032087 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_0/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_ratio": 0.0727773511, + "index": 2, + "metrics": { + "corr": 0.999999501, + "finite": true, + "max_abs": 0.03307724, + "mean_abs": 0.00172972956, + "psnr_db": 89.9446481, + "ref_absmax": 45.4499092, + "rel_max": 0.000727773511, + "scaled_max_abs": 0.000727773511 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_1/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.1" + }, + { + "band_ratio": 0.15302635, + "index": 3, + "metrics": { + "corr": 0.99999802, + "finite": true, + "max_abs": 0.0396288037, + "mean_abs": 0.00251701601, + "psnr_db": 80.5863503, + "ref_absmax": 25.896719, + "rel_max": 0.0015302635, + "scaled_max_abs": 0.0015302635 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_2/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.2" + }, + { + "band_ratio": 0.244577705, + "index": 4, + "metrics": { + "corr": 0.999994624, + "finite": true, + "max_abs": 0.0628845692, + "mean_abs": 0.00432135067, + "psnr_db": 76.8433382, + "ref_absmax": 25.7114887, + "rel_max": 0.00244577705, + "scaled_max_abs": 0.00244577705 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_3;" + }, + "status": "pass", + "tap": "net.features.3" + }, + { + "band_ratio": 0.662557983, + "index": 5, + "metrics": { + "corr": 0.999910406, + "finite": true, + "max_abs": 0.113350153, + "mean_abs": 0.00666417415, + "psnr_db": 65.2811627, + "ref_absmax": 17.1079597, + "rel_max": 0.00662557983, + "scaled_max_abs": 0.00662557983 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_4/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.4" + }, + { + "band_ratio": 1.33693744, + "index": 6, + "metrics": { + "corr": 0.999828621, + "finite": true, + "max_abs": 0.298386097, + "mean_abs": 0.00920554799, + "psnr_db": 63.916568, + "ref_absmax": 22.3186283, + "rel_max": 0.0133693744, + "scaled_max_abs": 0.0133693744 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_5;" + }, + "status": "fail", + "tap": "net.features.5", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_ratio": 1.03979019, + "index": 7, + "metrics": { + "corr": 0.999954346, + "finite": true, + "max_abs": 0.652677059, + "mean_abs": 0.0161376378, + "psnr_db": 70.5090311, + "ref_absmax": 62.7700729, + "rel_max": 0.0103979019, + "scaled_max_abs": 0.0103979019 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_6;" + }, + "status": "fail", + "tap": "net.features.6", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + }, + { + "band_ratio": 1.42171571, + "index": 8, + "metrics": { + "corr": 0.999907322, + "finite": true, + "max_abs": 0.294072151, + "mean_abs": 0.00715816317, + "psnr_db": 67.4079996, + "ref_absmax": 20.6843147, + "rel_max": 0.0142171571, + "scaled_max_abs": 0.0142171571 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_7/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 1.92425474, + "index": 9, + "metrics": { + "corr": 0.999877187, + "finite": true, + "max_abs": 0.374343902, + "mean_abs": 0.00904548656, + "psnr_db": 65.1892036, + "ref_absmax": 19.453968, + "rel_max": 0.0192425474, + "scaled_max_abs": 0.0192425474 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_8;" + }, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_ratio": 4.26980192, + "index": 10, + "metrics": { + "corr": 0.999764868, + "finite": true, + "max_abs": 0.149215758, + "mean_abs": 0.00456089229, + "psnr_db": 56.602194, + "ref_absmax": 3.49467635, + "rel_max": 0.0426980192, + "scaled_max_abs": 0.0426980192 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_9/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 5.18188833, + "index": 11, + "metrics": { + "corr": 0.999777166, + "finite": true, + "max_abs": 0.193776667, + "mean_abs": 0.00543595598, + "psnr_db": 55.9838564, + "ref_absmax": 3.73949909, + "rel_max": 0.0518188833, + "scaled_max_abs": 0.0518188833 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_10;" + }, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7.6462924, + "index": 12, + "metrics": { + "corr": 0.999704481, + "finite": true, + "max_abs": 0.346745968, + "mean_abs": 0.00688931738, + "psnr_db": 55.1287945, + "ref_absmax": 4.53482485, + "rel_max": 0.076462924, + "scaled_max_abs": 0.076462924 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_11;" + }, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6.32643266, + "index": 13, + "metrics": { + "corr": 0.999509836, + "finite": true, + "max_abs": 0.638954639, + "mean_abs": 0.00428957866, + "psnr_db": 56.6971487, + "ref_absmax": 10.099762, + "rel_max": 0.0632643266, + "scaled_max_abs": 0.0632643266 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_12/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 3.92971952, + "index": 14, + "metrics": { + "corr": 0.999718435, + "finite": true, + "max_abs": 0.206149518, + "mean_abs": 0.00284099015, + "psnr_db": 55.7584866, + "ref_absmax": 5.24590921, + "rel_max": 0.0392971952, + "scaled_max_abs": 0.0392971952 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;;zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Seque" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 3.47403663, + "index": 15, + "metrics": { + "corr": 0.999783978, + "finite": true, + "max_abs": 0.847133636, + "mean_abs": 0.0226378028, + "psnr_db": 55.5247978, + "ref_absmax": 24.3847065, + "rel_max": 0.0347403663, + "scaled_max_abs": 0.0347403663 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.875, + "band_ratio": 2.71596083, + "metrics": { + "corr": 0.999889613, + "finite": true, + "max_abs": 0.489556074, + "mean_abs": 0.016861891, + "psnr_db": 57.523063, + "ref_absmax": 18.0251522, + "rel_max": 0.0271596083, + "scaled_max_abs": 0.0271596083 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 8, + "n_judged": 16, + "n_taps": 16, + "taps": [ + { + "band_ratio": 8.27203959e-06, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.2793459e-08, + "psnr_db": 164.013874, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0868202319, + "index": 1, + "metrics": { + "corr": 0.999999767, + "finite": true, + "max_abs": 0.146759748, + "mean_abs": 0.000503267604, + "psnr_db": 96.0452891, + "ref_absmax": 169.038651, + "rel_max": 0.000868202319, + "scaled_max_abs": 0.000868202319 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_0/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_ratio": 0.0755872648, + "index": 2, + "metrics": { + "corr": 0.999999435, + "finite": true, + "max_abs": 0.0337452888, + "mean_abs": 0.00172548561, + "psnr_db": 89.4320948, + "ref_absmax": 44.644146, + "rel_max": 0.000755872648, + "scaled_max_abs": 0.000755872648 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_1/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.1" + }, + { + "band_ratio": 0.127885996, + "index": 3, + "metrics": { + "corr": 0.999997629, + "finite": true, + "max_abs": 0.039151907, + "mean_abs": 0.00258047824, + "psnr_db": 81.5125813, + "ref_absmax": 30.6146946, + "rel_max": 0.00127885996, + "scaled_max_abs": 0.00127885996 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_2/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.2" + }, + { + "band_ratio": 0.279809812, + "index": 4, + "metrics": { + "corr": 0.999994277, + "finite": true, + "max_abs": 0.0732169151, + "mean_abs": 0.00442955329, + "psnr_db": 76.6613702, + "ref_absmax": 26.1666718, + "rel_max": 0.00279809812, + "scaled_max_abs": 0.00279809812 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_3;" + }, + "status": "pass", + "tap": "net.features.3" + }, + { + "band_ratio": 0.552790951, + "index": 5, + "metrics": { + "corr": 0.999918761, + "finite": true, + "max_abs": 0.107800245, + "mean_abs": 0.00666001628, + "psnr_db": 66.6167854, + "ref_absmax": 19.5010872, + "rel_max": 0.00552790951, + "scaled_max_abs": 0.00552790951 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_4/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.4" + }, + { + "band_ratio": 0.917698631, + "index": 6, + "metrics": { + "corr": 0.99985763, + "finite": true, + "max_abs": 0.275732636, + "mean_abs": 0.0090928604, + "psnr_db": 66.5403073, + "ref_absmax": 30.0460987, + "rel_max": 0.00917698631, + "scaled_max_abs": 0.00917698631 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_5;" + }, + "status": "pass", + "tap": "net.features.5" + }, + { + "band_ratio": 0.831146991, + "index": 7, + "metrics": { + "corr": 0.999966687, + "finite": true, + "max_abs": 0.562521935, + "mean_abs": 0.0125108859, + "psnr_db": 73.6159084, + "ref_absmax": 67.6801987, + "rel_max": 0.00831146991, + "scaled_max_abs": 0.00831146991 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_6;" + }, + "status": "pass", + "tap": "net.features.6" + }, + { + "band_ratio": 1.69154072, + "index": 8, + "metrics": { + "corr": 0.999913676, + "finite": true, + "max_abs": 0.292385101, + "mean_abs": 0.00649481758, + "psnr_db": 67.1187941, + "ref_absmax": 17.2851353, + "rel_max": 0.0169154072, + "scaled_max_abs": 0.0169154072 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_7/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 2.38189477, + "index": 9, + "metrics": { + "corr": 0.999897611, + "finite": true, + "max_abs": 0.398320436, + "mean_abs": 0.0076583814, + "psnr_db": 65.4624192, + "ref_absmax": 16.7228394, + "rel_max": 0.0238189477, + "scaled_max_abs": 0.0238189477 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_8;" + }, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 5.04273805, + "index": 10, + "metrics": { + "corr": 0.999825624, + "finite": true, + "max_abs": 0.136545032, + "mean_abs": 0.0037909954, + "psnr_db": 56.0139251, + "ref_absmax": 2.7077558, + "rel_max": 0.0504273805, + "scaled_max_abs": 0.0504273805 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_9/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "near_zero", + "index": 27 + } + }, + { + "band_ratio": 4.27858534, + "index": 11, + "metrics": { + "corr": 0.999820881, + "finite": true, + "max_abs": 0.140567303, + "mean_abs": 0.00499213333, + "psnr_db": 55.3146637, + "ref_absmax": 3.28536868, + "rel_max": 0.0427858534, + "scaled_max_abs": 0.0427858534 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_10;" + }, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_ratio": 5.43799083, + "index": 12, + "metrics": { + "corr": 0.999797403, + "finite": true, + "max_abs": 0.215865821, + "mean_abs": 0.00601336992, + "psnr_db": 55.1167121, + "ref_absmax": 3.9695878, + "rel_max": 0.0543799083, + "scaled_max_abs": 0.0543799083 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_11;" + }, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7.75258635, + "index": 13, + "metrics": { + "corr": 0.999699358, + "finite": true, + "max_abs": 0.717740536, + "mean_abs": 0.0034071655, + "psnr_db": 58.4571252, + "ref_absmax": 9.25807858, + "rel_max": 0.0775258635, + "scaled_max_abs": 0.0775258635 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_12/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 2.67350447, + "index": 14, + "metrics": { + "corr": 0.99984639, + "finite": true, + "max_abs": 0.138741612, + "mean_abs": 0.0022313646, + "psnr_db": 58.5199262, + "ref_absmax": 5.18950367, + "rel_max": 0.0267350447, + "scaled_max_abs": 0.0267350447 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;;zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Seque" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 2.71596083, + "index": 15, + "metrics": { + "corr": 0.999889613, + "finite": true, + "max_abs": 0.489556074, + "mean_abs": 0.016861891, + "psnr_db": 57.523063, + "ref_absmax": 18.0251522, + "rel_max": 0.0271596083, + "scaled_max_abs": 0.0271596083 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp16", + "id": "mobilenet_v3_small__pool_divisor__litert_fp16", + "model": "mobilenet_v3_small", + "path": "litert", + "variant": "pool_divisor" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/mobilenet_v3_small__pool_divisor__litert_fp32.json b/bench/verdicts_e2e_gated/mobilenet_v3_small__pool_divisor__litert_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..1729908e5e62b54316bef07ceaab85a758f9b770 --- /dev/null +++ b/bench/verdicts_e2e_gated/mobilenet_v3_small__pool_divisor__litert_fp32.json @@ -0,0 +1,1171 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "reason": "first divergence at tap 5 is beyond the hypothesis taps (first 3) \u2014 interface faults surface earlier", + "status": "not_evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 0.0424586551, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.65323639e-05, + "mean_abs": 5.26701162e-06, + "psnr_db": 129.368364, + "ref_absmax": 18.0251503, + "rel_max": 4.24586551e-06, + "scaled_max_abs": 4.24586551e-06 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 120, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 1, + "n_ops_total": 118, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_4/torch.nn.modules.container.Sequential_block/t", + "basis": "earliest tap over band with in-band predecessors", + "index": 5, + "neighbourhood": [ + { + "band_ratio": 0.0325737422, + "index": 4, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_3;" + }, + "status": "pass", + "tap": "net.features.3" + }, + { + "band_ratio": 60.1748393, + "index": 5, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_4/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.4" + }, + { + "band_ratio": 85.7108247, + "index": 6, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_5;" + }, + "status": "fail", + "tap": "net.features.5" + } + ], + "shape": 224, + "tap": "net.features.4" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "8c91246048a8d1c49b8aa012ab114861ca1b0d7d58a7757b9da312666a3fbc4f", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "da69e1535b6a96f1c3924b06319fcdb306f4a69463c74a6a772c1e7f019a71ea", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D2", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 48.0275492, + "metrics": { + "corr": 0.999989973, + "finite": true, + "max_abs": 0.117113769, + "mean_abs": 0.00323363752, + "psnr_db": 69.2827138, + "ref_absmax": 24.3847065, + "rel_max": 0.00480275492, + "scaled_max_abs": 0.00480275492 + }, + "status": "fail", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + "first_fail_index": 5, + "n_judged": 16, + "n_taps": 16, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.26638033e-08, + "psnr_db": 163.904618, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.00421552358, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.01086426e-05, + "mean_abs": 2.27467979e-07, + "psnr_db": 166.067675, + "ref_absmax": 190.032486, + "rel_max": 4.21552358e-07, + "scaled_max_abs": 4.21552358e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_0/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_ratio": 0.00902267932, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.10079956e-05, + "mean_abs": 1.0080085e-06, + "psnr_db": 152.997611, + "ref_absmax": 45.4499092, + "rel_max": 9.02267932e-07, + "scaled_max_abs": 9.02267932e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_1/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.1" + }, + { + "band_ratio": 0.0102192337, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.64644623e-05, + "mean_abs": 1.53339525e-06, + "psnr_db": 145.715772, + "ref_absmax": 25.896719, + "rel_max": 1.02192337e-06, + "scaled_max_abs": 1.02192337e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_2/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.2" + }, + { + "band_ratio": 0.0320840342, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.24928284e-05, + "mean_abs": 3.09957574e-06, + "psnr_db": 139.892867, + "ref_absmax": 25.7114887, + "rel_max": 3.20840342e-06, + "scaled_max_abs": 3.20840342e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_3;" + }, + "status": "pass", + "tap": "net.features.3" + }, + { + "band_ratio": 72.3414231, + "index": 5, + "metrics": { + "corr": 0.999923872, + "finite": true, + "max_abs": 0.123761415, + "mean_abs": 0.0042265875, + "psnr_db": 65.9987465, + "ref_absmax": 17.1079597, + "rel_max": 0.00723414231, + "scaled_max_abs": 0.00723414231 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_4/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.4", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_ratio": 129.068117, + "index": 6, + "metrics": { + "corr": 0.999871579, + "finite": true, + "max_abs": 0.288062334, + "mean_abs": 0.00521639174, + "psnr_db": 65.1726061, + "ref_absmax": 22.3186283, + "rel_max": 0.0129068117, + "scaled_max_abs": 0.0129068117 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_5;" + }, + "status": "fail", + "tap": "net.features.5", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_ratio": 109.478668, + "index": 7, + "metrics": { + "corr": 0.999977804, + "finite": true, + "max_abs": 0.6871984, + "mean_abs": 0.00633528115, + "psnr_db": 73.6799122, + "ref_absmax": 62.7700729, + "rel_max": 0.0109478668, + "scaled_max_abs": 0.0109478668 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_6;" + }, + "status": "fail", + "tap": "net.features.6", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_ratio": 121.874458, + "index": 8, + "metrics": { + "corr": 0.99995949, + "finite": true, + "max_abs": 0.252088964, + "mean_abs": 0.00260479068, + "psnr_db": 71.0360871, + "ref_absmax": 20.6843147, + "rel_max": 0.0121874458, + "scaled_max_abs": 0.0121874458 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_7/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_ratio": 196.861468, + "index": 9, + "metrics": { + "corr": 0.99995322, + "finite": true, + "max_abs": 0.382973671, + "mean_abs": 0.00291874692, + "psnr_db": 69.3788047, + "ref_absmax": 19.453968, + "rel_max": 0.0196861468, + "scaled_max_abs": 0.0196861468 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_8;" + }, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_ratio": 323.022964, + "index": 10, + "metrics": { + "corr": 0.999936317, + "finite": true, + "max_abs": 0.112886071, + "mean_abs": 0.00136097995, + "psnr_db": 62.3049211, + "ref_absmax": 3.49467635, + "rel_max": 0.0323022964, + "scaled_max_abs": 0.0323022964 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_9/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_ratio": 309.935462, + "index": 11, + "metrics": { + "corr": 0.999951373, + "finite": true, + "max_abs": 0.115900338, + "mean_abs": 0.00143124236, + "psnr_db": 62.6086555, + "ref_absmax": 3.73949909, + "rel_max": 0.0309935462, + "scaled_max_abs": 0.0309935462 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_10;" + }, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_ratio": 274.60743, + "index": 12, + "metrics": { + "corr": 0.999952513, + "finite": true, + "max_abs": 0.12452966, + "mean_abs": 0.00169789323, + "psnr_db": 63.065459, + "ref_absmax": 4.53482485, + "rel_max": 0.027460743, + "scaled_max_abs": 0.027460743 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_11;" + }, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_ratio": 266.9369, + "index": 13, + "metrics": { + "corr": 0.999957377, + "finite": true, + "max_abs": 0.269599915, + "mean_abs": 0.000834821354, + "psnr_db": 67.2963219, + "ref_absmax": 10.099762, + "rel_max": 0.02669369, + "scaled_max_abs": 0.02669369 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_12/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_ratio": 93.8088359, + "index": 14, + "metrics": { + "corr": 0.999984058, + "finite": true, + "max_abs": 0.0492112637, + "mean_abs": 0.00052672683, + "psnr_db": 68.1695858, + "ref_absmax": 5.24590921, + "rel_max": 0.00938088359, + "scaled_max_abs": 0.00938088359 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;;zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Seque" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "near_zero", + "index": 27 + } + }, + { + "band_ratio": 48.0275492, + "index": 15, + "metrics": { + "corr": 0.999989973, + "finite": true, + "max_abs": 0.117113769, + "mean_abs": 0.00323363752, + "psnr_db": 69.2827138, + "ref_absmax": 24.3847065, + "rel_max": 0.00480275492, + "scaled_max_abs": 0.00480275492 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.875, + "band_ratio": 94.1203459, + "metrics": { + "corr": 0.999967688, + "finite": true, + "max_abs": 0.169653356, + "mean_abs": 0.00540382581, + "psnr_db": 62.923917, + "ref_absmax": 18.0251522, + "rel_max": 0.00941203459, + "scaled_max_abs": 0.00941203459 + }, + "status": "fail", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + }, + "first_fail_index": 5, + "n_judged": 16, + "n_taps": 16, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.2793459e-08, + "psnr_db": 164.013874, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.00530324784, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.96453857e-05, + "mean_abs": 2.25372134e-07, + "psnr_db": 165.388517, + "ref_absmax": 169.038651, + "rel_max": 5.30324784e-07, + "scaled_max_abs": 5.30324784e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_0/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_ratio": 0.00747659079, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.33786011e-05, + "mean_abs": 1.00480479e-06, + "psnr_db": 152.460917, + "ref_absmax": 44.644146, + "rel_max": 7.47659079e-07, + "scaled_max_abs": 7.47659079e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_1/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.1" + }, + { + "band_ratio": 0.0121488386, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.71932983e-05, + "mean_abs": 1.59080642e-06, + "psnr_db": 146.525466, + "ref_absmax": 30.6146946, + "rel_max": 1.21488386e-06, + "scaled_max_abs": 1.21488386e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_2/torch.nn.modules.container.Sequential_block/t" + }, + "status": "pass", + "tap": "net.features.2" + }, + { + "band_ratio": 0.0325737422, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.5234642e-05, + "mean_abs": 3.21546023e-06, + "psnr_db": 139.580403, + "ref_absmax": 26.1666718, + "rel_max": 3.25737422e-06, + "scaled_max_abs": 3.25737422e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_3;" + }, + "status": "pass", + "tap": "net.features.3" + }, + { + "band_ratio": 60.1748393, + "index": 5, + "metrics": { + "corr": 0.999932927, + "finite": true, + "max_abs": 0.117347479, + "mean_abs": 0.00400764871, + "psnr_db": 67.474334, + "ref_absmax": 19.5010872, + "rel_max": 0.00601748393, + "scaled_max_abs": 0.00601748393 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_4/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.4", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + }, + { + "band_ratio": 85.7108247, + "index": 6, + "metrics": { + "corr": 0.999900677, + "finite": true, + "max_abs": 0.25752759, + "mean_abs": 0.00479275871, + "psnr_db": 68.112491, + "ref_absmax": 30.0460987, + "rel_max": 0.00857108247, + "scaled_max_abs": 0.00857108247 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_5;" + }, + "status": "fail", + "tap": "net.features.5", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_ratio": 85.5873687, + "index": 7, + "metrics": { + "corr": 0.999978112, + "finite": true, + "max_abs": 0.579257011, + "mean_abs": 0.00585892533, + "psnr_db": 75.4560149, + "ref_absmax": 67.6801987, + "rel_max": 0.00855873687, + "scaled_max_abs": 0.00855873687 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_6;" + }, + "status": "fail", + "tap": "net.features.6", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_ratio": 156.081981, + "index": 8, + "metrics": { + "corr": 0.999964028, + "finite": true, + "max_abs": 0.269789815, + "mean_abs": 0.00222680488, + "psnr_db": 70.9819173, + "ref_absmax": 17.2851353, + "rel_max": 0.0156081981, + "scaled_max_abs": 0.0156081981 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_7/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "near_zero", + "index": 27 + } + }, + { + "band_ratio": 234.823456, + "index": 9, + "metrics": { + "corr": 0.999962319, + "finite": true, + "max_abs": 0.392691493, + "mean_abs": 0.00237672661, + "psnr_db": 69.8121699, + "ref_absmax": 16.7228394, + "rel_max": 0.0234823456, + "scaled_max_abs": 0.0234823456 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_8;" + }, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "near_zero", + "index": 27 + } + }, + { + "band_ratio": 519.048967, + "index": 10, + "metrics": { + "corr": 0.999939151, + "finite": true, + "max_abs": 0.140545785, + "mean_abs": 0.00123388899, + "psnr_db": 60.5995433, + "ref_absmax": 2.7077558, + "rel_max": 0.0519048967, + "scaled_max_abs": 0.0519048967 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_9/torch.nn.modules.container.Sequential_block/t" + }, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "near_zero", + "index": 27 + } + }, + { + "band_ratio": 416.541272, + "index": 11, + "metrics": { + "corr": 0.999941958, + "finite": true, + "max_abs": 0.136849165, + "mean_abs": 0.00156205074, + "psnr_db": 60.2067092, + "ref_absmax": 3.28536868, + "rel_max": 0.0416541272, + "scaled_max_abs": 0.0416541272 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_10;" + }, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "near_zero", + "index": 27 + } + }, + { + "band_ratio": 380.460067, + "index": 12, + "metrics": { + "corr": 0.99994539, + "finite": true, + "max_abs": 0.151026964, + "mean_abs": 0.00180584179, + "psnr_db": 60.8107564, + "ref_absmax": 3.9695878, + "rel_max": 0.0380460067, + "scaled_max_abs": 0.0380460067 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.models.mobilenetv3.InvertedResidual_11;" + }, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + }, + { + "band_ratio": 344.002281, + "index": 13, + "metrics": { + "corr": 0.999941623, + "finite": true, + "max_abs": 0.318480015, + "mean_abs": 0.000849826813, + "psnr_db": 65.5839763, + "ref_absmax": 9.25807858, + "rel_max": 0.0344002281, + "scaled_max_abs": 0.0344002281 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Sequential_features/torchvision.ops.misc.Conv2dNormActivation_12/torch.nn.modules.activation.Hardswish_2;" + }, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + }, + { + "band_ratio": 148.572411, + "index": 14, + "metrics": { + "corr": 0.999969783, + "finite": true, + "max_abs": 0.0771017075, + "mean_abs": 0.000606012865, + "psnr_db": 65.6157605, + "ref_absmax": 5.18950367, + "rel_max": 0.0148572411, + "scaled_max_abs": 0.0148572411 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;;zoo.Source/torchvision.models.mobilenetv3.MobileNetV3_net/torch.nn.modules.container.Seque" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + }, + { + "band_ratio": 94.1203459, + "index": 15, + "metrics": { + "corr": 0.999967688, + "finite": true, + "max_abs": 0.169653356, + "mean_abs": 0.00540382581, + "psnr_db": 62.923917, + "ref_absmax": 18.0251522, + "rel_max": 0.00941203459, + "scaled_max_abs": 0.00941203459 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp32", + "id": "mobilenet_v3_small__pool_divisor__litert_fp32", + "model": "mobilenet_v3_small", + "path": "litert", + "variant": "pool_divisor" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/mobilenet_v3_small__pool_divisor__onnx_fp16.json b/bench/verdicts_e2e_gated/mobilenet_v3_small__pool_divisor__onnx_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..bb990d11bd83ddc13538a0fd88a0043cd28f84c1 --- /dev/null +++ b/bench/verdicts_e2e_gated/mobilenet_v3_small__pool_divisor__onnx_fp16.json @@ -0,0 +1,977 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "reason": "first divergence at tap 8 is beyond the hypothesis taps (first 3) \u2014 interface faults surface earlier", + "status": "not_evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "/net/features/features.7/block/block.3/block.3.0/Conv_output_0", + "basis": "earliest tap over band with in-band predecessors", + "index": 8, + "neighbourhood": [ + { + "band_ratio": 0.765170972, + "index": 7, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.6/Add_output_0" + }, + "status": "pass", + "tap": "net.features.6" + }, + { + "band_ratio": 1.49428968, + "index": 8, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.7/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.7" + }, + { + "band_ratio": 2.2991147, + "index": 9, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.8/Add_output_0" + }, + "status": "fail", + "tap": "net.features.8" + } + ], + "shape": 224, + "tap": "net.features.7" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "526a9e2d8fca86bd6016f76da0c0898a29c11bd662ac970af390c7ecb4481981", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "6522d4f075fe13aed414dcfb01a24d222ee8dbf515c0c0eb563fee454c5fa666", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D2", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 3.10759602, + "metrics": { + "corr": 0.99967926, + "finite": true, + "max_abs": 0.757778168, + "mean_abs": 0.0340288915, + "psnr_db": 53.8879014, + "ref_absmax": 24.3847065, + "rel_max": 0.0310759602, + "scaled_max_abs": 0.0310759602 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 6, + "n_judged": 16, + "n_taps": 16, + "taps": [ + { + "band_ratio": 0.0441313312, + "index": 0, + "metrics": { + "corr": 0.999999966, + "finite": true, + "max_abs": 0.00508785248, + "mean_abs": 0.000405953078, + "psnr_db": 88.0186903, + "ref_absmax": 11.5288897, + "rel_max": 0.000441313312, + "scaled_max_abs": 0.000441313312 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0908058909, + "index": 1, + "metrics": { + "corr": 0.999999747, + "finite": true, + "max_abs": 0.172560692, + "mean_abs": 0.000883766055, + "psnr_db": 96.2909345, + "ref_absmax": 190.032486, + "rel_max": 0.000908058909, + "scaled_max_abs": 0.000908058909 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.0/features.0.2/HardSwish_output_0" + }, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_ratio": 0.0726273228, + "index": 2, + "metrics": { + "corr": 0.99999925, + "finite": true, + "max_abs": 0.0330090523, + "mean_abs": 0.0021913404, + "psnr_db": 88.346094, + "ref_absmax": 45.4499092, + "rel_max": 0.000726273228, + "scaled_max_abs": 0.000726273228 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.1/block/block.2/block.2.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.1" + }, + { + "band_ratio": 0.192673754, + "index": 3, + "metrics": { + "corr": 0.99999661, + "finite": true, + "max_abs": 0.0498961806, + "mean_abs": 0.00335121535, + "psnr_db": 78.3312341, + "ref_absmax": 25.896719, + "rel_max": 0.00192673754, + "scaled_max_abs": 0.00192673754 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.2/block/block.2/block.2.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.2" + }, + { + "band_ratio": 0.281512363, + "index": 4, + "metrics": { + "corr": 0.999992632, + "finite": true, + "max_abs": 0.0723810196, + "mean_abs": 0.00526209009, + "psnr_db": 75.4762491, + "ref_absmax": 25.7114887, + "rel_max": 0.00281512363, + "scaled_max_abs": 0.00281512363 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.3/Add_output_0" + }, + "status": "pass", + "tap": "net.features.3" + }, + { + "band_ratio": 0.723435135, + "index": 5, + "metrics": { + "corr": 0.999891401, + "finite": true, + "max_abs": 0.123764992, + "mean_abs": 0.0080127156, + "psnr_db": 64.4266583, + "ref_absmax": 17.1079597, + "rel_max": 0.00723435135, + "scaled_max_abs": 0.00723435135 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.4/block/block.3/block.3.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.4" + }, + { + "band_ratio": 1.33923471, + "index": 6, + "metrics": { + "corr": 0.999801751, + "finite": true, + "max_abs": 0.298898816, + "mean_abs": 0.0107983143, + "psnr_db": 63.2774739, + "ref_absmax": 22.3186283, + "rel_max": 0.0133923471, + "scaled_max_abs": 0.0133923471 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.5/Add_output_0" + }, + "status": "fail", + "tap": "net.features.5", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_ratio": 0.946548767, + "index": 7, + "metrics": { + "corr": 0.999893546, + "finite": true, + "max_abs": 0.594149351, + "mean_abs": 0.0237026246, + "psnr_db": 66.8326793, + "ref_absmax": 62.7700729, + "rel_max": 0.00946548767, + "scaled_max_abs": 0.00946548767 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.6/Add_output_0" + }, + "status": "pass", + "tap": "net.features.6" + }, + { + "band_ratio": 1.24242499, + "index": 8, + "metrics": { + "corr": 0.99986423, + "finite": true, + "max_abs": 0.256987095, + "mean_abs": 0.00950482209, + "psnr_db": 65.7707031, + "ref_absmax": 20.6843147, + "rel_max": 0.0124242499, + "scaled_max_abs": 0.0124242499 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.7/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "near_zero", + "index": 27 + } + }, + { + "band_ratio": 1.98082609, + "index": 9, + "metrics": { + "corr": 0.9997707, + "finite": true, + "max_abs": 0.385349274, + "mean_abs": 0.0128459221, + "psnr_db": 62.4748196, + "ref_absmax": 19.453968, + "rel_max": 0.0198082609, + "scaled_max_abs": 0.0198082609 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.8/Add_output_0" + }, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "wide_range", + "index": 23 + } + }, + { + "band_ratio": 3.76845229, + "index": 10, + "metrics": { + "corr": 0.999552374, + "finite": true, + "max_abs": 0.131695211, + "mean_abs": 0.00668364877, + "psnr_db": 53.805937, + "ref_absmax": 3.49467635, + "rel_max": 0.0376845229, + "scaled_max_abs": 0.0376845229 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.9/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 4.49988479, + "index": 11, + "metrics": { + "corr": 0.999593553, + "finite": true, + "max_abs": 0.168273151, + "mean_abs": 0.00800514046, + "psnr_db": 53.381276, + "ref_absmax": 3.73949909, + "rel_max": 0.0449988479, + "scaled_max_abs": 0.0449988479 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.10/Add_output_0" + }, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6.78471375, + "index": 12, + "metrics": { + "corr": 0.999532763, + "finite": true, + "max_abs": 0.307674885, + "mean_abs": 0.0100131042, + "psnr_db": 53.1348577, + "ref_absmax": 4.53482485, + "rel_max": 0.0678471375, + "scaled_max_abs": 0.0678471375 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.11/Add_output_0" + }, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 5.52412343, + "index": 13, + "metrics": { + "corr": 0.999316347, + "finite": true, + "max_abs": 0.557923317, + "mean_abs": 0.00610226394, + "psnr_db": 55.2507553, + "ref_absmax": 10.099762, + "rel_max": 0.0552412343, + "scaled_max_abs": 0.0552412343 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.12/features.12.2/HardSwish_output_0" + }, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 3.52594163, + "index": 14, + "metrics": { + "corr": 0.999540422, + "finite": true, + "max_abs": 0.184967697, + "mean_abs": 0.00421079609, + "psnr_db": 53.6164206, + "ref_absmax": 5.24590921, + "rel_max": 0.0352594163, + "scaled_max_abs": 0.0352594163 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 3.10759602, + "index": 15, + "metrics": { + "corr": 0.99967926, + "finite": true, + "max_abs": 0.757778168, + "mean_abs": 0.0340288915, + "psnr_db": 53.8879014, + "ref_absmax": 24.3847065, + "rel_max": 0.0310759602, + "scaled_max_abs": 0.0310759602 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.875, + "band_ratio": 2.16154874, + "metrics": { + "corr": 0.999862643, + "finite": true, + "max_abs": 0.38962245, + "mean_abs": 0.0236361643, + "psnr_db": 56.5552821, + "ref_absmax": 18.0251522, + "rel_max": 0.0216154874, + "scaled_max_abs": 0.0216154874 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 8, + "n_judged": 16, + "n_taps": 16, + "taps": [ + { + "band_ratio": 0.0439328023, + "index": 0, + "metrics": { + "corr": 0.999999965, + "finite": true, + "max_abs": 0.00506496429, + "mean_abs": 0.000406712054, + "psnr_db": 88.0749992, + "ref_absmax": 11.5288897, + "rel_max": 0.000439328023, + "scaled_max_abs": 0.000439328023 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0867140259, + "index": 1, + "metrics": { + "corr": 0.999999726, + "finite": true, + "max_abs": 0.146580219, + "mean_abs": 0.000882941117, + "psnr_db": 95.4408227, + "ref_absmax": 169.038651, + "rel_max": 0.000867140259, + "scaled_max_abs": 0.000867140259 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.0/features.0.2/HardSwish_output_0" + }, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_ratio": 0.0745469506, + "index": 2, + "metrics": { + "corr": 0.999999152, + "finite": true, + "max_abs": 0.0332808495, + "mean_abs": 0.00218689379, + "psnr_db": 87.8352672, + "ref_absmax": 44.644146, + "rel_max": 0.000745469506, + "scaled_max_abs": 0.000745469506 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.1/block/block.2/block.2.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.1" + }, + { + "band_ratio": 0.155432319, + "index": 3, + "metrics": { + "corr": 0.999995967, + "finite": true, + "max_abs": 0.0475851297, + "mean_abs": 0.00342715191, + "psnr_db": 79.2772077, + "ref_absmax": 30.6146946, + "rel_max": 0.00155432319, + "scaled_max_abs": 0.00155432319 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.2/block/block.2/block.2.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.2" + }, + { + "band_ratio": 0.290781924, + "index": 4, + "metrics": { + "corr": 0.999991914, + "finite": true, + "max_abs": 0.0760879517, + "mean_abs": 0.00542803163, + "psnr_db": 75.1554022, + "ref_absmax": 26.1666718, + "rel_max": 0.00290781924, + "scaled_max_abs": 0.00290781924 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.3/Add_output_0" + }, + "status": "pass", + "tap": "net.features.3" + }, + { + "band_ratio": 0.602733802, + "index": 5, + "metrics": { + "corr": 0.999898585, + "finite": true, + "max_abs": 0.117539644, + "mean_abs": 0.00815392941, + "psnr_db": 65.6173271, + "ref_absmax": 19.5010872, + "rel_max": 0.00602733802, + "scaled_max_abs": 0.00602733802 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.4/block/block.3/block.3.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.4" + }, + { + "band_ratio": 0.918271941, + "index": 6, + "metrics": { + "corr": 0.999828159, + "finite": true, + "max_abs": 0.275904894, + "mean_abs": 0.0109572827, + "psnr_db": 65.693428, + "ref_absmax": 30.0460987, + "rel_max": 0.00918271941, + "scaled_max_abs": 0.00918271941 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.5/Add_output_0" + }, + "status": "pass", + "tap": "net.features.5" + }, + { + "band_ratio": 0.765170972, + "index": 7, + "metrics": { + "corr": 0.999956783, + "finite": true, + "max_abs": 0.517869234, + "mean_abs": 0.0154316848, + "psnr_db": 72.4806457, + "ref_absmax": 67.6801987, + "rel_max": 0.00765170972, + "scaled_max_abs": 0.00765170972 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.6/Add_output_0" + }, + "status": "pass", + "tap": "net.features.6" + }, + { + "band_ratio": 1.49428968, + "index": 8, + "metrics": { + "corr": 0.999902421, + "finite": true, + "max_abs": 0.258289993, + "mean_abs": 0.00800122389, + "psnr_db": 66.6263946, + "ref_absmax": 17.2851353, + "rel_max": 0.0149428968, + "scaled_max_abs": 0.0149428968 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.7/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_ratio": 2.2991147, + "index": 9, + "metrics": { + "corr": 0.999875501, + "finite": true, + "max_abs": 0.384477258, + "mean_abs": 0.00989508978, + "psnr_db": 64.6238588, + "ref_absmax": 16.7228394, + "rel_max": 0.022991147, + "scaled_max_abs": 0.022991147 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.8/Add_output_0" + }, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_ratio": 4.68389035, + "index": 10, + "metrics": { + "corr": 0.999791677, + "finite": true, + "max_abs": 0.126828313, + "mean_abs": 0.00496563794, + "psnr_db": 55.2213144, + "ref_absmax": 2.7077558, + "rel_max": 0.0468389035, + "scaled_max_abs": 0.0468389035 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.9/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_ratio": 4.16401938, + "index": 11, + "metrics": { + "corr": 0.999770496, + "finite": true, + "max_abs": 0.136803389, + "mean_abs": 0.00655460957, + "psnr_db": 54.2293779, + "ref_absmax": 3.28536868, + "rel_max": 0.0416401938, + "scaled_max_abs": 0.0416401938 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.10/Add_output_0" + }, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_ratio": 4.24804597, + "index": 12, + "metrics": { + "corr": 0.999762791, + "finite": true, + "max_abs": 0.168629915, + "mean_abs": 0.00786256873, + "psnr_db": 54.4311391, + "ref_absmax": 3.9695878, + "rel_max": 0.0424804597, + "scaled_max_abs": 0.0424804597 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.11/Add_output_0" + }, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 5.82480643, + "index": 13, + "metrics": { + "corr": 0.999676647, + "finite": true, + "max_abs": 0.539265156, + "mean_abs": 0.00445141193, + "psnr_db": 58.1317291, + "ref_absmax": 9.25807858, + "rel_max": 0.0582480643, + "scaled_max_abs": 0.0582480643 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.12/features.12.2/HardSwish_output_0" + }, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 2.19971823, + "index": 14, + "metrics": { + "corr": 0.999797556, + "finite": true, + "max_abs": 0.114154458, + "mean_abs": 0.00303609851, + "psnr_db": 57.3009375, + "ref_absmax": 5.18950367, + "rel_max": 0.0219971823, + "scaled_max_abs": 0.0219971823 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 2.16154874, + "index": 15, + "metrics": { + "corr": 0.999862643, + "finite": true, + "max_abs": 0.38962245, + "mean_abs": 0.0236361643, + "psnr_db": 56.5552821, + "ref_absmax": 18.0251522, + "rel_max": 0.0216154874, + "scaled_max_abs": 0.0216154874 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp16", + "id": "mobilenet_v3_small__pool_divisor__onnx_fp16", + "model": "mobilenet_v3_small", + "path": "onnx", + "variant": "pool_divisor" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/mobilenet_v3_small__pool_divisor__onnx_fp32.json b/bench/verdicts_e2e_gated/mobilenet_v3_small__pool_divisor__onnx_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..3120ac4c62b2328a4d32d37abedb71cf4a835a22 --- /dev/null +++ b/bench/verdicts_e2e_gated/mobilenet_v3_small__pool_divisor__onnx_fp32.json @@ -0,0 +1,997 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "reason": "first divergence at tap 5 is beyond the hypothesis taps (first 3) \u2014 interface faults surface earlier", + "status": "not_evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "/net/features/features.4/block/block.3/block.3.0/Conv_output_0", + "basis": "earliest tap over band with in-band predecessors", + "index": 5, + "neighbourhood": [ + { + "band_ratio": 0.02888357, + "index": 4, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.3/Add_output_0" + }, + "status": "pass", + "tap": "net.features.3" + }, + { + "band_ratio": 60.1789962, + "index": 5, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.4/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.4" + }, + { + "band_ratio": 85.7127688, + "index": 6, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.5/Add_output_0" + }, + "status": "fail", + "tap": "net.features.5" + } + ], + "shape": 224, + "tap": "net.features.4" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "c4c11bc403105fc28ebff70f235bf632561531237461ea30fb6a4f265a272a32", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "a0115521649fea35110ac673fabd92f8e0a8fe39567ca83eb1d2b7ababa2eab2" + }, + "224": { + "converted": "8465d611bb6d7cfa9eee224de23f17cb05bbf5f56a9dc62632a3bed8c56f6e09", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "6cc48db7d8853f4b3e423f336d6873097f3e8e5af5311c70b0e12c4cf951b00a" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D2", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 48.0306535, + "metrics": { + "corr": 0.999989975, + "finite": true, + "max_abs": 0.117121339, + "mean_abs": 0.00323244529, + "psnr_db": 69.2834384, + "ref_absmax": 24.3847065, + "rel_max": 0.00480306535, + "scaled_max_abs": 0.00480306535 + }, + "status": "fail", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + "first_fail_index": 5, + "n_judged": 16, + "n_taps": 16, + "taps": [ + { + "band_ratio": 0.0, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 11.5288897, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.00321182749, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.10351562e-05, + "mean_abs": 1.92955669e-07, + "psnr_db": 167.753619, + "ref_absmax": 190.032486, + "rel_max": 3.21182749e-07, + "scaled_max_abs": 3.21182749e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.0/features.0.2/HardSwish_output_0" + }, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_ratio": 0.00797353056, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.6239624e-05, + "mean_abs": 1.02951828e-06, + "psnr_db": 152.906263, + "ref_absmax": 45.4499092, + "rel_max": 7.97353056e-07, + "scaled_max_abs": 7.97353056e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.1/block/block.2/block.2.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.1" + }, + { + "band_ratio": 0.0107255921, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.77757645e-05, + "mean_abs": 1.70024624e-06, + "psnr_db": 143.974771, + "ref_absmax": 25.896719, + "rel_max": 1.07255921e-06, + "scaled_max_abs": 1.07255921e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.2/block/block.2/block.2.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.2" + }, + { + "band_ratio": 0.0318522131, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.18967819e-05, + "mean_abs": 3.22833409e-06, + "psnr_db": 139.462863, + "ref_absmax": 25.7114887, + "rel_max": 3.18522131e-06, + "scaled_max_abs": 3.18522131e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.3/Add_output_0" + }, + "status": "pass", + "tap": "net.features.3" + }, + { + "band_ratio": 72.3479731, + "index": 5, + "metrics": { + "corr": 0.999923866, + "finite": true, + "max_abs": 0.123772621, + "mean_abs": 0.00422694143, + "psnr_db": 65.9983459, + "ref_absmax": 17.1079597, + "rel_max": 0.00723479731, + "scaled_max_abs": 0.00723479731 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.4/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.4", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_ratio": 129.069079, + "index": 6, + "metrics": { + "corr": 0.99987157, + "finite": true, + "max_abs": 0.28806448, + "mean_abs": 0.0052166892, + "psnr_db": 65.1722887, + "ref_absmax": 22.3186283, + "rel_max": 0.0129069079, + "scaled_max_abs": 0.0129069079 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.5/Add_output_0" + }, + "status": "fail", + "tap": "net.features.5", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_ratio": 109.478668, + "index": 7, + "metrics": { + "corr": 0.999977803, + "finite": true, + "max_abs": 0.6871984, + "mean_abs": 0.00633499966, + "psnr_db": 73.6796908, + "ref_absmax": 62.7700729, + "rel_max": 0.0109478668, + "scaled_max_abs": 0.0109478668 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.6/Add_output_0" + }, + "status": "fail", + "tap": "net.features.6", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_ratio": 121.870395, + "index": 8, + "metrics": { + "corr": 0.999959488, + "finite": true, + "max_abs": 0.25208056, + "mean_abs": 0.00260482654, + "psnr_db": 71.0358474, + "ref_absmax": 20.6843147, + "rel_max": 0.0121870395, + "scaled_max_abs": 0.0121870395 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.7/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_ratio": 196.868944, + "index": 9, + "metrics": { + "corr": 0.999953217, + "finite": true, + "max_abs": 0.382988214, + "mean_abs": 0.0029186419, + "psnr_db": 69.3785402, + "ref_absmax": 19.453968, + "rel_max": 0.0196868944, + "scaled_max_abs": 0.0196868944 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.8/Add_output_0" + }, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_ratio": 323.014009, + "index": 10, + "metrics": { + "corr": 0.999936314, + "finite": true, + "max_abs": 0.112882942, + "mean_abs": 0.001360916, + "psnr_db": 62.3047508, + "ref_absmax": 3.49467635, + "rel_max": 0.0323014009, + "scaled_max_abs": 0.0323014009 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.9/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_ratio": 309.938331, + "index": 11, + "metrics": { + "corr": 0.999951373, + "finite": true, + "max_abs": 0.115901411, + "mean_abs": 0.00143116498, + "psnr_db": 62.6086873, + "ref_absmax": 3.73949909, + "rel_max": 0.0309938331, + "scaled_max_abs": 0.0309938331 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.10/Add_output_0" + }, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_ratio": 274.591132, + "index": 12, + "metrics": { + "corr": 0.999952514, + "finite": true, + "max_abs": 0.124522269, + "mean_abs": 0.00169769792, + "psnr_db": 63.065576, + "ref_absmax": 4.53482485, + "rel_max": 0.0274591132, + "scaled_max_abs": 0.0274591132 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.11/Add_output_0" + }, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_ratio": 266.957319, + "index": 13, + "metrics": { + "corr": 0.999957376, + "finite": true, + "max_abs": 0.269620538, + "mean_abs": 0.000834750617, + "psnr_db": 67.2963, + "ref_absmax": 10.099762, + "rel_max": 0.0266957319, + "scaled_max_abs": 0.0266957319 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.12/features.12.2/HardSwish_output_0" + }, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_ratio": 93.8092904, + "index": 14, + "metrics": { + "corr": 0.999984058, + "finite": true, + "max_abs": 0.0492115021, + "mean_abs": 0.000526654113, + "psnr_db": 68.169747, + "ref_absmax": 5.24590921, + "rel_max": 0.00938092904, + "scaled_max_abs": 0.00938092904 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "near_zero", + "index": 27 + } + }, + { + "band_ratio": 48.0306535, + "index": 15, + "metrics": { + "corr": 0.999989975, + "finite": true, + "max_abs": 0.117121339, + "mean_abs": 0.00323244529, + "psnr_db": 69.2834384, + "ref_absmax": 24.3847065, + "rel_max": 0.00480306535, + "scaled_max_abs": 0.00480306535 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.875, + "band_ratio": 94.1277861, + "metrics": { + "corr": 0.999967689, + "finite": true, + "max_abs": 0.169666767, + "mean_abs": 0.00540276715, + "psnr_db": 62.9240043, + "ref_absmax": 18.0251522, + "rel_max": 0.00941277861, + "scaled_max_abs": 0.00941277861 + }, + "status": "fail", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + }, + "first_fail_index": 5, + "n_judged": 16, + "n_taps": 16, + "taps": [ + { + "band_ratio": 0.0, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 11.5288897, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.00362482631, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.12735748e-05, + "mean_abs": 1.91186026e-07, + "psnr_db": 167.001893, + "ref_absmax": 169.038651, + "rel_max": 3.62482631e-07, + "scaled_max_abs": 3.62482631e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.0/features.0.2/HardSwish_output_0" + }, + "status": "pass", + "tap": "net.features.0" + }, + { + "band_ratio": 0.00790382455, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.52859497e-05, + "mean_abs": 1.02470507e-06, + "psnr_db": 152.38333, + "ref_absmax": 44.644146, + "rel_max": 7.90382455e-07, + "scaled_max_abs": 7.90382455e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.1/block/block.2/block.2.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.1" + }, + { + "band_ratio": 0.00969570773, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.96831131e-05, + "mean_abs": 1.73306984e-06, + "psnr_db": 144.957341, + "ref_absmax": 30.6146946, + "rel_max": 9.69570773e-07, + "scaled_max_abs": 9.69570773e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.2/block/block.2/block.2.0/Conv_output_0" + }, + "status": "pass", + "tap": "net.features.2" + }, + { + "band_ratio": 0.02888357, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.55786896e-05, + "mean_abs": 3.29638873e-06, + "psnr_db": 139.315817, + "ref_absmax": 26.1666718, + "rel_max": 2.888357e-06, + "scaled_max_abs": 2.888357e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.3/Add_output_0" + }, + "status": "pass", + "tap": "net.features.3" + }, + { + "band_ratio": 60.1789962, + "index": 5, + "metrics": { + "corr": 0.999932921, + "finite": true, + "max_abs": 0.117355585, + "mean_abs": 0.00400797188, + "psnr_db": 67.4739353, + "ref_absmax": 19.5010872, + "rel_max": 0.00601789962, + "scaled_max_abs": 0.00601789962 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.4/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.4", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + }, + { + "band_ratio": 85.7127688, + "index": 6, + "metrics": { + "corr": 0.999900669, + "finite": true, + "max_abs": 0.257533431, + "mean_abs": 0.00479303976, + "psnr_db": 68.1121021, + "ref_absmax": 30.0460987, + "rel_max": 0.00857127688, + "scaled_max_abs": 0.00857127688 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.5/Add_output_0" + }, + "status": "fail", + "tap": "net.features.5", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_ratio": 85.5903277, + "index": 7, + "metrics": { + "corr": 0.99997811, + "finite": true, + "max_abs": 0.579277039, + "mean_abs": 0.00585937952, + "psnr_db": 75.4557158, + "ref_absmax": 67.6801987, + "rel_max": 0.00855903277, + "scaled_max_abs": 0.00855903277 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.6/Add_output_0" + }, + "status": "fail", + "tap": "net.features.6", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_ratio": 156.088464, + "index": 8, + "metrics": { + "corr": 0.999964026, + "finite": true, + "max_abs": 0.269801021, + "mean_abs": 0.00222672867, + "psnr_db": 70.98172, + "ref_absmax": 17.2851353, + "rel_max": 0.0156088464, + "scaled_max_abs": 0.0156088464 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.7/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.7", + "worst_probe": { + "category": "near_zero", + "index": 27 + } + }, + { + "band_ratio": 234.831796, + "index": 9, + "metrics": { + "corr": 0.999962317, + "finite": true, + "max_abs": 0.392705441, + "mean_abs": 0.00237654333, + "psnr_db": 69.8119721, + "ref_absmax": 16.7228394, + "rel_max": 0.0234831796, + "scaled_max_abs": 0.0234831796 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.8/Add_output_0" + }, + "status": "fail", + "tap": "net.features.8", + "worst_probe": { + "category": "near_zero", + "index": 27 + } + }, + { + "band_ratio": 519.050398, + "index": 10, + "metrics": { + "corr": 0.99993915, + "finite": true, + "max_abs": 0.140546173, + "mean_abs": 0.00123371998, + "psnr_db": 60.5994652, + "ref_absmax": 2.7077558, + "rel_max": 0.0519050398, + "scaled_max_abs": 0.0519050398 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.9/block/block.3/block.3.0/Conv_output_0" + }, + "status": "fail", + "tap": "net.features.9", + "worst_probe": { + "category": "near_zero", + "index": 27 + } + }, + { + "band_ratio": 416.553609, + "index": 11, + "metrics": { + "corr": 0.999941958, + "finite": true, + "max_abs": 0.136853218, + "mean_abs": 0.00156173541, + "psnr_db": 60.2067003, + "ref_absmax": 3.28536868, + "rel_max": 0.0416553609, + "scaled_max_abs": 0.0416553609 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.10/Add_output_0" + }, + "status": "fail", + "tap": "net.features.10", + "worst_probe": { + "category": "near_zero", + "index": 27 + } + }, + { + "band_ratio": 380.445953, + "index": 12, + "metrics": { + "corr": 0.99994539, + "finite": true, + "max_abs": 0.151021361, + "mean_abs": 0.00180539502, + "psnr_db": 60.8108013, + "ref_absmax": 3.9695878, + "rel_max": 0.0380445953, + "scaled_max_abs": 0.0380445953 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.11/Add_output_0" + }, + "status": "fail", + "tap": "net.features.11", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + }, + { + "band_ratio": 344.018248, + "index": 13, + "metrics": { + "corr": 0.999941622, + "finite": true, + "max_abs": 0.318494797, + "mean_abs": 0.000849541594, + "psnr_db": 65.5838466, + "ref_absmax": 9.25807858, + "rel_max": 0.0344018248, + "scaled_max_abs": 0.0344018248 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/features/features.12/features.12.2/HardSwish_output_0" + }, + "status": "fail", + "tap": "net.features.12", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + }, + { + "band_ratio": 148.593315, + "index": 14, + "metrics": { + "corr": 0.999969782, + "finite": true, + "max_abs": 0.0771125555, + "mean_abs": 0.000605794738, + "psnr_db": 65.6157118, + "ref_absmax": 5.18950367, + "rel_max": 0.0148593315, + "scaled_max_abs": 0.0148593315 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + }, + { + "band_ratio": 94.1277861, + "index": 15, + "metrics": { + "corr": 0.999967689, + "finite": true, + "max_abs": 0.169666767, + "mean_abs": 0.00540276715, + "psnr_db": 62.9240043, + "ref_absmax": 18.0251522, + "rel_max": 0.00941277861, + "scaled_max_abs": 0.00941277861 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.classifier", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp32", + "id": "mobilenet_v3_small__pool_divisor__onnx_fp32", + "model": "mobilenet_v3_small", + "path": "onnx", + "variant": "pool_divisor" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/resnet18__baked_shape__coreml_fp16.json b/bench/verdicts_e2e_gated/resnet18__baked_shape__coreml_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..796b59e650248e1e6f9a564f78abe436e2f71224 --- /dev/null +++ b/bench/verdicts_e2e_gated/resnet18__baked_shape__coreml_fp16.json @@ -0,0 +1,760 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [ + "inputs[0]: dtype float16 (declared float32)", + "outputs[0]: dtype float16 (declared float32)" + ], + "status": "precision_narrowing" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "status": "flag" + } + }, + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "input_85_cast_fp16", + "basis": "nominal shape 224 inside band; shape 192 over band", + "index": 7, + "neighbourhood": [ + { + "band_ratio": 0.398626786, + "index": 6, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_73_cast_fp16" + }, + "status": "pass", + "tap": "net.layer3.0" + }, + { + "band_ratio": 1.209288, + "index": 7, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85_cast_fp16" + }, + "status": "fail", + "tap": "net.layer3.1" + }, + { + "band_ratio": 2.06168257, + "index": 8, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_99_cast_fp16" + }, + "status": "fail", + "tap": "net.layer4.0" + } + ], + "shape": 192, + "tap": "net.layer3.1" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "e47371cbc43dba7f9207ee7699b4b583bce68f17c626f53c218b445b82fa7494", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "aa676247fae9c779d0ab1c7cd4fb20d3d1c91b615ff304ed67889a259a1af32e", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D6", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 26.746274, + "metrics": { + "corr": 0.999971803, + "finite": true, + "max_abs": 6.18419075, + "mean_abs": 0.451475455, + "psnr_db": 35.2596445, + "ref_absmax": 23.1216908, + "rel_max": 0.26746274, + "scaled_max_abs": 0.26746274 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 7, + "n_judged": 12, + "n_taps": 12, + "taps": [ + { + "band_ratio": 0.117570499, + "index": 0, + "metrics": { + "corr": 0.999999914, + "finite": true, + "max_abs": 0.0135545731, + "mean_abs": 0.000674526699, + "psnr_db": 83.5827466, + "ref_absmax": 11.5288897, + "rel_max": 0.00117570499, + "scaled_max_abs": 0.00117570499 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.459322342, + "index": 1, + "metrics": { + "corr": 0.999996447, + "finite": true, + "max_abs": 0.0424165726, + "mean_abs": 0.000952223367, + "psnr_db": 75.0364552, + "ref_absmax": 9.23459816, + "rel_max": 0.00459322342, + "scaled_max_abs": 0.00459322342 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_9_cast_fp16" + }, + "status": "pass", + "tap": "net.maxpool" + }, + { + "band_ratio": 0.480211137, + "index": 2, + "metrics": { + "corr": 0.99998717, + "finite": true, + "max_abs": 0.0764093399, + "mean_abs": 0.00215436701, + "psnr_db": 73.3099338, + "ref_absmax": 15.9116135, + "rel_max": 0.00480211137, + "scaled_max_abs": 0.00480211137 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_21_cast_fp16" + }, + "status": "pass", + "tap": "net.layer1.0" + }, + { + "band_ratio": 0.441904939, + "index": 3, + "metrics": { + "corr": 0.999962955, + "finite": true, + "max_abs": 0.0831634402, + "mean_abs": 0.0038022016, + "psnr_db": 69.3862926, + "ref_absmax": 18.8193054, + "rel_max": 0.00441904939, + "scaled_max_abs": 0.00441904939 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_33_cast_fp16" + }, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_ratio": 0.482464821, + "index": 4, + "metrics": { + "corr": 0.999939928, + "finite": true, + "max_abs": 0.0564466715, + "mean_abs": 0.00186217433, + "psnr_db": 69.8477445, + "ref_absmax": 11.699645, + "rel_max": 0.00482464821, + "scaled_max_abs": 0.00482464821 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_47_cast_fp16" + }, + "status": "pass", + "tap": "net.layer2.0" + }, + { + "band_ratio": 0.589862113, + "index": 5, + "metrics": { + "corr": 0.999930102, + "finite": true, + "max_abs": 0.0685622394, + "mean_abs": 0.00200145403, + "psnr_db": 69.0183736, + "ref_absmax": 11.623435, + "rel_max": 0.00589862113, + "scaled_max_abs": 0.00589862113 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59_cast_fp16" + }, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_ratio": 0.398626786, + "index": 6, + "metrics": { + "corr": 0.999943674, + "finite": true, + "max_abs": 0.054576993, + "mean_abs": 0.00120694028, + "psnr_db": 74.2042645, + "ref_absmax": 13.6912508, + "rel_max": 0.00398626786, + "scaled_max_abs": 0.00398626786 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_73_cast_fp16" + }, + "status": "pass", + "tap": "net.layer3.0" + }, + { + "band_ratio": 1.209288, + "index": 7, + "metrics": { + "corr": 0.999914514, + "finite": true, + "max_abs": 0.100722998, + "mean_abs": 0.00143564133, + "psnr_db": 67.8457217, + "ref_absmax": 8.32911587, + "rel_max": 0.01209288, + "scaled_max_abs": 0.01209288 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85_cast_fp16" + }, + "status": "fail", + "tap": "net.layer3.1", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + }, + { + "band_ratio": 2.06168257, + "index": 8, + "metrics": { + "corr": 0.999844894, + "finite": true, + "max_abs": 0.125895381, + "mean_abs": 0.000886009569, + "psnr_db": 65.7722773, + "ref_absmax": 6.10643864, + "rel_max": 0.0206168257, + "scaled_max_abs": 0.0206168257 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_99_cast_fp16" + }, + "status": "fail", + "tap": "net.layer4.0", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_ratio": 1.4049191, + "index": 9, + "metrics": { + "corr": 0.999917714, + "finite": true, + "max_abs": 0.2492342, + "mean_abs": 0.00654935488, + "psnr_db": 61.7269115, + "ref_absmax": 17.7401104, + "rel_max": 0.014049191, + "scaled_max_abs": 0.014049191 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_3_cast_fp16" + }, + "status": "fail", + "tap": "net.layer4.1", + "worst_probe": { + "category": "wide_range", + "index": 21 + } + }, + { + "band_ratio": 26.298472, + "index": 10, + "metrics": { + "corr": 0.999970868, + "finite": true, + "max_abs": 2.868536, + "mean_abs": 0.140787554, + "psnr_db": 31.3286088, + "ref_absmax": 10.9076147, + "rel_max": 0.26298472, + "scaled_max_abs": 0.26298472 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_x_cast_fp16" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "wide_range", + "index": 21 + } + }, + { + "band_ratio": 26.746274, + "index": 11, + "metrics": { + "corr": 0.999971803, + "finite": true, + "max_abs": 6.18419075, + "mean_abs": 0.451475455, + "psnr_db": 35.2596445, + "ref_absmax": 23.1216908, + "rel_max": 0.26746274, + "scaled_max_abs": 0.26746274 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.652165202, + "metrics": { + "corr": 0.999976106, + "finite": true, + "max_abs": 0.139695168, + "mean_abs": 0.01166934, + "psnr_db": 66.9644292, + "ref_absmax": 21.4202118, + "rel_max": 0.00652165202, + "scaled_max_abs": 0.00652165202 + }, + "status": "pass" + }, + "first_fail_index": 7, + "n_judged": 12, + "n_taps": 12, + "taps": [ + { + "band_ratio": 0.116213884, + "index": 0, + "metrics": { + "corr": 0.999999912, + "finite": true, + "max_abs": 0.0133981705, + "mean_abs": 0.000679588388, + "psnr_db": 83.6184843, + "ref_absmax": 11.5288897, + "rel_max": 0.00116213884, + "scaled_max_abs": 0.00116213884 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.430958027, + "index": 1, + "metrics": { + "corr": 0.999996278, + "finite": true, + "max_abs": 0.0362386703, + "mean_abs": 0.000924325333, + "psnr_db": 74.6037105, + "ref_absmax": 8.40886307, + "rel_max": 0.00430958027, + "scaled_max_abs": 0.00430958027 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_9_cast_fp16" + }, + "status": "pass", + "tap": "net.maxpool" + }, + { + "band_ratio": 0.384801236, + "index": 2, + "metrics": { + "corr": 0.999985791, + "finite": true, + "max_abs": 0.0657682419, + "mean_abs": 0.00216025527, + "psnr_db": 73.9813907, + "ref_absmax": 17.0914841, + "rel_max": 0.00384801236, + "scaled_max_abs": 0.00384801236 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_21_cast_fp16" + }, + "status": "pass", + "tap": "net.layer1.0" + }, + { + "band_ratio": 0.48244139, + "index": 3, + "metrics": { + "corr": 0.999957868, + "finite": true, + "max_abs": 0.0905132294, + "mean_abs": 0.003858105, + "psnr_db": 69.2665621, + "ref_absmax": 18.7614975, + "rel_max": 0.0048244139, + "scaled_max_abs": 0.0048244139 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_33_cast_fp16" + }, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_ratio": 0.485763828, + "index": 4, + "metrics": { + "corr": 0.999932954, + "finite": true, + "max_abs": 0.0540696979, + "mean_abs": 0.00188201915, + "psnr_db": 69.3375532, + "ref_absmax": 11.1308613, + "rel_max": 0.00485763828, + "scaled_max_abs": 0.00485763828 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_47_cast_fp16" + }, + "status": "pass", + "tap": "net.layer2.0" + }, + { + "band_ratio": 0.605789942, + "index": 5, + "metrics": { + "corr": 0.999922136, + "finite": true, + "max_abs": 0.068922922, + "mean_abs": 0.0019962136, + "psnr_db": 68.8164661, + "ref_absmax": 11.3773632, + "rel_max": 0.00605789942, + "scaled_max_abs": 0.00605789942 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59_cast_fp16" + }, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_ratio": 0.577717049, + "index": 6, + "metrics": { + "corr": 0.999937803, + "finite": true, + "max_abs": 0.0689224005, + "mean_abs": 0.00120167353, + "psnr_db": 73.0529363, + "ref_absmax": 11.930131, + "rel_max": 0.00577717049, + "scaled_max_abs": 0.00577717049 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_73_cast_fp16" + }, + "status": "pass", + "tap": "net.layer3.0" + }, + { + "band_ratio": 1.71483417, + "index": 7, + "metrics": { + "corr": 0.999901973, + "finite": true, + "max_abs": 0.119288564, + "mean_abs": 0.00145777084, + "psnr_db": 66.2038957, + "ref_absmax": 6.95627403, + "rel_max": 0.0171483417, + "scaled_max_abs": 0.0171483417 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85_cast_fp16" + }, + "status": "fail", + "tap": "net.layer3.1", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_ratio": 2.43476768, + "index": 8, + "metrics": { + "corr": 0.999831858, + "finite": true, + "max_abs": 0.11771512, + "mean_abs": 0.00085839442, + "psnr_db": 63.9868246, + "ref_absmax": 4.8347578, + "rel_max": 0.0243476768, + "scaled_max_abs": 0.0243476768 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_99_cast_fp16" + }, + "status": "fail", + "tap": "net.layer4.0", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_ratio": 1.29596729, + "index": 9, + "metrics": { + "corr": 0.999905255, + "finite": true, + "max_abs": 0.274329185, + "mean_abs": 0.00667376417, + "psnr_db": 62.9871787, + "ref_absmax": 21.1679096, + "rel_max": 0.0129596729, + "scaled_max_abs": 0.0129596729 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_3_cast_fp16" + }, + "status": "fail", + "tap": "net.layer4.1", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_ratio": 0.85002375, + "index": 10, + "metrics": { + "corr": 0.999972488, + "finite": true, + "max_abs": 0.0910148621, + "mean_abs": 0.0036676624, + "psnr_db": 63.7343799, + "ref_absmax": 10.7073317, + "rel_max": 0.0085002375, + "scaled_max_abs": 0.0085002375 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_x_cast_fp16" + }, + "status": "pass", + "tap": "net.avgpool" + }, + { + "band_ratio": 0.652165202, + "index": 11, + "metrics": { + "corr": 0.999976106, + "finite": true, + "max_abs": 0.139695168, + "mean_abs": 0.01166934, + "psnr_db": 66.9644292, + "ref_absmax": 21.4202118, + "rel_max": 0.00652165202, + "scaled_max_abs": 0.00652165202 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "pass", + "tap": "net.fc" + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp16", + "id": "resnet18__baked_shape__coreml_fp16", + "model": "resnet18", + "path": "coreml", + "variant": "baked_shape" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/resnet18__baked_shape__coreml_fp32.json b/bench/verdicts_e2e_gated/resnet18__baked_shape__coreml_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..253fcfc178ccb2c195a43a4e5d85ea2eb88dbc76 --- /dev/null +++ b/bench/verdicts_e2e_gated/resnet18__baked_shape__coreml_fp32.json @@ -0,0 +1,733 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "status": "flag" + } + }, + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "_inversed_x", + "basis": "nominal shape 224 inside band; shape 192 over band", + "index": 10, + "neighbourhood": [ + { + "band_ratio": 0.0193529097, + "index": 9, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_3" + }, + "status": "pass", + "tap": "net.layer4.1" + }, + { + "band_ratio": 2653.06126, + "index": 10, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_x" + }, + "status": "fail", + "tap": "net.avgpool" + }, + { + "band_ratio": 2648.76458, + "index": 11, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc" + } + ], + "shape": 192, + "tap": "net.avgpool" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "84cbfe32f87c7eafdc7d82101e7e329d479ac0dd941d73f797631cf25c0cbf74", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "133b5f0442afcb4e07765159debccf827b4ad7305a3fc3b8c09fc35b3f47bbd5", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D6", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 2648.76458, + "metrics": { + "corr": 0.9999971, + "finite": true, + "max_abs": 6.12439156, + "mean_abs": 0.452428902, + "psnr_db": 35.2508754, + "ref_absmax": 23.1216908, + "rel_max": 0.264876458, + "scaled_max_abs": 0.264876458 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 10, + "n_judged": 12, + "n_taps": 12, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.26638033e-08, + "psnr_db": 163.904618, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.00671267222, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.19888306e-06, + "mean_abs": 1.42858947e-07, + "psnr_db": 151.281443, + "ref_absmax": 9.23459816, + "rel_max": 6.71267222e-07, + "scaled_max_abs": 6.71267222e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_9" + }, + "status": "pass", + "tap": "net.maxpool" + }, + { + "band_ratio": 0.00719228872, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.14440918e-05, + "mean_abs": 3.2933011e-07, + "psnr_db": 149.380229, + "ref_absmax": 15.9116135, + "rel_max": 7.19228872e-07, + "scaled_max_abs": 7.19228872e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_21" + }, + "status": "pass", + "tap": "net.layer1.0" + }, + { + "band_ratio": 0.0124787974, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.348423e-05, + "mean_abs": 6.32533143e-07, + "psnr_db": 144.082559, + "ref_absmax": 18.8193054, + "rel_max": 1.24787974e-06, + "scaled_max_abs": 1.24787974e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_33" + }, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_ratio": 0.0114755159, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.34259462e-05, + "mean_abs": 2.99279633e-07, + "psnr_db": 145.301524, + "ref_absmax": 11.699645, + "rel_max": 1.14755159e-06, + "scaled_max_abs": 1.14755159e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_47" + }, + "status": "pass", + "tap": "net.layer2.0" + }, + { + "band_ratio": 0.0116661354, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.35600567e-05, + "mean_abs": 3.19807066e-07, + "psnr_db": 144.565243, + "ref_absmax": 11.623435, + "rel_max": 1.16661354e-06, + "scaled_max_abs": 1.16661354e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59" + }, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_ratio": 0.00661729607, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.05990601e-06, + "mean_abs": 1.70566675e-07, + "psnr_db": 151.659576, + "ref_absmax": 13.6912508, + "rel_max": 6.61729607e-07, + "scaled_max_abs": 6.61729607e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_73" + }, + "status": "pass", + "tap": "net.layer3.0" + }, + { + "band_ratio": 0.0166023355, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.38282776e-05, + "mean_abs": 1.94893743e-07, + "psnr_db": 145.928397, + "ref_absmax": 8.32911587, + "rel_max": 1.66023355e-06, + "scaled_max_abs": 1.66023355e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85" + }, + "status": "pass", + "tap": "net.layer3.1" + }, + { + "band_ratio": 0.0128844546, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.86781311e-06, + "mean_abs": 1.13572418e-07, + "psnr_db": 144.887986, + "ref_absmax": 6.10643864, + "rel_max": 1.28844546e-06, + "scaled_max_abs": 1.28844546e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_99" + }, + "status": "pass", + "tap": "net.layer4.0" + }, + { + "band_ratio": 0.0193529097, + "index": 9, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.43322754e-05, + "mean_abs": 9.23204479e-07, + "psnr_db": 139.217695, + "ref_absmax": 17.7401104, + "rel_max": 1.93529097e-06, + "scaled_max_abs": 1.93529097e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_3" + }, + "status": "pass", + "tap": "net.layer4.1" + }, + { + "band_ratio": 2653.06126, + "index": 10, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.893857, + "mean_abs": 0.140890004, + "psnr_db": 31.3228536, + "ref_absmax": 10.9076147, + "rel_max": 0.265306126, + "scaled_max_abs": 0.265306126 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_x" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "wide_range", + "index": 21 + } + }, + { + "band_ratio": 2648.76458, + "index": 11, + "metrics": { + "corr": 0.9999971, + "finite": true, + "max_abs": 6.12439156, + "mean_abs": 0.452428902, + "psnr_db": 35.2508754, + "ref_absmax": 23.1216908, + "rel_max": 0.264876458, + "scaled_max_abs": 0.264876458 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.00801399065, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.71661377e-05, + "mean_abs": 1.59114503e-06, + "psnr_db": 144.269715, + "ref_absmax": 21.4202118, + "rel_max": 8.01399065e-07, + "scaled_max_abs": 8.01399065e-07 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 12, + "n_taps": 12, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.2793459e-08, + "psnr_db": 164.013874, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0064503639, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.42402267e-06, + "mean_abs": 1.38510049e-07, + "psnr_db": 150.857668, + "ref_absmax": 8.40886307, + "rel_max": 6.4503639e-07, + "scaled_max_abs": 6.4503639e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_9" + }, + "status": "pass", + "tap": "net.maxpool" + }, + { + "band_ratio": 0.00781175021, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33514404e-05, + "mean_abs": 3.27880737e-07, + "psnr_db": 150.126665, + "ref_absmax": 17.0914841, + "rel_max": 7.81175021e-07, + "scaled_max_abs": 7.81175021e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_21" + }, + "status": "pass", + "tap": "net.layer1.0" + }, + { + "band_ratio": 0.0116912359, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.19345093e-05, + "mean_abs": 6.39059208e-07, + "psnr_db": 143.983405, + "ref_absmax": 18.7614975, + "rel_max": 1.16912359e-06, + "scaled_max_abs": 1.16912359e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_33" + }, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_ratio": 0.0118343281, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.31726265e-05, + "mean_abs": 3.03505749e-07, + "psnr_db": 144.774145, + "ref_absmax": 11.1308613, + "rel_max": 1.18343281e-06, + "scaled_max_abs": 1.18343281e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_47" + }, + "status": "pass", + "tap": "net.layer2.0" + }, + { + "band_ratio": 0.0120134076, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.36680901e-05, + "mean_abs": 3.21417715e-07, + "psnr_db": 144.296148, + "ref_absmax": 11.3773632, + "rel_max": 1.20134076e-06, + "scaled_max_abs": 1.20134076e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59" + }, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_ratio": 0.00919290381, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.09672546e-05, + "mean_abs": 1.72904926e-07, + "psnr_db": 150.340637, + "ref_absmax": 11.930131, + "rel_max": 9.19290381e-07, + "scaled_max_abs": 9.19290381e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_73" + }, + "status": "pass", + "tap": "net.layer3.0" + }, + { + "band_ratio": 0.0276761671, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.92523003e-05, + "mean_abs": 2.00977305e-07, + "psnr_db": 144.094785, + "ref_absmax": 6.95627403, + "rel_max": 2.76761671e-06, + "scaled_max_abs": 2.76761671e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85" + }, + "status": "pass", + "tap": "net.layer3.1" + }, + { + "band_ratio": 0.0208349319, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.0073185e-05, + "mean_abs": 1.15847494e-07, + "psnr_db": 142.566423, + "ref_absmax": 4.8347578, + "rel_max": 2.08349319e-06, + "scaled_max_abs": 2.08349319e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_99" + }, + "status": "pass", + "tap": "net.layer4.0" + }, + { + "band_ratio": 0.0180211336, + "index": 9, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.81469727e-05, + "mean_abs": 9.53743426e-07, + "psnr_db": 140.320539, + "ref_absmax": 21.1679096, + "rel_max": 1.80211336e-06, + "scaled_max_abs": 1.80211336e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_3" + }, + "status": "pass", + "tap": "net.layer4.1" + }, + { + "band_ratio": 0.00801606705, + "index": 10, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.58306885e-06, + "mean_abs": 5.16518875e-07, + "psnr_db": 141.00871, + "ref_absmax": 10.7073317, + "rel_max": 8.01606705e-07, + "scaled_max_abs": 8.01606705e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_x" + }, + "status": "pass", + "tap": "net.avgpool" + }, + { + "band_ratio": 0.00801399065, + "index": 11, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.71661377e-05, + "mean_abs": 1.59114503e-06, + "psnr_db": 144.269715, + "ref_absmax": 21.4202118, + "rel_max": 8.01399065e-07, + "scaled_max_abs": 8.01399065e-07 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "pass", + "tap": "net.fc" + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp32", + "id": "resnet18__baked_shape__coreml_fp32", + "model": "resnet18", + "path": "coreml", + "variant": "baked_shape" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/resnet18__baked_shape__litert_fp16.json b/bench/verdicts_e2e_gated/resnet18__baked_shape__litert_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..02d6028c5aa306f79205d095bb64eaf967baf66b --- /dev/null +++ b/bench/verdicts_e2e_gated/resnet18__baked_shape__litert_fp16.json @@ -0,0 +1,866 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 8.01471716e-05, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.71661377e-05, + "mean_abs": 1.32579838e-06, + "psnr_db": 145.461536, + "ref_absmax": 21.4182701, + "rel_max": 8.01471716e-07, + "scaled_max_abs": 8.01471716e-07 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 27, + "outputs": [ + "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models.res", + "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.linear.Linear_fc;1_dequant", + "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.B", + "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.B" + ] + }, + { + "inputs": 43, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 2, + "n_ops_total": 60, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "status": "flag" + } + }, + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/zoo.BakedMeanPool_avgpool;1", + "basis": "nominal shape 224 inside band; shape 192 over band", + "index": 10, + "neighbourhood": [ + { + "band_ratio": 0.121889732, + "index": 9, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer4.1" + }, + { + "band_ratio": 3499.54959, + "index": 10, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/zoo.BakedMeanPool_avgpool;1" + }, + "status": "fail", + "tap": "net.avgpool" + }, + { + "band_ratio": 26.5085327, + "index": 11, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.fc" + } + ], + "shape": 192, + "tap": "net.avgpool" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "3d069217881c55867b86c83c36ea9b7c42f9545c4f9013c35bf515d628dc2b81", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "8d2974be0ffdfd9646dac16768c8f2eaa45593bd0207920e3d4230bc7750498d", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D6", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 26.5085327, + "metrics": { + "corr": 0.999996881, + "finite": true, + "max_abs": 6.12922096, + "mean_abs": 0.45262532, + "psnr_db": 35.246858, + "ref_absmax": 23.1216908, + "rel_max": 0.265085327, + "scaled_max_abs": 0.265085327 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 10, + "n_judged": 12, + "n_taps": 12, + "taps": [ + { + "band_ratio": 8.27203959e-06, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.26638033e-08, + "psnr_db": 163.904618, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0552685286, + "index": 1, + "metrics": { + "corr": 0.999999962, + "finite": true, + "max_abs": 0.00510382652, + "mean_abs": 7.6244338e-05, + "psnr_db": 94.6749001, + "ref_absmax": 9.23459816, + "rel_max": 0.000552685286, + "scaled_max_abs": 0.000552685286 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.MaxPool2d_maxpool;2" + }, + "status": "pass", + "tap": "net.maxpool" + }, + { + "band_ratio": 0.0285533862, + "index": 2, + "metrics": { + "corr": 0.999999915, + "finite": true, + "max_abs": 0.00454330444, + "mean_abs": 0.000158366689, + "psnr_db": 95.091453, + "ref_absmax": 15.9116135, + "rel_max": 0.000285533862, + "scaled_max_abs": 0.000285533862 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer1.0" + }, + { + "band_ratio": 0.0262599506, + "index": 3, + "metrics": { + "corr": 0.999999807, + "finite": true, + "max_abs": 0.00494194031, + "mean_abs": 0.000244943041, + "psnr_db": 92.1941427, + "ref_absmax": 18.8193054, + "rel_max": 0.000262599506, + "scaled_max_abs": 0.000262599506 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_ratio": 0.0526554237, + "index": 4, + "metrics": { + "corr": 0.999999711, + "finite": true, + "max_abs": 0.00616049767, + "mean_abs": 0.000116616282, + "psnr_db": 93.01523, + "ref_absmax": 11.699645, + "rel_max": 0.000526554237, + "scaled_max_abs": 0.000526554237 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer2.0" + }, + { + "band_ratio": 0.0620361493, + "index": 5, + "metrics": { + "corr": 0.999999676, + "finite": true, + "max_abs": 0.00721073151, + "mean_abs": 0.000130509692, + "psnr_db": 92.3595398, + "ref_absmax": 11.623435, + "rel_max": 0.000620361493, + "scaled_max_abs": 0.000620361493 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_ratio": 0.0244031295, + "index": 6, + "metrics": { + "corr": 0.999999722, + "finite": true, + "max_abs": 0.00334109366, + "mean_abs": 8.5855404e-05, + "psnr_db": 97.27591, + "ref_absmax": 13.6912508, + "rel_max": 0.000244031295, + "scaled_max_abs": 0.000244031295 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer3.0" + }, + { + "band_ratio": 0.0515205535, + "index": 7, + "metrics": { + "corr": 0.999999649, + "finite": true, + "max_abs": 0.0042912066, + "mean_abs": 9.51070798e-05, + "psnr_db": 91.7208003, + "ref_absmax": 8.32911587, + "rel_max": 0.000515205535, + "scaled_max_abs": 0.000515205535 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer3.1" + }, + { + "band_ratio": 0.117556982, + "index": 8, + "metrics": { + "corr": 0.999999304, + "finite": true, + "max_abs": 0.007178545, + "mean_abs": 6.1036483e-05, + "psnr_db": 89.2698291, + "ref_absmax": 6.10643864, + "rel_max": 0.00117556982, + "scaled_max_abs": 0.00117556982 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer4.0" + }, + { + "band_ratio": 0.121889732, + "index": 9, + "metrics": { + "corr": 0.999999557, + "finite": true, + "max_abs": 0.021623373, + "mean_abs": 0.00049812914, + "psnr_db": 84.290483, + "ref_absmax": 17.7401104, + "rel_max": 0.00121889732, + "scaled_max_abs": 0.00121889732 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer4.1" + }, + { + "band_ratio": 3499.54959, + "index": 10, + "metrics": { + "corr": 0.999999775, + "finite": true, + "max_abs": 381.717385, + "mean_abs": 18.5836569, + "psnr_db": -11.0820615, + "ref_absmax": 10.9076147, + "rel_max": 34.9954959, + "scaled_max_abs": 34.9954959 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/zoo.BakedMeanPool_avgpool;1" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "wide_range", + "index": 22 + } + }, + { + "band_ratio": 26.5085327, + "index": 11, + "metrics": { + "corr": 0.999996881, + "finite": true, + "max_abs": 6.12922096, + "mean_abs": 0.45262532, + "psnr_db": 35.246858, + "ref_absmax": 23.1216908, + "rel_max": 0.265085327, + "scaled_max_abs": 0.265085327 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.0479681862, + "metrics": { + "corr": 0.9999998, + "finite": true, + "max_abs": 0.0102748871, + "mean_abs": 0.00113285037, + "psnr_db": 87.5940613, + "ref_absmax": 21.4202118, + "rel_max": 0.000479681862, + "scaled_max_abs": 0.000479681862 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 12, + "n_taps": 12, + "taps": [ + { + "band_ratio": 8.27203959e-06, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.2793459e-08, + "psnr_db": 164.013874, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0583793374, + "index": 1, + "metrics": { + "corr": 0.999999956, + "finite": true, + "max_abs": 0.00490903854, + "mean_abs": 7.63929271e-05, + "psnr_db": 93.8421926, + "ref_absmax": 8.40886307, + "rel_max": 0.000583793374, + "scaled_max_abs": 0.000583793374 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.MaxPool2d_maxpool;2" + }, + "status": "pass", + "tap": "net.maxpool" + }, + { + "band_ratio": 0.0274063399, + "index": 2, + "metrics": { + "corr": 0.999999901, + "finite": true, + "max_abs": 0.00468415022, + "mean_abs": 0.000161921874, + "psnr_db": 95.5433913, + "ref_absmax": 17.0914841, + "rel_max": 0.000274063399, + "scaled_max_abs": 0.000274063399 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer1.0" + }, + { + "band_ratio": 0.0251223373, + "index": 3, + "metrics": { + "corr": 0.999999774, + "finite": true, + "max_abs": 0.00471332669, + "mean_abs": 0.000250456457, + "psnr_db": 91.9597734, + "ref_absmax": 18.7614975, + "rel_max": 0.000251223373, + "scaled_max_abs": 0.000251223373 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_ratio": 0.0592551772, + "index": 4, + "metrics": { + "corr": 0.999999672, + "finite": true, + "max_abs": 0.00659561157, + "mean_abs": 0.000118937706, + "psnr_db": 92.4349706, + "ref_absmax": 11.1308613, + "rel_max": 0.000592551772, + "scaled_max_abs": 0.000592551772 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer2.0" + }, + { + "band_ratio": 0.0609826631, + "index": 5, + "metrics": { + "corr": 0.999999644, + "finite": true, + "max_abs": 0.00693821907, + "mean_abs": 0.000130281217, + "psnr_db": 92.2134029, + "ref_absmax": 11.3773632, + "rel_max": 0.000609826631, + "scaled_max_abs": 0.000609826631 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_ratio": 0.0279544214, + "index": 6, + "metrics": { + "corr": 0.999999683, + "finite": true, + "max_abs": 0.00333499908, + "mean_abs": 8.74087713e-05, + "psnr_db": 95.9804734, + "ref_absmax": 11.930131, + "rel_max": 0.000279544214, + "scaled_max_abs": 0.000279544214 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer3.0" + }, + { + "band_ratio": 0.0620957223, + "index": 7, + "metrics": { + "corr": 0.999999592, + "finite": true, + "max_abs": 0.00431954861, + "mean_abs": 9.86995916e-05, + "psnr_db": 90.0056449, + "ref_absmax": 6.95627403, + "rel_max": 0.000620957223, + "scaled_max_abs": 0.000620957223 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer3.1" + }, + { + "band_ratio": 0.15225034, + "index": 8, + "metrics": { + "corr": 0.999999218, + "finite": true, + "max_abs": 0.00736093521, + "mean_abs": 6.06419468e-05, + "psnr_db": 87.3266954, + "ref_absmax": 4.8347578, + "rel_max": 0.0015225034, + "scaled_max_abs": 0.0015225034 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer4.0" + }, + { + "band_ratio": 0.0953705138, + "index": 9, + "metrics": { + "corr": 0.999999449, + "finite": true, + "max_abs": 0.0201879442, + "mean_abs": 0.000519985361, + "psnr_db": 85.3111292, + "ref_absmax": 21.1679096, + "rel_max": 0.000953705138, + "scaled_max_abs": 0.000953705138 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer4.1" + }, + { + "band_ratio": 0.0629439398, + "index": 10, + "metrics": { + "corr": 0.999999746, + "finite": true, + "max_abs": 0.00673961639, + "mean_abs": 0.00037416964, + "psnr_db": 83.9774555, + "ref_absmax": 10.7073317, + "rel_max": 0.000629439398, + "scaled_max_abs": 0.000629439398 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/zoo.BakedMeanPool_avgpool;;zoo.Source/torchvision.models.resnet.ResNet_net/zoo.BakedMeanPool_avgpool;1" + }, + "status": "pass", + "tap": "net.avgpool" + }, + { + "band_ratio": 0.0479681862, + "index": 11, + "metrics": { + "corr": 0.9999998, + "finite": true, + "max_abs": 0.0102748871, + "mean_abs": 0.00113285037, + "psnr_db": 87.5940613, + "ref_absmax": 21.4202118, + "rel_max": 0.000479681862, + "scaled_max_abs": 0.000479681862 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "pass", + "tap": "net.fc" + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp16", + "id": "resnet18__baked_shape__litert_fp16", + "model": "resnet18", + "path": "litert", + "variant": "baked_shape" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/resnet18__baked_shape__litert_fp32.json b/bench/verdicts_e2e_gated/resnet18__baked_shape__litert_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..671e12e7d7a97eed6d870189048f6042cec4ac79 --- /dev/null +++ b/bench/verdicts_e2e_gated/resnet18__baked_shape__litert_fp32.json @@ -0,0 +1,863 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 0.00790268663, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.69277191e-05, + "mean_abs": 1.31826861e-06, + "psnr_db": 145.77134, + "ref_absmax": 21.420208, + "rel_max": 7.90268663e-07, + "scaled_max_abs": 7.90268663e-07 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 7, + "outputs": [ + "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models.res" + ] + }, + { + "inputs": 43, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 2, + "n_ops_total": 39, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "status": "flag" + } + }, + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/zoo.BakedMeanPool_avgpool;1", + "basis": "nominal shape 224 inside band; shape 192 over band", + "index": 10, + "neighbourhood": [ + { + "band_ratio": 0.0180089576, + "index": 9, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer4.1" + }, + { + "band_ratio": 349999.836, + "index": 10, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/zoo.BakedMeanPool_avgpool;1" + }, + "status": "fail", + "tap": "net.avgpool" + }, + { + "band_ratio": 2648.76376, + "index": 11, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.fc" + } + ], + "shape": 192, + "tap": "net.avgpool" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "f338620c9f7966ee8ce7f39fc6fe13372f7557f8f3427f0b24795711b8156dbd", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "688080e91b21b7268b2d1d38c3895e9cf228b42212c011df252fb079d4ffb559", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D6", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 2648.76376, + "metrics": { + "corr": 0.9999971, + "finite": true, + "max_abs": 6.12438965, + "mean_abs": 0.452429064, + "psnr_db": 35.2508717, + "ref_absmax": 23.1216908, + "rel_max": 0.264876376, + "scaled_max_abs": 0.264876376 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 10, + "n_judged": 12, + "n_taps": 12, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.26638033e-08, + "psnr_db": 163.904618, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.00645449252, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.96046448e-06, + "mean_abs": 1.11272893e-07, + "psnr_db": 152.577894, + "ref_absmax": 9.23459816, + "rel_max": 6.45449252e-07, + "scaled_max_abs": 6.45449252e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.MaxPool2d_maxpool;2" + }, + "status": "pass", + "tap": "net.maxpool" + }, + { + "band_ratio": 0.00659293132, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.04904175e-05, + "mean_abs": 2.97101586e-07, + "psnr_db": 150.017551, + "ref_absmax": 15.9116135, + "rel_max": 6.59293132e-07, + "scaled_max_abs": 6.59293132e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer1.0" + }, + { + "band_ratio": 0.0113386028, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.13384628e-05, + "mean_abs": 5.66449512e-07, + "psnr_db": 144.989362, + "ref_absmax": 18.8193054, + "rel_max": 1.13386028e-06, + "scaled_max_abs": 1.13386028e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_ratio": 0.0107495398, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.257658e-05, + "mean_abs": 2.663497e-07, + "psnr_db": 146.20977, + "ref_absmax": 11.699645, + "rel_max": 1.07495398e-06, + "scaled_max_abs": 1.07495398e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer2.0" + }, + { + "band_ratio": 0.0111789781, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.29938126e-05, + "mean_abs": 2.84333162e-07, + "psnr_db": 145.489246, + "ref_absmax": 11.623435, + "rel_max": 1.11789781e-06, + "scaled_max_abs": 1.11789781e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_ratio": 0.00835868977, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.14440918e-05, + "mean_abs": 1.51939911e-07, + "psnr_db": 152.454047, + "ref_absmax": 13.6912508, + "rel_max": 8.35868977e-07, + "scaled_max_abs": 8.35868977e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer3.0" + }, + { + "band_ratio": 0.0137398638, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.14440918e-05, + "mean_abs": 1.74168702e-07, + "psnr_db": 146.72667, + "ref_absmax": 8.32911587, + "rel_max": 1.37398638e-06, + "scaled_max_abs": 1.37398638e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer3.1" + }, + { + "band_ratio": 0.0135189163, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.2552433e-06, + "mean_abs": 1.02009437e-07, + "psnr_db": 145.664112, + "ref_absmax": 6.10643864, + "rel_max": 1.35189163e-06, + "scaled_max_abs": 1.35189163e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer4.0" + }, + { + "band_ratio": 0.0180089576, + "index": 9, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.19480896e-05, + "mean_abs": 7.93566727e-07, + "psnr_db": 140.393878, + "ref_absmax": 17.7401104, + "rel_max": 1.80089576e-06, + "scaled_max_abs": 1.80089576e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer4.1" + }, + { + "band_ratio": 349999.836, + "index": 10, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 381.766335, + "mean_abs": 18.5866352, + "psnr_db": -11.0835587, + "ref_absmax": 10.9076147, + "rel_max": 34.9999836, + "scaled_max_abs": 34.9999836 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/zoo.BakedMeanPool_avgpool;1" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "wide_range", + "index": 22 + } + }, + { + "band_ratio": 2648.76376, + "index": 11, + "metrics": { + "corr": 0.9999971, + "finite": true, + "max_abs": 6.12438965, + "mean_abs": 0.452429064, + "psnr_db": 35.2508717, + "ref_absmax": 23.1216908, + "rel_max": 0.264876376, + "scaled_max_abs": 0.264876376 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.00534266043, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.14440918e-05, + "mean_abs": 1.26083469e-06, + "psnr_db": 146.577169, + "ref_absmax": 21.4202118, + "rel_max": 5.34266043e-07, + "scaled_max_abs": 5.34266043e-07 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 12, + "n_taps": 12, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.2793459e-08, + "psnr_db": 164.013874, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.00623771454, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.24520874e-06, + "mean_abs": 1.07515782e-07, + "psnr_db": 152.185232, + "ref_absmax": 8.40886307, + "rel_max": 6.23771454e-07, + "scaled_max_abs": 6.23771454e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.MaxPool2d_maxpool;2" + }, + "status": "pass", + "tap": "net.maxpool" + }, + { + "band_ratio": 0.00892771453, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.52587891e-05, + "mean_abs": 2.97063275e-07, + "psnr_db": 150.741408, + "ref_absmax": 17.0914841, + "rel_max": 8.92771453e-07, + "scaled_max_abs": 8.92771453e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer1.0" + }, + { + "band_ratio": 0.0123901685, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.32458115e-05, + "mean_abs": 5.73300881e-07, + "psnr_db": 144.862399, + "ref_absmax": 18.7614975, + "rel_max": 1.23901685e-06, + "scaled_max_abs": 1.23901685e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_ratio": 0.0104688287, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.16527081e-05, + "mean_abs": 2.70043333e-07, + "psnr_db": 145.645301, + "ref_absmax": 11.1308613, + "rel_max": 1.04688287e-06, + "scaled_max_abs": 1.04688287e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer2.0" + }, + { + "band_ratio": 0.0117088976, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33216381e-05, + "mean_abs": 2.86939477e-07, + "psnr_db": 145.151554, + "ref_absmax": 11.3773632, + "rel_max": 1.17088976e-06, + "scaled_max_abs": 1.17088976e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_ratio": 0.0125902813, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.50203705e-05, + "mean_abs": 1.53900826e-07, + "psnr_db": 151.136934, + "ref_absmax": 11.930131, + "rel_max": 1.25902813e-06, + "scaled_max_abs": 1.25902813e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer3.0" + }, + { + "band_ratio": 0.0185079012, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.28746033e-05, + "mean_abs": 1.77238474e-07, + "psnr_db": 145.061981, + "ref_absmax": 6.95627403, + "rel_max": 1.85079012e-06, + "scaled_max_abs": 1.85079012e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer3.1" + }, + { + "band_ratio": 0.0172597069, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.34465027e-06, + "mean_abs": 9.99396693e-08, + "psnr_db": 143.730764, + "ref_absmax": 4.8347578, + "rel_max": 1.72597069e-06, + "scaled_max_abs": 1.72597069e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer4.0" + }, + { + "band_ratio": 0.0144169069, + "index": 9, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.05175781e-05, + "mean_abs": 7.78311787e-07, + "psnr_db": 142.147521, + "ref_absmax": 21.1679096, + "rel_max": 1.44169069e-06, + "scaled_max_abs": 1.44169069e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer4.1" + }, + { + "band_ratio": 0.00823873558, + "index": 10, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.82148743e-06, + "mean_abs": 4.31332652e-07, + "psnr_db": 142.896002, + "ref_absmax": 10.7073317, + "rel_max": 8.23873558e-07, + "scaled_max_abs": 8.23873558e-07 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/zoo.BakedMeanPool_avgpool;;zoo.Source/torchvision.models.resnet.ResNet_net/zoo.BakedMeanPool_avgpool;1" + }, + "status": "pass", + "tap": "net.avgpool" + }, + { + "band_ratio": 0.00534266043, + "index": 11, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.14440918e-05, + "mean_abs": 1.26083469e-06, + "psnr_db": 146.577169, + "ref_absmax": 21.4202118, + "rel_max": 5.34266043e-07, + "scaled_max_abs": 5.34266043e-07 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "pass", + "tap": "net.fc" + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp32", + "id": "resnet18__baked_shape__litert_fp32", + "model": "resnet18", + "path": "litert", + "variant": "baked_shape" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/resnet18__baked_shape__onnx_fp16.json b/bench/verdicts_e2e_gated/resnet18__baked_shape__onnx_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..f459301f256ac0ef0420d22597707fb9d5a312a2 --- /dev/null +++ b/bench/verdicts_e2e_gated/resnet18__baked_shape__onnx_fp16.json @@ -0,0 +1,733 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "status": "flag" + } + }, + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "/net/avgpool/Div_output_0", + "basis": "nominal shape 224 inside band; shape 192 over band", + "index": 10, + "neighbourhood": [ + { + "band_ratio": 0.158067242, + "index": 9, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer4.1" + }, + { + "band_ratio": 26.5134934, + "index": 10, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/Div_output_0" + }, + "status": "fail", + "tap": "net.avgpool" + }, + { + "band_ratio": 26.5080543, + "index": 11, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc" + } + ], + "shape": 192, + "tap": "net.avgpool" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "22cc4af7c8d987860a6c0dd07f6cbfbec17a36316a9637ff3a7d79fcc73f6fd2", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "d678f204714affed53bcccf299188d323c1fb076d31f679a4da375224ed21423", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D6", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 26.5080543, + "metrics": { + "corr": 0.999996632, + "finite": true, + "max_abs": 6.12911034, + "mean_abs": 0.452623641, + "psnr_db": 35.2467709, + "ref_absmax": 23.1216908, + "rel_max": 0.265080543, + "scaled_max_abs": 0.265080543 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 10, + "n_judged": 12, + "n_taps": 12, + "taps": [ + { + "band_ratio": 0.0441313312, + "index": 0, + "metrics": { + "corr": 0.999999966, + "finite": true, + "max_abs": 0.00508785248, + "mean_abs": 0.000405953078, + "psnr_db": 88.0186903, + "ref_absmax": 11.5288897, + "rel_max": 0.000441313312, + "scaled_max_abs": 0.000441313312 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0640982743, + "index": 1, + "metrics": { + "corr": 0.999999909, + "finite": true, + "max_abs": 0.00591921806, + "mean_abs": 0.000156664105, + "psnr_db": 90.9101891, + "ref_absmax": 9.23459816, + "rel_max": 0.000640982743, + "scaled_max_abs": 0.000640982743 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/maxpool/MaxPool_output_0" + }, + "status": "pass", + "tap": "net.maxpool" + }, + { + "band_ratio": 0.0384577671, + "index": 2, + "metrics": { + "corr": 0.999999849, + "finite": true, + "max_abs": 0.00611925125, + "mean_abs": 0.000234829637, + "psnr_db": 92.5526304, + "ref_absmax": 15.9116135, + "rel_max": 0.000384577671, + "scaled_max_abs": 0.000384577671 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer1.0" + }, + { + "band_ratio": 0.0524185506, + "index": 3, + "metrics": { + "corr": 0.999999705, + "finite": true, + "max_abs": 0.00986480713, + "mean_abs": 0.000332652643, + "psnr_db": 90.3693126, + "ref_absmax": 18.8193054, + "rel_max": 0.000524185506, + "scaled_max_abs": 0.000524185506 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_ratio": 0.0613549091, + "index": 4, + "metrics": { + "corr": 0.999999522, + "finite": true, + "max_abs": 0.00717830658, + "mean_abs": 0.000162431505, + "psnr_db": 90.8349286, + "ref_absmax": 11.699645, + "rel_max": 0.000613549091, + "scaled_max_abs": 0.000613549091 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer2.0" + }, + { + "band_ratio": 0.0555682387, + "index": 5, + "metrics": { + "corr": 0.999999447, + "finite": true, + "max_abs": 0.00645893812, + "mean_abs": 0.000178505766, + "psnr_db": 90.0284719, + "ref_absmax": 11.623435, + "rel_max": 0.000555682387, + "scaled_max_abs": 0.000555682387 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_ratio": 0.0408548376, + "index": 6, + "metrics": { + "corr": 0.999999446, + "finite": true, + "max_abs": 0.00559353828, + "mean_abs": 0.000124051904, + "psnr_db": 94.267843, + "ref_absmax": 13.6912508, + "rel_max": 0.000408548376, + "scaled_max_abs": 0.000408548376 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer3.0" + }, + { + "band_ratio": 0.0652819754, + "index": 7, + "metrics": { + "corr": 0.99999922, + "finite": true, + "max_abs": 0.00543741137, + "mean_abs": 0.000147396744, + "psnr_db": 88.2202678, + "ref_absmax": 8.32911587, + "rel_max": 0.000652819754, + "scaled_max_abs": 0.000652819754 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer3.1" + }, + { + "band_ratio": 0.141629438, + "index": 8, + "metrics": { + "corr": 0.999998468, + "finite": true, + "max_abs": 0.00864851475, + "mean_abs": 9.56121682e-05, + "psnr_db": 85.8471326, + "ref_absmax": 6.10643864, + "rel_max": 0.00141629438, + "scaled_max_abs": 0.00141629438 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer4.0" + }, + { + "band_ratio": 0.158067242, + "index": 9, + "metrics": { + "corr": 0.999998786, + "finite": true, + "max_abs": 0.0280413032, + "mean_abs": 0.000834968418, + "psnr_db": 79.9927633, + "ref_absmax": 17.7401104, + "rel_max": 0.00158067242, + "scaled_max_abs": 0.00158067242 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer4.1" + }, + { + "band_ratio": 26.5134934, + "index": 10, + "metrics": { + "corr": 0.999999309, + "finite": true, + "max_abs": 2.89198971, + "mean_abs": 0.140948914, + "psnr_db": 31.3189234, + "ref_absmax": 10.9076147, + "rel_max": 0.265134934, + "scaled_max_abs": 0.265134934 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/Div_output_0" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "wide_range", + "index": 22 + } + }, + { + "band_ratio": 26.5080543, + "index": 11, + "metrics": { + "corr": 0.999996632, + "finite": true, + "max_abs": 6.12911034, + "mean_abs": 0.452623641, + "psnr_db": 35.2467709, + "ref_absmax": 23.1216908, + "rel_max": 0.265080543, + "scaled_max_abs": 0.265080543 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.0579099869, + "metrics": { + "corr": 0.999999426, + "finite": true, + "max_abs": 0.0124044418, + "mean_abs": 0.00191654657, + "psnr_db": 83.1427478, + "ref_absmax": 21.4202118, + "rel_max": 0.000579099869, + "scaled_max_abs": 0.000579099869 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 12, + "n_taps": 12, + "taps": [ + { + "band_ratio": 0.0439328023, + "index": 0, + "metrics": { + "corr": 0.999999965, + "finite": true, + "max_abs": 0.00506496429, + "mean_abs": 0.000406712054, + "psnr_db": 88.0749992, + "ref_absmax": 11.5288897, + "rel_max": 0.000439328023, + "scaled_max_abs": 0.000439328023 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0650593626, + "index": 1, + "metrics": { + "corr": 0.999999901, + "finite": true, + "max_abs": 0.00547075272, + "mean_abs": 0.000153226313, + "psnr_db": 90.3189603, + "ref_absmax": 8.40886307, + "rel_max": 0.000650593626, + "scaled_max_abs": 0.000650593626 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/maxpool/MaxPool_output_0" + }, + "status": "pass", + "tap": "net.maxpool" + }, + { + "band_ratio": 0.0506201414, + "index": 2, + "metrics": { + "corr": 0.999999831, + "finite": true, + "max_abs": 0.0086517334, + "mean_abs": 0.000236261028, + "psnr_db": 93.1783463, + "ref_absmax": 17.0914841, + "rel_max": 0.000506201414, + "scaled_max_abs": 0.000506201414 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer1.0" + }, + { + "band_ratio": 0.0535356941, + "index": 3, + "metrics": { + "corr": 0.999999662, + "finite": true, + "max_abs": 0.0100440979, + "mean_abs": 0.000337286326, + "psnr_db": 90.2185942, + "ref_absmax": 18.7614975, + "rel_max": 0.000535356941, + "scaled_max_abs": 0.000535356941 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_ratio": 0.0610469266, + "index": 4, + "metrics": { + "corr": 0.999999468, + "finite": true, + "max_abs": 0.00679504871, + "mean_abs": 0.000164360102, + "psnr_db": 90.3342488, + "ref_absmax": 11.1308613, + "rel_max": 0.000610469266, + "scaled_max_abs": 0.000610469266 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer2.0" + }, + { + "band_ratio": 0.0629964887, + "index": 5, + "metrics": { + "corr": 0.999999391, + "finite": true, + "max_abs": 0.00716733932, + "mean_abs": 0.000177770421, + "psnr_db": 89.8777049, + "ref_absmax": 11.3773632, + "rel_max": 0.000629964887, + "scaled_max_abs": 0.000629964887 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_ratio": 0.0475472973, + "index": 6, + "metrics": { + "corr": 0.999999383, + "finite": true, + "max_abs": 0.00567245483, + "mean_abs": 0.000124959044, + "psnr_db": 93.0830986, + "ref_absmax": 11.930131, + "rel_max": 0.000475472973, + "scaled_max_abs": 0.000475472973 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer3.0" + }, + { + "band_ratio": 0.0795143564, + "index": 7, + "metrics": { + "corr": 0.999999133, + "finite": true, + "max_abs": 0.00553123653, + "mean_abs": 0.000148407515, + "psnr_db": 86.7217411, + "ref_absmax": 6.95627403, + "rel_max": 0.000795143564, + "scaled_max_abs": 0.000795143564 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer3.1" + }, + { + "band_ratio": 0.179190277, + "index": 8, + "metrics": { + "corr": 0.999998311, + "finite": true, + "max_abs": 0.00866341591, + "mean_abs": 9.38812919e-05, + "psnr_db": 83.9777606, + "ref_absmax": 4.8347578, + "rel_max": 0.00179190277, + "scaled_max_abs": 0.00179190277 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer4.0" + }, + { + "band_ratio": 0.131329292, + "index": 9, + "metrics": { + "corr": 0.999998568, + "finite": true, + "max_abs": 0.0277996659, + "mean_abs": 0.000860812905, + "psnr_db": 81.1920091, + "ref_absmax": 21.1679096, + "rel_max": 0.00131329292, + "scaled_max_abs": 0.00131329292 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer4.1" + }, + { + "band_ratio": 0.0879095353, + "index": 10, + "metrics": { + "corr": 0.999999265, + "finite": true, + "max_abs": 0.0094127655, + "mean_abs": 0.000650968439, + "psnr_db": 79.4555287, + "ref_absmax": 10.7073317, + "rel_max": 0.000879095353, + "scaled_max_abs": 0.000879095353 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/Div_output_0" + }, + "status": "pass", + "tap": "net.avgpool" + }, + { + "band_ratio": 0.0579099869, + "index": 11, + "metrics": { + "corr": 0.999999426, + "finite": true, + "max_abs": 0.0124044418, + "mean_abs": 0.00191654657, + "psnr_db": 83.1427478, + "ref_absmax": 21.4202118, + "rel_max": 0.000579099869, + "scaled_max_abs": 0.000579099869 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "pass", + "tap": "net.fc" + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp16", + "id": "resnet18__baked_shape__onnx_fp16", + "model": "resnet18", + "path": "onnx", + "variant": "baked_shape" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/resnet18__baked_shape__onnx_fp32.json b/bench/verdicts_e2e_gated/resnet18__baked_shape__onnx_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..d405fbf5107e929f9ab35fadb3588242b428e7ad --- /dev/null +++ b/bench/verdicts_e2e_gated/resnet18__baked_shape__onnx_fp32.json @@ -0,0 +1,733 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "status": "flag" + } + }, + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "/net/avgpool/Div_output_0", + "basis": "nominal shape 224 inside band; shape 192 over band", + "index": 10, + "neighbourhood": [ + { + "band_ratio": 0.0166650055, + "index": 9, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer4.1" + }, + { + "band_ratio": 2653.05951, + "index": 10, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/Div_output_0" + }, + "status": "fail", + "tap": "net.avgpool" + }, + { + "band_ratio": 2648.76458, + "index": 11, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc" + } + ], + "shape": 192, + "tap": "net.avgpool" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "2c456550ada7acba39a722d86ba9d95a0b7c50148e08e39fbedd5576d56e2c5d", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "c1a041662a9117ab3513a057e297992727dc4f7be1425c750cf3dd00262964ae", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D6", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 2648.76458, + "metrics": { + "corr": 0.9999971, + "finite": true, + "max_abs": 6.12439156, + "mean_abs": 0.45242878, + "psnr_db": 35.2508779, + "ref_absmax": 23.1216908, + "rel_max": 0.264876458, + "scaled_max_abs": 0.264876458 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 10, + "n_judged": 12, + "n_taps": 12, + "taps": [ + { + "band_ratio": 0.0, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 11.5288897, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.00645449252, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.96046448e-06, + "mean_abs": 1.02334015e-07, + "psnr_db": 153.063362, + "ref_absmax": 9.23459816, + "rel_max": 6.45449252e-07, + "scaled_max_abs": 6.45449252e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/maxpool/MaxPool_output_0" + }, + "status": "pass", + "tap": "net.maxpool" + }, + { + "band_ratio": 0.00599357393, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-06, + "mean_abs": 2.4274631e-07, + "psnr_db": 151.715113, + "ref_absmax": 15.9116135, + "rel_max": 5.99357393e-07, + "scaled_max_abs": 5.99357393e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer1.0" + }, + { + "band_ratio": 0.010594309, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.99377537e-05, + "mean_abs": 4.59455778e-07, + "psnr_db": 146.75967, + "ref_absmax": 18.8193054, + "rel_max": 1.0594309e-06, + "scaled_max_abs": 1.0594309e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_ratio": 0.00817678267, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.56654549e-06, + "mean_abs": 2.13176991e-07, + "psnr_db": 148.166325, + "ref_absmax": 11.699645, + "rel_max": 8.17678267e-07, + "scaled_max_abs": 8.17678267e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer2.0" + }, + { + "band_ratio": 0.0107943802, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.25467777e-05, + "mean_abs": 2.26584255e-07, + "psnr_db": 147.499631, + "ref_absmax": 11.623435, + "rel_max": 1.07943802e-06, + "scaled_max_abs": 1.07943802e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_ratio": 0.00696557481, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-06, + "mean_abs": 1.19826069e-07, + "psnr_db": 154.575146, + "ref_absmax": 13.6912508, + "rel_max": 6.96557481e-07, + "scaled_max_abs": 6.96557481e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer3.0" + }, + { + "band_ratio": 0.0135967403, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.13248825e-05, + "mean_abs": 1.37776834e-07, + "psnr_db": 148.758922, + "ref_absmax": 8.32911587, + "rel_max": 1.35967403e-06, + "scaled_max_abs": 1.35967403e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer3.1" + }, + { + "band_ratio": 0.0113715072, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.94394112e-06, + "mean_abs": 8.15687287e-08, + "psnr_db": 147.659009, + "ref_absmax": 6.10643864, + "rel_max": 1.13715072e-06, + "scaled_max_abs": 1.13715072e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer4.0" + }, + { + "band_ratio": 0.0166650055, + "index": 9, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.95639038e-05, + "mean_abs": 6.323273e-07, + "psnr_db": 142.45884, + "ref_absmax": 17.7401104, + "rel_max": 1.66650055e-06, + "scaled_max_abs": 1.66650055e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer4.1" + }, + { + "band_ratio": 2653.05951, + "index": 10, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.89385509, + "mean_abs": 0.140889973, + "psnr_db": 31.3228555, + "ref_absmax": 10.9076147, + "rel_max": 0.265305951, + "scaled_max_abs": 0.265305951 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/Div_output_0" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "wide_range", + "index": 22 + } + }, + { + "band_ratio": 2648.76458, + "index": 11, + "metrics": { + "corr": 0.9999971, + "finite": true, + "max_abs": 6.12439156, + "mean_abs": 0.45242878, + "psnr_db": 35.2508779, + "ref_absmax": 23.1216908, + "rel_max": 0.264876458, + "scaled_max_abs": 0.264876458 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.00623310384, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33514404e-05, + "mean_abs": 1.17591019e-06, + "psnr_db": 146.883012, + "ref_absmax": 21.4202118, + "rel_max": 6.23310384e-07, + "scaled_max_abs": 6.23310384e-07 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 12, + "n_taps": 12, + "taps": [ + { + "band_ratio": 0.0, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 11.5288897, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0068047795, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.7220459e-06, + "mean_abs": 9.8498275e-08, + "psnr_db": 152.668994, + "ref_absmax": 8.40886307, + "rel_max": 6.8047795e-07, + "scaled_max_abs": 6.8047795e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/maxpool/MaxPool_output_0" + }, + "status": "pass", + "tap": "net.maxpool" + }, + { + "band_ratio": 0.00781175021, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33514404e-05, + "mean_abs": 2.40416478e-07, + "psnr_db": 152.515216, + "ref_absmax": 17.0914841, + "rel_max": 7.81175021e-07, + "scaled_max_abs": 7.81175021e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer1.0" + }, + { + "band_ratio": 0.010547528, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.97887421e-05, + "mean_abs": 4.61762345e-07, + "psnr_db": 146.71458, + "ref_absmax": 18.7614975, + "rel_max": 1.0547528e-06, + "scaled_max_abs": 1.0547528e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_ratio": 0.0109842378, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.22264028e-05, + "mean_abs": 2.14888521e-07, + "psnr_db": 147.700816, + "ref_absmax": 11.1308613, + "rel_max": 1.09842378e-06, + "scaled_max_abs": 1.09842378e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer2.0" + }, + { + "band_ratio": 0.0116434116, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.32471323e-05, + "mean_abs": 2.26556506e-07, + "psnr_db": 147.285533, + "ref_absmax": 11.3773632, + "rel_max": 1.16434116e-06, + "scaled_max_abs": 1.16434116e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_ratio": 0.00579552632, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.91413879e-06, + "mean_abs": 1.20977114e-07, + "psnr_db": 153.320205, + "ref_absmax": 11.930131, + "rel_max": 5.79552632e-07, + "scaled_max_abs": 5.79552632e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer3.0" + }, + { + "band_ratio": 0.015423251, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.07288361e-05, + "mean_abs": 1.41164467e-07, + "psnr_db": 147.02089, + "ref_absmax": 6.95627403, + "rel_max": 1.5423251e-06, + "scaled_max_abs": 1.5423251e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer3.1" + }, + { + "band_ratio": 0.0175062742, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.46385956e-06, + "mean_abs": 8.13047191e-08, + "psnr_db": 145.514092, + "ref_absmax": 4.8347578, + "rel_max": 1.75062742e-06, + "scaled_max_abs": 1.75062742e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer4.0" + }, + { + "band_ratio": 0.0117137368, + "index": 9, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.47955322e-05, + "mean_abs": 6.50171234e-07, + "psnr_db": 143.607194, + "ref_absmax": 21.1679096, + "rel_max": 1.17137368e-06, + "scaled_max_abs": 1.17137368e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer4.1" + }, + { + "band_ratio": 0.00734806146, + "index": 10, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.86781311e-06, + "mean_abs": 3.66452679e-07, + "psnr_db": 143.844082, + "ref_absmax": 10.7073317, + "rel_max": 7.34806146e-07, + "scaled_max_abs": 7.34806146e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/Div_output_0" + }, + "status": "pass", + "tap": "net.avgpool" + }, + { + "band_ratio": 0.00623310384, + "index": 11, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33514404e-05, + "mean_abs": 1.17591019e-06, + "psnr_db": 146.883012, + "ref_absmax": 21.4202118, + "rel_max": 6.23310384e-07, + "scaled_max_abs": 6.23310384e-07 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "pass", + "tap": "net.fc" + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp32", + "id": "resnet18__baked_shape__onnx_fp32", + "model": "resnet18", + "path": "onnx", + "variant": "baked_shape" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/resnet18__clean__coreml_fp16.json b/bench/verdicts_e2e_gated/resnet18__clean__coreml_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..30977b9c724652354b0419af1b7f2422bce85b89 --- /dev/null +++ b/bench/verdicts_e2e_gated/resnet18__clean__coreml_fp16.json @@ -0,0 +1,704 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": false, + "note": null, + "status": "clear" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [ + "inputs[0]: dtype float16 (declared float32)", + "outputs[0]: dtype float16 (declared float32)" + ], + "status": "precision_narrowing" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "status": "clear" + } + }, + "declared_precision": "fp16", + "first_divergence": null, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "d6e8f11106d7868c4acdddd4c89bb934bd08cc14049682fea972c885765295e4", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "aa676247fae9c779d0ab1c7cd4fb20d3d1c91b615ff304ed67889a259a1af32e", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": null, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.526305587, + "metrics": { + "corr": 0.999974293, + "finite": true, + "max_abs": 0.12169075, + "mean_abs": 0.0123914789, + "psnr_db": 66.5600825, + "ref_absmax": 23.1216908, + "rel_max": 0.00526305587, + "scaled_max_abs": 0.00526305587 + }, + "status": "pass" + }, + "first_fail_index": 7, + "n_judged": 12, + "n_taps": 12, + "taps": [ + { + "band_ratio": 0.117570499, + "index": 0, + "metrics": { + "corr": 0.999999914, + "finite": true, + "max_abs": 0.0135545731, + "mean_abs": 0.000674526699, + "psnr_db": 83.5827466, + "ref_absmax": 11.5288897, + "rel_max": 0.00117570499, + "scaled_max_abs": 0.00117570499 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.459322342, + "index": 1, + "metrics": { + "corr": 0.999996447, + "finite": true, + "max_abs": 0.0424165726, + "mean_abs": 0.000952223367, + "psnr_db": 75.0364552, + "ref_absmax": 9.23459816, + "rel_max": 0.00459322342, + "scaled_max_abs": 0.00459322342 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_9_cast_fp16" + }, + "status": "pass", + "tap": "net.maxpool" + }, + { + "band_ratio": 0.480211137, + "index": 2, + "metrics": { + "corr": 0.99998717, + "finite": true, + "max_abs": 0.0764093399, + "mean_abs": 0.00215436701, + "psnr_db": 73.3099338, + "ref_absmax": 15.9116135, + "rel_max": 0.00480211137, + "scaled_max_abs": 0.00480211137 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_21_cast_fp16" + }, + "status": "pass", + "tap": "net.layer1.0" + }, + { + "band_ratio": 0.441904939, + "index": 3, + "metrics": { + "corr": 0.999962955, + "finite": true, + "max_abs": 0.0831634402, + "mean_abs": 0.0038022016, + "psnr_db": 69.3862926, + "ref_absmax": 18.8193054, + "rel_max": 0.00441904939, + "scaled_max_abs": 0.00441904939 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_33_cast_fp16" + }, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_ratio": 0.482464821, + "index": 4, + "metrics": { + "corr": 0.999939928, + "finite": true, + "max_abs": 0.0564466715, + "mean_abs": 0.00186217433, + "psnr_db": 69.8477445, + "ref_absmax": 11.699645, + "rel_max": 0.00482464821, + "scaled_max_abs": 0.00482464821 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_47_cast_fp16" + }, + "status": "pass", + "tap": "net.layer2.0" + }, + { + "band_ratio": 0.589862113, + "index": 5, + "metrics": { + "corr": 0.999930102, + "finite": true, + "max_abs": 0.0685622394, + "mean_abs": 0.00200145403, + "psnr_db": 69.0183736, + "ref_absmax": 11.623435, + "rel_max": 0.00589862113, + "scaled_max_abs": 0.00589862113 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59_cast_fp16" + }, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_ratio": 0.398626786, + "index": 6, + "metrics": { + "corr": 0.999943674, + "finite": true, + "max_abs": 0.054576993, + "mean_abs": 0.00120694028, + "psnr_db": 74.2042645, + "ref_absmax": 13.6912508, + "rel_max": 0.00398626786, + "scaled_max_abs": 0.00398626786 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_73_cast_fp16" + }, + "status": "pass", + "tap": "net.layer3.0" + }, + { + "band_ratio": 1.209288, + "index": 7, + "metrics": { + "corr": 0.999914514, + "finite": true, + "max_abs": 0.100722998, + "mean_abs": 0.00143564133, + "psnr_db": 67.8457217, + "ref_absmax": 8.32911587, + "rel_max": 0.01209288, + "scaled_max_abs": 0.01209288 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85_cast_fp16" + }, + "status": "fail", + "tap": "net.layer3.1", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + }, + { + "band_ratio": 2.06168257, + "index": 8, + "metrics": { + "corr": 0.999844894, + "finite": true, + "max_abs": 0.125895381, + "mean_abs": 0.000886009569, + "psnr_db": 65.7722773, + "ref_absmax": 6.10643864, + "rel_max": 0.0206168257, + "scaled_max_abs": 0.0206168257 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_99_cast_fp16" + }, + "status": "fail", + "tap": "net.layer4.0", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_ratio": 1.4049191, + "index": 9, + "metrics": { + "corr": 0.999917714, + "finite": true, + "max_abs": 0.2492342, + "mean_abs": 0.00654935488, + "psnr_db": 61.7269115, + "ref_absmax": 17.7401104, + "rel_max": 0.014049191, + "scaled_max_abs": 0.014049191 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_111_cast_fp16" + }, + "status": "fail", + "tap": "net.layer4.1", + "worst_probe": { + "category": "wide_range", + "index": 21 + } + }, + { + "band_ratio": 0.870158006, + "index": 10, + "metrics": { + "corr": 0.999970902, + "finite": true, + "max_abs": 0.0949134827, + "mean_abs": 0.00389845734, + "psnr_db": 63.2187815, + "ref_absmax": 10.9076147, + "rel_max": 0.00870158006, + "scaled_max_abs": 0.00870158006 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "status": "pass", + "tap": "net.avgpool" + }, + { + "band_ratio": 0.526305587, + "index": 11, + "metrics": { + "corr": 0.999974293, + "finite": true, + "max_abs": 0.12169075, + "mean_abs": 0.0123914789, + "psnr_db": 66.5600825, + "ref_absmax": 23.1216908, + "rel_max": 0.00526305587, + "scaled_max_abs": 0.00526305587 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "pass", + "tap": "net.fc" + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.652165202, + "metrics": { + "corr": 0.999976106, + "finite": true, + "max_abs": 0.139695168, + "mean_abs": 0.01166934, + "psnr_db": 66.9644292, + "ref_absmax": 21.4202118, + "rel_max": 0.00652165202, + "scaled_max_abs": 0.00652165202 + }, + "status": "pass" + }, + "first_fail_index": 7, + "n_judged": 12, + "n_taps": 12, + "taps": [ + { + "band_ratio": 0.116213884, + "index": 0, + "metrics": { + "corr": 0.999999912, + "finite": true, + "max_abs": 0.0133981705, + "mean_abs": 0.000679588388, + "psnr_db": 83.6184843, + "ref_absmax": 11.5288897, + "rel_max": 0.00116213884, + "scaled_max_abs": 0.00116213884 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.430958027, + "index": 1, + "metrics": { + "corr": 0.999996278, + "finite": true, + "max_abs": 0.0362386703, + "mean_abs": 0.000924325333, + "psnr_db": 74.6037105, + "ref_absmax": 8.40886307, + "rel_max": 0.00430958027, + "scaled_max_abs": 0.00430958027 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_9_cast_fp16" + }, + "status": "pass", + "tap": "net.maxpool" + }, + { + "band_ratio": 0.384801236, + "index": 2, + "metrics": { + "corr": 0.999985791, + "finite": true, + "max_abs": 0.0657682419, + "mean_abs": 0.00216025527, + "psnr_db": 73.9813907, + "ref_absmax": 17.0914841, + "rel_max": 0.00384801236, + "scaled_max_abs": 0.00384801236 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_21_cast_fp16" + }, + "status": "pass", + "tap": "net.layer1.0" + }, + { + "band_ratio": 0.48244139, + "index": 3, + "metrics": { + "corr": 0.999957868, + "finite": true, + "max_abs": 0.0905132294, + "mean_abs": 0.003858105, + "psnr_db": 69.2665621, + "ref_absmax": 18.7614975, + "rel_max": 0.0048244139, + "scaled_max_abs": 0.0048244139 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_33_cast_fp16" + }, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_ratio": 0.485763828, + "index": 4, + "metrics": { + "corr": 0.999932954, + "finite": true, + "max_abs": 0.0540696979, + "mean_abs": 0.00188201915, + "psnr_db": 69.3375532, + "ref_absmax": 11.1308613, + "rel_max": 0.00485763828, + "scaled_max_abs": 0.00485763828 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_47_cast_fp16" + }, + "status": "pass", + "tap": "net.layer2.0" + }, + { + "band_ratio": 0.605789942, + "index": 5, + "metrics": { + "corr": 0.999922136, + "finite": true, + "max_abs": 0.068922922, + "mean_abs": 0.0019962136, + "psnr_db": 68.8164661, + "ref_absmax": 11.3773632, + "rel_max": 0.00605789942, + "scaled_max_abs": 0.00605789942 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59_cast_fp16" + }, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_ratio": 0.577717049, + "index": 6, + "metrics": { + "corr": 0.999937803, + "finite": true, + "max_abs": 0.0689224005, + "mean_abs": 0.00120167353, + "psnr_db": 73.0529363, + "ref_absmax": 11.930131, + "rel_max": 0.00577717049, + "scaled_max_abs": 0.00577717049 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_73_cast_fp16" + }, + "status": "pass", + "tap": "net.layer3.0" + }, + { + "band_ratio": 1.71483417, + "index": 7, + "metrics": { + "corr": 0.999901973, + "finite": true, + "max_abs": 0.119288564, + "mean_abs": 0.00145777084, + "psnr_db": 66.2038957, + "ref_absmax": 6.95627403, + "rel_max": 0.0171483417, + "scaled_max_abs": 0.0171483417 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85_cast_fp16" + }, + "status": "fail", + "tap": "net.layer3.1", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_ratio": 2.43476768, + "index": 8, + "metrics": { + "corr": 0.999831858, + "finite": true, + "max_abs": 0.11771512, + "mean_abs": 0.00085839442, + "psnr_db": 63.9868246, + "ref_absmax": 4.8347578, + "rel_max": 0.0243476768, + "scaled_max_abs": 0.0243476768 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_99_cast_fp16" + }, + "status": "fail", + "tap": "net.layer4.0", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_ratio": 1.29596729, + "index": 9, + "metrics": { + "corr": 0.999905255, + "finite": true, + "max_abs": 0.274329185, + "mean_abs": 0.00667376417, + "psnr_db": 62.9871787, + "ref_absmax": 21.1679096, + "rel_max": 0.0129596729, + "scaled_max_abs": 0.0129596729 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_111_cast_fp16" + }, + "status": "fail", + "tap": "net.layer4.1", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_ratio": 0.85002375, + "index": 10, + "metrics": { + "corr": 0.999972488, + "finite": true, + "max_abs": 0.0910148621, + "mean_abs": 0.0036676624, + "psnr_db": 63.7343799, + "ref_absmax": 10.7073317, + "rel_max": 0.0085002375, + "scaled_max_abs": 0.0085002375 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "status": "pass", + "tap": "net.avgpool" + }, + { + "band_ratio": 0.652165202, + "index": 11, + "metrics": { + "corr": 0.999976106, + "finite": true, + "max_abs": 0.139695168, + "mean_abs": 0.01166934, + "psnr_db": 66.9644292, + "ref_absmax": 21.4202118, + "rel_max": 0.00652165202, + "scaled_max_abs": 0.00652165202 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "pass", + "tap": "net.fc" + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp16", + "id": "resnet18__clean__coreml_fp16", + "model": "resnet18", + "path": "coreml", + "variant": "clean" + }, + "verdict": "PASS" +} diff --git a/bench/verdicts_e2e_gated/resnet18__clean__coreml_fp32.json b/bench/verdicts_e2e_gated/resnet18__clean__coreml_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..fc68336a0f0ae89949e712c485e92862d64584cd --- /dev/null +++ b/bench/verdicts_e2e_gated/resnet18__clean__coreml_fp32.json @@ -0,0 +1,677 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": false, + "note": null, + "status": "clear" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "status": "clear" + } + }, + "declared_precision": "fp32", + "first_divergence": null, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "105dab71b371c7535011c1ba6bef70ff6199e8700a3866025feca2f0340afc70", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "133b5f0442afcb4e07765159debccf827b4ad7305a3fc3b8c09fc35b3f47bbd5", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": null, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.00907409202, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.0980835e-05, + "mean_abs": 1.61414529e-06, + "psnr_db": 144.505227, + "ref_absmax": 23.1216908, + "rel_max": 9.07409202e-07, + "scaled_max_abs": 9.07409202e-07 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 12, + "n_taps": 12, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.26638033e-08, + "psnr_db": 163.904618, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.00671267222, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.19888306e-06, + "mean_abs": 1.42858947e-07, + "psnr_db": 151.281443, + "ref_absmax": 9.23459816, + "rel_max": 6.71267222e-07, + "scaled_max_abs": 6.71267222e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_9" + }, + "status": "pass", + "tap": "net.maxpool" + }, + { + "band_ratio": 0.00719228872, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.14440918e-05, + "mean_abs": 3.2933011e-07, + "psnr_db": 149.380229, + "ref_absmax": 15.9116135, + "rel_max": 7.19228872e-07, + "scaled_max_abs": 7.19228872e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_21" + }, + "status": "pass", + "tap": "net.layer1.0" + }, + { + "band_ratio": 0.0124787974, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.348423e-05, + "mean_abs": 6.32533143e-07, + "psnr_db": 144.082559, + "ref_absmax": 18.8193054, + "rel_max": 1.24787974e-06, + "scaled_max_abs": 1.24787974e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_33" + }, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_ratio": 0.0114755159, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.34259462e-05, + "mean_abs": 2.99279633e-07, + "psnr_db": 145.301524, + "ref_absmax": 11.699645, + "rel_max": 1.14755159e-06, + "scaled_max_abs": 1.14755159e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_47" + }, + "status": "pass", + "tap": "net.layer2.0" + }, + { + "band_ratio": 0.0116661354, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.35600567e-05, + "mean_abs": 3.19807066e-07, + "psnr_db": 144.565243, + "ref_absmax": 11.623435, + "rel_max": 1.16661354e-06, + "scaled_max_abs": 1.16661354e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59" + }, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_ratio": 0.00661729607, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.05990601e-06, + "mean_abs": 1.70566675e-07, + "psnr_db": 151.659576, + "ref_absmax": 13.6912508, + "rel_max": 6.61729607e-07, + "scaled_max_abs": 6.61729607e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_73" + }, + "status": "pass", + "tap": "net.layer3.0" + }, + { + "band_ratio": 0.0166023355, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.38282776e-05, + "mean_abs": 1.94893743e-07, + "psnr_db": 145.928397, + "ref_absmax": 8.32911587, + "rel_max": 1.66023355e-06, + "scaled_max_abs": 1.66023355e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85" + }, + "status": "pass", + "tap": "net.layer3.1" + }, + { + "band_ratio": 0.0128844546, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.86781311e-06, + "mean_abs": 1.13572418e-07, + "psnr_db": 144.887986, + "ref_absmax": 6.10643864, + "rel_max": 1.28844546e-06, + "scaled_max_abs": 1.28844546e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_99" + }, + "status": "pass", + "tap": "net.layer4.0" + }, + { + "band_ratio": 0.0193529097, + "index": 9, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.43322754e-05, + "mean_abs": 9.23204479e-07, + "psnr_db": 139.217695, + "ref_absmax": 17.7401104, + "rel_max": 1.93529097e-06, + "scaled_max_abs": 1.93529097e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_111" + }, + "status": "pass", + "tap": "net.layer4.1" + }, + { + "band_ratio": 0.0083060378, + "index": 10, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.05990601e-06, + "mean_abs": 5.25139081e-07, + "psnr_db": 141.263108, + "ref_absmax": 10.9076147, + "rel_max": 8.3060378e-07, + "scaled_max_abs": 8.3060378e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x" + }, + "status": "pass", + "tap": "net.avgpool" + }, + { + "band_ratio": 0.00907409202, + "index": 11, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.0980835e-05, + "mean_abs": 1.61414529e-06, + "psnr_db": 144.505227, + "ref_absmax": 23.1216908, + "rel_max": 9.07409202e-07, + "scaled_max_abs": 9.07409202e-07 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "pass", + "tap": "net.fc" + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.00801399065, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.71661377e-05, + "mean_abs": 1.59114503e-06, + "psnr_db": 144.269715, + "ref_absmax": 21.4202118, + "rel_max": 8.01399065e-07, + "scaled_max_abs": 8.01399065e-07 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 12, + "n_taps": 12, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.2793459e-08, + "psnr_db": 164.013874, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0064503639, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.42402267e-06, + "mean_abs": 1.38510049e-07, + "psnr_db": 150.857668, + "ref_absmax": 8.40886307, + "rel_max": 6.4503639e-07, + "scaled_max_abs": 6.4503639e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_9" + }, + "status": "pass", + "tap": "net.maxpool" + }, + { + "band_ratio": 0.00781175021, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33514404e-05, + "mean_abs": 3.27880737e-07, + "psnr_db": 150.126665, + "ref_absmax": 17.0914841, + "rel_max": 7.81175021e-07, + "scaled_max_abs": 7.81175021e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_21" + }, + "status": "pass", + "tap": "net.layer1.0" + }, + { + "band_ratio": 0.0116912359, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.19345093e-05, + "mean_abs": 6.39059208e-07, + "psnr_db": 143.983405, + "ref_absmax": 18.7614975, + "rel_max": 1.16912359e-06, + "scaled_max_abs": 1.16912359e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_33" + }, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_ratio": 0.0118343281, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.31726265e-05, + "mean_abs": 3.03505749e-07, + "psnr_db": 144.774145, + "ref_absmax": 11.1308613, + "rel_max": 1.18343281e-06, + "scaled_max_abs": 1.18343281e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_47" + }, + "status": "pass", + "tap": "net.layer2.0" + }, + { + "band_ratio": 0.0120134076, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.36680901e-05, + "mean_abs": 3.21417715e-07, + "psnr_db": 144.296148, + "ref_absmax": 11.3773632, + "rel_max": 1.20134076e-06, + "scaled_max_abs": 1.20134076e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59" + }, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_ratio": 0.00919290381, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.09672546e-05, + "mean_abs": 1.72904926e-07, + "psnr_db": 150.340637, + "ref_absmax": 11.930131, + "rel_max": 9.19290381e-07, + "scaled_max_abs": 9.19290381e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_73" + }, + "status": "pass", + "tap": "net.layer3.0" + }, + { + "band_ratio": 0.0276761671, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.92523003e-05, + "mean_abs": 2.00977305e-07, + "psnr_db": 144.094785, + "ref_absmax": 6.95627403, + "rel_max": 2.76761671e-06, + "scaled_max_abs": 2.76761671e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85" + }, + "status": "pass", + "tap": "net.layer3.1" + }, + { + "band_ratio": 0.0208349319, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.0073185e-05, + "mean_abs": 1.15847494e-07, + "psnr_db": 142.566423, + "ref_absmax": 4.8347578, + "rel_max": 2.08349319e-06, + "scaled_max_abs": 2.08349319e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_99" + }, + "status": "pass", + "tap": "net.layer4.0" + }, + { + "band_ratio": 0.0180211336, + "index": 9, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.81469727e-05, + "mean_abs": 9.53743426e-07, + "psnr_db": 140.320539, + "ref_absmax": 21.1679096, + "rel_max": 1.80211336e-06, + "scaled_max_abs": 1.80211336e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_111" + }, + "status": "pass", + "tap": "net.layer4.1" + }, + { + "band_ratio": 0.00801606705, + "index": 10, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.58306885e-06, + "mean_abs": 5.16518875e-07, + "psnr_db": 141.00871, + "ref_absmax": 10.7073317, + "rel_max": 8.01606705e-07, + "scaled_max_abs": 8.01606705e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x" + }, + "status": "pass", + "tap": "net.avgpool" + }, + { + "band_ratio": 0.00801399065, + "index": 11, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.71661377e-05, + "mean_abs": 1.59114503e-06, + "psnr_db": 144.269715, + "ref_absmax": 21.4202118, + "rel_max": 8.01399065e-07, + "scaled_max_abs": 8.01399065e-07 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "pass", + "tap": "net.fc" + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp32", + "id": "resnet18__clean__coreml_fp32", + "model": "resnet18", + "path": "coreml", + "variant": "clean" + }, + "verdict": "PASS" +} diff --git a/bench/verdicts_e2e_gated/resnet18__clean__litert_fp16.json b/bench/verdicts_e2e_gated/resnet18__clean__litert_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..80c12399ed72a5e367d6b7c1f8df3fca08274822 --- /dev/null +++ b/bench/verdicts_e2e_gated/resnet18__clean__litert_fp16.json @@ -0,0 +1,805 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": false, + "note": null, + "status": "clear" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 8.01471716e-05, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.71661377e-05, + "mean_abs": 1.32579838e-06, + "psnr_db": 145.461536, + "ref_absmax": 21.4182701, + "rel_max": 8.01471716e-07, + "scaled_max_abs": 8.01471716e-07 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 27, + "outputs": [ + "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models.res", + "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.linear.Linear_fc;1_dequant", + "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.B", + "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.B" + ] + }, + { + "inputs": 43, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 2, + "n_ops_total": 60, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "status": "clear" + } + }, + "declared_precision": "fp16", + "first_divergence": null, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "5518083a49acade5bb9995f1d28be7f32b0a23e8e42c5e39dfdbe59cfc6b794d", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "8d2974be0ffdfd9646dac16768c8f2eaa45593bd0207920e3d4230bc7750498d", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": null, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.0469419279, + "metrics": { + "corr": 0.999999821, + "finite": true, + "max_abs": 0.0108537674, + "mean_abs": 0.00112806203, + "psnr_db": 87.8386721, + "ref_absmax": 23.1216908, + "rel_max": 0.000469419279, + "scaled_max_abs": 0.000469419279 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 12, + "n_taps": 12, + "taps": [ + { + "band_ratio": 8.27203959e-06, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.26638033e-08, + "psnr_db": 163.904618, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0552685286, + "index": 1, + "metrics": { + "corr": 0.999999962, + "finite": true, + "max_abs": 0.00510382652, + "mean_abs": 7.6244338e-05, + "psnr_db": 94.6749001, + "ref_absmax": 9.23459816, + "rel_max": 0.000552685286, + "scaled_max_abs": 0.000552685286 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.MaxPool2d_maxpool;2" + }, + "status": "pass", + "tap": "net.maxpool" + }, + { + "band_ratio": 0.0285533862, + "index": 2, + "metrics": { + "corr": 0.999999915, + "finite": true, + "max_abs": 0.00454330444, + "mean_abs": 0.000158366689, + "psnr_db": 95.091453, + "ref_absmax": 15.9116135, + "rel_max": 0.000285533862, + "scaled_max_abs": 0.000285533862 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer1.0" + }, + { + "band_ratio": 0.0262599506, + "index": 3, + "metrics": { + "corr": 0.999999807, + "finite": true, + "max_abs": 0.00494194031, + "mean_abs": 0.000244943041, + "psnr_db": 92.1941427, + "ref_absmax": 18.8193054, + "rel_max": 0.000262599506, + "scaled_max_abs": 0.000262599506 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_ratio": 0.0526554237, + "index": 4, + "metrics": { + "corr": 0.999999711, + "finite": true, + "max_abs": 0.00616049767, + "mean_abs": 0.000116616282, + "psnr_db": 93.01523, + "ref_absmax": 11.699645, + "rel_max": 0.000526554237, + "scaled_max_abs": 0.000526554237 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer2.0" + }, + { + "band_ratio": 0.0620361493, + "index": 5, + "metrics": { + "corr": 0.999999676, + "finite": true, + "max_abs": 0.00721073151, + "mean_abs": 0.000130509692, + "psnr_db": 92.3595398, + "ref_absmax": 11.623435, + "rel_max": 0.000620361493, + "scaled_max_abs": 0.000620361493 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_ratio": 0.0244031295, + "index": 6, + "metrics": { + "corr": 0.999999722, + "finite": true, + "max_abs": 0.00334109366, + "mean_abs": 8.5855404e-05, + "psnr_db": 97.27591, + "ref_absmax": 13.6912508, + "rel_max": 0.000244031295, + "scaled_max_abs": 0.000244031295 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer3.0" + }, + { + "band_ratio": 0.0515205535, + "index": 7, + "metrics": { + "corr": 0.999999649, + "finite": true, + "max_abs": 0.0042912066, + "mean_abs": 9.51070798e-05, + "psnr_db": 91.7208003, + "ref_absmax": 8.32911587, + "rel_max": 0.000515205535, + "scaled_max_abs": 0.000515205535 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer3.1" + }, + { + "band_ratio": 0.117556982, + "index": 8, + "metrics": { + "corr": 0.999999304, + "finite": true, + "max_abs": 0.007178545, + "mean_abs": 6.1036483e-05, + "psnr_db": 89.2698291, + "ref_absmax": 6.10643864, + "rel_max": 0.00117556982, + "scaled_max_abs": 0.00117556982 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer4.0" + }, + { + "band_ratio": 0.121889732, + "index": 9, + "metrics": { + "corr": 0.999999557, + "finite": true, + "max_abs": 0.021623373, + "mean_abs": 0.00049812914, + "psnr_db": 84.290483, + "ref_absmax": 17.7401104, + "rel_max": 0.00121889732, + "scaled_max_abs": 0.00121889732 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer4.1" + }, + { + "band_ratio": 0.0675608743, + "index": 10, + "metrics": { + "corr": 0.999999775, + "finite": true, + "max_abs": 0.00736927986, + "mean_abs": 0.000378536389, + "psnr_db": 84.0350689, + "ref_absmax": 10.9076147, + "rel_max": 0.000675608743, + "scaled_max_abs": 0.000675608743 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;1" + }, + "status": "pass", + "tap": "net.avgpool" + }, + { + "band_ratio": 0.0469419279, + "index": 11, + "metrics": { + "corr": 0.999999821, + "finite": true, + "max_abs": 0.0108537674, + "mean_abs": 0.00112806203, + "psnr_db": 87.8386721, + "ref_absmax": 23.1216908, + "rel_max": 0.000469419279, + "scaled_max_abs": 0.000469419279 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "pass", + "tap": "net.fc" + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.0479681862, + "metrics": { + "corr": 0.9999998, + "finite": true, + "max_abs": 0.0102748871, + "mean_abs": 0.00113285037, + "psnr_db": 87.5940613, + "ref_absmax": 21.4202118, + "rel_max": 0.000479681862, + "scaled_max_abs": 0.000479681862 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 12, + "n_taps": 12, + "taps": [ + { + "band_ratio": 8.27203959e-06, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.2793459e-08, + "psnr_db": 164.013874, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0583793374, + "index": 1, + "metrics": { + "corr": 0.999999956, + "finite": true, + "max_abs": 0.00490903854, + "mean_abs": 7.63929271e-05, + "psnr_db": 93.8421926, + "ref_absmax": 8.40886307, + "rel_max": 0.000583793374, + "scaled_max_abs": 0.000583793374 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.MaxPool2d_maxpool;2" + }, + "status": "pass", + "tap": "net.maxpool" + }, + { + "band_ratio": 0.0274063399, + "index": 2, + "metrics": { + "corr": 0.999999901, + "finite": true, + "max_abs": 0.00468415022, + "mean_abs": 0.000161921874, + "psnr_db": 95.5433913, + "ref_absmax": 17.0914841, + "rel_max": 0.000274063399, + "scaled_max_abs": 0.000274063399 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer1.0" + }, + { + "band_ratio": 0.0251223373, + "index": 3, + "metrics": { + "corr": 0.999999774, + "finite": true, + "max_abs": 0.00471332669, + "mean_abs": 0.000250456457, + "psnr_db": 91.9597734, + "ref_absmax": 18.7614975, + "rel_max": 0.000251223373, + "scaled_max_abs": 0.000251223373 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_ratio": 0.0592551772, + "index": 4, + "metrics": { + "corr": 0.999999672, + "finite": true, + "max_abs": 0.00659561157, + "mean_abs": 0.000118937706, + "psnr_db": 92.4349706, + "ref_absmax": 11.1308613, + "rel_max": 0.000592551772, + "scaled_max_abs": 0.000592551772 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer2.0" + }, + { + "band_ratio": 0.0609826631, + "index": 5, + "metrics": { + "corr": 0.999999644, + "finite": true, + "max_abs": 0.00693821907, + "mean_abs": 0.000130281217, + "psnr_db": 92.2134029, + "ref_absmax": 11.3773632, + "rel_max": 0.000609826631, + "scaled_max_abs": 0.000609826631 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_ratio": 0.0279544214, + "index": 6, + "metrics": { + "corr": 0.999999683, + "finite": true, + "max_abs": 0.00333499908, + "mean_abs": 8.74087713e-05, + "psnr_db": 95.9804734, + "ref_absmax": 11.930131, + "rel_max": 0.000279544214, + "scaled_max_abs": 0.000279544214 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer3.0" + }, + { + "band_ratio": 0.0620957223, + "index": 7, + "metrics": { + "corr": 0.999999592, + "finite": true, + "max_abs": 0.00431954861, + "mean_abs": 9.86995916e-05, + "psnr_db": 90.0056449, + "ref_absmax": 6.95627403, + "rel_max": 0.000620957223, + "scaled_max_abs": 0.000620957223 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer3.1" + }, + { + "band_ratio": 0.15225034, + "index": 8, + "metrics": { + "corr": 0.999999218, + "finite": true, + "max_abs": 0.00736093521, + "mean_abs": 6.06419468e-05, + "psnr_db": 87.3266954, + "ref_absmax": 4.8347578, + "rel_max": 0.0015225034, + "scaled_max_abs": 0.0015225034 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer4.0" + }, + { + "band_ratio": 0.0953705138, + "index": 9, + "metrics": { + "corr": 0.999999449, + "finite": true, + "max_abs": 0.0201879442, + "mean_abs": 0.000519985361, + "psnr_db": 85.3111292, + "ref_absmax": 21.1679096, + "rel_max": 0.000953705138, + "scaled_max_abs": 0.000953705138 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer4.1" + }, + { + "band_ratio": 0.0629439398, + "index": 10, + "metrics": { + "corr": 0.999999746, + "finite": true, + "max_abs": 0.00673961639, + "mean_abs": 0.00037416964, + "psnr_db": 83.9774555, + "ref_absmax": 10.7073317, + "rel_max": 0.000629439398, + "scaled_max_abs": 0.000629439398 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;1" + }, + "status": "pass", + "tap": "net.avgpool" + }, + { + "band_ratio": 0.0479681862, + "index": 11, + "metrics": { + "corr": 0.9999998, + "finite": true, + "max_abs": 0.0102748871, + "mean_abs": 0.00113285037, + "psnr_db": 87.5940613, + "ref_absmax": 21.4202118, + "rel_max": 0.000479681862, + "scaled_max_abs": 0.000479681862 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "pass", + "tap": "net.fc" + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp16", + "id": "resnet18__clean__litert_fp16", + "model": "resnet18", + "path": "litert", + "variant": "clean" + }, + "verdict": "PASS" +} diff --git a/bench/verdicts_e2e_gated/resnet18__clean__litert_fp32.json b/bench/verdicts_e2e_gated/resnet18__clean__litert_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..de7d9ccb1e2f9096651ce0add5fa75ffe176ca37 --- /dev/null +++ b/bench/verdicts_e2e_gated/resnet18__clean__litert_fp32.json @@ -0,0 +1,802 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": false, + "note": null, + "status": "clear" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 0.00790268663, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.69277191e-05, + "mean_abs": 1.31826861e-06, + "psnr_db": 145.77134, + "ref_absmax": 21.420208, + "rel_max": 7.90268663e-07, + "scaled_max_abs": 7.90268663e-07 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 7, + "outputs": [ + "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models.res" + ] + }, + { + "inputs": 43, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 2, + "n_ops_total": 39, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "status": "clear" + } + }, + "declared_precision": "fp32", + "first_divergence": null, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "2ac5bd033ee7691569c748a72538d87fb27c1ac503e12233be0eba9bd6e2cafe", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "688080e91b21b7268b2d1d38c3895e9cf228b42212c011df252fb079d4ffb559", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": null, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.00536196347, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.23977661e-05, + "mean_abs": 1.37574371e-06, + "psnr_db": 145.808931, + "ref_absmax": 23.1216908, + "rel_max": 5.36196347e-07, + "scaled_max_abs": 5.36196347e-07 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 12, + "n_taps": 12, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.26638033e-08, + "psnr_db": 163.904618, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.00645449252, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.96046448e-06, + "mean_abs": 1.11272893e-07, + "psnr_db": 152.577894, + "ref_absmax": 9.23459816, + "rel_max": 6.45449252e-07, + "scaled_max_abs": 6.45449252e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.MaxPool2d_maxpool;2" + }, + "status": "pass", + "tap": "net.maxpool" + }, + { + "band_ratio": 0.00659293132, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.04904175e-05, + "mean_abs": 2.97101586e-07, + "psnr_db": 150.017551, + "ref_absmax": 15.9116135, + "rel_max": 6.59293132e-07, + "scaled_max_abs": 6.59293132e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer1.0" + }, + { + "band_ratio": 0.0113386028, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.13384628e-05, + "mean_abs": 5.66449512e-07, + "psnr_db": 144.989362, + "ref_absmax": 18.8193054, + "rel_max": 1.13386028e-06, + "scaled_max_abs": 1.13386028e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_ratio": 0.0107495398, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.257658e-05, + "mean_abs": 2.663497e-07, + "psnr_db": 146.20977, + "ref_absmax": 11.699645, + "rel_max": 1.07495398e-06, + "scaled_max_abs": 1.07495398e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer2.0" + }, + { + "band_ratio": 0.0111789781, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.29938126e-05, + "mean_abs": 2.84333162e-07, + "psnr_db": 145.489246, + "ref_absmax": 11.623435, + "rel_max": 1.11789781e-06, + "scaled_max_abs": 1.11789781e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_ratio": 0.00835868977, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.14440918e-05, + "mean_abs": 1.51939911e-07, + "psnr_db": 152.454047, + "ref_absmax": 13.6912508, + "rel_max": 8.35868977e-07, + "scaled_max_abs": 8.35868977e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer3.0" + }, + { + "band_ratio": 0.0137398638, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.14440918e-05, + "mean_abs": 1.74168702e-07, + "psnr_db": 146.72667, + "ref_absmax": 8.32911587, + "rel_max": 1.37398638e-06, + "scaled_max_abs": 1.37398638e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer3.1" + }, + { + "band_ratio": 0.0135189163, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.2552433e-06, + "mean_abs": 1.02009437e-07, + "psnr_db": 145.664112, + "ref_absmax": 6.10643864, + "rel_max": 1.35189163e-06, + "scaled_max_abs": 1.35189163e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer4.0" + }, + { + "band_ratio": 0.0180089576, + "index": 9, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.19480896e-05, + "mean_abs": 7.93566727e-07, + "psnr_db": 140.393878, + "ref_absmax": 17.7401104, + "rel_max": 1.80089576e-06, + "scaled_max_abs": 1.80089576e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer4.1" + }, + { + "band_ratio": 0.00874319768, + "index": 10, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-06, + "mean_abs": 4.7473879e-07, + "psnr_db": 141.806416, + "ref_absmax": 10.9076147, + "rel_max": 8.74319768e-07, + "scaled_max_abs": 8.74319768e-07 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;1" + }, + "status": "pass", + "tap": "net.avgpool" + }, + { + "band_ratio": 0.00536196347, + "index": 11, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.23977661e-05, + "mean_abs": 1.37574371e-06, + "psnr_db": 145.808931, + "ref_absmax": 23.1216908, + "rel_max": 5.36196347e-07, + "scaled_max_abs": 5.36196347e-07 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "pass", + "tap": "net.fc" + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.00534266043, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.14440918e-05, + "mean_abs": 1.26083469e-06, + "psnr_db": 146.577169, + "ref_absmax": 21.4202118, + "rel_max": 5.34266043e-07, + "scaled_max_abs": 5.34266043e-07 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 12, + "n_taps": 12, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.2793459e-08, + "psnr_db": 164.013874, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.00623771454, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.24520874e-06, + "mean_abs": 1.07515782e-07, + "psnr_db": 152.185232, + "ref_absmax": 8.40886307, + "rel_max": 6.23771454e-07, + "scaled_max_abs": 6.23771454e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.MaxPool2d_maxpool;2" + }, + "status": "pass", + "tap": "net.maxpool" + }, + { + "band_ratio": 0.00892771453, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.52587891e-05, + "mean_abs": 2.97063275e-07, + "psnr_db": 150.741408, + "ref_absmax": 17.0914841, + "rel_max": 8.92771453e-07, + "scaled_max_abs": 8.92771453e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer1.0" + }, + { + "band_ratio": 0.0123901685, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.32458115e-05, + "mean_abs": 5.73300881e-07, + "psnr_db": 144.862399, + "ref_absmax": 18.7614975, + "rel_max": 1.23901685e-06, + "scaled_max_abs": 1.23901685e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_ratio": 0.0104688287, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.16527081e-05, + "mean_abs": 2.70043333e-07, + "psnr_db": 145.645301, + "ref_absmax": 11.1308613, + "rel_max": 1.04688287e-06, + "scaled_max_abs": 1.04688287e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer2.0" + }, + { + "band_ratio": 0.0117088976, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33216381e-05, + "mean_abs": 2.86939477e-07, + "psnr_db": 145.151554, + "ref_absmax": 11.3773632, + "rel_max": 1.17088976e-06, + "scaled_max_abs": 1.17088976e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_ratio": 0.0125902813, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.50203705e-05, + "mean_abs": 1.53900826e-07, + "psnr_db": 151.136934, + "ref_absmax": 11.930131, + "rel_max": 1.25902813e-06, + "scaled_max_abs": 1.25902813e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer3.0" + }, + { + "band_ratio": 0.0185079012, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.28746033e-05, + "mean_abs": 1.77238474e-07, + "psnr_db": 145.061981, + "ref_absmax": 6.95627403, + "rel_max": 1.85079012e-06, + "scaled_max_abs": 1.85079012e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer3.1" + }, + { + "band_ratio": 0.0172597069, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.34465027e-06, + "mean_abs": 9.99396693e-08, + "psnr_db": 143.730764, + "ref_absmax": 4.8347578, + "rel_max": 1.72597069e-06, + "scaled_max_abs": 1.72597069e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer4.0" + }, + { + "band_ratio": 0.0144169069, + "index": 9, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.05175781e-05, + "mean_abs": 7.78311787e-07, + "psnr_db": 142.147521, + "ref_absmax": 21.1679096, + "rel_max": 1.44169069e-06, + "scaled_max_abs": 1.44169069e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer4.1" + }, + { + "band_ratio": 0.00823873558, + "index": 10, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.82148743e-06, + "mean_abs": 4.31332652e-07, + "psnr_db": 142.896002, + "ref_absmax": 10.7073317, + "rel_max": 8.23873558e-07, + "scaled_max_abs": 8.23873558e-07 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;1" + }, + "status": "pass", + "tap": "net.avgpool" + }, + { + "band_ratio": 0.00534266043, + "index": 11, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.14440918e-05, + "mean_abs": 1.26083469e-06, + "psnr_db": 146.577169, + "ref_absmax": 21.4202118, + "rel_max": 5.34266043e-07, + "scaled_max_abs": 5.34266043e-07 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "pass", + "tap": "net.fc" + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp32", + "id": "resnet18__clean__litert_fp32", + "model": "resnet18", + "path": "litert", + "variant": "clean" + }, + "verdict": "PASS" +} diff --git a/bench/verdicts_e2e_gated/resnet18__clean__onnx_fp16.json b/bench/verdicts_e2e_gated/resnet18__clean__onnx_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..ff660d00c6f3576af7c0400f71a0dac72ec95d82 --- /dev/null +++ b/bench/verdicts_e2e_gated/resnet18__clean__onnx_fp16.json @@ -0,0 +1,677 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": false, + "note": null, + "status": "clear" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "status": "clear" + } + }, + "declared_precision": "fp16", + "first_divergence": null, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "4f79899b2d94647c7a27acca5e2e048d6822448df0daac039062b5f5ac153fb2", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "441b70243dcc6533ecfb651f068a5b92f6a087252f2b8a01eebcf8972fcb76c6", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": null, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.0544321784, + "metrics": { + "corr": 0.999999467, + "finite": true, + "max_abs": 0.01258564, + "mean_abs": 0.0019200106, + "psnr_db": 83.331005, + "ref_absmax": 23.1216908, + "rel_max": 0.000544321784, + "scaled_max_abs": 0.000544321784 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 12, + "n_taps": 12, + "taps": [ + { + "band_ratio": 0.0441313312, + "index": 0, + "metrics": { + "corr": 0.999999966, + "finite": true, + "max_abs": 0.00508785248, + "mean_abs": 0.000405953078, + "psnr_db": 88.0186903, + "ref_absmax": 11.5288897, + "rel_max": 0.000441313312, + "scaled_max_abs": 0.000441313312 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0640982743, + "index": 1, + "metrics": { + "corr": 0.999999909, + "finite": true, + "max_abs": 0.00591921806, + "mean_abs": 0.000156664105, + "psnr_db": 90.9101891, + "ref_absmax": 9.23459816, + "rel_max": 0.000640982743, + "scaled_max_abs": 0.000640982743 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/maxpool/MaxPool_output_0" + }, + "status": "pass", + "tap": "net.maxpool" + }, + { + "band_ratio": 0.0384577671, + "index": 2, + "metrics": { + "corr": 0.999999849, + "finite": true, + "max_abs": 0.00611925125, + "mean_abs": 0.000234829637, + "psnr_db": 92.5526304, + "ref_absmax": 15.9116135, + "rel_max": 0.000384577671, + "scaled_max_abs": 0.000384577671 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer1.0" + }, + { + "band_ratio": 0.0524185506, + "index": 3, + "metrics": { + "corr": 0.999999705, + "finite": true, + "max_abs": 0.00986480713, + "mean_abs": 0.000332652643, + "psnr_db": 90.3693126, + "ref_absmax": 18.8193054, + "rel_max": 0.000524185506, + "scaled_max_abs": 0.000524185506 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_ratio": 0.0613549091, + "index": 4, + "metrics": { + "corr": 0.999999522, + "finite": true, + "max_abs": 0.00717830658, + "mean_abs": 0.000162431505, + "psnr_db": 90.8349286, + "ref_absmax": 11.699645, + "rel_max": 0.000613549091, + "scaled_max_abs": 0.000613549091 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer2.0" + }, + { + "band_ratio": 0.0555682387, + "index": 5, + "metrics": { + "corr": 0.999999447, + "finite": true, + "max_abs": 0.00645893812, + "mean_abs": 0.000178505766, + "psnr_db": 90.0284719, + "ref_absmax": 11.623435, + "rel_max": 0.000555682387, + "scaled_max_abs": 0.000555682387 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_ratio": 0.0408548376, + "index": 6, + "metrics": { + "corr": 0.999999446, + "finite": true, + "max_abs": 0.00559353828, + "mean_abs": 0.000124051904, + "psnr_db": 94.267843, + "ref_absmax": 13.6912508, + "rel_max": 0.000408548376, + "scaled_max_abs": 0.000408548376 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer3.0" + }, + { + "band_ratio": 0.0652819754, + "index": 7, + "metrics": { + "corr": 0.99999922, + "finite": true, + "max_abs": 0.00543741137, + "mean_abs": 0.000147396744, + "psnr_db": 88.2202678, + "ref_absmax": 8.32911587, + "rel_max": 0.000652819754, + "scaled_max_abs": 0.000652819754 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer3.1" + }, + { + "band_ratio": 0.141629438, + "index": 8, + "metrics": { + "corr": 0.999998468, + "finite": true, + "max_abs": 0.00864851475, + "mean_abs": 9.56121682e-05, + "psnr_db": 85.8471326, + "ref_absmax": 6.10643864, + "rel_max": 0.00141629438, + "scaled_max_abs": 0.00141629438 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer4.0" + }, + { + "band_ratio": 0.158067242, + "index": 9, + "metrics": { + "corr": 0.999998786, + "finite": true, + "max_abs": 0.0280413032, + "mean_abs": 0.000834968418, + "psnr_db": 79.9927633, + "ref_absmax": 17.7401104, + "rel_max": 0.00158067242, + "scaled_max_abs": 0.00158067242 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer4.1" + }, + { + "band_ratio": 0.0816352368, + "index": 10, + "metrics": { + "corr": 0.999999318, + "finite": true, + "max_abs": 0.00890445709, + "mean_abs": 0.000658168612, + "psnr_db": 79.4337766, + "ref_absmax": 10.9076147, + "rel_max": 0.000816352368, + "scaled_max_abs": 0.000816352368 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "status": "pass", + "tap": "net.avgpool" + }, + { + "band_ratio": 0.0544321784, + "index": 11, + "metrics": { + "corr": 0.999999467, + "finite": true, + "max_abs": 0.01258564, + "mean_abs": 0.0019200106, + "psnr_db": 83.331005, + "ref_absmax": 23.1216908, + "rel_max": 0.000544321784, + "scaled_max_abs": 0.000544321784 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "pass", + "tap": "net.fc" + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.057913326, + "metrics": { + "corr": 0.999999426, + "finite": true, + "max_abs": 0.0124051571, + "mean_abs": 0.00191654548, + "psnr_db": 83.1427519, + "ref_absmax": 21.4202118, + "rel_max": 0.00057913326, + "scaled_max_abs": 0.00057913326 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 12, + "n_taps": 12, + "taps": [ + { + "band_ratio": 0.0439328023, + "index": 0, + "metrics": { + "corr": 0.999999965, + "finite": true, + "max_abs": 0.00506496429, + "mean_abs": 0.000406712054, + "psnr_db": 88.0749992, + "ref_absmax": 11.5288897, + "rel_max": 0.000439328023, + "scaled_max_abs": 0.000439328023 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0650593626, + "index": 1, + "metrics": { + "corr": 0.999999901, + "finite": true, + "max_abs": 0.00547075272, + "mean_abs": 0.000153226313, + "psnr_db": 90.3189603, + "ref_absmax": 8.40886307, + "rel_max": 0.000650593626, + "scaled_max_abs": 0.000650593626 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/maxpool/MaxPool_output_0" + }, + "status": "pass", + "tap": "net.maxpool" + }, + { + "band_ratio": 0.0506201414, + "index": 2, + "metrics": { + "corr": 0.999999831, + "finite": true, + "max_abs": 0.0086517334, + "mean_abs": 0.000236261028, + "psnr_db": 93.1783463, + "ref_absmax": 17.0914841, + "rel_max": 0.000506201414, + "scaled_max_abs": 0.000506201414 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer1.0" + }, + { + "band_ratio": 0.0535356941, + "index": 3, + "metrics": { + "corr": 0.999999662, + "finite": true, + "max_abs": 0.0100440979, + "mean_abs": 0.000337286326, + "psnr_db": 90.2185942, + "ref_absmax": 18.7614975, + "rel_max": 0.000535356941, + "scaled_max_abs": 0.000535356941 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_ratio": 0.0610469266, + "index": 4, + "metrics": { + "corr": 0.999999468, + "finite": true, + "max_abs": 0.00679504871, + "mean_abs": 0.000164360102, + "psnr_db": 90.3342488, + "ref_absmax": 11.1308613, + "rel_max": 0.000610469266, + "scaled_max_abs": 0.000610469266 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer2.0" + }, + { + "band_ratio": 0.0629964887, + "index": 5, + "metrics": { + "corr": 0.999999391, + "finite": true, + "max_abs": 0.00716733932, + "mean_abs": 0.000177770421, + "psnr_db": 89.8777049, + "ref_absmax": 11.3773632, + "rel_max": 0.000629964887, + "scaled_max_abs": 0.000629964887 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_ratio": 0.0475472973, + "index": 6, + "metrics": { + "corr": 0.999999383, + "finite": true, + "max_abs": 0.00567245483, + "mean_abs": 0.000124959044, + "psnr_db": 93.0830986, + "ref_absmax": 11.930131, + "rel_max": 0.000475472973, + "scaled_max_abs": 0.000475472973 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer3.0" + }, + { + "band_ratio": 0.0795143564, + "index": 7, + "metrics": { + "corr": 0.999999133, + "finite": true, + "max_abs": 0.00553123653, + "mean_abs": 0.000148407515, + "psnr_db": 86.7217411, + "ref_absmax": 6.95627403, + "rel_max": 0.000795143564, + "scaled_max_abs": 0.000795143564 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer3.1" + }, + { + "band_ratio": 0.179190277, + "index": 8, + "metrics": { + "corr": 0.999998311, + "finite": true, + "max_abs": 0.00866341591, + "mean_abs": 9.38812919e-05, + "psnr_db": 83.9777606, + "ref_absmax": 4.8347578, + "rel_max": 0.00179190277, + "scaled_max_abs": 0.00179190277 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer4.0" + }, + { + "band_ratio": 0.131329292, + "index": 9, + "metrics": { + "corr": 0.999998568, + "finite": true, + "max_abs": 0.0277996659, + "mean_abs": 0.000860812905, + "psnr_db": 81.1920091, + "ref_absmax": 21.1679096, + "rel_max": 0.00131329292, + "scaled_max_abs": 0.00131329292 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer4.1" + }, + { + "band_ratio": 0.0879095353, + "index": 10, + "metrics": { + "corr": 0.999999265, + "finite": true, + "max_abs": 0.0094127655, + "mean_abs": 0.000650968439, + "psnr_db": 79.4555287, + "ref_absmax": 10.7073317, + "rel_max": 0.000879095353, + "scaled_max_abs": 0.000879095353 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "status": "pass", + "tap": "net.avgpool" + }, + { + "band_ratio": 0.057913326, + "index": 11, + "metrics": { + "corr": 0.999999426, + "finite": true, + "max_abs": 0.0124051571, + "mean_abs": 0.00191654548, + "psnr_db": 83.1427519, + "ref_absmax": 21.4202118, + "rel_max": 0.00057913326, + "scaled_max_abs": 0.00057913326 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "pass", + "tap": "net.fc" + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp16", + "id": "resnet18__clean__onnx_fp16", + "model": "resnet18", + "path": "onnx", + "variant": "clean" + }, + "verdict": "PASS" +} diff --git a/bench/verdicts_e2e_gated/resnet18__clean__onnx_fp32.json b/bench/verdicts_e2e_gated/resnet18__clean__onnx_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..50e1baf35f38f00ee828b9df5723e1ff340e1d7e --- /dev/null +++ b/bench/verdicts_e2e_gated/resnet18__clean__onnx_fp32.json @@ -0,0 +1,677 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": false, + "note": null, + "status": "clear" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "status": "clear" + } + }, + "declared_precision": "fp32", + "first_divergence": null, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "0336acd37f7ef6f21e21a64d903c059312f09c05544d6ab5ed2b5c4604ad4a40", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "af9b6d09a8b83db8d9c097607605c4641ff4ba98f421f6bdd2d7193a326e55fd", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": null, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.0057744222, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33514404e-05, + "mean_abs": 1.16660814e-06, + "psnr_db": 147.374179, + "ref_absmax": 23.1216908, + "rel_max": 5.7744222e-07, + "scaled_max_abs": 5.7744222e-07 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 12, + "n_taps": 12, + "taps": [ + { + "band_ratio": 0.0, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 11.5288897, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.00645449252, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.96046448e-06, + "mean_abs": 1.02334015e-07, + "psnr_db": 153.063362, + "ref_absmax": 9.23459816, + "rel_max": 6.45449252e-07, + "scaled_max_abs": 6.45449252e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/maxpool/MaxPool_output_0" + }, + "status": "pass", + "tap": "net.maxpool" + }, + { + "band_ratio": 0.00599357393, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-06, + "mean_abs": 2.4274631e-07, + "psnr_db": 151.715113, + "ref_absmax": 15.9116135, + "rel_max": 5.99357393e-07, + "scaled_max_abs": 5.99357393e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer1.0" + }, + { + "band_ratio": 0.010594309, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.99377537e-05, + "mean_abs": 4.59455778e-07, + "psnr_db": 146.75967, + "ref_absmax": 18.8193054, + "rel_max": 1.0594309e-06, + "scaled_max_abs": 1.0594309e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_ratio": 0.00817678267, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.56654549e-06, + "mean_abs": 2.13176991e-07, + "psnr_db": 148.166325, + "ref_absmax": 11.699645, + "rel_max": 8.17678267e-07, + "scaled_max_abs": 8.17678267e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer2.0" + }, + { + "band_ratio": 0.0107943802, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.25467777e-05, + "mean_abs": 2.26584255e-07, + "psnr_db": 147.499631, + "ref_absmax": 11.623435, + "rel_max": 1.07943802e-06, + "scaled_max_abs": 1.07943802e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_ratio": 0.00696557481, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-06, + "mean_abs": 1.19826069e-07, + "psnr_db": 154.575146, + "ref_absmax": 13.6912508, + "rel_max": 6.96557481e-07, + "scaled_max_abs": 6.96557481e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer3.0" + }, + { + "band_ratio": 0.0135967403, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.13248825e-05, + "mean_abs": 1.37776834e-07, + "psnr_db": 148.758922, + "ref_absmax": 8.32911587, + "rel_max": 1.35967403e-06, + "scaled_max_abs": 1.35967403e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer3.1" + }, + { + "band_ratio": 0.0113715072, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.94394112e-06, + "mean_abs": 8.15687287e-08, + "psnr_db": 147.659009, + "ref_absmax": 6.10643864, + "rel_max": 1.13715072e-06, + "scaled_max_abs": 1.13715072e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer4.0" + }, + { + "band_ratio": 0.0166650055, + "index": 9, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.95639038e-05, + "mean_abs": 6.323273e-07, + "psnr_db": 142.45884, + "ref_absmax": 17.7401104, + "rel_max": 1.66650055e-06, + "scaled_max_abs": 1.66650055e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer4.1" + }, + { + "band_ratio": 0.00546449855, + "index": 10, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.96046448e-06, + "mean_abs": 3.7175894e-07, + "psnr_db": 144.266611, + "ref_absmax": 10.9076147, + "rel_max": 5.46449855e-07, + "scaled_max_abs": 5.46449855e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "status": "pass", + "tap": "net.avgpool" + }, + { + "band_ratio": 0.0057744222, + "index": 11, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33514404e-05, + "mean_abs": 1.16660814e-06, + "psnr_db": 147.374179, + "ref_absmax": 23.1216908, + "rel_max": 5.7744222e-07, + "scaled_max_abs": 5.7744222e-07 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "pass", + "tap": "net.fc" + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.00623310384, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33514404e-05, + "mean_abs": 1.17255403e-06, + "psnr_db": 146.901257, + "ref_absmax": 21.4202118, + "rel_max": 6.23310384e-07, + "scaled_max_abs": 6.23310384e-07 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 12, + "n_taps": 12, + "taps": [ + { + "band_ratio": 0.0, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 11.5288897, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0068047795, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.7220459e-06, + "mean_abs": 9.8498275e-08, + "psnr_db": 152.668994, + "ref_absmax": 8.40886307, + "rel_max": 6.8047795e-07, + "scaled_max_abs": 6.8047795e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/maxpool/MaxPool_output_0" + }, + "status": "pass", + "tap": "net.maxpool" + }, + { + "band_ratio": 0.00781175021, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33514404e-05, + "mean_abs": 2.40416478e-07, + "psnr_db": 152.515216, + "ref_absmax": 17.0914841, + "rel_max": 7.81175021e-07, + "scaled_max_abs": 7.81175021e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer1.0" + }, + { + "band_ratio": 0.010547528, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.97887421e-05, + "mean_abs": 4.61762345e-07, + "psnr_db": 146.71458, + "ref_absmax": 18.7614975, + "rel_max": 1.0547528e-06, + "scaled_max_abs": 1.0547528e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_ratio": 0.0109842378, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.22264028e-05, + "mean_abs": 2.14888521e-07, + "psnr_db": 147.700816, + "ref_absmax": 11.1308613, + "rel_max": 1.09842378e-06, + "scaled_max_abs": 1.09842378e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer2.0" + }, + { + "band_ratio": 0.0116434116, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.32471323e-05, + "mean_abs": 2.26556506e-07, + "psnr_db": 147.285533, + "ref_absmax": 11.3773632, + "rel_max": 1.16434116e-06, + "scaled_max_abs": 1.16434116e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_ratio": 0.00579552632, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.91413879e-06, + "mean_abs": 1.20977114e-07, + "psnr_db": 153.320205, + "ref_absmax": 11.930131, + "rel_max": 5.79552632e-07, + "scaled_max_abs": 5.79552632e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer3.0" + }, + { + "band_ratio": 0.015423251, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.07288361e-05, + "mean_abs": 1.41164467e-07, + "psnr_db": 147.02089, + "ref_absmax": 6.95627403, + "rel_max": 1.5423251e-06, + "scaled_max_abs": 1.5423251e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer3.1" + }, + { + "band_ratio": 0.0175062742, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.46385956e-06, + "mean_abs": 8.13047191e-08, + "psnr_db": 145.514092, + "ref_absmax": 4.8347578, + "rel_max": 1.75062742e-06, + "scaled_max_abs": 1.75062742e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer4.0" + }, + { + "band_ratio": 0.0117137368, + "index": 9, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.47955322e-05, + "mean_abs": 6.50171234e-07, + "psnr_db": 143.607194, + "ref_absmax": 21.1679096, + "rel_max": 1.17137368e-06, + "scaled_max_abs": 1.17137368e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer4.1" + }, + { + "band_ratio": 0.0069027244, + "index": 10, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.39097595e-06, + "mean_abs": 3.65553303e-07, + "psnr_db": 143.874768, + "ref_absmax": 10.7073317, + "rel_max": 6.9027244e-07, + "scaled_max_abs": 6.9027244e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "status": "pass", + "tap": "net.avgpool" + }, + { + "band_ratio": 0.00623310384, + "index": 11, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33514404e-05, + "mean_abs": 1.17255403e-06, + "psnr_db": 146.901257, + "ref_absmax": 21.4202118, + "rel_max": 6.23310384e-07, + "scaled_max_abs": 6.23310384e-07 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "pass", + "tap": "net.fc" + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp32", + "id": "resnet18__clean__onnx_fp32", + "model": "resnet18", + "path": "onnx", + "variant": "clean" + }, + "verdict": "PASS" +} diff --git a/bench/verdicts_e2e_gated/resnet18__drop_normalize__coreml_fp16.json b/bench/verdicts_e2e_gated/resnet18__drop_normalize__coreml_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..052c5a96b617a6b941faf5b0853875884c7430d4 --- /dev/null +++ b/bench/verdicts_e2e_gated/resnet18__drop_normalize__coreml_fp16.json @@ -0,0 +1,832 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "net.maxpool", + "explained_by": "no_normalize", + "nominal_band_ratio": 75.7277506, + "results": [ + { + "band_ratio": 97.3712004, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 94.4037455, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 94.5794987, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 91.1852432, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 0.398042587, + "explains": true, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [ + "inputs[0]: dtype float16 (declared float32)", + "outputs[0]: dtype float16 (declared float32)" + ], + "status": "precision_narrowing" + }, + "status": "flag" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": null, + "basis": "interface hypothesis 'no_normalize' explains the first over-band tap (net.maxpool)", + "index": 0, + "neighbourhood": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": null + }, + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 72.1404842, + "index": 1, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_7_cast_fp16" + }, + "status": "fail", + "tap": "net.maxpool" + } + ], + "observed_first_over_band": { + "index": 1, + "tap": "net.maxpool" + }, + "shape": 224, + "tap": "normalize" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "43acd9206c97462a3da5c07a3ecce84ddbd3b986053f505b6e7a4c70e8ff71b1", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "933b964bf20403eb8b5da53b7b5fd6da5c0fd9ad3f32c4e61de646467826218e", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + }, + { + "item": "tap normalize @ 224", + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)" + }, + { + "item": "tap normalize @ 192", + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D3", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.0, + "band_ratio": 96.6126909, + "metrics": { + "corr": 0.498318572, + "finite": true, + "max_abs": 22.3384876, + "mean_abs": 1.4774095, + "psnr_db": 24.9191666, + "ref_absmax": 23.1216908, + "rel_max": 0.966126909, + "scaled_max_abs": 0.966126909 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 1, + "n_judged": 11, + "n_taps": 12, + "taps": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": null + }, + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)", + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 75.2544051, + "index": 1, + "metrics": { + "corr": 0.810465522, + "finite": true, + "max_abs": 6.94944191, + "mean_abs": 0.295534491, + "psnr_db": 25.2377629, + "ref_absmax": 9.23459816, + "rel_max": 0.752544051, + "scaled_max_abs": 0.752544051 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_7_cast_fp16" + }, + "status": "fail", + "tap": "net.maxpool", + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_ratio": 87.8970083, + "index": 2, + "metrics": { + "corr": 0.685507913, + "finite": true, + "max_abs": 13.9858322, + "mean_abs": 0.286138769, + "psnr_db": 29.4180593, + "ref_absmax": 15.9116135, + "rel_max": 0.878970083, + "scaled_max_abs": 0.878970083 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_19_cast_fp16" + }, + "status": "fail", + "tap": "net.layer1.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 90.9661209, + "index": 3, + "metrics": { + "corr": 0.717357172, + "finite": true, + "max_abs": 17.1191921, + "mean_abs": 0.290107628, + "psnr_db": 30.6922147, + "ref_absmax": 18.8193054, + "rel_max": 0.909661209, + "scaled_max_abs": 0.909661209 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_31_cast_fp16" + }, + "status": "fail", + "tap": "net.layer1.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 83.4062808, + "index": 4, + "metrics": { + "corr": 0.749834613, + "finite": true, + "max_abs": 9.75823879, + "mean_abs": 0.109417223, + "psnr_db": 34.1085212, + "ref_absmax": 11.699645, + "rel_max": 0.834062808, + "scaled_max_abs": 0.834062808 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_45_cast_fp16" + }, + "status": "fail", + "tap": "net.layer2.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 84.69097, + "index": 5, + "metrics": { + "corr": 0.711042055, + "finite": true, + "max_abs": 9.84399986, + "mean_abs": 0.11280135, + "psnr_db": 33.3802032, + "ref_absmax": 11.623435, + "rel_max": 0.8469097, + "scaled_max_abs": 0.8469097 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_57_cast_fp16" + }, + "status": "fail", + "tap": "net.layer2.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 88.8800449, + "index": 6, + "metrics": { + "corr": 0.589927035, + "finite": true, + "max_abs": 12.1687899, + "mean_abs": 0.0835549048, + "psnr_db": 36.5014098, + "ref_absmax": 13.6912508, + "rel_max": 0.888800449, + "scaled_max_abs": 0.888800449 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_71_cast_fp16" + }, + "status": "fail", + "tap": "net.layer3.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 93.2407198, + "index": 7, + "metrics": { + "corr": 0.616883459, + "finite": true, + "max_abs": 7.76612759, + "mean_abs": 0.0894692328, + "psnr_db": 32.1678233, + "ref_absmax": 8.32911587, + "rel_max": 0.932407198, + "scaled_max_abs": 0.932407198 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_83_cast_fp16" + }, + "status": "fail", + "tap": "net.layer3.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 100.0, + "index": 8, + "metrics": { + "corr": 0.463878354, + "finite": true, + "max_abs": 6.10643864, + "mean_abs": 0.0550177105, + "psnr_db": 31.4848798, + "ref_absmax": 6.10643864, + "rel_max": 1.0, + "scaled_max_abs": 1.0 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_97_cast_fp16" + }, + "status": "fail", + "tap": "net.layer4.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 100.0, + "index": 9, + "metrics": { + "corr": 0.380011038, + "finite": true, + "max_abs": 17.7401104, + "mean_abs": 0.512283357, + "psnr_db": 24.1840474, + "ref_absmax": 17.7401104, + "rel_max": 1.0, + "scaled_max_abs": 1.0 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_109_cast_fp16" + }, + "status": "fail", + "tap": "net.layer4.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 96.1338192, + "index": 10, + "metrics": { + "corr": 0.42832947, + "finite": true, + "max_abs": 10.4859066, + "mean_abs": 0.466689478, + "psnr_db": 21.3632796, + "ref_absmax": 10.9076147, + "rel_max": 0.961338192, + "scaled_max_abs": 0.961338192 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 96.6126909, + "index": 11, + "metrics": { + "corr": 0.498318572, + "finite": true, + "max_abs": 22.3384876, + "mean_abs": 1.4774095, + "psnr_db": 24.9191666, + "ref_absmax": 23.1216908, + "rel_max": 0.966126909, + "scaled_max_abs": 0.966126909 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.0, + "band_ratio": 91.6523424, + "metrics": { + "corr": 0.500958333, + "finite": true, + "max_abs": 19.6321259, + "mean_abs": 1.42092132, + "psnr_db": 24.9608657, + "ref_absmax": 21.4202118, + "rel_max": 0.916523424, + "scaled_max_abs": 0.916523424 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 1, + "n_judged": 11, + "n_taps": 12, + "taps": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": null + }, + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)", + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 72.1404842, + "index": 1, + "metrics": { + "corr": 0.806059827, + "finite": true, + "max_abs": 6.06619453, + "mean_abs": 0.277438917, + "psnr_db": 25.0989216, + "ref_absmax": 8.40886307, + "rel_max": 0.721404842, + "scaled_max_abs": 0.721404842 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_7_cast_fp16" + }, + "status": "fail", + "tap": "net.maxpool", + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 86.2298931, + "index": 2, + "metrics": { + "corr": 0.68393002, + "finite": true, + "max_abs": 14.7379684, + "mean_abs": 0.271089136, + "psnr_db": 30.5936541, + "ref_absmax": 17.0914841, + "rel_max": 0.862298931, + "scaled_max_abs": 0.862298931 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_19_cast_fp16" + }, + "status": "fail", + "tap": "net.layer1.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 87.799931, + "index": 3, + "metrics": { + "corr": 0.716842377, + "finite": true, + "max_abs": 16.4725819, + "mean_abs": 0.275028101, + "psnr_db": 31.1788798, + "ref_absmax": 18.7614975, + "rel_max": 0.87799931, + "scaled_max_abs": 0.87799931 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_31_cast_fp16" + }, + "status": "fail", + "tap": "net.layer1.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 82.3565568, + "index": 4, + "metrics": { + "corr": 0.750219194, + "finite": true, + "max_abs": 9.16699409, + "mean_abs": 0.105256621, + "psnr_db": 34.0941981, + "ref_absmax": 11.1308613, + "rel_max": 0.823565568, + "scaled_max_abs": 0.823565568 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_45_cast_fp16" + }, + "status": "fail", + "tap": "net.layer2.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 82.6272356, + "index": 5, + "metrics": { + "corr": 0.712386598, + "finite": true, + "max_abs": 9.4008007, + "mean_abs": 0.107105825, + "psnr_db": 33.6771759, + "ref_absmax": 11.3773632, + "rel_max": 0.826272356, + "scaled_max_abs": 0.826272356 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_57_cast_fp16" + }, + "status": "fail", + "tap": "net.layer2.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 89.9889118, + "index": 6, + "metrics": { + "corr": 0.612670118, + "finite": true, + "max_abs": 10.735795, + "mean_abs": 0.0787880834, + "psnr_db": 35.967785, + "ref_absmax": 11.930131, + "rel_max": 0.899889118, + "scaled_max_abs": 0.899889118 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_71_cast_fp16" + }, + "status": "fail", + "tap": "net.layer3.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 84.480076, + "index": 7, + "metrics": { + "corr": 0.647719677, + "finite": true, + "max_abs": 5.87666559, + "mean_abs": 0.0838244737, + "psnr_db": 31.4061422, + "ref_absmax": 6.95627403, + "rel_max": 0.84480076, + "scaled_max_abs": 0.84480076 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_83_cast_fp16" + }, + "status": "fail", + "tap": "net.layer3.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 98.7173769, + "index": 8, + "metrics": { + "corr": 0.493667427, + "finite": true, + "max_abs": 4.77274609, + "mean_abs": 0.0506589114, + "psnr_db": 30.1825707, + "ref_absmax": 4.8347578, + "rel_max": 0.987173769, + "scaled_max_abs": 0.987173769 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_97_cast_fp16" + }, + "status": "fail", + "tap": "net.layer4.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 97.5087585, + "index": 9, + "metrics": { + "corr": 0.3829061, + "finite": true, + "max_abs": 20.6405659, + "mean_abs": 0.494019433, + "psnr_db": 26.0572067, + "ref_absmax": 21.1679096, + "rel_max": 0.975087585, + "scaled_max_abs": 0.975087585 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_109_cast_fp16" + }, + "status": "fail", + "tap": "net.layer4.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 98.4517946, + "index": 10, + "metrics": { + "corr": 0.431615939, + "finite": true, + "max_abs": 10.5415602, + "mean_abs": 0.444597535, + "psnr_db": 21.6528843, + "ref_absmax": 10.7073317, + "rel_max": 0.984517946, + "scaled_max_abs": 0.984517946 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 91.6523424, + "index": 11, + "metrics": { + "corr": 0.500958333, + "finite": true, + "max_abs": 19.6321259, + "mean_abs": 1.42092132, + "psnr_db": 24.9608657, + "ref_absmax": 21.4202118, + "rel_max": 0.916523424, + "scaled_max_abs": 0.916523424 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp16", + "id": "resnet18__drop_normalize__coreml_fp16", + "model": "resnet18", + "path": "coreml", + "variant": "drop_normalize" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/resnet18__drop_normalize__coreml_fp32.json b/bench/verdicts_e2e_gated/resnet18__drop_normalize__coreml_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..83f23a8c445dfd8d036e4fb916932aa94ae5d2f8 --- /dev/null +++ b/bench/verdicts_e2e_gated/resnet18__drop_normalize__coreml_fp32.json @@ -0,0 +1,829 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "net.maxpool", + "explained_by": "no_normalize", + "nominal_band_ratio": 7572.13723, + "results": [ + { + "band_ratio": 9737.69044, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 9440.2275, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 9460.60722, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 9120.15785, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 0.00457382212, + "explains": true, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "flag" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": null, + "basis": "interface hypothesis 'no_normalize' explains the first over-band tap (net.maxpool)", + "index": 0, + "neighbourhood": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": null + }, + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 7213.44081, + "index": 1, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_7" + }, + "status": "fail", + "tap": "net.maxpool" + } + ], + "observed_first_over_band": { + "index": 1, + "tap": "net.maxpool" + }, + "shape": 224, + "tap": "normalize" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "8179ed8a0dc89af98cb8147feaff8760c529e43fadb67437b05b7665b2b4deab", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "54d19b3869ed02ee0872694fffb2c33a12332f9dbe5f78c7faa2e005dcd5381b", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + }, + { + "item": "tap normalize @ 224", + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)" + }, + { + "item": "tap normalize @ 192", + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D3", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.0, + "band_ratio": 9651.55618, + "metrics": { + "corr": 0.498004447, + "finite": true, + "max_abs": 22.3160297, + "mean_abs": 1.47798919, + "psnr_db": 24.9171897, + "ref_absmax": 23.1216908, + "rel_max": 0.965155618, + "scaled_max_abs": 0.965155618 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 1, + "n_judged": 11, + "n_taps": 12, + "taps": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": null + }, + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)", + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 7524.41864, + "index": 1, + "metrics": { + "corr": 0.810478254, + "finite": true, + "max_abs": 6.94849825, + "mean_abs": 0.295561913, + "psnr_db": 25.2371829, + "ref_absmax": 9.23459816, + "rel_max": 0.752441864, + "scaled_max_abs": 0.752441864 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_7" + }, + "status": "fail", + "tap": "net.maxpool", + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_ratio": 8789.06881, + "index": 2, + "metrics": { + "corr": 0.685622616, + "finite": true, + "max_abs": 13.9848266, + "mean_abs": 0.286074514, + "psnr_db": 29.4185756, + "ref_absmax": 15.9116135, + "rel_max": 0.878906881, + "scaled_max_abs": 0.878906881 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_19" + }, + "status": "fail", + "tap": "net.layer1.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9097.67057, + "index": 3, + "metrics": { + "corr": 0.717402658, + "finite": true, + "max_abs": 17.1211841, + "mean_abs": 0.290028205, + "psnr_db": 30.6935137, + "ref_absmax": 18.8193054, + "rel_max": 0.909767057, + "scaled_max_abs": 0.909767057 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_31" + }, + "status": "fail", + "tap": "net.layer1.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 8345.50276, + "index": 4, + "metrics": { + "corr": 0.749877919, + "finite": true, + "max_abs": 9.763942, + "mean_abs": 0.109381566, + "psnr_db": 34.1097045, + "ref_absmax": 11.699645, + "rel_max": 0.834550276, + "scaled_max_abs": 0.834550276 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_45" + }, + "status": "fail", + "tap": "net.layer2.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 8464.0763, + "index": 5, + "metrics": { + "corr": 0.711004946, + "finite": true, + "max_abs": 9.83816409, + "mean_abs": 0.11280361, + "psnr_db": 33.3803742, + "ref_absmax": 11.623435, + "rel_max": 0.84640763, + "scaled_max_abs": 0.84640763 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_57" + }, + "status": "fail", + "tap": "net.layer2.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 8893.23076, + "index": 6, + "metrics": { + "corr": 0.589856441, + "finite": true, + "max_abs": 12.1759453, + "mean_abs": 0.0835666385, + "psnr_db": 36.5007479, + "ref_absmax": 13.6912508, + "rel_max": 0.889323076, + "scaled_max_abs": 0.889323076 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_71" + }, + "status": "fail", + "tap": "net.layer3.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9325.31465, + "index": 7, + "metrics": { + "corr": 0.617139523, + "finite": true, + "max_abs": 7.76716262, + "mean_abs": 0.0894660258, + "psnr_db": 32.1698792, + "ref_absmax": 8.32911587, + "rel_max": 0.932531465, + "scaled_max_abs": 0.932531465 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_83" + }, + "status": "fail", + "tap": "net.layer3.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10000.0, + "index": 8, + "metrics": { + "corr": 0.463918266, + "finite": true, + "max_abs": 6.10643864, + "mean_abs": 0.0550031866, + "psnr_db": 31.4858631, + "ref_absmax": 6.10643864, + "rel_max": 1.0, + "scaled_max_abs": 1.0 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_97" + }, + "status": "fail", + "tap": "net.layer4.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10000.0, + "index": 9, + "metrics": { + "corr": 0.379460864, + "finite": true, + "max_abs": 17.7401104, + "mean_abs": 0.512472249, + "psnr_db": 24.1818434, + "ref_absmax": 17.7401104, + "rel_max": 1.0, + "scaled_max_abs": 1.0 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_109" + }, + "status": "fail", + "tap": "net.layer4.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9614.2291, + "index": 10, + "metrics": { + "corr": 0.427828725, + "finite": true, + "max_abs": 10.4868307, + "mean_abs": 0.466825963, + "psnr_db": 21.3615199, + "ref_absmax": 10.9076147, + "rel_max": 0.96142291, + "scaled_max_abs": 0.96142291 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9651.55618, + "index": 11, + "metrics": { + "corr": 0.498004447, + "finite": true, + "max_abs": 22.3160297, + "mean_abs": 1.47798919, + "psnr_db": 24.9171897, + "ref_absmax": 23.1216908, + "rel_max": 0.965155618, + "scaled_max_abs": 0.965155618 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.0, + "band_ratio": 9167.75881, + "metrics": { + "corr": 0.500810571, + "finite": true, + "max_abs": 19.6375335, + "mean_abs": 1.4214616, + "psnr_db": 24.9592093, + "ref_absmax": 21.4202118, + "rel_max": 0.916775881, + "scaled_max_abs": 0.916775881 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 1, + "n_judged": 11, + "n_taps": 12, + "taps": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": null + }, + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)", + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 7213.44081, + "index": 1, + "metrics": { + "corr": 0.806064603, + "finite": true, + "max_abs": 6.0656836, + "mean_abs": 0.277470659, + "psnr_db": 25.0982108, + "ref_absmax": 8.40886307, + "rel_max": 0.721344081, + "scaled_max_abs": 0.721344081 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_7" + }, + "status": "fail", + "tap": "net.maxpool", + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 8620.68401, + "index": 2, + "metrics": { + "corr": 0.684054278, + "finite": true, + "max_abs": 14.7340283, + "mean_abs": 0.271024077, + "psnr_db": 30.5942801, + "ref_absmax": 17.0914841, + "rel_max": 0.862068401, + "scaled_max_abs": 0.862068401 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_19" + }, + "status": "fail", + "tap": "net.layer1.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 8784.71496, + "index": 3, + "metrics": { + "corr": 0.716892898, + "finite": true, + "max_abs": 16.4814408, + "mean_abs": 0.274949199, + "psnr_db": 31.1804136, + "ref_absmax": 18.7614975, + "rel_max": 0.878471496, + "scaled_max_abs": 0.878471496 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_31" + }, + "status": "fail", + "tap": "net.layer1.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 8236.16033, + "index": 4, + "metrics": { + "corr": 0.750289587, + "finite": true, + "max_abs": 9.16755581, + "mean_abs": 0.105217852, + "psnr_db": 34.0956787, + "ref_absmax": 11.1308613, + "rel_max": 0.823616033, + "scaled_max_abs": 0.823616033 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_45" + }, + "status": "fail", + "tap": "net.layer2.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 8262.43417, + "index": 5, + "metrics": { + "corr": 0.712464141, + "finite": true, + "max_abs": 9.40047145, + "mean_abs": 0.107092154, + "psnr_db": 33.6784728, + "ref_absmax": 11.3773632, + "rel_max": 0.826243417, + "scaled_max_abs": 0.826243417 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_57" + }, + "status": "fail", + "tap": "net.layer2.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 8997.51564, + "index": 6, + "metrics": { + "corr": 0.612675266, + "finite": true, + "max_abs": 10.734154, + "mean_abs": 0.0787888898, + "psnr_db": 35.9676794, + "ref_absmax": 11.930131, + "rel_max": 0.899751564, + "scaled_max_abs": 0.899751564 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_71" + }, + "status": "fail", + "tap": "net.layer3.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 8448.0076, + "index": 7, + "metrics": { + "corr": 0.647806991, + "finite": true, + "max_abs": 5.87666559, + "mean_abs": 0.0838450344, + "psnr_db": 31.4067604, + "ref_absmax": 6.95627403, + "rel_max": 0.84480076, + "scaled_max_abs": 0.84480076 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_83" + }, + "status": "fail", + "tap": "net.layer3.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9853.54417, + "index": 8, + "metrics": { + "corr": 0.493958421, + "finite": true, + "max_abs": 4.76394996, + "mean_abs": 0.0506537698, + "psnr_db": 30.1846206, + "ref_absmax": 4.8347578, + "rel_max": 0.985354417, + "scaled_max_abs": 0.985354417 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_97" + }, + "status": "fail", + "tap": "net.layer4.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9751.84218, + "index": 9, + "metrics": { + "corr": 0.382922874, + "finite": true, + "max_abs": 20.6426114, + "mean_abs": 0.494157625, + "psnr_db": 26.0575645, + "ref_absmax": 21.1679096, + "rel_max": 0.975184218, + "scaled_max_abs": 0.975184218 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_109" + }, + "status": "fail", + "tap": "net.layer4.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9850.35915, + "index": 10, + "metrics": { + "corr": 0.431570793, + "finite": true, + "max_abs": 10.5471062, + "mean_abs": 0.444687645, + "psnr_db": 21.6533413, + "ref_absmax": 10.7073317, + "rel_max": 0.985035915, + "scaled_max_abs": 0.985035915 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9167.75881, + "index": 11, + "metrics": { + "corr": 0.500810571, + "finite": true, + "max_abs": 19.6375335, + "mean_abs": 1.4214616, + "psnr_db": 24.9592093, + "ref_absmax": 21.4202118, + "rel_max": 0.916775881, + "scaled_max_abs": 0.916775881 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp32", + "id": "resnet18__drop_normalize__coreml_fp32", + "model": "resnet18", + "path": "coreml", + "variant": "drop_normalize" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/resnet18__drop_normalize__litert_fp16.json b/bench/verdicts_e2e_gated/resnet18__drop_normalize__litert_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..051b9760038e4a550f76048d14baaaf95695bea2 --- /dev/null +++ b/bench/verdicts_e2e_gated/resnet18__drop_normalize__litert_fp16.json @@ -0,0 +1,953 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "net.maxpool", + "explained_by": "no_normalize", + "nominal_band_ratio": 75.7215732, + "results": [ + { + "band_ratio": 97.377358, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 94.4023213, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 94.6086333, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 91.2021367, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 0.0286021108, + "explains": true, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "flag" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 0.000165520438, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-05, + "mean_abs": 1.59931125e-06, + "psnr_db": 136.419111, + "ref_absmax": 8.6425066, + "rel_max": 1.65520438e-06, + "scaled_max_abs": 1.65520438e-06 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 25, + "outputs": [ + "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models.res", + "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.linear.Linear_fc;1_dequant", + "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.B", + "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.B" + ] + }, + { + "inputs": 43, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 2, + "n_ops_total": 58, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": null, + "basis": "interface hypothesis 'no_normalize' explains the first over-band tap (net.maxpool)", + "index": 0, + "neighbourhood": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": null + }, + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 72.1345995, + "index": 1, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.MaxPool2d_maxpool;2" + }, + "status": "fail", + "tap": "net.maxpool" + } + ], + "observed_first_over_band": { + "index": 1, + "tap": "net.maxpool" + }, + "shape": 224, + "tap": "normalize" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "43bedc205e3283436461e451c82c21fe3e246ec3aac355ea947aeae52bc17066", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "632f0c1ce60d28d258118ca682a819464a6c7f6e1c6382fc79ec42912946899b", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "tap normalize @ 224", + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)" + }, + { + "item": "tap normalize @ 192", + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D3", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.0, + "band_ratio": 96.5213592, + "metrics": { + "corr": 0.497883932, + "finite": true, + "max_abs": 22.3173702, + "mean_abs": 1.47817217, + "psnr_db": 24.9164882, + "ref_absmax": 23.1216908, + "rel_max": 0.965213592, + "scaled_max_abs": 0.965213592 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 1, + "n_judged": 11, + "n_taps": 12, + "taps": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": null + }, + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)", + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 75.2451313, + "index": 1, + "metrics": { + "corr": 0.810482799, + "finite": true, + "max_abs": 6.94858551, + "mean_abs": 0.295556683, + "psnr_db": 25.2372939, + "ref_absmax": 9.23459816, + "rel_max": 0.752451313, + "scaled_max_abs": 0.752451313 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.MaxPool2d_maxpool;2" + }, + "status": "fail", + "tap": "net.maxpool", + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_ratio": 87.8903135, + "index": 2, + "metrics": { + "corr": 0.685621013, + "finite": true, + "max_abs": 13.984767, + "mean_abs": 0.286072464, + "psnr_db": 29.4184966, + "ref_absmax": 15.9116135, + "rel_max": 0.878903135, + "scaled_max_abs": 0.878903135 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer1.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 90.9758316, + "index": 3, + "metrics": { + "corr": 0.717400079, + "finite": true, + "max_abs": 17.1210196, + "mean_abs": 0.290031865, + "psnr_db": 30.6933715, + "ref_absmax": 18.8193054, + "rel_max": 0.909758316, + "scaled_max_abs": 0.909758316 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer1.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 83.4546669, + "index": 4, + "metrics": { + "corr": 0.749891214, + "finite": true, + "max_abs": 9.7638998, + "mean_abs": 0.10937767, + "psnr_db": 34.1099211, + "ref_absmax": 11.699645, + "rel_max": 0.834546669, + "scaled_max_abs": 0.834546669 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer2.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 84.6386718, + "index": 5, + "metrics": { + "corr": 0.711010142, + "finite": true, + "max_abs": 9.83792102, + "mean_abs": 0.112803531, + "psnr_db": 33.3804492, + "ref_absmax": 11.623435, + "rel_max": 0.846386718, + "scaled_max_abs": 0.846386718 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer2.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 88.9308971, + "index": 6, + "metrics": { + "corr": 0.5898486, + "finite": true, + "max_abs": 12.1757522, + "mean_abs": 0.0835701148, + "psnr_db": 36.5007017, + "ref_absmax": 13.6912508, + "rel_max": 0.889308971, + "scaled_max_abs": 0.889308971 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer3.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 93.2589881, + "index": 7, + "metrics": { + "corr": 0.61713966, + "finite": true, + "max_abs": 7.76764917, + "mean_abs": 0.0894724931, + "psnr_db": 32.1698896, + "ref_absmax": 8.32911587, + "rel_max": 0.932589881, + "scaled_max_abs": 0.932589881 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer3.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 100.0, + "index": 8, + "metrics": { + "corr": 0.463898844, + "finite": true, + "max_abs": 6.10643864, + "mean_abs": 0.0550040936, + "psnr_db": 31.4857781, + "ref_absmax": 6.10643864, + "rel_max": 1.0, + "scaled_max_abs": 1.0 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer4.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 100.0, + "index": 9, + "metrics": { + "corr": 0.379320491, + "finite": true, + "max_abs": 17.7401104, + "mean_abs": 0.512501494, + "psnr_db": 24.1810642, + "ref_absmax": 17.7401104, + "rel_max": 1.0, + "scaled_max_abs": 1.0 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer4.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 96.1421557, + "index": 10, + "metrics": { + "corr": 0.427683536, + "finite": true, + "max_abs": 10.4868159, + "mean_abs": 0.466878214, + "psnr_db": 21.3605371, + "ref_absmax": 10.9076147, + "rel_max": 0.961421557, + "scaled_max_abs": 0.961421557 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;1" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 96.5213592, + "index": 11, + "metrics": { + "corr": 0.497883932, + "finite": true, + "max_abs": 22.3173702, + "mean_abs": 1.47817217, + "psnr_db": 24.9164882, + "ref_absmax": 23.1216908, + "rel_max": 0.965213592, + "scaled_max_abs": 0.965213592 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.0, + "band_ratio": 91.6759814, + "metrics": { + "corr": 0.50069293, + "finite": true, + "max_abs": 19.6371894, + "mean_abs": 1.42168305, + "psnr_db": 24.9584782, + "ref_absmax": 21.4202118, + "rel_max": 0.916759814, + "scaled_max_abs": 0.916759814 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 1, + "n_judged": 11, + "n_taps": 12, + "taps": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": null + }, + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)", + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 72.1345995, + "index": 1, + "metrics": { + "corr": 0.806069702, + "finite": true, + "max_abs": 6.0656997, + "mean_abs": 0.277465322, + "psnr_db": 25.0983317, + "ref_absmax": 8.40886307, + "rel_max": 0.721345995, + "scaled_max_abs": 0.721345995 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.MaxPool2d_maxpool;2" + }, + "status": "fail", + "tap": "net.maxpool", + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 86.205579, + "index": 2, + "metrics": { + "corr": 0.684054617, + "finite": true, + "max_abs": 14.7338128, + "mean_abs": 0.271021308, + "psnr_db": 30.5942129, + "ref_absmax": 17.0914841, + "rel_max": 0.86205579, + "scaled_max_abs": 0.86205579 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer1.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 87.8455586, + "index": 3, + "metrics": { + "corr": 0.716888991, + "finite": true, + "max_abs": 16.4811423, + "mean_abs": 0.274952402, + "psnr_db": 31.1802597, + "ref_absmax": 18.7614975, + "rel_max": 0.878455586, + "scaled_max_abs": 0.878455586 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer1.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 82.3602838, + "index": 4, + "metrics": { + "corr": 0.750297873, + "finite": true, + "max_abs": 9.16740894, + "mean_abs": 0.105214783, + "psnr_db": 34.0958339, + "ref_absmax": 11.1308613, + "rel_max": 0.823602838, + "scaled_max_abs": 0.823602838 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer2.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 82.6242537, + "index": 5, + "metrics": { + "corr": 0.712459699, + "finite": true, + "max_abs": 9.40046144, + "mean_abs": 0.107093999, + "psnr_db": 33.6784413, + "ref_absmax": 11.3773632, + "rel_max": 0.826242537, + "scaled_max_abs": 0.826242537 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer2.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 89.9813606, + "index": 6, + "metrics": { + "corr": 0.612659837, + "finite": true, + "max_abs": 10.7348942, + "mean_abs": 0.0787930883, + "psnr_db": 35.9675631, + "ref_absmax": 11.930131, + "rel_max": 0.899813606, + "scaled_max_abs": 0.899813606 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer3.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 84.480076, + "index": 7, + "metrics": { + "corr": 0.647772802, + "finite": true, + "max_abs": 5.87666559, + "mean_abs": 0.0838550907, + "psnr_db": 31.4064197, + "ref_absmax": 6.95627403, + "rel_max": 0.84480076, + "scaled_max_abs": 0.84480076 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer3.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 98.5569221, + "index": 8, + "metrics": { + "corr": 0.493919602, + "finite": true, + "max_abs": 4.76498848, + "mean_abs": 0.050655256, + "psnr_db": 30.1843463, + "ref_absmax": 4.8347578, + "rel_max": 0.985569221, + "scaled_max_abs": 0.985569221 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer4.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 97.5283511, + "index": 9, + "metrics": { + "corr": 0.382762192, + "finite": true, + "max_abs": 20.6447132, + "mean_abs": 0.494190881, + "psnr_db": 26.0566675, + "ref_absmax": 21.1679096, + "rel_max": 0.975283511, + "scaled_max_abs": 0.975283511 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer4.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 98.5012188, + "index": 10, + "metrics": { + "corr": 0.431398628, + "finite": true, + "max_abs": 10.5468522, + "mean_abs": 0.444737448, + "psnr_db": 21.652162, + "ref_absmax": 10.7073317, + "rel_max": 0.985012188, + "scaled_max_abs": 0.985012188 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;1" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 91.6759814, + "index": 11, + "metrics": { + "corr": 0.50069293, + "finite": true, + "max_abs": 19.6371894, + "mean_abs": 1.42168305, + "psnr_db": 24.9584782, + "ref_absmax": 21.4202118, + "rel_max": 0.916759814, + "scaled_max_abs": 0.916759814 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp16", + "id": "resnet18__drop_normalize__litert_fp16", + "model": "resnet18", + "path": "litert", + "variant": "drop_normalize" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/resnet18__drop_normalize__litert_fp32.json b/bench/verdicts_e2e_gated/resnet18__drop_normalize__litert_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..4eca7c371ced6f291202a44ca8083ab9fb5c0a90 --- /dev/null +++ b/bench/verdicts_e2e_gated/resnet18__drop_normalize__litert_fp32.json @@ -0,0 +1,950 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "net.maxpool", + "explained_by": "no_normalize", + "nominal_band_ratio": 7572.13693, + "results": [ + { + "band_ratio": 9737.69045, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 9440.22743, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 9460.60771, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 9120.15778, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 0.00400209435, + "explains": true, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "flag" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 0.0137929558, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.1920929e-05, + "mean_abs": 1.70033572e-06, + "psnr_db": 135.933954, + "ref_absmax": 8.642766, + "rel_max": 1.37929558e-06, + "scaled_max_abs": 1.37929558e-06 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 5, + "outputs": [ + "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models.res" + ] + }, + { + "inputs": 43, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 2, + "n_ops_total": 37, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": null, + "basis": "interface hypothesis 'no_normalize' explains the first over-band tap (net.maxpool)", + "index": 0, + "neighbourhood": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": null + }, + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 7213.44053, + "index": 1, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.MaxPool2d_maxpool;2" + }, + "status": "fail", + "tap": "net.maxpool" + } + ], + "observed_first_over_band": { + "index": 1, + "tap": "net.maxpool" + }, + "shape": 224, + "tap": "normalize" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "776d579e38e9dfdb7bf8f1e72a1eb70afc76facb90720a529ce8f60908f60a38", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "4b0b9cf26b2eb5cc0647557aacc4db4bacc1769bc5bb99920bbac559c52708cb", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "tap normalize @ 224", + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)" + }, + { + "item": "tap normalize @ 192", + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D3", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.0, + "band_ratio": 9651.55739, + "metrics": { + "corr": 0.498004393, + "finite": true, + "max_abs": 22.3160325, + "mean_abs": 1.47798923, + "psnr_db": 24.9171894, + "ref_absmax": 23.1216908, + "rel_max": 0.965155739, + "scaled_max_abs": 0.965155739 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 1, + "n_judged": 11, + "n_taps": 12, + "taps": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": null + }, + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)", + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 7524.41915, + "index": 1, + "metrics": { + "corr": 0.810478259, + "finite": true, + "max_abs": 6.94849873, + "mean_abs": 0.295561912, + "psnr_db": 25.2371829, + "ref_absmax": 9.23459816, + "rel_max": 0.752441915, + "scaled_max_abs": 0.752441915 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.MaxPool2d_maxpool;2" + }, + "status": "fail", + "tap": "net.maxpool", + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_ratio": 8789.06881, + "index": 2, + "metrics": { + "corr": 0.68562262, + "finite": true, + "max_abs": 13.9848266, + "mean_abs": 0.286074512, + "psnr_db": 29.4185757, + "ref_absmax": 15.9116135, + "rel_max": 0.878906881, + "scaled_max_abs": 0.878906881 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer1.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9097.67083, + "index": 3, + "metrics": { + "corr": 0.717402662, + "finite": true, + "max_abs": 17.1211846, + "mean_abs": 0.2900282, + "psnr_db": 30.6935138, + "ref_absmax": 18.8193054, + "rel_max": 0.909767083, + "scaled_max_abs": 0.909767083 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer1.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 8345.50337, + "index": 4, + "metrics": { + "corr": 0.749877914, + "finite": true, + "max_abs": 9.76394272, + "mean_abs": 0.109381567, + "psnr_db": 34.1097044, + "ref_absmax": 11.699645, + "rel_max": 0.834550337, + "scaled_max_abs": 0.834550337 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer2.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 8464.07579, + "index": 5, + "metrics": { + "corr": 0.71100495, + "finite": true, + "max_abs": 9.8381635, + "mean_abs": 0.112803606, + "psnr_db": 33.3803742, + "ref_absmax": 11.623435, + "rel_max": 0.846407579, + "scaled_max_abs": 0.846407579 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer2.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 8893.23146, + "index": 6, + "metrics": { + "corr": 0.589856451, + "finite": true, + "max_abs": 12.1759462, + "mean_abs": 0.083566636, + "psnr_db": 36.500748, + "ref_absmax": 13.6912508, + "rel_max": 0.889323146, + "scaled_max_abs": 0.889323146 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer3.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9325.31608, + "index": 7, + "metrics": { + "corr": 0.617139514, + "finite": true, + "max_abs": 7.76716381, + "mean_abs": 0.0894660266, + "psnr_db": 32.1698791, + "ref_absmax": 8.32911587, + "rel_max": 0.932531608, + "scaled_max_abs": 0.932531608 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer3.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10000.0, + "index": 8, + "metrics": { + "corr": 0.46391827, + "finite": true, + "max_abs": 6.10643864, + "mean_abs": 0.0550031873, + "psnr_db": 31.485863, + "ref_absmax": 6.10643864, + "rel_max": 1.0, + "scaled_max_abs": 1.0 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer4.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10000.0, + "index": 9, + "metrics": { + "corr": 0.379460836, + "finite": true, + "max_abs": 17.7401104, + "mean_abs": 0.512472266, + "psnr_db": 24.1818433, + "ref_absmax": 17.7401104, + "rel_max": 1.0, + "scaled_max_abs": 1.0 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer4.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9614.2297, + "index": 10, + "metrics": { + "corr": 0.427828685, + "finite": true, + "max_abs": 10.4868313, + "mean_abs": 0.466825964, + "psnr_db": 21.3615198, + "ref_absmax": 10.9076147, + "rel_max": 0.96142297, + "scaled_max_abs": 0.96142297 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;1" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9651.55739, + "index": 11, + "metrics": { + "corr": 0.498004393, + "finite": true, + "max_abs": 22.3160325, + "mean_abs": 1.47798923, + "psnr_db": 24.9171894, + "ref_absmax": 23.1216908, + "rel_max": 0.965155739, + "scaled_max_abs": 0.965155739 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.0, + "band_ratio": 9167.75943, + "metrics": { + "corr": 0.500810465, + "finite": true, + "max_abs": 19.6375349, + "mean_abs": 1.42146173, + "psnr_db": 24.9592087, + "ref_absmax": 21.4202118, + "rel_max": 0.916775943, + "scaled_max_abs": 0.916775943 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 1, + "n_judged": 11, + "n_taps": 12, + "taps": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": null + }, + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)", + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 7213.44053, + "index": 1, + "metrics": { + "corr": 0.806064608, + "finite": true, + "max_abs": 6.06568336, + "mean_abs": 0.277470658, + "psnr_db": 25.0982109, + "ref_absmax": 8.40886307, + "rel_max": 0.721344053, + "scaled_max_abs": 0.721344053 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.MaxPool2d_maxpool;2" + }, + "status": "fail", + "tap": "net.maxpool", + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 8620.68429, + "index": 2, + "metrics": { + "corr": 0.68405428, + "finite": true, + "max_abs": 14.7340288, + "mean_abs": 0.271024075, + "psnr_db": 30.5942801, + "ref_absmax": 17.0914841, + "rel_max": 0.862068429, + "scaled_max_abs": 0.862068429 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer1.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 8784.71439, + "index": 3, + "metrics": { + "corr": 0.716892899, + "finite": true, + "max_abs": 16.4814397, + "mean_abs": 0.274949195, + "psnr_db": 31.1804136, + "ref_absmax": 18.7614975, + "rel_max": 0.878471439, + "scaled_max_abs": 0.878471439 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer1.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 8236.16118, + "index": 4, + "metrics": { + "corr": 0.750289586, + "finite": true, + "max_abs": 9.16755676, + "mean_abs": 0.105217852, + "psnr_db": 34.0956787, + "ref_absmax": 11.1308613, + "rel_max": 0.823616118, + "scaled_max_abs": 0.823616118 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer2.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 8262.4348, + "index": 5, + "metrics": { + "corr": 0.71246413, + "finite": true, + "max_abs": 9.40047216, + "mean_abs": 0.107092157, + "psnr_db": 33.6784727, + "ref_absmax": 11.3773632, + "rel_max": 0.82624348, + "scaled_max_abs": 0.82624348 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer2.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 8997.51734, + "index": 6, + "metrics": { + "corr": 0.612675245, + "finite": true, + "max_abs": 10.734156, + "mean_abs": 0.0787888911, + "psnr_db": 35.9676792, + "ref_absmax": 11.930131, + "rel_max": 0.899751734, + "scaled_max_abs": 0.899751734 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer3.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 8448.0076, + "index": 7, + "metrics": { + "corr": 0.647806931, + "finite": true, + "max_abs": 5.87666559, + "mean_abs": 0.0838450417, + "psnr_db": 31.4067598, + "ref_absmax": 6.95627403, + "rel_max": 0.84480076, + "scaled_max_abs": 0.84480076 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer3.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9853.54652, + "index": 8, + "metrics": { + "corr": 0.493958325, + "finite": true, + "max_abs": 4.76395109, + "mean_abs": 0.0506537764, + "psnr_db": 30.1846197, + "ref_absmax": 4.8347578, + "rel_max": 0.985354652, + "scaled_max_abs": 0.985354652 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer4.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9751.84215, + "index": 9, + "metrics": { + "corr": 0.382922772, + "finite": true, + "max_abs": 20.6426113, + "mean_abs": 0.494157647, + "psnr_db": 26.0575641, + "ref_absmax": 21.1679096, + "rel_max": 0.975184215, + "scaled_max_abs": 0.975184215 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer4.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9850.35929, + "index": 10, + "metrics": { + "corr": 0.431570673, + "finite": true, + "max_abs": 10.5471064, + "mean_abs": 0.444687677, + "psnr_db": 21.6533406, + "ref_absmax": 10.7073317, + "rel_max": 0.985035929, + "scaled_max_abs": 0.985035929 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;1" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9167.75943, + "index": 11, + "metrics": { + "corr": 0.500810465, + "finite": true, + "max_abs": 19.6375349, + "mean_abs": 1.42146173, + "psnr_db": 24.9592087, + "ref_absmax": 21.4202118, + "rel_max": 0.916775943, + "scaled_max_abs": 0.916775943 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp32", + "id": "resnet18__drop_normalize__litert_fp32", + "model": "resnet18", + "path": "litert", + "variant": "drop_normalize" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/resnet18__drop_normalize__onnx_fp16.json b/bench/verdicts_e2e_gated/resnet18__drop_normalize__onnx_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..ce07a650f6e60a42bbf64a6eff95bf0a71694c97 --- /dev/null +++ b/bench/verdicts_e2e_gated/resnet18__drop_normalize__onnx_fp16.json @@ -0,0 +1,829 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "net.maxpool", + "explained_by": "no_normalize", + "nominal_band_ratio": 75.7277506, + "results": [ + { + "band_ratio": 97.377241, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 94.4037455, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 94.6082314, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 91.2029911, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 0.0415646085, + "explains": true, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "flag" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": null, + "basis": "interface hypothesis 'no_normalize' explains the first over-band tap (net.maxpool)", + "index": 0, + "neighbourhood": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": null + }, + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 72.1404842, + "index": 1, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/maxpool/MaxPool_output_0" + }, + "status": "fail", + "tap": "net.maxpool" + } + ], + "observed_first_over_band": { + "index": 1, + "tap": "net.maxpool" + }, + "shape": 224, + "tap": "normalize" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "b66ec5b3b71f23184b086d10f8415c2d80777491ae12e4161d1bb30cc2c09853", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "b74d99fb291942ba5db49e51bf0943365e97b4781d743457818cbd2dcef3ce90", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + }, + { + "item": "tap normalize @ 224", + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)" + }, + { + "item": "tap normalize @ 192", + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D3", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.0, + "band_ratio": 96.5254505, + "metrics": { + "corr": 0.498059122, + "finite": true, + "max_abs": 22.3183162, + "mean_abs": 1.4777688, + "psnr_db": 24.9177908, + "ref_absmax": 23.1216908, + "rel_max": 0.965254505, + "scaled_max_abs": 0.965254505 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 1, + "n_judged": 11, + "n_taps": 12, + "taps": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": null + }, + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)", + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 75.2544051, + "index": 1, + "metrics": { + "corr": 0.810486161, + "finite": true, + "max_abs": 6.94944191, + "mean_abs": 0.295552543, + "psnr_db": 25.2373676, + "ref_absmax": 9.23459816, + "rel_max": 0.752544051, + "scaled_max_abs": 0.752544051 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/maxpool/MaxPool_output_0" + }, + "status": "fail", + "tap": "net.maxpool", + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_ratio": 87.8908709, + "index": 2, + "metrics": { + "corr": 0.68564484, + "finite": true, + "max_abs": 13.9848557, + "mean_abs": 0.286049572, + "psnr_db": 29.4188469, + "ref_absmax": 15.9116135, + "rel_max": 0.878908709, + "scaled_max_abs": 0.878908709 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.0/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer1.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 90.9764992, + "index": 3, + "metrics": { + "corr": 0.717395086, + "finite": true, + "max_abs": 17.1211452, + "mean_abs": 0.290024348, + "psnr_db": 30.6934859, + "ref_absmax": 18.8193054, + "rel_max": 0.909764992, + "scaled_max_abs": 0.909764992 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer1.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 83.4563624, + "index": 4, + "metrics": { + "corr": 0.749876442, + "finite": true, + "max_abs": 9.76409817, + "mean_abs": 0.109380383, + "psnr_db": 34.1097725, + "ref_absmax": 11.699645, + "rel_max": 0.834563624, + "scaled_max_abs": 0.834563624 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.0/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer2.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 84.64056, + "index": 5, + "metrics": { + "corr": 0.710981214, + "finite": true, + "max_abs": 9.83814049, + "mean_abs": 0.112805307, + "psnr_db": 33.3802761, + "ref_absmax": 11.623435, + "rel_max": 0.8464056, + "scaled_max_abs": 0.8464056 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer2.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 88.9299742, + "index": 6, + "metrics": { + "corr": 0.5898015, + "finite": true, + "max_abs": 12.1756258, + "mean_abs": 0.0835752939, + "psnr_db": 36.5003281, + "ref_absmax": 13.6912508, + "rel_max": 0.889299742, + "scaled_max_abs": 0.889299742 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.0/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer3.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 93.2641691, + "index": 7, + "metrics": { + "corr": 0.617101836, + "finite": true, + "max_abs": 7.76808071, + "mean_abs": 0.0894744604, + "psnr_db": 32.1695423, + "ref_absmax": 8.32911587, + "rel_max": 0.932641691, + "scaled_max_abs": 0.932641691 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer3.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 100.0, + "index": 8, + "metrics": { + "corr": 0.463884015, + "finite": true, + "max_abs": 6.10643864, + "mean_abs": 0.0550053666, + "psnr_db": 31.4855758, + "ref_absmax": 6.10643864, + "rel_max": 1.0, + "scaled_max_abs": 1.0 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.0/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer4.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 100.0, + "index": 9, + "metrics": { + "corr": 0.379385208, + "finite": true, + "max_abs": 17.7401104, + "mean_abs": 0.512461216, + "psnr_db": 24.1813508, + "ref_absmax": 17.7401104, + "rel_max": 1.0, + "scaled_max_abs": 1.0 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer4.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 96.1394148, + "index": 10, + "metrics": { + "corr": 0.427788052, + "finite": true, + "max_abs": 10.486517, + "mean_abs": 0.466854879, + "psnr_db": 21.3609456, + "ref_absmax": 10.9076147, + "rel_max": 0.961394148, + "scaled_max_abs": 0.961394148 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 96.5254505, + "index": 11, + "metrics": { + "corr": 0.498059122, + "finite": true, + "max_abs": 22.3183162, + "mean_abs": 1.4777688, + "psnr_db": 24.9177908, + "ref_absmax": 23.1216908, + "rel_max": 0.965254505, + "scaled_max_abs": 0.965254505 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.0, + "band_ratio": 91.6709627, + "metrics": { + "corr": 0.500847501, + "finite": true, + "max_abs": 19.6361144, + "mean_abs": 1.42125081, + "psnr_db": 24.959907, + "ref_absmax": 21.4202118, + "rel_max": 0.916709627, + "scaled_max_abs": 0.916709627 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 1, + "n_judged": 11, + "n_taps": 12, + "taps": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": null + }, + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)", + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 72.1404842, + "index": 1, + "metrics": { + "corr": 0.806073517, + "finite": true, + "max_abs": 6.06619453, + "mean_abs": 0.277461456, + "psnr_db": 25.0984104, + "ref_absmax": 8.40886307, + "rel_max": 0.721404842, + "scaled_max_abs": 0.721404842 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/maxpool/MaxPool_output_0" + }, + "status": "fail", + "tap": "net.maxpool", + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 86.2070382, + "index": 2, + "metrics": { + "corr": 0.684080055, + "finite": true, + "max_abs": 14.7340622, + "mean_abs": 0.270998542, + "psnr_db": 30.5945801, + "ref_absmax": 17.0914841, + "rel_max": 0.862070382, + "scaled_max_abs": 0.862070382 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.0/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer1.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 87.8467773, + "index": 3, + "metrics": { + "corr": 0.7168855, + "finite": true, + "max_abs": 16.4813709, + "mean_abs": 0.274944555, + "psnr_db": 31.1803946, + "ref_absmax": 18.7614975, + "rel_max": 0.878467773, + "scaled_max_abs": 0.878467773 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer1.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 82.3653303, + "index": 4, + "metrics": { + "corr": 0.750281483, + "finite": true, + "max_abs": 9.16797066, + "mean_abs": 0.105217975, + "psnr_db": 34.0956562, + "ref_absmax": 11.1308613, + "rel_max": 0.823653303, + "scaled_max_abs": 0.823653303 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.0/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer2.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 82.6272356, + "index": 5, + "metrics": { + "corr": 0.71243327, + "finite": true, + "max_abs": 9.4008007, + "mean_abs": 0.107095215, + "psnr_db": 33.6782794, + "ref_absmax": 11.3773632, + "rel_max": 0.826272356, + "scaled_max_abs": 0.826272356 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer2.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 89.9889118, + "index": 6, + "metrics": { + "corr": 0.612623924, + "finite": true, + "max_abs": 10.735795, + "mean_abs": 0.0787973276, + "psnr_db": 35.9672573, + "ref_absmax": 11.930131, + "rel_max": 0.899889118, + "scaled_max_abs": 0.899889118 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.0/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer3.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 84.480076, + "index": 7, + "metrics": { + "corr": 0.647743549, + "finite": true, + "max_abs": 5.87666559, + "mean_abs": 0.0838559069, + "psnr_db": 31.4061166, + "ref_absmax": 6.95627403, + "rel_max": 0.84480076, + "scaled_max_abs": 0.84480076 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer3.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 98.5646236, + "index": 8, + "metrics": { + "corr": 0.493903646, + "finite": true, + "max_abs": 4.76536083, + "mean_abs": 0.050655903, + "psnr_db": 30.184122, + "ref_absmax": 4.8347578, + "rel_max": 0.985646236, + "scaled_max_abs": 0.985646236 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.0/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer4.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 97.5179853, + "index": 9, + "metrics": { + "corr": 0.38281199, + "finite": true, + "max_abs": 20.642519, + "mean_abs": 0.494148411, + "psnr_db": 26.0570335, + "ref_absmax": 21.1679096, + "rel_max": 0.975179853, + "scaled_max_abs": 0.975179853 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer4.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 98.4939769, + "index": 10, + "metrics": { + "corr": 0.431469729, + "finite": true, + "max_abs": 10.5460768, + "mean_abs": 0.444718349, + "psnr_db": 21.6525111, + "ref_absmax": 10.7073317, + "rel_max": 0.984939769, + "scaled_max_abs": 0.984939769 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 91.6709627, + "index": 11, + "metrics": { + "corr": 0.500847501, + "finite": true, + "max_abs": 19.6361144, + "mean_abs": 1.42125081, + "psnr_db": 24.959907, + "ref_absmax": 21.4202118, + "rel_max": 0.916709627, + "scaled_max_abs": 0.916709627 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp16", + "id": "resnet18__drop_normalize__onnx_fp16", + "model": "resnet18", + "path": "onnx", + "variant": "drop_normalize" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/resnet18__drop_normalize__onnx_fp32.json b/bench/verdicts_e2e_gated/resnet18__drop_normalize__onnx_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..9e698ce6c9f4e9b5f916e82156dfcbb8bec819ea --- /dev/null +++ b/bench/verdicts_e2e_gated/resnet18__drop_normalize__onnx_fp32.json @@ -0,0 +1,829 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "net.maxpool", + "explained_by": "no_normalize", + "nominal_band_ratio": 7572.13723, + "results": [ + { + "band_ratio": 9737.69042, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 9440.2275, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 9460.60722, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 9120.15785, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 0.00514554988, + "explains": true, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "flag" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": null, + "basis": "interface hypothesis 'no_normalize' explains the first over-band tap (net.maxpool)", + "index": 0, + "neighbourhood": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": null + }, + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 7213.44081, + "index": 1, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/maxpool/MaxPool_output_0" + }, + "status": "fail", + "tap": "net.maxpool" + } + ], + "observed_first_over_band": { + "index": 1, + "tap": "net.maxpool" + }, + "shape": 224, + "tap": "normalize" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "3d838989719a6fca687009002bfea93e7be887424f8dbab814076b313655f3c3", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "0fd41f0c37945acd482518765bc5c895c27541a9af826617657113d985a56c5d", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + }, + { + "item": "tap normalize @ 224", + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)" + }, + { + "item": "tap normalize @ 192", + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D3", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.0, + "band_ratio": 9651.55703, + "metrics": { + "corr": 0.498004457, + "finite": true, + "max_abs": 22.3160317, + "mean_abs": 1.47798918, + "psnr_db": 24.9171898, + "ref_absmax": 23.1216908, + "rel_max": 0.965155703, + "scaled_max_abs": 0.965155703 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 1, + "n_judged": 11, + "n_taps": 12, + "taps": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": null + }, + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)", + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 7524.41889, + "index": 1, + "metrics": { + "corr": 0.810478258, + "finite": true, + "max_abs": 6.94849849, + "mean_abs": 0.295561912, + "psnr_db": 25.2371829, + "ref_absmax": 9.23459816, + "rel_max": 0.752441889, + "scaled_max_abs": 0.752441889 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/maxpool/MaxPool_output_0" + }, + "status": "fail", + "tap": "net.maxpool", + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_ratio": 8789.06866, + "index": 2, + "metrics": { + "corr": 0.685622624, + "finite": true, + "max_abs": 13.9848263, + "mean_abs": 0.28607451, + "psnr_db": 29.4185757, + "ref_absmax": 15.9116135, + "rel_max": 0.878906866, + "scaled_max_abs": 0.878906866 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.0/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer1.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9097.67057, + "index": 3, + "metrics": { + "corr": 0.717402664, + "finite": true, + "max_abs": 17.1211841, + "mean_abs": 0.2900282, + "psnr_db": 30.6935139, + "ref_absmax": 18.8193054, + "rel_max": 0.909767057, + "scaled_max_abs": 0.909767057 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer1.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 8345.50337, + "index": 4, + "metrics": { + "corr": 0.749877921, + "finite": true, + "max_abs": 9.76394272, + "mean_abs": 0.109381566, + "psnr_db": 34.1097045, + "ref_absmax": 11.699645, + "rel_max": 0.834550337, + "scaled_max_abs": 0.834550337 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.0/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer2.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 8464.0762, + "index": 5, + "metrics": { + "corr": 0.711004953, + "finite": true, + "max_abs": 9.83816397, + "mean_abs": 0.112803607, + "psnr_db": 33.3803743, + "ref_absmax": 11.623435, + "rel_max": 0.84640762, + "scaled_max_abs": 0.84640762 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer2.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 8893.23103, + "index": 6, + "metrics": { + "corr": 0.58985648, + "finite": true, + "max_abs": 12.1759456, + "mean_abs": 0.0835666335, + "psnr_db": 36.5007482, + "ref_absmax": 13.6912508, + "rel_max": 0.889323103, + "scaled_max_abs": 0.889323103 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.0/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer3.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9325.31579, + "index": 7, + "metrics": { + "corr": 0.617139572, + "finite": true, + "max_abs": 7.76716357, + "mean_abs": 0.0894660211, + "psnr_db": 32.1698796, + "ref_absmax": 8.32911587, + "rel_max": 0.932531579, + "scaled_max_abs": 0.932531579 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer3.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10000.0, + "index": 8, + "metrics": { + "corr": 0.463918349, + "finite": true, + "max_abs": 6.10643864, + "mean_abs": 0.0550031829, + "psnr_db": 31.4858636, + "ref_absmax": 6.10643864, + "rel_max": 1.0, + "scaled_max_abs": 1.0 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.0/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer4.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10000.0, + "index": 9, + "metrics": { + "corr": 0.379460916, + "finite": true, + "max_abs": 17.7401104, + "mean_abs": 0.512472237, + "psnr_db": 24.1818437, + "ref_absmax": 17.7401104, + "rel_max": 1.0, + "scaled_max_abs": 1.0 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer4.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9614.22931, + "index": 10, + "metrics": { + "corr": 0.427828783, + "finite": true, + "max_abs": 10.4868309, + "mean_abs": 0.466825944, + "psnr_db": 21.3615202, + "ref_absmax": 10.9076147, + "rel_max": 0.961422931, + "scaled_max_abs": 0.961422931 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9651.55703, + "index": 11, + "metrics": { + "corr": 0.498004457, + "finite": true, + "max_abs": 22.3160317, + "mean_abs": 1.47798918, + "psnr_db": 24.9171898, + "ref_absmax": 23.1216908, + "rel_max": 0.965155703, + "scaled_max_abs": 0.965155703 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.0, + "band_ratio": 9167.76009, + "metrics": { + "corr": 0.50081051, + "finite": true, + "max_abs": 19.6375363, + "mean_abs": 1.42146169, + "psnr_db": 24.9592089, + "ref_absmax": 21.4202118, + "rel_max": 0.916776009, + "scaled_max_abs": 0.916776009 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 1, + "n_judged": 11, + "n_taps": 12, + "taps": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": null + }, + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)", + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 7213.44081, + "index": 1, + "metrics": { + "corr": 0.806064607, + "finite": true, + "max_abs": 6.0656836, + "mean_abs": 0.277470658, + "psnr_db": 25.0982109, + "ref_absmax": 8.40886307, + "rel_max": 0.721344081, + "scaled_max_abs": 0.721344081 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/maxpool/MaxPool_output_0" + }, + "status": "fail", + "tap": "net.maxpool", + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 8620.68289, + "index": 2, + "metrics": { + "corr": 0.684054285, + "finite": true, + "max_abs": 14.7340264, + "mean_abs": 0.271024073, + "psnr_db": 30.5942802, + "ref_absmax": 17.0914841, + "rel_max": 0.862068289, + "scaled_max_abs": 0.862068289 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.0/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer1.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 8784.71433, + "index": 3, + "metrics": { + "corr": 0.716892903, + "finite": true, + "max_abs": 16.4814396, + "mean_abs": 0.274949195, + "psnr_db": 31.1804137, + "ref_absmax": 18.7614975, + "rel_max": 0.878471433, + "scaled_max_abs": 0.878471433 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer1.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 8236.16033, + "index": 4, + "metrics": { + "corr": 0.750289589, + "finite": true, + "max_abs": 9.16755581, + "mean_abs": 0.105217853, + "psnr_db": 34.0956788, + "ref_absmax": 11.1308613, + "rel_max": 0.823616033, + "scaled_max_abs": 0.823616033 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.0/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer2.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 8262.43427, + "index": 5, + "metrics": { + "corr": 0.712464134, + "finite": true, + "max_abs": 9.40047157, + "mean_abs": 0.107092158, + "psnr_db": 33.6784728, + "ref_absmax": 11.3773632, + "rel_max": 0.826243427, + "scaled_max_abs": 0.826243427 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer2.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 8997.51634, + "index": 6, + "metrics": { + "corr": 0.612675267, + "finite": true, + "max_abs": 10.7341548, + "mean_abs": 0.0787888894, + "psnr_db": 35.9676794, + "ref_absmax": 11.930131, + "rel_max": 0.899751634, + "scaled_max_abs": 0.899751634 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.0/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer3.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 8448.0076, + "index": 7, + "metrics": { + "corr": 0.647806965, + "finite": true, + "max_abs": 5.87666559, + "mean_abs": 0.0838450384, + "psnr_db": 31.4067601, + "ref_absmax": 6.95627403, + "rel_max": 0.84480076, + "scaled_max_abs": 0.84480076 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer3.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9853.54515, + "index": 8, + "metrics": { + "corr": 0.493958406, + "finite": true, + "max_abs": 4.76395043, + "mean_abs": 0.0506537714, + "psnr_db": 30.1846204, + "ref_absmax": 4.8347578, + "rel_max": 0.985354515, + "scaled_max_abs": 0.985354515 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.0/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer4.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9751.84246, + "index": 9, + "metrics": { + "corr": 0.382922838, + "finite": true, + "max_abs": 20.642612, + "mean_abs": 0.494157637, + "psnr_db": 26.0575643, + "ref_absmax": 21.1679096, + "rel_max": 0.975184246, + "scaled_max_abs": 0.975184246 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer4.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9850.35911, + "index": 10, + "metrics": { + "corr": 0.431570749, + "finite": true, + "max_abs": 10.5471062, + "mean_abs": 0.444687661, + "psnr_db": 21.653341, + "ref_absmax": 10.7073317, + "rel_max": 0.985035911, + "scaled_max_abs": 0.985035911 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9167.76009, + "index": 11, + "metrics": { + "corr": 0.50081051, + "finite": true, + "max_abs": 19.6375363, + "mean_abs": 1.42146169, + "psnr_db": 24.9592089, + "ref_absmax": 21.4202118, + "rel_max": 0.916776009, + "scaled_max_abs": 0.916776009 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp32", + "id": "resnet18__drop_normalize__onnx_fp32", + "model": "resnet18", + "path": "onnx", + "variant": "drop_normalize" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/resnet18__fp16_as_fp32__coreml.json b/bench/verdicts_e2e_gated/resnet18__fp16_as_fp32__coreml.json new file mode 100644 index 0000000000000000000000000000000000000000..c53e27098f2f7973591ed7c280cd204474920a0c --- /dev/null +++ b/bench/verdicts_e2e_gated/resnet18__fp16_as_fp32__coreml.json @@ -0,0 +1,826 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": "artifact computes in fp16 (declared fp32); the drift onset (normalize) is the size fp16 explains: distributed precision drift, not a single-op fault; note: taps over the fp16 band too: ['net.layer3.1', 'net.layer4.0', 'net.layer4.1']", + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "normalize", + "explained_by": null, + "nominal_band_ratio": 13.0516105, + "results": [ + { + "band_ratio": 16835.9372, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 8135.60838, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 20992.1961, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 16915.457, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 21192.6264, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [ + "inputs[0]: dtype float16 (declared float32)", + "outputs[0]: dtype float16 (declared float32)" + ], + "status": "precision_narrowing" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp32", + "first_divergence": { + "basis": "artifact computes in fp16 (declared fp32); the drift onset (normalize) is the size fp16 explains: distributed precision drift, not a single-op fault; note: taps over the fp16 band too: ['net.layer3.1', 'net.layer4.0', 'net.layer4.1']", + "index": null, + "onset": { + "index": 0, + "tap": "normalize" + }, + "shape": 224, + "tap": null + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "d6e8f11106d7868c4acdddd4c89bb934bd08cc14049682fea972c885765295e4", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "aa676247fae9c779d0ab1c7cd4fb20d3d1c91b615ff304ed67889a259a1af32e", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D1", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 52.6305587, + "metrics": { + "corr": 0.999974293, + "finite": true, + "max_abs": 0.12169075, + "mean_abs": 0.0123914789, + "psnr_db": 66.5600825, + "ref_absmax": 23.1216908, + "rel_max": 0.00526305587, + "scaled_max_abs": 0.00526305587 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 0, + "n_judged": 12, + "n_taps": 12, + "taps": [ + { + "band_ratio": 11.7570499, + "index": 0, + "metrics": { + "corr": 0.999999914, + "finite": true, + "max_abs": 0.0135545731, + "mean_abs": 0.000674526699, + "psnr_db": 83.5827466, + "ref_absmax": 11.5288897, + "rel_max": 0.00117570499, + "scaled_max_abs": 0.00117570499 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "status": "fail", + "tap": "normalize", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 45.9322342, + "index": 1, + "metrics": { + "corr": 0.999996447, + "finite": true, + "max_abs": 0.0424165726, + "mean_abs": 0.000952223367, + "psnr_db": 75.0364552, + "ref_absmax": 9.23459816, + "rel_max": 0.00459322342, + "scaled_max_abs": 0.00459322342 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_9_cast_fp16" + }, + "status": "fail", + "tap": "net.maxpool", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 48.0211137, + "index": 2, + "metrics": { + "corr": 0.99998717, + "finite": true, + "max_abs": 0.0764093399, + "mean_abs": 0.00215436701, + "psnr_db": 73.3099338, + "ref_absmax": 15.9116135, + "rel_max": 0.00480211137, + "scaled_max_abs": 0.00480211137 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_21_cast_fp16" + }, + "status": "fail", + "tap": "net.layer1.0", + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_ratio": 44.1904939, + "index": 3, + "metrics": { + "corr": 0.999962955, + "finite": true, + "max_abs": 0.0831634402, + "mean_abs": 0.0038022016, + "psnr_db": 69.3862926, + "ref_absmax": 18.8193054, + "rel_max": 0.00441904939, + "scaled_max_abs": 0.00441904939 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_33_cast_fp16" + }, + "status": "fail", + "tap": "net.layer1.1", + "worst_probe": { + "category": "near_zero", + "index": 27 + } + }, + { + "band_ratio": 48.2464821, + "index": 4, + "metrics": { + "corr": 0.999939928, + "finite": true, + "max_abs": 0.0564466715, + "mean_abs": 0.00186217433, + "psnr_db": 69.8477445, + "ref_absmax": 11.699645, + "rel_max": 0.00482464821, + "scaled_max_abs": 0.00482464821 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_47_cast_fp16" + }, + "status": "fail", + "tap": "net.layer2.0", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_ratio": 58.9862113, + "index": 5, + "metrics": { + "corr": 0.999930102, + "finite": true, + "max_abs": 0.0685622394, + "mean_abs": 0.00200145403, + "psnr_db": 69.0183736, + "ref_absmax": 11.623435, + "rel_max": 0.00589862113, + "scaled_max_abs": 0.00589862113 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59_cast_fp16" + }, + "status": "fail", + "tap": "net.layer2.1", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + }, + { + "band_ratio": 39.8626786, + "index": 6, + "metrics": { + "corr": 0.999943674, + "finite": true, + "max_abs": 0.054576993, + "mean_abs": 0.00120694028, + "psnr_db": 74.2042645, + "ref_absmax": 13.6912508, + "rel_max": 0.00398626786, + "scaled_max_abs": 0.00398626786 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_73_cast_fp16" + }, + "status": "fail", + "tap": "net.layer3.0", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_ratio": 120.9288, + "index": 7, + "metrics": { + "corr": 0.999914514, + "finite": true, + "max_abs": 0.100722998, + "mean_abs": 0.00143564133, + "psnr_db": 67.8457217, + "ref_absmax": 8.32911587, + "rel_max": 0.01209288, + "scaled_max_abs": 0.01209288 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85_cast_fp16" + }, + "status": "fail", + "tap": "net.layer3.1", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + }, + { + "band_ratio": 206.168257, + "index": 8, + "metrics": { + "corr": 0.999844894, + "finite": true, + "max_abs": 0.125895381, + "mean_abs": 0.000886009569, + "psnr_db": 65.7722773, + "ref_absmax": 6.10643864, + "rel_max": 0.0206168257, + "scaled_max_abs": 0.0206168257 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_99_cast_fp16" + }, + "status": "fail", + "tap": "net.layer4.0", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_ratio": 140.49191, + "index": 9, + "metrics": { + "corr": 0.999917714, + "finite": true, + "max_abs": 0.2492342, + "mean_abs": 0.00654935488, + "psnr_db": 61.7269115, + "ref_absmax": 17.7401104, + "rel_max": 0.014049191, + "scaled_max_abs": 0.014049191 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_111_cast_fp16" + }, + "status": "fail", + "tap": "net.layer4.1", + "worst_probe": { + "category": "wide_range", + "index": 21 + } + }, + { + "band_ratio": 87.0158006, + "index": 10, + "metrics": { + "corr": 0.999970902, + "finite": true, + "max_abs": 0.0949134827, + "mean_abs": 0.00389845734, + "psnr_db": 63.2187815, + "ref_absmax": 10.9076147, + "rel_max": 0.00870158006, + "scaled_max_abs": 0.00870158006 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_ratio": 52.6305587, + "index": 11, + "metrics": { + "corr": 0.999974293, + "finite": true, + "max_abs": 0.12169075, + "mean_abs": 0.0123914789, + "psnr_db": 66.5600825, + "ref_absmax": 23.1216908, + "rel_max": 0.00526305587, + "scaled_max_abs": 0.00526305587 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 65.2165202, + "metrics": { + "corr": 0.999976106, + "finite": true, + "max_abs": 0.139695168, + "mean_abs": 0.01166934, + "psnr_db": 66.9644292, + "ref_absmax": 21.4202118, + "rel_max": 0.00652165202, + "scaled_max_abs": 0.00652165202 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 7 + } + }, + "first_fail_index": 0, + "n_judged": 12, + "n_taps": 12, + "taps": [ + { + "band_ratio": 11.6213884, + "index": 0, + "metrics": { + "corr": 0.999999912, + "finite": true, + "max_abs": 0.0133981705, + "mean_abs": 0.000679588388, + "psnr_db": 83.6184843, + "ref_absmax": 11.5288897, + "rel_max": 0.00116213884, + "scaled_max_abs": 0.00116213884 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "status": "fail", + "tap": "normalize", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 43.0958027, + "index": 1, + "metrics": { + "corr": 0.999996278, + "finite": true, + "max_abs": 0.0362386703, + "mean_abs": 0.000924325333, + "psnr_db": 74.6037105, + "ref_absmax": 8.40886307, + "rel_max": 0.00430958027, + "scaled_max_abs": 0.00430958027 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_9_cast_fp16" + }, + "status": "fail", + "tap": "net.maxpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 38.4801236, + "index": 2, + "metrics": { + "corr": 0.999985791, + "finite": true, + "max_abs": 0.0657682419, + "mean_abs": 0.00216025527, + "psnr_db": 73.9813907, + "ref_absmax": 17.0914841, + "rel_max": 0.00384801236, + "scaled_max_abs": 0.00384801236 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_21_cast_fp16" + }, + "status": "fail", + "tap": "net.layer1.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 48.244139, + "index": 3, + "metrics": { + "corr": 0.999957868, + "finite": true, + "max_abs": 0.0905132294, + "mean_abs": 0.003858105, + "psnr_db": 69.2665621, + "ref_absmax": 18.7614975, + "rel_max": 0.0048244139, + "scaled_max_abs": 0.0048244139 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_33_cast_fp16" + }, + "status": "fail", + "tap": "net.layer1.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 48.5763828, + "index": 4, + "metrics": { + "corr": 0.999932954, + "finite": true, + "max_abs": 0.0540696979, + "mean_abs": 0.00188201915, + "psnr_db": 69.3375532, + "ref_absmax": 11.1308613, + "rel_max": 0.00485763828, + "scaled_max_abs": 0.00485763828 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_47_cast_fp16" + }, + "status": "fail", + "tap": "net.layer2.0", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_ratio": 60.5789942, + "index": 5, + "metrics": { + "corr": 0.999922136, + "finite": true, + "max_abs": 0.068922922, + "mean_abs": 0.0019962136, + "psnr_db": 68.8164661, + "ref_absmax": 11.3773632, + "rel_max": 0.00605789942, + "scaled_max_abs": 0.00605789942 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59_cast_fp16" + }, + "status": "fail", + "tap": "net.layer2.1", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_ratio": 57.7717049, + "index": 6, + "metrics": { + "corr": 0.999937803, + "finite": true, + "max_abs": 0.0689224005, + "mean_abs": 0.00120167353, + "psnr_db": 73.0529363, + "ref_absmax": 11.930131, + "rel_max": 0.00577717049, + "scaled_max_abs": 0.00577717049 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_73_cast_fp16" + }, + "status": "fail", + "tap": "net.layer3.0", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + }, + { + "band_ratio": 171.483417, + "index": 7, + "metrics": { + "corr": 0.999901973, + "finite": true, + "max_abs": 0.119288564, + "mean_abs": 0.00145777084, + "psnr_db": 66.2038957, + "ref_absmax": 6.95627403, + "rel_max": 0.0171483417, + "scaled_max_abs": 0.0171483417 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85_cast_fp16" + }, + "status": "fail", + "tap": "net.layer3.1", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_ratio": 243.476768, + "index": 8, + "metrics": { + "corr": 0.999831858, + "finite": true, + "max_abs": 0.11771512, + "mean_abs": 0.00085839442, + "psnr_db": 63.9868246, + "ref_absmax": 4.8347578, + "rel_max": 0.0243476768, + "scaled_max_abs": 0.0243476768 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_99_cast_fp16" + }, + "status": "fail", + "tap": "net.layer4.0", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_ratio": 129.596729, + "index": 9, + "metrics": { + "corr": 0.999905255, + "finite": true, + "max_abs": 0.274329185, + "mean_abs": 0.00667376417, + "psnr_db": 62.9871787, + "ref_absmax": 21.1679096, + "rel_max": 0.0129596729, + "scaled_max_abs": 0.0129596729 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_111_cast_fp16" + }, + "status": "fail", + "tap": "net.layer4.1", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_ratio": 85.002375, + "index": 10, + "metrics": { + "corr": 0.999972488, + "finite": true, + "max_abs": 0.0910148621, + "mean_abs": 0.0036676624, + "psnr_db": 63.7343799, + "ref_absmax": 10.7073317, + "rel_max": 0.0085002375, + "scaled_max_abs": 0.0085002375 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_ratio": 65.2165202, + "index": 11, + "metrics": { + "corr": 0.999976106, + "finite": true, + "max_abs": 0.139695168, + "mean_abs": 0.01166934, + "psnr_db": 66.9644292, + "ref_absmax": 21.4202118, + "rel_max": 0.00652165202, + "scaled_max_abs": 0.00652165202 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "natural", + "index": 7 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp16", + "id": "resnet18__fp16_as_fp32__coreml", + "model": "resnet18", + "path": "coreml", + "variant": "fp16_as_fp32" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/resnet18__fp16_as_fp32__litert.json b/bench/verdicts_e2e_gated/resnet18__fp16_as_fp32__litert.json new file mode 100644 index 0000000000000000000000000000000000000000..6ce2ea0fae29e174b7a00b2ecbeed3c8388f2670 --- /dev/null +++ b/bench/verdicts_e2e_gated/resnet18__fp16_as_fp32__litert.json @@ -0,0 +1,943 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": "artifact computes in fp16 (declared fp32); the drift onset (net.maxpool) is the size fp16 explains: distributed precision drift, not a single-op fault", + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "net.maxpool", + "explained_by": null, + "nominal_band_ratio": 2.19146036, + "results": [ + { + "band_ratio": 9843.54751, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 7694.42306, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 36850.3269, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 9186.0123, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 29090.3268, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 0.00801471716, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.71661377e-05, + "mean_abs": 1.32579838e-06, + "psnr_db": 145.461536, + "ref_absmax": 21.4182701, + "rel_max": 8.01471716e-07, + "scaled_max_abs": 8.01471716e-07 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 27, + "outputs": [ + "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models.res", + "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.linear.Linear_fc;1_dequant", + "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.B", + "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.B" + ] + }, + { + "inputs": 43, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 2, + "n_ops_total": 60, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp32", + "first_divergence": { + "basis": "artifact computes in fp16 (declared fp32); the drift onset (net.maxpool) is the size fp16 explains: distributed precision drift, not a single-op fault", + "index": null, + "onset": { + "index": 1, + "tap": "net.maxpool" + }, + "shape": 224, + "tap": null + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "5518083a49acade5bb9995f1d28be7f32b0a23e8e42c5e39dfdbe59cfc6b794d", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "8d2974be0ffdfd9646dac16768c8f2eaa45593bd0207920e3d4230bc7750498d", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D1", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 4.69419279, + "metrics": { + "corr": 0.999999821, + "finite": true, + "max_abs": 0.0108537674, + "mean_abs": 0.00112806203, + "psnr_db": 87.8386721, + "ref_absmax": 23.1216908, + "rel_max": 0.000469419279, + "scaled_max_abs": 0.000469419279 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 1, + "n_judged": 12, + "n_taps": 12, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.26638033e-08, + "psnr_db": 163.904618, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 5.52685286, + "index": 1, + "metrics": { + "corr": 0.999999962, + "finite": true, + "max_abs": 0.00510382652, + "mean_abs": 7.6244338e-05, + "psnr_db": 94.6749001, + "ref_absmax": 9.23459816, + "rel_max": 0.000552685286, + "scaled_max_abs": 0.000552685286 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.MaxPool2d_maxpool;2" + }, + "status": "fail", + "tap": "net.maxpool", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 2.85533862, + "index": 2, + "metrics": { + "corr": 0.999999915, + "finite": true, + "max_abs": 0.00454330444, + "mean_abs": 0.000158366689, + "psnr_db": 95.091453, + "ref_absmax": 15.9116135, + "rel_max": 0.000285533862, + "scaled_max_abs": 0.000285533862 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer1.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 2.62599506, + "index": 3, + "metrics": { + "corr": 0.999999807, + "finite": true, + "max_abs": 0.00494194031, + "mean_abs": 0.000244943041, + "psnr_db": 92.1941427, + "ref_absmax": 18.8193054, + "rel_max": 0.000262599506, + "scaled_max_abs": 0.000262599506 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer1.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 5.26554237, + "index": 4, + "metrics": { + "corr": 0.999999711, + "finite": true, + "max_abs": 0.00616049767, + "mean_abs": 0.000116616282, + "psnr_db": 93.01523, + "ref_absmax": 11.699645, + "rel_max": 0.000526554237, + "scaled_max_abs": 0.000526554237 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer2.0", + "worst_probe": { + "category": "wide_range", + "index": 20 + } + }, + { + "band_ratio": 6.20361493, + "index": 5, + "metrics": { + "corr": 0.999999676, + "finite": true, + "max_abs": 0.00721073151, + "mean_abs": 0.000130509692, + "psnr_db": 92.3595398, + "ref_absmax": 11.623435, + "rel_max": 0.000620361493, + "scaled_max_abs": 0.000620361493 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer2.1", + "worst_probe": { + "category": "wide_range", + "index": 22 + } + }, + { + "band_ratio": 2.44031295, + "index": 6, + "metrics": { + "corr": 0.999999722, + "finite": true, + "max_abs": 0.00334109366, + "mean_abs": 8.5855404e-05, + "psnr_db": 97.27591, + "ref_absmax": 13.6912508, + "rel_max": 0.000244031295, + "scaled_max_abs": 0.000244031295 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer3.0", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_ratio": 5.15205535, + "index": 7, + "metrics": { + "corr": 0.999999649, + "finite": true, + "max_abs": 0.0042912066, + "mean_abs": 9.51070798e-05, + "psnr_db": 91.7208003, + "ref_absmax": 8.32911587, + "rel_max": 0.000515205535, + "scaled_max_abs": 0.000515205535 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer3.1", + "worst_probe": { + "category": "near_zero", + "index": 27 + } + }, + { + "band_ratio": 11.7556982, + "index": 8, + "metrics": { + "corr": 0.999999304, + "finite": true, + "max_abs": 0.007178545, + "mean_abs": 6.1036483e-05, + "psnr_db": 89.2698291, + "ref_absmax": 6.10643864, + "rel_max": 0.00117556982, + "scaled_max_abs": 0.00117556982 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer4.0", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_ratio": 12.1889732, + "index": 9, + "metrics": { + "corr": 0.999999557, + "finite": true, + "max_abs": 0.021623373, + "mean_abs": 0.00049812914, + "psnr_db": 84.290483, + "ref_absmax": 17.7401104, + "rel_max": 0.00121889732, + "scaled_max_abs": 0.00121889732 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer4.1", + "worst_probe": { + "category": "near_zero", + "index": 27 + } + }, + { + "band_ratio": 6.75608743, + "index": 10, + "metrics": { + "corr": 0.999999775, + "finite": true, + "max_abs": 0.00736927986, + "mean_abs": 0.000378536389, + "psnr_db": 84.0350689, + "ref_absmax": 10.9076147, + "rel_max": 0.000675608743, + "scaled_max_abs": 0.000675608743 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;1" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "near_zero", + "index": 27 + } + }, + { + "band_ratio": 4.69419279, + "index": 11, + "metrics": { + "corr": 0.999999821, + "finite": true, + "max_abs": 0.0108537674, + "mean_abs": 0.00112806203, + "psnr_db": 87.8386721, + "ref_absmax": 23.1216908, + "rel_max": 0.000469419279, + "scaled_max_abs": 0.000469419279 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 4.79681862, + "metrics": { + "corr": 0.9999998, + "finite": true, + "max_abs": 0.0102748871, + "mean_abs": 0.00113285037, + "psnr_db": 87.5940613, + "ref_absmax": 21.4202118, + "rel_max": 0.000479681862, + "scaled_max_abs": 0.000479681862 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 1, + "n_judged": 12, + "n_taps": 12, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.2793459e-08, + "psnr_db": 164.013874, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 5.83793374, + "index": 1, + "metrics": { + "corr": 0.999999956, + "finite": true, + "max_abs": 0.00490903854, + "mean_abs": 7.63929271e-05, + "psnr_db": 93.8421926, + "ref_absmax": 8.40886307, + "rel_max": 0.000583793374, + "scaled_max_abs": 0.000583793374 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.MaxPool2d_maxpool;2" + }, + "status": "fail", + "tap": "net.maxpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 2.74063399, + "index": 2, + "metrics": { + "corr": 0.999999901, + "finite": true, + "max_abs": 0.00468415022, + "mean_abs": 0.000161921874, + "psnr_db": 95.5433913, + "ref_absmax": 17.0914841, + "rel_max": 0.000274063399, + "scaled_max_abs": 0.000274063399 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer1.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 2.51223373, + "index": 3, + "metrics": { + "corr": 0.999999774, + "finite": true, + "max_abs": 0.00471332669, + "mean_abs": 0.000250456457, + "psnr_db": 91.9597734, + "ref_absmax": 18.7614975, + "rel_max": 0.000251223373, + "scaled_max_abs": 0.000251223373 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer1.1", + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_ratio": 5.92551772, + "index": 4, + "metrics": { + "corr": 0.999999672, + "finite": true, + "max_abs": 0.00659561157, + "mean_abs": 0.000118937706, + "psnr_db": 92.4349706, + "ref_absmax": 11.1308613, + "rel_max": 0.000592551772, + "scaled_max_abs": 0.000592551772 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer2.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6.09826631, + "index": 5, + "metrics": { + "corr": 0.999999644, + "finite": true, + "max_abs": 0.00693821907, + "mean_abs": 0.000130281217, + "psnr_db": 92.2134029, + "ref_absmax": 11.3773632, + "rel_max": 0.000609826631, + "scaled_max_abs": 0.000609826631 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer2.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 2.79544214, + "index": 6, + "metrics": { + "corr": 0.999999683, + "finite": true, + "max_abs": 0.00333499908, + "mean_abs": 8.74087713e-05, + "psnr_db": 95.9804734, + "ref_absmax": 11.930131, + "rel_max": 0.000279544214, + "scaled_max_abs": 0.000279544214 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer3.0", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_ratio": 6.20957223, + "index": 7, + "metrics": { + "corr": 0.999999592, + "finite": true, + "max_abs": 0.00431954861, + "mean_abs": 9.86995916e-05, + "psnr_db": 90.0056449, + "ref_absmax": 6.95627403, + "rel_max": 0.000620957223, + "scaled_max_abs": 0.000620957223 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer3.1", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + }, + { + "band_ratio": 15.225034, + "index": 8, + "metrics": { + "corr": 0.999999218, + "finite": true, + "max_abs": 0.00736093521, + "mean_abs": 6.06419468e-05, + "psnr_db": 87.3266954, + "ref_absmax": 4.8347578, + "rel_max": 0.0015225034, + "scaled_max_abs": 0.0015225034 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer4.0", + "worst_probe": { + "category": "near_zero", + "index": 27 + } + }, + { + "band_ratio": 9.53705138, + "index": 9, + "metrics": { + "corr": 0.999999449, + "finite": true, + "max_abs": 0.0201879442, + "mean_abs": 0.000519985361, + "psnr_db": 85.3111292, + "ref_absmax": 21.1679096, + "rel_max": 0.000953705138, + "scaled_max_abs": 0.000953705138 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer4.1", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_ratio": 6.29439398, + "index": 10, + "metrics": { + "corr": 0.999999746, + "finite": true, + "max_abs": 0.00673961639, + "mean_abs": 0.00037416964, + "psnr_db": 83.9774555, + "ref_absmax": 10.7073317, + "rel_max": 0.000629439398, + "scaled_max_abs": 0.000629439398 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;1" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 4.79681862, + "index": 11, + "metrics": { + "corr": 0.9999998, + "finite": true, + "max_abs": 0.0102748871, + "mean_abs": 0.00113285037, + "psnr_db": 87.5940613, + "ref_absmax": 21.4202118, + "rel_max": 0.000479681862, + "scaled_max_abs": 0.000479681862 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp16", + "id": "resnet18__fp16_as_fp32__litert", + "model": "resnet18", + "path": "litert", + "variant": "fp16_as_fp32" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/resnet18__fp16_as_fp32__onnx.json b/bench/verdicts_e2e_gated/resnet18__fp16_as_fp32__onnx.json new file mode 100644 index 0000000000000000000000000000000000000000..3fc426445a45e1afd7d11c0062fcbf234e9fa31b --- /dev/null +++ b/bench/verdicts_e2e_gated/resnet18__fp16_as_fp32__onnx.json @@ -0,0 +1,823 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": "artifact computes in fp16 (declared fp32); the drift onset (normalize) is the size fp16 explains: distributed precision drift, not a single-op fault", + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "normalize", + "explained_by": null, + "nominal_band_ratio": 5.61457669, + "results": [ + { + "band_ratio": 16837.3835, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 8136.66388, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 20992.2062, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 16908.0588, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 21191.8018, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp32", + "first_divergence": { + "basis": "artifact computes in fp16 (declared fp32); the drift onset (normalize) is the size fp16 explains: distributed precision drift, not a single-op fault", + "index": null, + "onset": { + "index": 0, + "tap": "normalize" + }, + "shape": 224, + "tap": null + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "4f79899b2d94647c7a27acca5e2e048d6822448df0daac039062b5f5ac153fb2", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "441b70243dcc6533ecfb651f068a5b92f6a087252f2b8a01eebcf8972fcb76c6", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D1", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 5.44321784, + "metrics": { + "corr": 0.999999467, + "finite": true, + "max_abs": 0.01258564, + "mean_abs": 0.0019200106, + "psnr_db": 83.331005, + "ref_absmax": 23.1216908, + "rel_max": 0.000544321784, + "scaled_max_abs": 0.000544321784 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 12 + } + }, + "first_fail_index": 0, + "n_judged": 12, + "n_taps": 12, + "taps": [ + { + "band_ratio": 4.41313312, + "index": 0, + "metrics": { + "corr": 0.999999966, + "finite": true, + "max_abs": 0.00508785248, + "mean_abs": 0.000405953078, + "psnr_db": 88.0186903, + "ref_absmax": 11.5288897, + "rel_max": 0.000441313312, + "scaled_max_abs": 0.000441313312 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "fail", + "tap": "normalize", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6.40982743, + "index": 1, + "metrics": { + "corr": 0.999999909, + "finite": true, + "max_abs": 0.00591921806, + "mean_abs": 0.000156664105, + "psnr_db": 90.9101891, + "ref_absmax": 9.23459816, + "rel_max": 0.000640982743, + "scaled_max_abs": 0.000640982743 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/maxpool/MaxPool_output_0" + }, + "status": "fail", + "tap": "net.maxpool", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 3.84577671, + "index": 2, + "metrics": { + "corr": 0.999999849, + "finite": true, + "max_abs": 0.00611925125, + "mean_abs": 0.000234829637, + "psnr_db": 92.5526304, + "ref_absmax": 15.9116135, + "rel_max": 0.000384577671, + "scaled_max_abs": 0.000384577671 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.0/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer1.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 5.24185506, + "index": 3, + "metrics": { + "corr": 0.999999705, + "finite": true, + "max_abs": 0.00986480713, + "mean_abs": 0.000332652643, + "psnr_db": 90.3693126, + "ref_absmax": 18.8193054, + "rel_max": 0.000524185506, + "scaled_max_abs": 0.000524185506 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer1.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6.13549091, + "index": 4, + "metrics": { + "corr": 0.999999522, + "finite": true, + "max_abs": 0.00717830658, + "mean_abs": 0.000162431505, + "psnr_db": 90.8349286, + "ref_absmax": 11.699645, + "rel_max": 0.000613549091, + "scaled_max_abs": 0.000613549091 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.0/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer2.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 5.55682387, + "index": 5, + "metrics": { + "corr": 0.999999447, + "finite": true, + "max_abs": 0.00645893812, + "mean_abs": 0.000178505766, + "psnr_db": 90.0284719, + "ref_absmax": 11.623435, + "rel_max": 0.000555682387, + "scaled_max_abs": 0.000555682387 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer2.1", + "worst_probe": { + "category": "wide_range", + "index": 21 + } + }, + { + "band_ratio": 4.08548376, + "index": 6, + "metrics": { + "corr": 0.999999446, + "finite": true, + "max_abs": 0.00559353828, + "mean_abs": 0.000124051904, + "psnr_db": 94.267843, + "ref_absmax": 13.6912508, + "rel_max": 0.000408548376, + "scaled_max_abs": 0.000408548376 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.0/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer3.0", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + }, + { + "band_ratio": 6.52819754, + "index": 7, + "metrics": { + "corr": 0.99999922, + "finite": true, + "max_abs": 0.00543741137, + "mean_abs": 0.000147396744, + "psnr_db": 88.2202678, + "ref_absmax": 8.32911587, + "rel_max": 0.000652819754, + "scaled_max_abs": 0.000652819754 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer3.1", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + }, + { + "band_ratio": 14.1629438, + "index": 8, + "metrics": { + "corr": 0.999998468, + "finite": true, + "max_abs": 0.00864851475, + "mean_abs": 9.56121682e-05, + "psnr_db": 85.8471326, + "ref_absmax": 6.10643864, + "rel_max": 0.00141629438, + "scaled_max_abs": 0.00141629438 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.0/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer4.0", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_ratio": 15.8067242, + "index": 9, + "metrics": { + "corr": 0.999998786, + "finite": true, + "max_abs": 0.0280413032, + "mean_abs": 0.000834968418, + "psnr_db": 79.9927633, + "ref_absmax": 17.7401104, + "rel_max": 0.00158067242, + "scaled_max_abs": 0.00158067242 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer4.1", + "worst_probe": { + "category": "near_zero", + "index": 27 + } + }, + { + "band_ratio": 8.16352368, + "index": 10, + "metrics": { + "corr": 0.999999318, + "finite": true, + "max_abs": 0.00890445709, + "mean_abs": 0.000658168612, + "psnr_db": 79.4337766, + "ref_absmax": 10.9076147, + "rel_max": 0.000816352368, + "scaled_max_abs": 0.000816352368 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_ratio": 5.44321784, + "index": 11, + "metrics": { + "corr": 0.999999467, + "finite": true, + "max_abs": 0.01258564, + "mean_abs": 0.0019200106, + "psnr_db": 83.331005, + "ref_absmax": 23.1216908, + "rel_max": 0.000544321784, + "scaled_max_abs": 0.000544321784 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "natural", + "index": 12 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 5.7913326, + "metrics": { + "corr": 0.999999426, + "finite": true, + "max_abs": 0.0124051571, + "mean_abs": 0.00191654548, + "psnr_db": 83.1427519, + "ref_absmax": 21.4202118, + "rel_max": 0.00057913326, + "scaled_max_abs": 0.00057913326 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 11 + } + }, + "first_fail_index": 0, + "n_judged": 12, + "n_taps": 12, + "taps": [ + { + "band_ratio": 4.39328023, + "index": 0, + "metrics": { + "corr": 0.999999965, + "finite": true, + "max_abs": 0.00506496429, + "mean_abs": 0.000406712054, + "psnr_db": 88.0749992, + "ref_absmax": 11.5288897, + "rel_max": 0.000439328023, + "scaled_max_abs": 0.000439328023 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "fail", + "tap": "normalize", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6.50593626, + "index": 1, + "metrics": { + "corr": 0.999999901, + "finite": true, + "max_abs": 0.00547075272, + "mean_abs": 0.000153226313, + "psnr_db": 90.3189603, + "ref_absmax": 8.40886307, + "rel_max": 0.000650593626, + "scaled_max_abs": 0.000650593626 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/maxpool/MaxPool_output_0" + }, + "status": "fail", + "tap": "net.maxpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 5.06201414, + "index": 2, + "metrics": { + "corr": 0.999999831, + "finite": true, + "max_abs": 0.0086517334, + "mean_abs": 0.000236261028, + "psnr_db": 93.1783463, + "ref_absmax": 17.0914841, + "rel_max": 0.000506201414, + "scaled_max_abs": 0.000506201414 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.0/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer1.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 5.35356941, + "index": 3, + "metrics": { + "corr": 0.999999662, + "finite": true, + "max_abs": 0.0100440979, + "mean_abs": 0.000337286326, + "psnr_db": 90.2185942, + "ref_absmax": 18.7614975, + "rel_max": 0.000535356941, + "scaled_max_abs": 0.000535356941 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer1.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6.10469266, + "index": 4, + "metrics": { + "corr": 0.999999468, + "finite": true, + "max_abs": 0.00679504871, + "mean_abs": 0.000164360102, + "psnr_db": 90.3342488, + "ref_absmax": 11.1308613, + "rel_max": 0.000610469266, + "scaled_max_abs": 0.000610469266 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.0/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer2.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6.29964887, + "index": 5, + "metrics": { + "corr": 0.999999391, + "finite": true, + "max_abs": 0.00716733932, + "mean_abs": 0.000177770421, + "psnr_db": 89.8777049, + "ref_absmax": 11.3773632, + "rel_max": 0.000629964887, + "scaled_max_abs": 0.000629964887 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer2.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 4.75472973, + "index": 6, + "metrics": { + "corr": 0.999999383, + "finite": true, + "max_abs": 0.00567245483, + "mean_abs": 0.000124959044, + "psnr_db": 93.0830986, + "ref_absmax": 11.930131, + "rel_max": 0.000475472973, + "scaled_max_abs": 0.000475472973 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.0/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer3.0", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_ratio": 7.95143564, + "index": 7, + "metrics": { + "corr": 0.999999133, + "finite": true, + "max_abs": 0.00553123653, + "mean_abs": 0.000148407515, + "psnr_db": 86.7217411, + "ref_absmax": 6.95627403, + "rel_max": 0.000795143564, + "scaled_max_abs": 0.000795143564 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer3.1", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_ratio": 17.9190277, + "index": 8, + "metrics": { + "corr": 0.999998311, + "finite": true, + "max_abs": 0.00866341591, + "mean_abs": 9.38812919e-05, + "psnr_db": 83.9777606, + "ref_absmax": 4.8347578, + "rel_max": 0.00179190277, + "scaled_max_abs": 0.00179190277 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.0/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer4.0", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + }, + { + "band_ratio": 13.1329292, + "index": 9, + "metrics": { + "corr": 0.999998568, + "finite": true, + "max_abs": 0.0277996659, + "mean_abs": 0.000860812905, + "psnr_db": 81.1920091, + "ref_absmax": 21.1679096, + "rel_max": 0.00131329292, + "scaled_max_abs": 0.00131329292 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer4.1", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + }, + { + "band_ratio": 8.79095353, + "index": 10, + "metrics": { + "corr": 0.999999265, + "finite": true, + "max_abs": 0.0094127655, + "mean_abs": 0.000650968439, + "psnr_db": 79.4555287, + "ref_absmax": 10.7073317, + "rel_max": 0.000879095353, + "scaled_max_abs": 0.000879095353 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "natural", + "index": 11 + } + }, + { + "band_ratio": 5.7913326, + "index": 11, + "metrics": { + "corr": 0.999999426, + "finite": true, + "max_abs": 0.0124051571, + "mean_abs": 0.00191654548, + "psnr_db": 83.1427519, + "ref_absmax": 21.4202118, + "rel_max": 0.00057913326, + "scaled_max_abs": 0.00057913326 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "natural", + "index": 11 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp16", + "id": "resnet18__fp16_as_fp32__onnx", + "model": "resnet18", + "path": "onnx", + "variant": "fp16_as_fp32" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/resnet18__input_hw_swap__coreml_fp16.json b/bench/verdicts_e2e_gated/resnet18__input_hw_swap__coreml_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..bd5ed8b0941c4ce51bb73fdd622e08fc93708eaf --- /dev/null +++ b/bench/verdicts_e2e_gated/resnet18__input_hw_swap__coreml_fp16.json @@ -0,0 +1,853 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "normalize", + "explained_by": "hw_transpose", + "nominal_band_ratio": 169.15457, + "results": [ + { + "band_ratio": 169.15457, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 119.778016, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 210.748392, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 0.130516105, + "explains": true, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 311.914062, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [ + "inputs[0]: dtype float16 (declared float32)", + "outputs[0]: dtype float16 (declared float32)" + ], + "status": "precision_narrowing" + }, + "status": "flag" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "_inversed_input_1_cast_fp16", + "basis": "interface hypothesis 'hw_transpose' explains the first over-band tap (normalize)", + "index": 0, + "neighbourhood": [ + { + "band_ratio": 111.131751, + "index": 0, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "status": "fail", + "tap": "normalize" + }, + { + "band_ratio": 94.3360418, + "index": 1, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_9_cast_fp16" + }, + "status": "fail", + "tap": "net.maxpool" + } + ], + "observed_first_over_band": { + "index": 0, + "tap": "normalize" + }, + "shape": 224, + "tap": "normalize" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "b1e0ab150d7fd2ec27a936a44086367cea0f1a168200bd32b9577b5a212cdfba", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "7cd094506b10a59ffdb3d99d0dc79ad445c105df583638efb9508f1ce3fde31e", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D3", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.96875, + "band_ratio": 13.5422739, + "metrics": { + "corr": 0.984259504, + "finite": true, + "max_abs": 3.1312027, + "mean_abs": 0.284701484, + "psnr_db": 38.7365953, + "ref_absmax": 23.1216908, + "rel_max": 0.135422739, + "scaled_max_abs": 0.135422739 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 0, + "n_judged": 12, + "n_taps": 12, + "taps": [ + { + "band_ratio": 116.179894, + "index": 0, + "metrics": { + "corr": 0.675688296, + "finite": true, + "max_abs": 13.3942518, + "mean_abs": 0.90015469, + "psnr_db": 19.0467187, + "ref_absmax": 11.5288897, + "rel_max": 1.16179894, + "scaled_max_abs": 1.16179894 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "status": "fail", + "tap": "normalize", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 97.4215697, + "index": 1, + "metrics": { + "corr": 0.778579511, + "finite": true, + "max_abs": 8.99649048, + "mean_abs": 0.187071388, + "psnr_db": 27.093685, + "ref_absmax": 9.23459816, + "rel_max": 0.974215697, + "scaled_max_abs": 0.974215697 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_9_cast_fp16" + }, + "status": "fail", + "tap": "net.maxpool", + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 75.8702175, + "index": 2, + "metrics": { + "corr": 0.708529393, + "finite": true, + "max_abs": 12.0721757, + "mean_abs": 0.263069341, + "psnr_db": 29.7488206, + "ref_absmax": 15.9116135, + "rel_max": 0.758702175, + "scaled_max_abs": 0.758702175 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_21_cast_fp16" + }, + "status": "fail", + "tap": "net.layer1.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 96.1485858, + "index": 3, + "metrics": { + "corr": 0.568450656, + "finite": true, + "max_abs": 18.094496, + "mean_abs": 0.378462762, + "psnr_db": 28.7259282, + "ref_absmax": 18.8193054, + "rel_max": 0.961485858, + "scaled_max_abs": 0.961485858 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_33_cast_fp16" + }, + "status": "fail", + "tap": "net.layer1.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 75.2156898, + "index": 4, + "metrics": { + "corr": 0.610769511, + "finite": true, + "max_abs": 8.79996872, + "mean_abs": 0.149711529, + "psnr_db": 31.7344221, + "ref_absmax": 11.699645, + "rel_max": 0.752156898, + "scaled_max_abs": 0.752156898 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_47_cast_fp16" + }, + "status": "fail", + "tap": "net.layer2.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 81.8658596, + "index": 5, + "metrics": { + "corr": 0.623817668, + "finite": true, + "max_abs": 9.515625, + "mean_abs": 0.147748697, + "psnr_db": 31.7094469, + "ref_absmax": 11.623435, + "rel_max": 0.818658596, + "scaled_max_abs": 0.818658596 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59_cast_fp16" + }, + "status": "fail", + "tap": "net.layer2.1", + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_ratio": 61.6122784, + "index": 6, + "metrics": { + "corr": 0.858736231, + "finite": true, + "max_abs": 8.43549156, + "mean_abs": 0.0593637935, + "psnr_db": 40.2267974, + "ref_absmax": 13.6912508, + "rel_max": 0.616122784, + "scaled_max_abs": 0.616122784 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_73_cast_fp16" + }, + "status": "fail", + "tap": "net.layer3.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 57.4900993, + "index": 7, + "metrics": { + "corr": 0.875143547, + "finite": true, + "max_abs": 4.78841698, + "mean_abs": 0.0559512814, + "psnr_db": 36.2027721, + "ref_absmax": 8.32911587, + "rel_max": 0.574900993, + "scaled_max_abs": 0.574900993 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85_cast_fp16" + }, + "status": "fail", + "tap": "net.layer3.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 58.5525711, + "index": 8, + "metrics": { + "corr": 0.878369981, + "finite": true, + "max_abs": 3.57547683, + "mean_abs": 0.0286086306, + "psnr_db": 36.8793016, + "ref_absmax": 6.10643864, + "rel_max": 0.585525711, + "scaled_max_abs": 0.585525711 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_99_cast_fp16" + }, + "status": "fail", + "tap": "net.layer4.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 52.5609463, + "index": 9, + "metrics": { + "corr": 0.918316704, + "finite": true, + "max_abs": 9.32436991, + "mean_abs": 0.203954178, + "psnr_db": 31.7863343, + "ref_absmax": 17.7401104, + "rel_max": 0.525609463, + "scaled_max_abs": 0.525609463 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_111_cast_fp16" + }, + "status": "fail", + "tap": "net.layer4.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 14.7886752, + "index": 10, + "metrics": { + "corr": 0.981331964, + "finite": true, + "max_abs": 1.61309171, + "mean_abs": 0.100657481, + "psnr_db": 35.1848007, + "ref_absmax": 10.9076147, + "rel_max": 0.147886752, + "scaled_max_abs": 0.147886752 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_ratio": 13.5422739, + "index": 11, + "metrics": { + "corr": 0.984259504, + "finite": true, + "max_abs": 3.1312027, + "mean_abs": 0.284701484, + "psnr_db": 38.7365953, + "ref_absmax": 23.1216908, + "rel_max": 0.135422739, + "scaled_max_abs": 0.135422739 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 15.1832421, + "metrics": { + "corr": 0.987308261, + "finite": true, + "max_abs": 3.25228262, + "mean_abs": 0.247553519, + "psnr_db": 39.7328461, + "ref_absmax": 21.4202118, + "rel_max": 0.151832421, + "scaled_max_abs": 0.151832421 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 0, + "n_judged": 12, + "n_taps": 12, + "taps": [ + { + "band_ratio": 111.131751, + "index": 0, + "metrics": { + "corr": 0.709013383, + "finite": true, + "max_abs": 12.8122569, + "mean_abs": 0.853087416, + "psnr_db": 19.622833, + "ref_absmax": 11.5288897, + "rel_max": 1.11131751, + "scaled_max_abs": 1.11131751 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "status": "fail", + "tap": "normalize", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 94.3360418, + "index": 1, + "metrics": { + "corr": 0.793497861, + "finite": true, + "max_abs": 7.93258858, + "mean_abs": 0.173042674, + "psnr_db": 27.1688265, + "ref_absmax": 8.40886307, + "rel_max": 0.943360418, + "scaled_max_abs": 0.943360418 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_9_cast_fp16" + }, + "status": "fail", + "tap": "net.maxpool", + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_ratio": 65.1252503, + "index": 2, + "metrics": { + "corr": 0.72578622, + "finite": true, + "max_abs": 11.1308718, + "mean_abs": 0.247800703, + "psnr_db": 31.1316045, + "ref_absmax": 17.0914841, + "rel_max": 0.651252503, + "scaled_max_abs": 0.651252503 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_21_cast_fp16" + }, + "status": "fail", + "tap": "net.layer1.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 72.9095664, + "index": 3, + "metrics": { + "corr": 0.577751126, + "finite": true, + "max_abs": 13.6789265, + "mean_abs": 0.361857982, + "psnr_db": 29.2598775, + "ref_absmax": 18.7614975, + "rel_max": 0.729095664, + "scaled_max_abs": 0.729095664 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_33_cast_fp16" + }, + "status": "fail", + "tap": "net.layer1.1", + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_ratio": 71.6946946, + "index": 4, + "metrics": { + "corr": 0.608697569, + "finite": true, + "max_abs": 7.98023701, + "mean_abs": 0.145452914, + "psnr_db": 31.6725601, + "ref_absmax": 11.1308613, + "rel_max": 0.716946946, + "scaled_max_abs": 0.716946946 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_47_cast_fp16" + }, + "status": "fail", + "tap": "net.layer2.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 71.9714829, + "index": 5, + "metrics": { + "corr": 0.617532793, + "finite": true, + "max_abs": 8.18845701, + "mean_abs": 0.142753743, + "psnr_db": 31.8981756, + "ref_absmax": 11.3773632, + "rel_max": 0.719714829, + "scaled_max_abs": 0.719714829 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59_cast_fp16" + }, + "status": "fail", + "tap": "net.layer2.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 61.401389, + "index": 6, + "metrics": { + "corr": 0.846644514, + "finite": true, + "max_abs": 7.32526612, + "mean_abs": 0.0586977755, + "psnr_db": 39.1274625, + "ref_absmax": 11.930131, + "rel_max": 0.61401389, + "scaled_max_abs": 0.61401389 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_73_cast_fp16" + }, + "status": "fail", + "tap": "net.layer3.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 82.1575229, + "index": 7, + "metrics": { + "corr": 0.864149642, + "finite": true, + "max_abs": 5.71510243, + "mean_abs": 0.0557293857, + "psnr_db": 34.7584913, + "ref_absmax": 6.95627403, + "rel_max": 0.821575229, + "scaled_max_abs": 0.821575229 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85_cast_fp16" + }, + "status": "fail", + "tap": "net.layer3.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 67.1917776, + "index": 8, + "metrics": { + "corr": 0.869593941, + "finite": true, + "max_abs": 3.24855971, + "mean_abs": 0.0275444329, + "psnr_db": 35.090438, + "ref_absmax": 4.8347578, + "rel_max": 0.671917776, + "scaled_max_abs": 0.671917776 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_99_cast_fp16" + }, + "status": "fail", + "tap": "net.layer4.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 35.1155157, + "index": 9, + "metrics": { + "corr": 0.922693102, + "finite": true, + "max_abs": 7.43322062, + "mean_abs": 0.191728884, + "psnr_db": 33.8882456, + "ref_absmax": 21.1679096, + "rel_max": 0.351155157, + "scaled_max_abs": 0.351155157 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_111_cast_fp16" + }, + "status": "fail", + "tap": "net.layer4.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 14.1770536, + "index": 10, + "metrics": { + "corr": 0.984379953, + "finite": true, + "max_abs": 1.51798415, + "mean_abs": 0.0869478723, + "psnr_db": 36.1935658, + "ref_absmax": 10.7073317, + "rel_max": 0.141770536, + "scaled_max_abs": 0.141770536 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 15.1832421, + "index": 11, + "metrics": { + "corr": 0.987308261, + "finite": true, + "max_abs": 3.25228262, + "mean_abs": 0.247553519, + "psnr_db": 39.7328461, + "ref_absmax": 21.4202118, + "rel_max": 0.151832421, + "scaled_max_abs": 0.151832421 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp16", + "id": "resnet18__input_hw_swap__coreml_fp16", + "model": "resnet18", + "path": "coreml", + "variant": "input_hw_swap" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/resnet18__input_hw_swap__coreml_fp32.json b/bench/verdicts_e2e_gated/resnet18__input_hw_swap__coreml_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..4177d24b7e3d1b781ac13f9ea7e1c0f389f0ce00 --- /dev/null +++ b/bench/verdicts_e2e_gated/resnet18__input_hw_swap__coreml_fp32.json @@ -0,0 +1,850 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "normalize", + "explained_by": "hw_transpose", + "nominal_band_ratio": 16910.1721, + "results": [ + { + "band_ratio": 16910.1721, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 11978.5595, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 21078.7917, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 0.000903100643, + "explains": true, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 31179.0395, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "flag" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "_inversed_input_1", + "basis": "interface hypothesis 'hw_transpose' explains the first over-band tap (normalize)", + "index": 0, + "neighbourhood": [ + { + "band_ratio": 11112.3355, + "index": 0, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "fail", + "tap": "normalize" + }, + { + "band_ratio": 9433.64546, + "index": 1, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_9" + }, + "status": "fail", + "tap": "net.maxpool" + } + ], + "observed_first_over_band": { + "index": 0, + "tap": "normalize" + }, + "shape": 224, + "tap": "normalize" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "22a6f7e559867296fb5131cebcf42d7908b76a557885f49829bbb1484073cefb", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "d07259193b4f66dea4e115798ad6b19a597b3ac8e1507ee3a66eb5d09ed4ddac", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D3", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.96875, + "band_ratio": 1359.43365, + "metrics": { + "corr": 0.984222082, + "finite": true, + "max_abs": 3.14324045, + "mean_abs": 0.280204766, + "psnr_db": 38.7300032, + "ref_absmax": 23.1216908, + "rel_max": 0.135943365, + "scaled_max_abs": 0.135943365 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 0, + "n_judged": 12, + "n_taps": 12, + "taps": [ + { + "band_ratio": 11616.7792, + "index": 0, + "metrics": { + "corr": 0.675680702, + "finite": true, + "max_abs": 13.3928566, + "mean_abs": 0.899941872, + "psnr_db": 19.0470658, + "ref_absmax": 11.5288897, + "rel_max": 1.16167792, + "scaled_max_abs": 1.16167792 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "fail", + "tap": "normalize", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9741.86727, + "index": 1, + "metrics": { + "corr": 0.778558294, + "finite": true, + "max_abs": 8.99622296, + "mean_abs": 0.186896477, + "psnr_db": 27.0935223, + "ref_absmax": 9.23459816, + "rel_max": 0.974186727, + "scaled_max_abs": 0.974186727 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_9" + }, + "status": "fail", + "tap": "net.maxpool", + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 7606.94319, + "index": 2, + "metrics": { + "corr": 0.708523771, + "finite": true, + "max_abs": 12.103874, + "mean_abs": 0.262473945, + "psnr_db": 29.7489332, + "ref_absmax": 15.9116135, + "rel_max": 0.760694319, + "scaled_max_abs": 0.760694319 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_21" + }, + "status": "fail", + "tap": "net.layer1.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9634.89053, + "index": 3, + "metrics": { + "corr": 0.568424878, + "finite": true, + "max_abs": 18.1321948, + "mean_abs": 0.377407476, + "psnr_db": 28.7261343, + "ref_absmax": 18.8193054, + "rel_max": 0.963489053, + "scaled_max_abs": 0.963489053 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_33" + }, + "status": "fail", + "tap": "net.layer1.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7529.15805, + "index": 4, + "metrics": { + "corr": 0.610826942, + "finite": true, + "max_abs": 8.80884767, + "mean_abs": 0.149203527, + "psnr_db": 31.735013, + "ref_absmax": 11.699645, + "rel_max": 0.752915805, + "scaled_max_abs": 0.752915805 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_47" + }, + "status": "fail", + "tap": "net.layer2.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 8196.8936, + "index": 5, + "metrics": { + "corr": 0.623892933, + "finite": true, + "max_abs": 9.52760601, + "mean_abs": 0.147224784, + "psnr_db": 31.7099017, + "ref_absmax": 11.623435, + "rel_max": 0.81968936, + "scaled_max_abs": 0.81968936 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59" + }, + "status": "fail", + "tap": "net.layer2.1", + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_ratio": 6164.70279, + "index": 6, + "metrics": { + "corr": 0.858800023, + "finite": true, + "max_abs": 8.4402492, + "mean_abs": 0.0589500089, + "psnr_db": 40.2272963, + "ref_absmax": 13.6912508, + "rel_max": 0.616470279, + "scaled_max_abs": 0.616470279 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_73" + }, + "status": "fail", + "tap": "net.layer3.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 5780.54578, + "index": 7, + "metrics": { + "corr": 0.875276314, + "finite": true, + "max_abs": 4.81468356, + "mean_abs": 0.0554101596, + "psnr_db": 36.2049527, + "ref_absmax": 8.32911587, + "rel_max": 0.578054578, + "scaled_max_abs": 0.578054578 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85" + }, + "status": "fail", + "tap": "net.layer3.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 5872.51838, + "index": 8, + "metrics": { + "corr": 0.878322793, + "finite": true, + "max_abs": 3.58601731, + "mean_abs": 0.0282567097, + "psnr_db": 36.8839998, + "ref_absmax": 6.10643864, + "rel_max": 0.587251838, + "scaled_max_abs": 0.587251838 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_99" + }, + "status": "fail", + "tap": "net.layer4.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 5310.88326, + "index": 9, + "metrics": { + "corr": 0.918234367, + "finite": true, + "max_abs": 9.42156553, + "mean_abs": 0.20209194, + "psnr_db": 31.7848313, + "ref_absmax": 17.7401104, + "rel_max": 0.531088326, + "scaled_max_abs": 0.531088326 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_111" + }, + "status": "fail", + "tap": "net.layer4.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 1471.17919, + "index": 10, + "metrics": { + "corr": 0.981337392, + "finite": true, + "max_abs": 1.60470557, + "mean_abs": 0.099238837, + "psnr_db": 35.188538, + "ref_absmax": 10.9076147, + "rel_max": 0.147117919, + "scaled_max_abs": 0.147117919 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_ratio": 1359.43365, + "index": 11, + "metrics": { + "corr": 0.984222082, + "finite": true, + "max_abs": 3.14324045, + "mean_abs": 0.280204766, + "psnr_db": 38.7300032, + "ref_absmax": 23.1216908, + "rel_max": 0.135943365, + "scaled_max_abs": 0.135943365 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 1513.50814, + "metrics": { + "corr": 0.987238863, + "finite": true, + "max_abs": 3.24196649, + "mean_abs": 0.244208922, + "psnr_db": 39.7112927, + "ref_absmax": 21.4202118, + "rel_max": 0.151350814, + "scaled_max_abs": 0.151350814 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 0, + "n_judged": 12, + "n_taps": 12, + "taps": [ + { + "band_ratio": 11112.3355, + "index": 0, + "metrics": { + "corr": 0.709006651, + "finite": true, + "max_abs": 12.811289, + "mean_abs": 0.852875392, + "psnr_db": 19.6231673, + "ref_absmax": 11.5288897, + "rel_max": 1.11123355, + "scaled_max_abs": 1.11123355 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "fail", + "tap": "normalize", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9433.64546, + "index": 1, + "metrics": { + "corr": 0.793482818, + "finite": true, + "max_abs": 7.93262329, + "mean_abs": 0.172871225, + "psnr_db": 27.1687768, + "ref_absmax": 8.40886307, + "rel_max": 0.943364546, + "scaled_max_abs": 0.943364546 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_9" + }, + "status": "fail", + "tap": "net.maxpool", + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_ratio": 6509.87517, + "index": 2, + "metrics": { + "corr": 0.725787812, + "finite": true, + "max_abs": 11.1263428, + "mean_abs": 0.24719035, + "psnr_db": 31.1318732, + "ref_absmax": 17.0914841, + "rel_max": 0.650987517, + "scaled_max_abs": 0.650987517 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_21" + }, + "status": "fail", + "tap": "net.layer1.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7290.95664, + "index": 3, + "metrics": { + "corr": 0.577717019, + "finite": true, + "max_abs": 13.6789265, + "mean_abs": 0.36076924, + "psnr_db": 29.2600523, + "ref_absmax": 18.7614975, + "rel_max": 0.729095664, + "scaled_max_abs": 0.729095664 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_33" + }, + "status": "fail", + "tap": "net.layer1.1", + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_ratio": 7168.57744, + "index": 4, + "metrics": { + "corr": 0.608756632, + "finite": true, + "max_abs": 7.97924411, + "mean_abs": 0.144938187, + "psnr_db": 31.6732365, + "ref_absmax": 11.1308613, + "rel_max": 0.716857744, + "scaled_max_abs": 0.716857744 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_47" + }, + "status": "fail", + "tap": "net.layer2.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7187.30758, + "index": 5, + "metrics": { + "corr": 0.617605458, + "finite": true, + "max_abs": 8.17726088, + "mean_abs": 0.142245058, + "psnr_db": 31.8985119, + "ref_absmax": 11.3773632, + "rel_max": 0.718730758, + "scaled_max_abs": 0.718730758 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59" + }, + "status": "fail", + "tap": "net.layer2.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6145.7122, + "index": 6, + "metrics": { + "corr": 0.846719976, + "finite": true, + "max_abs": 7.33191514, + "mean_abs": 0.0582938205, + "psnr_db": 39.1284789, + "ref_absmax": 11.930131, + "rel_max": 0.61457122, + "scaled_max_abs": 0.61457122 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_73" + }, + "status": "fail", + "tap": "net.layer3.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 8198.90736, + "index": 7, + "metrics": { + "corr": 0.864235057, + "finite": true, + "max_abs": 5.70338464, + "mean_abs": 0.0551848443, + "psnr_db": 34.7601808, + "ref_absmax": 6.95627403, + "rel_max": 0.819890736, + "scaled_max_abs": 0.819890736 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85" + }, + "status": "fail", + "tap": "net.layer3.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6743.95925, + "index": 8, + "metrics": { + "corr": 0.869653057, + "finite": true, + "max_abs": 3.26054096, + "mean_abs": 0.027216134, + "psnr_db": 35.0952247, + "ref_absmax": 4.8347578, + "rel_max": 0.674395925, + "scaled_max_abs": 0.674395925 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_99" + }, + "status": "fail", + "tap": "net.layer4.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 3496.43815, + "index": 9, + "metrics": { + "corr": 0.922690801, + "finite": true, + "max_abs": 7.40122867, + "mean_abs": 0.189829532, + "psnr_db": 33.8903149, + "ref_absmax": 21.1679096, + "rel_max": 0.349643815, + "scaled_max_abs": 0.349643815 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_111" + }, + "status": "fail", + "tap": "net.layer4.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 1408.75531, + "index": 10, + "metrics": { + "corr": 0.984320398, + "finite": true, + "max_abs": 1.50840104, + "mean_abs": 0.0857702086, + "psnr_db": 36.1782464, + "ref_absmax": 10.7073317, + "rel_max": 0.140875531, + "scaled_max_abs": 0.140875531 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 1513.50814, + "index": 11, + "metrics": { + "corr": 0.987238863, + "finite": true, + "max_abs": 3.24196649, + "mean_abs": 0.244208922, + "psnr_db": 39.7112927, + "ref_absmax": 21.4202118, + "rel_max": 0.151350814, + "scaled_max_abs": 0.151350814 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp32", + "id": "resnet18__input_hw_swap__coreml_fp32", + "model": "resnet18", + "path": "coreml", + "variant": "input_hw_swap" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/resnet18__input_hw_swap__litert_fp16.json b/bench/verdicts_e2e_gated/resnet18__input_hw_swap__litert_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..786e5bd5ab56d34de978f0af9ee78033bb87c4a4 --- /dev/null +++ b/bench/verdicts_e2e_gated/resnet18__input_hw_swap__litert_fp16.json @@ -0,0 +1,988 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "normalize", + "explained_by": "hw_transpose", + "nominal_band_ratio": 169.101721, + "results": [ + { + "band_ratio": 169.101721, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 119.785595, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 210.787917, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 9.03100643e-06, + "explains": true, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 311.790395, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "flag" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 7.72231079e-05, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.62124634e-05, + "mean_abs": 1.38526282e-06, + "psnr_db": 145.227804, + "ref_absmax": 20.9943161, + "rel_max": 7.72231079e-07, + "scaled_max_abs": 7.72231079e-07 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 27, + "outputs": [ + "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models.res", + "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.linear.Linear_fc;1_dequant", + "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.B", + "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.B" + ] + }, + { + "inputs": 43, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 2, + "n_ops_total": 60, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "zoo.Source/zoo.Normalize_normalize;5", + "basis": "interface hypothesis 'hw_transpose' explains the first over-band tap (normalize)", + "index": 0, + "neighbourhood": [ + { + "band_ratio": 111.123355, + "index": 0, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;5" + }, + "status": "fail", + "tap": "normalize" + }, + { + "band_ratio": 94.3382609, + "index": 1, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.MaxPool2d_maxpool;2" + }, + "status": "fail", + "tap": "net.maxpool" + } + ], + "observed_first_over_band": { + "index": 0, + "tap": "normalize" + }, + "shape": 224, + "tap": "normalize" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "befad8e017fdd6311c2eb42ae4d471391cb091b50ccc96d74f0fae1b4640df72", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "f73afc4523a704f4806864fca45af4c6968bd880b677b8deeb2b0945a44f9969", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D3", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.96875, + "band_ratio": 13.5837796, + "metrics": { + "corr": 0.984229919, + "finite": true, + "max_abs": 3.14079952, + "mean_abs": 0.280299407, + "psnr_db": 38.7328055, + "ref_absmax": 23.1216908, + "rel_max": 0.135837796, + "scaled_max_abs": 0.135837796 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 0, + "n_judged": 12, + "n_taps": 12, + "taps": [ + { + "band_ratio": 116.167792, + "index": 0, + "metrics": { + "corr": 0.675680702, + "finite": true, + "max_abs": 13.3928566, + "mean_abs": 0.899941872, + "psnr_db": 19.0470658, + "ref_absmax": 11.5288897, + "rel_max": 1.16167792, + "scaled_max_abs": 1.16167792 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;5" + }, + "status": "fail", + "tap": "normalize", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 97.4215208, + "index": 1, + "metrics": { + "corr": 0.778562014, + "finite": true, + "max_abs": 8.99648597, + "mean_abs": 0.186913538, + "psnr_db": 27.0934972, + "ref_absmax": 9.23459816, + "rel_max": 0.974215208, + "scaled_max_abs": 0.974215208 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.MaxPool2d_maxpool;2" + }, + "status": "fail", + "tap": "net.maxpool", + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 76.0654102, + "index": 2, + "metrics": { + "corr": 0.708522852, + "finite": true, + "max_abs": 12.1032341, + "mean_abs": 0.262504054, + "psnr_db": 29.7490054, + "ref_absmax": 15.9116135, + "rel_max": 0.760654102, + "scaled_max_abs": 0.760654102 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer1.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 96.3405743, + "index": 3, + "metrics": { + "corr": 0.568423971, + "finite": true, + "max_abs": 18.1306269, + "mean_abs": 0.377455339, + "psnr_db": 28.7262255, + "ref_absmax": 18.8193054, + "rel_max": 0.963405743, + "scaled_max_abs": 0.963405743 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer1.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 75.2925617, + "index": 4, + "metrics": { + "corr": 0.610833273, + "finite": true, + "max_abs": 8.80896246, + "mean_abs": 0.149226129, + "psnr_db": 31.7349893, + "ref_absmax": 11.699645, + "rel_max": 0.752925617, + "scaled_max_abs": 0.752925617 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer2.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 81.9845989, + "index": 5, + "metrics": { + "corr": 0.623906545, + "finite": true, + "max_abs": 9.52942657, + "mean_abs": 0.147247386, + "psnr_db": 31.7099712, + "ref_absmax": 11.623435, + "rel_max": 0.819845989, + "scaled_max_abs": 0.819845989 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer2.1", + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_ratio": 61.6483357, + "index": 6, + "metrics": { + "corr": 0.858806657, + "finite": true, + "max_abs": 8.44042826, + "mean_abs": 0.0589642791, + "psnr_db": 40.2274244, + "ref_absmax": 13.6912508, + "rel_max": 0.616483357, + "scaled_max_abs": 0.616483357 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer3.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 57.8244818, + "index": 7, + "metrics": { + "corr": 0.875274303, + "finite": true, + "max_abs": 4.81626809, + "mean_abs": 0.0554281118, + "psnr_db": 36.2048899, + "ref_absmax": 8.32911587, + "rel_max": 0.578244818, + "scaled_max_abs": 0.578244818 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer3.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 58.7205375, + "index": 8, + "metrics": { + "corr": 0.878315841, + "finite": true, + "max_abs": 3.58573359, + "mean_abs": 0.0282663662, + "psnr_db": 36.8840159, + "ref_absmax": 6.10643864, + "rel_max": 0.587205375, + "scaled_max_abs": 0.587205375 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer4.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 53.0775185, + "index": 9, + "metrics": { + "corr": 0.918241302, + "finite": true, + "max_abs": 9.41601038, + "mean_abs": 0.202141217, + "psnr_db": 31.7858381, + "ref_absmax": 17.7401104, + "rel_max": 0.530775185, + "scaled_max_abs": 0.530775185 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer4.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 14.7189055, + "index": 10, + "metrics": { + "corr": 0.981346845, + "finite": true, + "max_abs": 1.60548151, + "mean_abs": 0.0992716961, + "psnr_db": 35.1912706, + "ref_absmax": 10.9076147, + "rel_max": 0.147189055, + "scaled_max_abs": 0.147189055 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;1" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_ratio": 13.5837796, + "index": 11, + "metrics": { + "corr": 0.984229919, + "finite": true, + "max_abs": 3.14079952, + "mean_abs": 0.280299407, + "psnr_db": 38.7328055, + "ref_absmax": 23.1216908, + "rel_max": 0.135837796, + "scaled_max_abs": 0.135837796 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 15.1297209, + "metrics": { + "corr": 0.987244514, + "finite": true, + "max_abs": 3.24081826, + "mean_abs": 0.244300254, + "psnr_db": 39.7139134, + "ref_absmax": 21.4202118, + "rel_max": 0.151297209, + "scaled_max_abs": 0.151297209 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 0, + "n_judged": 12, + "n_taps": 12, + "taps": [ + { + "band_ratio": 111.123355, + "index": 0, + "metrics": { + "corr": 0.709006651, + "finite": true, + "max_abs": 12.811289, + "mean_abs": 0.852875392, + "psnr_db": 19.6231673, + "ref_absmax": 11.5288897, + "rel_max": 1.11123355, + "scaled_max_abs": 1.11123355 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;5" + }, + "status": "fail", + "tap": "normalize", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 94.3382609, + "index": 1, + "metrics": { + "corr": 0.793486646, + "finite": true, + "max_abs": 7.93277518, + "mean_abs": 0.172888419, + "psnr_db": 27.1687552, + "ref_absmax": 8.40886307, + "rel_max": 0.943382609, + "scaled_max_abs": 0.943382609 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.MaxPool2d_maxpool;2" + }, + "status": "fail", + "tap": "net.maxpool", + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_ratio": 65.096397, + "index": 2, + "metrics": { + "corr": 0.725788389, + "finite": true, + "max_abs": 11.1259403, + "mean_abs": 0.247221628, + "psnr_db": 31.1319625, + "ref_absmax": 17.0914841, + "rel_max": 0.65096397, + "scaled_max_abs": 0.65096397 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer1.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 72.9095664, + "index": 3, + "metrics": { + "corr": 0.577716678, + "finite": true, + "max_abs": 13.6789265, + "mean_abs": 0.360818832, + "psnr_db": 29.260153, + "ref_absmax": 18.7614975, + "rel_max": 0.729095664, + "scaled_max_abs": 0.729095664 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer1.1", + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_ratio": 71.6845857, + "index": 4, + "metrics": { + "corr": 0.608763466, + "finite": true, + "max_abs": 7.97911179, + "mean_abs": 0.144960951, + "psnr_db": 31.6732199, + "ref_absmax": 11.1308613, + "rel_max": 0.716845857, + "scaled_max_abs": 0.716845857 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer2.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 71.8830841, + "index": 5, + "metrics": { + "corr": 0.617614602, + "finite": true, + "max_abs": 8.17839956, + "mean_abs": 0.142266164, + "psnr_db": 31.8985722, + "ref_absmax": 11.3773632, + "rel_max": 0.718830841, + "scaled_max_abs": 0.718830841 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer2.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 61.4659792, + "index": 6, + "metrics": { + "corr": 0.846726488, + "finite": true, + "max_abs": 7.33297181, + "mean_abs": 0.0583085011, + "psnr_db": 39.1285748, + "ref_absmax": 11.930131, + "rel_max": 0.614659792, + "scaled_max_abs": 0.614659792 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer3.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 82.0044626, + "index": 7, + "metrics": { + "corr": 0.864233511, + "finite": true, + "max_abs": 5.70445514, + "mean_abs": 0.0552042634, + "psnr_db": 34.7600786, + "ref_absmax": 6.95627403, + "rel_max": 0.820044626, + "scaled_max_abs": 0.820044626 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer3.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 67.4285808, + "index": 8, + "metrics": { + "corr": 0.869651782, + "finite": true, + "max_abs": 3.26000857, + "mean_abs": 0.0272249666, + "psnr_db": 35.0952958, + "ref_absmax": 4.8347578, + "rel_max": 0.674285808, + "scaled_max_abs": 0.674285808 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer4.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 34.8998523, + "index": 9, + "metrics": { + "corr": 0.922690688, + "finite": true, + "max_abs": 7.38756919, + "mean_abs": 0.189889446, + "psnr_db": 33.8907167, + "ref_absmax": 21.1679096, + "rel_max": 0.348998523, + "scaled_max_abs": 0.348998523 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer4.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 14.0864988, + "index": 10, + "metrics": { + "corr": 0.984324395, + "finite": true, + "max_abs": 1.50828815, + "mean_abs": 0.0858119218, + "psnr_db": 36.1799051, + "ref_absmax": 10.7073317, + "rel_max": 0.140864988, + "scaled_max_abs": 0.140864988 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;1" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 15.1297209, + "index": 11, + "metrics": { + "corr": 0.987244514, + "finite": true, + "max_abs": 3.24081826, + "mean_abs": 0.244300254, + "psnr_db": 39.7139134, + "ref_absmax": 21.4202118, + "rel_max": 0.151297209, + "scaled_max_abs": 0.151297209 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp16", + "id": "resnet18__input_hw_swap__litert_fp16", + "model": "resnet18", + "path": "litert", + "variant": "input_hw_swap" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/resnet18__input_hw_swap__litert_fp32.json b/bench/verdicts_e2e_gated/resnet18__input_hw_swap__litert_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..ec9bc26fa5b40477ef59efeb597549ce2fbeadd9 --- /dev/null +++ b/bench/verdicts_e2e_gated/resnet18__input_hw_swap__litert_fp32.json @@ -0,0 +1,985 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "normalize", + "explained_by": "hw_transpose", + "nominal_band_ratio": 16910.1721, + "results": [ + { + "band_ratio": 16910.1721, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 11978.5595, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 21078.7917, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 0.000903100643, + "explains": true, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 31179.0395, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "flag" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 0.00726596332, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.52587891e-05, + "mean_abs": 1.28187856e-06, + "psnr_db": 146.167784, + "ref_absmax": 21.0003662, + "rel_max": 7.26596332e-07, + "scaled_max_abs": 7.26596332e-07 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 7, + "outputs": [ + "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models.res" + ] + }, + { + "inputs": 43, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 2, + "n_ops_total": 39, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "zoo.Source/zoo.Normalize_normalize;5", + "basis": "interface hypothesis 'hw_transpose' explains the first over-band tap (normalize)", + "index": 0, + "neighbourhood": [ + { + "band_ratio": 11112.3355, + "index": 0, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;5" + }, + "status": "fail", + "tap": "normalize" + }, + { + "band_ratio": 9433.64531, + "index": 1, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.MaxPool2d_maxpool;2" + }, + "status": "fail", + "tap": "net.maxpool" + } + ], + "observed_first_over_band": { + "index": 0, + "tap": "normalize" + }, + "shape": 224, + "tap": "normalize" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "1cd197cac23ac2941cb7c0a5dc52218109e965d5029dd346afdd1d144229e48f", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "4c93f87a4476704d598f6a81b870bfca006a32a85e706deabc49e7ba65af58fe", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D3", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.96875, + "band_ratio": 1359.43613, + "metrics": { + "corr": 0.984222077, + "finite": true, + "max_abs": 3.14324617, + "mean_abs": 0.280204745, + "psnr_db": 38.7300022, + "ref_absmax": 23.1216908, + "rel_max": 0.135943613, + "scaled_max_abs": 0.135943613 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 0, + "n_judged": 12, + "n_taps": 12, + "taps": [ + { + "band_ratio": 11616.7792, + "index": 0, + "metrics": { + "corr": 0.675680702, + "finite": true, + "max_abs": 13.3928566, + "mean_abs": 0.899941872, + "psnr_db": 19.0470658, + "ref_absmax": 11.5288897, + "rel_max": 1.16167792, + "scaled_max_abs": 1.16167792 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;5" + }, + "status": "fail", + "tap": "normalize", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9741.86701, + "index": 1, + "metrics": { + "corr": 0.778558298, + "finite": true, + "max_abs": 8.99622271, + "mean_abs": 0.186896473, + "psnr_db": 27.0935224, + "ref_absmax": 9.23459816, + "rel_max": 0.974186701, + "scaled_max_abs": 0.974186701 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.MaxPool2d_maxpool;2" + }, + "status": "fail", + "tap": "net.maxpool", + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 7606.94439, + "index": 2, + "metrics": { + "corr": 0.708523771, + "finite": true, + "max_abs": 12.1038759, + "mean_abs": 0.262473939, + "psnr_db": 29.7489333, + "ref_absmax": 15.9116135, + "rel_max": 0.760694439, + "scaled_max_abs": 0.760694439 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer1.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9634.89154, + "index": 3, + "metrics": { + "corr": 0.568424878, + "finite": true, + "max_abs": 18.1321967, + "mean_abs": 0.377407468, + "psnr_db": 28.7261344, + "ref_absmax": 18.8193054, + "rel_max": 0.963489154, + "scaled_max_abs": 0.963489154 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer1.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7529.15805, + "index": 4, + "metrics": { + "corr": 0.610826945, + "finite": true, + "max_abs": 8.80884767, + "mean_abs": 0.149203526, + "psnr_db": 31.7350131, + "ref_absmax": 11.699645, + "rel_max": 0.752915805, + "scaled_max_abs": 0.752915805 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer2.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 8196.89114, + "index": 5, + "metrics": { + "corr": 0.623892937, + "finite": true, + "max_abs": 9.52760315, + "mean_abs": 0.147224785, + "psnr_db": 31.7099018, + "ref_absmax": 11.623435, + "rel_max": 0.819689114, + "scaled_max_abs": 0.819689114 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer2.1", + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_ratio": 6164.70419, + "index": 6, + "metrics": { + "corr": 0.858800027, + "finite": true, + "max_abs": 8.44025111, + "mean_abs": 0.05895001, + "psnr_db": 40.2272965, + "ref_absmax": 13.6912508, + "rel_max": 0.616470419, + "scaled_max_abs": 0.616470419 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer3.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 5780.54063, + "index": 7, + "metrics": { + "corr": 0.875276314, + "finite": true, + "max_abs": 4.81467927, + "mean_abs": 0.0554101608, + "psnr_db": 36.2049529, + "ref_absmax": 8.32911587, + "rel_max": 0.578054063, + "scaled_max_abs": 0.578054063 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer3.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 5872.51916, + "index": 8, + "metrics": { + "corr": 0.878322786, + "finite": true, + "max_abs": 3.58601779, + "mean_abs": 0.0282567113, + "psnr_db": 36.8839997, + "ref_absmax": 6.10643864, + "rel_max": 0.587251916, + "scaled_max_abs": 0.587251916 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer4.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 5310.87735, + "index": 9, + "metrics": { + "corr": 0.918234353, + "finite": true, + "max_abs": 9.42155504, + "mean_abs": 0.202091936, + "psnr_db": 31.7848313, + "ref_absmax": 17.7401104, + "rel_max": 0.531087735, + "scaled_max_abs": 0.531087735 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer4.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 1471.17973, + "index": 10, + "metrics": { + "corr": 0.981337386, + "finite": true, + "max_abs": 1.60470617, + "mean_abs": 0.0992388204, + "psnr_db": 35.1885374, + "ref_absmax": 10.9076147, + "rel_max": 0.147117973, + "scaled_max_abs": 0.147117973 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;1" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_ratio": 1359.43613, + "index": 11, + "metrics": { + "corr": 0.984222077, + "finite": true, + "max_abs": 3.14324617, + "mean_abs": 0.280204745, + "psnr_db": 38.7300022, + "ref_absmax": 23.1216908, + "rel_max": 0.135943613, + "scaled_max_abs": 0.135943613 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 1513.50613, + "metrics": { + "corr": 0.98723887, + "finite": true, + "max_abs": 3.24196219, + "mean_abs": 0.244208711, + "psnr_db": 39.7112961, + "ref_absmax": 21.4202118, + "rel_max": 0.151350613, + "scaled_max_abs": 0.151350613 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 0, + "n_judged": 12, + "n_taps": 12, + "taps": [ + { + "band_ratio": 11112.3355, + "index": 0, + "metrics": { + "corr": 0.709006651, + "finite": true, + "max_abs": 12.811289, + "mean_abs": 0.852875392, + "psnr_db": 19.6231673, + "ref_absmax": 11.5288897, + "rel_max": 1.11123355, + "scaled_max_abs": 1.11123355 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;5" + }, + "status": "fail", + "tap": "normalize", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9433.64531, + "index": 1, + "metrics": { + "corr": 0.793482822, + "finite": true, + "max_abs": 7.93262316, + "mean_abs": 0.172871222, + "psnr_db": 27.1687769, + "ref_absmax": 8.40886307, + "rel_max": 0.943364531, + "scaled_max_abs": 0.943364531 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.MaxPool2d_maxpool;2" + }, + "status": "fail", + "tap": "net.maxpool", + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_ratio": 6509.87628, + "index": 2, + "metrics": { + "corr": 0.725787811, + "finite": true, + "max_abs": 11.1263447, + "mean_abs": 0.247190345, + "psnr_db": 31.1318733, + "ref_absmax": 17.0914841, + "rel_max": 0.650987628, + "scaled_max_abs": 0.650987628 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer1.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7290.95664, + "index": 3, + "metrics": { + "corr": 0.577717021, + "finite": true, + "max_abs": 13.6789265, + "mean_abs": 0.360769232, + "psnr_db": 29.2600525, + "ref_absmax": 18.7614975, + "rel_max": 0.729095664, + "scaled_max_abs": 0.729095664 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer1.1", + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_ratio": 7168.57777, + "index": 4, + "metrics": { + "corr": 0.608756636, + "finite": true, + "max_abs": 7.97924447, + "mean_abs": 0.144938187, + "psnr_db": 31.6732366, + "ref_absmax": 11.1308613, + "rel_max": 0.716857777, + "scaled_max_abs": 0.716857777 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer2.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7187.30841, + "index": 5, + "metrics": { + "corr": 0.61760546, + "finite": true, + "max_abs": 8.17726183, + "mean_abs": 0.142245058, + "psnr_db": 31.8985119, + "ref_absmax": 11.3773632, + "rel_max": 0.718730841, + "scaled_max_abs": 0.718730841 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer2.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6145.7098, + "index": 6, + "metrics": { + "corr": 0.846719973, + "finite": true, + "max_abs": 7.33191228, + "mean_abs": 0.0582938208, + "psnr_db": 39.1284788, + "ref_absmax": 11.930131, + "rel_max": 0.61457098, + "scaled_max_abs": 0.61457098 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer3.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 8198.90325, + "index": 7, + "metrics": { + "corr": 0.864235052, + "finite": true, + "max_abs": 5.70338178, + "mean_abs": 0.0551848435, + "psnr_db": 34.7601811, + "ref_absmax": 6.95627403, + "rel_max": 0.819890325, + "scaled_max_abs": 0.819890325 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer3.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6743.95777, + "index": 8, + "metrics": { + "corr": 0.869653054, + "finite": true, + "max_abs": 3.26054025, + "mean_abs": 0.0272161319, + "psnr_db": 35.0952251, + "ref_absmax": 4.8347578, + "rel_max": 0.674395777, + "scaled_max_abs": 0.674395777 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer4.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 3496.43995, + "index": 9, + "metrics": { + "corr": 0.922690795, + "finite": true, + "max_abs": 7.40123248, + "mean_abs": 0.189829483, + "psnr_db": 33.8903158, + "ref_absmax": 21.1679096, + "rel_max": 0.349643995, + "scaled_max_abs": 0.349643995 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer4.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 1408.75721, + "index": 10, + "metrics": { + "corr": 0.984320401, + "finite": true, + "max_abs": 1.50840306, + "mean_abs": 0.0857701493, + "psnr_db": 36.1782483, + "ref_absmax": 10.7073317, + "rel_max": 0.140875721, + "scaled_max_abs": 0.140875721 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;1" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 1513.50613, + "index": 11, + "metrics": { + "corr": 0.98723887, + "finite": true, + "max_abs": 3.24196219, + "mean_abs": 0.244208711, + "psnr_db": 39.7112961, + "ref_absmax": 21.4202118, + "rel_max": 0.151350613, + "scaled_max_abs": 0.151350613 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp32", + "id": "resnet18__input_hw_swap__litert_fp32", + "model": "resnet18", + "path": "litert", + "variant": "input_hw_swap" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/resnet18__input_hw_swap__onnx_fp16.json b/bench/verdicts_e2e_gated/resnet18__input_hw_swap__onnx_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..73d15a1f31b72931eaee14e517f23496734bed12 --- /dev/null +++ b/bench/verdicts_e2e_gated/resnet18__input_hw_swap__onnx_fp16.json @@ -0,0 +1,850 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "normalize", + "explained_by": "hw_transpose", + "nominal_band_ratio": 169.080588, + "results": [ + { + "band_ratio": 169.080588, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 119.778016, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 210.748392, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 0.0933896374, + "explains": true, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 311.914062, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "flag" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "/normalize/Div_output_0", + "basis": "interface hypothesis 'hw_transpose' explains the first over-band tap (normalize)", + "index": 0, + "neighbourhood": [ + { + "band_ratio": 111.131751, + "index": 0, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "fail", + "tap": "normalize" + }, + { + "band_ratio": 94.3382193, + "index": 1, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/maxpool/MaxPool_output_0" + }, + "status": "fail", + "tap": "net.maxpool" + } + ], + "observed_first_over_band": { + "index": 0, + "tap": "normalize" + }, + "shape": 224, + "tap": "normalize" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "1797ebe4d1d60ffe9e43563a7db8613dd38e2b65ad68971b6f811fbe647ee09c", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "52212054990986e07a43daac8f5eea508b241facd25be10742c332da19e6fd27", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D3", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.96875, + "band_ratio": 13.5868071, + "metrics": { + "corr": 0.984244351, + "finite": true, + "max_abs": 3.14149952, + "mean_abs": 0.280353052, + "psnr_db": 38.7367233, + "ref_absmax": 23.1216908, + "rel_max": 0.135868071, + "scaled_max_abs": 0.135868071 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 0, + "n_judged": 12, + "n_taps": 12, + "taps": [ + { + "band_ratio": 116.187157, + "index": 0, + "metrics": { + "corr": 0.675686237, + "finite": true, + "max_abs": 13.3950891, + "mean_abs": 0.900044108, + "psnr_db": 19.0469554, + "ref_absmax": 11.5288897, + "rel_max": 1.16187157, + "scaled_max_abs": 1.16187157 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "fail", + "tap": "normalize", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 97.4215697, + "index": 1, + "metrics": { + "corr": 0.778561732, + "finite": true, + "max_abs": 8.99649048, + "mean_abs": 0.186926646, + "psnr_db": 27.0933872, + "ref_absmax": 9.23459816, + "rel_max": 0.974215697, + "scaled_max_abs": 0.974215697 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/maxpool/MaxPool_output_0" + }, + "status": "fail", + "tap": "net.maxpool", + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 76.0666149, + "index": 2, + "metrics": { + "corr": 0.708521924, + "finite": true, + "max_abs": 12.1034257, + "mean_abs": 0.262525959, + "psnr_db": 29.7487848, + "ref_absmax": 15.9116135, + "rel_max": 0.760666149, + "scaled_max_abs": 0.760666149 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.0/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer1.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 96.3146387, + "index": 3, + "metrics": { + "corr": 0.56841982, + "finite": true, + "max_abs": 18.125746, + "mean_abs": 0.377469477, + "psnr_db": 28.726148, + "ref_absmax": 18.8193054, + "rel_max": 0.963146387, + "scaled_max_abs": 0.963146387 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer1.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 75.2991592, + "index": 4, + "metrics": { + "corr": 0.610818327, + "finite": true, + "max_abs": 8.80973434, + "mean_abs": 0.149235547, + "psnr_db": 31.7348124, + "ref_absmax": 11.699645, + "rel_max": 0.752991592, + "scaled_max_abs": 0.752991592 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.0/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer2.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 82.0002863, + "index": 5, + "metrics": { + "corr": 0.62389929, + "finite": true, + "max_abs": 9.53125, + "mean_abs": 0.14725425, + "psnr_db": 31.7098322, + "ref_absmax": 11.623435, + "rel_max": 0.820002863, + "scaled_max_abs": 0.820002863 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer2.1", + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_ratio": 61.6550749, + "index": 6, + "metrics": { + "corr": 0.858800499, + "finite": true, + "max_abs": 8.44135094, + "mean_abs": 0.0589689872, + "psnr_db": 40.2274436, + "ref_absmax": 13.6912508, + "rel_max": 0.616550749, + "scaled_max_abs": 0.616550749 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.0/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer3.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 57.8183904, + "index": 7, + "metrics": { + "corr": 0.875260102, + "finite": true, + "max_abs": 4.81576073, + "mean_abs": 0.0554420851, + "psnr_db": 36.2048234, + "ref_absmax": 8.32911587, + "rel_max": 0.578183904, + "scaled_max_abs": 0.578183904 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer3.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 58.7444792, + "index": 8, + "metrics": { + "corr": 0.878306362, + "finite": true, + "max_abs": 3.58719558, + "mean_abs": 0.0282743193, + "psnr_db": 36.8837891, + "ref_absmax": 6.10643864, + "rel_max": 0.587444792, + "scaled_max_abs": 0.587444792 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.0/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer4.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 53.0894098, + "index": 9, + "metrics": { + "corr": 0.918254097, + "finite": true, + "max_abs": 9.41811991, + "mean_abs": 0.202190491, + "psnr_db": 31.7865327, + "ref_absmax": 17.7401104, + "rel_max": 0.530894098, + "scaled_max_abs": 0.530894098 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer4.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 14.7170509, + "index": 10, + "metrics": { + "corr": 0.981358369, + "finite": true, + "max_abs": 1.60527921, + "mean_abs": 0.0993034532, + "psnr_db": 35.193919, + "ref_absmax": 10.9076147, + "rel_max": 0.147170509, + "scaled_max_abs": 0.147170509 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_ratio": 13.5868071, + "index": 11, + "metrics": { + "corr": 0.984244351, + "finite": true, + "max_abs": 3.14149952, + "mean_abs": 0.280353052, + "psnr_db": 38.7367233, + "ref_absmax": 23.1216908, + "rel_max": 0.135868071, + "scaled_max_abs": 0.135868071 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 15.1174072, + "metrics": { + "corr": 0.987246673, + "finite": true, + "max_abs": 3.23818064, + "mean_abs": 0.24440316, + "psnr_db": 39.7146029, + "ref_absmax": 21.4202118, + "rel_max": 0.151174072, + "scaled_max_abs": 0.151174072 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 0, + "n_judged": 12, + "n_taps": 12, + "taps": [ + { + "band_ratio": 111.131751, + "index": 0, + "metrics": { + "corr": 0.709012436, + "finite": true, + "max_abs": 12.8122569, + "mean_abs": 0.852976692, + "psnr_db": 19.6230811, + "ref_absmax": 11.5288897, + "rel_max": 1.11131751, + "scaled_max_abs": 1.11131751 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "fail", + "tap": "normalize", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 94.3382193, + "index": 1, + "metrics": { + "corr": 0.79348693, + "finite": true, + "max_abs": 7.93277168, + "mean_abs": 0.172900701, + "psnr_db": 27.1686582, + "ref_absmax": 8.40886307, + "rel_max": 0.943382193, + "scaled_max_abs": 0.943382193 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/maxpool/MaxPool_output_0" + }, + "status": "fail", + "tap": "net.maxpool", + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_ratio": 65.0795404, + "index": 2, + "metrics": { + "corr": 0.72578779, + "finite": true, + "max_abs": 11.1230593, + "mean_abs": 0.247242591, + "psnr_db": 31.1317501, + "ref_absmax": 17.0914841, + "rel_max": 0.650795404, + "scaled_max_abs": 0.650795404 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.0/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer1.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 72.9095664, + "index": 3, + "metrics": { + "corr": 0.57771323, + "finite": true, + "max_abs": 13.6789265, + "mean_abs": 0.360832564, + "psnr_db": 29.2601007, + "ref_absmax": 18.7614975, + "rel_max": 0.729095664, + "scaled_max_abs": 0.729095664 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer1.1", + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_ratio": 71.6859212, + "index": 4, + "metrics": { + "corr": 0.608746755, + "finite": true, + "max_abs": 7.97926044, + "mean_abs": 0.144969947, + "psnr_db": 31.6730332, + "ref_absmax": 11.1308613, + "rel_max": 0.716859212, + "scaled_max_abs": 0.716859212 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.0/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer2.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 71.9028158, + "index": 5, + "metrics": { + "corr": 0.617605091, + "finite": true, + "max_abs": 8.18064451, + "mean_abs": 0.142273662, + "psnr_db": 31.8984322, + "ref_absmax": 11.3773632, + "rel_max": 0.719028158, + "scaled_max_abs": 0.719028158 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer2.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 61.4668745, + "index": 6, + "metrics": { + "corr": 0.846719463, + "finite": true, + "max_abs": 7.33307862, + "mean_abs": 0.0583134172, + "psnr_db": 39.1286214, + "ref_absmax": 11.930131, + "rel_max": 0.614668745, + "scaled_max_abs": 0.614668745 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.0/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer3.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 81.9890599, + "index": 7, + "metrics": { + "corr": 0.864215922, + "finite": true, + "max_abs": 5.70338368, + "mean_abs": 0.0552163824, + "psnr_db": 34.7599313, + "ref_absmax": 6.95627403, + "rel_max": 0.819890599, + "scaled_max_abs": 0.819890599 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer3.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 67.4241081, + "index": 8, + "metrics": { + "corr": 0.869640556, + "finite": true, + "max_abs": 3.25979233, + "mean_abs": 0.0272328018, + "psnr_db": 35.0950132, + "ref_absmax": 4.8347578, + "rel_max": 0.674241081, + "scaled_max_abs": 0.674241081 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.0/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer4.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 34.894072, + "index": 9, + "metrics": { + "corr": 0.922685162, + "finite": true, + "max_abs": 7.38634562, + "mean_abs": 0.189949769, + "psnr_db": 33.8903917, + "ref_absmax": 21.1679096, + "rel_max": 0.34894072, + "scaled_max_abs": 0.34894072 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer4.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 14.0858486, + "index": 10, + "metrics": { + "corr": 0.984324379, + "finite": true, + "max_abs": 1.50821853, + "mean_abs": 0.0858559091, + "psnr_db": 36.1798707, + "ref_absmax": 10.7073317, + "rel_max": 0.140858486, + "scaled_max_abs": 0.140858486 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 15.1174072, + "index": 11, + "metrics": { + "corr": 0.987246673, + "finite": true, + "max_abs": 3.23818064, + "mean_abs": 0.24440316, + "psnr_db": 39.7146029, + "ref_absmax": 21.4202118, + "rel_max": 0.151174072, + "scaled_max_abs": 0.151174072 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp16", + "id": "resnet18__input_hw_swap__onnx_fp16", + "model": "resnet18", + "path": "onnx", + "variant": "input_hw_swap" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/resnet18__input_hw_swap__onnx_fp32.json b/bench/verdicts_e2e_gated/resnet18__input_hw_swap__onnx_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..2bf958e55f00bffc12b1bf69ec907fcf6e68d099 --- /dev/null +++ b/bench/verdicts_e2e_gated/resnet18__input_hw_swap__onnx_fp32.json @@ -0,0 +1,850 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "normalize", + "explained_by": "hw_transpose", + "nominal_band_ratio": 16910.1721, + "results": [ + { + "band_ratio": 16910.1721, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 11978.5595, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 21078.7917, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 0.0, + "explains": true, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 31179.0395, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "flag" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "/normalize/Div_output_0", + "basis": "interface hypothesis 'hw_transpose' explains the first over-band tap (normalize)", + "index": 0, + "neighbourhood": [ + { + "band_ratio": 11112.3355, + "index": 0, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "fail", + "tap": "normalize" + }, + { + "band_ratio": 9433.64547, + "index": 1, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/maxpool/MaxPool_output_0" + }, + "status": "fail", + "tap": "net.maxpool" + } + ], + "observed_first_over_band": { + "index": 0, + "tap": "normalize" + }, + "shape": 224, + "tap": "normalize" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "7bb54956399901c409d6617e02d090a8b602a35f417e36fb718a3e2505b1112c", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "1d818a939b56a32b76327b1c57a719ad31e969f97a8a131d400d6d2796bcc07b", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D3", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.96875, + "band_ratio": 1359.43468, + "metrics": { + "corr": 0.984222074, + "finite": true, + "max_abs": 3.14324284, + "mean_abs": 0.280204892, + "psnr_db": 38.7300005, + "ref_absmax": 23.1216908, + "rel_max": 0.135943468, + "scaled_max_abs": 0.135943468 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + "first_fail_index": 0, + "n_judged": 12, + "n_taps": 12, + "taps": [ + { + "band_ratio": 11616.7792, + "index": 0, + "metrics": { + "corr": 0.675680703, + "finite": true, + "max_abs": 13.3928566, + "mean_abs": 0.899941866, + "psnr_db": 19.0470658, + "ref_absmax": 11.5288897, + "rel_max": 1.16167792, + "scaled_max_abs": 1.16167792 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "fail", + "tap": "normalize", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9741.86703, + "index": 1, + "metrics": { + "corr": 0.778558293, + "finite": true, + "max_abs": 8.99622273, + "mean_abs": 0.186896475, + "psnr_db": 27.0935223, + "ref_absmax": 9.23459816, + "rel_max": 0.974186703, + "scaled_max_abs": 0.974186703 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/maxpool/MaxPool_output_0" + }, + "status": "fail", + "tap": "net.maxpool", + "worst_probe": { + "category": "saturating", + "index": 28 + } + }, + { + "band_ratio": 7606.94559, + "index": 2, + "metrics": { + "corr": 0.708523767, + "finite": true, + "max_abs": 12.1038778, + "mean_abs": 0.262473939, + "psnr_db": 29.7489331, + "ref_absmax": 15.9116135, + "rel_max": 0.760694559, + "scaled_max_abs": 0.760694559 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.0/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer1.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9634.89256, + "index": 3, + "metrics": { + "corr": 0.568424874, + "finite": true, + "max_abs": 18.1321986, + "mean_abs": 0.377407463, + "psnr_db": 28.7261342, + "ref_absmax": 18.8193054, + "rel_max": 0.963489256, + "scaled_max_abs": 0.963489256 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer1.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7529.15846, + "index": 4, + "metrics": { + "corr": 0.610826942, + "finite": true, + "max_abs": 8.80884814, + "mean_abs": 0.149203523, + "psnr_db": 31.7350129, + "ref_absmax": 11.699645, + "rel_max": 0.752915846, + "scaled_max_abs": 0.752915846 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.0/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer2.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 8196.8936, + "index": 5, + "metrics": { + "corr": 0.623892932, + "finite": true, + "max_abs": 9.52760601, + "mean_abs": 0.147224782, + "psnr_db": 31.7099017, + "ref_absmax": 11.623435, + "rel_max": 0.81968936, + "scaled_max_abs": 0.81968936 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer2.1", + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_ratio": 6164.70419, + "index": 6, + "metrics": { + "corr": 0.858800025, + "finite": true, + "max_abs": 8.44025111, + "mean_abs": 0.0589500086, + "psnr_db": 40.2272962, + "ref_absmax": 13.6912508, + "rel_max": 0.616470419, + "scaled_max_abs": 0.616470419 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.0/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer3.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 5780.54635, + "index": 7, + "metrics": { + "corr": 0.875276317, + "finite": true, + "max_abs": 4.81468403, + "mean_abs": 0.0554101596, + "psnr_db": 36.2049526, + "ref_absmax": 8.32911587, + "rel_max": 0.578054635, + "scaled_max_abs": 0.578054635 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer3.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 5872.52306, + "index": 8, + "metrics": { + "corr": 0.878322794, + "finite": true, + "max_abs": 3.58602017, + "mean_abs": 0.0282567107, + "psnr_db": 36.8839995, + "ref_absmax": 6.10643864, + "rel_max": 0.587252306, + "scaled_max_abs": 0.587252306 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.0/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer4.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 5310.88433, + "index": 9, + "metrics": { + "corr": 0.918234369, + "finite": true, + "max_abs": 9.42156744, + "mean_abs": 0.202091951, + "psnr_db": 31.7848313, + "ref_absmax": 17.7401104, + "rel_max": 0.531088433, + "scaled_max_abs": 0.531088433 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer4.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 1471.17973, + "index": 10, + "metrics": { + "corr": 0.981337388, + "finite": true, + "max_abs": 1.60470617, + "mean_abs": 0.0992388562, + "psnr_db": 35.188537, + "ref_absmax": 10.9076147, + "rel_max": 0.147117973, + "scaled_max_abs": 0.147117973 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_ratio": 1359.43468, + "index": 11, + "metrics": { + "corr": 0.984222074, + "finite": true, + "max_abs": 3.14324284, + "mean_abs": 0.280204892, + "psnr_db": 38.7300005, + "ref_absmax": 23.1216908, + "rel_max": 0.135943468, + "scaled_max_abs": 0.135943468 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 30 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 1513.50803, + "metrics": { + "corr": 0.987238865, + "finite": true, + "max_abs": 3.24196625, + "mean_abs": 0.244208834, + "psnr_db": 39.7112931, + "ref_absmax": 21.4202118, + "rel_max": 0.151350803, + "scaled_max_abs": 0.151350803 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 0, + "n_judged": 12, + "n_taps": 12, + "taps": [ + { + "band_ratio": 11112.3355, + "index": 0, + "metrics": { + "corr": 0.709006652, + "finite": true, + "max_abs": 12.811289, + "mean_abs": 0.852875386, + "psnr_db": 19.6231673, + "ref_absmax": 11.5288897, + "rel_max": 1.11123355, + "scaled_max_abs": 1.11123355 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "fail", + "tap": "normalize", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9433.64547, + "index": 1, + "metrics": { + "corr": 0.793482817, + "finite": true, + "max_abs": 7.9326233, + "mean_abs": 0.172871223, + "psnr_db": 27.1687767, + "ref_absmax": 8.40886307, + "rel_max": 0.943364547, + "scaled_max_abs": 0.943364547 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/maxpool/MaxPool_output_0" + }, + "status": "fail", + "tap": "net.maxpool", + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_ratio": 6509.87405, + "index": 2, + "metrics": { + "corr": 0.725787806, + "finite": true, + "max_abs": 11.1263409, + "mean_abs": 0.247190344, + "psnr_db": 31.1318731, + "ref_absmax": 17.0914841, + "rel_max": 0.650987405, + "scaled_max_abs": 0.650987405 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.0/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer1.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7290.95664, + "index": 3, + "metrics": { + "corr": 0.577717015, + "finite": true, + "max_abs": 13.6789265, + "mean_abs": 0.360769228, + "psnr_db": 29.2600523, + "ref_absmax": 18.7614975, + "rel_max": 0.729095664, + "scaled_max_abs": 0.729095664 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer1.1", + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_ratio": 7168.57755, + "index": 4, + "metrics": { + "corr": 0.608756632, + "finite": true, + "max_abs": 7.97924423, + "mean_abs": 0.144938184, + "psnr_db": 31.6732364, + "ref_absmax": 11.1308613, + "rel_max": 0.716857755, + "scaled_max_abs": 0.716857755 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.0/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer2.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7187.30841, + "index": 5, + "metrics": { + "corr": 0.617605455, + "finite": true, + "max_abs": 8.17726183, + "mean_abs": 0.142245057, + "psnr_db": 31.8985118, + "ref_absmax": 11.3773632, + "rel_max": 0.718730841, + "scaled_max_abs": 0.718730841 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer2.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6145.7098, + "index": 6, + "metrics": { + "corr": 0.846719973, + "finite": true, + "max_abs": 7.33191228, + "mean_abs": 0.0582938204, + "psnr_db": 39.1284787, + "ref_absmax": 11.930131, + "rel_max": 0.61457098, + "scaled_max_abs": 0.61457098 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.0/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer3.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 8198.90119, + "index": 7, + "metrics": { + "corr": 0.864235055, + "finite": true, + "max_abs": 5.70338035, + "mean_abs": 0.055184843, + "psnr_db": 34.7601808, + "ref_absmax": 6.95627403, + "rel_max": 0.819890119, + "scaled_max_abs": 0.819890119 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer3.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6743.95974, + "index": 8, + "metrics": { + "corr": 0.869653067, + "finite": true, + "max_abs": 3.2605412, + "mean_abs": 0.0272161327, + "psnr_db": 35.095225, + "ref_absmax": 4.8347578, + "rel_max": 0.674395974, + "scaled_max_abs": 0.674395974 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.0/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer4.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 3496.43995, + "index": 9, + "metrics": { + "corr": 0.922690798, + "finite": true, + "max_abs": 7.40123248, + "mean_abs": 0.189829513, + "psnr_db": 33.8903147, + "ref_absmax": 21.1679096, + "rel_max": 0.349643995, + "scaled_max_abs": 0.349643995 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer4.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 1408.75687, + "index": 10, + "metrics": { + "corr": 0.984320397, + "finite": true, + "max_abs": 1.50840271, + "mean_abs": 0.0857701845, + "psnr_db": 36.1782457, + "ref_absmax": 10.7073317, + "rel_max": 0.140875687, + "scaled_max_abs": 0.140875687 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 1513.50803, + "index": 11, + "metrics": { + "corr": 0.987238865, + "finite": true, + "max_abs": 3.24196625, + "mean_abs": 0.244208834, + "psnr_db": 39.7112931, + "ref_absmax": 21.4202118, + "rel_max": 0.151350803, + "scaled_max_abs": 0.151350803 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp32", + "id": "resnet18__input_hw_swap__onnx_fp32", + "model": "resnet18", + "path": "onnx", + "variant": "input_hw_swap" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/resnet18__int8_clean__onnx_int8.json b/bench/verdicts_e2e_gated/resnet18__int8_clean__onnx_int8.json new file mode 100644 index 0000000000000000000000000000000000000000..91c23e6b1e36234a775e38dc40939243d3ec2a9f --- /dev/null +++ b/bench/verdicts_e2e_gated/resnet18__int8_clean__onnx_int8.json @@ -0,0 +1,1018 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": false, + "note": null, + "status": "clear" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "status": "clear" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "status": "clear" + } + }, + "declared_precision": "int8", + "first_divergence": null, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "64ab90e1d9472bf9769ccd182d17ee89863a5b82b4f02136906b5c09bf425825", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "794ffdf8e5271a8074e780a79d3fce7d2c89baeb6e9189f576d42c2579851ccf", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "int8 band on exciter probes", + "reason": "a statically quantised model is specified on its calibration distribution; exciter categories ['wide_range', 'near_zero', 'saturating'] are measured and reported per tap ('ungated_exciters') but do not gate" + }, + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": null, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.9375, + "band_ratio": 0.136789956, + "metrics": { + "corr": 0.999143715, + "finite": true, + "max_abs": 0.509357452, + "mean_abs": 0.066124996, + "psnr_db": 47.2789158, + "ref_absmax": 12.6814899, + "rel_max": 0.0401654265, + "scaled_max_abs": 0.0401654265 + }, + "status": "pass", + "ungated_exciters": { + "band_ratio": 20.9862934, + "metrics": { + "corr": 0.790137066, + "finite": true, + "max_abs": 18.5986547, + "mean_abs": 1.11977593, + "psnr_db": 26.0485971, + "ref_absmax": 23.1216908, + "rel_max": 0.80438126, + "scaled_max_abs": 0.80438126 + } + } + }, + "first_fail_index": null, + "n_judged": 12, + "n_taps": 12, + "taps": [ + { + "band_ratio": 0.0358443598, + "index": 0, + "metrics": { + "corr": 0.99998378, + "finite": true, + "max_abs": 0.0093292594, + "mean_abs": 0.00466938237, + "psnr_db": 58.9115834, + "ref_absmax": 2.6400001, + "rel_max": 0.00353381024, + "scaled_max_abs": 0.00353381024 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "normalize", + "ungated_exciters": { + "band_ratio": 7.29207513, + "metrics": { + "corr": 0.927079249, + "finite": true, + "max_abs": 8.8980484, + "mean_abs": 0.355833548, + "psnr_db": 21.0584139, + "ref_absmax": 11.5288897, + "rel_max": 0.771804455, + "scaled_max_abs": 0.771804455 + } + } + }, + { + "band_ratio": 0.0482310906, + "index": 1, + "metrics": { + "corr": 0.999831103, + "finite": true, + "max_abs": 2.03511643, + "mean_abs": 0.00366043559, + "psnr_db": 56.3334583, + "ref_absmax": 5.70112419, + "rel_max": 0.356967567, + "scaled_max_abs": 0.356967567 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/maxpool/MaxPool_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.maxpool", + "ungated_exciters": { + "band_ratio": 14.6624269, + "metrics": { + "corr": 0.853375731, + "finite": true, + "max_abs": 7.26669967, + "mean_abs": 0.129063954, + "psnr_db": 26.4196535, + "ref_absmax": 9.23459816, + "rel_max": 0.786899391, + "scaled_max_abs": 0.786899391 + } + } + }, + { + "band_ratio": 0.0844290341, + "index": 2, + "metrics": { + "corr": 0.999617505, + "finite": true, + "max_abs": 2.07634306, + "mean_abs": 0.00875948984, + "psnr_db": 51.4701636, + "ref_absmax": 5.50518703, + "rel_max": 0.37716122, + "scaled_max_abs": 0.37716122 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.0/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.layer1.0", + "ungated_exciters": { + "band_ratio": 21.4696274, + "metrics": { + "corr": 0.785303726, + "finite": true, + "max_abs": 14.6099226, + "mean_abs": 0.151848385, + "psnr_db": 29.2025829, + "ref_absmax": 15.9116135, + "rel_max": 0.918192406, + "scaled_max_abs": 0.918192406 + } + } + }, + { + "band_ratio": 0.129862741, + "index": 3, + "metrics": { + "corr": 0.99914928, + "finite": true, + "max_abs": 2.17964602, + "mean_abs": 0.0153960685, + "psnr_db": 47.7303087, + "ref_absmax": 5.79480076, + "rel_max": 0.376138215, + "scaled_max_abs": 0.376138215 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.1/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.layer1.1", + "ungated_exciters": { + "band_ratio": 21.7283666, + "metrics": { + "corr": 0.782716334, + "finite": true, + "max_abs": 17.6264288, + "mean_abs": 0.186074637, + "psnr_db": 29.8971418, + "ref_absmax": 18.8193054, + "rel_max": 0.936614208, + "scaled_max_abs": 0.936614208 + } + } + }, + { + "band_ratio": 0.151602313, + "index": 4, + "metrics": { + "corr": 0.998483977, + "finite": true, + "max_abs": 0.488729, + "mean_abs": 0.00869818132, + "psnr_db": 48.912436, + "ref_absmax": 4.28559637, + "rel_max": 0.114039904, + "scaled_max_abs": 0.114039904 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.0/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.layer2.0", + "ungated_exciters": { + "band_ratio": 17.1226155, + "metrics": { + "corr": 0.828773845, + "finite": true, + "max_abs": 10.4215281, + "mean_abs": 0.0647647565, + "psnr_db": 33.7192985, + "ref_absmax": 11.699645, + "rel_max": 0.890755921, + "scaled_max_abs": 0.890755921 + } + } + }, + { + "band_ratio": 0.204819364, + "index": 5, + "metrics": { + "corr": 0.997951806, + "finite": true, + "max_abs": 0.531787157, + "mean_abs": 0.00960257109, + "psnr_db": 48.9155166, + "ref_absmax": 4.84292746, + "rel_max": 0.109806963, + "scaled_max_abs": 0.109806963 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.1/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.layer2.1", + "ungated_exciters": { + "band_ratio": 19.7365402, + "metrics": { + "corr": 0.802634598, + "finite": true, + "max_abs": 10.2429446, + "mean_abs": 0.0741306461, + "psnr_db": 32.7470413, + "ref_absmax": 11.623435, + "rel_max": 0.881232147, + "scaled_max_abs": 0.881232147 + } + } + }, + { + "band_ratio": 0.200555973, + "index": 6, + "metrics": { + "corr": 0.99799444, + "finite": true, + "max_abs": 0.252626419, + "mean_abs": 0.00538762579, + "psnr_db": 47.9944608, + "ref_absmax": 2.51875043, + "rel_max": 0.100298313, + "scaled_max_abs": 0.100298313 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.0/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.layer3.0", + "ungated_exciters": { + "band_ratio": 27.9939106, + "metrics": { + "corr": 0.720060894, + "finite": true, + "max_abs": 13.6023832, + "mean_abs": 0.0548351638, + "psnr_db": 34.845871, + "ref_absmax": 13.6912508, + "rel_max": 0.993509168, + "scaled_max_abs": 0.993509168 + } + } + }, + { + "band_ratio": 0.243415227, + "index": 7, + "metrics": { + "corr": 0.997565848, + "finite": true, + "max_abs": 0.382788181, + "mean_abs": 0.00594596683, + "psnr_db": 46.6445135, + "ref_absmax": 2.36873722, + "rel_max": 0.161600104, + "scaled_max_abs": 0.161600104 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.1/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.layer3.1", + "ungated_exciters": { + "band_ratio": 23.5074773, + "metrics": { + "corr": 0.764925227, + "finite": true, + "max_abs": 7.98696101, + "mean_abs": 0.0854620508, + "psnr_db": 30.7432618, + "ref_absmax": 8.32911587, + "rel_max": 0.958920627, + "scaled_max_abs": 0.958920627 + } + } + }, + { + "band_ratio": 0.316840477, + "index": 8, + "metrics": { + "corr": 0.996831595, + "finite": true, + "max_abs": 0.554084778, + "mean_abs": 0.00366009735, + "psnr_db": 48.940994, + "ref_absmax": 2.7839849, + "rel_max": 0.199025784, + "scaled_max_abs": 0.199025784 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.0/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.layer4.0", + "ungated_exciters": { + "band_ratio": 25.6609044, + "metrics": { + "corr": 0.743390956, + "finite": true, + "max_abs": 5.26112664, + "mean_abs": 0.0488387659, + "psnr_db": 31.5129106, + "ref_absmax": 6.10643864, + "rel_max": 0.861570377, + "scaled_max_abs": 0.861570377 + } + } + }, + { + "band_ratio": 0.237190686, + "index": 9, + "metrics": { + "corr": 0.997628093, + "finite": true, + "max_abs": 0.928253174, + "mean_abs": 0.0326907213, + "psnr_db": 46.8826996, + "ref_absmax": 14.1892548, + "rel_max": 0.0654194452, + "scaled_max_abs": 0.0654194452 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.1/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.layer4.1", + "ungated_exciters": { + "band_ratio": 34.1492461, + "metrics": { + "corr": 0.658507539, + "finite": true, + "max_abs": 17.7401104, + "mean_abs": 0.45814621, + "psnr_db": 24.2682768, + "ref_absmax": 17.7401104, + "rel_max": 1.0, + "scaled_max_abs": 1.0 + } + } + }, + { + "band_ratio": 0.137691383, + "index": 10, + "metrics": { + "corr": 0.999022054, + "finite": true, + "max_abs": 0.274357319, + "mean_abs": 0.0229510119, + "psnr_db": 47.2218648, + "ref_absmax": 8.47060871, + "rel_max": 0.0323893274, + "scaled_max_abs": 0.0323893274 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.avgpool", + "ungated_exciters": { + "band_ratio": 28.9193205, + "metrics": { + "corr": 0.710806795, + "finite": true, + "max_abs": 10.3587814, + "mean_abs": 0.405708514, + "psnr_db": 21.8011689, + "ref_absmax": 10.9076147, + "rel_max": 0.949683468, + "scaled_max_abs": 0.949683468 + } + } + }, + { + "band_ratio": 0.136789956, + "index": 11, + "metrics": { + "corr": 0.999143715, + "finite": true, + "max_abs": 0.509357452, + "mean_abs": 0.066124996, + "psnr_db": 47.2789158, + "ref_absmax": 12.6814899, + "rel_max": 0.0401654265, + "scaled_max_abs": 0.0401654265 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "pass", + "tap": "net.fc", + "ungated_exciters": { + "band_ratio": 20.9862934, + "metrics": { + "corr": 0.790137066, + "finite": true, + "max_abs": 18.5986547, + "mean_abs": 1.11977593, + "psnr_db": 26.0485971, + "ref_absmax": 23.1216908, + "rel_max": 0.80438126, + "scaled_max_abs": 0.80438126 + } + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.9375, + "band_ratio": 0.117368892, + "metrics": { + "corr": 0.999212255, + "finite": true, + "max_abs": 0.407934189, + "mean_abs": 0.0609555266, + "psnr_db": 48.6089399, + "ref_absmax": 14.0897207, + "rel_max": 0.02895261, + "scaled_max_abs": 0.02895261 + }, + "status": "pass", + "ungated_exciters": { + "band_ratio": 20.5383585, + "metrics": { + "corr": 0.794616415, + "finite": true, + "max_abs": 16.2005711, + "mean_abs": 1.02548413, + "psnr_db": 26.2756719, + "ref_absmax": 21.4202118, + "rel_max": 0.756321703, + "scaled_max_abs": 0.756321703 + } + } + }, + "first_fail_index": null, + "n_judged": 12, + "n_taps": 12, + "taps": [ + { + "band_ratio": 0.0358761909, + "index": 0, + "metrics": { + "corr": 0.999983129, + "finite": true, + "max_abs": 0.009329319, + "mean_abs": 0.00467525361, + "psnr_db": 58.9038735, + "ref_absmax": 2.6400001, + "rel_max": 0.00353383281, + "scaled_max_abs": 0.00353383281 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "normalize", + "ungated_exciters": { + "band_ratio": 6.40507214, + "metrics": { + "corr": 0.935949279, + "finite": true, + "max_abs": 8.8980484, + "mean_abs": 0.346772095, + "psnr_db": 21.6136782, + "ref_absmax": 11.5288897, + "rel_max": 0.771804455, + "scaled_max_abs": 0.771804455 + } + } + }, + { + "band_ratio": 0.0532172206, + "index": 1, + "metrics": { + "corr": 0.999795316, + "finite": true, + "max_abs": 1.93546081, + "mean_abs": 0.00368054461, + "psnr_db": 55.4789562, + "ref_absmax": 5.61968946, + "rel_max": 0.344407074, + "scaled_max_abs": 0.344407074 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/maxpool/MaxPool_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.maxpool", + "ungated_exciters": { + "band_ratio": 14.6312979, + "metrics": { + "corr": 0.853687021, + "finite": true, + "max_abs": 6.58115673, + "mean_abs": 0.117088117, + "psnr_db": 26.5494759, + "ref_absmax": 8.40886307, + "rel_max": 0.782645249, + "scaled_max_abs": 0.782645249 + } + } + }, + { + "band_ratio": 0.082466578, + "index": 2, + "metrics": { + "corr": 0.999569075, + "finite": true, + "max_abs": 1.95160413, + "mean_abs": 0.00896771676, + "psnr_db": 51.6744405, + "ref_absmax": 5.90958405, + "rel_max": 0.330243908, + "scaled_max_abs": 0.330243908 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.0/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.layer1.0", + "ungated_exciters": { + "band_ratio": 21.8988193, + "metrics": { + "corr": 0.781011807, + "finite": true, + "max_abs": 15.9720588, + "mean_abs": 0.139643374, + "psnr_db": 30.5143074, + "ref_absmax": 17.0914841, + "rel_max": 0.934503915, + "scaled_max_abs": 0.934503915 + } + } + }, + { + "band_ratio": 0.135807233, + "index": 3, + "metrics": { + "corr": 0.999081462, + "finite": true, + "max_abs": 1.95893097, + "mean_abs": 0.0155577861, + "psnr_db": 47.341542, + "ref_absmax": 5.67319107, + "rel_max": 0.345296138, + "scaled_max_abs": 0.345296138 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.1/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.layer1.1", + "ungated_exciters": { + "band_ratio": 22.4041991, + "metrics": { + "corr": 0.775958009, + "finite": true, + "max_abs": 17.2605718, + "mean_abs": 0.174196078, + "psnr_db": 30.4383409, + "ref_absmax": 18.7614975, + "rel_max": 0.919999688, + "scaled_max_abs": 0.919999688 + } + } + }, + { + "band_ratio": 0.15958682, + "index": 4, + "metrics": { + "corr": 0.998404132, + "finite": true, + "max_abs": 0.487756014, + "mean_abs": 0.00871887461, + "psnr_db": 49.0152273, + "ref_absmax": 4.3591032, + "rel_max": 0.111893661, + "scaled_max_abs": 0.111893661 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.0/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.layer2.0", + "ungated_exciters": { + "band_ratio": 17.300082, + "metrics": { + "corr": 0.82699918, + "finite": true, + "max_abs": 9.779015, + "mean_abs": 0.061816853, + "psnr_db": 33.8079432, + "ref_absmax": 11.1308613, + "rel_max": 0.878549715, + "scaled_max_abs": 0.878549715 + } + } + }, + { + "band_ratio": 0.221898783, + "index": 5, + "metrics": { + "corr": 0.997781012, + "finite": true, + "max_abs": 0.732395172, + "mean_abs": 0.00968365857, + "psnr_db": 49.7289044, + "ref_absmax": 5.38829708, + "rel_max": 0.13592331, + "scaled_max_abs": 0.13592331 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.1/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.layer2.1", + "ungated_exciters": { + "band_ratio": 19.5652226, + "metrics": { + "corr": 0.804347774, + "finite": true, + "max_abs": 9.97796714, + "mean_abs": 0.0689390396, + "psnr_db": 33.1760823, + "ref_absmax": 11.3773632, + "rel_max": 0.877001724, + "scaled_max_abs": 0.877001724 + } + } + }, + { + "band_ratio": 0.198170776, + "index": 6, + "metrics": { + "corr": 0.998018292, + "finite": true, + "max_abs": 0.196071982, + "mean_abs": 0.00522887392, + "psnr_db": 46.3315576, + "ref_absmax": 2.02191901, + "rel_max": 0.0969732127, + "scaled_max_abs": 0.0969732127 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.0/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.layer3.0", + "ungated_exciters": { + "band_ratio": 26.4300441, + "metrics": { + "corr": 0.735699559, + "finite": true, + "max_abs": 11.6338164, + "mean_abs": 0.0514559883, + "psnr_db": 34.4312391, + "ref_absmax": 11.930131, + "rel_max": 0.975162505, + "scaled_max_abs": 0.975162505 + } + } + }, + { + "band_ratio": 0.240230154, + "index": 7, + "metrics": { + "corr": 0.997597698, + "finite": true, + "max_abs": 0.166638374, + "mean_abs": 0.00581529579, + "psnr_db": 45.0566946, + "ref_absmax": 1.92723012, + "rel_max": 0.086465219, + "scaled_max_abs": 0.086465219 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.1/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.layer3.1", + "ungated_exciters": { + "band_ratio": 20.8908434, + "metrics": { + "corr": 0.791091566, + "finite": true, + "max_abs": 6.35879863, + "mean_abs": 0.071926597, + "psnr_db": 30.2910198, + "ref_absmax": 6.95627403, + "rel_max": 0.914109853, + "scaled_max_abs": 0.914109853 + } + } + }, + { + "band_ratio": 0.320009798, + "index": 8, + "metrics": { + "corr": 0.996799902, + "finite": true, + "max_abs": 0.212491691, + "mean_abs": 0.00344992529, + "psnr_db": 48.8301928, + "ref_absmax": 2.59620762, + "rel_max": 0.0818469561, + "scaled_max_abs": 0.0818469561 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.0/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.layer4.0", + "ungated_exciters": { + "band_ratio": 21.8733679, + "metrics": { + "corr": 0.781266321, + "finite": true, + "max_abs": 3.82852435, + "mean_abs": 0.0419283863, + "psnr_db": 30.6338912, + "ref_absmax": 4.8347578, + "rel_max": 0.791875106, + "scaled_max_abs": 0.791875106 + } + } + }, + { + "band_ratio": 0.237291153, + "index": 9, + "metrics": { + "corr": 0.997627088, + "finite": true, + "max_abs": 0.750813961, + "mean_abs": 0.0313747941, + "psnr_db": 46.7474258, + "ref_absmax": 13.5174656, + "rel_max": 0.0555439891, + "scaled_max_abs": 0.0555439891 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.1/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.layer4.1", + "ungated_exciters": { + "band_ratio": 32.7512018, + "metrics": { + "corr": 0.672487982, + "finite": true, + "max_abs": 21.1679096, + "mean_abs": 0.40449371, + "psnr_db": 26.3845924, + "ref_absmax": 21.1679096, + "rel_max": 1.0, + "scaled_max_abs": 1.0 + } + } + }, + { + "band_ratio": 0.125628423, + "index": 10, + "metrics": { + "corr": 0.999080876, + "finite": true, + "max_abs": 0.54506731, + "mean_abs": 0.0207495195, + "psnr_db": 48.0182418, + "ref_absmax": 8.43813801, + "rel_max": 0.0645956857, + "scaled_max_abs": 0.0645956857 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.avgpool", + "ungated_exciters": { + "band_ratio": 27.6105043, + "metrics": { + "corr": 0.723894957, + "finite": true, + "max_abs": 10.6763784, + "mean_abs": 0.360774773, + "psnr_db": 22.3145218, + "ref_absmax": 10.7073317, + "rel_max": 0.997109157, + "scaled_max_abs": 0.997109157 + } + } + }, + { + "band_ratio": 0.117368892, + "index": 11, + "metrics": { + "corr": 0.999212255, + "finite": true, + "max_abs": 0.407934189, + "mean_abs": 0.0609555266, + "psnr_db": 48.6089399, + "ref_absmax": 14.0897207, + "rel_max": 0.02895261, + "scaled_max_abs": 0.02895261 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "pass", + "tap": "net.fc", + "ungated_exciters": { + "band_ratio": 20.5383585, + "metrics": { + "corr": 0.794616415, + "finite": true, + "max_abs": 16.2005711, + "mean_abs": 1.02548413, + "psnr_db": 26.2756719, + "ref_absmax": 21.4202118, + "rel_max": 0.756321703, + "scaled_max_abs": 0.756321703 + } + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "int8", + "id": "resnet18__int8_clean__onnx_int8", + "model": "resnet18", + "path": "onnx", + "variant": "int8_clean" + }, + "verdict": "PASS" +} diff --git a/bench/verdicts_e2e_gated/resnet18__int8_override_layer2_0__onnx_int8.json b/bench/verdicts_e2e_gated/resnet18__int8_override_layer2_0__onnx_int8.json new file mode 100644 index 0000000000000000000000000000000000000000..3eecc37e6ee2a182f1e89d156fac642375b6f18d --- /dev/null +++ b/bench/verdicts_e2e_gated/resnet18__int8_override_layer2_0__onnx_int8.json @@ -0,0 +1,1138 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "reason": "first divergence at tap 4 is beyond the hypothesis taps (first 3) \u2014 interface faults surface earlier", + "status": "not_evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "status": "flag" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "int8", + "first_divergence": { + "artifact_tensor": "/net/layer2/layer2.0/relu_1/Relu_output_0_DequantizeLinear_Output", + "basis": "earliest tap over the int8 band", + "index": 4, + "neighbourhood": [ + { + "band_ratio": 0.135807233, + "index": 3, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.1/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_ratio": 26.5028639, + "index": 4, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.0/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.layer2.0" + }, + { + "band_ratio": 73.0934068, + "index": 5, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.1/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.layer2.1" + } + ], + "shape": 224, + "tap": "net.layer2.0" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "7de926f37c11546784f652b26b81beb3a728c9839b54c5456c6679e5dd3434c7", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "d2d4b332379417d49580abdf6fb8966a5b66a1f7c4db027b00684f7045d1dd44", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "int8 band on exciter probes", + "reason": "a statically quantised model is specified on its calibration distribution; exciter categories ['wide_range', 'near_zero', 'saturating'] are measured and reported per tap ('ungated_exciters') but do not gate" + }, + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D4", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.0, + "band_ratio": 86.2198073, + "metrics": { + "corr": 0.137801927, + "finite": true, + "max_abs": 12.0733271, + "mean_abs": 1.96501278, + "psnr_db": 17.5896473, + "ref_absmax": 12.6814899, + "rel_max": 0.952043263, + "scaled_max_abs": 0.952043263 + }, + "status": "fail", + "ungated_exciters": { + "band_ratio": 60.6339175, + "metrics": { + "corr": 0.393660825, + "finite": true, + "max_abs": 18.9954123, + "mean_abs": 2.0680042, + "psnr_db": 22.4008181, + "ref_absmax": 23.1216908, + "rel_max": 0.821540801, + "scaled_max_abs": 0.821540801 + } + }, + "worst_probe": { + "category": "natural", + "index": 12 + } + }, + "first_fail_index": 4, + "n_judged": 12, + "n_taps": 12, + "taps": [ + { + "band_ratio": 0.0358443598, + "index": 0, + "metrics": { + "corr": 0.99998378, + "finite": true, + "max_abs": 0.0093292594, + "mean_abs": 0.00466938237, + "psnr_db": 58.9115834, + "ref_absmax": 2.6400001, + "rel_max": 0.00353381024, + "scaled_max_abs": 0.00353381024 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "normalize", + "ungated_exciters": { + "band_ratio": 7.29207513, + "metrics": { + "corr": 0.927079249, + "finite": true, + "max_abs": 8.8980484, + "mean_abs": 0.355833548, + "psnr_db": 21.0584139, + "ref_absmax": 11.5288897, + "rel_max": 0.771804455, + "scaled_max_abs": 0.771804455 + } + } + }, + { + "band_ratio": 0.0482310906, + "index": 1, + "metrics": { + "corr": 0.999831103, + "finite": true, + "max_abs": 2.03511643, + "mean_abs": 0.00366043559, + "psnr_db": 56.3334583, + "ref_absmax": 5.70112419, + "rel_max": 0.356967567, + "scaled_max_abs": 0.356967567 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/maxpool/MaxPool_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.maxpool", + "ungated_exciters": { + "band_ratio": 14.6624269, + "metrics": { + "corr": 0.853375731, + "finite": true, + "max_abs": 7.26669967, + "mean_abs": 0.129063954, + "psnr_db": 26.4196535, + "ref_absmax": 9.23459816, + "rel_max": 0.786899391, + "scaled_max_abs": 0.786899391 + } + } + }, + { + "band_ratio": 0.0844290341, + "index": 2, + "metrics": { + "corr": 0.999617505, + "finite": true, + "max_abs": 2.07634306, + "mean_abs": 0.00875948984, + "psnr_db": 51.4701636, + "ref_absmax": 5.50518703, + "rel_max": 0.37716122, + "scaled_max_abs": 0.37716122 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.0/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.layer1.0", + "ungated_exciters": { + "band_ratio": 21.4696274, + "metrics": { + "corr": 0.785303726, + "finite": true, + "max_abs": 14.6099226, + "mean_abs": 0.151848385, + "psnr_db": 29.2025829, + "ref_absmax": 15.9116135, + "rel_max": 0.918192406, + "scaled_max_abs": 0.918192406 + } + } + }, + { + "band_ratio": 0.129862741, + "index": 3, + "metrics": { + "corr": 0.99914928, + "finite": true, + "max_abs": 2.17964602, + "mean_abs": 0.0153960685, + "psnr_db": 47.7303087, + "ref_absmax": 5.79480076, + "rel_max": 0.376138215, + "scaled_max_abs": 0.376138215 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.1/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.layer1.1", + "ungated_exciters": { + "band_ratio": 21.7283666, + "metrics": { + "corr": 0.782716334, + "finite": true, + "max_abs": 17.6264288, + "mean_abs": 0.186074637, + "psnr_db": 29.8971418, + "ref_absmax": 18.8193054, + "rel_max": 0.936614208, + "scaled_max_abs": 0.936614208 + } + } + }, + { + "band_ratio": 26.7466623, + "index": 4, + "metrics": { + "corr": 0.732533377, + "finite": true, + "max_abs": 4.03159636, + "mean_abs": 0.182851469, + "psnr_db": 24.2989659, + "ref_absmax": 4.28559637, + "rel_max": 0.940731701, + "scaled_max_abs": 0.940731701 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.0/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.layer2.0", + "ungated_exciters": { + "band_ratio": 47.687528, + "metrics": { + "corr": 0.52312472, + "finite": true, + "max_abs": 11.445645, + "mean_abs": 0.24441223, + "psnr_db": 28.7286332, + "ref_absmax": 11.699645, + "rel_max": 0.978289939, + "scaled_max_abs": 0.978289939 + } + }, + "worst_probe": { + "category": "natural", + "index": 13 + } + }, + { + "band_ratio": 72.4358786, + "index": 5, + "metrics": { + "corr": 0.275641214, + "finite": true, + "max_abs": 4.15331554, + "mean_abs": 0.174872656, + "psnr_db": 23.5689074, + "ref_absmax": 4.84292746, + "rel_max": 0.857604328, + "scaled_max_abs": 0.857604328 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.1/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.layer2.1", + "ungated_exciters": { + "band_ratio": 76.2130289, + "metrics": { + "corr": 0.237869711, + "finite": true, + "max_abs": 11.5185876, + "mean_abs": 0.221284881, + "psnr_db": 27.609154, + "ref_absmax": 11.623435, + "rel_max": 0.990979657, + "scaled_max_abs": 0.990979657 + } + }, + "worst_probe": { + "category": "natural", + "index": 3 + } + }, + { + "band_ratio": 71.2163102, + "index": 6, + "metrics": { + "corr": 0.287836898, + "finite": true, + "max_abs": 2.11884618, + "mean_abs": 0.113970598, + "psnr_db": 22.6010944, + "ref_absmax": 2.51875043, + "rel_max": 0.841229109, + "scaled_max_abs": 0.841229109 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.0/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.layer3.0", + "ungated_exciters": { + "band_ratio": 80.4194386, + "metrics": { + "corr": 0.195805614, + "finite": true, + "max_abs": 13.6912508, + "mean_abs": 0.18039991, + "psnr_db": 31.2996767, + "ref_absmax": 13.6912508, + "rel_max": 1.0, + "scaled_max_abs": 1.0 + } + }, + "worst_probe": { + "category": "natural", + "index": 6 + } + }, + { + "band_ratio": 65.8480764, + "index": 7, + "metrics": { + "corr": 0.341519236, + "finite": true, + "max_abs": 2.12562719, + "mean_abs": 0.121539299, + "psnr_db": 21.5109907, + "ref_absmax": 2.36873722, + "rel_max": 0.897367243, + "scaled_max_abs": 0.897367243 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.1/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.layer3.1", + "ungated_exciters": { + "band_ratio": 74.0681733, + "metrics": { + "corr": 0.259318267, + "finite": true, + "max_abs": 7.59017515, + "mean_abs": 0.196364244, + "psnr_db": 26.9016385, + "ref_absmax": 8.32911587, + "rel_max": 0.911282214, + "scaled_max_abs": 0.911282214 + } + }, + "worst_probe": { + "category": "natural", + "index": 6 + } + }, + { + "band_ratio": 80.1859625, + "index": 8, + "metrics": { + "corr": 0.198140375, + "finite": true, + "max_abs": 2.7839849, + "mean_abs": 0.0790623039, + "psnr_db": 22.9199126, + "ref_absmax": 2.7839849, + "rel_max": 1.0, + "scaled_max_abs": 1.0 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.0/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.layer4.0", + "ungated_exciters": { + "band_ratio": 74.5026825, + "metrics": { + "corr": 0.254973175, + "finite": true, + "max_abs": 5.81156236, + "mean_abs": 0.10006927, + "psnr_db": 27.2206991, + "ref_absmax": 6.10643864, + "rel_max": 0.951710597, + "scaled_max_abs": 0.951710597 + } + }, + "worst_probe": { + "category": "natural", + "index": 13 + } + }, + { + "band_ratio": 91.5996352, + "index": 9, + "metrics": { + "corr": 0.084003648, + "finite": true, + "max_abs": 14.1892548, + "mean_abs": 0.728628612, + "psnr_db": 21.1138837, + "ref_absmax": 14.1892548, + "rel_max": 1.0, + "scaled_max_abs": 1.0 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.1/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.layer4.1", + "ungated_exciters": { + "band_ratio": 85.2577901, + "metrics": { + "corr": 0.147422099, + "finite": true, + "max_abs": 16.3882303, + "mean_abs": 0.829652707, + "psnr_db": 21.2868005, + "ref_absmax": 17.7401104, + "rel_max": 0.923795284, + "scaled_max_abs": 0.923795284 + } + }, + "worst_probe": { + "category": "natural", + "index": 9 + } + }, + { + "band_ratio": 91.1358692, + "index": 10, + "metrics": { + "corr": 0.0886413077, + "finite": true, + "max_abs": 8.47060871, + "mean_abs": 0.648302205, + "psnr_db": 17.9681102, + "ref_absmax": 8.47060871, + "rel_max": 1.0, + "scaled_max_abs": 1.0 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_exciters": { + "band_ratio": 81.8820261, + "metrics": { + "corr": 0.181179739, + "finite": true, + "max_abs": 8.84010601, + "mean_abs": 0.762523268, + "psnr_db": 18.4882694, + "ref_absmax": 10.9076147, + "rel_max": 0.81045272, + "scaled_max_abs": 0.81045272 + } + }, + "worst_probe": { + "category": "natural", + "index": 5 + } + }, + { + "band_ratio": 86.2198073, + "index": 11, + "metrics": { + "corr": 0.137801927, + "finite": true, + "max_abs": 12.0733271, + "mean_abs": 1.96501278, + "psnr_db": 17.5896473, + "ref_absmax": 12.6814899, + "rel_max": 0.952043263, + "scaled_max_abs": 0.952043263 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc", + "ungated_exciters": { + "band_ratio": 60.6339175, + "metrics": { + "corr": 0.393660825, + "finite": true, + "max_abs": 18.9954123, + "mean_abs": 2.0680042, + "psnr_db": 22.4008181, + "ref_absmax": 23.1216908, + "rel_max": 0.821540801, + "scaled_max_abs": 0.821540801 + } + }, + "worst_probe": { + "category": "natural", + "index": 12 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.0, + "band_ratio": 86.0827488, + "metrics": { + "corr": 0.139172512, + "finite": true, + "max_abs": 12.6460721, + "mean_abs": 1.8971545, + "psnr_db": 18.4802157, + "ref_absmax": 14.0897207, + "rel_max": 0.897538879, + "scaled_max_abs": 0.897538879 + }, + "status": "fail", + "ungated_exciters": { + "band_ratio": 57.0998061, + "metrics": { + "corr": 0.429001939, + "finite": true, + "max_abs": 17.228682, + "mean_abs": 1.88790974, + "psnr_db": 22.8625347, + "ref_absmax": 21.4202118, + "rel_max": 0.80431894, + "scaled_max_abs": 0.80431894 + } + }, + "worst_probe": { + "category": "natural", + "index": 3 + } + }, + "first_fail_index": 4, + "n_judged": 12, + "n_taps": 12, + "taps": [ + { + "band_ratio": 0.0358761909, + "index": 0, + "metrics": { + "corr": 0.999983129, + "finite": true, + "max_abs": 0.009329319, + "mean_abs": 0.00467525361, + "psnr_db": 58.9038735, + "ref_absmax": 2.6400001, + "rel_max": 0.00353383281, + "scaled_max_abs": 0.00353383281 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "normalize", + "ungated_exciters": { + "band_ratio": 6.40507214, + "metrics": { + "corr": 0.935949279, + "finite": true, + "max_abs": 8.8980484, + "mean_abs": 0.346772095, + "psnr_db": 21.6136782, + "ref_absmax": 11.5288897, + "rel_max": 0.771804455, + "scaled_max_abs": 0.771804455 + } + } + }, + { + "band_ratio": 0.0532172206, + "index": 1, + "metrics": { + "corr": 0.999795316, + "finite": true, + "max_abs": 1.93546081, + "mean_abs": 0.00368054461, + "psnr_db": 55.4789562, + "ref_absmax": 5.61968946, + "rel_max": 0.344407074, + "scaled_max_abs": 0.344407074 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/maxpool/MaxPool_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.maxpool", + "ungated_exciters": { + "band_ratio": 14.6312979, + "metrics": { + "corr": 0.853687021, + "finite": true, + "max_abs": 6.58115673, + "mean_abs": 0.117088117, + "psnr_db": 26.5494759, + "ref_absmax": 8.40886307, + "rel_max": 0.782645249, + "scaled_max_abs": 0.782645249 + } + } + }, + { + "band_ratio": 0.082466578, + "index": 2, + "metrics": { + "corr": 0.999569075, + "finite": true, + "max_abs": 1.95160413, + "mean_abs": 0.00896771676, + "psnr_db": 51.6744405, + "ref_absmax": 5.90958405, + "rel_max": 0.330243908, + "scaled_max_abs": 0.330243908 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.0/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.layer1.0", + "ungated_exciters": { + "band_ratio": 21.8988193, + "metrics": { + "corr": 0.781011807, + "finite": true, + "max_abs": 15.9720588, + "mean_abs": 0.139643374, + "psnr_db": 30.5143074, + "ref_absmax": 17.0914841, + "rel_max": 0.934503915, + "scaled_max_abs": 0.934503915 + } + } + }, + { + "band_ratio": 0.135807233, + "index": 3, + "metrics": { + "corr": 0.999081462, + "finite": true, + "max_abs": 1.95893097, + "mean_abs": 0.0155577861, + "psnr_db": 47.341542, + "ref_absmax": 5.67319107, + "rel_max": 0.345296138, + "scaled_max_abs": 0.345296138 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.1/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.layer1.1", + "ungated_exciters": { + "band_ratio": 22.4041991, + "metrics": { + "corr": 0.775958009, + "finite": true, + "max_abs": 17.2605718, + "mean_abs": 0.174196078, + "psnr_db": 30.4383409, + "ref_absmax": 18.7614975, + "rel_max": 0.919999688, + "scaled_max_abs": 0.919999688 + } + } + }, + { + "band_ratio": 26.5028639, + "index": 4, + "metrics": { + "corr": 0.734971361, + "finite": true, + "max_abs": 4.10510319, + "mean_abs": 0.179601897, + "psnr_db": 24.6307739, + "ref_absmax": 4.3591032, + "rel_max": 0.941731132, + "scaled_max_abs": 0.941731132 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.0/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.layer2.0", + "ungated_exciters": { + "band_ratio": 47.1736527, + "metrics": { + "corr": 0.528263473, + "finite": true, + "max_abs": 10.8768613, + "mean_abs": 0.233568396, + "psnr_db": 28.8529377, + "ref_absmax": 11.1308613, + "rel_max": 0.977180561, + "scaled_max_abs": 0.977180561 + } + }, + "worst_probe": { + "category": "natural", + "index": 2 + } + }, + { + "band_ratio": 73.0934068, + "index": 5, + "metrics": { + "corr": 0.269065932, + "finite": true, + "max_abs": 4.80402702, + "mean_abs": 0.171925251, + "psnr_db": 24.5652976, + "ref_absmax": 5.38829708, + "rel_max": 0.891566844, + "scaled_max_abs": 0.891566844 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.1/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.layer2.1", + "ungated_exciters": { + "band_ratio": 75.11915, + "metrics": { + "corr": 0.2488085, + "finite": true, + "max_abs": 10.9209022, + "mean_abs": 0.210780896, + "psnr_db": 27.8053133, + "ref_absmax": 11.3773632, + "rel_max": 0.959879897, + "scaled_max_abs": 0.959879897 + } + }, + "worst_probe": { + "category": "natural", + "index": 2 + } + }, + { + "band_ratio": 71.355534, + "index": 6, + "metrics": { + "corr": 0.28644466, + "finite": true, + "max_abs": 1.59731477, + "mean_abs": 0.112489084, + "psnr_db": 20.7882416, + "ref_absmax": 2.02191901, + "rel_max": 0.789999384, + "scaled_max_abs": 0.789999384 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.0/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.layer3.0", + "ungated_exciters": { + "band_ratio": 77.8357963, + "metrics": { + "corr": 0.221642037, + "finite": true, + "max_abs": 11.930131, + "mean_abs": 0.173966943, + "psnr_db": 30.6244562, + "ref_absmax": 11.930131, + "rel_max": 1.0, + "scaled_max_abs": 1.0 + } + }, + "worst_probe": { + "category": "natural", + "index": 14 + } + }, + { + "band_ratio": 65.9465297, + "index": 7, + "metrics": { + "corr": 0.340534703, + "finite": true, + "max_abs": 1.71779013, + "mean_abs": 0.120832064, + "psnr_db": 19.7328389, + "ref_absmax": 1.92723012, + "rel_max": 0.891325903, + "scaled_max_abs": 0.891325903 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.1/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.layer3.1", + "ungated_exciters": { + "band_ratio": 70.8847764, + "metrics": { + "corr": 0.291152236, + "finite": true, + "max_abs": 6.95627403, + "mean_abs": 0.186529435, + "psnr_db": 25.9513797, + "ref_absmax": 6.95627403, + "rel_max": 1.0, + "scaled_max_abs": 1.0 + } + }, + "worst_probe": { + "category": "uniform", + "index": 18 + } + }, + { + "band_ratio": 80.0212716, + "index": 8, + "metrics": { + "corr": 0.199787284, + "finite": true, + "max_abs": 2.59620762, + "mean_abs": 0.0778758274, + "psnr_db": 22.323397, + "ref_absmax": 2.59620762, + "rel_max": 1.0, + "scaled_max_abs": 1.0 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.0/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.layer4.0", + "ungated_exciters": { + "band_ratio": 69.9494791, + "metrics": { + "corr": 0.300505209, + "finite": true, + "max_abs": 4.79327804, + "mean_abs": 0.0944743553, + "psnr_db": 25.7470568, + "ref_absmax": 4.8347578, + "rel_max": 0.991420508, + "scaled_max_abs": 0.991420508 + } + }, + "worst_probe": { + "category": "natural", + "index": 4 + } + }, + { + "band_ratio": 91.0123319, + "index": 9, + "metrics": { + "corr": 0.0898766812, + "finite": true, + "max_abs": 13.5174656, + "mean_abs": 0.694493347, + "psnr_db": 21.0274344, + "ref_absmax": 13.5174656, + "rel_max": 1.0, + "scaled_max_abs": 1.0 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.1/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.layer4.1", + "ungated_exciters": { + "band_ratio": 83.3976204, + "metrics": { + "corr": 0.166023796, + "finite": true, + "max_abs": 20.9663187, + "mean_abs": 0.758076265, + "psnr_db": 23.3356101, + "ref_absmax": 21.1679096, + "rel_max": 0.990476579, + "scaled_max_abs": 0.990476579 + } + }, + "worst_probe": { + "category": "natural", + "index": 12 + } + }, + { + "band_ratio": 89.3363343, + "index": 10, + "metrics": { + "corr": 0.106636657, + "finite": true, + "max_abs": 8.40718479, + "mean_abs": 0.609614463, + "psnr_db": 18.3834754, + "ref_absmax": 8.43813801, + "rel_max": 0.996331748, + "scaled_max_abs": 0.996331748 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_exciters": { + "band_ratio": 77.4863101, + "metrics": { + "corr": 0.225136899, + "finite": true, + "max_abs": 8.88109171, + "mean_abs": 0.683437075, + "psnr_db": 19.0739715, + "ref_absmax": 10.7073317, + "rel_max": 0.829440238, + "scaled_max_abs": 0.829440238 + } + }, + "worst_probe": { + "category": "natural", + "index": 7 + } + }, + { + "band_ratio": 86.0827488, + "index": 11, + "metrics": { + "corr": 0.139172512, + "finite": true, + "max_abs": 12.6460721, + "mean_abs": 1.8971545, + "psnr_db": 18.4802157, + "ref_absmax": 14.0897207, + "rel_max": 0.897538879, + "scaled_max_abs": 0.897538879 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc", + "ungated_exciters": { + "band_ratio": 57.0998061, + "metrics": { + "corr": 0.429001939, + "finite": true, + "max_abs": 17.228682, + "mean_abs": 1.88790974, + "psnr_db": 22.8625347, + "ref_absmax": 21.4202118, + "rel_max": 0.80431894, + "scaled_max_abs": 0.80431894 + } + }, + "worst_probe": { + "category": "natural", + "index": 3 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "int8", + "id": "resnet18__int8_override_layer2_0__onnx_int8", + "model": "resnet18", + "path": "onnx", + "variant": "int8_override_layer2_0" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/resnet18__int8_override_layer3_1__onnx_int8.json b/bench/verdicts_e2e_gated/resnet18__int8_override_layer3_1__onnx_int8.json new file mode 100644 index 0000000000000000000000000000000000000000..5f9389ca26400006f923035b35637d9218bef7b2 --- /dev/null +++ b/bench/verdicts_e2e_gated/resnet18__int8_override_layer3_1__onnx_int8.json @@ -0,0 +1,1114 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "reason": "first divergence at tap 7 is beyond the hypothesis taps (first 3) \u2014 interface faults surface earlier", + "status": "not_evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "status": "flag" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "int8", + "first_divergence": { + "artifact_tensor": "/net/layer3/layer3.1/relu_1/Relu_output_0_DequantizeLinear_Output", + "basis": "earliest tap over the int8 band", + "index": 7, + "neighbourhood": [ + { + "band_ratio": 0.198170776, + "index": 6, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.0/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.layer3.0" + }, + { + "band_ratio": 20.3238604, + "index": 7, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.1/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.layer3.1" + }, + { + "band_ratio": 76.349791, + "index": 8, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.0/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.layer4.0" + } + ], + "shape": 224, + "tap": "net.layer3.1" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "cc58b8209683c271ea0cbbbbdf2243a9e9868531223c3dd0ea5aaee3349e9d97", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "8a5e12b74bee34a41427921f840b03e2b288f89db4f9b9fb9b04a08c45472a5c", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "int8 band on exciter probes", + "reason": "a statically quantised model is specified on its calibration distribution; exciter categories ['wide_range', 'near_zero', 'saturating'] are measured and reported per tap ('ungated_exciters') but do not gate" + }, + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D4", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.0, + "band_ratio": 79.271989, + "metrics": { + "corr": 0.20728011, + "finite": true, + "max_abs": 13.2734901, + "mean_abs": 1.79355817, + "psnr_db": 18.4334279, + "ref_absmax": 12.6814899, + "rel_max": 1.04668222, + "scaled_max_abs": 1.04668222 + }, + "status": "fail", + "ungated_exciters": { + "band_ratio": 112.866318, + "metrics": { + "corr": -0.128663177, + "finite": true, + "max_abs": 24.3119633, + "mean_abs": 2.49015203, + "psnr_db": 20.6447628, + "ref_absmax": 23.1216908, + "rel_max": 1.05147861, + "scaled_max_abs": 1.05147861 + } + }, + "worst_probe": { + "category": "natural", + "index": 12 + } + }, + "first_fail_index": 7, + "n_judged": 12, + "n_taps": 12, + "taps": [ + { + "band_ratio": 0.0358443598, + "index": 0, + "metrics": { + "corr": 0.99998378, + "finite": true, + "max_abs": 0.0093292594, + "mean_abs": 0.00466938237, + "psnr_db": 58.9115834, + "ref_absmax": 2.6400001, + "rel_max": 0.00353381024, + "scaled_max_abs": 0.00353381024 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "normalize", + "ungated_exciters": { + "band_ratio": 7.29207513, + "metrics": { + "corr": 0.927079249, + "finite": true, + "max_abs": 8.8980484, + "mean_abs": 0.355833548, + "psnr_db": 21.0584139, + "ref_absmax": 11.5288897, + "rel_max": 0.771804455, + "scaled_max_abs": 0.771804455 + } + } + }, + { + "band_ratio": 0.0482310906, + "index": 1, + "metrics": { + "corr": 0.999831103, + "finite": true, + "max_abs": 2.03511643, + "mean_abs": 0.00366043559, + "psnr_db": 56.3334583, + "ref_absmax": 5.70112419, + "rel_max": 0.356967567, + "scaled_max_abs": 0.356967567 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/maxpool/MaxPool_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.maxpool", + "ungated_exciters": { + "band_ratio": 14.6624269, + "metrics": { + "corr": 0.853375731, + "finite": true, + "max_abs": 7.26669967, + "mean_abs": 0.129063954, + "psnr_db": 26.4196535, + "ref_absmax": 9.23459816, + "rel_max": 0.786899391, + "scaled_max_abs": 0.786899391 + } + } + }, + { + "band_ratio": 0.0844290341, + "index": 2, + "metrics": { + "corr": 0.999617505, + "finite": true, + "max_abs": 2.07634306, + "mean_abs": 0.00875948984, + "psnr_db": 51.4701636, + "ref_absmax": 5.50518703, + "rel_max": 0.37716122, + "scaled_max_abs": 0.37716122 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.0/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.layer1.0", + "ungated_exciters": { + "band_ratio": 21.4696274, + "metrics": { + "corr": 0.785303726, + "finite": true, + "max_abs": 14.6099226, + "mean_abs": 0.151848385, + "psnr_db": 29.2025829, + "ref_absmax": 15.9116135, + "rel_max": 0.918192406, + "scaled_max_abs": 0.918192406 + } + } + }, + { + "band_ratio": 0.129862741, + "index": 3, + "metrics": { + "corr": 0.99914928, + "finite": true, + "max_abs": 2.17964602, + "mean_abs": 0.0153960685, + "psnr_db": 47.7303087, + "ref_absmax": 5.79480076, + "rel_max": 0.376138215, + "scaled_max_abs": 0.376138215 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.1/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.layer1.1", + "ungated_exciters": { + "band_ratio": 21.7283666, + "metrics": { + "corr": 0.782716334, + "finite": true, + "max_abs": 17.6264288, + "mean_abs": 0.186074637, + "psnr_db": 29.8971418, + "ref_absmax": 18.8193054, + "rel_max": 0.936614208, + "scaled_max_abs": 0.936614208 + } + } + }, + { + "band_ratio": 0.151602313, + "index": 4, + "metrics": { + "corr": 0.998483977, + "finite": true, + "max_abs": 0.488729, + "mean_abs": 0.00869818132, + "psnr_db": 48.912436, + "ref_absmax": 4.28559637, + "rel_max": 0.114039904, + "scaled_max_abs": 0.114039904 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.0/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.layer2.0", + "ungated_exciters": { + "band_ratio": 17.1226155, + "metrics": { + "corr": 0.828773845, + "finite": true, + "max_abs": 10.4215281, + "mean_abs": 0.0647647565, + "psnr_db": 33.7192985, + "ref_absmax": 11.699645, + "rel_max": 0.890755921, + "scaled_max_abs": 0.890755921 + } + } + }, + { + "band_ratio": 0.204819364, + "index": 5, + "metrics": { + "corr": 0.997951806, + "finite": true, + "max_abs": 0.531787157, + "mean_abs": 0.00960257109, + "psnr_db": 48.9155166, + "ref_absmax": 4.84292746, + "rel_max": 0.109806963, + "scaled_max_abs": 0.109806963 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.1/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.layer2.1", + "ungated_exciters": { + "band_ratio": 19.7365402, + "metrics": { + "corr": 0.802634598, + "finite": true, + "max_abs": 10.2429446, + "mean_abs": 0.0741306461, + "psnr_db": 32.7470413, + "ref_absmax": 11.623435, + "rel_max": 0.881232147, + "scaled_max_abs": 0.881232147 + } + } + }, + { + "band_ratio": 0.200555973, + "index": 6, + "metrics": { + "corr": 0.99799444, + "finite": true, + "max_abs": 0.252626419, + "mean_abs": 0.00538762579, + "psnr_db": 47.9944608, + "ref_absmax": 2.51875043, + "rel_max": 0.100298313, + "scaled_max_abs": 0.100298313 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.0/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.layer3.0", + "ungated_exciters": { + "band_ratio": 27.9939106, + "metrics": { + "corr": 0.720060894, + "finite": true, + "max_abs": 13.6023832, + "mean_abs": 0.0548351638, + "psnr_db": 34.845871, + "ref_absmax": 13.6912508, + "rel_max": 0.993509168, + "scaled_max_abs": 0.993509168 + } + } + }, + { + "band_ratio": 20.5760078, + "index": 7, + "metrics": { + "corr": 0.794239922, + "finite": true, + "max_abs": 2.11473721, + "mean_abs": 0.106132141, + "psnr_db": 23.9401951, + "ref_absmax": 2.36873722, + "rel_max": 0.892769867, + "scaled_max_abs": 0.892769867 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.1/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.layer3.1", + "ungated_exciters": { + "band_ratio": 45.3726235, + "metrics": { + "corr": 0.546273765, + "finite": true, + "max_abs": 8.07511586, + "mean_abs": 0.220888381, + "psnr_db": 27.2675292, + "ref_absmax": 8.32911587, + "rel_max": 0.969504565, + "scaled_max_abs": 0.969504565 + } + }, + "worst_probe": { + "category": "natural", + "index": 6 + } + }, + { + "band_ratio": 75.7941453, + "index": 8, + "metrics": { + "corr": 0.242058547, + "finite": true, + "max_abs": 2.67719388, + "mean_abs": 0.060055506, + "psnr_db": 23.5546303, + "ref_absmax": 2.7839849, + "rel_max": 0.961640949, + "scaled_max_abs": 0.961640949 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.0/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.layer4.0", + "ungated_exciters": { + "band_ratio": 85.4099736, + "metrics": { + "corr": 0.145900264, + "finite": true, + "max_abs": 6.10643864, + "mean_abs": 0.0881225657, + "psnr_db": 26.7801997, + "ref_absmax": 6.10643864, + "rel_max": 1.0, + "scaled_max_abs": 1.0 + } + }, + "worst_probe": { + "category": "natural", + "index": 6 + } + }, + { + "band_ratio": 89.0052691, + "index": 9, + "metrics": { + "corr": 0.109947309, + "finite": true, + "max_abs": 13.6314564, + "mean_abs": 0.77810653, + "psnr_db": 20.8953034, + "ref_absmax": 14.1892548, + "rel_max": 0.960688676, + "scaled_max_abs": 0.960688676 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.1/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.layer4.1", + "ungated_exciters": { + "band_ratio": 91.2469681, + "metrics": { + "corr": 0.0875303194, + "finite": true, + "max_abs": 17.6652718, + "mean_abs": 0.876472473, + "psnr_db": 21.3844608, + "ref_absmax": 17.7401104, + "rel_max": 0.995781388, + "scaled_max_abs": 0.995781388 + } + }, + "worst_probe": { + "category": "natural", + "index": 5 + } + }, + { + "band_ratio": 87.4395591, + "index": 10, + "metrics": { + "corr": 0.125604409, + "finite": true, + "max_abs": 8.36194408, + "mean_abs": 0.685032754, + "psnr_db": 17.9982246, + "ref_absmax": 8.47060871, + "rel_max": 0.987171568, + "scaled_max_abs": 0.987171568 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_exciters": { + "band_ratio": 91.6246417, + "metrics": { + "corr": 0.0837535826, + "finite": true, + "max_abs": 10.3587814, + "mean_abs": 0.801720946, + "psnr_db": 18.4255284, + "ref_absmax": 10.9076147, + "rel_max": 0.949683468, + "scaled_max_abs": 0.949683468 + } + }, + "worst_probe": { + "category": "natural", + "index": 11 + } + }, + { + "band_ratio": 79.271989, + "index": 11, + "metrics": { + "corr": 0.20728011, + "finite": true, + "max_abs": 13.2734901, + "mean_abs": 1.79355817, + "psnr_db": 18.4334279, + "ref_absmax": 12.6814899, + "rel_max": 1.04668222, + "scaled_max_abs": 1.04668222 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc", + "ungated_exciters": { + "band_ratio": 112.866318, + "metrics": { + "corr": -0.128663177, + "finite": true, + "max_abs": 24.3119633, + "mean_abs": 2.49015203, + "psnr_db": 20.6447628, + "ref_absmax": 23.1216908, + "rel_max": 1.05147861, + "scaled_max_abs": 1.05147861 + } + }, + "worst_probe": { + "category": "natural", + "index": 12 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.0, + "band_ratio": 81.2164451, + "metrics": { + "corr": 0.187835549, + "finite": true, + "max_abs": 14.6232089, + "mean_abs": 1.80331963, + "psnr_db": 18.9756059, + "ref_absmax": 14.0897207, + "rel_max": 1.03786364, + "scaled_max_abs": 1.03786364 + }, + "status": "fail", + "ungated_exciters": { + "band_ratio": 115.944423, + "metrics": { + "corr": -0.159444231, + "finite": true, + "max_abs": 22.7646648, + "mean_abs": 2.39636448, + "psnr_db": 20.7534217, + "ref_absmax": 21.4202118, + "rel_max": 1.06276562, + "scaled_max_abs": 1.06276562 + } + }, + "worst_probe": { + "category": "natural", + "index": 3 + } + }, + "first_fail_index": 7, + "n_judged": 12, + "n_taps": 12, + "taps": [ + { + "band_ratio": 0.0358761909, + "index": 0, + "metrics": { + "corr": 0.999983129, + "finite": true, + "max_abs": 0.009329319, + "mean_abs": 0.00467525361, + "psnr_db": 58.9038735, + "ref_absmax": 2.6400001, + "rel_max": 0.00353383281, + "scaled_max_abs": 0.00353383281 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "normalize", + "ungated_exciters": { + "band_ratio": 6.40507214, + "metrics": { + "corr": 0.935949279, + "finite": true, + "max_abs": 8.8980484, + "mean_abs": 0.346772095, + "psnr_db": 21.6136782, + "ref_absmax": 11.5288897, + "rel_max": 0.771804455, + "scaled_max_abs": 0.771804455 + } + } + }, + { + "band_ratio": 0.0532172206, + "index": 1, + "metrics": { + "corr": 0.999795316, + "finite": true, + "max_abs": 1.93546081, + "mean_abs": 0.00368054461, + "psnr_db": 55.4789562, + "ref_absmax": 5.61968946, + "rel_max": 0.344407074, + "scaled_max_abs": 0.344407074 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/maxpool/MaxPool_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.maxpool", + "ungated_exciters": { + "band_ratio": 14.6312979, + "metrics": { + "corr": 0.853687021, + "finite": true, + "max_abs": 6.58115673, + "mean_abs": 0.117088117, + "psnr_db": 26.5494759, + "ref_absmax": 8.40886307, + "rel_max": 0.782645249, + "scaled_max_abs": 0.782645249 + } + } + }, + { + "band_ratio": 0.082466578, + "index": 2, + "metrics": { + "corr": 0.999569075, + "finite": true, + "max_abs": 1.95160413, + "mean_abs": 0.00896771676, + "psnr_db": 51.6744405, + "ref_absmax": 5.90958405, + "rel_max": 0.330243908, + "scaled_max_abs": 0.330243908 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.0/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.layer1.0", + "ungated_exciters": { + "band_ratio": 21.8988193, + "metrics": { + "corr": 0.781011807, + "finite": true, + "max_abs": 15.9720588, + "mean_abs": 0.139643374, + "psnr_db": 30.5143074, + "ref_absmax": 17.0914841, + "rel_max": 0.934503915, + "scaled_max_abs": 0.934503915 + } + } + }, + { + "band_ratio": 0.135807233, + "index": 3, + "metrics": { + "corr": 0.999081462, + "finite": true, + "max_abs": 1.95893097, + "mean_abs": 0.0155577861, + "psnr_db": 47.341542, + "ref_absmax": 5.67319107, + "rel_max": 0.345296138, + "scaled_max_abs": 0.345296138 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.1/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.layer1.1", + "ungated_exciters": { + "band_ratio": 22.4041991, + "metrics": { + "corr": 0.775958009, + "finite": true, + "max_abs": 17.2605718, + "mean_abs": 0.174196078, + "psnr_db": 30.4383409, + "ref_absmax": 18.7614975, + "rel_max": 0.919999688, + "scaled_max_abs": 0.919999688 + } + } + }, + { + "band_ratio": 0.15958682, + "index": 4, + "metrics": { + "corr": 0.998404132, + "finite": true, + "max_abs": 0.487756014, + "mean_abs": 0.00871887461, + "psnr_db": 49.0152273, + "ref_absmax": 4.3591032, + "rel_max": 0.111893661, + "scaled_max_abs": 0.111893661 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.0/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.layer2.0", + "ungated_exciters": { + "band_ratio": 17.300082, + "metrics": { + "corr": 0.82699918, + "finite": true, + "max_abs": 9.779015, + "mean_abs": 0.061816853, + "psnr_db": 33.8079432, + "ref_absmax": 11.1308613, + "rel_max": 0.878549715, + "scaled_max_abs": 0.878549715 + } + } + }, + { + "band_ratio": 0.221898783, + "index": 5, + "metrics": { + "corr": 0.997781012, + "finite": true, + "max_abs": 0.732395172, + "mean_abs": 0.00968365857, + "psnr_db": 49.7289044, + "ref_absmax": 5.38829708, + "rel_max": 0.13592331, + "scaled_max_abs": 0.13592331 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.1/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.layer2.1", + "ungated_exciters": { + "band_ratio": 19.5652226, + "metrics": { + "corr": 0.804347774, + "finite": true, + "max_abs": 9.97796714, + "mean_abs": 0.0689390396, + "psnr_db": 33.1760823, + "ref_absmax": 11.3773632, + "rel_max": 0.877001724, + "scaled_max_abs": 0.877001724 + } + } + }, + { + "band_ratio": 0.198170776, + "index": 6, + "metrics": { + "corr": 0.998018292, + "finite": true, + "max_abs": 0.196071982, + "mean_abs": 0.00522887392, + "psnr_db": 46.3315576, + "ref_absmax": 2.02191901, + "rel_max": 0.0969732127, + "scaled_max_abs": 0.0969732127 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.0/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.layer3.0", + "ungated_exciters": { + "band_ratio": 26.4300441, + "metrics": { + "corr": 0.735699559, + "finite": true, + "max_abs": 11.6338164, + "mean_abs": 0.0514559883, + "psnr_db": 34.4312391, + "ref_absmax": 11.930131, + "rel_max": 0.975162505, + "scaled_max_abs": 0.975162505 + } + } + }, + { + "band_ratio": 20.3238604, + "index": 7, + "metrics": { + "corr": 0.796761396, + "finite": true, + "max_abs": 1.67323011, + "mean_abs": 0.104077651, + "psnr_db": 22.299971, + "ref_absmax": 1.92723012, + "rel_max": 0.868204629, + "scaled_max_abs": 0.868204629 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.1/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.layer3.1", + "ungated_exciters": { + "band_ratio": 44.0849019, + "metrics": { + "corr": 0.559150981, + "finite": true, + "max_abs": 6.70227402, + "mean_abs": 0.205161383, + "psnr_db": 26.3823591, + "ref_absmax": 6.95627403, + "rel_max": 0.963486199, + "scaled_max_abs": 0.963486199 + } + }, + "worst_probe": { + "category": "uniform", + "index": 18 + } + }, + { + "band_ratio": 76.349791, + "index": 8, + "metrics": { + "corr": 0.23650209, + "finite": true, + "max_abs": 2.59620762, + "mean_abs": 0.0572242366, + "psnr_db": 23.2165463, + "ref_absmax": 2.59620762, + "rel_max": 1.0, + "scaled_max_abs": 1.0 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.0/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.layer4.0", + "ungated_exciters": { + "band_ratio": 85.9977386, + "metrics": { + "corr": 0.140022614, + "finite": true, + "max_abs": 4.8347578, + "mean_abs": 0.0844608379, + "psnr_db": 25.2077672, + "ref_absmax": 4.8347578, + "rel_max": 1.0, + "scaled_max_abs": 1.0 + } + }, + "worst_probe": { + "category": "natural", + "index": 4 + } + }, + { + "band_ratio": 90.1767119, + "index": 9, + "metrics": { + "corr": 0.098232881, + "finite": true, + "max_abs": 12.8514214, + "mean_abs": 0.778805907, + "psnr_db": 20.4894108, + "ref_absmax": 13.5174656, + "rel_max": 0.950727137, + "scaled_max_abs": 0.950727137 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.1/relu_1/Relu_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.layer4.1", + "ungated_exciters": { + "band_ratio": 92.9745073, + "metrics": { + "corr": 0.0702549271, + "finite": true, + "max_abs": 20.9663187, + "mean_abs": 0.846181405, + "psnr_db": 23.2995141, + "ref_absmax": 21.1679096, + "rel_max": 0.990476579, + "scaled_max_abs": 0.990476579 + } + }, + "worst_probe": { + "category": "natural", + "index": 13 + } + }, + { + "band_ratio": 88.9928452, + "index": 10, + "metrics": { + "corr": 0.110071548, + "finite": true, + "max_abs": 7.38279459, + "mean_abs": 0.688981889, + "psnr_db": 17.9298829, + "ref_absmax": 8.43813801, + "rel_max": 0.874931719, + "scaled_max_abs": 0.874931719 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.avgpool", + "ungated_exciters": { + "band_ratio": 92.9788048, + "metrics": { + "corr": 0.070211952, + "finite": true, + "max_abs": 10.4906591, + "mean_abs": 0.765267126, + "psnr_db": 18.8074157, + "ref_absmax": 10.7073317, + "rel_max": 0.979764096, + "scaled_max_abs": 0.979764096 + } + }, + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_ratio": 81.2164451, + "index": 11, + "metrics": { + "corr": 0.187835549, + "finite": true, + "max_abs": 14.6232089, + "mean_abs": 1.80331963, + "psnr_db": 18.9756059, + "ref_absmax": 14.0897207, + "rel_max": 1.03786364, + "scaled_max_abs": 1.03786364 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc", + "ungated_exciters": { + "band_ratio": 115.944423, + "metrics": { + "corr": -0.159444231, + "finite": true, + "max_abs": 22.7646648, + "mean_abs": 2.39636448, + "psnr_db": 20.7534217, + "ref_absmax": 21.4202118, + "rel_max": 1.06276562, + "scaled_max_abs": 1.06276562 + } + }, + "worst_probe": { + "category": "natural", + "index": 3 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "int8", + "id": "resnet18__int8_override_layer3_1__onnx_int8", + "model": "resnet18", + "path": "onnx", + "variant": "int8_override_layer3_1" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/resnet18__layout_swap__coreml_fp16.json b/bench/verdicts_e2e_gated/resnet18__layout_swap__coreml_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..67d2bcce028bdd035c15dac9f7cbabd1e25a86af --- /dev/null +++ b/bench/verdicts_e2e_gated/resnet18__layout_swap__coreml_fp16.json @@ -0,0 +1,784 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "reason": "first divergence at tap 6 is beyond the hypothesis taps (first 3) \u2014 interface faults surface earlier", + "status": "not_evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [ + "inputs[0]: dtype float16 (declared float32)", + "outputs[0]: dtype float16 (declared float32)" + ], + "status": "precision_narrowing" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "input_73_cast_fp16", + "basis": "earliest tap over band with in-band predecessors", + "index": 6, + "neighbourhood": [ + { + "band_ratio": 0.605789942, + "index": 5, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59_cast_fp16" + }, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_ratio": 58.7031738, + "index": 6, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_73_cast_fp16" + }, + "status": "fail", + "tap": "net.layer3.0" + }, + { + "band_ratio": 90.9737548, + "index": 7, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85_cast_fp16" + }, + "status": "fail", + "tap": "net.layer3.1" + } + ], + "shape": 224, + "tap": "net.layer3.0" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "eaf2e124e75aa45fc6cf2f94547620ff8286286a6887e558844b0c0cbb654a29", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "c502813321481c68d68adb6b3c94f4ba9321c5ba2cada6dce620979d75c37a75", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D2", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.96875, + "band_ratio": 16.032774, + "metrics": { + "corr": 0.979872074, + "finite": true, + "max_abs": 3.70704842, + "mean_abs": 0.359068227, + "psnr_db": 37.7142844, + "ref_absmax": 23.1216908, + "rel_max": 0.16032774, + "scaled_max_abs": 0.16032774 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 14 + } + }, + "first_fail_index": 6, + "n_judged": 12, + "n_taps": 12, + "taps": [ + { + "band_ratio": 0.117570499, + "index": 0, + "metrics": { + "corr": 0.999999914, + "finite": true, + "max_abs": 0.0135545731, + "mean_abs": 0.000674526699, + "psnr_db": 83.5827466, + "ref_absmax": 11.5288897, + "rel_max": 0.00117570499, + "scaled_max_abs": 0.00117570499 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.459322342, + "index": 1, + "metrics": { + "corr": 0.999996447, + "finite": true, + "max_abs": 0.0424165726, + "mean_abs": 0.000952223367, + "psnr_db": 75.0364552, + "ref_absmax": 9.23459816, + "rel_max": 0.00459322342, + "scaled_max_abs": 0.00459322342 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_9_cast_fp16" + }, + "status": "pass", + "tap": "net.maxpool" + }, + { + "band_ratio": 0.480211137, + "index": 2, + "metrics": { + "corr": 0.99998717, + "finite": true, + "max_abs": 0.0764093399, + "mean_abs": 0.00215436701, + "psnr_db": 73.3099338, + "ref_absmax": 15.9116135, + "rel_max": 0.00480211137, + "scaled_max_abs": 0.00480211137 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_21_cast_fp16" + }, + "status": "pass", + "tap": "net.layer1.0" + }, + { + "band_ratio": 0.441904939, + "index": 3, + "metrics": { + "corr": 0.999962955, + "finite": true, + "max_abs": 0.0831634402, + "mean_abs": 0.0038022016, + "psnr_db": 69.3862926, + "ref_absmax": 18.8193054, + "rel_max": 0.00441904939, + "scaled_max_abs": 0.00441904939 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_33_cast_fp16" + }, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_ratio": 0.482464821, + "index": 4, + "metrics": { + "corr": 0.999939928, + "finite": true, + "max_abs": 0.0564466715, + "mean_abs": 0.00186217433, + "psnr_db": 69.8477445, + "ref_absmax": 11.699645, + "rel_max": 0.00482464821, + "scaled_max_abs": 0.00482464821 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_47_cast_fp16" + }, + "status": "pass", + "tap": "net.layer2.0" + }, + { + "band_ratio": 0.589862113, + "index": 5, + "metrics": { + "corr": 0.999930102, + "finite": true, + "max_abs": 0.0685622394, + "mean_abs": 0.00200145403, + "psnr_db": 69.0183736, + "ref_absmax": 11.623435, + "rel_max": 0.00589862113, + "scaled_max_abs": 0.00589862113 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59_cast_fp16" + }, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_ratio": 59.6704433, + "index": 6, + "metrics": { + "corr": 0.78702808, + "finite": true, + "max_abs": 8.16963005, + "mean_abs": 0.0783052772, + "psnr_db": 38.4318167, + "ref_absmax": 13.6912508, + "rel_max": 0.596704433, + "scaled_max_abs": 0.596704433 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_73_cast_fp16" + }, + "status": "fail", + "tap": "net.layer3.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 62.2898273, + "index": 7, + "metrics": { + "corr": 0.812570484, + "finite": true, + "max_abs": 5.18819189, + "mean_abs": 0.0752729354, + "psnr_db": 34.4671678, + "ref_absmax": 8.32911587, + "rel_max": 0.622898273, + "scaled_max_abs": 0.622898273 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85_cast_fp16" + }, + "status": "fail", + "tap": "net.layer3.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 69.4273631, + "index": 8, + "metrics": { + "corr": 0.842961995, + "finite": true, + "max_abs": 4.23953933, + "mean_abs": 0.0360373837, + "psnr_db": 35.6966499, + "ref_absmax": 6.10643864, + "rel_max": 0.694273631, + "scaled_max_abs": 0.694273631 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_99_cast_fp16" + }, + "status": "fail", + "tap": "net.layer4.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 45.447857, + "index": 9, + "metrics": { + "corr": 0.901776671, + "finite": true, + "max_abs": 8.0625, + "mean_abs": 0.239852237, + "psnr_db": 31.0647086, + "ref_absmax": 17.7401104, + "rel_max": 0.45447857, + "scaled_max_abs": 0.45447857 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_111_cast_fp16" + }, + "status": "fail", + "tap": "net.layer4.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 17.1153996, + "index": 10, + "metrics": { + "corr": 0.974885732, + "finite": true, + "max_abs": 1.86688185, + "mean_abs": 0.127072442, + "psnr_db": 33.9176042, + "ref_absmax": 10.9076147, + "rel_max": 0.171153996, + "scaled_max_abs": 0.171153996 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 16.032774, + "index": 11, + "metrics": { + "corr": 0.979872074, + "finite": true, + "max_abs": 3.70704842, + "mean_abs": 0.359068227, + "psnr_db": 37.7142844, + "ref_absmax": 23.1216908, + "rel_max": 0.16032774, + "scaled_max_abs": 0.16032774 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "natural", + "index": 14 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 14.918816, + "metrics": { + "corr": 0.985220754, + "finite": true, + "max_abs": 3.19564199, + "mean_abs": 0.299790121, + "psnr_db": 39.0985069, + "ref_absmax": 21.4202118, + "rel_max": 0.14918816, + "scaled_max_abs": 0.14918816 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 6, + "n_judged": 12, + "n_taps": 12, + "taps": [ + { + "band_ratio": 0.116213884, + "index": 0, + "metrics": { + "corr": 0.999999912, + "finite": true, + "max_abs": 0.0133981705, + "mean_abs": 0.000679588388, + "psnr_db": 83.6184843, + "ref_absmax": 11.5288897, + "rel_max": 0.00116213884, + "scaled_max_abs": 0.00116213884 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.430958027, + "index": 1, + "metrics": { + "corr": 0.999996278, + "finite": true, + "max_abs": 0.0362386703, + "mean_abs": 0.000924325333, + "psnr_db": 74.6037105, + "ref_absmax": 8.40886307, + "rel_max": 0.00430958027, + "scaled_max_abs": 0.00430958027 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_9_cast_fp16" + }, + "status": "pass", + "tap": "net.maxpool" + }, + { + "band_ratio": 0.384801236, + "index": 2, + "metrics": { + "corr": 0.999985791, + "finite": true, + "max_abs": 0.0657682419, + "mean_abs": 0.00216025527, + "psnr_db": 73.9813907, + "ref_absmax": 17.0914841, + "rel_max": 0.00384801236, + "scaled_max_abs": 0.00384801236 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_21_cast_fp16" + }, + "status": "pass", + "tap": "net.layer1.0" + }, + { + "band_ratio": 0.48244139, + "index": 3, + "metrics": { + "corr": 0.999957868, + "finite": true, + "max_abs": 0.0905132294, + "mean_abs": 0.003858105, + "psnr_db": 69.2665621, + "ref_absmax": 18.7614975, + "rel_max": 0.0048244139, + "scaled_max_abs": 0.0048244139 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_33_cast_fp16" + }, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_ratio": 0.485763828, + "index": 4, + "metrics": { + "corr": 0.999932954, + "finite": true, + "max_abs": 0.0540696979, + "mean_abs": 0.00188201915, + "psnr_db": 69.3375532, + "ref_absmax": 11.1308613, + "rel_max": 0.00485763828, + "scaled_max_abs": 0.00485763828 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_47_cast_fp16" + }, + "status": "pass", + "tap": "net.layer2.0" + }, + { + "band_ratio": 0.605789942, + "index": 5, + "metrics": { + "corr": 0.999922136, + "finite": true, + "max_abs": 0.068922922, + "mean_abs": 0.0019962136, + "psnr_db": 68.8164661, + "ref_absmax": 11.3773632, + "rel_max": 0.00605789942, + "scaled_max_abs": 0.00605789942 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59_cast_fp16" + }, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_ratio": 58.7031738, + "index": 6, + "metrics": { + "corr": 0.771701166, + "finite": true, + "max_abs": 7.00336552, + "mean_abs": 0.0771485356, + "psnr_db": 37.4091892, + "ref_absmax": 11.930131, + "rel_max": 0.587031738, + "scaled_max_abs": 0.587031738 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_73_cast_fp16" + }, + "status": "fail", + "tap": "net.layer3.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 90.9737548, + "index": 7, + "metrics": { + "corr": 0.797871027, + "finite": true, + "max_abs": 6.32838368, + "mean_abs": 0.0746700682, + "psnr_db": 33.0706705, + "ref_absmax": 6.95627403, + "rel_max": 0.909737548, + "scaled_max_abs": 0.909737548 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85_cast_fp16" + }, + "status": "fail", + "tap": "net.layer3.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 67.636474, + "index": 8, + "metrics": { + "corr": 0.830649402, + "finite": true, + "max_abs": 3.2700597, + "mean_abs": 0.0346673696, + "psnr_db": 33.9550549, + "ref_absmax": 4.8347578, + "rel_max": 0.67636474, + "scaled_max_abs": 0.67636474 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_99_cast_fp16" + }, + "status": "fail", + "tap": "net.layer4.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 32.0067812, + "index": 9, + "metrics": { + "corr": 0.912635746, + "finite": true, + "max_abs": 6.77516651, + "mean_abs": 0.224014237, + "psnr_db": 33.3986241, + "ref_absmax": 21.1679096, + "rel_max": 0.320067812, + "scaled_max_abs": 0.320067812 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_111_cast_fp16" + }, + "status": "fail", + "tap": "net.layer4.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 19.093243, + "index": 10, + "metrics": { + "corr": 0.980674176, + "finite": true, + "max_abs": 2.04437685, + "mean_abs": 0.106152955, + "psnr_db": 35.2947052, + "ref_absmax": 10.7073317, + "rel_max": 0.19093243, + "scaled_max_abs": 0.19093243 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 14.918816, + "index": 11, + "metrics": { + "corr": 0.985220754, + "finite": true, + "max_abs": 3.19564199, + "mean_abs": 0.299790121, + "psnr_db": 39.0985069, + "ref_absmax": 21.4202118, + "rel_max": 0.14918816, + "scaled_max_abs": 0.14918816 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp16", + "id": "resnet18__layout_swap__coreml_fp16", + "model": "resnet18", + "path": "coreml", + "variant": "layout_swap" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/resnet18__layout_swap__coreml_fp32.json b/bench/verdicts_e2e_gated/resnet18__layout_swap__coreml_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..af1045a11a40c126a7900bced078cded3b7c7d48 --- /dev/null +++ b/bench/verdicts_e2e_gated/resnet18__layout_swap__coreml_fp32.json @@ -0,0 +1,781 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "reason": "first divergence at tap 6 is beyond the hypothesis taps (first 3) \u2014 interface faults surface earlier", + "status": "not_evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "input_73", + "basis": "earliest tap over band with in-band predecessors", + "index": 6, + "neighbourhood": [ + { + "band_ratio": 0.0120134076, + "index": 5, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59" + }, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_ratio": 5866.5427, + "index": 6, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_73" + }, + "status": "fail", + "tap": "net.layer3.0" + }, + { + "band_ratio": 9127.51731, + "index": 7, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85" + }, + "status": "fail", + "tap": "net.layer3.1" + } + ], + "shape": 224, + "tap": "net.layer3.0" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "132c5418301bacf600baa56c51ffeac059c5b9b403f24df7006f5897567dd94e", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "1a18acbc527992a3ebd33621af5a2b169e67f8e98de36f74f2472812c89c7ae0", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D2", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.96875, + "band_ratio": 1604.40181, + "metrics": { + "corr": 0.979812701, + "finite": true, + "max_abs": 3.70964825, + "mean_abs": 0.359818623, + "psnr_db": 37.7016541, + "ref_absmax": 23.1216908, + "rel_max": 0.160440181, + "scaled_max_abs": 0.160440181 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 14 + } + }, + "first_fail_index": 6, + "n_judged": 12, + "n_taps": 12, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.26638033e-08, + "psnr_db": 163.904618, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.00671267222, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.19888306e-06, + "mean_abs": 1.42858947e-07, + "psnr_db": 151.281443, + "ref_absmax": 9.23459816, + "rel_max": 6.71267222e-07, + "scaled_max_abs": 6.71267222e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_9" + }, + "status": "pass", + "tap": "net.maxpool" + }, + { + "band_ratio": 0.00719228872, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.14440918e-05, + "mean_abs": 3.2933011e-07, + "psnr_db": 149.380229, + "ref_absmax": 15.9116135, + "rel_max": 7.19228872e-07, + "scaled_max_abs": 7.19228872e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_21" + }, + "status": "pass", + "tap": "net.layer1.0" + }, + { + "band_ratio": 0.0124787974, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.348423e-05, + "mean_abs": 6.32533143e-07, + "psnr_db": 144.082559, + "ref_absmax": 18.8193054, + "rel_max": 1.24787974e-06, + "scaled_max_abs": 1.24787974e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_33" + }, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_ratio": 0.0114755159, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.34259462e-05, + "mean_abs": 2.99279633e-07, + "psnr_db": 145.301524, + "ref_absmax": 11.699645, + "rel_max": 1.14755159e-06, + "scaled_max_abs": 1.14755159e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_47" + }, + "status": "pass", + "tap": "net.layer2.0" + }, + { + "band_ratio": 0.0116661354, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.35600567e-05, + "mean_abs": 3.19807066e-07, + "psnr_db": 144.565243, + "ref_absmax": 11.623435, + "rel_max": 1.16661354e-06, + "scaled_max_abs": 1.16661354e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59" + }, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_ratio": 5955.59258, + "index": 6, + "metrics": { + "corr": 0.787079546, + "finite": true, + "max_abs": 8.15395117, + "mean_abs": 0.0781611002, + "psnr_db": 38.4315467, + "ref_absmax": 13.6912508, + "rel_max": 0.595559258, + "scaled_max_abs": 0.595559258 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_73" + }, + "status": "fail", + "tap": "net.layer3.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6202.38865, + "index": 7, + "metrics": { + "corr": 0.812629814, + "finite": true, + "max_abs": 5.16604137, + "mean_abs": 0.0752428747, + "psnr_db": 34.4678231, + "ref_absmax": 8.32911587, + "rel_max": 0.620238865, + "scaled_max_abs": 0.620238865 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85" + }, + "status": "fail", + "tap": "net.layer3.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6941.10662, + "index": 8, + "metrics": { + "corr": 0.842520036, + "finite": true, + "max_abs": 4.23854417, + "mean_abs": 0.0360707819, + "psnr_db": 35.6869345, + "ref_absmax": 6.10643864, + "rel_max": 0.694110662, + "scaled_max_abs": 0.694110662 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_99" + }, + "status": "fail", + "tap": "net.layer4.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 4536.42309, + "index": 9, + "metrics": { + "corr": 0.901538659, + "finite": true, + "max_abs": 8.04766464, + "mean_abs": 0.240118501, + "psnr_db": 31.0559372, + "ref_absmax": 17.7401104, + "rel_max": 0.453642309, + "scaled_max_abs": 0.453642309 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_111" + }, + "status": "fail", + "tap": "net.layer4.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 1696.57554, + "index": 10, + "metrics": { + "corr": 0.974782579, + "finite": true, + "max_abs": 1.85055923, + "mean_abs": 0.127275715, + "psnr_db": 33.9004164, + "ref_absmax": 10.9076147, + "rel_max": 0.169657554, + "scaled_max_abs": 0.169657554 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 1604.40181, + "index": 11, + "metrics": { + "corr": 0.979812701, + "finite": true, + "max_abs": 3.70964825, + "mean_abs": 0.359818623, + "psnr_db": 37.7016541, + "ref_absmax": 23.1216908, + "rel_max": 0.160440181, + "scaled_max_abs": 0.160440181 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "natural", + "index": 14 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 1494.71644, + "metrics": { + "corr": 0.98516523, + "finite": true, + "max_abs": 3.20171428, + "mean_abs": 0.300350765, + "psnr_db": 39.081403, + "ref_absmax": 21.4202118, + "rel_max": 0.149471644, + "scaled_max_abs": 0.149471644 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 6, + "n_judged": 12, + "n_taps": 12, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.2793459e-08, + "psnr_db": 164.013874, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0064503639, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.42402267e-06, + "mean_abs": 1.38510049e-07, + "psnr_db": 150.857668, + "ref_absmax": 8.40886307, + "rel_max": 6.4503639e-07, + "scaled_max_abs": 6.4503639e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_9" + }, + "status": "pass", + "tap": "net.maxpool" + }, + { + "band_ratio": 0.00781175021, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33514404e-05, + "mean_abs": 3.27880737e-07, + "psnr_db": 150.126665, + "ref_absmax": 17.0914841, + "rel_max": 7.81175021e-07, + "scaled_max_abs": 7.81175021e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_21" + }, + "status": "pass", + "tap": "net.layer1.0" + }, + { + "band_ratio": 0.0116912359, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.19345093e-05, + "mean_abs": 6.39059208e-07, + "psnr_db": 143.983405, + "ref_absmax": 18.7614975, + "rel_max": 1.16912359e-06, + "scaled_max_abs": 1.16912359e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_33" + }, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_ratio": 0.0118343281, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.31726265e-05, + "mean_abs": 3.03505749e-07, + "psnr_db": 144.774145, + "ref_absmax": 11.1308613, + "rel_max": 1.18343281e-06, + "scaled_max_abs": 1.18343281e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_47" + }, + "status": "pass", + "tap": "net.layer2.0" + }, + { + "band_ratio": 0.0120134076, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.36680901e-05, + "mean_abs": 3.21417715e-07, + "psnr_db": 144.296148, + "ref_absmax": 11.3773632, + "rel_max": 1.20134076e-06, + "scaled_max_abs": 1.20134076e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59" + }, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_ratio": 5866.5427, + "index": 6, + "metrics": { + "corr": 0.771700861, + "finite": true, + "max_abs": 6.99886227, + "mean_abs": 0.0770140794, + "psnr_db": 37.4078187, + "ref_absmax": 11.930131, + "rel_max": 0.58665427, + "scaled_max_abs": 0.58665427 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_73" + }, + "status": "fail", + "tap": "net.layer3.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9127.51731, + "index": 7, + "metrics": { + "corr": 0.797950225, + "finite": true, + "max_abs": 6.34935117, + "mean_abs": 0.07461565, + "psnr_db": 33.0720319, + "ref_absmax": 6.95627403, + "rel_max": 0.912751731, + "scaled_max_abs": 0.912751731 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85" + }, + "status": "fail", + "tap": "net.layer3.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6819.53334, + "index": 8, + "metrics": { + "corr": 0.830302194, + "finite": true, + "max_abs": 3.29707921, + "mean_abs": 0.0346946883, + "psnr_db": 33.9470269, + "ref_absmax": 4.8347578, + "rel_max": 0.681953334, + "scaled_max_abs": 0.681953334 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_99" + }, + "status": "fail", + "tap": "net.layer4.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 3220.76312, + "index": 9, + "metrics": { + "corr": 0.912445369, + "finite": true, + "max_abs": 6.81768227, + "mean_abs": 0.224277747, + "psnr_db": 33.3894597, + "ref_absmax": 21.1679096, + "rel_max": 0.322076312, + "scaled_max_abs": 0.322076312 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_111" + }, + "status": "fail", + "tap": "net.layer4.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 1917.70376, + "index": 10, + "metrics": { + "corr": 0.980548147, + "finite": true, + "max_abs": 2.05334902, + "mean_abs": 0.106469945, + "psnr_db": 35.2667941, + "ref_absmax": 10.7073317, + "rel_max": 0.191770376, + "scaled_max_abs": 0.191770376 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 1494.71644, + "index": 11, + "metrics": { + "corr": 0.98516523, + "finite": true, + "max_abs": 3.20171428, + "mean_abs": 0.300350765, + "psnr_db": 39.081403, + "ref_absmax": 21.4202118, + "rel_max": 0.149471644, + "scaled_max_abs": 0.149471644 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp32", + "id": "resnet18__layout_swap__coreml_fp32", + "model": "resnet18", + "path": "coreml", + "variant": "layout_swap" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/resnet18__layout_swap__litert_fp16.json b/bench/verdicts_e2e_gated/resnet18__layout_swap__litert_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..9407a2d0eb3c5e807581726ec3dc48339d01990a --- /dev/null +++ b/bench/verdicts_e2e_gated/resnet18__layout_swap__litert_fp16.json @@ -0,0 +1,916 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "reason": "first divergence at tap 7 is beyond the hypothesis taps (first 3) \u2014 interface faults surface earlier", + "status": "not_evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 7.73277117e-05, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.57356262e-05, + "mean_abs": 1.27750376e-06, + "psnr_db": 145.691184, + "ref_absmax": 20.3492718, + "rel_max": 7.73277117e-07, + "scaled_max_abs": 7.73277117e-07 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 27, + "outputs": [ + "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models.res", + "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.linear.Linear_fc;1_dequant", + "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.B", + "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.B" + ] + }, + { + "inputs": 44, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 2, + "n_ops_total": 61, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models", + "basis": "earliest tap over band with in-band predecessors", + "index": 7, + "neighbourhood": [ + { + "band_ratio": 0.0279544214, + "index": 6, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/zoo.HWSwap_0/torchvision.models.resnet.BasicBlock_inner/torch.nn.modules.activation.ReLU_relu;;zoo.Source/t" + }, + "status": "pass", + "tap": "net.layer3.0" + }, + { + "band_ratio": 91.3024003, + "index": 7, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer3.1" + }, + { + "band_ratio": 68.1974342, + "index": 8, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer4.0" + } + ], + "shape": 224, + "tap": "net.layer3.1" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "2a7eb465f03e0e78f28a6c519ff45a5dfc51445ea4ad1002f492fb380c607dbc", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "b5cddbfe685f568a5cd16b2302e2919152cb661c1cb69b5693855f1b3d22cbef", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D2", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.96875, + "band_ratio": 16.051183, + "metrics": { + "corr": 0.979804475, + "finite": true, + "max_abs": 3.7113049, + "mean_abs": 0.35983685, + "psnr_db": 37.6999016, + "ref_absmax": 23.1216908, + "rel_max": 0.16051183, + "scaled_max_abs": 0.16051183 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 14 + } + }, + "first_fail_index": 7, + "n_judged": 12, + "n_taps": 12, + "taps": [ + { + "band_ratio": 8.27203959e-06, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.26638033e-08, + "psnr_db": 163.904618, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0552685286, + "index": 1, + "metrics": { + "corr": 0.999999962, + "finite": true, + "max_abs": 0.00510382652, + "mean_abs": 7.6244338e-05, + "psnr_db": 94.6749001, + "ref_absmax": 9.23459816, + "rel_max": 0.000552685286, + "scaled_max_abs": 0.000552685286 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.MaxPool2d_maxpool;2" + }, + "status": "pass", + "tap": "net.maxpool" + }, + { + "band_ratio": 0.0285533862, + "index": 2, + "metrics": { + "corr": 0.999999915, + "finite": true, + "max_abs": 0.00454330444, + "mean_abs": 0.000158366689, + "psnr_db": 95.091453, + "ref_absmax": 15.9116135, + "rel_max": 0.000285533862, + "scaled_max_abs": 0.000285533862 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer1.0" + }, + { + "band_ratio": 0.0262599506, + "index": 3, + "metrics": { + "corr": 0.999999807, + "finite": true, + "max_abs": 0.00494194031, + "mean_abs": 0.000244943041, + "psnr_db": 92.1941427, + "ref_absmax": 18.8193054, + "rel_max": 0.000262599506, + "scaled_max_abs": 0.000262599506 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_ratio": 0.0526554237, + "index": 4, + "metrics": { + "corr": 0.999999711, + "finite": true, + "max_abs": 0.00616049767, + "mean_abs": 0.000116616282, + "psnr_db": 93.01523, + "ref_absmax": 11.699645, + "rel_max": 0.000526554237, + "scaled_max_abs": 0.000526554237 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer2.0" + }, + { + "band_ratio": 0.0620361493, + "index": 5, + "metrics": { + "corr": 0.999999676, + "finite": true, + "max_abs": 0.00721073151, + "mean_abs": 0.000130509692, + "psnr_db": 92.3595398, + "ref_absmax": 11.623435, + "rel_max": 0.000620361493, + "scaled_max_abs": 0.000620361493 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_ratio": 0.0244031295, + "index": 6, + "metrics": { + "corr": 0.999999722, + "finite": true, + "max_abs": 0.00334109366, + "mean_abs": 8.5855404e-05, + "psnr_db": 97.27591, + "ref_absmax": 13.6912508, + "rel_max": 0.000244031295, + "scaled_max_abs": 0.000244031295 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/zoo.HWSwap_0/torchvision.models.resnet.BasicBlock_inner/torch.nn.modules.activation.ReLU_relu;;zoo.Source/t" + }, + "status": "pass", + "tap": "net.layer3.0" + }, + { + "band_ratio": 62.0376894, + "index": 7, + "metrics": { + "corr": 0.812622708, + "finite": true, + "max_abs": 5.16719103, + "mean_abs": 0.0752443646, + "psnr_db": 34.4676477, + "ref_absmax": 8.32911587, + "rel_max": 0.620376894, + "scaled_max_abs": 0.620376894 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer3.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 69.4082473, + "index": 8, + "metrics": { + "corr": 0.842507706, + "finite": true, + "max_abs": 4.23837203, + "mean_abs": 0.0360698572, + "psnr_db": 35.6869878, + "ref_absmax": 6.10643864, + "rel_max": 0.694082473, + "scaled_max_abs": 0.694082473 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer4.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 45.3757513, + "index": 9, + "metrics": { + "corr": 0.901524891, + "finite": true, + "max_abs": 8.04970837, + "mean_abs": 0.240119613, + "psnr_db": 31.0557249, + "ref_absmax": 17.7401104, + "rel_max": 0.453757513, + "scaled_max_abs": 0.453757513 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer4.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 16.9628833, + "index": 10, + "metrics": { + "corr": 0.974776243, + "finite": true, + "max_abs": 1.85024595, + "mean_abs": 0.127290857, + "psnr_db": 33.8992287, + "ref_absmax": 10.9076147, + "rel_max": 0.169628833, + "scaled_max_abs": 0.169628833 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;1" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 16.051183, + "index": 11, + "metrics": { + "corr": 0.979804475, + "finite": true, + "max_abs": 3.7113049, + "mean_abs": 0.35983685, + "psnr_db": 37.6999016, + "ref_absmax": 23.1216908, + "rel_max": 0.16051183, + "scaled_max_abs": 0.16051183 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "natural", + "index": 14 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 14.9428591, + "metrics": { + "corr": 0.985163569, + "finite": true, + "max_abs": 3.20079207, + "mean_abs": 0.300330244, + "psnr_db": 39.081254, + "ref_absmax": 21.4202118, + "rel_max": 0.149428591, + "scaled_max_abs": 0.149428591 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 7, + "n_judged": 12, + "n_taps": 12, + "taps": [ + { + "band_ratio": 8.27203959e-06, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.2793459e-08, + "psnr_db": 164.013874, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0583793374, + "index": 1, + "metrics": { + "corr": 0.999999956, + "finite": true, + "max_abs": 0.00490903854, + "mean_abs": 7.63929271e-05, + "psnr_db": 93.8421926, + "ref_absmax": 8.40886307, + "rel_max": 0.000583793374, + "scaled_max_abs": 0.000583793374 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.MaxPool2d_maxpool;2" + }, + "status": "pass", + "tap": "net.maxpool" + }, + { + "band_ratio": 0.0274063399, + "index": 2, + "metrics": { + "corr": 0.999999901, + "finite": true, + "max_abs": 0.00468415022, + "mean_abs": 0.000161921874, + "psnr_db": 95.5433913, + "ref_absmax": 17.0914841, + "rel_max": 0.000274063399, + "scaled_max_abs": 0.000274063399 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer1.0" + }, + { + "band_ratio": 0.0251223373, + "index": 3, + "metrics": { + "corr": 0.999999774, + "finite": true, + "max_abs": 0.00471332669, + "mean_abs": 0.000250456457, + "psnr_db": 91.9597734, + "ref_absmax": 18.7614975, + "rel_max": 0.000251223373, + "scaled_max_abs": 0.000251223373 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_ratio": 0.0592551772, + "index": 4, + "metrics": { + "corr": 0.999999672, + "finite": true, + "max_abs": 0.00659561157, + "mean_abs": 0.000118937706, + "psnr_db": 92.4349706, + "ref_absmax": 11.1308613, + "rel_max": 0.000592551772, + "scaled_max_abs": 0.000592551772 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer2.0" + }, + { + "band_ratio": 0.0609826631, + "index": 5, + "metrics": { + "corr": 0.999999644, + "finite": true, + "max_abs": 0.00693821907, + "mean_abs": 0.000130281217, + "psnr_db": 92.2134029, + "ref_absmax": 11.3773632, + "rel_max": 0.000609826631, + "scaled_max_abs": 0.000609826631 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_ratio": 0.0279544214, + "index": 6, + "metrics": { + "corr": 0.999999683, + "finite": true, + "max_abs": 0.00333499908, + "mean_abs": 8.74087713e-05, + "psnr_db": 95.9804734, + "ref_absmax": 11.930131, + "rel_max": 0.000279544214, + "scaled_max_abs": 0.000279544214 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/zoo.HWSwap_0/torchvision.models.resnet.BasicBlock_inner/torch.nn.modules.activation.ReLU_relu;;zoo.Source/t" + }, + "status": "pass", + "tap": "net.layer3.0" + }, + { + "band_ratio": 91.3024003, + "index": 7, + "metrics": { + "corr": 0.797943546, + "finite": true, + "max_abs": 6.35124516, + "mean_abs": 0.0746181675, + "psnr_db": 33.0718153, + "ref_absmax": 6.95627403, + "rel_max": 0.913024003, + "scaled_max_abs": 0.913024003 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer3.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 68.1974342, + "index": 8, + "metrics": { + "corr": 0.83029822, + "finite": true, + "max_abs": 3.29718077, + "mean_abs": 0.0346941691, + "psnr_db": 33.9470422, + "ref_absmax": 4.8347578, + "rel_max": 0.681974342, + "scaled_max_abs": 0.681974342 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer4.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 32.1824016, + "index": 9, + "metrics": { + "corr": 0.912455676, + "finite": true, + "max_abs": 6.81234169, + "mean_abs": 0.224254277, + "psnr_db": 33.3902866, + "ref_absmax": 21.1679096, + "rel_max": 0.321824016, + "scaled_max_abs": 0.321824016 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer4.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 19.1297962, + "index": 10, + "metrics": { + "corr": 0.980552892, + "finite": true, + "max_abs": 2.04829073, + "mean_abs": 0.106464855, + "psnr_db": 35.2680482, + "ref_absmax": 10.7073317, + "rel_max": 0.191297962, + "scaled_max_abs": 0.191297962 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;1" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 14.9428591, + "index": 11, + "metrics": { + "corr": 0.985163569, + "finite": true, + "max_abs": 3.20079207, + "mean_abs": 0.300330244, + "psnr_db": 39.081254, + "ref_absmax": 21.4202118, + "rel_max": 0.149428591, + "scaled_max_abs": 0.149428591 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp16", + "id": "resnet18__layout_swap__litert_fp16", + "model": "resnet18", + "path": "litert", + "variant": "layout_swap" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/resnet18__layout_swap__litert_fp32.json b/bench/verdicts_e2e_gated/resnet18__layout_swap__litert_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..67262353aaf0699271fe1379697bb53c60d33afe --- /dev/null +++ b/bench/verdicts_e2e_gated/resnet18__layout_swap__litert_fp32.json @@ -0,0 +1,913 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "reason": "first divergence at tap 7 is beyond the hypothesis taps (first 3) \u2014 interface faults surface earlier", + "status": "not_evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 0.00925490559, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.88350677e-05, + "mean_abs": 1.27034219e-06, + "psnr_db": 145.933053, + "ref_absmax": 20.3514423, + "rel_max": 9.25490559e-07, + "scaled_max_abs": 9.25490559e-07 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 7, + "outputs": [ + "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models.res" + ] + }, + { + "inputs": 44, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 2, + "n_ops_total": 40, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models", + "basis": "earliest tap over band with in-band predecessors", + "index": 7, + "neighbourhood": [ + { + "band_ratio": 0.0125902813, + "index": 6, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/zoo.HWSwap_0/torchvision.models.resnet.BasicBlock_inner/torch.nn.modules.activation.ReLU_relu;;zoo.Source/t" + }, + "status": "pass", + "tap": "net.layer3.0" + }, + { + "band_ratio": 9127.51457, + "index": 7, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer3.1" + }, + { + "band_ratio": 6819.53433, + "index": 8, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer4.0" + } + ], + "shape": 224, + "tap": "net.layer3.1" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "c640df8fc16cdf78592cc4b3e228df62fbc5d37415f28653ead4b5795fd5444e", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "fe96d9549d1e467b579f77dfe54fd2041e015d47407066b591a0e806d992a86a", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D2", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.96875, + "band_ratio": 1604.40093, + "metrics": { + "corr": 0.979812715, + "finite": true, + "max_abs": 3.70964622, + "mean_abs": 0.359818494, + "psnr_db": 37.7016569, + "ref_absmax": 23.1216908, + "rel_max": 0.160440093, + "scaled_max_abs": 0.160440093 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 14 + } + }, + "first_fail_index": 7, + "n_judged": 12, + "n_taps": 12, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.26638033e-08, + "psnr_db": 163.904618, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.00645449252, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.96046448e-06, + "mean_abs": 1.11272893e-07, + "psnr_db": 152.577894, + "ref_absmax": 9.23459816, + "rel_max": 6.45449252e-07, + "scaled_max_abs": 6.45449252e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.MaxPool2d_maxpool;2" + }, + "status": "pass", + "tap": "net.maxpool" + }, + { + "band_ratio": 0.00659293132, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.04904175e-05, + "mean_abs": 2.97101586e-07, + "psnr_db": 150.017551, + "ref_absmax": 15.9116135, + "rel_max": 6.59293132e-07, + "scaled_max_abs": 6.59293132e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer1.0" + }, + { + "band_ratio": 0.0113386028, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.13384628e-05, + "mean_abs": 5.66449512e-07, + "psnr_db": 144.989362, + "ref_absmax": 18.8193054, + "rel_max": 1.13386028e-06, + "scaled_max_abs": 1.13386028e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_ratio": 0.0107495398, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.257658e-05, + "mean_abs": 2.663497e-07, + "psnr_db": 146.20977, + "ref_absmax": 11.699645, + "rel_max": 1.07495398e-06, + "scaled_max_abs": 1.07495398e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer2.0" + }, + { + "band_ratio": 0.0111789781, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.29938126e-05, + "mean_abs": 2.84333162e-07, + "psnr_db": 145.489246, + "ref_absmax": 11.623435, + "rel_max": 1.11789781e-06, + "scaled_max_abs": 1.11789781e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_ratio": 0.00835868977, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.14440918e-05, + "mean_abs": 1.51939911e-07, + "psnr_db": 152.454047, + "ref_absmax": 13.6912508, + "rel_max": 8.35868977e-07, + "scaled_max_abs": 8.35868977e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/zoo.HWSwap_0/torchvision.models.resnet.BasicBlock_inner/torch.nn.modules.activation.ReLU_relu;;zoo.Source/t" + }, + "status": "pass", + "tap": "net.layer3.0" + }, + { + "band_ratio": 6202.38751, + "index": 7, + "metrics": { + "corr": 0.812629797, + "finite": true, + "max_abs": 5.16604042, + "mean_abs": 0.0752428776, + "psnr_db": 34.4678229, + "ref_absmax": 8.32911587, + "rel_max": 0.620238751, + "scaled_max_abs": 0.620238751 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer3.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6941.10975, + "index": 8, + "metrics": { + "corr": 0.842520039, + "finite": true, + "max_abs": 4.23854607, + "mean_abs": 0.0360707819, + "psnr_db": 35.6869347, + "ref_absmax": 6.10643864, + "rel_max": 0.694110975, + "scaled_max_abs": 0.694110975 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer4.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 4536.42632, + "index": 9, + "metrics": { + "corr": 0.901538662, + "finite": true, + "max_abs": 8.04767036, + "mean_abs": 0.240118492, + "psnr_db": 31.0559377, + "ref_absmax": 17.7401104, + "rel_max": 0.453642632, + "scaled_max_abs": 0.453642632 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer4.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 1696.57336, + "index": 10, + "metrics": { + "corr": 0.974782592, + "finite": true, + "max_abs": 1.85055685, + "mean_abs": 0.127275689, + "psnr_db": 33.9004185, + "ref_absmax": 10.9076147, + "rel_max": 0.169657336, + "scaled_max_abs": 0.169657336 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;1" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 1604.40093, + "index": 11, + "metrics": { + "corr": 0.979812715, + "finite": true, + "max_abs": 3.70964622, + "mean_abs": 0.359818494, + "psnr_db": 37.7016569, + "ref_absmax": 23.1216908, + "rel_max": 0.160440093, + "scaled_max_abs": 0.160440093 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "natural", + "index": 14 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 1494.71488, + "metrics": { + "corr": 0.985165224, + "finite": true, + "max_abs": 3.20171094, + "mean_abs": 0.300350826, + "psnr_db": 39.0814018, + "ref_absmax": 21.4202118, + "rel_max": 0.149471488, + "scaled_max_abs": 0.149471488 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 7, + "n_judged": 12, + "n_taps": 12, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.2793459e-08, + "psnr_db": 164.013874, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.00623771454, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.24520874e-06, + "mean_abs": 1.07515782e-07, + "psnr_db": 152.185232, + "ref_absmax": 8.40886307, + "rel_max": 6.23771454e-07, + "scaled_max_abs": 6.23771454e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.MaxPool2d_maxpool;2" + }, + "status": "pass", + "tap": "net.maxpool" + }, + { + "band_ratio": 0.00892771453, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.52587891e-05, + "mean_abs": 2.97063275e-07, + "psnr_db": 150.741408, + "ref_absmax": 17.0914841, + "rel_max": 8.92771453e-07, + "scaled_max_abs": 8.92771453e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer1.0" + }, + { + "band_ratio": 0.0123901685, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.32458115e-05, + "mean_abs": 5.73300881e-07, + "psnr_db": 144.862399, + "ref_absmax": 18.7614975, + "rel_max": 1.23901685e-06, + "scaled_max_abs": 1.23901685e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_ratio": 0.0104688287, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.16527081e-05, + "mean_abs": 2.70043333e-07, + "psnr_db": 145.645301, + "ref_absmax": 11.1308613, + "rel_max": 1.04688287e-06, + "scaled_max_abs": 1.04688287e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer2.0" + }, + { + "band_ratio": 0.0117088976, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33216381e-05, + "mean_abs": 2.86939477e-07, + "psnr_db": 145.151554, + "ref_absmax": 11.3773632, + "rel_max": 1.17088976e-06, + "scaled_max_abs": 1.17088976e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_ratio": 0.0125902813, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.50203705e-05, + "mean_abs": 1.53900826e-07, + "psnr_db": 151.136934, + "ref_absmax": 11.930131, + "rel_max": 1.25902813e-06, + "scaled_max_abs": 1.25902813e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/zoo.HWSwap_0/torchvision.models.resnet.BasicBlock_inner/torch.nn.modules.activation.ReLU_relu;;zoo.Source/t" + }, + "status": "pass", + "tap": "net.layer3.0" + }, + { + "band_ratio": 9127.51457, + "index": 7, + "metrics": { + "corr": 0.797950183, + "finite": true, + "max_abs": 6.34934926, + "mean_abs": 0.0746156539, + "psnr_db": 33.0720315, + "ref_absmax": 6.95627403, + "rel_max": 0.912751457, + "scaled_max_abs": 0.912751457 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer3.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6819.53433, + "index": 8, + "metrics": { + "corr": 0.830302153, + "finite": true, + "max_abs": 3.29707968, + "mean_abs": 0.0346946907, + "psnr_db": 33.9470264, + "ref_absmax": 4.8347578, + "rel_max": 0.681953433, + "scaled_max_abs": 0.681953433 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer4.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 3220.76177, + "index": 9, + "metrics": { + "corr": 0.912445329, + "finite": true, + "max_abs": 6.81767941, + "mean_abs": 0.224277773, + "psnr_db": 33.3894586, + "ref_absmax": 21.1679096, + "rel_max": 0.322076177, + "scaled_max_abs": 0.322076177 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "fail", + "tap": "net.layer4.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 1917.70331, + "index": 10, + "metrics": { + "corr": 0.980548139, + "finite": true, + "max_abs": 2.05334854, + "mean_abs": 0.106469943, + "psnr_db": 35.266793, + "ref_absmax": 10.7073317, + "rel_max": 0.191770331, + "scaled_max_abs": 0.191770331 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.AdaptiveAvgPool2d_avgpool;1" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 1494.71488, + "index": 11, + "metrics": { + "corr": 0.985165224, + "finite": true, + "max_abs": 3.20171094, + "mean_abs": 0.300350826, + "psnr_db": 39.0814018, + "ref_absmax": 21.4202118, + "rel_max": 0.149471488, + "scaled_max_abs": 0.149471488 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp32", + "id": "resnet18__layout_swap__litert_fp32", + "model": "resnet18", + "path": "litert", + "variant": "layout_swap" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/resnet18__layout_swap__onnx_fp16.json b/bench/verdicts_e2e_gated/resnet18__layout_swap__onnx_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..d59b0ed21e99b2c93547b60616715935b40005f5 --- /dev/null +++ b/bench/verdicts_e2e_gated/resnet18__layout_swap__onnx_fp16.json @@ -0,0 +1,781 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "reason": "first divergence at tap 6 is beyond the hypothesis taps (first 3) \u2014 interface faults surface earlier", + "status": "not_evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "/net/layer3/layer3.0/Transpose_output_0", + "basis": "earliest tap over band with in-band predecessors", + "index": 6, + "neighbourhood": [ + { + "band_ratio": 0.0629964887, + "index": 5, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_ratio": 58.6699275, + "index": 6, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.0/Transpose_output_0" + }, + "status": "fail", + "tap": "net.layer3.0" + }, + { + "band_ratio": 91.3106809, + "index": 7, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer3.1" + } + ], + "shape": 224, + "tap": "net.layer3.0" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "097d38eceae31d6c2ff34f4ae0c1a99b4b60176dfc52769b2a8e036b51a14746", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "07fc17739aac524c05933e95221873c5cc04b5a9e22f41c1804c736b22c12b13", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0017414093, + "224": 0.00214958191 + }, + "primary_class": "D2", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.96875, + "band_ratio": 16.0292361, + "metrics": { + "corr": 0.979817171, + "finite": true, + "max_abs": 3.7062304, + "mean_abs": 0.359711696, + "psnr_db": 37.7026036, + "ref_absmax": 23.1216908, + "rel_max": 0.160292361, + "scaled_max_abs": 0.160292361 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 14 + } + }, + "first_fail_index": 6, + "n_judged": 12, + "n_taps": 12, + "taps": [ + { + "band_ratio": 0.0441313312, + "index": 0, + "metrics": { + "corr": 0.999999966, + "finite": true, + "max_abs": 0.00508785248, + "mean_abs": 0.000405953078, + "psnr_db": 88.0186903, + "ref_absmax": 11.5288897, + "rel_max": 0.000441313312, + "scaled_max_abs": 0.000441313312 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0640982743, + "index": 1, + "metrics": { + "corr": 0.999999909, + "finite": true, + "max_abs": 0.00591921806, + "mean_abs": 0.000156664105, + "psnr_db": 90.9101891, + "ref_absmax": 9.23459816, + "rel_max": 0.000640982743, + "scaled_max_abs": 0.000640982743 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/maxpool/MaxPool_output_0" + }, + "status": "pass", + "tap": "net.maxpool" + }, + { + "band_ratio": 0.0384577671, + "index": 2, + "metrics": { + "corr": 0.999999849, + "finite": true, + "max_abs": 0.00611925125, + "mean_abs": 0.000234829637, + "psnr_db": 92.5526304, + "ref_absmax": 15.9116135, + "rel_max": 0.000384577671, + "scaled_max_abs": 0.000384577671 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer1.0" + }, + { + "band_ratio": 0.0524185506, + "index": 3, + "metrics": { + "corr": 0.999999705, + "finite": true, + "max_abs": 0.00986480713, + "mean_abs": 0.000332652643, + "psnr_db": 90.3693126, + "ref_absmax": 18.8193054, + "rel_max": 0.000524185506, + "scaled_max_abs": 0.000524185506 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_ratio": 0.0613549091, + "index": 4, + "metrics": { + "corr": 0.999999522, + "finite": true, + "max_abs": 0.00717830658, + "mean_abs": 0.000162431505, + "psnr_db": 90.8349286, + "ref_absmax": 11.699645, + "rel_max": 0.000613549091, + "scaled_max_abs": 0.000613549091 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer2.0" + }, + { + "band_ratio": 0.0555682387, + "index": 5, + "metrics": { + "corr": 0.999999447, + "finite": true, + "max_abs": 0.00645893812, + "mean_abs": 0.000178505766, + "psnr_db": 90.0284719, + "ref_absmax": 11.623435, + "rel_max": 0.000555682387, + "scaled_max_abs": 0.000555682387 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_ratio": 59.5580468, + "index": 6, + "metrics": { + "corr": 0.787060677, + "finite": true, + "max_abs": 8.15424156, + "mean_abs": 0.078173486, + "psnr_db": 38.4313354, + "ref_absmax": 13.6912508, + "rel_max": 0.595580468, + "scaled_max_abs": 0.595580468 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.0/Transpose_output_0" + }, + "status": "fail", + "tap": "net.layer3.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 62.0470267, + "index": 7, + "metrics": { + "corr": 0.812594192, + "finite": true, + "max_abs": 5.16796875, + "mean_abs": 0.0752478764, + "psnr_db": 34.4674024, + "ref_absmax": 8.32911587, + "rel_max": 0.620470267, + "scaled_max_abs": 0.620470267 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer3.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 69.4273631, + "index": 8, + "metrics": { + "corr": 0.842492827, + "finite": true, + "max_abs": 4.23953933, + "mean_abs": 0.0360710238, + "psnr_db": 35.6868488, + "ref_absmax": 6.10643864, + "rel_max": 0.694273631, + "scaled_max_abs": 0.694273631 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.0/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer4.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 45.4038184, + "index": 9, + "metrics": { + "corr": 0.901532901, + "finite": true, + "max_abs": 8.0546875, + "mean_abs": 0.240095486, + "psnr_db": 31.0562046, + "ref_absmax": 17.7401104, + "rel_max": 0.454038184, + "scaled_max_abs": 0.454038184 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer4.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 16.9721511, + "index": 10, + "metrics": { + "corr": 0.974789487, + "finite": true, + "max_abs": 1.85125685, + "mean_abs": 0.127254963, + "psnr_db": 33.9014119, + "ref_absmax": 10.9076147, + "rel_max": 0.169721511, + "scaled_max_abs": 0.169721511 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 16.0305065, + "index": 11, + "metrics": { + "corr": 0.979817061, + "finite": true, + "max_abs": 3.70652413, + "mean_abs": 0.359712227, + "psnr_db": 37.7025804, + "ref_absmax": 23.1216908, + "rel_max": 0.160305065, + "scaled_max_abs": 0.160305065 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "natural", + "index": 14 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 14.9371169, + "metrics": { + "corr": 0.985164934, + "finite": true, + "max_abs": 3.19956207, + "mean_abs": 0.300331845, + "psnr_db": 39.0817522, + "ref_absmax": 21.4202118, + "rel_max": 0.149371169, + "scaled_max_abs": 0.149371169 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 6, + "n_judged": 12, + "n_taps": 12, + "taps": [ + { + "band_ratio": 0.0439328023, + "index": 0, + "metrics": { + "corr": 0.999999965, + "finite": true, + "max_abs": 0.00506496429, + "mean_abs": 0.000406712054, + "psnr_db": 88.0749992, + "ref_absmax": 11.5288897, + "rel_max": 0.000439328023, + "scaled_max_abs": 0.000439328023 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0650593626, + "index": 1, + "metrics": { + "corr": 0.999999901, + "finite": true, + "max_abs": 0.00547075272, + "mean_abs": 0.000153226313, + "psnr_db": 90.3189603, + "ref_absmax": 8.40886307, + "rel_max": 0.000650593626, + "scaled_max_abs": 0.000650593626 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/maxpool/MaxPool_output_0" + }, + "status": "pass", + "tap": "net.maxpool" + }, + { + "band_ratio": 0.0506201414, + "index": 2, + "metrics": { + "corr": 0.999999831, + "finite": true, + "max_abs": 0.0086517334, + "mean_abs": 0.000236261028, + "psnr_db": 93.1783463, + "ref_absmax": 17.0914841, + "rel_max": 0.000506201414, + "scaled_max_abs": 0.000506201414 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer1.0" + }, + { + "band_ratio": 0.0535356941, + "index": 3, + "metrics": { + "corr": 0.999999662, + "finite": true, + "max_abs": 0.0100440979, + "mean_abs": 0.000337286326, + "psnr_db": 90.2185942, + "ref_absmax": 18.7614975, + "rel_max": 0.000535356941, + "scaled_max_abs": 0.000535356941 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_ratio": 0.0610469266, + "index": 4, + "metrics": { + "corr": 0.999999468, + "finite": true, + "max_abs": 0.00679504871, + "mean_abs": 0.000164360102, + "psnr_db": 90.3342488, + "ref_absmax": 11.1308613, + "rel_max": 0.000610469266, + "scaled_max_abs": 0.000610469266 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer2.0" + }, + { + "band_ratio": 0.0629964887, + "index": 5, + "metrics": { + "corr": 0.999999391, + "finite": true, + "max_abs": 0.00716733932, + "mean_abs": 0.000177770421, + "psnr_db": 89.8777049, + "ref_absmax": 11.3773632, + "rel_max": 0.000629964887, + "scaled_max_abs": 0.000629964887 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_ratio": 58.6699275, + "index": 6, + "metrics": { + "corr": 0.771678447, + "finite": true, + "max_abs": 6.99939919, + "mean_abs": 0.0770255099, + "psnr_db": 37.4075404, + "ref_absmax": 11.930131, + "rel_max": 0.586699275, + "scaled_max_abs": 0.586699275 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.0/Transpose_output_0" + }, + "status": "fail", + "tap": "net.layer3.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 91.3106809, + "index": 7, + "metrics": { + "corr": 0.797911529, + "finite": true, + "max_abs": 6.35182118, + "mean_abs": 0.074622082, + "psnr_db": 33.0715255, + "ref_absmax": 6.95627403, + "rel_max": 0.913106809, + "scaled_max_abs": 0.913106809 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer3.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 68.2020401, + "index": 8, + "metrics": { + "corr": 0.830279938, + "finite": true, + "max_abs": 3.29740345, + "mean_abs": 0.0346963351, + "psnr_db": 33.9467104, + "ref_absmax": 4.8347578, + "rel_max": 0.682020401, + "scaled_max_abs": 0.682020401 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.0/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer4.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 32.1544103, + "index": 9, + "metrics": { + "corr": 0.912458067, + "finite": true, + "max_abs": 6.80641651, + "mean_abs": 0.224244203, + "psnr_db": 33.3905371, + "ref_absmax": 21.1679096, + "rel_max": 0.321544103, + "scaled_max_abs": 0.321544103 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer4.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 19.166207, + "index": 10, + "metrics": { + "corr": 0.980557453, + "finite": true, + "max_abs": 2.05218935, + "mean_abs": 0.106447479, + "psnr_db": 35.2691152, + "ref_absmax": 10.7073317, + "rel_max": 0.19166207, + "scaled_max_abs": 0.19166207 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 14.9334761, + "index": 11, + "metrics": { + "corr": 0.985164949, + "finite": true, + "max_abs": 3.19878221, + "mean_abs": 0.300332521, + "psnr_db": 39.0817371, + "ref_absmax": 21.4202118, + "rel_max": 0.149334761, + "scaled_max_abs": 0.149334761 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp16", + "id": "resnet18__layout_swap__onnx_fp16", + "model": "resnet18", + "path": "onnx", + "variant": "layout_swap" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/resnet18__layout_swap__onnx_fp32.json b/bench/verdicts_e2e_gated/resnet18__layout_swap__onnx_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..3a3ad0db9addec0a4e0a62416cec4b0471f07006 --- /dev/null +++ b/bench/verdicts_e2e_gated/resnet18__layout_swap__onnx_fp32.json @@ -0,0 +1,781 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "reason": "first divergence at tap 6 is beyond the hypothesis taps (first 3) \u2014 interface faults surface earlier", + "status": "not_evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "/net/layer3/layer3.0/Transpose_output_0", + "basis": "earliest tap over band with in-band predecessors", + "index": 6, + "neighbourhood": [ + { + "band_ratio": 0.0116434116, + "index": 5, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_ratio": 5866.5427, + "index": 6, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.0/Transpose_output_0" + }, + "status": "fail", + "tap": "net.layer3.0" + }, + { + "band_ratio": 9127.5132, + "index": 7, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer3.1" + } + ], + "shape": 224, + "tap": "net.layer3.0" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "c09a887039c719c1ea12d705c4e7df48611a7e9df0e731b246067e83273a56e6", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "d7491bd2ba42391543b930f0498d3d071849090c68390372c07217e248a059db", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D2", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.96875, + "band_ratio": 1604.40166, + "metrics": { + "corr": 0.979812712, + "finite": true, + "max_abs": 3.70964789, + "mean_abs": 0.359818523, + "psnr_db": 37.7016564, + "ref_absmax": 23.1216908, + "rel_max": 0.160440166, + "scaled_max_abs": 0.160440166 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 14 + } + }, + "first_fail_index": 6, + "n_judged": 12, + "n_taps": 12, + "taps": [ + { + "band_ratio": 0.0, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 11.5288897, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.00645449252, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.96046448e-06, + "mean_abs": 1.02334015e-07, + "psnr_db": 153.063362, + "ref_absmax": 9.23459816, + "rel_max": 6.45449252e-07, + "scaled_max_abs": 6.45449252e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/maxpool/MaxPool_output_0" + }, + "status": "pass", + "tap": "net.maxpool" + }, + { + "band_ratio": 0.00599357393, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-06, + "mean_abs": 2.4274631e-07, + "psnr_db": 151.715113, + "ref_absmax": 15.9116135, + "rel_max": 5.99357393e-07, + "scaled_max_abs": 5.99357393e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer1.0" + }, + { + "band_ratio": 0.010594309, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.99377537e-05, + "mean_abs": 4.59455778e-07, + "psnr_db": 146.75967, + "ref_absmax": 18.8193054, + "rel_max": 1.0594309e-06, + "scaled_max_abs": 1.0594309e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_ratio": 0.00817678267, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.56654549e-06, + "mean_abs": 2.13176991e-07, + "psnr_db": 148.166325, + "ref_absmax": 11.699645, + "rel_max": 8.17678267e-07, + "scaled_max_abs": 8.17678267e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer2.0" + }, + { + "band_ratio": 0.0107943802, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.25467777e-05, + "mean_abs": 2.26584255e-07, + "psnr_db": 147.499631, + "ref_absmax": 11.623435, + "rel_max": 1.07943802e-06, + "scaled_max_abs": 1.07943802e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_ratio": 5955.59241, + "index": 6, + "metrics": { + "corr": 0.787079546, + "finite": true, + "max_abs": 8.15395093, + "mean_abs": 0.0781610978, + "psnr_db": 38.4315465, + "ref_absmax": 13.6912508, + "rel_max": 0.595559241, + "scaled_max_abs": 0.595559241 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.0/Transpose_output_0" + }, + "status": "fail", + "tap": "net.layer3.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6202.38636, + "index": 7, + "metrics": { + "corr": 0.812629823, + "finite": true, + "max_abs": 5.16603947, + "mean_abs": 0.0752428758, + "psnr_db": 34.4678231, + "ref_absmax": 8.32911587, + "rel_max": 0.620238636, + "scaled_max_abs": 0.620238636 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer3.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6941.1074, + "index": 8, + "metrics": { + "corr": 0.842520048, + "finite": true, + "max_abs": 4.23854464, + "mean_abs": 0.0360707826, + "psnr_db": 35.6869345, + "ref_absmax": 6.10643864, + "rel_max": 0.69411074, + "scaled_max_abs": 0.69411074 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.0/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer4.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 4536.4247, + "index": 9, + "metrics": { + "corr": 0.901538673, + "finite": true, + "max_abs": 8.0476675, + "mean_abs": 0.240118492, + "psnr_db": 31.0559376, + "ref_absmax": 17.7401104, + "rel_max": 0.45364247, + "scaled_max_abs": 0.45364247 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer4.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 1696.57511, + "index": 10, + "metrics": { + "corr": 0.974782591, + "finite": true, + "max_abs": 1.85055876, + "mean_abs": 0.127275692, + "psnr_db": 33.9004183, + "ref_absmax": 10.9076147, + "rel_max": 0.169657511, + "scaled_max_abs": 0.169657511 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 1604.40166, + "index": 11, + "metrics": { + "corr": 0.979812712, + "finite": true, + "max_abs": 3.70964789, + "mean_abs": 0.359818523, + "psnr_db": 37.7016564, + "ref_absmax": 23.1216908, + "rel_max": 0.160440166, + "scaled_max_abs": 0.160440166 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "natural", + "index": 14 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 1494.71388, + "metrics": { + "corr": 0.985165236, + "finite": true, + "max_abs": 3.20170879, + "mean_abs": 0.300350699, + "psnr_db": 39.0814046, + "ref_absmax": 21.4202118, + "rel_max": 0.149471388, + "scaled_max_abs": 0.149471388 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 6, + "n_judged": 12, + "n_taps": 12, + "taps": [ + { + "band_ratio": 0.0, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 11.5288897, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0068047795, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.7220459e-06, + "mean_abs": 9.8498275e-08, + "psnr_db": 152.668994, + "ref_absmax": 8.40886307, + "rel_max": 6.8047795e-07, + "scaled_max_abs": 6.8047795e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/maxpool/MaxPool_output_0" + }, + "status": "pass", + "tap": "net.maxpool" + }, + { + "band_ratio": 0.00781175021, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33514404e-05, + "mean_abs": 2.40416478e-07, + "psnr_db": 152.515216, + "ref_absmax": 17.0914841, + "rel_max": 7.81175021e-07, + "scaled_max_abs": 7.81175021e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer1.0" + }, + { + "band_ratio": 0.010547528, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.97887421e-05, + "mean_abs": 4.61762345e-07, + "psnr_db": 146.71458, + "ref_absmax": 18.7614975, + "rel_max": 1.0547528e-06, + "scaled_max_abs": 1.0547528e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_ratio": 0.0109842378, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.22264028e-05, + "mean_abs": 2.14888521e-07, + "psnr_db": 147.700816, + "ref_absmax": 11.1308613, + "rel_max": 1.09842378e-06, + "scaled_max_abs": 1.09842378e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer2.0" + }, + { + "band_ratio": 0.0116434116, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.32471323e-05, + "mean_abs": 2.26556506e-07, + "psnr_db": 147.285533, + "ref_absmax": 11.3773632, + "rel_max": 1.16434116e-06, + "scaled_max_abs": 1.16434116e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_ratio": 5866.5427, + "index": 6, + "metrics": { + "corr": 0.771700853, + "finite": true, + "max_abs": 6.99886227, + "mean_abs": 0.0770140773, + "psnr_db": 37.4078185, + "ref_absmax": 11.930131, + "rel_max": 0.58665427, + "scaled_max_abs": 0.58665427 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.0/Transpose_output_0" + }, + "status": "fail", + "tap": "net.layer3.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 9127.5132, + "index": 7, + "metrics": { + "corr": 0.797950206, + "finite": true, + "max_abs": 6.34934831, + "mean_abs": 0.0746156526, + "psnr_db": 33.0720316, + "ref_absmax": 6.95627403, + "rel_max": 0.91275132, + "scaled_max_abs": 0.91275132 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer3.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6819.53137, + "index": 8, + "metrics": { + "corr": 0.830302189, + "finite": true, + "max_abs": 3.29707825, + "mean_abs": 0.0346946899, + "psnr_db": 33.9470265, + "ref_absmax": 4.8347578, + "rel_max": 0.681953137, + "scaled_max_abs": 0.681953137 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.0/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer4.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 3220.75952, + "index": 9, + "metrics": { + "corr": 0.912445363, + "finite": true, + "max_abs": 6.81767464, + "mean_abs": 0.224277757, + "psnr_db": 33.3894594, + "ref_absmax": 21.1679096, + "rel_max": 0.322075952, + "scaled_max_abs": 0.322075952 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.1/relu_1/Relu_output_0" + }, + "status": "fail", + "tap": "net.layer4.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 1917.70331, + "index": 10, + "metrics": { + "corr": 0.980548153, + "finite": true, + "max_abs": 2.05334854, + "mean_abs": 0.106469922, + "psnr_db": 35.2667955, + "ref_absmax": 10.7073317, + "rel_max": 0.191770331, + "scaled_max_abs": 0.191770331 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/GlobalAveragePool_output_0" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 1494.71388, + "index": 11, + "metrics": { + "corr": 0.985165236, + "finite": true, + "max_abs": 3.20170879, + "mean_abs": 0.300350699, + "psnr_db": 39.0814046, + "ref_absmax": 21.4202118, + "rel_max": 0.149471388, + "scaled_max_abs": 0.149471388 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp32", + "id": "resnet18__layout_swap__onnx_fp32", + "model": "resnet18", + "path": "onnx", + "variant": "layout_swap" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/resnet18__pool_divisor__coreml_fp16.json b/bench/verdicts_e2e_gated/resnet18__pool_divisor__coreml_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..94d239361b3901f96e9df0f84a75e4db14c7d407 --- /dev/null +++ b/bench/verdicts_e2e_gated/resnet18__pool_divisor__coreml_fp16.json @@ -0,0 +1,776 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "reason": "first divergence at tap 7 is beyond the hypothesis taps (first 3) \u2014 interface faults surface earlier", + "status": "not_evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [ + "inputs[0]: dtype float16 (declared float32)", + "outputs[0]: dtype float16 (declared float32)" + ], + "status": "precision_narrowing" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "input_85_cast_fp16", + "basis": "earliest tap over band with in-band predecessors", + "index": 7, + "neighbourhood": [ + { + "band_ratio": 0.577717049, + "index": 6, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_73_cast_fp16" + }, + "status": "pass", + "tap": "net.layer3.0" + }, + { + "band_ratio": 1.71483417, + "index": 7, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85_cast_fp16" + }, + "status": "fail", + "tap": "net.layer3.1" + }, + { + "band_ratio": 2.43476768, + "index": 8, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_99_cast_fp16" + }, + "status": "fail", + "tap": "net.layer4.0" + } + ], + "shape": 224, + "tap": "net.layer3.1" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "d8ce454f335fa37c1ec8b86819fcb3ce1292304bb061dc473bb92dcad98f321c", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "b59b836f0f07e4f4dd3b5703a24dac08166fdeb22c9711222f5f0f0af9131c51", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D2", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 44.1136241, + "metrics": { + "corr": 0.999961191, + "finite": true, + "max_abs": 10.1998158, + "mean_abs": 0.745010817, + "psnr_db": 30.9142425, + "ref_absmax": 23.1216908, + "rel_max": 0.441136241, + "scaled_max_abs": 0.441136241 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 7, + "n_judged": 12, + "n_taps": 12, + "taps": [ + { + "band_ratio": 0.117570499, + "index": 0, + "metrics": { + "corr": 0.999999914, + "finite": true, + "max_abs": 0.0135545731, + "mean_abs": 0.000674526699, + "psnr_db": 83.5827466, + "ref_absmax": 11.5288897, + "rel_max": 0.00117570499, + "scaled_max_abs": 0.00117570499 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.459322342, + "index": 1, + "metrics": { + "corr": 0.999996447, + "finite": true, + "max_abs": 0.0424165726, + "mean_abs": 0.000952223367, + "psnr_db": 75.0364552, + "ref_absmax": 9.23459816, + "rel_max": 0.00459322342, + "scaled_max_abs": 0.00459322342 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_9_cast_fp16" + }, + "status": "pass", + "tap": "net.maxpool" + }, + { + "band_ratio": 0.480211137, + "index": 2, + "metrics": { + "corr": 0.99998717, + "finite": true, + "max_abs": 0.0764093399, + "mean_abs": 0.00215436701, + "psnr_db": 73.3099338, + "ref_absmax": 15.9116135, + "rel_max": 0.00480211137, + "scaled_max_abs": 0.00480211137 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_21_cast_fp16" + }, + "status": "pass", + "tap": "net.layer1.0" + }, + { + "band_ratio": 0.441904939, + "index": 3, + "metrics": { + "corr": 0.999962955, + "finite": true, + "max_abs": 0.0831634402, + "mean_abs": 0.0038022016, + "psnr_db": 69.3862926, + "ref_absmax": 18.8193054, + "rel_max": 0.00441904939, + "scaled_max_abs": 0.00441904939 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_33_cast_fp16" + }, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_ratio": 0.482464821, + "index": 4, + "metrics": { + "corr": 0.999939928, + "finite": true, + "max_abs": 0.0564466715, + "mean_abs": 0.00186217433, + "psnr_db": 69.8477445, + "ref_absmax": 11.699645, + "rel_max": 0.00482464821, + "scaled_max_abs": 0.00482464821 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_47_cast_fp16" + }, + "status": "pass", + "tap": "net.layer2.0" + }, + { + "band_ratio": 0.589862113, + "index": 5, + "metrics": { + "corr": 0.999930102, + "finite": true, + "max_abs": 0.0685622394, + "mean_abs": 0.00200145403, + "psnr_db": 69.0183736, + "ref_absmax": 11.623435, + "rel_max": 0.00589862113, + "scaled_max_abs": 0.00589862113 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59_cast_fp16" + }, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_ratio": 0.398626786, + "index": 6, + "metrics": { + "corr": 0.999943674, + "finite": true, + "max_abs": 0.054576993, + "mean_abs": 0.00120694028, + "psnr_db": 74.2042645, + "ref_absmax": 13.6912508, + "rel_max": 0.00398626786, + "scaled_max_abs": 0.00398626786 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_73_cast_fp16" + }, + "status": "pass", + "tap": "net.layer3.0" + }, + { + "band_ratio": 1.209288, + "index": 7, + "metrics": { + "corr": 0.999914514, + "finite": true, + "max_abs": 0.100722998, + "mean_abs": 0.00143564133, + "psnr_db": 67.8457217, + "ref_absmax": 8.32911587, + "rel_max": 0.01209288, + "scaled_max_abs": 0.01209288 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85_cast_fp16" + }, + "status": "fail", + "tap": "net.layer3.1", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + }, + { + "band_ratio": 2.06168257, + "index": 8, + "metrics": { + "corr": 0.999844894, + "finite": true, + "max_abs": 0.125895381, + "mean_abs": 0.000886009569, + "psnr_db": 65.7722773, + "ref_absmax": 6.10643864, + "rel_max": 0.0206168257, + "scaled_max_abs": 0.0206168257 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_99_cast_fp16" + }, + "status": "fail", + "tap": "net.layer4.0", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_ratio": 1.4049191, + "index": 9, + "metrics": { + "corr": 0.999917714, + "finite": true, + "max_abs": 0.2492342, + "mean_abs": 0.00654935488, + "psnr_db": 61.7269115, + "ref_absmax": 17.7401104, + "rel_max": 0.014049191, + "scaled_max_abs": 0.014049191 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_3_cast_fp16" + }, + "status": "fail", + "tap": "net.layer4.1", + "worst_probe": { + "category": "wide_range", + "index": 21 + } + }, + { + "band_ratio": 43.5599223, + "index": 10, + "metrics": { + "corr": 0.999970921, + "finite": true, + "max_abs": 4.7513485, + "mean_abs": 0.232135218, + "psnr_db": 26.9850867, + "ref_absmax": 10.9076147, + "rel_max": 0.435599223, + "scaled_max_abs": 0.435599223 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_x_cast_fp16" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "wide_range", + "index": 21 + } + }, + { + "band_ratio": 44.1136241, + "index": 11, + "metrics": { + "corr": 0.999961191, + "finite": true, + "max_abs": 10.1998158, + "mean_abs": 0.745010817, + "psnr_db": 30.9142425, + "ref_absmax": 23.1216908, + "rel_max": 0.441136241, + "scaled_max_abs": 0.441136241 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 39.4555473, + "metrics": { + "corr": 0.999965716, + "finite": true, + "max_abs": 8.45146179, + "mean_abs": 0.656732819, + "psnr_db": 31.8669025, + "ref_absmax": 21.4202118, + "rel_max": 0.394555473, + "scaled_max_abs": 0.394555473 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 7, + "n_judged": 12, + "n_taps": 12, + "taps": [ + { + "band_ratio": 0.116213884, + "index": 0, + "metrics": { + "corr": 0.999999912, + "finite": true, + "max_abs": 0.0133981705, + "mean_abs": 0.000679588388, + "psnr_db": 83.6184843, + "ref_absmax": 11.5288897, + "rel_max": 0.00116213884, + "scaled_max_abs": 0.00116213884 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.430958027, + "index": 1, + "metrics": { + "corr": 0.999996278, + "finite": true, + "max_abs": 0.0362386703, + "mean_abs": 0.000924325333, + "psnr_db": 74.6037105, + "ref_absmax": 8.40886307, + "rel_max": 0.00430958027, + "scaled_max_abs": 0.00430958027 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_9_cast_fp16" + }, + "status": "pass", + "tap": "net.maxpool" + }, + { + "band_ratio": 0.384801236, + "index": 2, + "metrics": { + "corr": 0.999985791, + "finite": true, + "max_abs": 0.0657682419, + "mean_abs": 0.00216025527, + "psnr_db": 73.9813907, + "ref_absmax": 17.0914841, + "rel_max": 0.00384801236, + "scaled_max_abs": 0.00384801236 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_21_cast_fp16" + }, + "status": "pass", + "tap": "net.layer1.0" + }, + { + "band_ratio": 0.48244139, + "index": 3, + "metrics": { + "corr": 0.999957868, + "finite": true, + "max_abs": 0.0905132294, + "mean_abs": 0.003858105, + "psnr_db": 69.2665621, + "ref_absmax": 18.7614975, + "rel_max": 0.0048244139, + "scaled_max_abs": 0.0048244139 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_33_cast_fp16" + }, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_ratio": 0.485763828, + "index": 4, + "metrics": { + "corr": 0.999932954, + "finite": true, + "max_abs": 0.0540696979, + "mean_abs": 0.00188201915, + "psnr_db": 69.3375532, + "ref_absmax": 11.1308613, + "rel_max": 0.00485763828, + "scaled_max_abs": 0.00485763828 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_47_cast_fp16" + }, + "status": "pass", + "tap": "net.layer2.0" + }, + { + "band_ratio": 0.605789942, + "index": 5, + "metrics": { + "corr": 0.999922136, + "finite": true, + "max_abs": 0.068922922, + "mean_abs": 0.0019962136, + "psnr_db": 68.8164661, + "ref_absmax": 11.3773632, + "rel_max": 0.00605789942, + "scaled_max_abs": 0.00605789942 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59_cast_fp16" + }, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_ratio": 0.577717049, + "index": 6, + "metrics": { + "corr": 0.999937803, + "finite": true, + "max_abs": 0.0689224005, + "mean_abs": 0.00120167353, + "psnr_db": 73.0529363, + "ref_absmax": 11.930131, + "rel_max": 0.00577717049, + "scaled_max_abs": 0.00577717049 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_73_cast_fp16" + }, + "status": "pass", + "tap": "net.layer3.0" + }, + { + "band_ratio": 1.71483417, + "index": 7, + "metrics": { + "corr": 0.999901973, + "finite": true, + "max_abs": 0.119288564, + "mean_abs": 0.00145777084, + "psnr_db": 66.2038957, + "ref_absmax": 6.95627403, + "rel_max": 0.0171483417, + "scaled_max_abs": 0.0171483417 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85_cast_fp16" + }, + "status": "fail", + "tap": "net.layer3.1", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_ratio": 2.43476768, + "index": 8, + "metrics": { + "corr": 0.999831858, + "finite": true, + "max_abs": 0.11771512, + "mean_abs": 0.00085839442, + "psnr_db": 63.9868246, + "ref_absmax": 4.8347578, + "rel_max": 0.0243476768, + "scaled_max_abs": 0.0243476768 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_99_cast_fp16" + }, + "status": "fail", + "tap": "net.layer4.0", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_ratio": 1.29596729, + "index": 9, + "metrics": { + "corr": 0.999905255, + "finite": true, + "max_abs": 0.274329185, + "mean_abs": 0.00667376417, + "psnr_db": 62.9871787, + "ref_absmax": 21.1679096, + "rel_max": 0.0129596729, + "scaled_max_abs": 0.0129596729 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_3_cast_fp16" + }, + "status": "fail", + "tap": "net.layer4.1", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_ratio": 39.6587525, + "index": 10, + "metrics": { + "corr": 0.99997241, + "finite": true, + "max_abs": 4.24639416, + "mean_abs": 0.200837904, + "psnr_db": 28.1049976, + "ref_absmax": 10.7073317, + "rel_max": 0.396587525, + "scaled_max_abs": 0.396587525 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_x_cast_fp16" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 39.4555473, + "index": 11, + "metrics": { + "corr": 0.999965716, + "finite": true, + "max_abs": 8.45146179, + "mean_abs": 0.656732819, + "psnr_db": 31.8669025, + "ref_absmax": 21.4202118, + "rel_max": 0.394555473, + "scaled_max_abs": 0.394555473 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp16", + "id": "resnet18__pool_divisor__coreml_fp16", + "model": "resnet18", + "path": "coreml", + "variant": "pool_divisor" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/resnet18__pool_divisor__coreml_fp32.json b/bench/verdicts_e2e_gated/resnet18__pool_divisor__coreml_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..5a5963bc872a8ca112c0c04e05e44e9c097317c6 --- /dev/null +++ b/bench/verdicts_e2e_gated/resnet18__pool_divisor__coreml_fp32.json @@ -0,0 +1,749 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "reason": "first divergence at tap 10 is beyond the hypothesis taps (first 3) \u2014 interface faults surface earlier", + "status": "not_evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "_inversed_x", + "basis": "earliest tap over band with in-band predecessors", + "index": 10, + "neighbourhood": [ + { + "band_ratio": 0.0180211336, + "index": 9, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_3" + }, + "status": "pass", + "tap": "net.layer4.1" + }, + { + "band_ratio": 3950.62023, + "index": 10, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_x" + }, + "status": "fail", + "tap": "net.avgpool" + }, + { + "band_ratio": 3943.70617, + "index": 11, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc" + } + ], + "shape": 224, + "tap": "net.avgpool" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "03bd6767d583fcc51384bda6aeabc97b6d6414593709f74cb340d39438dd5a67", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "3c327ac78b99d7ddb88ad8e1fcaed18305156c2805d314eccab51a3d12ea3f81", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D2", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 4367.91071, + "metrics": { + "corr": 0.999986557, + "finite": true, + "max_abs": 10.0993481, + "mean_abs": 0.74607253, + "psnr_db": 30.9062609, + "ref_absmax": 23.1216908, + "rel_max": 0.436791071, + "scaled_max_abs": 0.436791071 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 10, + "n_judged": 12, + "n_taps": 12, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.26638033e-08, + "psnr_db": 163.904618, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.00671267222, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.19888306e-06, + "mean_abs": 1.42858947e-07, + "psnr_db": 151.281443, + "ref_absmax": 9.23459816, + "rel_max": 6.71267222e-07, + "scaled_max_abs": 6.71267222e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_9" + }, + "status": "pass", + "tap": "net.maxpool" + }, + { + "band_ratio": 0.00719228872, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.14440918e-05, + "mean_abs": 3.2933011e-07, + "psnr_db": 149.380229, + "ref_absmax": 15.9116135, + "rel_max": 7.19228872e-07, + "scaled_max_abs": 7.19228872e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_21" + }, + "status": "pass", + "tap": "net.layer1.0" + }, + { + "band_ratio": 0.0124787974, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.348423e-05, + "mean_abs": 6.32533143e-07, + "psnr_db": 144.082559, + "ref_absmax": 18.8193054, + "rel_max": 1.24787974e-06, + "scaled_max_abs": 1.24787974e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_33" + }, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_ratio": 0.0114755159, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.34259462e-05, + "mean_abs": 2.99279633e-07, + "psnr_db": 145.301524, + "ref_absmax": 11.699645, + "rel_max": 1.14755159e-06, + "scaled_max_abs": 1.14755159e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_47" + }, + "status": "pass", + "tap": "net.layer2.0" + }, + { + "band_ratio": 0.0116661354, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.35600567e-05, + "mean_abs": 3.19807066e-07, + "psnr_db": 144.565243, + "ref_absmax": 11.623435, + "rel_max": 1.16661354e-06, + "scaled_max_abs": 1.16661354e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59" + }, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_ratio": 0.00661729607, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.05990601e-06, + "mean_abs": 1.70566675e-07, + "psnr_db": 151.659576, + "ref_absmax": 13.6912508, + "rel_max": 6.61729607e-07, + "scaled_max_abs": 6.61729607e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_73" + }, + "status": "pass", + "tap": "net.layer3.0" + }, + { + "band_ratio": 0.0166023355, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.38282776e-05, + "mean_abs": 1.94893743e-07, + "psnr_db": 145.928397, + "ref_absmax": 8.32911587, + "rel_max": 1.66023355e-06, + "scaled_max_abs": 1.66023355e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85" + }, + "status": "pass", + "tap": "net.layer3.1" + }, + { + "band_ratio": 0.0128844546, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 7.86781311e-06, + "mean_abs": 1.13572418e-07, + "psnr_db": 144.887986, + "ref_absmax": 6.10643864, + "rel_max": 1.28844546e-06, + "scaled_max_abs": 1.28844546e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_99" + }, + "status": "pass", + "tap": "net.layer4.0" + }, + { + "band_ratio": 0.0193529097, + "index": 9, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.43322754e-05, + "mean_abs": 9.23204479e-07, + "psnr_db": 139.217695, + "ref_absmax": 17.7401104, + "rel_max": 1.93529097e-06, + "scaled_max_abs": 1.93529097e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_3" + }, + "status": "pass", + "tap": "net.layer4.1" + }, + { + "band_ratio": 4374.99995, + "index": 10, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.77208138, + "mean_abs": 0.232333, + "psnr_db": 26.9782389, + "ref_absmax": 10.9076147, + "rel_max": 0.437499995, + "scaled_max_abs": 0.437499995 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_x" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "wide_range", + "index": 22 + } + }, + { + "band_ratio": 4367.91071, + "index": 11, + "metrics": { + "corr": 0.999986557, + "finite": true, + "max_abs": 10.0993481, + "mean_abs": 0.74607253, + "psnr_db": 30.9062609, + "ref_absmax": 23.1216908, + "rel_max": 0.436791071, + "scaled_max_abs": 0.436791071 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 3943.70617, + "metrics": { + "corr": 0.999989862, + "finite": true, + "max_abs": 8.44750214, + "mean_abs": 0.657314067, + "psnr_db": 31.8636656, + "ref_absmax": 21.4202118, + "rel_max": 0.394370617, + "scaled_max_abs": 0.394370617 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 10, + "n_judged": 12, + "n_taps": 12, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.2793459e-08, + "psnr_db": 164.013874, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0064503639, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.42402267e-06, + "mean_abs": 1.38510049e-07, + "psnr_db": 150.857668, + "ref_absmax": 8.40886307, + "rel_max": 6.4503639e-07, + "scaled_max_abs": 6.4503639e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_9" + }, + "status": "pass", + "tap": "net.maxpool" + }, + { + "band_ratio": 0.00781175021, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33514404e-05, + "mean_abs": 3.27880737e-07, + "psnr_db": 150.126665, + "ref_absmax": 17.0914841, + "rel_max": 7.81175021e-07, + "scaled_max_abs": 7.81175021e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_21" + }, + "status": "pass", + "tap": "net.layer1.0" + }, + { + "band_ratio": 0.0116912359, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.19345093e-05, + "mean_abs": 6.39059208e-07, + "psnr_db": 143.983405, + "ref_absmax": 18.7614975, + "rel_max": 1.16912359e-06, + "scaled_max_abs": 1.16912359e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_33" + }, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_ratio": 0.0118343281, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.31726265e-05, + "mean_abs": 3.03505749e-07, + "psnr_db": 144.774145, + "ref_absmax": 11.1308613, + "rel_max": 1.18343281e-06, + "scaled_max_abs": 1.18343281e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_47" + }, + "status": "pass", + "tap": "net.layer2.0" + }, + { + "band_ratio": 0.0120134076, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.36680901e-05, + "mean_abs": 3.21417715e-07, + "psnr_db": 144.296148, + "ref_absmax": 11.3773632, + "rel_max": 1.20134076e-06, + "scaled_max_abs": 1.20134076e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_59" + }, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_ratio": 0.00919290381, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.09672546e-05, + "mean_abs": 1.72904926e-07, + "psnr_db": 150.340637, + "ref_absmax": 11.930131, + "rel_max": 9.19290381e-07, + "scaled_max_abs": 9.19290381e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_73" + }, + "status": "pass", + "tap": "net.layer3.0" + }, + { + "band_ratio": 0.0276761671, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.92523003e-05, + "mean_abs": 2.00977305e-07, + "psnr_db": 144.094785, + "ref_absmax": 6.95627403, + "rel_max": 2.76761671e-06, + "scaled_max_abs": 2.76761671e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_85" + }, + "status": "pass", + "tap": "net.layer3.1" + }, + { + "band_ratio": 0.0208349319, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.0073185e-05, + "mean_abs": 1.15847494e-07, + "psnr_db": 142.566423, + "ref_absmax": 4.8347578, + "rel_max": 2.08349319e-06, + "scaled_max_abs": 2.08349319e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_99" + }, + "status": "pass", + "tap": "net.layer4.0" + }, + { + "band_ratio": 0.0180211336, + "index": 9, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.81469727e-05, + "mean_abs": 9.53743426e-07, + "psnr_db": 140.320539, + "ref_absmax": 21.1679096, + "rel_max": 1.80211336e-06, + "scaled_max_abs": 1.80211336e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_3" + }, + "status": "pass", + "tap": "net.layer4.1" + }, + { + "band_ratio": 3950.62023, + "index": 10, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.2300601, + "mean_abs": 0.200987922, + "psnr_db": 28.1023342, + "ref_absmax": 10.7073317, + "rel_max": 0.395062023, + "scaled_max_abs": 0.395062023 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_x" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 3943.70617, + "index": 11, + "metrics": { + "corr": 0.999989862, + "finite": true, + "max_abs": 8.44750214, + "mean_abs": 0.657314067, + "psnr_db": 31.8636656, + "ref_absmax": 21.4202118, + "rel_max": 0.394370617, + "scaled_max_abs": 0.394370617 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp32", + "id": "resnet18__pool_divisor__coreml_fp32", + "model": "resnet18", + "path": "coreml", + "variant": "pool_divisor" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/resnet18__pool_divisor__litert_fp16.json b/bench/verdicts_e2e_gated/resnet18__pool_divisor__litert_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..f810d6df23cf4684105cdaca5bf72f2ad2af5dab --- /dev/null +++ b/bench/verdicts_e2e_gated/resnet18__pool_divisor__litert_fp16.json @@ -0,0 +1,886 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "at": "e2e", + "explained_by": null, + "nominal_band_ratio": 39.4931041, + "results": [ + { + "band_ratio": 39.4932545, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 97.0326099, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 176.322194, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 39.492482, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 103.809443, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 7.71957391e-05, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.00135803e-05, + "mean_abs": 8.03946565e-07, + "psnr_db": 145.449504, + "ref_absmax": 12.9716749, + "rel_max": 7.71957391e-07, + "scaled_max_abs": 7.71957391e-07 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 27, + "outputs": [ + "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models.res", + "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.linear.Linear_fc;_dequant", + "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.B", + "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.B" + ] + }, + { + "inputs": 43, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 2, + "n_ops_total": 60, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "serving_default_output_0_output", + "basis": "earliest tap over band with in-band predecessors", + "index": 11, + "neighbourhood": [ + { + "band_ratio": 0.0629439398, + "index": 10, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/zoo.DivisorPool_avgpool;1" + }, + "status": "pass", + "tap": "net.avgpool" + }, + { + "band_ratio": 39.4418923, + "index": 11, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.fc" + } + ], + "shape": 224, + "tap": "net.fc" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "2bc55efd4b00bf1fffe7caf34850781adec98fe13df48c3cca923d370a2eaf89", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "6c68def0e2b955a2efc141172e7ed550a27f8adb417bd1fa3ee24e74ac5f2352", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D2", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 43.7000311, + "metrics": { + "corr": 0.999986321, + "finite": true, + "max_abs": 10.1041861, + "mean_abs": 0.746225692, + "psnr_db": 30.9043983, + "ref_absmax": 23.1216908, + "rel_max": 0.437000311, + "scaled_max_abs": 0.437000311 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 11, + "n_judged": 12, + "n_taps": 12, + "taps": [ + { + "band_ratio": 8.27203959e-06, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.26638033e-08, + "psnr_db": 163.904618, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0552685286, + "index": 1, + "metrics": { + "corr": 0.999999962, + "finite": true, + "max_abs": 0.00510382652, + "mean_abs": 7.6244338e-05, + "psnr_db": 94.6749001, + "ref_absmax": 9.23459816, + "rel_max": 0.000552685286, + "scaled_max_abs": 0.000552685286 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.MaxPool2d_maxpool;2" + }, + "status": "pass", + "tap": "net.maxpool" + }, + { + "band_ratio": 0.0285533862, + "index": 2, + "metrics": { + "corr": 0.999999915, + "finite": true, + "max_abs": 0.00454330444, + "mean_abs": 0.000158366689, + "psnr_db": 95.091453, + "ref_absmax": 15.9116135, + "rel_max": 0.000285533862, + "scaled_max_abs": 0.000285533862 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer1.0" + }, + { + "band_ratio": 0.0262599506, + "index": 3, + "metrics": { + "corr": 0.999999807, + "finite": true, + "max_abs": 0.00494194031, + "mean_abs": 0.000244943041, + "psnr_db": 92.1941427, + "ref_absmax": 18.8193054, + "rel_max": 0.000262599506, + "scaled_max_abs": 0.000262599506 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_ratio": 0.0526554237, + "index": 4, + "metrics": { + "corr": 0.999999711, + "finite": true, + "max_abs": 0.00616049767, + "mean_abs": 0.000116616282, + "psnr_db": 93.01523, + "ref_absmax": 11.699645, + "rel_max": 0.000526554237, + "scaled_max_abs": 0.000526554237 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer2.0" + }, + { + "band_ratio": 0.0620361493, + "index": 5, + "metrics": { + "corr": 0.999999676, + "finite": true, + "max_abs": 0.00721073151, + "mean_abs": 0.000130509692, + "psnr_db": 92.3595398, + "ref_absmax": 11.623435, + "rel_max": 0.000620361493, + "scaled_max_abs": 0.000620361493 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_ratio": 0.0244031295, + "index": 6, + "metrics": { + "corr": 0.999999722, + "finite": true, + "max_abs": 0.00334109366, + "mean_abs": 8.5855404e-05, + "psnr_db": 97.27591, + "ref_absmax": 13.6912508, + "rel_max": 0.000244031295, + "scaled_max_abs": 0.000244031295 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer3.0" + }, + { + "band_ratio": 0.0515205535, + "index": 7, + "metrics": { + "corr": 0.999999649, + "finite": true, + "max_abs": 0.0042912066, + "mean_abs": 9.51070798e-05, + "psnr_db": 91.7208003, + "ref_absmax": 8.32911587, + "rel_max": 0.000515205535, + "scaled_max_abs": 0.000515205535 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer3.1" + }, + { + "band_ratio": 0.117556982, + "index": 8, + "metrics": { + "corr": 0.999999304, + "finite": true, + "max_abs": 0.007178545, + "mean_abs": 6.1036483e-05, + "psnr_db": 89.2698291, + "ref_absmax": 6.10643864, + "rel_max": 0.00117556982, + "scaled_max_abs": 0.00117556982 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer4.0" + }, + { + "band_ratio": 0.121889732, + "index": 9, + "metrics": { + "corr": 0.999999557, + "finite": true, + "max_abs": 0.021623373, + "mean_abs": 0.00049812914, + "psnr_db": 84.290483, + "ref_absmax": 17.7401104, + "rel_max": 0.00121889732, + "scaled_max_abs": 0.00121889732 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer4.1" + }, + { + "band_ratio": 0.0675608743, + "index": 10, + "metrics": { + "corr": 0.999999775, + "finite": true, + "max_abs": 0.00736927986, + "mean_abs": 0.000378536389, + "psnr_db": 84.0350689, + "ref_absmax": 10.9076147, + "rel_max": 0.000675608743, + "scaled_max_abs": 0.000675608743 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/zoo.DivisorPool_avgpool;1" + }, + "status": "pass", + "tap": "net.avgpool" + }, + { + "band_ratio": 43.7000311, + "index": 11, + "metrics": { + "corr": 0.999986321, + "finite": true, + "max_abs": 10.1041861, + "mean_abs": 0.746225692, + "psnr_db": 30.9043983, + "ref_absmax": 23.1216908, + "rel_max": 0.437000311, + "scaled_max_abs": 0.437000311 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 39.4418923, + "metrics": { + "corr": 0.999989607, + "finite": true, + "max_abs": 8.44853687, + "mean_abs": 0.657444579, + "psnr_db": 31.8620638, + "ref_absmax": 21.4202118, + "rel_max": 0.394418923, + "scaled_max_abs": 0.394418923 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 11, + "n_judged": 12, + "n_taps": 12, + "taps": [ + { + "band_ratio": 8.27203959e-06, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.2793459e-08, + "psnr_db": 164.013874, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0583793374, + "index": 1, + "metrics": { + "corr": 0.999999956, + "finite": true, + "max_abs": 0.00490903854, + "mean_abs": 7.63929271e-05, + "psnr_db": 93.8421926, + "ref_absmax": 8.40886307, + "rel_max": 0.000583793374, + "scaled_max_abs": 0.000583793374 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.MaxPool2d_maxpool;2" + }, + "status": "pass", + "tap": "net.maxpool" + }, + { + "band_ratio": 0.0274063399, + "index": 2, + "metrics": { + "corr": 0.999999901, + "finite": true, + "max_abs": 0.00468415022, + "mean_abs": 0.000161921874, + "psnr_db": 95.5433913, + "ref_absmax": 17.0914841, + "rel_max": 0.000274063399, + "scaled_max_abs": 0.000274063399 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer1.0" + }, + { + "band_ratio": 0.0251223373, + "index": 3, + "metrics": { + "corr": 0.999999774, + "finite": true, + "max_abs": 0.00471332669, + "mean_abs": 0.000250456457, + "psnr_db": 91.9597734, + "ref_absmax": 18.7614975, + "rel_max": 0.000251223373, + "scaled_max_abs": 0.000251223373 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_ratio": 0.0592551772, + "index": 4, + "metrics": { + "corr": 0.999999672, + "finite": true, + "max_abs": 0.00659561157, + "mean_abs": 0.000118937706, + "psnr_db": 92.4349706, + "ref_absmax": 11.1308613, + "rel_max": 0.000592551772, + "scaled_max_abs": 0.000592551772 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer2.0" + }, + { + "band_ratio": 0.0609826631, + "index": 5, + "metrics": { + "corr": 0.999999644, + "finite": true, + "max_abs": 0.00693821907, + "mean_abs": 0.000130281217, + "psnr_db": 92.2134029, + "ref_absmax": 11.3773632, + "rel_max": 0.000609826631, + "scaled_max_abs": 0.000609826631 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_ratio": 0.0279544214, + "index": 6, + "metrics": { + "corr": 0.999999683, + "finite": true, + "max_abs": 0.00333499908, + "mean_abs": 8.74087713e-05, + "psnr_db": 95.9804734, + "ref_absmax": 11.930131, + "rel_max": 0.000279544214, + "scaled_max_abs": 0.000279544214 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer3.0" + }, + { + "band_ratio": 0.0620957223, + "index": 7, + "metrics": { + "corr": 0.999999592, + "finite": true, + "max_abs": 0.00431954861, + "mean_abs": 9.86995916e-05, + "psnr_db": 90.0056449, + "ref_absmax": 6.95627403, + "rel_max": 0.000620957223, + "scaled_max_abs": 0.000620957223 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer3.1" + }, + { + "band_ratio": 0.15225034, + "index": 8, + "metrics": { + "corr": 0.999999218, + "finite": true, + "max_abs": 0.00736093521, + "mean_abs": 6.06419468e-05, + "psnr_db": 87.3266954, + "ref_absmax": 4.8347578, + "rel_max": 0.0015225034, + "scaled_max_abs": 0.0015225034 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer4.0" + }, + { + "band_ratio": 0.0953705138, + "index": 9, + "metrics": { + "corr": 0.999999449, + "finite": true, + "max_abs": 0.0201879442, + "mean_abs": 0.000519985361, + "psnr_db": 85.3111292, + "ref_absmax": 21.1679096, + "rel_max": 0.000953705138, + "scaled_max_abs": 0.000953705138 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer4.1" + }, + { + "band_ratio": 0.0629439398, + "index": 10, + "metrics": { + "corr": 0.999999746, + "finite": true, + "max_abs": 0.00673961639, + "mean_abs": 0.00037416964, + "psnr_db": 83.9774555, + "ref_absmax": 10.7073317, + "rel_max": 0.000629439398, + "scaled_max_abs": 0.000629439398 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/zoo.DivisorPool_avgpool;1" + }, + "status": "pass", + "tap": "net.avgpool" + }, + { + "band_ratio": 39.4418923, + "index": 11, + "metrics": { + "corr": 0.999989607, + "finite": true, + "max_abs": 8.44853687, + "mean_abs": 0.657444579, + "psnr_db": 31.8620638, + "ref_absmax": 21.4202118, + "rel_max": 0.394418923, + "scaled_max_abs": 0.394418923 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp16", + "id": "resnet18__pool_divisor__litert_fp16", + "model": "resnet18", + "path": "litert", + "variant": "pool_divisor" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/resnet18__pool_divisor__litert_fp32.json b/bench/verdicts_e2e_gated/resnet18__pool_divisor__litert_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..2c96c5dc1f3f87e3bd5a59ec8b8b891c170db5a0 --- /dev/null +++ b/bench/verdicts_e2e_gated/resnet18__pool_divisor__litert_fp32.json @@ -0,0 +1,883 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "at": "e2e", + "explained_by": null, + "nominal_band_ratio": 3949.50996, + "results": [ + { + "band_ratio": 3949.525, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 9703.74177, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 17632.4185, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 3949.44776, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 10378.8019, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 0.00827031415, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.07288361e-05, + "mean_abs": 7.98116647e-07, + "psnr_db": 145.782474, + "ref_absmax": 12.9727068, + "rel_max": 8.27031415e-07, + "scaled_max_abs": 8.27031415e-07 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 7, + "outputs": [ + "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models.res" + ] + }, + { + "inputs": 43, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 2, + "n_ops_total": 39, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "serving_default_output_0_output", + "basis": "earliest tap over band with in-band predecessors", + "index": 11, + "neighbourhood": [ + { + "band_ratio": 0.00823873558, + "index": 10, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/zoo.DivisorPool_avgpool;1" + }, + "status": "pass", + "tap": "net.avgpool" + }, + { + "band_ratio": 3943.7075, + "index": 11, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.fc" + } + ], + "shape": 224, + "tap": "net.fc" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "e8b95c6292fe52a180dec1f04ae1c8a595b0b35a90e1c2aae89e5f6d76785870", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "8ae4ddf760e582726d59bbbbeecee66af355f74562c5a82a7bf4f0bdcc9c3344", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D2", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 4367.91112, + "metrics": { + "corr": 0.999986557, + "finite": true, + "max_abs": 10.099349, + "mean_abs": 0.74607266, + "psnr_db": 30.9062591, + "ref_absmax": 23.1216908, + "rel_max": 0.436791112, + "scaled_max_abs": 0.436791112 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 11, + "n_judged": 12, + "n_taps": 12, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.26638033e-08, + "psnr_db": 163.904618, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.00645449252, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.96046448e-06, + "mean_abs": 1.11272893e-07, + "psnr_db": 152.577894, + "ref_absmax": 9.23459816, + "rel_max": 6.45449252e-07, + "scaled_max_abs": 6.45449252e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.MaxPool2d_maxpool;2" + }, + "status": "pass", + "tap": "net.maxpool" + }, + { + "band_ratio": 0.00659293132, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.04904175e-05, + "mean_abs": 2.97101586e-07, + "psnr_db": 150.017551, + "ref_absmax": 15.9116135, + "rel_max": 6.59293132e-07, + "scaled_max_abs": 6.59293132e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer1.0" + }, + { + "band_ratio": 0.0113386028, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.13384628e-05, + "mean_abs": 5.66449512e-07, + "psnr_db": 144.989362, + "ref_absmax": 18.8193054, + "rel_max": 1.13386028e-06, + "scaled_max_abs": 1.13386028e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_ratio": 0.0107495398, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.257658e-05, + "mean_abs": 2.663497e-07, + "psnr_db": 146.20977, + "ref_absmax": 11.699645, + "rel_max": 1.07495398e-06, + "scaled_max_abs": 1.07495398e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer2.0" + }, + { + "band_ratio": 0.0111789781, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.29938126e-05, + "mean_abs": 2.84333162e-07, + "psnr_db": 145.489246, + "ref_absmax": 11.623435, + "rel_max": 1.11789781e-06, + "scaled_max_abs": 1.11789781e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_ratio": 0.00835868977, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.14440918e-05, + "mean_abs": 1.51939911e-07, + "psnr_db": 152.454047, + "ref_absmax": 13.6912508, + "rel_max": 8.35868977e-07, + "scaled_max_abs": 8.35868977e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer3.0" + }, + { + "band_ratio": 0.0137398638, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.14440918e-05, + "mean_abs": 1.74168702e-07, + "psnr_db": 146.72667, + "ref_absmax": 8.32911587, + "rel_max": 1.37398638e-06, + "scaled_max_abs": 1.37398638e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer3.1" + }, + { + "band_ratio": 0.0135189163, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.2552433e-06, + "mean_abs": 1.02009437e-07, + "psnr_db": 145.664112, + "ref_absmax": 6.10643864, + "rel_max": 1.35189163e-06, + "scaled_max_abs": 1.35189163e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer4.0" + }, + { + "band_ratio": 0.0180089576, + "index": 9, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.19480896e-05, + "mean_abs": 7.93566727e-07, + "psnr_db": 140.393878, + "ref_absmax": 17.7401104, + "rel_max": 1.80089576e-06, + "scaled_max_abs": 1.80089576e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer4.1" + }, + { + "band_ratio": 0.00874319768, + "index": 10, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-06, + "mean_abs": 4.7473879e-07, + "psnr_db": 141.806416, + "ref_absmax": 10.9076147, + "rel_max": 8.74319768e-07, + "scaled_max_abs": 8.74319768e-07 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/zoo.DivisorPool_avgpool;1" + }, + "status": "pass", + "tap": "net.avgpool" + }, + { + "band_ratio": 4367.91112, + "index": 11, + "metrics": { + "corr": 0.999986557, + "finite": true, + "max_abs": 10.099349, + "mean_abs": 0.74607266, + "psnr_db": 30.9062591, + "ref_absmax": 23.1216908, + "rel_max": 0.436791112, + "scaled_max_abs": 0.436791112 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 3943.7075, + "metrics": { + "corr": 0.999989862, + "finite": true, + "max_abs": 8.447505, + "mean_abs": 0.65731426, + "psnr_db": 31.8636629, + "ref_absmax": 21.4202118, + "rel_max": 0.39437075, + "scaled_max_abs": 0.39437075 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 11, + "n_judged": 12, + "n_taps": 12, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.2793459e-08, + "psnr_db": 164.013874, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.00623771454, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.24520874e-06, + "mean_abs": 1.07515782e-07, + "psnr_db": 152.185232, + "ref_absmax": 8.40886307, + "rel_max": 6.23771454e-07, + "scaled_max_abs": 6.23771454e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.pooling.MaxPool2d_maxpool;2" + }, + "status": "pass", + "tap": "net.maxpool" + }, + { + "band_ratio": 0.00892771453, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.52587891e-05, + "mean_abs": 2.97063275e-07, + "psnr_db": 150.741408, + "ref_absmax": 17.0914841, + "rel_max": 8.92771453e-07, + "scaled_max_abs": 8.92771453e-07 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer1.0" + }, + { + "band_ratio": 0.0123901685, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.32458115e-05, + "mean_abs": 5.73300881e-07, + "psnr_db": 144.862399, + "ref_absmax": 18.7614975, + "rel_max": 1.23901685e-06, + "scaled_max_abs": 1.23901685e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer1/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_ratio": 0.0104688287, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.16527081e-05, + "mean_abs": 2.70043333e-07, + "psnr_db": 145.645301, + "ref_absmax": 11.1308613, + "rel_max": 1.04688287e-06, + "scaled_max_abs": 1.04688287e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer2.0" + }, + { + "band_ratio": 0.0117088976, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33216381e-05, + "mean_abs": 2.86939477e-07, + "psnr_db": 145.151554, + "ref_absmax": 11.3773632, + "rel_max": 1.17088976e-06, + "scaled_max_abs": 1.17088976e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer2/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_ratio": 0.0125902813, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.50203705e-05, + "mean_abs": 1.53900826e-07, + "psnr_db": 151.136934, + "ref_absmax": 11.930131, + "rel_max": 1.25902813e-06, + "scaled_max_abs": 1.25902813e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer3.0" + }, + { + "band_ratio": 0.0185079012, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.28746033e-05, + "mean_abs": 1.77238474e-07, + "psnr_db": 145.061981, + "ref_absmax": 6.95627403, + "rel_max": 1.85079012e-06, + "scaled_max_abs": 1.85079012e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer3/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer3.1" + }, + { + "band_ratio": 0.0172597069, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.34465027e-06, + "mean_abs": 9.99396693e-08, + "psnr_db": 143.730764, + "ref_absmax": 4.8347578, + "rel_max": 1.72597069e-06, + "scaled_max_abs": 1.72597069e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_0/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer4.0" + }, + { + "band_ratio": 0.0144169069, + "index": 9, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.05175781e-05, + "mean_abs": 7.78311787e-07, + "psnr_db": 142.147521, + "ref_absmax": 21.1679096, + "rel_max": 1.44169069e-06, + "scaled_max_abs": 1.44169069e-06 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/torch.nn.modules.container.Sequential_layer4/torchvision.models.resnet.BasicBlock_1/torch.nn.modules.activation.ReLU_relu;;zoo.Source/torchvision.models" + }, + "status": "pass", + "tap": "net.layer4.1" + }, + { + "band_ratio": 0.00823873558, + "index": 10, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.82148743e-06, + "mean_abs": 4.31332652e-07, + "psnr_db": 142.896002, + "ref_absmax": 10.7073317, + "rel_max": 8.23873558e-07, + "scaled_max_abs": 8.23873558e-07 + }, + "op": { + "candidates": 1, + "layout": "reshape", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/torchvision.models.resnet.ResNet_net/zoo.DivisorPool_avgpool;1" + }, + "status": "pass", + "tap": "net.avgpool" + }, + { + "band_ratio": 3943.7075, + "index": 11, + "metrics": { + "corr": 0.999989862, + "finite": true, + "max_abs": 8.447505, + "mean_abs": 0.65731426, + "psnr_db": 31.8636629, + "ref_absmax": 21.4202118, + "rel_max": 0.39437075, + "scaled_max_abs": 0.39437075 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp32", + "id": "resnet18__pool_divisor__litert_fp32", + "model": "resnet18", + "path": "litert", + "variant": "pool_divisor" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/resnet18__pool_divisor__onnx_fp16.json b/bench/verdicts_e2e_gated/resnet18__pool_divisor__onnx_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..95d2fe1e928083dcbcd978681a0b55992b3fe318 --- /dev/null +++ b/bench/verdicts_e2e_gated/resnet18__pool_divisor__onnx_fp16.json @@ -0,0 +1,749 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "reason": "first divergence at tap 10 is beyond the hypothesis taps (first 3) \u2014 interface faults surface earlier", + "status": "not_evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "/net/avgpool/Div_output_0", + "basis": "earliest tap over band with in-band predecessors", + "index": 10, + "neighbourhood": [ + { + "band_ratio": 0.131329292, + "index": 9, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer4.1" + }, + { + "band_ratio": 39.5493064, + "index": 10, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/Div_output_0" + }, + "status": "fail", + "tap": "net.avgpool" + }, + { + "band_ratio": 39.4428585, + "index": 11, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc" + } + ], + "shape": 224, + "tap": "net.avgpool" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "6c412f9e5d60a359edef788f5d2eefda0ebb0db417d0da5e1d6baf9f0e13d6d0", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "a474b5100486ad35a063941dece6bb05d8d569f992884e31630f00b388807d3d", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D2", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 43.6947145, + "metrics": { + "corr": 0.999986161, + "finite": true, + "max_abs": 10.1029568, + "mean_abs": 0.74622017, + "psnr_db": 30.9043636, + "ref_absmax": 23.1216908, + "rel_max": 0.436947145, + "scaled_max_abs": 0.436947145 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 10, + "n_judged": 12, + "n_taps": 12, + "taps": [ + { + "band_ratio": 0.0441313312, + "index": 0, + "metrics": { + "corr": 0.999999966, + "finite": true, + "max_abs": 0.00508785248, + "mean_abs": 0.000405953078, + "psnr_db": 88.0186903, + "ref_absmax": 11.5288897, + "rel_max": 0.000441313312, + "scaled_max_abs": 0.000441313312 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0640982743, + "index": 1, + "metrics": { + "corr": 0.999999909, + "finite": true, + "max_abs": 0.00591921806, + "mean_abs": 0.000156664105, + "psnr_db": 90.9101891, + "ref_absmax": 9.23459816, + "rel_max": 0.000640982743, + "scaled_max_abs": 0.000640982743 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/maxpool/MaxPool_output_0" + }, + "status": "pass", + "tap": "net.maxpool" + }, + { + "band_ratio": 0.0384577671, + "index": 2, + "metrics": { + "corr": 0.999999849, + "finite": true, + "max_abs": 0.00611925125, + "mean_abs": 0.000234829637, + "psnr_db": 92.5526304, + "ref_absmax": 15.9116135, + "rel_max": 0.000384577671, + "scaled_max_abs": 0.000384577671 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer1.0" + }, + { + "band_ratio": 0.0524185506, + "index": 3, + "metrics": { + "corr": 0.999999705, + "finite": true, + "max_abs": 0.00986480713, + "mean_abs": 0.000332652643, + "psnr_db": 90.3693126, + "ref_absmax": 18.8193054, + "rel_max": 0.000524185506, + "scaled_max_abs": 0.000524185506 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_ratio": 0.0613549091, + "index": 4, + "metrics": { + "corr": 0.999999522, + "finite": true, + "max_abs": 0.00717830658, + "mean_abs": 0.000162431505, + "psnr_db": 90.8349286, + "ref_absmax": 11.699645, + "rel_max": 0.000613549091, + "scaled_max_abs": 0.000613549091 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer2.0" + }, + { + "band_ratio": 0.0555682387, + "index": 5, + "metrics": { + "corr": 0.999999447, + "finite": true, + "max_abs": 0.00645893812, + "mean_abs": 0.000178505766, + "psnr_db": 90.0284719, + "ref_absmax": 11.623435, + "rel_max": 0.000555682387, + "scaled_max_abs": 0.000555682387 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_ratio": 0.0408548376, + "index": 6, + "metrics": { + "corr": 0.999999446, + "finite": true, + "max_abs": 0.00559353828, + "mean_abs": 0.000124051904, + "psnr_db": 94.267843, + "ref_absmax": 13.6912508, + "rel_max": 0.000408548376, + "scaled_max_abs": 0.000408548376 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer3.0" + }, + { + "band_ratio": 0.0652819754, + "index": 7, + "metrics": { + "corr": 0.99999922, + "finite": true, + "max_abs": 0.00543741137, + "mean_abs": 0.000147396744, + "psnr_db": 88.2202678, + "ref_absmax": 8.32911587, + "rel_max": 0.000652819754, + "scaled_max_abs": 0.000652819754 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer3.1" + }, + { + "band_ratio": 0.141629438, + "index": 8, + "metrics": { + "corr": 0.999998468, + "finite": true, + "max_abs": 0.00864851475, + "mean_abs": 9.56121682e-05, + "psnr_db": 85.8471326, + "ref_absmax": 6.10643864, + "rel_max": 0.00141629438, + "scaled_max_abs": 0.00141629438 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer4.0" + }, + { + "band_ratio": 0.158067242, + "index": 9, + "metrics": { + "corr": 0.999998786, + "finite": true, + "max_abs": 0.0280413032, + "mean_abs": 0.000834968418, + "psnr_db": 79.9927633, + "ref_absmax": 17.7401104, + "rel_max": 0.00158067242, + "scaled_max_abs": 0.00158067242 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer4.1" + }, + { + "band_ratio": 43.7749438, + "index": 10, + "metrics": { + "corr": 0.999999307, + "finite": true, + "max_abs": 4.77480221, + "mean_abs": 0.232378618, + "psnr_db": 26.9763815, + "ref_absmax": 10.9076147, + "rel_max": 0.437749438, + "scaled_max_abs": 0.437749438 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/Div_output_0" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "wide_range", + "index": 22 + } + }, + { + "band_ratio": 43.6947145, + "index": 11, + "metrics": { + "corr": 0.999986161, + "finite": true, + "max_abs": 10.1029568, + "mean_abs": 0.74622017, + "psnr_db": 30.9043636, + "ref_absmax": 23.1216908, + "rel_max": 0.436947145, + "scaled_max_abs": 0.436947145 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 39.4428585, + "metrics": { + "corr": 0.999989388, + "finite": true, + "max_abs": 8.44874382, + "mean_abs": 0.657444651, + "psnr_db": 31.8621613, + "ref_absmax": 21.4202118, + "rel_max": 0.394428585, + "scaled_max_abs": 0.394428585 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 10, + "n_judged": 12, + "n_taps": 12, + "taps": [ + { + "band_ratio": 0.0439328023, + "index": 0, + "metrics": { + "corr": 0.999999965, + "finite": true, + "max_abs": 0.00506496429, + "mean_abs": 0.000406712054, + "psnr_db": 88.0749992, + "ref_absmax": 11.5288897, + "rel_max": 0.000439328023, + "scaled_max_abs": 0.000439328023 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0650593626, + "index": 1, + "metrics": { + "corr": 0.999999901, + "finite": true, + "max_abs": 0.00547075272, + "mean_abs": 0.000153226313, + "psnr_db": 90.3189603, + "ref_absmax": 8.40886307, + "rel_max": 0.000650593626, + "scaled_max_abs": 0.000650593626 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/maxpool/MaxPool_output_0" + }, + "status": "pass", + "tap": "net.maxpool" + }, + { + "band_ratio": 0.0506201414, + "index": 2, + "metrics": { + "corr": 0.999999831, + "finite": true, + "max_abs": 0.0086517334, + "mean_abs": 0.000236261028, + "psnr_db": 93.1783463, + "ref_absmax": 17.0914841, + "rel_max": 0.000506201414, + "scaled_max_abs": 0.000506201414 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer1.0" + }, + { + "band_ratio": 0.0535356941, + "index": 3, + "metrics": { + "corr": 0.999999662, + "finite": true, + "max_abs": 0.0100440979, + "mean_abs": 0.000337286326, + "psnr_db": 90.2185942, + "ref_absmax": 18.7614975, + "rel_max": 0.000535356941, + "scaled_max_abs": 0.000535356941 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_ratio": 0.0610469266, + "index": 4, + "metrics": { + "corr": 0.999999468, + "finite": true, + "max_abs": 0.00679504871, + "mean_abs": 0.000164360102, + "psnr_db": 90.3342488, + "ref_absmax": 11.1308613, + "rel_max": 0.000610469266, + "scaled_max_abs": 0.000610469266 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer2.0" + }, + { + "band_ratio": 0.0629964887, + "index": 5, + "metrics": { + "corr": 0.999999391, + "finite": true, + "max_abs": 0.00716733932, + "mean_abs": 0.000177770421, + "psnr_db": 89.8777049, + "ref_absmax": 11.3773632, + "rel_max": 0.000629964887, + "scaled_max_abs": 0.000629964887 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_ratio": 0.0475472973, + "index": 6, + "metrics": { + "corr": 0.999999383, + "finite": true, + "max_abs": 0.00567245483, + "mean_abs": 0.000124959044, + "psnr_db": 93.0830986, + "ref_absmax": 11.930131, + "rel_max": 0.000475472973, + "scaled_max_abs": 0.000475472973 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer3.0" + }, + { + "band_ratio": 0.0795143564, + "index": 7, + "metrics": { + "corr": 0.999999133, + "finite": true, + "max_abs": 0.00553123653, + "mean_abs": 0.000148407515, + "psnr_db": 86.7217411, + "ref_absmax": 6.95627403, + "rel_max": 0.000795143564, + "scaled_max_abs": 0.000795143564 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer3.1" + }, + { + "band_ratio": 0.179190277, + "index": 8, + "metrics": { + "corr": 0.999998311, + "finite": true, + "max_abs": 0.00866341591, + "mean_abs": 9.38812919e-05, + "psnr_db": 83.9777606, + "ref_absmax": 4.8347578, + "rel_max": 0.00179190277, + "scaled_max_abs": 0.00179190277 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer4.0" + }, + { + "band_ratio": 0.131329292, + "index": 9, + "metrics": { + "corr": 0.999998568, + "finite": true, + "max_abs": 0.0277996659, + "mean_abs": 0.000860812905, + "psnr_db": 81.1920091, + "ref_absmax": 21.1679096, + "rel_max": 0.00131329292, + "scaled_max_abs": 0.00131329292 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer4.1" + }, + { + "band_ratio": 39.5493064, + "index": 10, + "metrics": { + "corr": 0.999999274, + "finite": true, + "max_abs": 4.23467541, + "mean_abs": 0.201012127, + "psnr_db": 28.1012827, + "ref_absmax": 10.7073317, + "rel_max": 0.395493064, + "scaled_max_abs": 0.395493064 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/Div_output_0" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 39.4428585, + "index": 11, + "metrics": { + "corr": 0.999989388, + "finite": true, + "max_abs": 8.44874382, + "mean_abs": 0.657444651, + "psnr_db": 31.8621613, + "ref_absmax": 21.4202118, + "rel_max": 0.394428585, + "scaled_max_abs": 0.394428585 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp16", + "id": "resnet18__pool_divisor__onnx_fp16", + "model": "resnet18", + "path": "onnx", + "variant": "pool_divisor" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/resnet18__pool_divisor__onnx_fp32.json b/bench/verdicts_e2e_gated/resnet18__pool_divisor__onnx_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..c9c2ab5e2c945ddbde39689486e2c2394dfd0317 --- /dev/null +++ b/bench/verdicts_e2e_gated/resnet18__pool_divisor__onnx_fp32.json @@ -0,0 +1,749 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "reason": "first divergence at tap 10 is beyond the hypothesis taps (first 3) \u2014 interface faults surface earlier", + "status": "not_evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "/net/avgpool/Div_output_0", + "basis": "earliest tap over band with in-band predecessors", + "index": 10, + "neighbourhood": [ + { + "band_ratio": 0.0117137368, + "index": 9, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer4.1" + }, + { + "band_ratio": 3950.61755, + "index": 10, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/Div_output_0" + }, + "status": "fail", + "tap": "net.avgpool" + }, + { + "band_ratio": 3943.70706, + "index": 11, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc" + } + ], + "shape": 224, + "tap": "net.avgpool" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "3f120c9dc8bf61f137d9965f19cd02c561720a70343ff5c799b46c2f0297eb96", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "18d3ff842ea6c7c326862bd6751e74d2441639389ce5ec4e6392aebc26fd9c9f" + }, + "224": { + "converted": "0d7fe87f23e8217bcf4cce65e5ea6d1406db70e91d17a1c40dc303824af4180b", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "8db2f8dca921463d338f0478914b7c1445fc291a3d4e9a30512ba59de53d60ee" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D2", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 4367.91154, + "metrics": { + "corr": 0.999986557, + "finite": true, + "max_abs": 10.09935, + "mean_abs": 0.746072467, + "psnr_db": 30.9062617, + "ref_absmax": 23.1216908, + "rel_max": 0.436791154, + "scaled_max_abs": 0.436791154 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 10, + "n_judged": 12, + "n_taps": 12, + "taps": [ + { + "band_ratio": 0.0, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 11.5288897, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.00645449252, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.96046448e-06, + "mean_abs": 1.02334015e-07, + "psnr_db": 153.063362, + "ref_absmax": 9.23459816, + "rel_max": 6.45449252e-07, + "scaled_max_abs": 6.45449252e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/maxpool/MaxPool_output_0" + }, + "status": "pass", + "tap": "net.maxpool" + }, + { + "band_ratio": 0.00599357393, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-06, + "mean_abs": 2.4274631e-07, + "psnr_db": 151.715113, + "ref_absmax": 15.9116135, + "rel_max": 5.99357393e-07, + "scaled_max_abs": 5.99357393e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer1.0" + }, + { + "band_ratio": 0.010594309, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.99377537e-05, + "mean_abs": 4.59455778e-07, + "psnr_db": 146.75967, + "ref_absmax": 18.8193054, + "rel_max": 1.0594309e-06, + "scaled_max_abs": 1.0594309e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_ratio": 0.00817678267, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.56654549e-06, + "mean_abs": 2.13176991e-07, + "psnr_db": 148.166325, + "ref_absmax": 11.699645, + "rel_max": 8.17678267e-07, + "scaled_max_abs": 8.17678267e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer2.0" + }, + { + "band_ratio": 0.0107943802, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.25467777e-05, + "mean_abs": 2.26584255e-07, + "psnr_db": 147.499631, + "ref_absmax": 11.623435, + "rel_max": 1.07943802e-06, + "scaled_max_abs": 1.07943802e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_ratio": 0.00696557481, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-06, + "mean_abs": 1.19826069e-07, + "psnr_db": 154.575146, + "ref_absmax": 13.6912508, + "rel_max": 6.96557481e-07, + "scaled_max_abs": 6.96557481e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer3.0" + }, + { + "band_ratio": 0.0135967403, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.13248825e-05, + "mean_abs": 1.37776834e-07, + "psnr_db": 148.758922, + "ref_absmax": 8.32911587, + "rel_max": 1.35967403e-06, + "scaled_max_abs": 1.35967403e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer3.1" + }, + { + "band_ratio": 0.0113715072, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.94394112e-06, + "mean_abs": 8.15687287e-08, + "psnr_db": 147.659009, + "ref_absmax": 6.10643864, + "rel_max": 1.13715072e-06, + "scaled_max_abs": 1.13715072e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer4.0" + }, + { + "band_ratio": 0.0166650055, + "index": 9, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.95639038e-05, + "mean_abs": 6.323273e-07, + "psnr_db": 142.45884, + "ref_absmax": 17.7401104, + "rel_max": 1.66650055e-06, + "scaled_max_abs": 1.66650055e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer4.1" + }, + { + "band_ratio": 4374.99863, + "index": 10, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.77207994, + "mean_abs": 0.232332984, + "psnr_db": 26.9782394, + "ref_absmax": 10.9076147, + "rel_max": 0.437499863, + "scaled_max_abs": 0.437499863 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/Div_output_0" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "wide_range", + "index": 22 + } + }, + { + "band_ratio": 4367.91154, + "index": 11, + "metrics": { + "corr": 0.999986557, + "finite": true, + "max_abs": 10.09935, + "mean_abs": 0.746072467, + "psnr_db": 30.9062617, + "ref_absmax": 23.1216908, + "rel_max": 0.436791154, + "scaled_max_abs": 0.436791154 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 3943.70706, + "metrics": { + "corr": 0.999989862, + "finite": true, + "max_abs": 8.44750404, + "mean_abs": 0.657314014, + "psnr_db": 31.8636664, + "ref_absmax": 21.4202118, + "rel_max": 0.394370706, + "scaled_max_abs": 0.394370706 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 10, + "n_judged": 12, + "n_taps": 12, + "taps": [ + { + "band_ratio": 0.0, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 11.5288897, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0068047795, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.7220459e-06, + "mean_abs": 9.8498275e-08, + "psnr_db": 152.668994, + "ref_absmax": 8.40886307, + "rel_max": 6.8047795e-07, + "scaled_max_abs": 6.8047795e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/maxpool/MaxPool_output_0" + }, + "status": "pass", + "tap": "net.maxpool" + }, + { + "band_ratio": 0.00781175021, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33514404e-05, + "mean_abs": 2.40416478e-07, + "psnr_db": 152.515216, + "ref_absmax": 17.0914841, + "rel_max": 7.81175021e-07, + "scaled_max_abs": 7.81175021e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer1.0" + }, + { + "band_ratio": 0.010547528, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.97887421e-05, + "mean_abs": 4.61762345e-07, + "psnr_db": 146.71458, + "ref_absmax": 18.7614975, + "rel_max": 1.0547528e-06, + "scaled_max_abs": 1.0547528e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer1/layer1.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer1.1" + }, + { + "band_ratio": 0.0109842378, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.22264028e-05, + "mean_abs": 2.14888521e-07, + "psnr_db": 147.700816, + "ref_absmax": 11.1308613, + "rel_max": 1.09842378e-06, + "scaled_max_abs": 1.09842378e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer2.0" + }, + { + "band_ratio": 0.0116434116, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.32471323e-05, + "mean_abs": 2.26556506e-07, + "psnr_db": 147.285533, + "ref_absmax": 11.3773632, + "rel_max": 1.16434116e-06, + "scaled_max_abs": 1.16434116e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer2/layer2.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer2.1" + }, + { + "band_ratio": 0.00579552632, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 6.91413879e-06, + "mean_abs": 1.20977114e-07, + "psnr_db": 153.320205, + "ref_absmax": 11.930131, + "rel_max": 5.79552632e-07, + "scaled_max_abs": 5.79552632e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer3.0" + }, + { + "band_ratio": 0.015423251, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.07288361e-05, + "mean_abs": 1.41164467e-07, + "psnr_db": 147.02089, + "ref_absmax": 6.95627403, + "rel_max": 1.5423251e-06, + "scaled_max_abs": 1.5423251e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer3/layer3.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer3.1" + }, + { + "band_ratio": 0.0175062742, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 8.46385956e-06, + "mean_abs": 8.13047191e-08, + "psnr_db": 145.514092, + "ref_absmax": 4.8347578, + "rel_max": 1.75062742e-06, + "scaled_max_abs": 1.75062742e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.0/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer4.0" + }, + { + "band_ratio": 0.0117137368, + "index": 9, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.47955322e-05, + "mean_abs": 6.50171234e-07, + "psnr_db": 143.607194, + "ref_absmax": 21.1679096, + "rel_max": 1.17137368e-06, + "scaled_max_abs": 1.17137368e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/layer4/layer4.1/relu_1/Relu_output_0" + }, + "status": "pass", + "tap": "net.layer4.1" + }, + { + "band_ratio": 3950.61755, + "index": 10, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.23005724, + "mean_abs": 0.200987922, + "psnr_db": 28.1023345, + "ref_absmax": 10.7073317, + "rel_max": 0.395061755, + "scaled_max_abs": 0.395061755 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/avgpool/Div_output_0" + }, + "status": "fail", + "tap": "net.avgpool", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 3943.70706, + "index": 11, + "metrics": { + "corr": 0.999989862, + "finite": true, + "max_abs": 8.44750404, + "mean_abs": 0.657314014, + "psnr_db": 31.8636664, + "ref_absmax": 21.4202118, + "rel_max": 0.394370706, + "scaled_max_abs": 0.394370706 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.fc", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp32", + "id": "resnet18__pool_divisor__onnx_fp32", + "model": "resnet18", + "path": "onnx", + "variant": "pool_divisor" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/tinyvit__baked_shape__coreml_fp16.json b/bench/verdicts_e2e_gated/tinyvit__baked_shape__coreml_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..8f03da415b97d63d21f0faaccbad07612fb67cb9 --- /dev/null +++ b/bench/verdicts_e2e_gated/tinyvit__baked_shape__coreml_fp16.json @@ -0,0 +1,624 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [ + "inputs[0]: dtype float16 (declared float32)", + "outputs[0]: dtype float16 (declared float32)" + ], + "status": "precision_narrowing" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "status": "flag" + } + }, + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "x_5_cast_fp16", + "basis": "nominal shape 224 inside band; shape 192 over band", + "index": 1, + "neighbourhood": [ + { + "band_ratio": 0.117570499, + "index": 0, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 1.47449007, + "index": 1, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_5_cast_fp16" + }, + "status": "fail", + "tap": "net.patch_embed" + }, + { + "band_ratio": 1.45772783, + "index": 2, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5_cast_fp16" + }, + "status": "fail", + "tap": "net.pos_embed" + } + ], + "shape": 192, + "tap": "net.patch_embed" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "6d7d73d29f504ef1bb18482838321a593a4c6978aa450c9f00f0519b7a51ff18", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "5430fd6da54612ccdc73a3180116c0a8d19224ecfcc7ca2d7ce9df494c8307f9", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D6", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.96875, + "band_ratio": 25.8957821, + "metrics": { + "corr": 0.995913585, + "finite": true, + "max_abs": 0.327858329, + "mean_abs": 0.062553372, + "psnr_db": 28.530925, + "ref_absmax": 1.26606846, + "rel_max": 0.258957821, + "scaled_max_abs": 0.258957821 + }, + "status": "fail", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + "first_fail_index": 1, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 0.117570499, + "index": 0, + "metrics": { + "corr": 0.999999914, + "finite": true, + "max_abs": 0.0135545731, + "mean_abs": 0.000674526699, + "psnr_db": 83.5827466, + "ref_absmax": 11.5288897, + "rel_max": 0.00117570499, + "scaled_max_abs": 0.00117570499 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 1.47449007, + "index": 1, + "metrics": { + "corr": 0.999991394, + "finite": true, + "max_abs": 0.159186363, + "mean_abs": 0.00251833586, + "psnr_db": 73.8085669, + "ref_absmax": 10.7960281, + "rel_max": 0.0147449007, + "scaled_max_abs": 0.0147449007 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_5_cast_fp16" + }, + "status": "fail", + "tap": "net.patch_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 1.45772783, + "index": 2, + "metrics": { + "corr": 0.999992261, + "finite": true, + "max_abs": 0.157061577, + "mean_abs": 0.00252916549, + "psnr_db": 73.7102173, + "ref_absmax": 10.7744102, + "rel_max": 0.0145772783, + "scaled_max_abs": 0.0145772783 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5_cast_fp16" + }, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 1.44004222, + "index": 3, + "metrics": { + "corr": 0.999992443, + "finite": true, + "max_abs": 0.15436554, + "mean_abs": 0.00271046309, + "psnr_db": 73.5671904, + "ref_absmax": 10.7195148, + "rel_max": 0.0144004222, + "scaled_max_abs": 0.0144004222 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_17_cast_fp16" + }, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 1.45278434, + "index": 4, + "metrics": { + "corr": 0.999992728, + "finite": true, + "max_abs": 0.159858704, + "mean_abs": 0.00289978764, + "psnr_db": 73.4913103, + "ref_absmax": 11.0036087, + "rel_max": 0.0145278434, + "scaled_max_abs": 0.0145278434 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_29_cast_fp16" + }, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 1.34661694, + "index": 5, + "metrics": { + "corr": 0.999992831, + "finite": true, + "max_abs": 0.152815819, + "mean_abs": 0.00305746017, + "psnr_db": 73.5262034, + "ref_absmax": 11.3481283, + "rel_max": 0.0134661694, + "scaled_max_abs": 0.0134661694 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_41_cast_fp16" + }, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 0.711003077, + "index": 6, + "metrics": { + "corr": 0.999993473, + "finite": true, + "max_abs": 0.0292298794, + "mean_abs": 0.00270321117, + "psnr_db": 66.7353234, + "ref_absmax": 4.11107635, + "rel_max": 0.00711003077, + "scaled_max_abs": 0.00711003077 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "status": "pass", + "tap": "net.norm" + }, + { + "band_ratio": 26.5739485, + "index": 7, + "metrics": { + "corr": 0.999997178, + "finite": true, + "max_abs": 0.588817835, + "mean_abs": 0.111394346, + "psnr_db": 28.8710149, + "ref_absmax": 2.21577096, + "rel_max": 0.265739485, + "scaled_max_abs": 0.265739485 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_cast_fp16" + }, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_ratio": 25.8957821, + "index": 8, + "metrics": { + "corr": 0.995913585, + "finite": true, + "max_abs": 0.327858329, + "mean_abs": 0.062553372, + "psnr_db": 28.530925, + "ref_absmax": 1.26606846, + "rel_max": 0.258957821, + "scaled_max_abs": 0.258957821 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.402825966, + "metrics": { + "corr": 0.999995129, + "finite": true, + "max_abs": 0.00541609526, + "mean_abs": 0.000663621235, + "psnr_db": 67.1899789, + "ref_absmax": 1.34452486, + "rel_max": 0.00402825966, + "scaled_max_abs": 0.00402825966 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 0.116213884, + "index": 0, + "metrics": { + "corr": 0.999999912, + "finite": true, + "max_abs": 0.0133981705, + "mean_abs": 0.000679588388, + "psnr_db": 83.6184843, + "ref_absmax": 11.5288897, + "rel_max": 0.00116213884, + "scaled_max_abs": 0.00116213884 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.817007877, + "index": 1, + "metrics": { + "corr": 0.999991415, + "finite": true, + "max_abs": 0.0969877243, + "mean_abs": 0.00250771621, + "psnr_db": 74.367951, + "ref_absmax": 11.871088, + "rel_max": 0.00817007877, + "scaled_max_abs": 0.00817007877 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_5_cast_fp16" + }, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_ratio": 0.860384338, + "index": 2, + "metrics": { + "corr": 0.999992187, + "finite": true, + "max_abs": 0.0995883942, + "mean_abs": 0.00251680124, + "psnr_db": 74.29315, + "ref_absmax": 11.574873, + "rel_max": 0.00860384338, + "scaled_max_abs": 0.00860384338 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5_cast_fp16" + }, + "status": "pass", + "tap": "net.pos_embed" + }, + { + "band_ratio": 0.837666842, + "index": 3, + "metrics": { + "corr": 0.999992439, + "finite": true, + "max_abs": 0.0996370316, + "mean_abs": 0.00269992927, + "psnr_db": 74.3779895, + "ref_absmax": 11.8945894, + "rel_max": 0.00837666842, + "scaled_max_abs": 0.00837666842 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_17_cast_fp16" + }, + "status": "pass", + "tap": "net.blocks.0" + }, + { + "band_ratio": 0.83436153, + "index": 4, + "metrics": { + "corr": 0.999992743, + "finite": true, + "max_abs": 0.101405144, + "mean_abs": 0.00289164657, + "psnr_db": 74.2749382, + "ref_absmax": 12.1536217, + "rel_max": 0.0083436153, + "scaled_max_abs": 0.0083436153 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_29_cast_fp16" + }, + "status": "pass", + "tap": "net.blocks.1" + }, + { + "band_ratio": 0.818916301, + "index": 5, + "metrics": { + "corr": 0.999992873, + "finite": true, + "max_abs": 0.102446556, + "mean_abs": 0.00303753381, + "psnr_db": 74.1588749, + "ref_absmax": 12.5100155, + "rel_max": 0.00818916301, + "scaled_max_abs": 0.00818916301 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_41_cast_fp16" + }, + "status": "pass", + "tap": "net.blocks.2" + }, + { + "band_ratio": 0.678718025, + "index": 6, + "metrics": { + "corr": 0.999993569, + "finite": true, + "max_abs": 0.0284955502, + "mean_abs": 0.00267585862, + "psnr_db": 66.9877398, + "ref_absmax": 4.19843721, + "rel_max": 0.00678718025, + "scaled_max_abs": 0.00678718025 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "status": "pass", + "tap": "net.norm" + }, + { + "band_ratio": 0.478346443, + "index": 7, + "metrics": { + "corr": 0.99999748, + "finite": true, + "max_abs": 0.0106277466, + "mean_abs": 0.000813371892, + "psnr_db": 69.9111582, + "ref_absmax": 2.22176766, + "rel_max": 0.00478346443, + "scaled_max_abs": 0.00478346443 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_cast_fp16" + }, + "status": "pass", + "tap": "net.pool" + }, + { + "band_ratio": 0.402825966, + "index": 8, + "metrics": { + "corr": 0.999995129, + "finite": true, + "max_abs": 0.00541609526, + "mean_abs": 0.000663621235, + "psnr_db": 67.1899789, + "ref_absmax": 1.34452486, + "rel_max": 0.00402825966, + "scaled_max_abs": 0.00402825966 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "pass", + "tap": "net.head" + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp16", + "id": "tinyvit__baked_shape__coreml_fp16", + "model": "tinyvit", + "path": "coreml", + "variant": "baked_shape" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/tinyvit__baked_shape__coreml_fp32.json b/bench/verdicts_e2e_gated/tinyvit__baked_shape__coreml_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..4304641fca50f379c4e1612e3e5089d8a5ec0d38 --- /dev/null +++ b/bench/verdicts_e2e_gated/tinyvit__baked_shape__coreml_fp32.json @@ -0,0 +1,601 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "status": "flag" + } + }, + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "_inversed_input", + "basis": "nominal shape 224 inside band; shape 192 over band", + "index": 7, + "neighbourhood": [ + { + "band_ratio": 0.0046395359, + "index": 6, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x" + }, + "status": "pass", + "tap": "net.norm" + }, + { + "band_ratio": 2653.06339, + "index": 7, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input" + }, + "status": "fail", + "tap": "net.pool" + }, + { + "band_ratio": 2575.73335, + "index": 8, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head" + } + ], + "shape": 192, + "tap": "net.pool" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "82cd52d13c4865c43154b040f259573bb88e85289fad94fa1799de1c6a707f26", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "49363dac389cca779b428b1ff97c1abbc4d133fd0d765733adc74d7dcec74e73", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D6", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.96875, + "band_ratio": 2575.73335, + "metrics": { + "corr": 0.995905825, + "finite": true, + "max_abs": 0.326105475, + "mean_abs": 0.062499685, + "psnr_db": 28.5341126, + "ref_absmax": 1.26606846, + "rel_max": 0.257573335, + "scaled_max_abs": 0.257573335 + }, + "status": "fail", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + "first_fail_index": 7, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.26638033e-08, + "psnr_db": 163.904618, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.00441678321, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 1.05437658e-07, + "psnr_db": 161.322112, + "ref_absmax": 10.7960281, + "rel_max": 4.41678321e-07, + "scaled_max_abs": 4.41678321e-07 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_5" + }, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_ratio": 0.00442564509, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 1.08827013e-07, + "psnr_db": 161.063379, + "ref_absmax": 10.7744102, + "rel_max": 4.42564509e-07, + "scaled_max_abs": 4.42564509e-07 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5" + }, + "status": "pass", + "tap": "net.pos_embed" + }, + { + "band_ratio": 0.00444830914, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 1.38193594e-07, + "psnr_db": 160.03963, + "ref_absmax": 10.7195148, + "rel_max": 4.44830914e-07, + "scaled_max_abs": 4.44830914e-07 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_17" + }, + "status": "pass", + "tap": "net.blocks.0" + }, + { + "band_ratio": 0.00520015392, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.7220459e-06, + "mean_abs": 1.64897191e-07, + "psnr_db": 159.182865, + "ref_absmax": 11.0036087, + "rel_max": 5.20015392e-07, + "scaled_max_abs": 5.20015392e-07 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_29" + }, + "status": "pass", + "tap": "net.blocks.1" + }, + { + "band_ratio": 0.00504228163, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.7220459e-06, + "mean_abs": 1.86291669e-07, + "psnr_db": 158.670108, + "ref_absmax": 11.3481283, + "rel_max": 5.04228163e-07, + "scaled_max_abs": 5.04228163e-07 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_41" + }, + "status": "pass", + "tap": "net.blocks.2" + }, + { + "band_ratio": 0.0046395359, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.90734863e-06, + "mean_abs": 1.82634463e-07, + "psnr_db": 150.24297, + "ref_absmax": 4.11107635, + "rel_max": 4.6395359e-07, + "scaled_max_abs": 4.6395359e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x" + }, + "status": "pass", + "tap": "net.norm" + }, + { + "band_ratio": 2653.06339, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.587858081, + "mean_abs": 0.111286292, + "psnr_db": 28.8786407, + "ref_absmax": 2.21577096, + "rel_max": 0.265306339, + "scaled_max_abs": 0.265306339 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input" + }, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_ratio": 2575.73335, + "index": 8, + "metrics": { + "corr": 0.995905825, + "finite": true, + "max_abs": 0.326105475, + "mean_abs": 0.062499685, + "psnr_db": 28.5341126, + "ref_absmax": 1.26606846, + "rel_max": 0.257573335, + "scaled_max_abs": 0.257573335 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.00354651054, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-07, + "mean_abs": 7.67468009e-08, + "psnr_db": 147.311609, + "ref_absmax": 1.34452486, + "rel_max": 3.54651054e-07, + "scaled_max_abs": 3.54651054e-07 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.2793459e-08, + "psnr_db": 164.013874, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.00321343524, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.81469727e-06, + "mean_abs": 1.07091069e-07, + "psnr_db": 161.736623, + "ref_absmax": 11.871088, + "rel_max": 3.21343524e-07, + "scaled_max_abs": 3.21343524e-07 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_5" + }, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_ratio": 0.00411958869, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 1.09860232e-07, + "psnr_db": 161.519356, + "ref_absmax": 11.574873, + "rel_max": 4.11958869e-07, + "scaled_max_abs": 4.11958869e-07 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5" + }, + "status": "pass", + "tap": "net.pos_embed" + }, + { + "band_ratio": 0.00400885765, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 1.40039236e-07, + "psnr_db": 160.709782, + "ref_absmax": 11.8945894, + "rel_max": 4.00885765e-07, + "scaled_max_abs": 4.00885765e-07 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_17" + }, + "status": "pass", + "tap": "net.blocks.0" + }, + { + "band_ratio": 0.00392341617, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 1.67760047e-07, + "psnr_db": 159.824967, + "ref_absmax": 12.1536217, + "rel_max": 3.92341617e-07, + "scaled_max_abs": 3.92341617e-07 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_29" + }, + "status": "pass", + "tap": "net.blocks.1" + }, + { + "band_ratio": 0.00381164323, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 1.89873149e-07, + "psnr_db": 159.127453, + "ref_absmax": 12.5100155, + "rel_max": 3.81164323e-07, + "scaled_max_abs": 3.81164323e-07 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_41" + }, + "status": "pass", + "tap": "net.blocks.2" + }, + { + "band_ratio": 0.00340724751, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-06, + "mean_abs": 1.85331143e-07, + "psnr_db": 150.311684, + "ref_absmax": 4.19843721, + "rel_max": 3.40724751e-07, + "scaled_max_abs": 3.40724751e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x" + }, + "status": "pass", + "tap": "net.norm" + }, + { + "band_ratio": 0.00536551555, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.1920929e-06, + "mean_abs": 9.12808105e-08, + "psnr_db": 149.392826, + "ref_absmax": 2.22176766, + "rel_max": 5.36551555e-07, + "scaled_max_abs": 5.36551555e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input" + }, + "status": "pass", + "tap": "net.pool" + }, + { + "band_ratio": 0.00354651054, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-07, + "mean_abs": 7.67468009e-08, + "psnr_db": 147.311609, + "ref_absmax": 1.34452486, + "rel_max": 3.54651054e-07, + "scaled_max_abs": 3.54651054e-07 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "pass", + "tap": "net.head" + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp32", + "id": "tinyvit__baked_shape__coreml_fp32", + "model": "tinyvit", + "path": "coreml", + "variant": "baked_shape" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/tinyvit__baked_shape__litert_fp16.json b/bench/verdicts_e2e_gated/tinyvit__baked_shape__litert_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..0e42c5df47e64361548f371c99e9fbf9d0229833 --- /dev/null +++ b/bench/verdicts_e2e_gated/tinyvit__baked_shape__litert_fp16.json @@ -0,0 +1,630 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 1.55154223e-05, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.08616257e-07, + "mean_abs": 4.28262865e-08, + "psnr_db": 152.601588, + "ref_absmax": 1.3445735, + "rel_max": 1.55154223e-07, + "scaled_max_abs": 1.55154223e-07 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 57, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 1, + "n_ops_total": 187, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "status": "flag" + } + }, + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1", + "basis": "nominal shape 224 inside band; shape 192 over band", + "index": 7, + "neighbourhood": [ + { + "band_ratio": 0.0310450195, + "index": 6, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "status": "pass", + "tap": "net.norm" + }, + { + "band_ratio": 14299.4971, + "index": 7, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "status": "fail", + "tap": "net.pool" + }, + { + "band_ratio": 25.764207, + "index": 8, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.head" + } + ], + "shape": 192, + "tap": "net.pool" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "2783f44ce046523732ba4fa771025cc13ca3571cca51884c21e5135d9ff271d6", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "e6f67f478f27c5cbe93fb3192583b8c4adeb54f48117f07895a6c68beeb1c827", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D6", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.96875, + "band_ratio": 25.764207, + "metrics": { + "corr": 0.995900822, + "finite": true, + "max_abs": 0.326192498, + "mean_abs": 0.0625042098, + "psnr_db": 28.5336261, + "ref_absmax": 1.26606846, + "rel_max": 0.25764207, + "scaled_max_abs": 0.25764207 + }, + "status": "fail", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + "first_fail_index": 7, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 8.27203959e-06, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.26638033e-08, + "psnr_db": 163.904618, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0238484209, + "index": 1, + "metrics": { + "corr": 0.999999975, + "finite": true, + "max_abs": 0.00257468224, + "mean_abs": 0.000153147335, + "psnr_db": 99.1308904, + "ref_absmax": 10.7960281, + "rel_max": 0.000238484209, + "scaled_max_abs": 0.000238484209 + }, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;2" + }, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_ratio": 0.0238962707, + "index": 2, + "metrics": { + "corr": 0.999999977, + "finite": true, + "max_abs": 0.00257468224, + "mean_abs": 0.000153147282, + "psnr_db": 99.0500481, + "ref_absmax": 10.7744102, + "rel_max": 0.000238962707, + "scaled_max_abs": 0.000238962707 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;3" + }, + "status": "pass", + "tap": "net.pos_embed" + }, + { + "band_ratio": 0.0248371341, + "index": 3, + "metrics": { + "corr": 0.999999975, + "finite": true, + "max_abs": 0.00266242027, + "mean_abs": 0.000175715531, + "psnr_db": 98.3929002, + "ref_absmax": 10.7195148, + "rel_max": 0.000248371341, + "scaled_max_abs": 0.000248371341 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.0" + }, + { + "band_ratio": 0.0244428902, + "index": 4, + "metrics": { + "corr": 0.999999975, + "finite": true, + "max_abs": 0.00268959999, + "mean_abs": 0.000194126271, + "psnr_db": 98.0679496, + "ref_absmax": 11.0036087, + "rel_max": 0.000244428902, + "scaled_max_abs": 0.000244428902 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.1" + }, + { + "band_ratio": 0.0249340827, + "index": 5, + "metrics": { + "corr": 0.999999975, + "finite": true, + "max_abs": 0.0028295517, + "mean_abs": 0.000204465949, + "psnr_db": 98.0757778, + "ref_absmax": 11.3481283, + "rel_max": 0.000249340827, + "scaled_max_abs": 0.000249340827 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.2" + }, + { + "band_ratio": 0.0310450195, + "index": 6, + "metrics": { + "corr": 0.999999972, + "finite": true, + "max_abs": 0.00127628446, + "mean_abs": 0.000187560799, + "psnr_db": 90.4287298, + "ref_absmax": 4.11107635, + "rel_max": 0.000310450195, + "scaled_max_abs": 0.000310450195 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "status": "pass", + "tap": "net.norm" + }, + { + "band_ratio": 14299.4971, + "index": 7, + "metrics": { + "corr": 0.999999971, + "finite": true, + "max_abs": 316.844105, + "mean_abs": 59.9836797, + "psnr_db": -25.7531324, + "ref_absmax": 2.21577096, + "rel_max": 142.994971, + "scaled_max_abs": 142.994971 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_ratio": 25.764207, + "index": 8, + "metrics": { + "corr": 0.995900822, + "finite": true, + "max_abs": 0.326192498, + "mean_abs": 0.0625042098, + "psnr_db": 28.5336261, + "ref_absmax": 1.26606846, + "rel_max": 0.25764207, + "scaled_max_abs": 0.25764207 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.0197939619, + "metrics": { + "corr": 0.999999958, + "finite": true, + "max_abs": 0.000266134739, + "mean_abs": 7.85663025e-05, + "psnr_db": 87.7638046, + "ref_absmax": 1.34452486, + "rel_max": 0.000197939619, + "scaled_max_abs": 0.000197939619 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 8.27203959e-06, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.2793459e-08, + "psnr_db": 164.013874, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0277319462, + "index": 1, + "metrics": { + "corr": 0.999999975, + "finite": true, + "max_abs": 0.00329208374, + "mean_abs": 0.00015256364, + "psnr_db": 99.7212805, + "ref_absmax": 11.871088, + "rel_max": 0.000277319462, + "scaled_max_abs": 0.000277319462 + }, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;2" + }, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_ratio": 0.0284416403, + "index": 2, + "metrics": { + "corr": 0.999999977, + "finite": true, + "max_abs": 0.00329208374, + "mean_abs": 0.000152563603, + "psnr_db": 99.6624604, + "ref_absmax": 11.574873, + "rel_max": 0.000284416403, + "scaled_max_abs": 0.000284416403 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;3" + }, + "status": "pass", + "tap": "net.pos_embed" + }, + { + "band_ratio": 0.0279738087, + "index": 3, + "metrics": { + "corr": 0.999999975, + "finite": true, + "max_abs": 0.00332736969, + "mean_abs": 0.000176384194, + "psnr_db": 99.194827, + "ref_absmax": 11.8945894, + "rel_max": 0.000279738087, + "scaled_max_abs": 0.000279738087 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.0" + }, + { + "band_ratio": 0.0270794184, + "index": 4, + "metrics": { + "corr": 0.999999974, + "finite": true, + "max_abs": 0.00329113007, + "mean_abs": 0.000196887379, + "psnr_db": 98.8068327, + "ref_absmax": 12.1536217, + "rel_max": 0.000270794184, + "scaled_max_abs": 0.000270794184 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.1" + }, + { + "band_ratio": 0.0256599822, + "index": 5, + "metrics": { + "corr": 0.999999975, + "finite": true, + "max_abs": 0.00321006775, + "mean_abs": 0.000207746592, + "psnr_db": 98.6389943, + "ref_absmax": 12.5100155, + "rel_max": 0.000256599822, + "scaled_max_abs": 0.000256599822 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.2" + }, + { + "band_ratio": 0.0284519364, + "index": 6, + "metrics": { + "corr": 0.999999972, + "finite": true, + "max_abs": 0.00119453669, + "mean_abs": 0.000190440265, + "psnr_db": 90.5400099, + "ref_absmax": 4.19843721, + "rel_max": 0.000284519364, + "scaled_max_abs": 0.000284519364 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "status": "pass", + "tap": "net.norm" + }, + { + "band_ratio": 0.0238872752, + "index": 7, + "metrics": { + "corr": 0.99999997, + "finite": true, + "max_abs": 0.000530719757, + "mean_abs": 0.000113873221, + "psnr_db": 89.1445653, + "ref_absmax": 2.22176766, + "rel_max": 0.000238872752, + "scaled_max_abs": 0.000238872752 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;;zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "status": "pass", + "tap": "net.pool" + }, + { + "band_ratio": 0.0197939619, + "index": 8, + "metrics": { + "corr": 0.999999958, + "finite": true, + "max_abs": 0.000266134739, + "mean_abs": 7.85663025e-05, + "psnr_db": 87.7638046, + "ref_absmax": 1.34452486, + "rel_max": 0.000197939619, + "scaled_max_abs": 0.000197939619 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "pass", + "tap": "net.head" + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp16", + "id": "tinyvit__baked_shape__litert_fp16", + "model": "tinyvit", + "path": "litert", + "variant": "baked_shape" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/tinyvit__baked_shape__litert_fp32.json b/bench/verdicts_e2e_gated/tinyvit__baked_shape__litert_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..da454c370e0e7127f12823d055bc8ad44fac1c40 --- /dev/null +++ b/bench/verdicts_e2e_gated/tinyvit__baked_shape__litert_fp32.json @@ -0,0 +1,630 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 0.00132994157, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.78813934e-07, + "mean_abs": 4.3772161e-08, + "psnr_db": 152.770609, + "ref_absmax": 1.34452474, + "rel_max": 1.32994157e-07, + "scaled_max_abs": 1.32994157e-07 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 57, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 1, + "n_ops_total": 173, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "status": "flag" + } + }, + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1", + "basis": "nominal shape 224 inside band; shape 192 over band", + "index": 7, + "neighbourhood": [ + { + "band_ratio": 0.0104389558, + "index": 6, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "status": "pass", + "tap": "net.norm" + }, + { + "band_ratio": 1429999.71, + "index": 7, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "status": "fail", + "tap": "net.pool" + }, + { + "band_ratio": 2575.73194, + "index": 8, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.head" + } + ], + "shape": 192, + "tap": "net.pool" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "3c4fce1573b857dfeee947204c8e31b8966c43fa40dfd2651a38ba31dab9fad8", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "b5cc311c90efc0c4346255b47684af424f4ddf50a0a8488c41e68f800fe2dd19", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D6", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.96875, + "band_ratio": 2575.73194, + "metrics": { + "corr": 0.995905825, + "finite": true, + "max_abs": 0.326105297, + "mean_abs": 0.0624996821, + "psnr_db": 28.5341133, + "ref_absmax": 1.26606846, + "rel_max": 0.257573194, + "scaled_max_abs": 0.257573194 + }, + "status": "fail", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + "first_fail_index": 7, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.26638033e-08, + "psnr_db": 163.904618, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.013692028, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.47819519e-05, + "mean_abs": 3.77735959e-07, + "psnr_db": 150.658464, + "ref_absmax": 10.7960281, + "rel_max": 1.3692028e-06, + "scaled_max_abs": 1.3692028e-06 + }, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;2" + }, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_ratio": 0.0137194998, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.47819519e-05, + "mean_abs": 3.78651032e-07, + "psnr_db": 150.56143, + "ref_absmax": 10.7744102, + "rel_max": 1.37194998e-06, + "scaled_max_abs": 1.37194998e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;3" + }, + "status": "pass", + "tap": "net.pos_embed" + }, + { + "band_ratio": 0.0133449274, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-05, + "mean_abs": 4.0469488e-07, + "psnr_db": 150.358835, + "ref_absmax": 10.7195148, + "rel_max": 1.33449274e-06, + "scaled_max_abs": 1.33449274e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.0" + }, + { + "band_ratio": 0.0130003848, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-05, + "mean_abs": 4.27641757e-07, + "psnr_db": 150.281717, + "ref_absmax": 11.0036087, + "rel_max": 1.30003848e-06, + "scaled_max_abs": 1.30003848e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.1" + }, + { + "band_ratio": 0.0126057041, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-05, + "mean_abs": 4.47188193e-07, + "psnr_db": 150.363744, + "ref_absmax": 11.3481283, + "rel_max": 1.26057041e-06, + "scaled_max_abs": 1.26057041e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.2" + }, + { + "band_ratio": 0.0104389558, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.29153442e-06, + "mean_abs": 4.01966342e-07, + "psnr_db": 143.372839, + "ref_absmax": 4.11107635, + "rel_max": 1.04389558e-06, + "scaled_max_abs": 1.04389558e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "status": "pass", + "tap": "net.norm" + }, + { + "band_ratio": 1429999.71, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 316.855182, + "mean_abs": 59.9833093, + "psnr_db": -25.7531342, + "ref_absmax": 2.21577096, + "rel_max": 142.999971, + "scaled_max_abs": 142.999971 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_ratio": 2575.73194, + "index": 8, + "metrics": { + "corr": 0.995905825, + "finite": true, + "max_abs": 0.326105297, + "mean_abs": 0.0624996821, + "psnr_db": 28.5341133, + "ref_absmax": 1.26606846, + "rel_max": 0.257573194, + "scaled_max_abs": 0.257573194 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.00354651054, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-07, + "mean_abs": 8.9162495e-08, + "psnr_db": 146.224752, + "ref_absmax": 1.34452486, + "rel_max": 3.54651054e-07, + "scaled_max_abs": 3.54651054e-07 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.2793459e-08, + "psnr_db": 164.013874, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0120503822, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-05, + "mean_abs": 3.77230551e-07, + "psnr_db": 151.208122, + "ref_absmax": 11.871088, + "rel_max": 1.20503822e-06, + "scaled_max_abs": 1.20503822e-06 + }, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;2" + }, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_ratio": 0.0123587661, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-05, + "mean_abs": 3.77991994e-07, + "psnr_db": 151.132396, + "ref_absmax": 11.574873, + "rel_max": 1.23587661e-06, + "scaled_max_abs": 1.23587661e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;3" + }, + "status": "pass", + "tap": "net.pos_embed" + }, + { + "band_ratio": 0.012026573, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-05, + "mean_abs": 4.04609382e-07, + "psnr_db": 151.152989, + "ref_absmax": 11.8945894, + "rel_max": 1.2026573e-06, + "scaled_max_abs": 1.2026573e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.0" + }, + { + "band_ratio": 0.0109855653, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33514404e-05, + "mean_abs": 4.29329414e-07, + "psnr_db": 151.043175, + "ref_absmax": 12.1536217, + "rel_max": 1.09855653e-06, + "scaled_max_abs": 1.09855653e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.1" + }, + { + "band_ratio": 0.010672601, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33514404e-05, + "mean_abs": 4.49061651e-07, + "psnr_db": 150.942806, + "ref_absmax": 12.5100155, + "rel_max": 1.0672601e-06, + "scaled_max_abs": 1.0672601e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.2" + }, + { + "band_ratio": 0.0122093036, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.12599945e-06, + "mean_abs": 4.00810134e-07, + "psnr_db": 143.56936, + "ref_absmax": 4.19843721, + "rel_max": 1.22093036e-06, + "scaled_max_abs": 1.22093036e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "status": "pass", + "tap": "net.norm" + }, + { + "band_ratio": 0.00516430872, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.14738941e-06, + "mean_abs": 1.24958994e-07, + "psnr_db": 147.260116, + "ref_absmax": 2.22176766, + "rel_max": 5.16430872e-07, + "scaled_max_abs": 5.16430872e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;;zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "status": "pass", + "tap": "net.pool" + }, + { + "band_ratio": 0.00354651054, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-07, + "mean_abs": 8.9162495e-08, + "psnr_db": 146.224752, + "ref_absmax": 1.34452486, + "rel_max": 3.54651054e-07, + "scaled_max_abs": 3.54651054e-07 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "pass", + "tap": "net.head" + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp32", + "id": "tinyvit__baked_shape__litert_fp32", + "model": "tinyvit", + "path": "litert", + "variant": "baked_shape" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/tinyvit__baked_shape__onnx_fp16.json b/bench/verdicts_e2e_gated/tinyvit__baked_shape__onnx_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..b0af04dc888a17a90960cf32c2d2dc346a70ef11 --- /dev/null +++ b/bench/verdicts_e2e_gated/tinyvit__baked_shape__onnx_fp16.json @@ -0,0 +1,601 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "status": "flag" + } + }, + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "/net/pool/Div_output_0", + "basis": "nominal shape 224 inside band; shape 192 over band", + "index": 7, + "neighbourhood": [ + { + "band_ratio": 0.0818820092, + "index": 6, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "status": "pass", + "tap": "net.norm" + }, + { + "band_ratio": 26.5298753, + "index": 7, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/Div_output_0" + }, + "status": "fail", + "tap": "net.pool" + }, + { + "band_ratio": 25.7498292, + "index": 8, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head" + } + ], + "shape": 192, + "tap": "net.pool" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "46a0e8ed821e3cdd0abff80d6ad26198bcd70c91ccc57b017c1a3cc281dc1d25", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "4e990e5a6766e80eea68d854f1db627a391a6a25b03b20781b4f30f0c5c65cf1", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 3.61204147e-05, + "224": 4.39584255e-05 + }, + "primary_class": "D6", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.96875, + "band_ratio": 25.7484498, + "metrics": { + "corr": 0.995907861, + "finite": true, + "max_abs": 0.325993001, + "mean_abs": 0.0625117309, + "psnr_db": 28.5346162, + "ref_absmax": 1.26606846, + "rel_max": 0.257484498, + "scaled_max_abs": 0.257484498 + }, + "status": "fail", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + }, + "first_fail_index": 7, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 0.0441313312, + "index": 0, + "metrics": { + "corr": 0.999999966, + "finite": true, + "max_abs": 0.00508785248, + "mean_abs": 0.000405953078, + "psnr_db": 88.0186903, + "ref_absmax": 11.5288897, + "rel_max": 0.000441313312, + "scaled_max_abs": 0.000441313312 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0469150713, + "index": 1, + "metrics": { + "corr": 0.999999939, + "finite": true, + "max_abs": 0.00506496429, + "mean_abs": 0.000255633799, + "psnr_db": 95.3001421, + "ref_absmax": 10.7960281, + "rel_max": 0.000469150713, + "scaled_max_abs": 0.000469150713 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_ratio": 0.0735365188, + "index": 2, + "metrics": { + "corr": 0.999999921, + "finite": true, + "max_abs": 0.00792312622, + "mean_abs": 0.000301602973, + "psnr_db": 93.5874175, + "ref_absmax": 10.7744102, + "rel_max": 0.000735365188, + "scaled_max_abs": 0.000735365188 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "status": "pass", + "tap": "net.pos_embed" + }, + { + "band_ratio": 0.0642335839, + "index": 3, + "metrics": { + "corr": 0.999999915, + "finite": true, + "max_abs": 0.00688552856, + "mean_abs": 0.000337762151, + "psnr_db": 93.052585, + "ref_absmax": 10.7195148, + "rel_max": 0.000642335839, + "scaled_max_abs": 0.000642335839 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.0" + }, + { + "band_ratio": 0.0711207718, + "index": 4, + "metrics": { + "corr": 0.99999991, + "finite": true, + "max_abs": 0.00782585144, + "mean_abs": 0.000375974454, + "psnr_db": 92.5622871, + "ref_absmax": 11.0036087, + "rel_max": 0.000711207718, + "scaled_max_abs": 0.000711207718 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.1" + }, + { + "band_ratio": 0.0762561059, + "index": 5, + "metrics": { + "corr": 0.999999905, + "finite": true, + "max_abs": 0.00865364075, + "mean_abs": 0.000407947414, + "psnr_db": 92.2800434, + "ref_absmax": 11.3481283, + "rel_max": 0.000762561059, + "scaled_max_abs": 0.000762561059 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.2" + }, + { + "band_ratio": 0.0818820092, + "index": 6, + "metrics": { + "corr": 0.999999846, + "finite": true, + "max_abs": 0.00336623192, + "mean_abs": 0.000424373745, + "psnr_db": 83.0143914, + "ref_absmax": 4.11107635, + "rel_max": 0.000818820092, + "scaled_max_abs": 0.000818820092 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "status": "pass", + "tap": "net.norm" + }, + { + "band_ratio": 26.5298753, + "index": 7, + "metrics": { + "corr": 0.999999814, + "finite": true, + "max_abs": 0.587841272, + "mean_abs": 0.11128451, + "psnr_db": 28.8782843, + "ref_absmax": 2.21577096, + "rel_max": 0.265298753, + "scaled_max_abs": 0.265298753 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/Div_output_0" + }, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_ratio": 25.7498292, + "index": 8, + "metrics": { + "corr": 0.995908013, + "finite": true, + "max_abs": 0.326010466, + "mean_abs": 0.0625109202, + "psnr_db": 28.5346269, + "ref_absmax": 1.26606846, + "rel_max": 0.257498292, + "scaled_max_abs": 0.257498292 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.0423719346, + "metrics": { + "corr": 0.999999905, + "finite": true, + "max_abs": 0.000569701195, + "mean_abs": 0.000124554956, + "psnr_db": 83.7646999, + "ref_absmax": 1.34452486, + "rel_max": 0.000423719346, + "scaled_max_abs": 0.000423719346 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 0.0439328023, + "index": 0, + "metrics": { + "corr": 0.999999965, + "finite": true, + "max_abs": 0.00506496429, + "mean_abs": 0.000406712054, + "psnr_db": 88.0749992, + "ref_absmax": 11.5288897, + "rel_max": 0.000439328023, + "scaled_max_abs": 0.000439328023 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0469161546, + "index": 1, + "metrics": { + "corr": 0.99999994, + "finite": true, + "max_abs": 0.00556945801, + "mean_abs": 0.000254492238, + "psnr_db": 95.9056844, + "ref_absmax": 11.871088, + "rel_max": 0.000469161546, + "scaled_max_abs": 0.000469161546 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_ratio": 0.07491884, + "index": 2, + "metrics": { + "corr": 0.99999992, + "finite": true, + "max_abs": 0.00867176056, + "mean_abs": 0.000301083888, + "psnr_db": 94.1877045, + "ref_absmax": 11.574873, + "rel_max": 0.0007491884, + "scaled_max_abs": 0.0007491884 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "status": "pass", + "tap": "net.pos_embed" + }, + { + "band_ratio": 0.0635564292, + "index": 3, + "metrics": { + "corr": 0.999999915, + "finite": true, + "max_abs": 0.00755977631, + "mean_abs": 0.000339032434, + "psnr_db": 93.8757594, + "ref_absmax": 11.8945894, + "rel_max": 0.000635564292, + "scaled_max_abs": 0.000635564292 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.0" + }, + { + "band_ratio": 0.0671218039, + "index": 4, + "metrics": { + "corr": 0.99999991, + "finite": true, + "max_abs": 0.0081577301, + "mean_abs": 0.000376167463, + "psnr_db": 93.3355793, + "ref_absmax": 12.1536217, + "rel_max": 0.000671218039, + "scaled_max_abs": 0.000671218039 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.1" + }, + { + "band_ratio": 0.0664445648, + "index": 5, + "metrics": { + "corr": 0.999999905, + "finite": true, + "max_abs": 0.00831222534, + "mean_abs": 0.000408523199, + "psnr_db": 92.8873389, + "ref_absmax": 12.5100155, + "rel_max": 0.000664445648, + "scaled_max_abs": 0.000664445648 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.2" + }, + { + "band_ratio": 0.0851897059, + "index": 6, + "metrics": { + "corr": 0.999999848, + "finite": true, + "max_abs": 0.00357663631, + "mean_abs": 0.000421772845, + "psnr_db": 83.2639281, + "ref_absmax": 4.19843721, + "rel_max": 0.000851897059, + "scaled_max_abs": 0.000851897059 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "status": "pass", + "tap": "net.norm" + }, + { + "band_ratio": 0.0682010682, + "index": 7, + "metrics": { + "corr": 0.999999832, + "finite": true, + "max_abs": 0.00151526928, + "mean_abs": 0.000268050243, + "psnr_db": 81.6555098, + "ref_absmax": 2.22176766, + "rel_max": 0.000682010682, + "scaled_max_abs": 0.000682010682 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/Div_output_0" + }, + "status": "pass", + "tap": "net.pool" + }, + { + "band_ratio": 0.0426246235, + "index": 8, + "metrics": { + "corr": 0.999999904, + "finite": true, + "max_abs": 0.00057309866, + "mean_abs": 0.000125122938, + "psnr_db": 83.7414848, + "ref_absmax": 1.34452486, + "rel_max": 0.000426246235, + "scaled_max_abs": 0.000426246235 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "pass", + "tap": "net.head" + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp16", + "id": "tinyvit__baked_shape__onnx_fp16", + "model": "tinyvit", + "path": "onnx", + "variant": "baked_shape" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/tinyvit__baked_shape__onnx_fp32.json b/bench/verdicts_e2e_gated/tinyvit__baked_shape__onnx_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..3810e807add741936860a59bf64880990d0de369 --- /dev/null +++ b/bench/verdicts_e2e_gated/tinyvit__baked_shape__onnx_fp32.json @@ -0,0 +1,601 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "status": "flag" + } + }, + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "/net/pool/Div_output_0", + "basis": "nominal shape 224 inside band; shape 192 over band", + "index": 7, + "neighbourhood": [ + { + "band_ratio": 0.0104389558, + "index": 6, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "status": "pass", + "tap": "net.norm" + }, + { + "band_ratio": 2653.06339, + "index": 7, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/Div_output_0" + }, + "status": "fail", + "tap": "net.pool" + }, + { + "band_ratio": 2575.73194, + "index": 8, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head" + } + ], + "shape": 192, + "tap": "net.pool" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "a3f207c8c12ed3ce6ef42a6a3de4881edc8ba8c8d30441ce3438884bc081b90f", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "d4648595c778e951d3779bd8da0d8b43df8f39fd9d22a12fea6e87080e8669af", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 1.1920929e-07, + "224": 1.1920929e-07 + }, + "primary_class": "D6", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.96875, + "band_ratio": 2575.73194, + "metrics": { + "corr": 0.995905825, + "finite": true, + "max_abs": 0.326105297, + "mean_abs": 0.0624996862, + "psnr_db": 28.5341127, + "ref_absmax": 1.26606846, + "rel_max": 0.257573194, + "scaled_max_abs": 0.257573194 + }, + "status": "fail", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + "first_fail_index": 7, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 0.0, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 11.5288897, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0119253147, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.28746033e-05, + "mean_abs": 3.19462653e-07, + "psnr_db": 151.866979, + "ref_absmax": 10.7960281, + "rel_max": 1.19253147e-06, + "scaled_max_abs": 1.19253147e-06 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_ratio": 0.0119492417, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.28746033e-05, + "mean_abs": 3.49198263e-07, + "psnr_db": 151.445693, + "ref_absmax": 10.7744102, + "rel_max": 1.19492417e-06, + "scaled_max_abs": 1.19492417e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "status": "pass", + "tap": "net.pos_embed" + }, + { + "band_ratio": 0.0124552656, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33514404e-05, + "mean_abs": 3.75557543e-07, + "psnr_db": 151.183096, + "ref_absmax": 10.7195148, + "rel_max": 1.24552656e-06, + "scaled_max_abs": 1.24552656e-06 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.0" + }, + { + "band_ratio": 0.0121336925, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33514404e-05, + "mean_abs": 4.00633754e-07, + "psnr_db": 151.04211, + "ref_absmax": 11.0036087, + "rel_max": 1.21336925e-06, + "scaled_max_abs": 1.21336925e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.1" + }, + { + "band_ratio": 0.0117653238, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33514404e-05, + "mean_abs": 4.22095975e-07, + "psnr_db": 151.052516, + "ref_absmax": 11.3481283, + "rel_max": 1.17653238e-06, + "scaled_max_abs": 1.17653238e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.2" + }, + { + "band_ratio": 0.0104389558, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.29153442e-06, + "mean_abs": 3.91903887e-07, + "psnr_db": 143.585678, + "ref_absmax": 4.11107635, + "rel_max": 1.04389558e-06, + "scaled_max_abs": 1.04389558e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "status": "pass", + "tap": "net.norm" + }, + { + "band_ratio": 2653.06339, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.587858081, + "mean_abs": 0.111286293, + "psnr_db": 28.8786408, + "ref_absmax": 2.21577096, + "rel_max": 0.265306339, + "scaled_max_abs": 0.265306339 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/Div_output_0" + }, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_ratio": 2575.73194, + "index": 8, + "metrics": { + "corr": 0.995905826, + "finite": true, + "max_abs": 0.326105297, + "mean_abs": 0.0624996834, + "psnr_db": 28.5341131, + "ref_absmax": 1.26606846, + "rel_max": 0.257573194, + "scaled_max_abs": 0.257573194 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.00365733899, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.91738319e-07, + "mean_abs": 9.09349183e-08, + "psnr_db": 146.014919, + "ref_absmax": 1.34452486, + "rel_max": 3.65733899e-07, + "scaled_max_abs": 3.65733899e-07 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 0.0, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 11.5288897, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0104436645, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.23977661e-05, + "mean_abs": 3.18193685e-07, + "psnr_db": 152.441072, + "ref_absmax": 11.871088, + "rel_max": 1.04436645e-06, + "scaled_max_abs": 1.04436645e-06 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_ratio": 0.0107109306, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.23977661e-05, + "mean_abs": 3.18841259e-07, + "psnr_db": 152.36286, + "ref_absmax": 11.574873, + "rel_max": 1.07109306e-06, + "scaled_max_abs": 1.07109306e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "status": "pass", + "tap": "net.pos_embed" + }, + { + "band_ratio": 0.0104230299, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.23977661e-05, + "mean_abs": 3.4705172e-07, + "psnr_db": 152.330323, + "ref_absmax": 11.8945894, + "rel_max": 1.04230299e-06, + "scaled_max_abs": 1.04230299e-06 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.0" + }, + { + "band_ratio": 0.010200882, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.23977661e-05, + "mean_abs": 3.72946531e-07, + "psnr_db": 152.172601, + "ref_absmax": 12.1536217, + "rel_max": 1.0200882e-06, + "scaled_max_abs": 1.0200882e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.1" + }, + { + "band_ratio": 0.00991027239, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.23977661e-05, + "mean_abs": 3.93472908e-07, + "psnr_db": 152.03444, + "ref_absmax": 12.5100155, + "rel_max": 9.91027239e-07, + "scaled_max_abs": 9.91027239e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.2" + }, + { + "band_ratio": 0.0102217425, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.29153442e-06, + "mean_abs": 3.56977886e-07, + "psnr_db": 144.555686, + "ref_absmax": 4.19843721, + "rel_max": 1.02217425e-06, + "scaled_max_abs": 1.02217425e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "status": "pass", + "tap": "net.norm" + }, + { + "band_ratio": 0.00429241244, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 1.1915192e-07, + "psnr_db": 147.486514, + "ref_absmax": 2.22176766, + "rel_max": 4.29241244e-07, + "scaled_max_abs": 4.29241244e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/Div_output_0" + }, + "status": "pass", + "tap": "net.pool" + }, + { + "band_ratio": 0.00365733899, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.91738319e-07, + "mean_abs": 9.03062755e-08, + "psnr_db": 146.00363, + "ref_absmax": 1.34452486, + "rel_max": 3.65733899e-07, + "scaled_max_abs": 3.65733899e-07 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "pass", + "tap": "net.head" + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp32", + "id": "tinyvit__baked_shape__onnx_fp32", + "model": "tinyvit", + "path": "onnx", + "variant": "baked_shape" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/tinyvit__clean__coreml_fp16.json b/bench/verdicts_e2e_gated/tinyvit__clean__coreml_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..bd171457747730660f79166f4f0d4650c12a2ebf --- /dev/null +++ b/bench/verdicts_e2e_gated/tinyvit__clean__coreml_fp16.json @@ -0,0 +1,568 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": false, + "note": null, + "status": "clear" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [ + "inputs[0]: dtype float16 (declared float32)", + "outputs[0]: dtype float16 (declared float32)" + ], + "status": "precision_narrowing" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "status": "clear" + } + }, + "declared_precision": "fp16", + "first_divergence": null, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "0035167ec9cc06c61986ca2249819ae1510c5a12aad7eaf510988220c7579aa5", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "5430fd6da54612ccdc73a3180116c0a8d19224ecfcc7ca2d7ce9df494c8307f9", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": null, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.349849989, + "metrics": { + "corr": 0.999995654, + "finite": true, + "max_abs": 0.00442934036, + "mean_abs": 0.000622573402, + "psnr_db": 67.6041424, + "ref_absmax": 1.26606846, + "rel_max": 0.00349849989, + "scaled_max_abs": 0.00349849989 + }, + "status": "pass" + }, + "first_fail_index": 1, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 0.117570499, + "index": 0, + "metrics": { + "corr": 0.999999914, + "finite": true, + "max_abs": 0.0135545731, + "mean_abs": 0.000674526699, + "psnr_db": 83.5827466, + "ref_absmax": 11.5288897, + "rel_max": 0.00117570499, + "scaled_max_abs": 0.00117570499 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 1.47449007, + "index": 1, + "metrics": { + "corr": 0.999991394, + "finite": true, + "max_abs": 0.159186363, + "mean_abs": 0.00251833586, + "psnr_db": 73.8085669, + "ref_absmax": 10.7960281, + "rel_max": 0.0147449007, + "scaled_max_abs": 0.0147449007 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_5_cast_fp16" + }, + "status": "fail", + "tap": "net.patch_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 1.45772783, + "index": 2, + "metrics": { + "corr": 0.999992261, + "finite": true, + "max_abs": 0.157061577, + "mean_abs": 0.00252916549, + "psnr_db": 73.7102173, + "ref_absmax": 10.7744102, + "rel_max": 0.0145772783, + "scaled_max_abs": 0.0145772783 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5_cast_fp16" + }, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 1.44004222, + "index": 3, + "metrics": { + "corr": 0.999992443, + "finite": true, + "max_abs": 0.15436554, + "mean_abs": 0.00271046309, + "psnr_db": 73.5671904, + "ref_absmax": 10.7195148, + "rel_max": 0.0144004222, + "scaled_max_abs": 0.0144004222 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_17_cast_fp16" + }, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 1.45278434, + "index": 4, + "metrics": { + "corr": 0.999992728, + "finite": true, + "max_abs": 0.159858704, + "mean_abs": 0.00289978764, + "psnr_db": 73.4913103, + "ref_absmax": 11.0036087, + "rel_max": 0.0145278434, + "scaled_max_abs": 0.0145278434 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_29_cast_fp16" + }, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 1.34661694, + "index": 5, + "metrics": { + "corr": 0.999992831, + "finite": true, + "max_abs": 0.152815819, + "mean_abs": 0.00305746017, + "psnr_db": 73.5262034, + "ref_absmax": 11.3481283, + "rel_max": 0.0134661694, + "scaled_max_abs": 0.0134661694 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_41_cast_fp16" + }, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 0.711003077, + "index": 6, + "metrics": { + "corr": 0.999993473, + "finite": true, + "max_abs": 0.0292298794, + "mean_abs": 0.00270321117, + "psnr_db": 66.7353234, + "ref_absmax": 4.11107635, + "rel_max": 0.00711003077, + "scaled_max_abs": 0.00711003077 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "status": "pass", + "tap": "net.norm" + }, + { + "band_ratio": 0.501150413, + "index": 7, + "metrics": { + "corr": 0.999997164, + "finite": true, + "max_abs": 0.0111043453, + "mean_abs": 0.000845072981, + "psnr_db": 69.8160586, + "ref_absmax": 2.21577096, + "rel_max": 0.00501150413, + "scaled_max_abs": 0.00501150413 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_cast_fp16" + }, + "status": "pass", + "tap": "net.pool" + }, + { + "band_ratio": 0.349849989, + "index": 8, + "metrics": { + "corr": 0.999995654, + "finite": true, + "max_abs": 0.00442934036, + "mean_abs": 0.000622573402, + "psnr_db": 67.6041424, + "ref_absmax": 1.26606846, + "rel_max": 0.00349849989, + "scaled_max_abs": 0.00349849989 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "pass", + "tap": "net.head" + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.402825966, + "metrics": { + "corr": 0.999995129, + "finite": true, + "max_abs": 0.00541609526, + "mean_abs": 0.000663621235, + "psnr_db": 67.1899789, + "ref_absmax": 1.34452486, + "rel_max": 0.00402825966, + "scaled_max_abs": 0.00402825966 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 0.116213884, + "index": 0, + "metrics": { + "corr": 0.999999912, + "finite": true, + "max_abs": 0.0133981705, + "mean_abs": 0.000679588388, + "psnr_db": 83.6184843, + "ref_absmax": 11.5288897, + "rel_max": 0.00116213884, + "scaled_max_abs": 0.00116213884 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.817007877, + "index": 1, + "metrics": { + "corr": 0.999991415, + "finite": true, + "max_abs": 0.0969877243, + "mean_abs": 0.00250771621, + "psnr_db": 74.367951, + "ref_absmax": 11.871088, + "rel_max": 0.00817007877, + "scaled_max_abs": 0.00817007877 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_5_cast_fp16" + }, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_ratio": 0.860384338, + "index": 2, + "metrics": { + "corr": 0.999992187, + "finite": true, + "max_abs": 0.0995883942, + "mean_abs": 0.00251680124, + "psnr_db": 74.29315, + "ref_absmax": 11.574873, + "rel_max": 0.00860384338, + "scaled_max_abs": 0.00860384338 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5_cast_fp16" + }, + "status": "pass", + "tap": "net.pos_embed" + }, + { + "band_ratio": 0.837666842, + "index": 3, + "metrics": { + "corr": 0.999992439, + "finite": true, + "max_abs": 0.0996370316, + "mean_abs": 0.00269992927, + "psnr_db": 74.3779895, + "ref_absmax": 11.8945894, + "rel_max": 0.00837666842, + "scaled_max_abs": 0.00837666842 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_17_cast_fp16" + }, + "status": "pass", + "tap": "net.blocks.0" + }, + { + "band_ratio": 0.83436153, + "index": 4, + "metrics": { + "corr": 0.999992743, + "finite": true, + "max_abs": 0.101405144, + "mean_abs": 0.00289164657, + "psnr_db": 74.2749382, + "ref_absmax": 12.1536217, + "rel_max": 0.0083436153, + "scaled_max_abs": 0.0083436153 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_29_cast_fp16" + }, + "status": "pass", + "tap": "net.blocks.1" + }, + { + "band_ratio": 0.818916301, + "index": 5, + "metrics": { + "corr": 0.999992873, + "finite": true, + "max_abs": 0.102446556, + "mean_abs": 0.00303753381, + "psnr_db": 74.1588749, + "ref_absmax": 12.5100155, + "rel_max": 0.00818916301, + "scaled_max_abs": 0.00818916301 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_41_cast_fp16" + }, + "status": "pass", + "tap": "net.blocks.2" + }, + { + "band_ratio": 0.678718025, + "index": 6, + "metrics": { + "corr": 0.999993569, + "finite": true, + "max_abs": 0.0284955502, + "mean_abs": 0.00267585862, + "psnr_db": 66.9877398, + "ref_absmax": 4.19843721, + "rel_max": 0.00678718025, + "scaled_max_abs": 0.00678718025 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "status": "pass", + "tap": "net.norm" + }, + { + "band_ratio": 0.478346443, + "index": 7, + "metrics": { + "corr": 0.99999748, + "finite": true, + "max_abs": 0.0106277466, + "mean_abs": 0.000813371892, + "psnr_db": 69.9111582, + "ref_absmax": 2.22176766, + "rel_max": 0.00478346443, + "scaled_max_abs": 0.00478346443 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_cast_fp16" + }, + "status": "pass", + "tap": "net.pool" + }, + { + "band_ratio": 0.402825966, + "index": 8, + "metrics": { + "corr": 0.999995129, + "finite": true, + "max_abs": 0.00541609526, + "mean_abs": 0.000663621235, + "psnr_db": 67.1899789, + "ref_absmax": 1.34452486, + "rel_max": 0.00402825966, + "scaled_max_abs": 0.00402825966 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "pass", + "tap": "net.head" + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp16", + "id": "tinyvit__clean__coreml_fp16", + "model": "tinyvit", + "path": "coreml", + "variant": "clean" + }, + "verdict": "PASS" +} diff --git a/bench/verdicts_e2e_gated/tinyvit__clean__coreml_fp32.json b/bench/verdicts_e2e_gated/tinyvit__clean__coreml_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..83c2640f905b0d8f61f065ccab3a97f208242c45 --- /dev/null +++ b/bench/verdicts_e2e_gated/tinyvit__clean__coreml_fp32.json @@ -0,0 +1,545 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": false, + "note": null, + "status": "clear" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "status": "clear" + } + }, + "declared_precision": "fp32", + "first_divergence": null, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "d6d2a7884f8cb6e86e7c5d7f8d4962a6994aaed3940af696bf084c72c2d9a44b", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "49363dac389cca779b428b1ff97c1abbc4d133fd0d765733adc74d7dcec74e73", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": null, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.00235392661, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.98023224e-07, + "mean_abs": 6.39876816e-08, + "psnr_db": 148.653017, + "ref_absmax": 1.26606846, + "rel_max": 2.35392661e-07, + "scaled_max_abs": 2.35392661e-07 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.26638033e-08, + "psnr_db": 163.904618, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.00441678321, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 1.05437658e-07, + "psnr_db": 161.322112, + "ref_absmax": 10.7960281, + "rel_max": 4.41678321e-07, + "scaled_max_abs": 4.41678321e-07 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_5" + }, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_ratio": 0.00442564509, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 1.08827013e-07, + "psnr_db": 161.063379, + "ref_absmax": 10.7744102, + "rel_max": 4.42564509e-07, + "scaled_max_abs": 4.42564509e-07 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5" + }, + "status": "pass", + "tap": "net.pos_embed" + }, + { + "band_ratio": 0.00444830914, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 1.38193594e-07, + "psnr_db": 160.03963, + "ref_absmax": 10.7195148, + "rel_max": 4.44830914e-07, + "scaled_max_abs": 4.44830914e-07 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_17" + }, + "status": "pass", + "tap": "net.blocks.0" + }, + { + "band_ratio": 0.00520015392, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.7220459e-06, + "mean_abs": 1.64897191e-07, + "psnr_db": 159.182865, + "ref_absmax": 11.0036087, + "rel_max": 5.20015392e-07, + "scaled_max_abs": 5.20015392e-07 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_29" + }, + "status": "pass", + "tap": "net.blocks.1" + }, + { + "band_ratio": 0.00504228163, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.7220459e-06, + "mean_abs": 1.86291669e-07, + "psnr_db": 158.670108, + "ref_absmax": 11.3481283, + "rel_max": 5.04228163e-07, + "scaled_max_abs": 5.04228163e-07 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_41" + }, + "status": "pass", + "tap": "net.blocks.2" + }, + { + "band_ratio": 0.0046395359, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.90734863e-06, + "mean_abs": 1.82634463e-07, + "psnr_db": 150.24297, + "ref_absmax": 4.11107635, + "rel_max": 4.6395359e-07, + "scaled_max_abs": 4.6395359e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x" + }, + "status": "pass", + "tap": "net.norm" + }, + { + "band_ratio": 0.00430402931, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 7.45089466e-08, + "psnr_db": 151.281632, + "ref_absmax": 2.21577096, + "rel_max": 4.30402931e-07, + "scaled_max_abs": 4.30402931e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_1" + }, + "status": "pass", + "tap": "net.pool" + }, + { + "band_ratio": 0.00235392661, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.98023224e-07, + "mean_abs": 6.39876816e-08, + "psnr_db": 148.653017, + "ref_absmax": 1.26606846, + "rel_max": 2.35392661e-07, + "scaled_max_abs": 2.35392661e-07 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "pass", + "tap": "net.head" + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.00354651054, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-07, + "mean_abs": 7.67468009e-08, + "psnr_db": 147.311609, + "ref_absmax": 1.34452486, + "rel_max": 3.54651054e-07, + "scaled_max_abs": 3.54651054e-07 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.2793459e-08, + "psnr_db": 164.013874, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.00321343524, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.81469727e-06, + "mean_abs": 1.07091069e-07, + "psnr_db": 161.736623, + "ref_absmax": 11.871088, + "rel_max": 3.21343524e-07, + "scaled_max_abs": 3.21343524e-07 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_5" + }, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_ratio": 0.00411958869, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 1.09860232e-07, + "psnr_db": 161.519356, + "ref_absmax": 11.574873, + "rel_max": 4.11958869e-07, + "scaled_max_abs": 4.11958869e-07 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5" + }, + "status": "pass", + "tap": "net.pos_embed" + }, + { + "band_ratio": 0.00400885765, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 1.40039236e-07, + "psnr_db": 160.709782, + "ref_absmax": 11.8945894, + "rel_max": 4.00885765e-07, + "scaled_max_abs": 4.00885765e-07 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_17" + }, + "status": "pass", + "tap": "net.blocks.0" + }, + { + "band_ratio": 0.00392341617, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 1.67760047e-07, + "psnr_db": 159.824967, + "ref_absmax": 12.1536217, + "rel_max": 3.92341617e-07, + "scaled_max_abs": 3.92341617e-07 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_29" + }, + "status": "pass", + "tap": "net.blocks.1" + }, + { + "band_ratio": 0.00381164323, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 1.89873149e-07, + "psnr_db": 159.127453, + "ref_absmax": 12.5100155, + "rel_max": 3.81164323e-07, + "scaled_max_abs": 3.81164323e-07 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_41" + }, + "status": "pass", + "tap": "net.blocks.2" + }, + { + "band_ratio": 0.00340724751, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-06, + "mean_abs": 1.85331143e-07, + "psnr_db": 150.311684, + "ref_absmax": 4.19843721, + "rel_max": 3.40724751e-07, + "scaled_max_abs": 3.40724751e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x" + }, + "status": "pass", + "tap": "net.norm" + }, + { + "band_ratio": 0.00536551555, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.1920929e-06, + "mean_abs": 9.12808105e-08, + "psnr_db": 149.392826, + "ref_absmax": 2.22176766, + "rel_max": 5.36551555e-07, + "scaled_max_abs": 5.36551555e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_1" + }, + "status": "pass", + "tap": "net.pool" + }, + { + "band_ratio": 0.00354651054, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-07, + "mean_abs": 7.67468009e-08, + "psnr_db": 147.311609, + "ref_absmax": 1.34452486, + "rel_max": 3.54651054e-07, + "scaled_max_abs": 3.54651054e-07 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "pass", + "tap": "net.head" + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp32", + "id": "tinyvit__clean__coreml_fp32", + "model": "tinyvit", + "path": "coreml", + "variant": "clean" + }, + "verdict": "PASS" +} diff --git a/bench/verdicts_e2e_gated/tinyvit__clean__litert_fp16.json b/bench/verdicts_e2e_gated/tinyvit__clean__litert_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..93a371e929d5611c40e6b8ec46054f885003fc82 --- /dev/null +++ b/bench/verdicts_e2e_gated/tinyvit__clean__litert_fp16.json @@ -0,0 +1,574 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": false, + "note": null, + "status": "clear" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 1.55154223e-05, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.08616257e-07, + "mean_abs": 4.28262865e-08, + "psnr_db": 152.601588, + "ref_absmax": 1.3445735, + "rel_max": 1.55154223e-07, + "scaled_max_abs": 1.55154223e-07 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 57, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 1, + "n_ops_total": 187, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "status": "clear" + } + }, + "declared_precision": "fp16", + "first_divergence": null, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "170133fb2c750896c9b9cfaed4c8aab6b2e92dd28e9a0114b604c6d35736d93d", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "e6f67f478f27c5cbe93fb3192583b8c4adeb54f48117f07895a6c68beeb1c827", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": null, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.0208557898, + "metrics": { + "corr": 0.999999962, + "finite": true, + "max_abs": 0.000264048576, + "mean_abs": 7.30160158e-05, + "psnr_db": 88.0747128, + "ref_absmax": 1.26606846, + "rel_max": 0.000208557898, + "scaled_max_abs": 0.000208557898 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 8.27203959e-06, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.26638033e-08, + "psnr_db": 163.904618, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0238484209, + "index": 1, + "metrics": { + "corr": 0.999999975, + "finite": true, + "max_abs": 0.00257468224, + "mean_abs": 0.000153147335, + "psnr_db": 99.1308904, + "ref_absmax": 10.7960281, + "rel_max": 0.000238484209, + "scaled_max_abs": 0.000238484209 + }, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;2" + }, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_ratio": 0.0238962707, + "index": 2, + "metrics": { + "corr": 0.999999977, + "finite": true, + "max_abs": 0.00257468224, + "mean_abs": 0.000153147282, + "psnr_db": 99.0500481, + "ref_absmax": 10.7744102, + "rel_max": 0.000238962707, + "scaled_max_abs": 0.000238962707 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;3" + }, + "status": "pass", + "tap": "net.pos_embed" + }, + { + "band_ratio": 0.0248371341, + "index": 3, + "metrics": { + "corr": 0.999999975, + "finite": true, + "max_abs": 0.00266242027, + "mean_abs": 0.000175715531, + "psnr_db": 98.3929002, + "ref_absmax": 10.7195148, + "rel_max": 0.000248371341, + "scaled_max_abs": 0.000248371341 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.0" + }, + { + "band_ratio": 0.0244428902, + "index": 4, + "metrics": { + "corr": 0.999999975, + "finite": true, + "max_abs": 0.00268959999, + "mean_abs": 0.000194126271, + "psnr_db": 98.0679496, + "ref_absmax": 11.0036087, + "rel_max": 0.000244428902, + "scaled_max_abs": 0.000244428902 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.1" + }, + { + "band_ratio": 0.0249340827, + "index": 5, + "metrics": { + "corr": 0.999999975, + "finite": true, + "max_abs": 0.0028295517, + "mean_abs": 0.000204465949, + "psnr_db": 98.0757778, + "ref_absmax": 11.3481283, + "rel_max": 0.000249340827, + "scaled_max_abs": 0.000249340827 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.2" + }, + { + "band_ratio": 0.0310450195, + "index": 6, + "metrics": { + "corr": 0.999999972, + "finite": true, + "max_abs": 0.00127628446, + "mean_abs": 0.000187560799, + "psnr_db": 90.4287298, + "ref_absmax": 4.11107635, + "rel_max": 0.000310450195, + "scaled_max_abs": 0.000310450195 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "status": "pass", + "tap": "net.norm" + }, + { + "band_ratio": 0.0243123856, + "index": 7, + "metrics": { + "corr": 0.999999971, + "finite": true, + "max_abs": 0.000538706779, + "mean_abs": 0.000104170572, + "psnr_db": 89.7874492, + "ref_absmax": 2.21577096, + "rel_max": 0.000243123856, + "scaled_max_abs": 0.000243123856 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "status": "pass", + "tap": "net.pool" + }, + { + "band_ratio": 0.0208557898, + "index": 8, + "metrics": { + "corr": 0.999999962, + "finite": true, + "max_abs": 0.000264048576, + "mean_abs": 7.30160158e-05, + "psnr_db": 88.0747128, + "ref_absmax": 1.26606846, + "rel_max": 0.000208557898, + "scaled_max_abs": 0.000208557898 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "pass", + "tap": "net.head" + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.0197939619, + "metrics": { + "corr": 0.999999958, + "finite": true, + "max_abs": 0.000266134739, + "mean_abs": 7.85663025e-05, + "psnr_db": 87.7638046, + "ref_absmax": 1.34452486, + "rel_max": 0.000197939619, + "scaled_max_abs": 0.000197939619 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 8.27203959e-06, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.2793459e-08, + "psnr_db": 164.013874, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0277319462, + "index": 1, + "metrics": { + "corr": 0.999999975, + "finite": true, + "max_abs": 0.00329208374, + "mean_abs": 0.00015256364, + "psnr_db": 99.7212805, + "ref_absmax": 11.871088, + "rel_max": 0.000277319462, + "scaled_max_abs": 0.000277319462 + }, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;2" + }, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_ratio": 0.0284416403, + "index": 2, + "metrics": { + "corr": 0.999999977, + "finite": true, + "max_abs": 0.00329208374, + "mean_abs": 0.000152563603, + "psnr_db": 99.6624604, + "ref_absmax": 11.574873, + "rel_max": 0.000284416403, + "scaled_max_abs": 0.000284416403 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;3" + }, + "status": "pass", + "tap": "net.pos_embed" + }, + { + "band_ratio": 0.0279738087, + "index": 3, + "metrics": { + "corr": 0.999999975, + "finite": true, + "max_abs": 0.00332736969, + "mean_abs": 0.000176384194, + "psnr_db": 99.194827, + "ref_absmax": 11.8945894, + "rel_max": 0.000279738087, + "scaled_max_abs": 0.000279738087 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.0" + }, + { + "band_ratio": 0.0270794184, + "index": 4, + "metrics": { + "corr": 0.999999974, + "finite": true, + "max_abs": 0.00329113007, + "mean_abs": 0.000196887379, + "psnr_db": 98.8068327, + "ref_absmax": 12.1536217, + "rel_max": 0.000270794184, + "scaled_max_abs": 0.000270794184 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.1" + }, + { + "band_ratio": 0.0256599822, + "index": 5, + "metrics": { + "corr": 0.999999975, + "finite": true, + "max_abs": 0.00321006775, + "mean_abs": 0.000207746592, + "psnr_db": 98.6389943, + "ref_absmax": 12.5100155, + "rel_max": 0.000256599822, + "scaled_max_abs": 0.000256599822 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.2" + }, + { + "band_ratio": 0.0284519364, + "index": 6, + "metrics": { + "corr": 0.999999972, + "finite": true, + "max_abs": 0.00119453669, + "mean_abs": 0.000190440265, + "psnr_db": 90.5400099, + "ref_absmax": 4.19843721, + "rel_max": 0.000284519364, + "scaled_max_abs": 0.000284519364 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "status": "pass", + "tap": "net.norm" + }, + { + "band_ratio": 0.0238872752, + "index": 7, + "metrics": { + "corr": 0.99999997, + "finite": true, + "max_abs": 0.000530719757, + "mean_abs": 0.000113873221, + "psnr_db": 89.1445653, + "ref_absmax": 2.22176766, + "rel_max": 0.000238872752, + "scaled_max_abs": 0.000238872752 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "status": "pass", + "tap": "net.pool" + }, + { + "band_ratio": 0.0197939619, + "index": 8, + "metrics": { + "corr": 0.999999958, + "finite": true, + "max_abs": 0.000266134739, + "mean_abs": 7.85663025e-05, + "psnr_db": 87.7638046, + "ref_absmax": 1.34452486, + "rel_max": 0.000197939619, + "scaled_max_abs": 0.000197939619 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "pass", + "tap": "net.head" + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp16", + "id": "tinyvit__clean__litert_fp16", + "model": "tinyvit", + "path": "litert", + "variant": "clean" + }, + "verdict": "PASS" +} diff --git a/bench/verdicts_e2e_gated/tinyvit__clean__litert_fp32.json b/bench/verdicts_e2e_gated/tinyvit__clean__litert_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..3b1edf29970b7cfa2412d95bad1c5a8b5b43b4b1 --- /dev/null +++ b/bench/verdicts_e2e_gated/tinyvit__clean__litert_fp32.json @@ -0,0 +1,574 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": false, + "note": null, + "status": "clear" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 0.00132994157, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.78813934e-07, + "mean_abs": 4.3772161e-08, + "psnr_db": 152.770609, + "ref_absmax": 1.34452474, + "rel_max": 1.32994157e-07, + "scaled_max_abs": 1.32994157e-07 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 57, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 1, + "n_ops_total": 173, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "status": "clear" + } + }, + "declared_precision": "fp32", + "first_divergence": null, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "5d1fd9790b63bb8a58baaef2bdae20ab879f1d5615b25289a186201443a73853", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "b5cc311c90efc0c4346255b47684af424f4ddf50a0a8488c41e68f800fe2dd19", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": null, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.00364858625, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.61935997e-07, + "mean_abs": 7.83940777e-08, + "psnr_db": 146.968018, + "ref_absmax": 1.26606846, + "rel_max": 3.64858625e-07, + "scaled_max_abs": 3.64858625e-07 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.26638033e-08, + "psnr_db": 163.904618, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.013692028, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.47819519e-05, + "mean_abs": 3.77735959e-07, + "psnr_db": 150.658464, + "ref_absmax": 10.7960281, + "rel_max": 1.3692028e-06, + "scaled_max_abs": 1.3692028e-06 + }, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;2" + }, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_ratio": 0.0137194998, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.47819519e-05, + "mean_abs": 3.78651032e-07, + "psnr_db": 150.56143, + "ref_absmax": 10.7744102, + "rel_max": 1.37194998e-06, + "scaled_max_abs": 1.37194998e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;3" + }, + "status": "pass", + "tap": "net.pos_embed" + }, + { + "band_ratio": 0.0133449274, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-05, + "mean_abs": 4.0469488e-07, + "psnr_db": 150.358835, + "ref_absmax": 10.7195148, + "rel_max": 1.33449274e-06, + "scaled_max_abs": 1.33449274e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.0" + }, + { + "band_ratio": 0.0130003848, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-05, + "mean_abs": 4.27641757e-07, + "psnr_db": 150.281717, + "ref_absmax": 11.0036087, + "rel_max": 1.30003848e-06, + "scaled_max_abs": 1.30003848e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.1" + }, + { + "band_ratio": 0.0126057041, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-05, + "mean_abs": 4.47188193e-07, + "psnr_db": 150.363744, + "ref_absmax": 11.3481283, + "rel_max": 1.26057041e-06, + "scaled_max_abs": 1.26057041e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.2" + }, + { + "band_ratio": 0.0104389558, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.29153442e-06, + "mean_abs": 4.01966342e-07, + "psnr_db": 143.372839, + "ref_absmax": 4.11107635, + "rel_max": 1.04389558e-06, + "scaled_max_abs": 1.04389558e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "status": "pass", + "tap": "net.norm" + }, + { + "band_ratio": 0.00443853023, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.83476639e-07, + "mean_abs": 1.06298145e-07, + "psnr_db": 148.486514, + "ref_absmax": 2.21577096, + "rel_max": 4.43853023e-07, + "scaled_max_abs": 4.43853023e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "status": "pass", + "tap": "net.pool" + }, + { + "band_ratio": 0.00364858625, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.61935997e-07, + "mean_abs": 7.83940777e-08, + "psnr_db": 146.968018, + "ref_absmax": 1.26606846, + "rel_max": 3.64858625e-07, + "scaled_max_abs": 3.64858625e-07 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "pass", + "tap": "net.head" + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.00354651054, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-07, + "mean_abs": 8.9162495e-08, + "psnr_db": 146.224752, + "ref_absmax": 1.34452486, + "rel_max": 3.54651054e-07, + "scaled_max_abs": 3.54651054e-07 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.2793459e-08, + "psnr_db": 164.013874, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0120503822, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-05, + "mean_abs": 3.77230551e-07, + "psnr_db": 151.208122, + "ref_absmax": 11.871088, + "rel_max": 1.20503822e-06, + "scaled_max_abs": 1.20503822e-06 + }, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;2" + }, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_ratio": 0.0123587661, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-05, + "mean_abs": 3.77991994e-07, + "psnr_db": 151.132396, + "ref_absmax": 11.574873, + "rel_max": 1.23587661e-06, + "scaled_max_abs": 1.23587661e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;3" + }, + "status": "pass", + "tap": "net.pos_embed" + }, + { + "band_ratio": 0.012026573, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-05, + "mean_abs": 4.04609382e-07, + "psnr_db": 151.152989, + "ref_absmax": 11.8945894, + "rel_max": 1.2026573e-06, + "scaled_max_abs": 1.2026573e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.0" + }, + { + "band_ratio": 0.0109855653, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33514404e-05, + "mean_abs": 4.29329414e-07, + "psnr_db": 151.043175, + "ref_absmax": 12.1536217, + "rel_max": 1.09855653e-06, + "scaled_max_abs": 1.09855653e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.1" + }, + { + "band_ratio": 0.010672601, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33514404e-05, + "mean_abs": 4.49061651e-07, + "psnr_db": 150.942806, + "ref_absmax": 12.5100155, + "rel_max": 1.0672601e-06, + "scaled_max_abs": 1.0672601e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.2" + }, + { + "band_ratio": 0.0122093036, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.12599945e-06, + "mean_abs": 4.00810134e-07, + "psnr_db": 143.56936, + "ref_absmax": 4.19843721, + "rel_max": 1.22093036e-06, + "scaled_max_abs": 1.22093036e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "status": "pass", + "tap": "net.norm" + }, + { + "band_ratio": 0.00516430872, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.14738941e-06, + "mean_abs": 1.24958994e-07, + "psnr_db": 147.260116, + "ref_absmax": 2.22176766, + "rel_max": 5.16430872e-07, + "scaled_max_abs": 5.16430872e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "status": "pass", + "tap": "net.pool" + }, + { + "band_ratio": 0.00354651054, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-07, + "mean_abs": 8.9162495e-08, + "psnr_db": 146.224752, + "ref_absmax": 1.34452486, + "rel_max": 3.54651054e-07, + "scaled_max_abs": 3.54651054e-07 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "pass", + "tap": "net.head" + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp32", + "id": "tinyvit__clean__litert_fp32", + "model": "tinyvit", + "path": "litert", + "variant": "clean" + }, + "verdict": "PASS" +} diff --git a/bench/verdicts_e2e_gated/tinyvit__clean__onnx_fp16.json b/bench/verdicts_e2e_gated/tinyvit__clean__onnx_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..73cad4bae6a5c6086217ac9af7cfc9e88a26597d --- /dev/null +++ b/bench/verdicts_e2e_gated/tinyvit__clean__onnx_fp16.json @@ -0,0 +1,545 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": false, + "note": null, + "status": "clear" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "status": "clear" + } + }, + "declared_precision": "fp16", + "first_divergence": null, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "256af465b0649a975fd83c261b17d7830bd11a36abe6723c11a591e4649ad014", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "4e990e5a6766e80eea68d854f1db627a391a6a25b03b20781b4f30f0c5c65cf1", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 4.91738319e-05, + "224": 4.39584255e-05 + }, + "primary_class": null, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.0456508758, + "metrics": { + "corr": 0.999999892, + "finite": true, + "max_abs": 0.000577971339, + "mean_abs": 0.00012937998, + "psnr_db": 83.1653887, + "ref_absmax": 1.26606846, + "rel_max": 0.000456508758, + "scaled_max_abs": 0.000456508758 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 0.0441313312, + "index": 0, + "metrics": { + "corr": 0.999999966, + "finite": true, + "max_abs": 0.00508785248, + "mean_abs": 0.000405953078, + "psnr_db": 88.0186903, + "ref_absmax": 11.5288897, + "rel_max": 0.000441313312, + "scaled_max_abs": 0.000441313312 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0469150713, + "index": 1, + "metrics": { + "corr": 0.999999939, + "finite": true, + "max_abs": 0.00506496429, + "mean_abs": 0.000255633799, + "psnr_db": 95.3001421, + "ref_absmax": 10.7960281, + "rel_max": 0.000469150713, + "scaled_max_abs": 0.000469150713 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_ratio": 0.0735365188, + "index": 2, + "metrics": { + "corr": 0.999999921, + "finite": true, + "max_abs": 0.00792312622, + "mean_abs": 0.000301602973, + "psnr_db": 93.5874175, + "ref_absmax": 10.7744102, + "rel_max": 0.000735365188, + "scaled_max_abs": 0.000735365188 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "status": "pass", + "tap": "net.pos_embed" + }, + { + "band_ratio": 0.0642335839, + "index": 3, + "metrics": { + "corr": 0.999999915, + "finite": true, + "max_abs": 0.00688552856, + "mean_abs": 0.000337762151, + "psnr_db": 93.052585, + "ref_absmax": 10.7195148, + "rel_max": 0.000642335839, + "scaled_max_abs": 0.000642335839 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.0" + }, + { + "band_ratio": 0.0711207718, + "index": 4, + "metrics": { + "corr": 0.99999991, + "finite": true, + "max_abs": 0.00782585144, + "mean_abs": 0.000375974454, + "psnr_db": 92.5622871, + "ref_absmax": 11.0036087, + "rel_max": 0.000711207718, + "scaled_max_abs": 0.000711207718 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.1" + }, + { + "band_ratio": 0.0762561059, + "index": 5, + "metrics": { + "corr": 0.999999905, + "finite": true, + "max_abs": 0.00865364075, + "mean_abs": 0.000407947414, + "psnr_db": 92.2800434, + "ref_absmax": 11.3481283, + "rel_max": 0.000762561059, + "scaled_max_abs": 0.000762561059 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.2" + }, + { + "band_ratio": 0.0818820092, + "index": 6, + "metrics": { + "corr": 0.999999846, + "finite": true, + "max_abs": 0.00336623192, + "mean_abs": 0.000424373745, + "psnr_db": 83.0143914, + "ref_absmax": 4.11107635, + "rel_max": 0.000818820092, + "scaled_max_abs": 0.000818820092 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "status": "pass", + "tap": "net.norm" + }, + { + "band_ratio": 0.079208262, + "index": 7, + "metrics": { + "corr": 0.999999805, + "finite": true, + "max_abs": 0.00175507367, + "mean_abs": 0.000274065814, + "psnr_db": 81.4508589, + "ref_absmax": 2.21577096, + "rel_max": 0.00079208262, + "scaled_max_abs": 0.00079208262 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/ReduceMean_output_0" + }, + "status": "pass", + "tap": "net.pool" + }, + { + "band_ratio": 0.0463029134, + "index": 8, + "metrics": { + "corr": 0.999999892, + "finite": true, + "max_abs": 0.000586226583, + "mean_abs": 0.000129292381, + "psnr_db": 83.163636, + "ref_absmax": 1.26606846, + "rel_max": 0.000463029134, + "scaled_max_abs": 0.000463029134 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "pass", + "tap": "net.head" + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.0423719346, + "metrics": { + "corr": 0.999999905, + "finite": true, + "max_abs": 0.000569701195, + "mean_abs": 0.000124554956, + "psnr_db": 83.7646999, + "ref_absmax": 1.34452486, + "rel_max": 0.000423719346, + "scaled_max_abs": 0.000423719346 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 0.0439328023, + "index": 0, + "metrics": { + "corr": 0.999999965, + "finite": true, + "max_abs": 0.00506496429, + "mean_abs": 0.000406712054, + "psnr_db": 88.0749992, + "ref_absmax": 11.5288897, + "rel_max": 0.000439328023, + "scaled_max_abs": 0.000439328023 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0469161546, + "index": 1, + "metrics": { + "corr": 0.99999994, + "finite": true, + "max_abs": 0.00556945801, + "mean_abs": 0.000254492238, + "psnr_db": 95.9056844, + "ref_absmax": 11.871088, + "rel_max": 0.000469161546, + "scaled_max_abs": 0.000469161546 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_ratio": 0.07491884, + "index": 2, + "metrics": { + "corr": 0.99999992, + "finite": true, + "max_abs": 0.00867176056, + "mean_abs": 0.000301083888, + "psnr_db": 94.1877045, + "ref_absmax": 11.574873, + "rel_max": 0.0007491884, + "scaled_max_abs": 0.0007491884 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "status": "pass", + "tap": "net.pos_embed" + }, + { + "band_ratio": 0.0635564292, + "index": 3, + "metrics": { + "corr": 0.999999915, + "finite": true, + "max_abs": 0.00755977631, + "mean_abs": 0.000339032434, + "psnr_db": 93.8757594, + "ref_absmax": 11.8945894, + "rel_max": 0.000635564292, + "scaled_max_abs": 0.000635564292 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.0" + }, + { + "band_ratio": 0.0671218039, + "index": 4, + "metrics": { + "corr": 0.99999991, + "finite": true, + "max_abs": 0.0081577301, + "mean_abs": 0.000376167463, + "psnr_db": 93.3355793, + "ref_absmax": 12.1536217, + "rel_max": 0.000671218039, + "scaled_max_abs": 0.000671218039 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.1" + }, + { + "band_ratio": 0.0664445648, + "index": 5, + "metrics": { + "corr": 0.999999905, + "finite": true, + "max_abs": 0.00831222534, + "mean_abs": 0.000408523199, + "psnr_db": 92.8873389, + "ref_absmax": 12.5100155, + "rel_max": 0.000664445648, + "scaled_max_abs": 0.000664445648 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.2" + }, + { + "band_ratio": 0.0851897059, + "index": 6, + "metrics": { + "corr": 0.999999848, + "finite": true, + "max_abs": 0.00357663631, + "mean_abs": 0.000421772845, + "psnr_db": 83.2639281, + "ref_absmax": 4.19843721, + "rel_max": 0.000851897059, + "scaled_max_abs": 0.000851897059 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "status": "pass", + "tap": "net.norm" + }, + { + "band_ratio": 0.0682010682, + "index": 7, + "metrics": { + "corr": 0.999999832, + "finite": true, + "max_abs": 0.00151526928, + "mean_abs": 0.000268050243, + "psnr_db": 81.6555098, + "ref_absmax": 2.22176766, + "rel_max": 0.000682010682, + "scaled_max_abs": 0.000682010682 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/ReduceMean_output_0" + }, + "status": "pass", + "tap": "net.pool" + }, + { + "band_ratio": 0.0426246235, + "index": 8, + "metrics": { + "corr": 0.999999904, + "finite": true, + "max_abs": 0.00057309866, + "mean_abs": 0.000125122938, + "psnr_db": 83.7414848, + "ref_absmax": 1.34452486, + "rel_max": 0.000426246235, + "scaled_max_abs": 0.000426246235 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "pass", + "tap": "net.head" + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp16", + "id": "tinyvit__clean__onnx_fp16", + "model": "tinyvit", + "path": "onnx", + "variant": "clean" + }, + "verdict": "PASS" +} diff --git a/bench/verdicts_e2e_gated/tinyvit__clean__onnx_fp32.json b/bench/verdicts_e2e_gated/tinyvit__clean__onnx_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..9f782305d1669c90507968c311386fe1bd864669 --- /dev/null +++ b/bench/verdicts_e2e_gated/tinyvit__clean__onnx_fp32.json @@ -0,0 +1,545 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": false, + "note": null, + "status": "clear" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "status": "clear" + } + }, + "declared_precision": "fp32", + "first_divergence": null, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "74eefc6501f9b3d02ba2c35530077ee1b2e699bfa718638c92c77c8132298a95", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "d4648595c778e951d3779bd8da0d8b43df8f39fd9d22a12fea6e87080e8669af", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 2.38418579e-07, + "224": 1.1920929e-07 + }, + "primary_class": null, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.0042370679, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.36441803e-07, + "mean_abs": 8.80565494e-08, + "psnr_db": 145.903901, + "ref_absmax": 1.26606846, + "rel_max": 4.2370679e-07, + "scaled_max_abs": 4.2370679e-07 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 0.0, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 11.5288897, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0119253147, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.28746033e-05, + "mean_abs": 3.19462653e-07, + "psnr_db": 151.866979, + "ref_absmax": 10.7960281, + "rel_max": 1.19253147e-06, + "scaled_max_abs": 1.19253147e-06 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_ratio": 0.0119492417, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.28746033e-05, + "mean_abs": 3.49198263e-07, + "psnr_db": 151.445693, + "ref_absmax": 10.7744102, + "rel_max": 1.19492417e-06, + "scaled_max_abs": 1.19492417e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "status": "pass", + "tap": "net.pos_embed" + }, + { + "band_ratio": 0.0124552656, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33514404e-05, + "mean_abs": 3.75557543e-07, + "psnr_db": 151.183096, + "ref_absmax": 10.7195148, + "rel_max": 1.24552656e-06, + "scaled_max_abs": 1.24552656e-06 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.0" + }, + { + "band_ratio": 0.0121336925, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33514404e-05, + "mean_abs": 4.00633754e-07, + "psnr_db": 151.04211, + "ref_absmax": 11.0036087, + "rel_max": 1.21336925e-06, + "scaled_max_abs": 1.21336925e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.1" + }, + { + "band_ratio": 0.0117653238, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33514404e-05, + "mean_abs": 4.22095975e-07, + "psnr_db": 151.052516, + "ref_absmax": 11.3481283, + "rel_max": 1.17653238e-06, + "scaled_max_abs": 1.17653238e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.2" + }, + { + "band_ratio": 0.0104389558, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.29153442e-06, + "mean_abs": 3.91903887e-07, + "psnr_db": 143.585678, + "ref_absmax": 4.11107635, + "rel_max": 1.04389558e-06, + "scaled_max_abs": 1.04389558e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "status": "pass", + "tap": "net.norm" + }, + { + "band_ratio": 0.00487565821, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.08033419e-06, + "mean_abs": 1.13673281e-07, + "psnr_db": 147.911727, + "ref_absmax": 2.21577096, + "rel_max": 4.87565821e-07, + "scaled_max_abs": 4.87565821e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/ReduceMean_output_0" + }, + "status": "pass", + "tap": "net.pool" + }, + { + "band_ratio": 0.00400167524, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.06639481e-07, + "mean_abs": 8.64645699e-08, + "psnr_db": 146.023693, + "ref_absmax": 1.26606846, + "rel_max": 4.00167524e-07, + "scaled_max_abs": 4.00167524e-07 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "pass", + "tap": "net.head" + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.00365733899, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.91738319e-07, + "mean_abs": 9.09349183e-08, + "psnr_db": 146.014919, + "ref_absmax": 1.34452486, + "rel_max": 3.65733899e-07, + "scaled_max_abs": 3.65733899e-07 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 0.0, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 11.5288897, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0104436645, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.23977661e-05, + "mean_abs": 3.18193685e-07, + "psnr_db": 152.441072, + "ref_absmax": 11.871088, + "rel_max": 1.04436645e-06, + "scaled_max_abs": 1.04436645e-06 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_ratio": 0.0107109306, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.23977661e-05, + "mean_abs": 3.18841259e-07, + "psnr_db": 152.36286, + "ref_absmax": 11.574873, + "rel_max": 1.07109306e-06, + "scaled_max_abs": 1.07109306e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "status": "pass", + "tap": "net.pos_embed" + }, + { + "band_ratio": 0.0104230299, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.23977661e-05, + "mean_abs": 3.4705172e-07, + "psnr_db": 152.330323, + "ref_absmax": 11.8945894, + "rel_max": 1.04230299e-06, + "scaled_max_abs": 1.04230299e-06 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.0" + }, + { + "band_ratio": 0.010200882, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.23977661e-05, + "mean_abs": 3.72946531e-07, + "psnr_db": 152.172601, + "ref_absmax": 12.1536217, + "rel_max": 1.0200882e-06, + "scaled_max_abs": 1.0200882e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.1" + }, + { + "band_ratio": 0.00991027239, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.23977661e-05, + "mean_abs": 3.93472908e-07, + "psnr_db": 152.03444, + "ref_absmax": 12.5100155, + "rel_max": 9.91027239e-07, + "scaled_max_abs": 9.91027239e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.2" + }, + { + "band_ratio": 0.0102217425, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.29153442e-06, + "mean_abs": 3.56977886e-07, + "psnr_db": 144.555686, + "ref_absmax": 4.19843721, + "rel_max": 1.02217425e-06, + "scaled_max_abs": 1.02217425e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "status": "pass", + "tap": "net.norm" + }, + { + "band_ratio": 0.00429241244, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 1.1915192e-07, + "psnr_db": 147.486514, + "ref_absmax": 2.22176766, + "rel_max": 4.29241244e-07, + "scaled_max_abs": 4.29241244e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/ReduceMean_output_0" + }, + "status": "pass", + "tap": "net.pool" + }, + { + "band_ratio": 0.00365733899, + "index": 8, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.91738319e-07, + "mean_abs": 9.03062755e-08, + "psnr_db": 146.00363, + "ref_absmax": 1.34452486, + "rel_max": 3.65733899e-07, + "scaled_max_abs": 3.65733899e-07 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "pass", + "tap": "net.head" + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp32", + "id": "tinyvit__clean__onnx_fp32", + "model": "tinyvit", + "path": "onnx", + "variant": "clean" + }, + "verdict": "PASS" +} diff --git a/bench/verdicts_e2e_gated/tinyvit__drop_normalize__coreml_fp16.json b/bench/verdicts_e2e_gated/tinyvit__drop_normalize__coreml_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..3685ee8cd35e3d33b6117c3d49f032817b79ea95 --- /dev/null +++ b/bench/verdicts_e2e_gated/tinyvit__drop_normalize__coreml_fp16.json @@ -0,0 +1,676 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "net.patch_embed", + "explained_by": "no_normalize", + "nominal_band_ratio": 84.6880707, + "results": [ + { + "band_ratio": 93.2128292, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 98.4628717, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 149.40155, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 111.360907, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 0.790294203, + "explains": true, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [ + "inputs[0]: dtype float16 (declared float32)", + "outputs[0]: dtype float16 (declared float32)" + ], + "status": "precision_narrowing" + }, + "status": "flag" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": null, + "basis": "interface hypothesis 'no_normalize' explains the first over-band tap (net.patch_embed)", + "index": 0, + "neighbourhood": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": null + }, + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 72.1618819, + "index": 1, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_5_cast_fp16" + }, + "status": "fail", + "tap": "net.patch_embed" + } + ], + "observed_first_over_band": { + "index": 1, + "tap": "net.patch_embed" + }, + "shape": 224, + "tap": "normalize" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "4384271792639ba0fc0d288545482fea851e2fc2d1692516554b427ef22bcbfe", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "4d5b9004b82bc32121e621f08d91bb2a9cbf7097e3363242cf312881a331278a", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + }, + { + "item": "tap normalize @ 224", + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)" + }, + { + "item": "tap normalize @ 192", + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D3", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.71875, + "band_ratio": 92.0546079, + "metrics": { + "corr": 0.611272513, + "finite": true, + "max_abs": 1.16547436, + "mean_abs": 0.267371247, + "psnr_db": 16.677663, + "ref_absmax": 1.26606846, + "rel_max": 0.920546079, + "scaled_max_abs": 0.920546079 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 7 + } + }, + "first_fail_index": 1, + "n_judged": 8, + "n_taps": 9, + "taps": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": null + }, + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)", + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 71.8863622, + "index": 1, + "metrics": { + "corr": 0.718449569, + "finite": true, + "max_abs": 7.76087189, + "mean_abs": 0.567667579, + "psnr_db": 28.2024455, + "ref_absmax": 10.7960281, + "rel_max": 0.718863622, + "scaled_max_abs": 0.718863622 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_5_cast_fp16" + }, + "status": "fail", + "tap": "net.patch_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 72.0277191, + "index": 2, + "metrics": { + "corr": 0.710288148, + "finite": true, + "max_abs": 7.76056194, + "mean_abs": 0.567668626, + "psnr_db": 28.1215975, + "ref_absmax": 10.7744102, + "rel_max": 0.720277191, + "scaled_max_abs": 0.720277191 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_3_cast_fp16" + }, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 72.6169296, + "index": 3, + "metrics": { + "corr": 0.65882399, + "finite": true, + "max_abs": 7.78418255, + "mean_abs": 0.62019627, + "psnr_db": 27.686805, + "ref_absmax": 10.7195148, + "rel_max": 0.726169296, + "scaled_max_abs": 0.726169296 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_15_cast_fp16" + }, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 70.3037497, + "index": 4, + "metrics": { + "corr": 0.615764581, + "finite": true, + "max_abs": 7.73594952, + "mean_abs": 0.684583587, + "psnr_db": 27.1777745, + "ref_absmax": 11.0036087, + "rel_max": 0.703037497, + "scaled_max_abs": 0.703037497 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_27_cast_fp16" + }, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 69.000271, + "index": 5, + "metrics": { + "corr": 0.591323861, + "finite": true, + "max_abs": 7.8302393, + "mean_abs": 0.742975155, + "psnr_db": 26.9545358, + "ref_absmax": 11.3481283, + "rel_max": 0.69000271, + "scaled_max_abs": 0.69000271 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_39_cast_fp16" + }, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 108.773974, + "index": 6, + "metrics": { + "corr": 0.561039704, + "finite": true, + "max_abs": 4.47178113, + "mean_abs": 0.718743154, + "psnr_db": 18.4581078, + "ref_absmax": 4.11107635, + "rel_max": 1.08773974, + "scaled_max_abs": 1.08773974 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_ratio": 130.287782, + "index": 7, + "metrics": { + "corr": 0.454931209, + "finite": true, + "max_abs": 2.88687885, + "mean_abs": 0.558451382, + "psnr_db": 15.3061155, + "ref_absmax": 2.21577096, + "rel_max": 1.30287782, + "scaled_max_abs": 1.30287782 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_cast_fp16" + }, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "natural", + "index": 7 + } + }, + { + "band_ratio": 92.0546079, + "index": 8, + "metrics": { + "corr": 0.611272513, + "finite": true, + "max_abs": 1.16547436, + "mean_abs": 0.267371247, + "psnr_db": 16.677663, + "ref_absmax": 1.26606846, + "rel_max": 0.920546079, + "scaled_max_abs": 0.920546079 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "natural", + "index": 7 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.625, + "band_ratio": 89.3751864, + "metrics": { + "corr": 0.663792656, + "finite": true, + "max_abs": 1.2016716, + "mean_abs": 0.246362218, + "psnr_db": 17.5023366, + "ref_absmax": 1.34452486, + "rel_max": 0.893751864, + "scaled_max_abs": 0.893751864 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 2 + } + }, + "first_fail_index": 1, + "n_judged": 8, + "n_taps": 9, + "taps": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": null + }, + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)", + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 72.1618819, + "index": 1, + "metrics": { + "corr": 0.729479878, + "finite": true, + "max_abs": 8.56640053, + "mean_abs": 0.555727487, + "psnr_db": 28.8381705, + "ref_absmax": 11.871088, + "rel_max": 0.721618819, + "scaled_max_abs": 0.721618819 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_5_cast_fp16" + }, + "status": "fail", + "tap": "net.patch_embed", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 74.0142937, + "index": 2, + "metrics": { + "corr": 0.718467962, + "finite": true, + "max_abs": 8.56706047, + "mean_abs": 0.555727554, + "psnr_db": 28.7793505, + "ref_absmax": 11.574873, + "rel_max": 0.740142937, + "scaled_max_abs": 0.740142937 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_3_cast_fp16" + }, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 71.9377399, + "index": 3, + "metrics": { + "corr": 0.670745747, + "finite": true, + "max_abs": 8.5566988, + "mean_abs": 0.603636604, + "psnr_db": 28.5887241, + "ref_absmax": 11.8945894, + "rel_max": 0.719377399, + "scaled_max_abs": 0.719377399 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_15_cast_fp16" + }, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 69.67532, + "index": 4, + "metrics": { + "corr": 0.633452501, + "finite": true, + "max_abs": 8.4680748, + "mean_abs": 0.661593041, + "psnr_db": 28.0987157, + "ref_absmax": 12.1536217, + "rel_max": 0.6967532, + "scaled_max_abs": 0.6967532 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_27_cast_fp16" + }, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 68.2598065, + "index": 5, + "metrics": { + "corr": 0.61207437, + "finite": true, + "max_abs": 8.53931236, + "mean_abs": 0.714884916, + "psnr_db": 27.7354673, + "ref_absmax": 12.5100155, + "rel_max": 0.682598065, + "scaled_max_abs": 0.682598065 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_39_cast_fp16" + }, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 108.966938, + "index": 6, + "metrics": { + "corr": 0.599381253, + "finite": true, + "max_abs": 4.57490849, + "mean_abs": 0.67602074, + "psnr_db": 19.0434517, + "ref_absmax": 4.19843721, + "rel_max": 1.08966938, + "scaled_max_abs": 1.08966938 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_ratio": 134.153449, + "index": 7, + "metrics": { + "corr": 0.551945812, + "finite": true, + "max_abs": 2.98057795, + "mean_abs": 0.510838884, + "psnr_db": 15.8694342, + "ref_absmax": 2.22176766, + "rel_max": 1.34153449, + "scaled_max_abs": 1.34153449 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_cast_fp16" + }, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "natural", + "index": 2 + } + }, + { + "band_ratio": 89.3751864, + "index": 8, + "metrics": { + "corr": 0.663792656, + "finite": true, + "max_abs": 1.2016716, + "mean_abs": 0.246362218, + "psnr_db": 17.5023366, + "ref_absmax": 1.34452486, + "rel_max": 0.893751864, + "scaled_max_abs": 0.893751864 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "natural", + "index": 2 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp16", + "id": "tinyvit__drop_normalize__coreml_fp16", + "model": "tinyvit", + "path": "coreml", + "variant": "drop_normalize" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/tinyvit__drop_normalize__coreml_fp32.json b/bench/verdicts_e2e_gated/tinyvit__drop_normalize__coreml_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..228abe1678b70af053b596936ad49abf1fb7e558 --- /dev/null +++ b/bench/verdicts_e2e_gated/tinyvit__drop_normalize__coreml_fp32.json @@ -0,0 +1,673 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "net.patch_embed", + "explained_by": "no_normalize", + "nominal_band_ratio": 8470.9415, + "results": [ + { + "band_ratio": 9320.7338, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 9846.74292, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 14930.914, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 11142.0948, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 0.00307640477, + "explains": true, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "flag" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": null, + "basis": "interface hypothesis 'no_normalize' explains the first over-band tap (net.patch_embed)", + "index": 0, + "neighbourhood": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": null + }, + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 7214.68411, + "index": 1, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_5" + }, + "status": "fail", + "tap": "net.patch_embed" + } + ], + "observed_first_over_band": { + "index": 1, + "tap": "net.patch_embed" + }, + "shape": 224, + "tap": "normalize" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "2bbc29d354266e968022cffaecb43a4195a343bf3f9c7d1f84a44b5246de5d8c", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "5ccc088196dc8283fd77b32858e0ec7d9574f336f7816ee5a3bb6dcd9d200714", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + }, + { + "item": "tap normalize @ 224", + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)" + }, + { + "item": "tap normalize @ 192", + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D3", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.6875, + "band_ratio": 9191.93277, + "metrics": { + "corr": 0.611314911, + "finite": true, + "max_abs": 1.16376162, + "mean_abs": 0.267415156, + "psnr_db": 16.6773375, + "ref_absmax": 1.26606846, + "rel_max": 0.919193277, + "scaled_max_abs": 0.919193277 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 7 + } + }, + "first_fail_index": 1, + "n_judged": 8, + "n_taps": 9, + "taps": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": null + }, + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)", + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 7162.74526, + "index": 1, + "metrics": { + "corr": 0.718443255, + "finite": true, + "max_abs": 7.73291993, + "mean_abs": 0.567660222, + "psnr_db": 28.2026115, + "ref_absmax": 10.7960281, + "rel_max": 0.716274526, + "scaled_max_abs": 0.716274526 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_5" + }, + "status": "fail", + "tap": "net.patch_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7177.11644, + "index": 2, + "metrics": { + "corr": 0.710304318, + "finite": true, + "max_abs": 7.73291969, + "mean_abs": 0.567660222, + "psnr_db": 28.1217727, + "ref_absmax": 10.7744102, + "rel_max": 0.717711644, + "scaled_max_abs": 0.717711644 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_3" + }, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7238.31732, + "index": 3, + "metrics": { + "corr": 0.658827171, + "finite": true, + "max_abs": 7.75912499, + "mean_abs": 0.620193453, + "psnr_db": 27.6868994, + "ref_absmax": 10.7195148, + "rel_max": 0.723831732, + "scaled_max_abs": 0.723831732 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_15" + }, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7024.23662, + "index": 4, + "metrics": { + "corr": 0.615753651, + "finite": true, + "max_abs": 7.72919512, + "mean_abs": 0.684589802, + "psnr_db": 27.1776933, + "ref_absmax": 11.0036087, + "rel_max": 0.702423662, + "scaled_max_abs": 0.702423662 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_27" + }, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6894.96255, + "index": 5, + "metrics": { + "corr": 0.591304558, + "finite": true, + "max_abs": 7.82449198, + "mean_abs": 0.742986648, + "psnr_db": 26.9543704, + "ref_absmax": 11.3481283, + "rel_max": 0.689496255, + "scaled_max_abs": 0.689496255 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_39" + }, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 10875.3369, + "index": 6, + "metrics": { + "corr": 0.561004692, + "finite": true, + "max_abs": 4.47093403, + "mean_abs": 0.718766475, + "psnr_db": 18.4577653, + "ref_absmax": 4.11107635, + "rel_max": 1.08753369, + "scaled_max_abs": 1.08753369 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x" + }, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_ratio": 13026.3793, + "index": 7, + "metrics": { + "corr": 0.454847468, + "finite": true, + "max_abs": 2.88634729, + "mean_abs": 0.558458019, + "psnr_db": 15.305425, + "ref_absmax": 2.21577096, + "rel_max": 1.30263793, + "scaled_max_abs": 1.30263793 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_1" + }, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "natural", + "index": 7 + } + }, + { + "band_ratio": 9191.93277, + "index": 8, + "metrics": { + "corr": 0.611314911, + "finite": true, + "max_abs": 1.16376162, + "mean_abs": 0.267415156, + "psnr_db": 16.6773375, + "ref_absmax": 1.26606846, + "rel_max": 0.919193277, + "scaled_max_abs": 0.919193277 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "natural", + "index": 7 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.625, + "band_ratio": 8931.75024, + "metrics": { + "corr": 0.663749357, + "finite": true, + "max_abs": 1.20089602, + "mean_abs": 0.246445583, + "psnr_db": 17.5012244, + "ref_absmax": 1.34452486, + "rel_max": 0.893175024, + "scaled_max_abs": 0.893175024 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 2 + } + }, + "first_fail_index": 1, + "n_judged": 8, + "n_taps": 9, + "taps": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": null + }, + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)", + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 7214.68411, + "index": 1, + "metrics": { + "corr": 0.729467211, + "finite": true, + "max_abs": 8.56461501, + "mean_abs": 0.555721952, + "psnr_db": 28.8382946, + "ref_absmax": 11.871088, + "rel_max": 0.721468411, + "scaled_max_abs": 0.721468411 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_5" + }, + "status": "fail", + "tap": "net.patch_embed", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7399.31643, + "index": 2, + "metrics": { + "corr": 0.718466676, + "finite": true, + "max_abs": 8.56461477, + "mean_abs": 0.555721952, + "psnr_db": 28.7794677, + "ref_absmax": 11.574873, + "rel_max": 0.739931643, + "scaled_max_abs": 0.739931643 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_3" + }, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7192.23238, + "index": 3, + "metrics": { + "corr": 0.670734143, + "finite": true, + "max_abs": 8.55486512, + "mean_abs": 0.60364306, + "psnr_db": 28.5887328, + "ref_absmax": 11.8945894, + "rel_max": 0.719223238, + "scaled_max_abs": 0.719223238 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_15" + }, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6967.72778, + "index": 4, + "metrics": { + "corr": 0.633431704, + "finite": true, + "max_abs": 8.46831274, + "mean_abs": 0.661600619, + "psnr_db": 28.0985659, + "ref_absmax": 12.1536217, + "rel_max": 0.696772778, + "scaled_max_abs": 0.696772778 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_27" + }, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6825.67762, + "index": 5, + "metrics": { + "corr": 0.61204248, + "finite": true, + "max_abs": 8.53893328, + "mean_abs": 0.714895826, + "psnr_db": 27.7351893, + "ref_absmax": 12.5100155, + "rel_max": 0.682567762, + "scaled_max_abs": 0.682567762 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_39" + }, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10905.3068, + "index": 6, + "metrics": { + "corr": 0.599332436, + "finite": true, + "max_abs": 4.57852459, + "mean_abs": 0.676048126, + "psnr_db": 19.0429177, + "ref_absmax": 4.19843721, + "rel_max": 1.09053068, + "scaled_max_abs": 1.09053068 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x" + }, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_ratio": 13410.1677, + "index": 7, + "metrics": { + "corr": 0.551867294, + "finite": true, + "max_abs": 2.9794277, + "mean_abs": 0.510826073, + "psnr_db": 15.8686028, + "ref_absmax": 2.22176766, + "rel_max": 1.34101677, + "scaled_max_abs": 1.34101677 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_1" + }, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "natural", + "index": 2 + } + }, + { + "band_ratio": 8931.75024, + "index": 8, + "metrics": { + "corr": 0.663749357, + "finite": true, + "max_abs": 1.20089602, + "mean_abs": 0.246445583, + "psnr_db": 17.5012244, + "ref_absmax": 1.34452486, + "rel_max": 0.893175024, + "scaled_max_abs": 0.893175024 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "natural", + "index": 2 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp32", + "id": "tinyvit__drop_normalize__coreml_fp32", + "model": "tinyvit", + "path": "coreml", + "variant": "drop_normalize" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/tinyvit__drop_normalize__litert_fp16.json b/bench/verdicts_e2e_gated/tinyvit__drop_normalize__litert_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..d6937053e412b04052b711084e6dc878e7b4d94c --- /dev/null +++ b/bench/verdicts_e2e_gated/tinyvit__drop_normalize__litert_fp16.json @@ -0,0 +1,693 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "net.patch_embed", + "explained_by": "no_normalize", + "nominal_band_ratio": 84.7089171, + "results": [ + { + "band_ratio": 93.2091324, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 98.4673229, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 149.31007, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 111.421498, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 0.0229300399, + "explains": true, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "flag" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 1.97426915e-05, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.38418579e-07, + "mean_abs": 5.85801899e-08, + "psnr_db": 148.875712, + "ref_absmax": 1.20762956, + "rel_max": 1.97426915e-07, + "scaled_max_abs": 1.97426915e-07 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 55, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 1, + "n_ops_total": 185, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": null, + "basis": "interface hypothesis 'no_normalize' explains the first over-band tap (net.patch_embed)", + "index": 0, + "neighbourhood": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": null + }, + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 72.1461903, + "index": 1, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;3" + }, + "status": "fail", + "tap": "net.patch_embed" + } + ], + "observed_first_over_band": { + "index": 1, + "tap": "net.patch_embed" + }, + "shape": 224, + "tap": "normalize" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "5b98a7541a46f02a8c02a5b25a0e45756278ca43a1b77bc782fe49cc31146632", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "bc26939fdcafa40c3493729f91f0d138d55df38d39f9cf1ce3aa90d178c7108a", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "tap normalize @ 224", + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)" + }, + { + "item": "tap normalize @ 192", + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D3", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.6875, + "band_ratio": 91.9221713, + "metrics": { + "corr": 0.611264084, + "finite": true, + "max_abs": 1.16379762, + "mean_abs": 0.267415977, + "psnr_db": 16.6770664, + "ref_absmax": 1.26606846, + "rel_max": 0.919221713, + "scaled_max_abs": 0.919221713 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 7 + } + }, + "first_fail_index": 1, + "n_judged": 8, + "n_taps": 9, + "taps": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": null + }, + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)", + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 71.6269623, + "index": 1, + "metrics": { + "corr": 0.718442552, + "finite": true, + "max_abs": 7.732867, + "mean_abs": 0.567659841, + "psnr_db": 28.2026044, + "ref_absmax": 10.7960281, + "rel_max": 0.716269623, + "scaled_max_abs": 0.716269623 + }, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;3" + }, + "status": "fail", + "tap": "net.patch_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 71.7706732, + "index": 2, + "metrics": { + "corr": 0.710303364, + "finite": true, + "max_abs": 7.73286676, + "mean_abs": 0.567659841, + "psnr_db": 28.1217657, + "ref_absmax": 10.7744102, + "rel_max": 0.717706732, + "scaled_max_abs": 0.717706732 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;3" + }, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 72.3813071, + "index": 3, + "metrics": { + "corr": 0.658830127, + "finite": true, + "max_abs": 7.75892496, + "mean_abs": 0.620189518, + "psnr_db": 27.6869215, + "ref_absmax": 10.7195148, + "rel_max": 0.723813071, + "scaled_max_abs": 0.723813071 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 70.2416663, + "index": 4, + "metrics": { + "corr": 0.615759778, + "finite": true, + "max_abs": 7.72911811, + "mean_abs": 0.684584408, + "psnr_db": 27.1777456, + "ref_absmax": 11.0036087, + "rel_max": 0.702416663, + "scaled_max_abs": 0.702416663 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 68.9506655, + "index": 5, + "metrics": { + "corr": 0.591312874, + "finite": true, + "max_abs": 7.82460999, + "mean_abs": 0.742979101, + "psnr_db": 26.9544419, + "ref_absmax": 11.3481283, + "rel_max": 0.689506655, + "scaled_max_abs": 0.689506655 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 108.755944, + "index": 6, + "metrics": { + "corr": 0.561016504, + "finite": true, + "max_abs": 4.47103989, + "mean_abs": 0.718758585, + "psnr_db": 18.4578821, + "ref_absmax": 4.11107635, + "rel_max": 1.08755944, + "scaled_max_abs": 1.08755944 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_ratio": 130.267161, + "index": 7, + "metrics": { + "corr": 0.454868871, + "finite": true, + "max_abs": 2.88642192, + "mean_abs": 0.558446353, + "psnr_db": 15.3056057, + "ref_absmax": 2.21577096, + "rel_max": 1.30267161, + "scaled_max_abs": 1.30267161 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "natural", + "index": 7 + } + }, + { + "band_ratio": 91.9221713, + "index": 8, + "metrics": { + "corr": 0.611264084, + "finite": true, + "max_abs": 1.16379762, + "mean_abs": 0.267415977, + "psnr_db": 16.6770664, + "ref_absmax": 1.26606846, + "rel_max": 0.919221713, + "scaled_max_abs": 0.919221713 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "natural", + "index": 7 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.625, + "band_ratio": 89.3205879, + "metrics": { + "corr": 0.663709208, + "finite": true, + "max_abs": 1.20093751, + "mean_abs": 0.246439054, + "psnr_db": 17.5009988, + "ref_absmax": 1.34452486, + "rel_max": 0.893205879, + "scaled_max_abs": 0.893205879 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 2 + } + }, + "first_fail_index": 1, + "n_judged": 8, + "n_taps": 9, + "taps": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": null + }, + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)", + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 72.1461903, + "index": 1, + "metrics": { + "corr": 0.729466548, + "finite": true, + "max_abs": 8.56453776, + "mean_abs": 0.555722011, + "psnr_db": 28.8382886, + "ref_absmax": 11.871088, + "rel_max": 0.721461903, + "scaled_max_abs": 0.721461903 + }, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;3" + }, + "status": "fail", + "tap": "net.patch_embed", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 73.9924969, + "index": 2, + "metrics": { + "corr": 0.718465736, + "finite": true, + "max_abs": 8.56453753, + "mean_abs": 0.555722011, + "psnr_db": 28.7794618, + "ref_absmax": 11.574873, + "rel_max": 0.739924969, + "scaled_max_abs": 0.739924969 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;3" + }, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 71.9204497, + "index": 3, + "metrics": { + "corr": 0.670736711, + "finite": true, + "max_abs": 8.5546422, + "mean_abs": 0.603639477, + "psnr_db": 28.5887523, + "ref_absmax": 11.8945894, + "rel_max": 0.719204497, + "scaled_max_abs": 0.719204497 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 69.6763421, + "index": 4, + "metrics": { + "corr": 0.63343741, + "finite": true, + "max_abs": 8.46819901, + "mean_abs": 0.66159499, + "psnr_db": 28.0986166, + "ref_absmax": 12.1536217, + "rel_max": 0.696763421, + "scaled_max_abs": 0.696763421 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 68.2556308, + "index": 5, + "metrics": { + "corr": 0.612050762, + "finite": true, + "max_abs": 8.53878999, + "mean_abs": 0.714888337, + "psnr_db": 27.7352635, + "ref_absmax": 12.5100155, + "rel_max": 0.682556308, + "scaled_max_abs": 0.682556308 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 109.057804, + "index": 6, + "metrics": { + "corr": 0.599343854, + "finite": true, + "max_abs": 4.57872343, + "mean_abs": 0.676039537, + "psnr_db": 19.0430415, + "ref_absmax": 4.19843721, + "rel_max": 1.09057804, + "scaled_max_abs": 1.09057804 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_ratio": 134.105486, + "index": 7, + "metrics": { + "corr": 0.551886574, + "finite": true, + "max_abs": 2.97951233, + "mean_abs": 0.510815789, + "psnr_db": 15.8687971, + "ref_absmax": 2.22176766, + "rel_max": 1.34105486, + "scaled_max_abs": 1.34105486 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "natural", + "index": 2 + } + }, + { + "band_ratio": 89.3205879, + "index": 8, + "metrics": { + "corr": 0.663709208, + "finite": true, + "max_abs": 1.20093751, + "mean_abs": 0.246439054, + "psnr_db": 17.5009988, + "ref_absmax": 1.34452486, + "rel_max": 0.893205879, + "scaled_max_abs": 0.893205879 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "natural", + "index": 2 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp16", + "id": "tinyvit__drop_normalize__litert_fp16", + "model": "tinyvit", + "path": "litert", + "variant": "drop_normalize" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/tinyvit__drop_normalize__litert_fp32.json b/bench/verdicts_e2e_gated/tinyvit__drop_normalize__litert_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..399e6461b7c3224d9408f8ac4a8c74372554a356 --- /dev/null +++ b/bench/verdicts_e2e_gated/tinyvit__drop_normalize__litert_fp32.json @@ -0,0 +1,693 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "net.patch_embed", + "explained_by": "no_normalize", + "nominal_band_ratio": 8470.94076, + "results": [ + { + "band_ratio": 9320.7338, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 9846.74276, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 14930.9097, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 11142.0944, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 0.0164074921, + "explains": true, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "flag" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 0.00197440734, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.38418579e-07, + "mean_abs": 5.43077476e-08, + "psnr_db": 149.536524, + "ref_absmax": 1.20754504, + "rel_max": 1.97440734e-07, + "scaled_max_abs": 1.97440734e-07 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 55, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 1, + "n_ops_total": 171, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": null, + "basis": "interface hypothesis 'no_normalize' explains the first over-band tap (net.patch_embed)", + "index": 0, + "neighbourhood": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": null + }, + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 7214.6837, + "index": 1, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;3" + }, + "status": "fail", + "tap": "net.patch_embed" + } + ], + "observed_first_over_band": { + "index": 1, + "tap": "net.patch_embed" + }, + "shape": 224, + "tap": "normalize" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "95788b9822c2f9d7e31402991fee757c1fe9a6e6452943212457fa421b7f9cdb", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "07f863c6d3add26656e194d40cd7d5262f5599680cc9e41750ad2d6eb136b0b2", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "tap normalize @ 224", + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)" + }, + { + "item": "tap normalize @ 192", + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D3", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.6875, + "band_ratio": 9191.93466, + "metrics": { + "corr": 0.611314914, + "finite": true, + "max_abs": 1.16376185, + "mean_abs": 0.267415153, + "psnr_db": 16.6773376, + "ref_absmax": 1.26606846, + "rel_max": 0.919193466, + "scaled_max_abs": 0.919193466 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 7 + } + }, + "first_fail_index": 1, + "n_judged": 8, + "n_taps": 9, + "taps": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": null + }, + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)", + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 7162.74548, + "index": 1, + "metrics": { + "corr": 0.718443254, + "finite": true, + "max_abs": 7.73292017, + "mean_abs": 0.567660222, + "psnr_db": 28.2026115, + "ref_absmax": 10.7960281, + "rel_max": 0.716274548, + "scaled_max_abs": 0.716274548 + }, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;3" + }, + "status": "fail", + "tap": "net.patch_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7177.11666, + "index": 2, + "metrics": { + "corr": 0.710304319, + "finite": true, + "max_abs": 7.73291993, + "mean_abs": 0.567660222, + "psnr_db": 28.1217727, + "ref_absmax": 10.7744102, + "rel_max": 0.717711666, + "scaled_max_abs": 0.717711666 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;3" + }, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7238.31754, + "index": 3, + "metrics": { + "corr": 0.658827171, + "finite": true, + "max_abs": 7.75912523, + "mean_abs": 0.620193452, + "psnr_db": 27.6868994, + "ref_absmax": 10.7195148, + "rel_max": 0.723831754, + "scaled_max_abs": 0.723831754 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7024.23987, + "index": 4, + "metrics": { + "corr": 0.615753651, + "finite": true, + "max_abs": 7.72919869, + "mean_abs": 0.684589803, + "psnr_db": 27.1776933, + "ref_absmax": 11.0036087, + "rel_max": 0.702423987, + "scaled_max_abs": 0.702423987 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6894.96591, + "index": 5, + "metrics": { + "corr": 0.591304558, + "finite": true, + "max_abs": 7.82449579, + "mean_abs": 0.742986648, + "psnr_db": 26.9543704, + "ref_absmax": 11.3481283, + "rel_max": 0.689496591, + "scaled_max_abs": 0.689496591 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 10875.3375, + "index": 6, + "metrics": { + "corr": 0.561004692, + "finite": true, + "max_abs": 4.47093427, + "mean_abs": 0.718766475, + "psnr_db": 18.4577653, + "ref_absmax": 4.11107635, + "rel_max": 1.08753375, + "scaled_max_abs": 1.08753375 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_ratio": 13026.3793, + "index": 7, + "metrics": { + "corr": 0.454847465, + "finite": true, + "max_abs": 2.88634729, + "mean_abs": 0.558458016, + "psnr_db": 15.3054251, + "ref_absmax": 2.21577096, + "rel_max": 1.30263793, + "scaled_max_abs": 1.30263793 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "natural", + "index": 7 + } + }, + { + "band_ratio": 9191.93466, + "index": 8, + "metrics": { + "corr": 0.611314914, + "finite": true, + "max_abs": 1.16376185, + "mean_abs": 0.267415153, + "psnr_db": 16.6773376, + "ref_absmax": 1.26606846, + "rel_max": 0.919193466, + "scaled_max_abs": 0.919193466 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "natural", + "index": 7 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.625, + "band_ratio": 8931.75157, + "metrics": { + "corr": 0.66374935, + "finite": true, + "max_abs": 1.2008962, + "mean_abs": 0.246445588, + "psnr_db": 17.5012242, + "ref_absmax": 1.34452486, + "rel_max": 0.893175157, + "scaled_max_abs": 0.893175157 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 2 + } + }, + "first_fail_index": 1, + "n_judged": 8, + "n_taps": 9, + "taps": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": null + }, + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)", + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 7214.6837, + "index": 1, + "metrics": { + "corr": 0.729467211, + "finite": true, + "max_abs": 8.56461453, + "mean_abs": 0.555721952, + "psnr_db": 28.8382946, + "ref_absmax": 11.871088, + "rel_max": 0.72146837, + "scaled_max_abs": 0.72146837 + }, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;3" + }, + "status": "fail", + "tap": "net.patch_embed", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7399.31602, + "index": 2, + "metrics": { + "corr": 0.718466676, + "finite": true, + "max_abs": 8.5646143, + "mean_abs": 0.555721952, + "psnr_db": 28.7794678, + "ref_absmax": 11.574873, + "rel_max": 0.739931602, + "scaled_max_abs": 0.739931602 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;3" + }, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7192.23198, + "index": 3, + "metrics": { + "corr": 0.670734143, + "finite": true, + "max_abs": 8.55486465, + "mean_abs": 0.603643059, + "psnr_db": 28.5887328, + "ref_absmax": 11.8945894, + "rel_max": 0.719223198, + "scaled_max_abs": 0.719223198 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6967.72739, + "index": 4, + "metrics": { + "corr": 0.633431705, + "finite": true, + "max_abs": 8.46831226, + "mean_abs": 0.661600617, + "psnr_db": 28.0985659, + "ref_absmax": 12.1536217, + "rel_max": 0.696772739, + "scaled_max_abs": 0.696772739 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6825.67724, + "index": 5, + "metrics": { + "corr": 0.612042482, + "finite": true, + "max_abs": 8.5389328, + "mean_abs": 0.714895824, + "psnr_db": 27.7351893, + "ref_absmax": 12.5100155, + "rel_max": 0.682567724, + "scaled_max_abs": 0.682567724 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10905.3062, + "index": 6, + "metrics": { + "corr": 0.599332439, + "finite": true, + "max_abs": 4.57852435, + "mean_abs": 0.676048123, + "psnr_db": 19.0429178, + "ref_absmax": 4.19843721, + "rel_max": 1.09053062, + "scaled_max_abs": 1.09053062 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_ratio": 13410.1688, + "index": 7, + "metrics": { + "corr": 0.5518673, + "finite": true, + "max_abs": 2.97942793, + "mean_abs": 0.510826078, + "psnr_db": 15.8686027, + "ref_absmax": 2.22176766, + "rel_max": 1.34101688, + "scaled_max_abs": 1.34101688 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "natural", + "index": 2 + } + }, + { + "band_ratio": 8931.75157, + "index": 8, + "metrics": { + "corr": 0.66374935, + "finite": true, + "max_abs": 1.2008962, + "mean_abs": 0.246445588, + "psnr_db": 17.5012242, + "ref_absmax": 1.34452486, + "rel_max": 0.893175157, + "scaled_max_abs": 0.893175157 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "natural", + "index": 2 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp32", + "id": "tinyvit__drop_normalize__litert_fp32", + "model": "tinyvit", + "path": "litert", + "variant": "drop_normalize" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/tinyvit__drop_normalize__onnx_fp16.json b/bench/verdicts_e2e_gated/tinyvit__drop_normalize__onnx_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..66d54d2907e18a4393bc79e63538e1584bf84304 --- /dev/null +++ b/bench/verdicts_e2e_gated/tinyvit__drop_normalize__onnx_fp16.json @@ -0,0 +1,673 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "net.patch_embed", + "explained_by": "no_normalize", + "nominal_band_ratio": 84.708198, + "results": [ + { + "band_ratio": 93.2061202, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 98.4671693, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 149.323831, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 111.414579, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 0.0416294536, + "explains": true, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "flag" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": null, + "basis": "interface hypothesis 'no_normalize' explains the first over-band tap (net.patch_embed)", + "index": 0, + "neighbourhood": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": null + }, + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 72.1454292, + "index": 1, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "status": "fail", + "tap": "net.patch_embed" + } + ], + "observed_first_over_band": { + "index": 1, + "tap": "net.patch_embed" + }, + "shape": 224, + "tap": "normalize" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "add226c9cdc0c4ad8f2e918776616bdb3b2ab292a8c284a00ef7f1f89db1bd9d", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "fe32fee6cefa3351906f7e81989f4f56685afbf0680e1e82469a7f179c455ce1", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + }, + { + "item": "tap normalize @ 224", + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)" + }, + { + "item": "tap normalize @ 192", + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)" + } + ], + "observation_effect_max_abs": { + "192": 4.69684601e-05, + "224": 3.39448452e-05 + }, + "primary_class": "D3", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.6875, + "band_ratio": 91.923852, + "metrics": { + "corr": 0.611247825, + "finite": true, + "max_abs": 1.1638189, + "mean_abs": 0.267426718, + "psnr_db": 16.6768206, + "ref_absmax": 1.26606846, + "rel_max": 0.91923852, + "scaled_max_abs": 0.91923852 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 7 + } + }, + "first_fail_index": 1, + "n_judged": 8, + "n_taps": 9, + "taps": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": null + }, + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)", + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 71.6330862, + "index": 1, + "metrics": { + "corr": 0.718441649, + "finite": true, + "max_abs": 7.73352814, + "mean_abs": 0.567660168, + "psnr_db": 28.2026016, + "ref_absmax": 10.7960281, + "rel_max": 0.716330862, + "scaled_max_abs": 0.716330862 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "status": "fail", + "tap": "net.patch_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 71.7739349, + "index": 2, + "metrics": { + "corr": 0.710302165, + "finite": true, + "max_abs": 7.73321819, + "mean_abs": 0.567660169, + "psnr_db": 28.1217624, + "ref_absmax": 10.7744102, + "rel_max": 0.717739349, + "scaled_max_abs": 0.717739349 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 72.380066, + "index": 3, + "metrics": { + "corr": 0.658827172, + "finite": true, + "max_abs": 7.75879192, + "mean_abs": 0.620192054, + "psnr_db": 27.686902, + "ref_absmax": 10.7195148, + "rel_max": 0.72380066, + "scaled_max_abs": 0.72380066 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 70.2327502, + "index": 4, + "metrics": { + "corr": 0.615761461, + "finite": true, + "max_abs": 7.72813702, + "mean_abs": 0.684583532, + "psnr_db": 27.1777573, + "ref_absmax": 11.0036087, + "rel_max": 0.702327502, + "scaled_max_abs": 0.702327502 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 68.9486381, + "index": 5, + "metrics": { + "corr": 0.59131517, + "finite": true, + "max_abs": 7.82437992, + "mean_abs": 0.74297844, + "psnr_db": 26.9544576, + "ref_absmax": 11.3481283, + "rel_max": 0.689486381, + "scaled_max_abs": 0.689486381 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 108.733251, + "index": 6, + "metrics": { + "corr": 0.561019167, + "finite": true, + "max_abs": 4.47010696, + "mean_abs": 0.718757224, + "psnr_db": 18.4579111, + "ref_absmax": 4.11107635, + "rel_max": 1.08733251, + "scaled_max_abs": 1.08733251 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_ratio": 130.287782, + "index": 7, + "metrics": { + "corr": 0.454876926, + "finite": true, + "max_abs": 2.88687885, + "mean_abs": 0.558441688, + "psnr_db": 15.3057147, + "ref_absmax": 2.21577096, + "rel_max": 1.30287782, + "scaled_max_abs": 1.30287782 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/ReduceMean_output_0" + }, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "natural", + "index": 7 + } + }, + { + "band_ratio": 91.9242757, + "index": 8, + "metrics": { + "corr": 0.61125072, + "finite": true, + "max_abs": 1.16382426, + "mean_abs": 0.26742436, + "psnr_db": 16.6768829, + "ref_absmax": 1.26606846, + "rel_max": 0.919242757, + "scaled_max_abs": 0.919242757 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "natural", + "index": 7 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.625, + "band_ratio": 89.3203574, + "metrics": { + "corr": 0.663690686, + "finite": true, + "max_abs": 1.20093441, + "mean_abs": 0.246451464, + "psnr_db": 17.5006645, + "ref_absmax": 1.34452486, + "rel_max": 0.893203574, + "scaled_max_abs": 0.893203574 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 2 + } + }, + "first_fail_index": 1, + "n_judged": 8, + "n_taps": 9, + "taps": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": null + }, + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)", + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 72.1454292, + "index": 1, + "metrics": { + "corr": 0.729466566, + "finite": true, + "max_abs": 8.5644474, + "mean_abs": 0.555721736, + "psnr_db": 28.8382996, + "ref_absmax": 11.871088, + "rel_max": 0.721454292, + "scaled_max_abs": 0.721454292 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "status": "fail", + "tap": "net.patch_embed", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 73.9974198, + "index": 2, + "metrics": { + "corr": 0.71846764, + "finite": true, + "max_abs": 8.56510735, + "mean_abs": 0.55572142, + "psnr_db": 28.7794796, + "ref_absmax": 11.574873, + "rel_max": 0.739974198, + "scaled_max_abs": 0.739974198 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 71.9213196, + "index": 3, + "metrics": { + "corr": 0.670735006, + "finite": true, + "max_abs": 8.55474567, + "mean_abs": 0.603640755, + "psnr_db": 28.5887467, + "ref_absmax": 11.8945894, + "rel_max": 0.719213196, + "scaled_max_abs": 0.719213196 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 69.67532, + "index": 4, + "metrics": { + "corr": 0.633437829, + "finite": true, + "max_abs": 8.4680748, + "mean_abs": 0.661594904, + "psnr_db": 28.098621, + "ref_absmax": 12.1536217, + "rel_max": 0.6967532, + "scaled_max_abs": 0.6967532 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 68.244194, + "index": 5, + "metrics": { + "corr": 0.612052, + "finite": true, + "max_abs": 8.53735924, + "mean_abs": 0.714888722, + "psnr_db": 27.7352712, + "ref_absmax": 12.5100155, + "rel_max": 0.68244194, + "scaled_max_abs": 0.68244194 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 109.059979, + "index": 6, + "metrics": { + "corr": 0.599343561, + "finite": true, + "max_abs": 4.57881474, + "mean_abs": 0.676040643, + "psnr_db": 19.0430379, + "ref_absmax": 4.19843721, + "rel_max": 1.09059979, + "scaled_max_abs": 1.09059979 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_ratio": 134.109495, + "index": 7, + "metrics": { + "corr": 0.551884817, + "finite": true, + "max_abs": 2.97960138, + "mean_abs": 0.510820284, + "psnr_db": 15.8687082, + "ref_absmax": 2.22176766, + "rel_max": 1.34109495, + "scaled_max_abs": 1.34109495 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/ReduceMean_output_0" + }, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "natural", + "index": 2 + } + }, + { + "band_ratio": 89.3208007, + "index": 8, + "metrics": { + "corr": 0.663691093, + "finite": true, + "max_abs": 1.20094037, + "mean_abs": 0.246452073, + "psnr_db": 17.5006606, + "ref_absmax": 1.34452486, + "rel_max": 0.893208007, + "scaled_max_abs": 0.893208007 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "natural", + "index": 2 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp16", + "id": "tinyvit__drop_normalize__onnx_fp16", + "model": "tinyvit", + "path": "onnx", + "variant": "drop_normalize" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/tinyvit__drop_normalize__onnx_fp32.json b/bench/verdicts_e2e_gated/tinyvit__drop_normalize__onnx_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..23795eeeda21a7a2274edfca9cc7fbce128839fb --- /dev/null +++ b/bench/verdicts_e2e_gated/tinyvit__drop_normalize__onnx_fp32.json @@ -0,0 +1,673 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "net.patch_embed", + "explained_by": "no_normalize", + "nominal_band_ratio": 8470.94076, + "results": [ + { + "band_ratio": 9320.73372, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 9846.74276, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 14930.9107, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 11142.0958, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 0.0127613827, + "explains": true, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "flag" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": null, + "basis": "interface hypothesis 'no_normalize' explains the first over-band tap (net.patch_embed)", + "index": 0, + "neighbourhood": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": null + }, + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 7214.68471, + "index": 1, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "status": "fail", + "tap": "net.patch_embed" + } + ], + "observed_first_over_band": { + "index": 1, + "tap": "net.patch_embed" + }, + "shape": 224, + "tap": "normalize" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "db40e52065196626534040ad48c742cecf8b3b3d9b02efa73bd466dab5e8540e", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "39ef4e66f64541836e7dad7f0334205a2c4657a9a7664e3d39b7daa9d4da899e", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + }, + { + "item": "tap normalize @ 224", + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)" + }, + { + "item": "tap normalize @ 192", + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)" + } + ], + "observation_effect_max_abs": { + "192": 1.1920929e-07, + "224": 1.1920929e-07 + }, + "primary_class": "D3", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.6875, + "band_ratio": 9191.93183, + "metrics": { + "corr": 0.611314907, + "finite": true, + "max_abs": 1.1637615, + "mean_abs": 0.267415144, + "psnr_db": 16.6773378, + "ref_absmax": 1.26606846, + "rel_max": 0.919193183, + "scaled_max_abs": 0.919193183 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 7 + } + }, + "first_fail_index": 1, + "n_judged": 8, + "n_taps": 9, + "taps": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": null + }, + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)", + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 7162.74614, + "index": 1, + "metrics": { + "corr": 0.718443255, + "finite": true, + "max_abs": 7.73292089, + "mean_abs": 0.567660223, + "psnr_db": 28.2026115, + "ref_absmax": 10.7960281, + "rel_max": 0.716274614, + "scaled_max_abs": 0.716274614 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "status": "fail", + "tap": "net.patch_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7177.11733, + "index": 2, + "metrics": { + "corr": 0.710304313, + "finite": true, + "max_abs": 7.73292065, + "mean_abs": 0.567660223, + "psnr_db": 28.1217727, + "ref_absmax": 10.7744102, + "rel_max": 0.717711733, + "scaled_max_abs": 0.717711733 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7238.31821, + "index": 3, + "metrics": { + "corr": 0.658827169, + "finite": true, + "max_abs": 7.75912595, + "mean_abs": 0.620193453, + "psnr_db": 27.6868994, + "ref_absmax": 10.7195148, + "rel_max": 0.723831821, + "scaled_max_abs": 0.723831821 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7024.23813, + "index": 4, + "metrics": { + "corr": 0.615753651, + "finite": true, + "max_abs": 7.72919679, + "mean_abs": 0.684589801, + "psnr_db": 27.1776933, + "ref_absmax": 11.0036087, + "rel_max": 0.702423813, + "scaled_max_abs": 0.702423813 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6894.96402, + "index": 5, + "metrics": { + "corr": 0.591304561, + "finite": true, + "max_abs": 7.82449365, + "mean_abs": 0.742986645, + "psnr_db": 26.9543704, + "ref_absmax": 11.3481283, + "rel_max": 0.689496402, + "scaled_max_abs": 0.689496402 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 10875.3404, + "index": 6, + "metrics": { + "corr": 0.561004698, + "finite": true, + "max_abs": 4.47093546, + "mean_abs": 0.718766472, + "psnr_db": 18.4577653, + "ref_absmax": 4.11107635, + "rel_max": 1.08753404, + "scaled_max_abs": 1.08753404 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_ratio": 13026.3793, + "index": 7, + "metrics": { + "corr": 0.454847471, + "finite": true, + "max_abs": 2.88634729, + "mean_abs": 0.558458011, + "psnr_db": 15.3054252, + "ref_absmax": 2.21577096, + "rel_max": 1.30263793, + "scaled_max_abs": 1.30263793 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/ReduceMean_output_0" + }, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "natural", + "index": 7 + } + }, + { + "band_ratio": 9191.93183, + "index": 8, + "metrics": { + "corr": 0.611314912, + "finite": true, + "max_abs": 1.1637615, + "mean_abs": 0.267415143, + "psnr_db": 16.6773378, + "ref_absmax": 1.26606846, + "rel_max": 0.919193183, + "scaled_max_abs": 0.919193183 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "natural", + "index": 7 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.625, + "band_ratio": 8931.7498, + "metrics": { + "corr": 0.663749358, + "finite": true, + "max_abs": 1.20089597, + "mean_abs": 0.246445583, + "psnr_db": 17.5012243, + "ref_absmax": 1.34452486, + "rel_max": 0.89317498, + "scaled_max_abs": 0.89317498 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 2 + } + }, + "first_fail_index": 1, + "n_judged": 8, + "n_taps": 9, + "taps": [ + { + "index": 0, + "op": { + "candidates": 0, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": null + }, + "reason": "no tensor in the artifact is scoped to this module (fused, elided or dropped by the converter)", + "status": "not_judgeable", + "tap": "normalize" + }, + { + "band_ratio": 7214.68471, + "index": 1, + "metrics": { + "corr": 0.729467211, + "finite": true, + "max_abs": 8.56461573, + "mean_abs": 0.555721952, + "psnr_db": 28.8382946, + "ref_absmax": 11.871088, + "rel_max": 0.721468471, + "scaled_max_abs": 0.721468471 + }, + "op": { + "candidates": 3, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "status": "fail", + "tap": "net.patch_embed", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7399.31705, + "index": 2, + "metrics": { + "corr": 0.718466676, + "finite": true, + "max_abs": 8.56461549, + "mean_abs": 0.555721952, + "psnr_db": 28.7794678, + "ref_absmax": 11.574873, + "rel_max": 0.739931705, + "scaled_max_abs": 0.739931705 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7192.23278, + "index": 3, + "metrics": { + "corr": 0.670734143, + "finite": true, + "max_abs": 8.5548656, + "mean_abs": 0.60364306, + "psnr_db": 28.5887328, + "ref_absmax": 11.8945894, + "rel_max": 0.719223278, + "scaled_max_abs": 0.719223278 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6967.72818, + "index": 4, + "metrics": { + "corr": 0.633431706, + "finite": true, + "max_abs": 8.46831322, + "mean_abs": 0.661600617, + "psnr_db": 28.098566, + "ref_absmax": 12.1536217, + "rel_max": 0.696772818, + "scaled_max_abs": 0.696772818 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6825.678, + "index": 5, + "metrics": { + "corr": 0.612042483, + "finite": true, + "max_abs": 8.53893375, + "mean_abs": 0.714895823, + "psnr_db": 27.7351893, + "ref_absmax": 12.5100155, + "rel_max": 0.6825678, + "scaled_max_abs": 0.6825678 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 10905.3062, + "index": 6, + "metrics": { + "corr": 0.599332441, + "finite": true, + "max_abs": 4.57852435, + "mean_abs": 0.676048121, + "psnr_db": 19.0429178, + "ref_absmax": 4.19843721, + "rel_max": 1.09053062, + "scaled_max_abs": 1.09053062 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + { + "band_ratio": 13410.1688, + "index": 7, + "metrics": { + "corr": 0.551867298, + "finite": true, + "max_abs": 2.97942793, + "mean_abs": 0.510826081, + "psnr_db": 15.8686027, + "ref_absmax": 2.22176766, + "rel_max": 1.34101688, + "scaled_max_abs": 1.34101688 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/ReduceMean_output_0" + }, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "natural", + "index": 2 + } + }, + { + "band_ratio": 8931.7498, + "index": 8, + "metrics": { + "corr": 0.663749357, + "finite": true, + "max_abs": 1.20089597, + "mean_abs": 0.246445583, + "psnr_db": 17.5012243, + "ref_absmax": 1.34452486, + "rel_max": 0.89317498, + "scaled_max_abs": 0.89317498 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "natural", + "index": 2 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp32", + "id": "tinyvit__drop_normalize__onnx_fp32", + "model": "tinyvit", + "path": "onnx", + "variant": "drop_normalize" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/tinyvit__fp16_as_fp32__coreml.json b/bench/verdicts_e2e_gated/tinyvit__fp16_as_fp32__coreml.json new file mode 100644 index 0000000000000000000000000000000000000000..b2a98a831685475ae0fe1e158cacf365c4373331 --- /dev/null +++ b/bench/verdicts_e2e_gated/tinyvit__fp16_as_fp32__coreml.json @@ -0,0 +1,670 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": "artifact computes in fp16 (declared fp32); the drift onset (normalize) is the size fp16 explains: distributed precision drift, not a single-op fault", + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "normalize", + "explained_by": null, + "nominal_band_ratio": 13.0516105, + "results": [ + { + "band_ratio": 16835.9372, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 8135.60838, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 20992.1961, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 16915.457, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 21192.6264, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [ + "inputs[0]: dtype float16 (declared float32)", + "outputs[0]: dtype float16 (declared float32)" + ], + "status": "precision_narrowing" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp32", + "first_divergence": { + "basis": "artifact computes in fp16 (declared fp32); the drift onset (normalize) is the size fp16 explains: distributed precision drift, not a single-op fault", + "index": null, + "onset": { + "index": 0, + "tap": "normalize" + }, + "shape": 224, + "tap": null + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "0035167ec9cc06c61986ca2249819ae1510c5a12aad7eaf510988220c7579aa5", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "5430fd6da54612ccdc73a3180116c0a8d19224ecfcc7ca2d7ce9df494c8307f9", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D1", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 34.9849989, + "metrics": { + "corr": 0.999995654, + "finite": true, + "max_abs": 0.00442934036, + "mean_abs": 0.000622573402, + "psnr_db": 67.6041424, + "ref_absmax": 1.26606846, + "rel_max": 0.00349849989, + "scaled_max_abs": 0.00349849989 + }, + "status": "fail", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + "first_fail_index": 0, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 11.7570499, + "index": 0, + "metrics": { + "corr": 0.999999914, + "finite": true, + "max_abs": 0.0135545731, + "mean_abs": 0.000674526699, + "psnr_db": 83.5827466, + "ref_absmax": 11.5288897, + "rel_max": 0.00117570499, + "scaled_max_abs": 0.00117570499 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "status": "fail", + "tap": "normalize", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 147.449007, + "index": 1, + "metrics": { + "corr": 0.999991394, + "finite": true, + "max_abs": 0.159186363, + "mean_abs": 0.00251833586, + "psnr_db": 73.8085669, + "ref_absmax": 10.7960281, + "rel_max": 0.0147449007, + "scaled_max_abs": 0.0147449007 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_5_cast_fp16" + }, + "status": "fail", + "tap": "net.patch_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 145.772783, + "index": 2, + "metrics": { + "corr": 0.999992261, + "finite": true, + "max_abs": 0.157061577, + "mean_abs": 0.00252916549, + "psnr_db": 73.7102173, + "ref_absmax": 10.7744102, + "rel_max": 0.0145772783, + "scaled_max_abs": 0.0145772783 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5_cast_fp16" + }, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 144.004222, + "index": 3, + "metrics": { + "corr": 0.999992443, + "finite": true, + "max_abs": 0.15436554, + "mean_abs": 0.00271046309, + "psnr_db": 73.5671904, + "ref_absmax": 10.7195148, + "rel_max": 0.0144004222, + "scaled_max_abs": 0.0144004222 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_17_cast_fp16" + }, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 145.278434, + "index": 4, + "metrics": { + "corr": 0.999992728, + "finite": true, + "max_abs": 0.159858704, + "mean_abs": 0.00289978764, + "psnr_db": 73.4913103, + "ref_absmax": 11.0036087, + "rel_max": 0.0145278434, + "scaled_max_abs": 0.0145278434 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_29_cast_fp16" + }, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 134.661694, + "index": 5, + "metrics": { + "corr": 0.999992831, + "finite": true, + "max_abs": 0.152815819, + "mean_abs": 0.00305746017, + "psnr_db": 73.5262034, + "ref_absmax": 11.3481283, + "rel_max": 0.0134661694, + "scaled_max_abs": 0.0134661694 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_41_cast_fp16" + }, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 71.1003077, + "index": 6, + "metrics": { + "corr": 0.999993473, + "finite": true, + "max_abs": 0.0292298794, + "mean_abs": 0.00270321117, + "psnr_db": 66.7353234, + "ref_absmax": 4.11107635, + "rel_max": 0.00711003077, + "scaled_max_abs": 0.00711003077 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "natural", + "index": 1 + } + }, + { + "band_ratio": 50.1150413, + "index": 7, + "metrics": { + "corr": 0.999997164, + "finite": true, + "max_abs": 0.0111043453, + "mean_abs": 0.000845072981, + "psnr_db": 69.8160586, + "ref_absmax": 2.21577096, + "rel_max": 0.00501150413, + "scaled_max_abs": 0.00501150413 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_cast_fp16" + }, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_ratio": 34.9849989, + "index": 8, + "metrics": { + "corr": 0.999995654, + "finite": true, + "max_abs": 0.00442934036, + "mean_abs": 0.000622573402, + "psnr_db": 67.6041424, + "ref_absmax": 1.26606846, + "rel_max": 0.00349849989, + "scaled_max_abs": 0.00349849989 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 40.2825966, + "metrics": { + "corr": 0.999995129, + "finite": true, + "max_abs": 0.00541609526, + "mean_abs": 0.000663621235, + "psnr_db": 67.1899789, + "ref_absmax": 1.34452486, + "rel_max": 0.00402825966, + "scaled_max_abs": 0.00402825966 + }, + "status": "fail", + "worst_probe": { + "category": "near_zero", + "index": 27 + } + }, + "first_fail_index": 0, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 11.6213884, + "index": 0, + "metrics": { + "corr": 0.999999912, + "finite": true, + "max_abs": 0.0133981705, + "mean_abs": 0.000679588388, + "psnr_db": 83.6184843, + "ref_absmax": 11.5288897, + "rel_max": 0.00116213884, + "scaled_max_abs": 0.00116213884 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "status": "fail", + "tap": "normalize", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 81.7007877, + "index": 1, + "metrics": { + "corr": 0.999991415, + "finite": true, + "max_abs": 0.0969877243, + "mean_abs": 0.00250771621, + "psnr_db": 74.367951, + "ref_absmax": 11.871088, + "rel_max": 0.00817007877, + "scaled_max_abs": 0.00817007877 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_5_cast_fp16" + }, + "status": "fail", + "tap": "net.patch_embed", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 86.0384338, + "index": 2, + "metrics": { + "corr": 0.999992187, + "finite": true, + "max_abs": 0.0995883942, + "mean_abs": 0.00251680124, + "psnr_db": 74.29315, + "ref_absmax": 11.574873, + "rel_max": 0.00860384338, + "scaled_max_abs": 0.00860384338 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5_cast_fp16" + }, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 83.7666842, + "index": 3, + "metrics": { + "corr": 0.999992439, + "finite": true, + "max_abs": 0.0996370316, + "mean_abs": 0.00269992927, + "psnr_db": 74.3779895, + "ref_absmax": 11.8945894, + "rel_max": 0.00837666842, + "scaled_max_abs": 0.00837666842 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_17_cast_fp16" + }, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 83.436153, + "index": 4, + "metrics": { + "corr": 0.999992743, + "finite": true, + "max_abs": 0.101405144, + "mean_abs": 0.00289164657, + "psnr_db": 74.2749382, + "ref_absmax": 12.1536217, + "rel_max": 0.0083436153, + "scaled_max_abs": 0.0083436153 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_29_cast_fp16" + }, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 81.8916301, + "index": 5, + "metrics": { + "corr": 0.999992873, + "finite": true, + "max_abs": 0.102446556, + "mean_abs": 0.00303753381, + "psnr_db": 74.1588749, + "ref_absmax": 12.5100155, + "rel_max": 0.00818916301, + "scaled_max_abs": 0.00818916301 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_41_cast_fp16" + }, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 67.8718025, + "index": 6, + "metrics": { + "corr": 0.999993569, + "finite": true, + "max_abs": 0.0284955502, + "mean_abs": 0.00267585862, + "psnr_db": 66.9877398, + "ref_absmax": 4.19843721, + "rel_max": 0.00678718025, + "scaled_max_abs": 0.00678718025 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 47.8346443, + "index": 7, + "metrics": { + "corr": 0.99999748, + "finite": true, + "max_abs": 0.0106277466, + "mean_abs": 0.000813371892, + "psnr_db": 69.9111582, + "ref_absmax": 2.22176766, + "rel_max": 0.00478346443, + "scaled_max_abs": 0.00478346443 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_cast_fp16" + }, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_ratio": 40.2825966, + "index": 8, + "metrics": { + "corr": 0.999995129, + "finite": true, + "max_abs": 0.00541609526, + "mean_abs": 0.000663621235, + "psnr_db": 67.1899789, + "ref_absmax": 1.34452486, + "rel_max": 0.00402825966, + "scaled_max_abs": 0.00402825966 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "near_zero", + "index": 27 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp16", + "id": "tinyvit__fp16_as_fp32__coreml", + "model": "tinyvit", + "path": "coreml", + "variant": "fp16_as_fp32" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/tinyvit__fp16_as_fp32__litert.json b/bench/verdicts_e2e_gated/tinyvit__fp16_as_fp32__litert.json new file mode 100644 index 0000000000000000000000000000000000000000..d0a9bfde12c0ff273d05a82a7fdc42ca079ba47e --- /dev/null +++ b/bench/verdicts_e2e_gated/tinyvit__fp16_as_fp32__litert.json @@ -0,0 +1,688 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": "artifact computes in fp16 (declared fp32); the drift onset (net.patch_embed) is the size fp16 explains: distributed precision drift, not a single-op fault", + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "net.patch_embed", + "explained_by": null, + "nominal_band_ratio": 2.4628373, + "results": [ + { + "band_ratio": 11552.3416, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 8037.7666, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 23361.9905, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 16415.9709, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 23573.3945, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 0.00155154223, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.08616257e-07, + "mean_abs": 4.28262865e-08, + "psnr_db": 152.601588, + "ref_absmax": 1.3445735, + "rel_max": 1.55154223e-07, + "scaled_max_abs": 1.55154223e-07 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 57, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 1, + "n_ops_total": 187, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp32", + "first_divergence": { + "basis": "artifact computes in fp16 (declared fp32); the drift onset (net.patch_embed) is the size fp16 explains: distributed precision drift, not a single-op fault", + "index": null, + "onset": { + "index": 1, + "tap": "net.patch_embed" + }, + "shape": 224, + "tap": null + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "170133fb2c750896c9b9cfaed4c8aab6b2e92dd28e9a0114b604c6d35736d93d", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "e6f67f478f27c5cbe93fb3192583b8c4adeb54f48117f07895a6c68beeb1c827", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D1", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 2.08557898, + "metrics": { + "corr": 0.999999962, + "finite": true, + "max_abs": 0.000264048576, + "mean_abs": 7.30160158e-05, + "psnr_db": 88.0747128, + "ref_absmax": 1.26606846, + "rel_max": 0.000208557898, + "scaled_max_abs": 0.000208557898 + }, + "status": "fail", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + "first_fail_index": 1, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.26638033e-08, + "psnr_db": 163.904618, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 2.38484209, + "index": 1, + "metrics": { + "corr": 0.999999975, + "finite": true, + "max_abs": 0.00257468224, + "mean_abs": 0.000153147335, + "psnr_db": 99.1308904, + "ref_absmax": 10.7960281, + "rel_max": 0.000238484209, + "scaled_max_abs": 0.000238484209 + }, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;2" + }, + "status": "fail", + "tap": "net.patch_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 2.38962707, + "index": 2, + "metrics": { + "corr": 0.999999977, + "finite": true, + "max_abs": 0.00257468224, + "mean_abs": 0.000153147282, + "psnr_db": 99.0500481, + "ref_absmax": 10.7744102, + "rel_max": 0.000238962707, + "scaled_max_abs": 0.000238962707 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;3" + }, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 2.48371341, + "index": 3, + "metrics": { + "corr": 0.999999975, + "finite": true, + "max_abs": 0.00266242027, + "mean_abs": 0.000175715531, + "psnr_db": 98.3929002, + "ref_absmax": 10.7195148, + "rel_max": 0.000248371341, + "scaled_max_abs": 0.000248371341 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 2.44428902, + "index": 4, + "metrics": { + "corr": 0.999999975, + "finite": true, + "max_abs": 0.00268959999, + "mean_abs": 0.000194126271, + "psnr_db": 98.0679496, + "ref_absmax": 11.0036087, + "rel_max": 0.000244428902, + "scaled_max_abs": 0.000244428902 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 2.49340827, + "index": 5, + "metrics": { + "corr": 0.999999975, + "finite": true, + "max_abs": 0.0028295517, + "mean_abs": 0.000204465949, + "psnr_db": 98.0757778, + "ref_absmax": 11.3481283, + "rel_max": 0.000249340827, + "scaled_max_abs": 0.000249340827 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 3.10450195, + "index": 6, + "metrics": { + "corr": 0.999999972, + "finite": true, + "max_abs": 0.00127628446, + "mean_abs": 0.000187560799, + "psnr_db": 90.4287298, + "ref_absmax": 4.11107635, + "rel_max": 0.000310450195, + "scaled_max_abs": 0.000310450195 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_ratio": 2.43123856, + "index": 7, + "metrics": { + "corr": 0.999999971, + "finite": true, + "max_abs": 0.000538706779, + "mean_abs": 0.000104170572, + "psnr_db": 89.7874492, + "ref_absmax": 2.21577096, + "rel_max": 0.000243123856, + "scaled_max_abs": 0.000243123856 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "natural", + "index": 2 + } + }, + { + "band_ratio": 2.08557898, + "index": 8, + "metrics": { + "corr": 0.999999962, + "finite": true, + "max_abs": 0.000264048576, + "mean_abs": 7.30160158e-05, + "psnr_db": 88.0747128, + "ref_absmax": 1.26606846, + "rel_max": 0.000208557898, + "scaled_max_abs": 0.000208557898 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 1.97939619, + "metrics": { + "corr": 0.999999958, + "finite": true, + "max_abs": 0.000266134739, + "mean_abs": 7.85663025e-05, + "psnr_db": 87.7638046, + "ref_absmax": 1.34452486, + "rel_max": 0.000197939619, + "scaled_max_abs": 0.000197939619 + }, + "status": "fail", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + "first_fail_index": 1, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.2793459e-08, + "psnr_db": 164.013874, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 2.77319462, + "index": 1, + "metrics": { + "corr": 0.999999975, + "finite": true, + "max_abs": 0.00329208374, + "mean_abs": 0.00015256364, + "psnr_db": 99.7212805, + "ref_absmax": 11.871088, + "rel_max": 0.000277319462, + "scaled_max_abs": 0.000277319462 + }, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;2" + }, + "status": "fail", + "tap": "net.patch_embed", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 2.84416403, + "index": 2, + "metrics": { + "corr": 0.999999977, + "finite": true, + "max_abs": 0.00329208374, + "mean_abs": 0.000152563603, + "psnr_db": 99.6624604, + "ref_absmax": 11.574873, + "rel_max": 0.000284416403, + "scaled_max_abs": 0.000284416403 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;3" + }, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 2.79738087, + "index": 3, + "metrics": { + "corr": 0.999999975, + "finite": true, + "max_abs": 0.00332736969, + "mean_abs": 0.000176384194, + "psnr_db": 99.194827, + "ref_absmax": 11.8945894, + "rel_max": 0.000279738087, + "scaled_max_abs": 0.000279738087 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 2.70794184, + "index": 4, + "metrics": { + "corr": 0.999999974, + "finite": true, + "max_abs": 0.00329113007, + "mean_abs": 0.000196887379, + "psnr_db": 98.8068327, + "ref_absmax": 12.1536217, + "rel_max": 0.000270794184, + "scaled_max_abs": 0.000270794184 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 2.56599822, + "index": 5, + "metrics": { + "corr": 0.999999975, + "finite": true, + "max_abs": 0.00321006775, + "mean_abs": 0.000207746592, + "psnr_db": 98.6389943, + "ref_absmax": 12.5100155, + "rel_max": 0.000256599822, + "scaled_max_abs": 0.000256599822 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 2.84519364, + "index": 6, + "metrics": { + "corr": 0.999999972, + "finite": true, + "max_abs": 0.00119453669, + "mean_abs": 0.000190440265, + "psnr_db": 90.5400099, + "ref_absmax": 4.19843721, + "rel_max": 0.000284519364, + "scaled_max_abs": 0.000284519364 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "natural", + "index": 14 + } + }, + { + "band_ratio": 2.38872752, + "index": 7, + "metrics": { + "corr": 0.99999997, + "finite": true, + "max_abs": 0.000530719757, + "mean_abs": 0.000113873221, + "psnr_db": 89.1445653, + "ref_absmax": 2.22176766, + "rel_max": 0.000238872752, + "scaled_max_abs": 0.000238872752 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_ratio": 1.97939619, + "index": 8, + "metrics": { + "corr": 0.999999958, + "finite": true, + "max_abs": 0.000266134739, + "mean_abs": 7.85663025e-05, + "psnr_db": 87.7638046, + "ref_absmax": 1.34452486, + "rel_max": 0.000197939619, + "scaled_max_abs": 0.000197939619 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "saturating", + "index": 31 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp16", + "id": "tinyvit__fp16_as_fp32__litert", + "model": "tinyvit", + "path": "litert", + "variant": "fp16_as_fp32" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/tinyvit__fp16_as_fp32__onnx.json b/bench/verdicts_e2e_gated/tinyvit__fp16_as_fp32__onnx.json new file mode 100644 index 0000000000000000000000000000000000000000..0e831279ab10cf75db74accb02d3f2f0c1e15d33 --- /dev/null +++ b/bench/verdicts_e2e_gated/tinyvit__fp16_as_fp32__onnx.json @@ -0,0 +1,667 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": "artifact computes in fp16 (declared fp32); the drift onset (normalize) is the size fp16 explains: distributed precision drift, not a single-op fault", + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "normalize", + "explained_by": null, + "nominal_band_ratio": 5.61457669, + "results": [ + { + "band_ratio": 16837.3835, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 8136.66388, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 20992.2062, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 16908.0588, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 21191.8018, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp32", + "first_divergence": { + "basis": "artifact computes in fp16 (declared fp32); the drift onset (normalize) is the size fp16 explains: distributed precision drift, not a single-op fault", + "index": null, + "onset": { + "index": 0, + "tap": "normalize" + }, + "shape": 224, + "tap": null + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "256af465b0649a975fd83c261b17d7830bd11a36abe6723c11a591e4649ad014", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "4e990e5a6766e80eea68d854f1db627a391a6a25b03b20781b4f30f0c5c65cf1", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 4.91738319e-05, + "224": 4.39584255e-05 + }, + "primary_class": "D1", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 4.56508758, + "metrics": { + "corr": 0.999999892, + "finite": true, + "max_abs": 0.000577971339, + "mean_abs": 0.00012937998, + "psnr_db": 83.1653887, + "ref_absmax": 1.26606846, + "rel_max": 0.000456508758, + "scaled_max_abs": 0.000456508758 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + "first_fail_index": 0, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 4.41313312, + "index": 0, + "metrics": { + "corr": 0.999999966, + "finite": true, + "max_abs": 0.00508785248, + "mean_abs": 0.000405953078, + "psnr_db": 88.0186903, + "ref_absmax": 11.5288897, + "rel_max": 0.000441313312, + "scaled_max_abs": 0.000441313312 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "fail", + "tap": "normalize", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 4.69150713, + "index": 1, + "metrics": { + "corr": 0.999999939, + "finite": true, + "max_abs": 0.00506496429, + "mean_abs": 0.000255633799, + "psnr_db": 95.3001421, + "ref_absmax": 10.7960281, + "rel_max": 0.000469150713, + "scaled_max_abs": 0.000469150713 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "status": "fail", + "tap": "net.patch_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7.35365188, + "index": 2, + "metrics": { + "corr": 0.999999921, + "finite": true, + "max_abs": 0.00792312622, + "mean_abs": 0.000301602973, + "psnr_db": 93.5874175, + "ref_absmax": 10.7744102, + "rel_max": 0.000735365188, + "scaled_max_abs": 0.000735365188 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6.42335839, + "index": 3, + "metrics": { + "corr": 0.999999915, + "finite": true, + "max_abs": 0.00688552856, + "mean_abs": 0.000337762151, + "psnr_db": 93.052585, + "ref_absmax": 10.7195148, + "rel_max": 0.000642335839, + "scaled_max_abs": 0.000642335839 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7.11207718, + "index": 4, + "metrics": { + "corr": 0.99999991, + "finite": true, + "max_abs": 0.00782585144, + "mean_abs": 0.000375974454, + "psnr_db": 92.5622871, + "ref_absmax": 11.0036087, + "rel_max": 0.000711207718, + "scaled_max_abs": 0.000711207718 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 7.62561059, + "index": 5, + "metrics": { + "corr": 0.999999905, + "finite": true, + "max_abs": 0.00865364075, + "mean_abs": 0.000407947414, + "psnr_db": 92.2800434, + "ref_absmax": 11.3481283, + "rel_max": 0.000762561059, + "scaled_max_abs": 0.000762561059 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 8.18820092, + "index": 6, + "metrics": { + "corr": 0.999999846, + "finite": true, + "max_abs": 0.00336623192, + "mean_abs": 0.000424373745, + "psnr_db": 83.0143914, + "ref_absmax": 4.11107635, + "rel_max": 0.000818820092, + "scaled_max_abs": 0.000818820092 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_ratio": 7.9208262, + "index": 7, + "metrics": { + "corr": 0.999999805, + "finite": true, + "max_abs": 0.00175507367, + "mean_abs": 0.000274065814, + "psnr_db": 81.4508589, + "ref_absmax": 2.21577096, + "rel_max": 0.00079208262, + "scaled_max_abs": 0.00079208262 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/ReduceMean_output_0" + }, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_ratio": 4.63029134, + "index": 8, + "metrics": { + "corr": 0.999999892, + "finite": true, + "max_abs": 0.000586226583, + "mean_abs": 0.000129292381, + "psnr_db": 83.163636, + "ref_absmax": 1.26606846, + "rel_max": 0.000463029134, + "scaled_max_abs": 0.000463029134 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "natural", + "index": 0 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 4.23719346, + "metrics": { + "corr": 0.999999905, + "finite": true, + "max_abs": 0.000569701195, + "mean_abs": 0.000124554956, + "psnr_db": 83.7646999, + "ref_absmax": 1.34452486, + "rel_max": 0.000423719346, + "scaled_max_abs": 0.000423719346 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 3 + } + }, + "first_fail_index": 0, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 4.39328023, + "index": 0, + "metrics": { + "corr": 0.999999965, + "finite": true, + "max_abs": 0.00506496429, + "mean_abs": 0.000406712054, + "psnr_db": 88.0749992, + "ref_absmax": 11.5288897, + "rel_max": 0.000439328023, + "scaled_max_abs": 0.000439328023 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "fail", + "tap": "normalize", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 4.69161546, + "index": 1, + "metrics": { + "corr": 0.99999994, + "finite": true, + "max_abs": 0.00556945801, + "mean_abs": 0.000254492238, + "psnr_db": 95.9056844, + "ref_absmax": 11.871088, + "rel_max": 0.000469161546, + "scaled_max_abs": 0.000469161546 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "status": "fail", + "tap": "net.patch_embed", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 7.491884, + "index": 2, + "metrics": { + "corr": 0.99999992, + "finite": true, + "max_abs": 0.00867176056, + "mean_abs": 0.000301083888, + "psnr_db": 94.1877045, + "ref_absmax": 11.574873, + "rel_max": 0.0007491884, + "scaled_max_abs": 0.0007491884 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6.35564292, + "index": 3, + "metrics": { + "corr": 0.999999915, + "finite": true, + "max_abs": 0.00755977631, + "mean_abs": 0.000339032434, + "psnr_db": 93.8757594, + "ref_absmax": 11.8945894, + "rel_max": 0.000635564292, + "scaled_max_abs": 0.000635564292 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6.71218039, + "index": 4, + "metrics": { + "corr": 0.99999991, + "finite": true, + "max_abs": 0.0081577301, + "mean_abs": 0.000376167463, + "psnr_db": 93.3355793, + "ref_absmax": 12.1536217, + "rel_max": 0.000671218039, + "scaled_max_abs": 0.000671218039 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6.64445648, + "index": 5, + "metrics": { + "corr": 0.999999905, + "finite": true, + "max_abs": 0.00831222534, + "mean_abs": 0.000408523199, + "psnr_db": 92.8873389, + "ref_absmax": 12.5100155, + "rel_max": 0.000664445648, + "scaled_max_abs": 0.000664445648 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 8.51897059, + "index": 6, + "metrics": { + "corr": 0.999999848, + "finite": true, + "max_abs": 0.00357663631, + "mean_abs": 0.000421772845, + "psnr_db": 83.2639281, + "ref_absmax": 4.19843721, + "rel_max": 0.000851897059, + "scaled_max_abs": 0.000851897059 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "natural", + "index": 5 + } + }, + { + "band_ratio": 6.82010682, + "index": 7, + "metrics": { + "corr": 0.999999832, + "finite": true, + "max_abs": 0.00151526928, + "mean_abs": 0.000268050243, + "psnr_db": 81.6555098, + "ref_absmax": 2.22176766, + "rel_max": 0.000682010682, + "scaled_max_abs": 0.000682010682 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/ReduceMean_output_0" + }, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "natural", + "index": 13 + } + }, + { + "band_ratio": 4.26246235, + "index": 8, + "metrics": { + "corr": 0.999999904, + "finite": true, + "max_abs": 0.00057309866, + "mean_abs": 0.000125122938, + "psnr_db": 83.7414848, + "ref_absmax": 1.34452486, + "rel_max": 0.000426246235, + "scaled_max_abs": 0.000426246235 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "natural", + "index": 3 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp16", + "id": "tinyvit__fp16_as_fp32__onnx", + "model": "tinyvit", + "path": "onnx", + "variant": "fp16_as_fp32" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/tinyvit__gelu_tanh__coreml_fp16.json b/bench/verdicts_e2e_gated/tinyvit__gelu_tanh__coreml_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..6e6d9809403fb03c171ac0af7b1ea0cdfd003500 --- /dev/null +++ b/bench/verdicts_e2e_gated/tinyvit__gelu_tanh__coreml_fp16.json @@ -0,0 +1,568 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": false, + "note": null, + "status": "clear" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [ + "inputs[0]: dtype float16 (declared float32)", + "outputs[0]: dtype float16 (declared float32)" + ], + "status": "precision_narrowing" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "status": "clear" + } + }, + "declared_precision": "fp16", + "first_divergence": null, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "879643b187b6ce1099ef74e7e38e8717078442833e3ca93e11f308d3b5a63d75", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "93f37ce4dcf6f79132fbf6b80a133837496be4f726af0da4d003d6984fc7e90e", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": null, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.349849989, + "metrics": { + "corr": 0.999995839, + "finite": true, + "max_abs": 0.00442934036, + "mean_abs": 0.000618628878, + "psnr_db": 67.8055527, + "ref_absmax": 1.26606846, + "rel_max": 0.00349849989, + "scaled_max_abs": 0.00349849989 + }, + "status": "pass" + }, + "first_fail_index": 1, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 0.117570499, + "index": 0, + "metrics": { + "corr": 0.999999914, + "finite": true, + "max_abs": 0.0135545731, + "mean_abs": 0.000674526699, + "psnr_db": 83.5827466, + "ref_absmax": 11.5288897, + "rel_max": 0.00117570499, + "scaled_max_abs": 0.00117570499 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 1.47449007, + "index": 1, + "metrics": { + "corr": 0.999991394, + "finite": true, + "max_abs": 0.159186363, + "mean_abs": 0.00251833586, + "psnr_db": 73.8085669, + "ref_absmax": 10.7960281, + "rel_max": 0.0147449007, + "scaled_max_abs": 0.0147449007 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_5_cast_fp16" + }, + "status": "fail", + "tap": "net.patch_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 1.45772783, + "index": 2, + "metrics": { + "corr": 0.999992261, + "finite": true, + "max_abs": 0.157061577, + "mean_abs": 0.00252916549, + "psnr_db": 73.7102173, + "ref_absmax": 10.7744102, + "rel_max": 0.0145772783, + "scaled_max_abs": 0.0145772783 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5_cast_fp16" + }, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 1.44004222, + "index": 3, + "metrics": { + "corr": 0.999992443, + "finite": true, + "max_abs": 0.15436554, + "mean_abs": 0.00271046309, + "psnr_db": 73.5671904, + "ref_absmax": 10.7195148, + "rel_max": 0.0144004222, + "scaled_max_abs": 0.0144004222 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_17_cast_fp16" + }, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 1.45278434, + "index": 4, + "metrics": { + "corr": 0.999992727, + "finite": true, + "max_abs": 0.159858704, + "mean_abs": 0.00289966695, + "psnr_db": 73.4903717, + "ref_absmax": 11.0036087, + "rel_max": 0.0145278434, + "scaled_max_abs": 0.0145278434 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_29_cast_fp16" + }, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 1.4154609, + "index": 5, + "metrics": { + "corr": 0.999992839, + "finite": true, + "max_abs": 0.160628319, + "mean_abs": 0.00305568408, + "psnr_db": 73.531213, + "ref_absmax": 11.3481283, + "rel_max": 0.014154609, + "scaled_max_abs": 0.014154609 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_41_cast_fp16" + }, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 0.758511925, + "index": 6, + "metrics": { + "corr": 0.999993475, + "finite": true, + "max_abs": 0.0311830044, + "mean_abs": 0.00270160866, + "psnr_db": 66.7363796, + "ref_absmax": 4.11107635, + "rel_max": 0.00758511925, + "scaled_max_abs": 0.00758511925 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "status": "pass", + "tap": "net.norm" + }, + { + "band_ratio": 0.501150413, + "index": 7, + "metrics": { + "corr": 0.99999716, + "finite": true, + "max_abs": 0.0111043453, + "mean_abs": 0.000837949525, + "psnr_db": 69.8102757, + "ref_absmax": 2.21577096, + "rel_max": 0.00501150413, + "scaled_max_abs": 0.00501150413 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_cast_fp16" + }, + "status": "pass", + "tap": "net.pool" + }, + { + "band_ratio": 0.349849989, + "index": 8, + "metrics": { + "corr": 0.999995839, + "finite": true, + "max_abs": 0.00442934036, + "mean_abs": 0.000618628878, + "psnr_db": 67.8055527, + "ref_absmax": 1.26606846, + "rel_max": 0.00349849989, + "scaled_max_abs": 0.00349849989 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "pass", + "tap": "net.head" + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.402825966, + "metrics": { + "corr": 0.999995094, + "finite": true, + "max_abs": 0.00541609526, + "mean_abs": 0.000658117956, + "psnr_db": 67.1631417, + "ref_absmax": 1.34452486, + "rel_max": 0.00402825966, + "scaled_max_abs": 0.00402825966 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 0.116213884, + "index": 0, + "metrics": { + "corr": 0.999999912, + "finite": true, + "max_abs": 0.0133981705, + "mean_abs": 0.000679588388, + "psnr_db": 83.6184843, + "ref_absmax": 11.5288897, + "rel_max": 0.00116213884, + "scaled_max_abs": 0.00116213884 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.817007877, + "index": 1, + "metrics": { + "corr": 0.999991415, + "finite": true, + "max_abs": 0.0969877243, + "mean_abs": 0.00250771621, + "psnr_db": 74.367951, + "ref_absmax": 11.871088, + "rel_max": 0.00817007877, + "scaled_max_abs": 0.00817007877 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_5_cast_fp16" + }, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_ratio": 0.860384338, + "index": 2, + "metrics": { + "corr": 0.999992187, + "finite": true, + "max_abs": 0.0995883942, + "mean_abs": 0.00251680124, + "psnr_db": 74.29315, + "ref_absmax": 11.574873, + "rel_max": 0.00860384338, + "scaled_max_abs": 0.00860384338 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5_cast_fp16" + }, + "status": "pass", + "tap": "net.pos_embed" + }, + { + "band_ratio": 0.837666842, + "index": 3, + "metrics": { + "corr": 0.999992439, + "finite": true, + "max_abs": 0.0996370316, + "mean_abs": 0.00269992927, + "psnr_db": 74.3779895, + "ref_absmax": 11.8945894, + "rel_max": 0.00837666842, + "scaled_max_abs": 0.00837666842 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_17_cast_fp16" + }, + "status": "pass", + "tap": "net.blocks.0" + }, + { + "band_ratio": 0.83436153, + "index": 4, + "metrics": { + "corr": 0.99999274, + "finite": true, + "max_abs": 0.101405144, + "mean_abs": 0.00289168545, + "psnr_db": 74.2735952, + "ref_absmax": 12.1536217, + "rel_max": 0.0083436153, + "scaled_max_abs": 0.0083436153 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_29_cast_fp16" + }, + "status": "pass", + "tap": "net.blocks.1" + }, + { + "band_ratio": 0.818916301, + "index": 5, + "metrics": { + "corr": 0.999992875, + "finite": true, + "max_abs": 0.102446556, + "mean_abs": 0.00303820725, + "psnr_db": 74.1599669, + "ref_absmax": 12.5100155, + "rel_max": 0.00818916301, + "scaled_max_abs": 0.00818916301 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_41_cast_fp16" + }, + "status": "pass", + "tap": "net.blocks.2" + }, + { + "band_ratio": 0.678718025, + "index": 6, + "metrics": { + "corr": 0.999993567, + "finite": true, + "max_abs": 0.0284955502, + "mean_abs": 0.00267613789, + "psnr_db": 66.9864001, + "ref_absmax": 4.19843721, + "rel_max": 0.00678718025, + "scaled_max_abs": 0.00678718025 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "status": "pass", + "tap": "net.norm" + }, + { + "band_ratio": 0.478346443, + "index": 7, + "metrics": { + "corr": 0.999997479, + "finite": true, + "max_abs": 0.0106277466, + "mean_abs": 0.00081530065, + "psnr_db": 69.9107749, + "ref_absmax": 2.22176766, + "rel_max": 0.00478346443, + "scaled_max_abs": 0.00478346443 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_cast_fp16" + }, + "status": "pass", + "tap": "net.pool" + }, + { + "band_ratio": 0.402825966, + "index": 8, + "metrics": { + "corr": 0.999995094, + "finite": true, + "max_abs": 0.00541609526, + "mean_abs": 0.000658117956, + "psnr_db": 67.1631417, + "ref_absmax": 1.34452486, + "rel_max": 0.00402825966, + "scaled_max_abs": 0.00402825966 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "pass", + "tap": "net.head" + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp16", + "id": "tinyvit__gelu_tanh__coreml_fp16", + "model": "tinyvit", + "path": "coreml", + "variant": "gelu_tanh" + }, + "verdict": "PASS" +} diff --git a/bench/verdicts_e2e_gated/tinyvit__gelu_tanh__coreml_fp32.json b/bench/verdicts_e2e_gated/tinyvit__gelu_tanh__coreml_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..0accc4c6d97d1a344eb49503c73bab1bd5a15e1c --- /dev/null +++ b/bench/verdicts_e2e_gated/tinyvit__gelu_tanh__coreml_fp32.json @@ -0,0 +1,545 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": false, + "note": null, + "status": "clear" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "status": "clear" + } + }, + "declared_precision": "fp32", + "first_divergence": null, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "a3037e5d1865f904be79b5ca4d887d1f56107769410fc9ef42705b8fa9607c35", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "bfa06e69b128d6bcbdc89df989805917f1babd4f5205f94111894332de39188b", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": null, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.359679987, + "metrics": { + "corr": 0.999999998, + "finite": true, + "max_abs": 4.55379486e-05, + "mean_abs": 1.50694817e-05, + "psnr_db": 101.971299, + "ref_absmax": 1.26606846, + "rel_max": 3.59679987e-05, + "scaled_max_abs": 3.59679987e-05 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.26638033e-08, + "psnr_db": 163.904618, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.00441678321, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 1.05437658e-07, + "psnr_db": 161.322112, + "ref_absmax": 10.7960281, + "rel_max": 4.41678321e-07, + "scaled_max_abs": 4.41678321e-07 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_5" + }, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_ratio": 0.00442564509, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 1.08827013e-07, + "psnr_db": 161.063379, + "ref_absmax": 10.7744102, + "rel_max": 4.42564509e-07, + "scaled_max_abs": 4.42564509e-07 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5" + }, + "status": "pass", + "tap": "net.pos_embed" + }, + { + "band_ratio": 0.00444830914, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 1.38193594e-07, + "psnr_db": 160.03963, + "ref_absmax": 10.7195148, + "rel_max": 4.44830914e-07, + "scaled_max_abs": 4.44830914e-07 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_17" + }, + "status": "pass", + "tap": "net.blocks.0" + }, + { + "band_ratio": 0.175884373, + "index": 4, + "metrics": { + "corr": 0.999999999, + "finite": true, + "max_abs": 0.000193536282, + "mean_abs": 3.36176651e-05, + "psnr_db": 114.349964, + "ref_absmax": 11.0036087, + "rel_max": 1.75884373e-05, + "scaled_max_abs": 1.75884373e-05 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_29" + }, + "status": "pass", + "tap": "net.blocks.1" + }, + { + "band_ratio": 0.166290246, + "index": 5, + "metrics": { + "corr": 0.999999999, + "finite": true, + "max_abs": 0.000188708305, + "mean_abs": 3.36823711e-05, + "psnr_db": 114.582614, + "ref_absmax": 11.3481283, + "rel_max": 1.66290246e-05, + "scaled_max_abs": 1.66290246e-05 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_41" + }, + "status": "pass", + "tap": "net.blocks.2" + }, + { + "band_ratio": 0.737432483, + "index": 6, + "metrics": { + "corr": 0.999999999, + "finite": true, + "max_abs": 0.000303164124, + "mean_abs": 3.52866065e-05, + "psnr_db": 104.468296, + "ref_absmax": 4.11107635, + "rel_max": 7.37432483e-05, + "scaled_max_abs": 7.37432483e-05 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x" + }, + "status": "pass", + "tap": "net.norm" + }, + { + "band_ratio": 0.397382956, + "index": 7, + "metrics": { + "corr": 0.999999999, + "finite": true, + "max_abs": 8.80509615e-05, + "mean_abs": 2.20570139e-05, + "psnr_db": 103.678535, + "ref_absmax": 2.21577096, + "rel_max": 3.97382956e-05, + "scaled_max_abs": 3.97382956e-05 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_1" + }, + "status": "pass", + "tap": "net.pool" + }, + { + "band_ratio": 0.359679987, + "index": 8, + "metrics": { + "corr": 0.999999998, + "finite": true, + "max_abs": 4.55379486e-05, + "mean_abs": 1.50694817e-05, + "psnr_db": 101.971299, + "ref_absmax": 1.26606846, + "rel_max": 3.59679987e-05, + "scaled_max_abs": 3.59679987e-05 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "pass", + "tap": "net.head" + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.370610351, + "metrics": { + "corr": 0.999999998, + "finite": true, + "max_abs": 4.9829483e-05, + "mean_abs": 1.52614608e-05, + "psnr_db": 102.07786, + "ref_absmax": 1.34452486, + "rel_max": 3.70610351e-05, + "scaled_max_abs": 3.70610351e-05 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.2793459e-08, + "psnr_db": 164.013874, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.00321343524, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.81469727e-06, + "mean_abs": 1.07091069e-07, + "psnr_db": 161.736623, + "ref_absmax": 11.871088, + "rel_max": 3.21343524e-07, + "scaled_max_abs": 3.21343524e-07 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_5" + }, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_ratio": 0.00411958869, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 1.09860232e-07, + "psnr_db": 161.519356, + "ref_absmax": 11.574873, + "rel_max": 4.11958869e-07, + "scaled_max_abs": 4.11958869e-07 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5" + }, + "status": "pass", + "tap": "net.pos_embed" + }, + { + "band_ratio": 0.00400885765, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 1.40039236e-07, + "psnr_db": 160.709782, + "ref_absmax": 11.8945894, + "rel_max": 4.00885765e-07, + "scaled_max_abs": 4.00885765e-07 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_17" + }, + "status": "pass", + "tap": "net.blocks.0" + }, + { + "band_ratio": 0.153748871, + "index": 4, + "metrics": { + "corr": 0.999999999, + "finite": true, + "max_abs": 0.000186860561, + "mean_abs": 3.37120844e-05, + "psnr_db": 115.091692, + "ref_absmax": 12.1536217, + "rel_max": 1.53748871e-05, + "scaled_max_abs": 1.53748871e-05 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_29" + }, + "status": "pass", + "tap": "net.blocks.1" + }, + { + "band_ratio": 0.15694441, + "index": 5, + "metrics": { + "corr": 0.999999999, + "finite": true, + "max_abs": 0.0001963377, + "mean_abs": 3.38417488e-05, + "psnr_db": 115.147581, + "ref_absmax": 12.5100155, + "rel_max": 1.5694441e-05, + "scaled_max_abs": 1.5694441e-05 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_41" + }, + "status": "pass", + "tap": "net.blocks.2" + }, + { + "band_ratio": 0.740082553, + "index": 6, + "metrics": { + "corr": 0.999999999, + "finite": true, + "max_abs": 0.000310719013, + "mean_abs": 3.5159476e-05, + "psnr_db": 104.726437, + "ref_absmax": 4.19843721, + "rel_max": 7.40082553e-05, + "scaled_max_abs": 7.40082553e-05 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x" + }, + "status": "pass", + "tap": "net.norm" + }, + { + "band_ratio": 0.406689312, + "index": 7, + "metrics": { + "corr": 0.999999999, + "finite": true, + "max_abs": 9.03569162e-05, + "mean_abs": 2.24050186e-05, + "psnr_db": 103.534225, + "ref_absmax": 2.22176766, + "rel_max": 4.06689312e-05, + "scaled_max_abs": 4.06689312e-05 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_1" + }, + "status": "pass", + "tap": "net.pool" + }, + { + "band_ratio": 0.370610351, + "index": 8, + "metrics": { + "corr": 0.999999998, + "finite": true, + "max_abs": 4.9829483e-05, + "mean_abs": 1.52614608e-05, + "psnr_db": 102.07786, + "ref_absmax": 1.34452486, + "rel_max": 3.70610351e-05, + "scaled_max_abs": 3.70610351e-05 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "pass", + "tap": "net.head" + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp32", + "id": "tinyvit__gelu_tanh__coreml_fp32", + "model": "tinyvit", + "path": "coreml", + "variant": "gelu_tanh" + }, + "verdict": "PASS" +} diff --git a/bench/verdicts_e2e_gated/tinyvit__gelu_tanh__litert_fp16.json b/bench/verdicts_e2e_gated/tinyvit__gelu_tanh__litert_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..b11ed287a55d5df797e2ce2e24c91b1e2d270c2c --- /dev/null +++ b/bench/verdicts_e2e_gated/tinyvit__gelu_tanh__litert_fp16.json @@ -0,0 +1,574 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": false, + "note": null, + "status": "clear" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 1.88403478e-05, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.5331974e-07, + "mean_abs": 4.77273716e-08, + "psnr_db": 151.629314, + "ref_absmax": 1.34455979, + "rel_max": 1.88403478e-07, + "scaled_max_abs": 1.88403478e-07 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 57, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 1, + "n_ops_total": 187, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "status": "clear" + } + }, + "declared_precision": "fp16", + "first_divergence": null, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "517e7821513a31c37278c56d90bd8d9fcd3a4aa9d50cf58b23f618cc056b4ff0", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "86cbb1a50ad9cca3f5ef4e64712f0feba271b470b4c7aa5c60a695c145fa97a3", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": null, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.0218538547, + "metrics": { + "corr": 0.999999959, + "finite": true, + "max_abs": 0.000276684761, + "mean_abs": 7.58840819e-05, + "psnr_db": 87.6816202, + "ref_absmax": 1.26606846, + "rel_max": 0.000218538547, + "scaled_max_abs": 0.000218538547 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 8.27203959e-06, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.26638033e-08, + "psnr_db": 163.904618, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0238484209, + "index": 1, + "metrics": { + "corr": 0.999999975, + "finite": true, + "max_abs": 0.00257468224, + "mean_abs": 0.000153147335, + "psnr_db": 99.1308904, + "ref_absmax": 10.7960281, + "rel_max": 0.000238484209, + "scaled_max_abs": 0.000238484209 + }, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;2" + }, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_ratio": 0.0238962707, + "index": 2, + "metrics": { + "corr": 0.999999977, + "finite": true, + "max_abs": 0.00257468224, + "mean_abs": 0.000153147282, + "psnr_db": 99.0500481, + "ref_absmax": 10.7744102, + "rel_max": 0.000238962707, + "scaled_max_abs": 0.000238962707 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;3" + }, + "status": "pass", + "tap": "net.pos_embed" + }, + { + "band_ratio": 0.0248371341, + "index": 3, + "metrics": { + "corr": 0.999999975, + "finite": true, + "max_abs": 0.00266242027, + "mean_abs": 0.000175715531, + "psnr_db": 98.3929002, + "ref_absmax": 10.7195148, + "rel_max": 0.000248371341, + "scaled_max_abs": 0.000248371341 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.0" + }, + { + "band_ratio": 0.0243302202, + "index": 4, + "metrics": { + "corr": 0.999999974, + "finite": true, + "max_abs": 0.00267720222, + "mean_abs": 0.000197903481, + "psnr_db": 97.9439415, + "ref_absmax": 11.0036087, + "rel_max": 0.000243302202, + "scaled_max_abs": 0.000243302202 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.1" + }, + { + "band_ratio": 0.0251105625, + "index": 5, + "metrics": { + "corr": 0.999999974, + "finite": true, + "max_abs": 0.00284957886, + "mean_abs": 0.000208045135, + "psnr_db": 97.9610563, + "ref_absmax": 11.3481283, + "rel_max": 0.000251105625, + "scaled_max_abs": 0.000251105625 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.2" + }, + { + "band_ratio": 0.0306455845, + "index": 6, + "metrics": { + "corr": 0.999999971, + "finite": true, + "max_abs": 0.00125986338, + "mean_abs": 0.000191707294, + "psnr_db": 90.2401993, + "ref_absmax": 4.11107635, + "rel_max": 0.000306455845, + "scaled_max_abs": 0.000306455845 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "status": "pass", + "tap": "net.norm" + }, + { + "band_ratio": 0.0239465431, + "index": 7, + "metrics": { + "corr": 0.99999997, + "finite": true, + "max_abs": 0.000530600548, + "mean_abs": 0.000106476321, + "psnr_db": 89.6299926, + "ref_absmax": 2.21577096, + "rel_max": 0.000239465431, + "scaled_max_abs": 0.000239465431 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "status": "pass", + "tap": "net.pool" + }, + { + "band_ratio": 0.0218538547, + "index": 8, + "metrics": { + "corr": 0.999999959, + "finite": true, + "max_abs": 0.000276684761, + "mean_abs": 7.58840819e-05, + "psnr_db": 87.6816202, + "ref_absmax": 1.26606846, + "rel_max": 0.000218538547, + "scaled_max_abs": 0.000218538547 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "pass", + "tap": "net.head" + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.0206451245, + "metrics": { + "corr": 0.999999954, + "finite": true, + "max_abs": 0.000277578831, + "mean_abs": 8.1330759e-05, + "psnr_db": 87.3034523, + "ref_absmax": 1.34452486, + "rel_max": 0.000206451245, + "scaled_max_abs": 0.000206451245 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 8.27203959e-06, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.2793459e-08, + "psnr_db": 164.013874, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0277319462, + "index": 1, + "metrics": { + "corr": 0.999999975, + "finite": true, + "max_abs": 0.00329208374, + "mean_abs": 0.00015256364, + "psnr_db": 99.7212805, + "ref_absmax": 11.871088, + "rel_max": 0.000277319462, + "scaled_max_abs": 0.000277319462 + }, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;2" + }, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_ratio": 0.0284416403, + "index": 2, + "metrics": { + "corr": 0.999999977, + "finite": true, + "max_abs": 0.00329208374, + "mean_abs": 0.000152563603, + "psnr_db": 99.6624604, + "ref_absmax": 11.574873, + "rel_max": 0.000284416403, + "scaled_max_abs": 0.000284416403 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;3" + }, + "status": "pass", + "tap": "net.pos_embed" + }, + { + "band_ratio": 0.0279738087, + "index": 3, + "metrics": { + "corr": 0.999999975, + "finite": true, + "max_abs": 0.00332736969, + "mean_abs": 0.000176384194, + "psnr_db": 99.194827, + "ref_absmax": 11.8945894, + "rel_max": 0.000279738087, + "scaled_max_abs": 0.000279738087 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.0" + }, + { + "band_ratio": 0.0269695628, + "index": 4, + "metrics": { + "corr": 0.999999974, + "finite": true, + "max_abs": 0.00327777863, + "mean_abs": 0.000200940376, + "psnr_db": 98.6725089, + "ref_absmax": 12.1536217, + "rel_max": 0.000269695628, + "scaled_max_abs": 0.000269695628 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.1" + }, + { + "band_ratio": 0.0255075165, + "index": 5, + "metrics": { + "corr": 0.999999974, + "finite": true, + "max_abs": 0.00319099426, + "mean_abs": 0.000211546826, + "psnr_db": 98.5171343, + "ref_absmax": 12.5100155, + "rel_max": 0.000255075165, + "scaled_max_abs": 0.000255075165 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.2" + }, + { + "band_ratio": 0.0304625674, + "index": 6, + "metrics": { + "corr": 0.99999997, + "finite": true, + "max_abs": 0.00127895176, + "mean_abs": 0.000194918576, + "psnr_db": 90.3440681, + "ref_absmax": 4.19843721, + "rel_max": 0.000304625674, + "scaled_max_abs": 0.000304625674 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "status": "pass", + "tap": "net.norm" + }, + { + "band_ratio": 0.0235438822, + "index": 7, + "metrics": { + "corr": 0.999999969, + "finite": true, + "max_abs": 0.000523090363, + "mean_abs": 0.000116567945, + "psnr_db": 88.9648238, + "ref_absmax": 2.22176766, + "rel_max": 0.000235438822, + "scaled_max_abs": 0.000235438822 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "status": "pass", + "tap": "net.pool" + }, + { + "band_ratio": 0.0206451245, + "index": 8, + "metrics": { + "corr": 0.999999954, + "finite": true, + "max_abs": 0.000277578831, + "mean_abs": 8.1330759e-05, + "psnr_db": 87.3034523, + "ref_absmax": 1.34452486, + "rel_max": 0.000206451245, + "scaled_max_abs": 0.000206451245 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "pass", + "tap": "net.head" + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp16", + "id": "tinyvit__gelu_tanh__litert_fp16", + "model": "tinyvit", + "path": "litert", + "variant": "gelu_tanh" + }, + "verdict": "PASS" +} diff --git a/bench/verdicts_e2e_gated/tinyvit__gelu_tanh__litert_fp32.json b/bench/verdicts_e2e_gated/tinyvit__gelu_tanh__litert_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..0f7a47877a814438d44b6405ccc53e21929d29be --- /dev/null +++ b/bench/verdicts_e2e_gated/tinyvit__gelu_tanh__litert_fp32.json @@ -0,0 +1,574 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": false, + "note": null, + "status": "clear" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 0.00177327335, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.38418579e-07, + "mean_abs": 4.11702786e-08, + "psnr_db": 152.823534, + "ref_absmax": 1.34451115, + "rel_max": 1.77327335e-07, + "scaled_max_abs": 1.77327335e-07 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 57, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 1, + "n_ops_total": 173, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "status": "clear" + } + }, + "declared_precision": "fp32", + "first_divergence": null, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "e493a073105b1e1d294e1349442d778db6761a3c4ec2ec7a20460e01425685f2", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "00630832cce112574bf0b1cf6536b13d255804f1ac2de6dccf812b3e1bf0e9c7", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": null, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.358267631, + "metrics": { + "corr": 0.999999998, + "finite": true, + "max_abs": 4.53591347e-05, + "mean_abs": 1.5076506e-05, + "psnr_db": 101.970731, + "ref_absmax": 1.26606846, + "rel_max": 3.58267631e-05, + "scaled_max_abs": 3.58267631e-05 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.26638033e-08, + "psnr_db": 163.904618, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.013692028, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.47819519e-05, + "mean_abs": 3.77735959e-07, + "psnr_db": 150.658464, + "ref_absmax": 10.7960281, + "rel_max": 1.3692028e-06, + "scaled_max_abs": 1.3692028e-06 + }, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;2" + }, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_ratio": 0.0137194998, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.47819519e-05, + "mean_abs": 3.78651032e-07, + "psnr_db": 150.56143, + "ref_absmax": 10.7744102, + "rel_max": 1.37194998e-06, + "scaled_max_abs": 1.37194998e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;3" + }, + "status": "pass", + "tap": "net.pos_embed" + }, + { + "band_ratio": 0.0133449274, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-05, + "mean_abs": 4.0469488e-07, + "psnr_db": 150.358835, + "ref_absmax": 10.7195148, + "rel_max": 1.33449274e-06, + "scaled_max_abs": 1.33449274e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.0" + }, + { + "band_ratio": 0.175992709, + "index": 4, + "metrics": { + "corr": 0.999999999, + "finite": true, + "max_abs": 0.000193655491, + "mean_abs": 3.36225345e-05, + "psnr_db": 114.348737, + "ref_absmax": 11.0036087, + "rel_max": 1.75992709e-05, + "scaled_max_abs": 1.75992709e-05 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.1" + }, + { + "band_ratio": 0.166185199, + "index": 5, + "metrics": { + "corr": 0.999999999, + "finite": true, + "max_abs": 0.000188589096, + "mean_abs": 3.368885e-05, + "psnr_db": 114.580919, + "ref_absmax": 11.3481283, + "rel_max": 1.66185199e-05, + "scaled_max_abs": 1.66185199e-05 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.2" + }, + { + "band_ratio": 0.736526324, + "index": 6, + "metrics": { + "corr": 0.999999999, + "finite": true, + "max_abs": 0.000302791595, + "mean_abs": 3.52914673e-05, + "psnr_db": 104.467171, + "ref_absmax": 4.11107635, + "rel_max": 7.36526324e-05, + "scaled_max_abs": 7.36526324e-05 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "status": "pass", + "tap": "net.norm" + }, + { + "band_ratio": 0.397584708, + "index": 7, + "metrics": { + "corr": 0.999999999, + "finite": true, + "max_abs": 8.8095665e-05, + "mean_abs": 2.20585533e-05, + "psnr_db": 103.677838, + "ref_absmax": 2.21577096, + "rel_max": 3.97584708e-05, + "scaled_max_abs": 3.97584708e-05 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "status": "pass", + "tap": "net.pool" + }, + { + "band_ratio": 0.358267631, + "index": 8, + "metrics": { + "corr": 0.999999998, + "finite": true, + "max_abs": 4.53591347e-05, + "mean_abs": 1.5076506e-05, + "psnr_db": 101.970731, + "ref_absmax": 1.26606846, + "rel_max": 3.58267631e-05, + "scaled_max_abs": 3.58267631e-05 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "pass", + "tap": "net.head" + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.369280409, + "metrics": { + "corr": 0.999999998, + "finite": true, + "max_abs": 4.96506691e-05, + "mean_abs": 1.52649009e-05, + "psnr_db": 102.078527, + "ref_absmax": 1.34452486, + "rel_max": 3.69280409e-05, + "scaled_max_abs": 3.69280409e-05 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.2793459e-08, + "psnr_db": 164.013874, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0120503822, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-05, + "mean_abs": 3.77230551e-07, + "psnr_db": 151.208122, + "ref_absmax": 11.871088, + "rel_max": 1.20503822e-06, + "scaled_max_abs": 1.20503822e-06 + }, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;2" + }, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_ratio": 0.0123587661, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-05, + "mean_abs": 3.77991994e-07, + "psnr_db": 151.132396, + "ref_absmax": 11.574873, + "rel_max": 1.23587661e-06, + "scaled_max_abs": 1.23587661e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;3" + }, + "status": "pass", + "tap": "net.pos_embed" + }, + { + "band_ratio": 0.012026573, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-05, + "mean_abs": 4.04609382e-07, + "psnr_db": 151.152989, + "ref_absmax": 11.8945894, + "rel_max": 1.2026573e-06, + "scaled_max_abs": 1.2026573e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.0" + }, + { + "band_ratio": 0.153699829, + "index": 4, + "metrics": { + "corr": 0.999999999, + "finite": true, + "max_abs": 0.000186800957, + "mean_abs": 3.37106586e-05, + "psnr_db": 115.091746, + "ref_absmax": 12.1536217, + "rel_max": 1.53699829e-05, + "scaled_max_abs": 1.53699829e-05 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.1" + }, + { + "band_ratio": 0.15694441, + "index": 5, + "metrics": { + "corr": 0.999999999, + "finite": true, + "max_abs": 0.0001963377, + "mean_abs": 3.38417353e-05, + "psnr_db": 115.147455, + "ref_absmax": 12.5100155, + "rel_max": 1.5694441e-05, + "scaled_max_abs": 1.5694441e-05 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.2" + }, + { + "band_ratio": 0.73724318, + "index": 6, + "metrics": { + "corr": 0.999999999, + "finite": true, + "max_abs": 0.00030952692, + "mean_abs": 3.5156336e-05, + "psnr_db": 104.726823, + "ref_absmax": 4.19843721, + "rel_max": 7.3724318e-05, + "scaled_max_abs": 7.3724318e-05 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "status": "pass", + "tap": "net.norm" + }, + { + "band_ratio": 0.407058191, + "index": 7, + "metrics": { + "corr": 0.999999999, + "finite": true, + "max_abs": 9.04388726e-05, + "mean_abs": 2.23984881e-05, + "psnr_db": 103.535117, + "ref_absmax": 2.22176766, + "rel_max": 4.07058191e-05, + "scaled_max_abs": 4.07058191e-05 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "status": "pass", + "tap": "net.pool" + }, + { + "band_ratio": 0.369280409, + "index": 8, + "metrics": { + "corr": 0.999999998, + "finite": true, + "max_abs": 4.96506691e-05, + "mean_abs": 1.52649009e-05, + "psnr_db": 102.078527, + "ref_absmax": 1.34452486, + "rel_max": 3.69280409e-05, + "scaled_max_abs": 3.69280409e-05 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "pass", + "tap": "net.head" + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp32", + "id": "tinyvit__gelu_tanh__litert_fp32", + "model": "tinyvit", + "path": "litert", + "variant": "gelu_tanh" + }, + "verdict": "PASS" +} diff --git a/bench/verdicts_e2e_gated/tinyvit__gelu_tanh__onnx_fp16.json b/bench/verdicts_e2e_gated/tinyvit__gelu_tanh__onnx_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..3e4222c18130a24c35c3be851384c793e3ce49d3 --- /dev/null +++ b/bench/verdicts_e2e_gated/tinyvit__gelu_tanh__onnx_fp16.json @@ -0,0 +1,545 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": false, + "note": null, + "status": "clear" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "status": "clear" + } + }, + "declared_precision": "fp16", + "first_divergence": null, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "b543117b437b3c80f197984a158ece07c645f214d09d6fc42e0b457af35272dc", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "8e9a8a774c91276297c42a31a3355811d641860503469621bd4e310c42f1120b", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 4.52399254e-05, + "224": 4.58061695e-05 + }, + "primary_class": null, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.0502433866, + "metrics": { + "corr": 0.999999883, + "finite": true, + "max_abs": 0.00063611567, + "mean_abs": 0.000131547483, + "psnr_db": 82.7917663, + "ref_absmax": 1.26606846, + "rel_max": 0.000502433866, + "scaled_max_abs": 0.000502433866 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 0.0441313312, + "index": 0, + "metrics": { + "corr": 0.999999966, + "finite": true, + "max_abs": 0.00508785248, + "mean_abs": 0.000405953078, + "psnr_db": 88.0186903, + "ref_absmax": 11.5288897, + "rel_max": 0.000441313312, + "scaled_max_abs": 0.000441313312 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0469150713, + "index": 1, + "metrics": { + "corr": 0.999999939, + "finite": true, + "max_abs": 0.00506496429, + "mean_abs": 0.000255633799, + "psnr_db": 95.3001421, + "ref_absmax": 10.7960281, + "rel_max": 0.000469150713, + "scaled_max_abs": 0.000469150713 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_ratio": 0.0735365188, + "index": 2, + "metrics": { + "corr": 0.999999921, + "finite": true, + "max_abs": 0.00792312622, + "mean_abs": 0.000301602973, + "psnr_db": 93.5874175, + "ref_absmax": 10.7744102, + "rel_max": 0.000735365188, + "scaled_max_abs": 0.000735365188 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "status": "pass", + "tap": "net.pos_embed" + }, + { + "band_ratio": 0.0642335839, + "index": 3, + "metrics": { + "corr": 0.999999915, + "finite": true, + "max_abs": 0.00688552856, + "mean_abs": 0.000337762151, + "psnr_db": 93.052585, + "ref_absmax": 10.7195148, + "rel_max": 0.000642335839, + "scaled_max_abs": 0.000642335839 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.0" + }, + { + "band_ratio": 0.0711207718, + "index": 4, + "metrics": { + "corr": 0.99999991, + "finite": true, + "max_abs": 0.00782585144, + "mean_abs": 0.000377295711, + "psnr_db": 92.5321278, + "ref_absmax": 11.0036087, + "rel_max": 0.000711207718, + "scaled_max_abs": 0.000711207718 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.1" + }, + { + "band_ratio": 0.0762561059, + "index": 5, + "metrics": { + "corr": 0.999999904, + "finite": true, + "max_abs": 0.00865364075, + "mean_abs": 0.000408295325, + "psnr_db": 92.2677079, + "ref_absmax": 11.3481283, + "rel_max": 0.000762561059, + "scaled_max_abs": 0.000762561059 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.2" + }, + { + "band_ratio": 0.0818820092, + "index": 6, + "metrics": { + "corr": 0.999999846, + "finite": true, + "max_abs": 0.00336623192, + "mean_abs": 0.000425260716, + "psnr_db": 82.9962727, + "ref_absmax": 4.11107635, + "rel_max": 0.000818820092, + "scaled_max_abs": 0.000818820092 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "status": "pass", + "tap": "net.norm" + }, + { + "band_ratio": 0.0736991044, + "index": 7, + "metrics": { + "corr": 0.999999805, + "finite": true, + "max_abs": 0.00163300335, + "mean_abs": 0.00027358797, + "psnr_db": 81.4404838, + "ref_absmax": 2.21577096, + "rel_max": 0.000736991044, + "scaled_max_abs": 0.000736991044 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/ReduceMean_output_0" + }, + "status": "pass", + "tap": "net.pool" + }, + { + "band_ratio": 0.0490169908, + "index": 8, + "metrics": { + "corr": 0.999999884, + "finite": true, + "max_abs": 0.00062058866, + "mean_abs": 0.000131740266, + "psnr_db": 82.8089571, + "ref_absmax": 1.26606846, + "rel_max": 0.000490169908, + "scaled_max_abs": 0.000490169908 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "pass", + "tap": "net.head" + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.0473880305, + "metrics": { + "corr": 0.999999897, + "finite": true, + "max_abs": 0.00063714385, + "mean_abs": 0.000128320683, + "psnr_db": 83.3693914, + "ref_absmax": 1.34452486, + "rel_max": 0.000473880305, + "scaled_max_abs": 0.000473880305 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 0.0439328023, + "index": 0, + "metrics": { + "corr": 0.999999965, + "finite": true, + "max_abs": 0.00506496429, + "mean_abs": 0.000406712054, + "psnr_db": 88.0749992, + "ref_absmax": 11.5288897, + "rel_max": 0.000439328023, + "scaled_max_abs": 0.000439328023 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0469161546, + "index": 1, + "metrics": { + "corr": 0.99999994, + "finite": true, + "max_abs": 0.00556945801, + "mean_abs": 0.000254492238, + "psnr_db": 95.9056844, + "ref_absmax": 11.871088, + "rel_max": 0.000469161546, + "scaled_max_abs": 0.000469161546 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_ratio": 0.07491884, + "index": 2, + "metrics": { + "corr": 0.99999992, + "finite": true, + "max_abs": 0.00867176056, + "mean_abs": 0.000301083888, + "psnr_db": 94.1877045, + "ref_absmax": 11.574873, + "rel_max": 0.0007491884, + "scaled_max_abs": 0.0007491884 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "status": "pass", + "tap": "net.pos_embed" + }, + { + "band_ratio": 0.0635564292, + "index": 3, + "metrics": { + "corr": 0.999999915, + "finite": true, + "max_abs": 0.00755977631, + "mean_abs": 0.000339032434, + "psnr_db": 93.8757594, + "ref_absmax": 11.8945894, + "rel_max": 0.000635564292, + "scaled_max_abs": 0.000635564292 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.0" + }, + { + "band_ratio": 0.0671218039, + "index": 4, + "metrics": { + "corr": 0.999999909, + "finite": true, + "max_abs": 0.0081577301, + "mean_abs": 0.000377745065, + "psnr_db": 93.2997276, + "ref_absmax": 12.1536217, + "rel_max": 0.000671218039, + "scaled_max_abs": 0.000671218039 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.1" + }, + { + "band_ratio": 0.0664445648, + "index": 5, + "metrics": { + "corr": 0.999999905, + "finite": true, + "max_abs": 0.00831222534, + "mean_abs": 0.000408643888, + "psnr_db": 92.8870095, + "ref_absmax": 12.5100155, + "rel_max": 0.000664445648, + "scaled_max_abs": 0.000664445648 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.2" + }, + { + "band_ratio": 0.0866008742, + "index": 6, + "metrics": { + "corr": 0.999999847, + "finite": true, + "max_abs": 0.00363588333, + "mean_abs": 0.000422709279, + "psnr_db": 83.2379069, + "ref_absmax": 4.19843721, + "rel_max": 0.000866008742, + "scaled_max_abs": 0.000866008742 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "status": "pass", + "tap": "net.norm" + }, + { + "band_ratio": 0.0682010682, + "index": 7, + "metrics": { + "corr": 0.999999829, + "finite": true, + "max_abs": 0.00151526928, + "mean_abs": 0.000270385191, + "psnr_db": 81.572586, + "ref_absmax": 2.22176766, + "rel_max": 0.000682010682, + "scaled_max_abs": 0.000682010682 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/ReduceMean_output_0" + }, + "status": "pass", + "tap": "net.pool" + }, + { + "band_ratio": 0.0471353416, + "index": 8, + "metrics": { + "corr": 0.999999896, + "finite": true, + "max_abs": 0.000633746386, + "mean_abs": 0.000128655721, + "psnr_db": 83.3417377, + "ref_absmax": 1.34452486, + "rel_max": 0.000471353416, + "scaled_max_abs": 0.000471353416 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "pass", + "tap": "net.head" + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp16", + "id": "tinyvit__gelu_tanh__onnx_fp16", + "model": "tinyvit", + "path": "onnx", + "variant": "gelu_tanh" + }, + "verdict": "PASS" +} diff --git a/bench/verdicts_e2e_gated/tinyvit__gelu_tanh__onnx_fp32.json b/bench/verdicts_e2e_gated/tinyvit__gelu_tanh__onnx_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..bd85ff8c220b44f81fba9e9e2d6c247d150ef9d6 --- /dev/null +++ b/bench/verdicts_e2e_gated/tinyvit__gelu_tanh__onnx_fp32.json @@ -0,0 +1,545 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": false, + "note": null, + "status": "clear" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "status": "clear" + } + }, + "declared_precision": "fp32", + "first_divergence": null, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "d0fb28a7fb7a50e81d093a60f4591d9075b44280144c0c4fd84d3567f6b10144", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "9bcd77de12834f643a8991a20b1aeb57c05c9411fdf093b40b92dda5cce4ce76", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 1.1920929e-07, + "224": 1.1920929e-07 + }, + "primary_class": null, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.359209201, + "metrics": { + "corr": 0.999999998, + "finite": true, + "max_abs": 4.5478344e-05, + "mean_abs": 1.50642983e-05, + "psnr_db": 101.974744, + "ref_absmax": 1.26606846, + "rel_max": 3.59209201e-05, + "scaled_max_abs": 3.59209201e-05 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 0.0, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 11.5288897, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0119253147, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.28746033e-05, + "mean_abs": 3.19462653e-07, + "psnr_db": 151.866979, + "ref_absmax": 10.7960281, + "rel_max": 1.19253147e-06, + "scaled_max_abs": 1.19253147e-06 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_ratio": 0.0119492417, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.28746033e-05, + "mean_abs": 3.49198263e-07, + "psnr_db": 151.445693, + "ref_absmax": 10.7744102, + "rel_max": 1.19492417e-06, + "scaled_max_abs": 1.19492417e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "status": "pass", + "tap": "net.pos_embed" + }, + { + "band_ratio": 0.0124552656, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33514404e-05, + "mean_abs": 3.75557543e-07, + "psnr_db": 151.183096, + "ref_absmax": 10.7195148, + "rel_max": 1.24552656e-06, + "scaled_max_abs": 1.24552656e-06 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.0" + }, + { + "band_ratio": 0.175721868, + "index": 4, + "metrics": { + "corr": 0.999999999, + "finite": true, + "max_abs": 0.000193357468, + "mean_abs": 3.36272855e-05, + "psnr_db": 114.347752, + "ref_absmax": 11.0036087, + "rel_max": 1.75721868e-05, + "scaled_max_abs": 1.75721868e-05 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.1" + }, + { + "band_ratio": 0.166605389, + "index": 5, + "metrics": { + "corr": 0.999999999, + "finite": true, + "max_abs": 0.000189065933, + "mean_abs": 3.36902425e-05, + "psnr_db": 114.580622, + "ref_absmax": 11.3481283, + "rel_max": 1.66605389e-05, + "scaled_max_abs": 1.66605389e-05 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.2" + }, + { + "band_ratio": 0.737758701, + "index": 6, + "metrics": { + "corr": 0.999999999, + "finite": true, + "max_abs": 0.000303298235, + "mean_abs": 3.5291143e-05, + "psnr_db": 104.467266, + "ref_absmax": 4.11107635, + "rel_max": 7.37758701e-05, + "scaled_max_abs": 7.37758701e-05 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "status": "pass", + "tap": "net.norm" + }, + { + "band_ratio": 0.397113955, + "index": 7, + "metrics": { + "corr": 0.999999999, + "finite": true, + "max_abs": 8.79913568e-05, + "mean_abs": 2.20543946e-05, + "psnr_db": 103.67899, + "ref_absmax": 2.21577096, + "rel_max": 3.97113955e-05, + "scaled_max_abs": 3.97113955e-05 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/ReduceMean_output_0" + }, + "status": "pass", + "tap": "net.pool" + }, + { + "band_ratio": 0.359209201, + "index": 8, + "metrics": { + "corr": 0.999999998, + "finite": true, + "max_abs": 4.5478344e-05, + "mean_abs": 1.50626118e-05, + "psnr_db": 101.975118, + "ref_absmax": 1.26606846, + "rel_max": 3.59209201e-05, + "scaled_max_abs": 3.59209201e-05 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "pass", + "tap": "net.head" + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.369723723, + "metrics": { + "corr": 0.999999998, + "finite": true, + "max_abs": 4.97102737e-05, + "mean_abs": 1.52593275e-05, + "psnr_db": 102.080076, + "ref_absmax": 1.34452486, + "rel_max": 3.69723723e-05, + "scaled_max_abs": 3.69723723e-05 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 0.0, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 11.5288897, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0104436645, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.23977661e-05, + "mean_abs": 3.18193685e-07, + "psnr_db": 152.441072, + "ref_absmax": 11.871088, + "rel_max": 1.04436645e-06, + "scaled_max_abs": 1.04436645e-06 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_ratio": 0.0107109306, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.23977661e-05, + "mean_abs": 3.18841259e-07, + "psnr_db": 152.36286, + "ref_absmax": 11.574873, + "rel_max": 1.07109306e-06, + "scaled_max_abs": 1.07109306e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "status": "pass", + "tap": "net.pos_embed" + }, + { + "band_ratio": 0.0104230299, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.23977661e-05, + "mean_abs": 3.4705172e-07, + "psnr_db": 152.330323, + "ref_absmax": 11.8945894, + "rel_max": 1.04230299e-06, + "scaled_max_abs": 1.04230299e-06 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.0" + }, + { + "band_ratio": 0.153895999, + "index": 4, + "metrics": { + "corr": 0.999999999, + "finite": true, + "max_abs": 0.000187039375, + "mean_abs": 3.37154909e-05, + "psnr_db": 115.091035, + "ref_absmax": 12.1536217, + "rel_max": 1.53895999e-05, + "scaled_max_abs": 1.53895999e-05 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.1" + }, + { + "band_ratio": 0.157134992, + "index": 5, + "metrics": { + "corr": 0.999999999, + "finite": true, + "max_abs": 0.000196576118, + "mean_abs": 3.38439069e-05, + "psnr_db": 115.147119, + "ref_absmax": 12.5100155, + "rel_max": 1.57134992e-05, + "scaled_max_abs": 1.57134992e-05 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.2" + }, + { + "band_ratio": 0.738662867, + "index": 6, + "metrics": { + "corr": 0.999999999, + "finite": true, + "max_abs": 0.000310122967, + "mean_abs": 3.51571939e-05, + "psnr_db": 104.72677, + "ref_absmax": 4.19843721, + "rel_max": 7.38662867e-05, + "scaled_max_abs": 7.38662867e-05 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "status": "pass", + "tap": "net.norm" + }, + { + "band_ratio": 0.406840217, + "index": 7, + "metrics": { + "corr": 0.999999999, + "finite": true, + "max_abs": 9.03904438e-05, + "mean_abs": 2.2403366e-05, + "psnr_db": 103.533856, + "ref_absmax": 2.22176766, + "rel_max": 4.06840217e-05, + "scaled_max_abs": 4.06840217e-05 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/ReduceMean_output_0" + }, + "status": "pass", + "tap": "net.pool" + }, + { + "band_ratio": 0.369723723, + "index": 8, + "metrics": { + "corr": 0.999999998, + "finite": true, + "max_abs": 4.97102737e-05, + "mean_abs": 1.52605615e-05, + "psnr_db": 102.079632, + "ref_absmax": 1.34452486, + "rel_max": 3.69723723e-05, + "scaled_max_abs": 3.69723723e-05 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "pass", + "tap": "net.head" + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp32", + "id": "tinyvit__gelu_tanh__onnx_fp32", + "model": "tinyvit", + "path": "onnx", + "variant": "gelu_tanh" + }, + "verdict": "PASS" +} diff --git a/bench/verdicts_e2e_gated/tinyvit__input_hw_swap__coreml_fp16.json b/bench/verdicts_e2e_gated/tinyvit__input_hw_swap__coreml_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..bb6ddcf9f29508414bba5d39a4ab210e16625786 --- /dev/null +++ b/bench/verdicts_e2e_gated/tinyvit__input_hw_swap__coreml_fp16.json @@ -0,0 +1,697 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "normalize", + "explained_by": "hw_transpose", + "nominal_band_ratio": 169.15457, + "results": [ + { + "band_ratio": 169.15457, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 119.778016, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 210.748392, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 0.130516105, + "explains": true, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 311.914062, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [ + "inputs[0]: dtype float16 (declared float32)", + "outputs[0]: dtype float16 (declared float32)" + ], + "status": "precision_narrowing" + }, + "status": "flag" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "_inversed_input_1_cast_fp16", + "basis": "interface hypothesis 'hw_transpose' explains the first over-band tap (normalize)", + "index": 0, + "neighbourhood": [ + { + "band_ratio": 111.131751, + "index": 0, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "status": "fail", + "tap": "normalize" + }, + { + "band_ratio": 62.7834672, + "index": 1, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_7_cast_fp16" + }, + "status": "fail", + "tap": "net.patch_embed" + } + ], + "observed_first_over_band": { + "index": 0, + "tap": "normalize" + }, + "shape": 224, + "tap": "normalize" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "8a65ebc33867f113886e4445dfe99bea3e63f7eaffa23032b401c8563964bf0a", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "8bdee5bb6b5c3d5fa24c62cc05c745299ec1f93c7e6465dd4c03f9298ce6d8de", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D3", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.9375, + "band_ratio": 19.4693329, + "metrics": { + "corr": 0.989452851, + "finite": true, + "max_abs": 0.246495083, + "mean_abs": 0.0317684879, + "psnr_db": 33.7598172, + "ref_absmax": 1.26606846, + "rel_max": 0.194693329, + "scaled_max_abs": 0.194693329 + }, + "status": "fail", + "worst_probe": { + "category": "uniform", + "index": 16 + } + }, + "first_fail_index": 0, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 116.179894, + "index": 0, + "metrics": { + "corr": 0.675688296, + "finite": true, + "max_abs": 13.3942518, + "mean_abs": 0.90015469, + "psnr_db": 19.0467187, + "ref_absmax": 11.5288897, + "rel_max": 1.16179894, + "scaled_max_abs": 1.16179894 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "status": "fail", + "tap": "normalize", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 98.8288988, + "index": 1, + "metrics": { + "corr": 0.672992457, + "finite": true, + "max_abs": 10.6695957, + "mean_abs": 0.510340572, + "psnr_db": 28.0164059, + "ref_absmax": 10.7960281, + "rel_max": 0.988288988, + "scaled_max_abs": 0.988288988 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_7_cast_fp16" + }, + "status": "fail", + "tap": "net.patch_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 99.0279159, + "index": 2, + "metrics": { + "corr": 0.707037183, + "finite": true, + "max_abs": 10.6696739, + "mean_abs": 0.510341034, + "psnr_db": 27.9355732, + "ref_absmax": 10.7744102, + "rel_max": 0.990279159, + "scaled_max_abs": 0.990279159 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5_cast_fp16" + }, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 101.997398, + "index": 3, + "metrics": { + "corr": 0.718106718, + "finite": true, + "max_abs": 10.9336262, + "mean_abs": 0.524690253, + "psnr_db": 27.8566559, + "ref_absmax": 10.7195148, + "rel_max": 1.01997398, + "scaled_max_abs": 1.01997398 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_17_cast_fp16" + }, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 100.096888, + "index": 4, + "metrics": { + "corr": 0.732614185, + "finite": true, + "max_abs": 11.0142698, + "mean_abs": 0.541428733, + "psnr_db": 27.8419383, + "ref_absmax": 11.0036087, + "rel_max": 1.00096888, + "scaled_max_abs": 1.00096888 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_29_cast_fp16" + }, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 97.7103503, + "index": 5, + "metrics": { + "corr": 0.740427342, + "finite": true, + "max_abs": 11.0882959, + "mean_abs": 0.556573878, + "psnr_db": 27.9436483, + "ref_absmax": 11.3481283, + "rel_max": 0.977103503, + "scaled_max_abs": 0.977103503 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_41_cast_fp16" + }, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 138.780599, + "index": 6, + "metrics": { + "corr": 0.640551405, + "finite": true, + "max_abs": 5.70537639, + "mean_abs": 0.56603838, + "psnr_db": 19.325983, + "ref_absmax": 4.11107635, + "rel_max": 1.38780599, + "scaled_max_abs": 1.38780599 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "uniform", + "index": 19 + } + }, + { + "band_ratio": 17.9223896, + "index": 7, + "metrics": { + "corr": 0.991647388, + "finite": true, + "max_abs": 0.397119105, + "mean_abs": 0.0499915045, + "psnr_db": 35.1265575, + "ref_absmax": 2.21577096, + "rel_max": 0.179223896, + "scaled_max_abs": 0.179223896 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_cast_fp16" + }, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "uniform", + "index": 18 + } + }, + { + "band_ratio": 19.4693329, + "index": 8, + "metrics": { + "corr": 0.989452851, + "finite": true, + "max_abs": 0.246495083, + "mean_abs": 0.0317684879, + "psnr_db": 33.7598172, + "ref_absmax": 1.26606846, + "rel_max": 0.194693329, + "scaled_max_abs": 0.194693329 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "uniform", + "index": 16 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 8.76996752, + "metrics": { + "corr": 0.994714653, + "finite": true, + "max_abs": 0.117914394, + "mean_abs": 0.0239708808, + "psnr_db": 36.8429372, + "ref_absmax": 1.34452486, + "rel_max": 0.0876996752, + "scaled_max_abs": 0.0876996752 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 3 + } + }, + "first_fail_index": 0, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 111.131751, + "index": 0, + "metrics": { + "corr": 0.709013383, + "finite": true, + "max_abs": 12.8122569, + "mean_abs": 0.853087416, + "psnr_db": 19.622833, + "ref_absmax": 11.5288897, + "rel_max": 1.11131751, + "scaled_max_abs": 1.11131751 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "status": "fail", + "tap": "normalize", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 62.7834672, + "index": 1, + "metrics": { + "corr": 0.707274163, + "finite": true, + "max_abs": 7.45308065, + "mean_abs": 0.479360939, + "psnr_db": 29.0419309, + "ref_absmax": 11.871088, + "rel_max": 0.627834672, + "scaled_max_abs": 0.627834672 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_7_cast_fp16" + }, + "status": "fail", + "tap": "net.patch_embed", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 64.4126035, + "index": 2, + "metrics": { + "corr": 0.734583838, + "finite": true, + "max_abs": 7.45567703, + "mean_abs": 0.479363284, + "psnr_db": 28.9830922, + "ref_absmax": 11.574873, + "rel_max": 0.644126035, + "scaled_max_abs": 0.644126035 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5_cast_fp16" + }, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 62.8726835, + "index": 3, + "metrics": { + "corr": 0.746932452, + "finite": true, + "max_abs": 7.47844756, + "mean_abs": 0.492955548, + "psnr_db": 29.1327068, + "ref_absmax": 11.8945894, + "rel_max": 0.628726835, + "scaled_max_abs": 0.628726835 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_17_cast_fp16" + }, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 61.1751202, + "index": 4, + "metrics": { + "corr": 0.761269923, + "finite": true, + "max_abs": 7.43499267, + "mean_abs": 0.5080798, + "psnr_db": 29.1040352, + "ref_absmax": 12.1536217, + "rel_max": 0.611751202, + "scaled_max_abs": 0.611751202 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_29_cast_fp16" + }, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 59.5476069, + "index": 5, + "metrics": { + "corr": 0.768257561, + "finite": true, + "max_abs": 7.44941485, + "mean_abs": 0.522497256, + "psnr_db": 29.0357354, + "ref_absmax": 12.5100155, + "rel_max": 0.595476069, + "scaled_max_abs": 0.595476069 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_41_cast_fp16" + }, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 124.694827, + "index": 6, + "metrics": { + "corr": 0.660384381, + "finite": true, + "max_abs": 5.23523402, + "mean_abs": 0.537956039, + "psnr_db": 19.7608719, + "ref_absmax": 4.19843721, + "rel_max": 1.24694827, + "scaled_max_abs": 1.24694827 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "uniform", + "index": 19 + } + }, + { + "band_ratio": 13.8956967, + "index": 7, + "metrics": { + "corr": 0.994929567, + "finite": true, + "max_abs": 0.308730096, + "mean_abs": 0.0395513859, + "psnr_db": 36.8661394, + "ref_absmax": 2.22176766, + "rel_max": 0.138956967, + "scaled_max_abs": 0.138956967 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_cast_fp16" + }, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "uniform", + "index": 19 + } + }, + { + "band_ratio": 8.76996752, + "index": 8, + "metrics": { + "corr": 0.994714653, + "finite": true, + "max_abs": 0.117914394, + "mean_abs": 0.0239708808, + "psnr_db": 36.8429372, + "ref_absmax": 1.34452486, + "rel_max": 0.0876996752, + "scaled_max_abs": 0.0876996752 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "natural", + "index": 3 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp16", + "id": "tinyvit__input_hw_swap__coreml_fp16", + "model": "tinyvit", + "path": "coreml", + "variant": "input_hw_swap" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/tinyvit__input_hw_swap__coreml_fp32.json b/bench/verdicts_e2e_gated/tinyvit__input_hw_swap__coreml_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..7ec84d1ea78f825a04789be89029a10567bdba92 --- /dev/null +++ b/bench/verdicts_e2e_gated/tinyvit__input_hw_swap__coreml_fp32.json @@ -0,0 +1,694 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "normalize", + "explained_by": "hw_transpose", + "nominal_band_ratio": 16910.1721, + "results": [ + { + "band_ratio": 16910.1721, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 11978.5595, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 21078.7917, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 0.000903100643, + "explains": true, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 31179.0395, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "flag" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "_inversed_input_1", + "basis": "interface hypothesis 'hw_transpose' explains the first over-band tap (normalize)", + "index": 0, + "neighbourhood": [ + { + "band_ratio": 11112.3355, + "index": 0, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "fail", + "tap": "normalize" + }, + { + "band_ratio": 6257.79117, + "index": 1, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_7" + }, + "status": "fail", + "tap": "net.patch_embed" + } + ], + "observed_first_over_band": { + "index": 0, + "tap": "normalize" + }, + "shape": 224, + "tap": "normalize" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "a222fd6c22d124cea15f48624b65e7d95ed8f4cb6123925fd8f5820904d41bf3", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "6093a6c29e7bbefcc18b8316ef617cda6f735519b92d3587ed7fe7c704b4b47a", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D3", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.9375, + "band_ratio": 1946.64411, + "metrics": { + "corr": 0.989459679, + "finite": true, + "max_abs": 0.246458471, + "mean_abs": 0.0314199597, + "psnr_db": 33.7636994, + "ref_absmax": 1.26606846, + "rel_max": 0.194664411, + "scaled_max_abs": 0.194664411 + }, + "status": "fail", + "worst_probe": { + "category": "uniform", + "index": 16 + } + }, + "first_fail_index": 0, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 11616.7792, + "index": 0, + "metrics": { + "corr": 0.675680702, + "finite": true, + "max_abs": 13.3928566, + "mean_abs": 0.899941872, + "psnr_db": 19.0470658, + "ref_absmax": 11.5288897, + "rel_max": 1.16167792, + "scaled_max_abs": 1.16167792 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "fail", + "tap": "normalize", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9883.92467, + "index": 1, + "metrics": { + "corr": 0.673041683, + "finite": true, + "max_abs": 10.6707129, + "mean_abs": 0.509603057, + "psnr_db": 28.0168855, + "ref_absmax": 10.7960281, + "rel_max": 0.988392467, + "scaled_max_abs": 0.988392467 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_7" + }, + "status": "fail", + "tap": "net.patch_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9903.75559, + "index": 2, + "metrics": { + "corr": 0.707078193, + "finite": true, + "max_abs": 10.6707126, + "mean_abs": 0.509603057, + "psnr_db": 27.9360468, + "ref_absmax": 10.7744102, + "rel_max": 0.990375559, + "scaled_max_abs": 0.990375559 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5" + }, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 10199.7248, + "index": 3, + "metrics": { + "corr": 0.718142374, + "finite": true, + "max_abs": 10.9336102, + "mean_abs": 0.523911092, + "psnr_db": 27.8570841, + "ref_absmax": 10.7195148, + "rel_max": 1.01997248, + "scaled_max_abs": 1.01997248 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_17" + }, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 10008.3686, + "index": 4, + "metrics": { + "corr": 0.732637282, + "finite": true, + "max_abs": 11.0128172, + "mean_abs": 0.540599134, + "psnr_db": 27.8423855, + "ref_absmax": 11.0036087, + "rel_max": 1.00083686, + "scaled_max_abs": 1.00083686 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_29" + }, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9769.67448, + "index": 5, + "metrics": { + "corr": 0.740447992, + "finite": true, + "max_abs": 11.086752, + "mean_abs": 0.555695446, + "psnr_db": 27.9440114, + "ref_absmax": 11.3481283, + "rel_max": 0.976967448, + "scaled_max_abs": 0.976967448 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_41" + }, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 13900.3059, + "index": 6, + "metrics": { + "corr": 0.640557155, + "finite": true, + "max_abs": 5.71452188, + "mean_abs": 0.56541863, + "psnr_db": 19.3260515, + "ref_absmax": 4.11107635, + "rel_max": 1.39003059, + "scaled_max_abs": 1.39003059 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x" + }, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "uniform", + "index": 19 + } + }, + { + "band_ratio": 1793.14604, + "index": 7, + "metrics": { + "corr": 0.991644362, + "finite": true, + "max_abs": 0.397320092, + "mean_abs": 0.0495478909, + "psnr_db": 35.1250313, + "ref_absmax": 2.21577096, + "rel_max": 0.179314604, + "scaled_max_abs": 0.179314604 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_1" + }, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "uniform", + "index": 18 + } + }, + { + "band_ratio": 1946.64411, + "index": 8, + "metrics": { + "corr": 0.989459679, + "finite": true, + "max_abs": 0.246458471, + "mean_abs": 0.0314199597, + "psnr_db": 33.7636994, + "ref_absmax": 1.26606846, + "rel_max": 0.194664411, + "scaled_max_abs": 0.194664411 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "uniform", + "index": 16 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 878.835451, + "metrics": { + "corr": 0.994711612, + "finite": true, + "max_abs": 0.118161611, + "mean_abs": 0.0236497449, + "psnr_db": 36.8405427, + "ref_absmax": 1.34452486, + "rel_max": 0.0878835451, + "scaled_max_abs": 0.0878835451 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 3 + } + }, + "first_fail_index": 0, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 11112.3355, + "index": 0, + "metrics": { + "corr": 0.709006651, + "finite": true, + "max_abs": 12.811289, + "mean_abs": 0.852875392, + "psnr_db": 19.6231673, + "ref_absmax": 11.5288897, + "rel_max": 1.11123355, + "scaled_max_abs": 1.11123355 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "fail", + "tap": "normalize", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6257.79117, + "index": 1, + "metrics": { + "corr": 0.707336981, + "finite": true, + "max_abs": 7.42867899, + "mean_abs": 0.47856885, + "psnr_db": 29.0423884, + "ref_absmax": 11.871088, + "rel_max": 0.625779117, + "scaled_max_abs": 0.625779117 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_7" + }, + "status": "fail", + "tap": "net.patch_embed", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6417.93606, + "index": 2, + "metrics": { + "corr": 0.734638013, + "finite": true, + "max_abs": 7.42867947, + "mean_abs": 0.47856885, + "psnr_db": 28.9835615, + "ref_absmax": 11.574873, + "rel_max": 0.641793606, + "scaled_max_abs": 0.641793606 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5" + }, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6265.34871, + "index": 3, + "metrics": { + "corr": 0.746979005, + "finite": true, + "max_abs": 7.45237505, + "mean_abs": 0.492151009, + "psnr_db": 29.1330617, + "ref_absmax": 11.8945894, + "rel_max": 0.626534871, + "scaled_max_abs": 0.626534871 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_17" + }, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6113.32809, + "index": 4, + "metrics": { + "corr": 0.761300028, + "finite": true, + "max_abs": 7.42990768, + "mean_abs": 0.507232295, + "psnr_db": 29.1044026, + "ref_absmax": 12.1536217, + "rel_max": 0.611332809, + "scaled_max_abs": 0.611332809 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_29" + }, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 5952.65019, + "index": 5, + "metrics": { + "corr": 0.768291065, + "finite": true, + "max_abs": 7.4467746, + "mean_abs": 0.521629116, + "psnr_db": 29.0360608, + "ref_absmax": 12.5100155, + "rel_max": 0.595265019, + "scaled_max_abs": 0.595265019 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_41" + }, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 12494.4573, + "index": 6, + "metrics": { + "corr": 0.660402198, + "finite": true, + "max_abs": 5.24571943, + "mean_abs": 0.537344743, + "psnr_db": 19.761096, + "ref_absmax": 4.19843721, + "rel_max": 1.24944573, + "scaled_max_abs": 1.24944573 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x" + }, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "uniform", + "index": 19 + } + }, + { + "band_ratio": 1390.60813, + "index": 7, + "metrics": { + "corr": 0.994931898, + "finite": true, + "max_abs": 0.308960818, + "mean_abs": 0.0391505949, + "psnr_db": 36.8680017, + "ref_absmax": 2.22176766, + "rel_max": 0.139060813, + "scaled_max_abs": 0.139060813 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_1" + }, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "uniform", + "index": 19 + } + }, + { + "band_ratio": 878.835451, + "index": 8, + "metrics": { + "corr": 0.994711612, + "finite": true, + "max_abs": 0.118161611, + "mean_abs": 0.0236497449, + "psnr_db": 36.8405427, + "ref_absmax": 1.34452486, + "rel_max": 0.0878835451, + "scaled_max_abs": 0.0878835451 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "natural", + "index": 3 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp32", + "id": "tinyvit__input_hw_swap__coreml_fp32", + "model": "tinyvit", + "path": "coreml", + "variant": "input_hw_swap" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/tinyvit__input_hw_swap__litert_fp16.json b/bench/verdicts_e2e_gated/tinyvit__input_hw_swap__litert_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..a1f658a403f8b50b71baf8f23bfd0a304e16b4ad --- /dev/null +++ b/bench/verdicts_e2e_gated/tinyvit__input_hw_swap__litert_fp16.json @@ -0,0 +1,728 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "normalize", + "explained_by": "hw_transpose", + "nominal_band_ratio": 169.101721, + "results": [ + { + "band_ratio": 169.101721, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 119.785595, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 210.787917, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 9.03100643e-06, + "explains": true, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 311.790395, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "flag" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 1.65698179e-05, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.23517418e-07, + "mean_abs": 4.31318767e-08, + "psnr_db": 152.531236, + "ref_absmax": 1.34894311, + "rel_max": 1.65698179e-07, + "scaled_max_abs": 1.65698179e-07 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 57, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 1, + "n_ops_total": 187, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "zoo.Source/zoo.Normalize_normalize;5", + "basis": "interface hypothesis 'hw_transpose' explains the first over-band tap (normalize)", + "index": 0, + "neighbourhood": [ + { + "band_ratio": 111.123355, + "index": 0, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;5" + }, + "status": "fail", + "tap": "normalize" + }, + { + "band_ratio": 62.5708502, + "index": 1, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;2" + }, + "status": "fail", + "tap": "net.patch_embed" + } + ], + "observed_first_over_band": { + "index": 0, + "tap": "normalize" + }, + "shape": 224, + "tap": "normalize" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "d9c6fa4b0aab9e29052341026dfacc882e51edf14c668fbc052420422201f471", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "31e5af4f06885f01fbff39ffec66fde44017b99a7e1c8520e10b59b86180a3d5", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D3", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.9375, + "band_ratio": 19.4631127, + "metrics": { + "corr": 0.989456983, + "finite": true, + "max_abs": 0.24641633, + "mean_abs": 0.0314363235, + "psnr_db": 33.7624437, + "ref_absmax": 1.26606846, + "rel_max": 0.194631127, + "scaled_max_abs": 0.194631127 + }, + "status": "fail", + "worst_probe": { + "category": "uniform", + "index": 16 + } + }, + "first_fail_index": 0, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 116.167792, + "index": 0, + "metrics": { + "corr": 0.675680702, + "finite": true, + "max_abs": 13.3928566, + "mean_abs": 0.899941872, + "psnr_db": 19.0470658, + "ref_absmax": 11.5288897, + "rel_max": 1.16167792, + "scaled_max_abs": 1.16167792 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;5" + }, + "status": "fail", + "tap": "normalize", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 98.8403966, + "index": 1, + "metrics": { + "corr": 0.673041427, + "finite": true, + "max_abs": 10.670837, + "mean_abs": 0.509631363, + "psnr_db": 28.0168904, + "ref_absmax": 10.7960281, + "rel_max": 0.988403966, + "scaled_max_abs": 0.988403966 + }, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;2" + }, + "status": "fail", + "tap": "net.patch_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 99.0387081, + "index": 2, + "metrics": { + "corr": 0.707078036, + "finite": true, + "max_abs": 10.6708367, + "mean_abs": 0.509631363, + "psnr_db": 27.9360517, + "ref_absmax": 10.7744102, + "rel_max": 0.990387081, + "scaled_max_abs": 0.990387081 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;3" + }, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 101.998897, + "index": 3, + "metrics": { + "corr": 0.718141871, + "finite": true, + "max_abs": 10.9337869, + "mean_abs": 0.523940769, + "psnr_db": 27.8570899, + "ref_absmax": 10.7195148, + "rel_max": 1.01998897, + "scaled_max_abs": 1.01998897 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 100.085968, + "index": 4, + "metrics": { + "corr": 0.73263714, + "finite": true, + "max_abs": 11.0130683, + "mean_abs": 0.540630471, + "psnr_db": 27.8423957, + "ref_absmax": 11.0036087, + "rel_max": 1.00085968, + "scaled_max_abs": 1.00085968 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 97.7004704, + "index": 5, + "metrics": { + "corr": 0.740447704, + "finite": true, + "max_abs": 11.0871747, + "mean_abs": 0.555727691, + "psnr_db": 27.9440194, + "ref_absmax": 11.3481283, + "rel_max": 0.977004704, + "scaled_max_abs": 0.977004704 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 139.002322, + "index": 6, + "metrics": { + "corr": 0.640558142, + "finite": true, + "max_abs": 5.71449161, + "mean_abs": 0.565443024, + "psnr_db": 19.3260634, + "ref_absmax": 4.11107635, + "rel_max": 1.39002322, + "scaled_max_abs": 1.39002322 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "uniform", + "index": 19 + } + }, + { + "band_ratio": 17.9318182, + "index": 7, + "metrics": { + "corr": 0.991643452, + "finite": true, + "max_abs": 0.397328019, + "mean_abs": 0.0495692742, + "psnr_db": 35.1245546, + "ref_absmax": 2.21577096, + "rel_max": 0.179318182, + "scaled_max_abs": 0.179318182 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "uniform", + "index": 18 + } + }, + { + "band_ratio": 19.4631127, + "index": 8, + "metrics": { + "corr": 0.989456983, + "finite": true, + "max_abs": 0.24641633, + "mean_abs": 0.0314363235, + "psnr_db": 33.7624437, + "ref_absmax": 1.26606846, + "rel_max": 0.194631127, + "scaled_max_abs": 0.194631127 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "uniform", + "index": 16 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 8.79266186, + "metrics": { + "corr": 0.994712435, + "finite": true, + "max_abs": 0.118219525, + "mean_abs": 0.0236546583, + "psnr_db": 36.8409964, + "ref_absmax": 1.34452486, + "rel_max": 0.0879266186, + "scaled_max_abs": 0.0879266186 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 3 + } + }, + "first_fail_index": 0, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 111.123355, + "index": 0, + "metrics": { + "corr": 0.709006651, + "finite": true, + "max_abs": 12.811289, + "mean_abs": 0.852875392, + "psnr_db": 19.6231673, + "ref_absmax": 11.5288897, + "rel_max": 1.11123355, + "scaled_max_abs": 1.11123355 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;5" + }, + "status": "fail", + "tap": "normalize", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 62.5708502, + "index": 1, + "metrics": { + "corr": 0.707336285, + "finite": true, + "max_abs": 7.42784071, + "mean_abs": 0.47860028, + "psnr_db": 29.0423811, + "ref_absmax": 11.871088, + "rel_max": 0.625708502, + "scaled_max_abs": 0.625708502 + }, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;2" + }, + "status": "fail", + "tap": "net.patch_embed", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 64.1721184, + "index": 2, + "metrics": { + "corr": 0.734637401, + "finite": true, + "max_abs": 7.42784119, + "mean_abs": 0.47860028, + "psnr_db": 28.9835543, + "ref_absmax": 11.574873, + "rel_max": 0.641721184, + "scaled_max_abs": 0.641721184 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;3" + }, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 62.6451728, + "index": 3, + "metrics": { + "corr": 0.746978307, + "finite": true, + "max_abs": 7.45138609, + "mean_abs": 0.492180445, + "psnr_db": 29.133057, + "ref_absmax": 11.8945894, + "rel_max": 0.626451728, + "scaled_max_abs": 0.626451728 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 61.1306522, + "index": 4, + "metrics": { + "corr": 0.761299386, + "finite": true, + "max_abs": 7.4295882, + "mean_abs": 0.507263246, + "psnr_db": 29.1043972, + "ref_absmax": 12.1536217, + "rel_max": 0.611306522, + "scaled_max_abs": 0.611306522 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 59.5223052, + "index": 5, + "metrics": { + "corr": 0.768290483, + "finite": true, + "max_abs": 7.4462496, + "mean_abs": 0.521661402, + "psnr_db": 29.0360564, + "ref_absmax": 12.5100155, + "rel_max": 0.595223052, + "scaled_max_abs": 0.595223052 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 124.9366, + "index": 6, + "metrics": { + "corr": 0.660403186, + "finite": true, + "max_abs": 5.24538469, + "mean_abs": 0.537368281, + "psnr_db": 19.7611086, + "ref_absmax": 4.19843721, + "rel_max": 1.249366, + "scaled_max_abs": 1.249366 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "uniform", + "index": 19 + } + }, + { + "band_ratio": 13.9045323, + "index": 7, + "metrics": { + "corr": 0.994932185, + "finite": true, + "max_abs": 0.308926402, + "mean_abs": 0.0391640611, + "psnr_db": 36.8682301, + "ref_absmax": 2.22176766, + "rel_max": 0.139045323, + "scaled_max_abs": 0.139045323 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "uniform", + "index": 19 + } + }, + { + "band_ratio": 8.79266186, + "index": 8, + "metrics": { + "corr": 0.994712435, + "finite": true, + "max_abs": 0.118219525, + "mean_abs": 0.0236546583, + "psnr_db": 36.8409964, + "ref_absmax": 1.34452486, + "rel_max": 0.0879266186, + "scaled_max_abs": 0.0879266186 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "natural", + "index": 3 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp16", + "id": "tinyvit__input_hw_swap__litert_fp16", + "model": "tinyvit", + "path": "litert", + "variant": "input_hw_swap" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/tinyvit__input_hw_swap__litert_fp32.json b/bench/verdicts_e2e_gated/tinyvit__input_hw_swap__litert_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..40124aa6ce46a93aee1f88a707b367eba17b5b5f --- /dev/null +++ b/bench/verdicts_e2e_gated/tinyvit__input_hw_swap__litert_fp32.json @@ -0,0 +1,728 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "normalize", + "explained_by": "hw_transpose", + "nominal_band_ratio": 16910.1721, + "results": [ + { + "band_ratio": 16910.1721, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 11978.5595, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 21078.7917, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 0.000903100643, + "explains": true, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 31179.0395, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "flag" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 0.00176751566, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.38418579e-07, + "mean_abs": 4.19036951e-08, + "psnr_db": 152.976028, + "ref_absmax": 1.3488909, + "rel_max": 1.76751566e-07, + "scaled_max_abs": 1.76751566e-07 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 57, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 1, + "n_ops_total": 173, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "zoo.Source/zoo.Normalize_normalize;5", + "basis": "interface hypothesis 'hw_transpose' explains the first over-band tap (normalize)", + "index": 0, + "neighbourhood": [ + { + "band_ratio": 11112.3355, + "index": 0, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;5" + }, + "status": "fail", + "tap": "normalize" + }, + { + "band_ratio": 6257.79519, + "index": 1, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;2" + }, + "status": "fail", + "tap": "net.patch_embed" + } + ], + "observed_first_over_band": { + "index": 0, + "tap": "normalize" + }, + "shape": 224, + "tap": "normalize" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "338ba9bba8c3f4fdf18b78efaab12c173d55b3b785ad28af0e5a427d40c8217b", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "0727b9ca817f94df3f3ad5a37d2233a33aa70b2500d4b9002b4075daf81dc3e7", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D3", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.9375, + "band_ratio": 1946.64364, + "metrics": { + "corr": 0.989459682, + "finite": true, + "max_abs": 0.246458411, + "mean_abs": 0.031419965, + "psnr_db": 33.7637007, + "ref_absmax": 1.26606846, + "rel_max": 0.194664364, + "scaled_max_abs": 0.194664364 + }, + "status": "fail", + "worst_probe": { + "category": "uniform", + "index": 16 + } + }, + "first_fail_index": 0, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 11616.7792, + "index": 0, + "metrics": { + "corr": 0.675680702, + "finite": true, + "max_abs": 13.3928566, + "mean_abs": 0.899941872, + "psnr_db": 19.0470658, + "ref_absmax": 11.5288897, + "rel_max": 1.16167792, + "scaled_max_abs": 1.16167792 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;5" + }, + "status": "fail", + "tap": "normalize", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9883.92476, + "index": 1, + "metrics": { + "corr": 0.673041681, + "finite": true, + "max_abs": 10.670713, + "mean_abs": 0.509603102, + "psnr_db": 28.0168855, + "ref_absmax": 10.7960281, + "rel_max": 0.988392476, + "scaled_max_abs": 0.988392476 + }, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;2" + }, + "status": "fail", + "tap": "net.patch_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9903.75568, + "index": 2, + "metrics": { + "corr": 0.707078192, + "finite": true, + "max_abs": 10.6707127, + "mean_abs": 0.509603102, + "psnr_db": 27.9360468, + "ref_absmax": 10.7744102, + "rel_max": 0.990375568, + "scaled_max_abs": 0.990375568 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;3" + }, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 10199.725, + "index": 3, + "metrics": { + "corr": 0.718142373, + "finite": true, + "max_abs": 10.9336104, + "mean_abs": 0.523911131, + "psnr_db": 27.8570841, + "ref_absmax": 10.7195148, + "rel_max": 1.0199725, + "scaled_max_abs": 1.0199725 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 10008.3687, + "index": 4, + "metrics": { + "corr": 0.73263728, + "finite": true, + "max_abs": 11.0128173, + "mean_abs": 0.54059917, + "psnr_db": 27.8423854, + "ref_absmax": 11.0036087, + "rel_max": 1.00083687, + "scaled_max_abs": 1.00083687 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9769.67462, + "index": 5, + "metrics": { + "corr": 0.740447991, + "finite": true, + "max_abs": 11.0867521, + "mean_abs": 0.55569548, + "psnr_db": 27.9440114, + "ref_absmax": 11.3481283, + "rel_max": 0.976967462, + "scaled_max_abs": 0.976967462 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 13900.3059, + "index": 6, + "metrics": { + "corr": 0.640557155, + "finite": true, + "max_abs": 5.71452188, + "mean_abs": 0.565418656, + "psnr_db": 19.3260515, + "ref_absmax": 4.11107635, + "rel_max": 1.39003059, + "scaled_max_abs": 1.39003059 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "uniform", + "index": 19 + } + }, + { + "band_ratio": 1793.14496, + "index": 7, + "metrics": { + "corr": 0.991644363, + "finite": true, + "max_abs": 0.397319853, + "mean_abs": 0.0495478962, + "psnr_db": 35.1250318, + "ref_absmax": 2.21577096, + "rel_max": 0.179314496, + "scaled_max_abs": 0.179314496 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "uniform", + "index": 18 + } + }, + { + "band_ratio": 1946.64364, + "index": 8, + "metrics": { + "corr": 0.989459682, + "finite": true, + "max_abs": 0.246458411, + "mean_abs": 0.031419965, + "psnr_db": 33.7637007, + "ref_absmax": 1.26606846, + "rel_max": 0.194664364, + "scaled_max_abs": 0.194664364 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "uniform", + "index": 16 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 878.836116, + "metrics": { + "corr": 0.994711613, + "finite": true, + "max_abs": 0.118161701, + "mean_abs": 0.0236497461, + "psnr_db": 36.8405431, + "ref_absmax": 1.34452486, + "rel_max": 0.0878836116, + "scaled_max_abs": 0.0878836116 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 3 + } + }, + "first_fail_index": 0, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 11112.3355, + "index": 0, + "metrics": { + "corr": 0.709006651, + "finite": true, + "max_abs": 12.811289, + "mean_abs": 0.852875392, + "psnr_db": 19.6231673, + "ref_absmax": 11.5288897, + "rel_max": 1.11123355, + "scaled_max_abs": 1.11123355 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;5" + }, + "status": "fail", + "tap": "normalize", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6257.79519, + "index": 1, + "metrics": { + "corr": 0.70733698, + "finite": true, + "max_abs": 7.42868376, + "mean_abs": 0.478568902, + "psnr_db": 29.0423883, + "ref_absmax": 11.871088, + "rel_max": 0.625779519, + "scaled_max_abs": 0.625779519 + }, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;2" + }, + "status": "fail", + "tap": "net.patch_embed", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6417.94018, + "index": 2, + "metrics": { + "corr": 0.734638012, + "finite": true, + "max_abs": 7.42868423, + "mean_abs": 0.478568902, + "psnr_db": 28.9835615, + "ref_absmax": 11.574873, + "rel_max": 0.641794018, + "scaled_max_abs": 0.641794018 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;3" + }, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6265.35272, + "index": 3, + "metrics": { + "corr": 0.746979004, + "finite": true, + "max_abs": 7.45237982, + "mean_abs": 0.492151048, + "psnr_db": 29.1330616, + "ref_absmax": 11.8945894, + "rel_max": 0.626535272, + "scaled_max_abs": 0.626535272 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6113.32535, + "index": 4, + "metrics": { + "corr": 0.761300027, + "finite": true, + "max_abs": 7.42990434, + "mean_abs": 0.507232329, + "psnr_db": 29.1044025, + "ref_absmax": 12.1536217, + "rel_max": 0.611332535, + "scaled_max_abs": 0.611332535 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 5952.64714, + "index": 5, + "metrics": { + "corr": 0.768291064, + "finite": true, + "max_abs": 7.44677079, + "mean_abs": 0.521629149, + "psnr_db": 29.0360607, + "ref_absmax": 12.5100155, + "rel_max": 0.595264714, + "scaled_max_abs": 0.595264714 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 12494.459, + "index": 6, + "metrics": { + "corr": 0.660402197, + "finite": true, + "max_abs": 5.24572015, + "mean_abs": 0.537344767, + "psnr_db": 19.761096, + "ref_absmax": 4.19843721, + "rel_max": 1.2494459, + "scaled_max_abs": 1.2494459 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "uniform", + "index": 19 + } + }, + { + "band_ratio": 1390.60826, + "index": 7, + "metrics": { + "corr": 0.994931897, + "finite": true, + "max_abs": 0.308960846, + "mean_abs": 0.0391505984, + "psnr_db": 36.8680011, + "ref_absmax": 2.22176766, + "rel_max": 0.139060826, + "scaled_max_abs": 0.139060826 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "uniform", + "index": 19 + } + }, + { + "band_ratio": 878.836116, + "index": 8, + "metrics": { + "corr": 0.994711613, + "finite": true, + "max_abs": 0.118161701, + "mean_abs": 0.0236497461, + "psnr_db": 36.8405431, + "ref_absmax": 1.34452486, + "rel_max": 0.0878836116, + "scaled_max_abs": 0.0878836116 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "natural", + "index": 3 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp32", + "id": "tinyvit__input_hw_swap__litert_fp32", + "model": "tinyvit", + "path": "litert", + "variant": "input_hw_swap" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/tinyvit__input_hw_swap__onnx_fp16.json b/bench/verdicts_e2e_gated/tinyvit__input_hw_swap__onnx_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..64502043a650ede4aee561c06c9ec11798049ed9 --- /dev/null +++ b/bench/verdicts_e2e_gated/tinyvit__input_hw_swap__onnx_fp16.json @@ -0,0 +1,694 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "normalize", + "explained_by": "hw_transpose", + "nominal_band_ratio": 169.080588, + "results": [ + { + "band_ratio": 169.080588, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 119.778016, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 210.748392, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 0.0933896374, + "explains": true, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 311.914062, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "flag" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "/normalize/Div_output_0", + "basis": "interface hypothesis 'hw_transpose' explains the first over-band tap (normalize)", + "index": 0, + "neighbourhood": [ + { + "band_ratio": 111.131751, + "index": 0, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "fail", + "tap": "normalize" + }, + { + "band_ratio": 62.5860337, + "index": 1, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "status": "fail", + "tap": "net.patch_embed" + } + ], + "observed_first_over_band": { + "index": 0, + "tap": "normalize" + }, + "shape": 224, + "tap": "normalize" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "752c6d18fe452e3d499f0a9ea0ecb6eb2ecacdc1138aea917e2e8fae6af8a3cb", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "625ee85611b0109e6bf0481cdb24a946c7502771de85eaf075735b15aeb0bfc4", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 4.54038382e-05, + "224": 3.77893448e-05 + }, + "primary_class": "D3", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.9375, + "band_ratio": 19.4695259, + "metrics": { + "corr": 0.989455209, + "finite": true, + "max_abs": 0.246497527, + "mean_abs": 0.0314421877, + "psnr_db": 33.7620475, + "ref_absmax": 1.26606846, + "rel_max": 0.194695259, + "scaled_max_abs": 0.194695259 + }, + "status": "fail", + "worst_probe": { + "category": "uniform", + "index": 16 + } + }, + "first_fail_index": 0, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 116.187157, + "index": 0, + "metrics": { + "corr": 0.675686237, + "finite": true, + "max_abs": 13.3950891, + "mean_abs": 0.900044108, + "psnr_db": 19.0469554, + "ref_absmax": 11.5288897, + "rel_max": 1.16187157, + "scaled_max_abs": 1.16187157 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "fail", + "tap": "normalize", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 98.8448699, + "index": 1, + "metrics": { + "corr": 0.673040583, + "finite": true, + "max_abs": 10.67132, + "mean_abs": 0.509654477, + "psnr_db": 28.016739, + "ref_absmax": 10.7960281, + "rel_max": 0.988448699, + "scaled_max_abs": 0.988448699 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "status": "fail", + "tap": "net.patch_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 99.0426445, + "index": 2, + "metrics": { + "corr": 0.707076116, + "finite": true, + "max_abs": 10.6712608, + "mean_abs": 0.509662346, + "psnr_db": 27.9359125, + "ref_absmax": 10.7744102, + "rel_max": 0.990426445, + "scaled_max_abs": 0.990426445 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 102.000814, + "index": 3, + "metrics": { + "corr": 0.718139999, + "finite": true, + "max_abs": 10.9339924, + "mean_abs": 0.523971644, + "psnr_db": 27.8569593, + "ref_absmax": 10.7195148, + "rel_max": 1.02000814, + "scaled_max_abs": 1.02000814 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 100.089122, + "index": 4, + "metrics": { + "corr": 0.73263449, + "finite": true, + "max_abs": 11.0134153, + "mean_abs": 0.540664388, + "psnr_db": 27.842251, + "ref_absmax": 11.0036087, + "rel_max": 1.00089122, + "scaled_max_abs": 1.00089122 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 97.7028205, + "index": 5, + "metrics": { + "corr": 0.740445492, + "finite": true, + "max_abs": 11.0874414, + "mean_abs": 0.555765541, + "psnr_db": 27.9438754, + "ref_absmax": 11.3481283, + "rel_max": 0.977028205, + "scaled_max_abs": 0.977028205 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 138.970634, + "index": 6, + "metrics": { + "corr": 0.640555365, + "finite": true, + "max_abs": 5.71318889, + "mean_abs": 0.565472239, + "psnr_db": 19.3260309, + "ref_absmax": 4.11107635, + "rel_max": 1.38970634, + "scaled_max_abs": 1.38970634 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "uniform", + "index": 19 + } + }, + { + "band_ratio": 17.9223896, + "index": 7, + "metrics": { + "corr": 0.991645662, + "finite": true, + "max_abs": 0.397119105, + "mean_abs": 0.0495836776, + "psnr_db": 35.1256463, + "ref_absmax": 2.21577096, + "rel_max": 0.179223896, + "scaled_max_abs": 0.179223896 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/ReduceMean_output_0" + }, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "uniform", + "index": 18 + } + }, + { + "band_ratio": 19.4692623, + "index": 8, + "metrics": { + "corr": 0.989455767, + "finite": true, + "max_abs": 0.246494189, + "mean_abs": 0.0314421588, + "psnr_db": 33.762273, + "ref_absmax": 1.26606846, + "rel_max": 0.194692623, + "scaled_max_abs": 0.194692623 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "uniform", + "index": 16 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 8.77254982, + "metrics": { + "corr": 0.994718235, + "finite": true, + "max_abs": 0.117949113, + "mean_abs": 0.0236518963, + "psnr_db": 36.8455495, + "ref_absmax": 1.34452486, + "rel_max": 0.0877254982, + "scaled_max_abs": 0.0877254982 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 3 + } + }, + "first_fail_index": 0, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 111.131751, + "index": 0, + "metrics": { + "corr": 0.709012436, + "finite": true, + "max_abs": 12.8122569, + "mean_abs": 0.852976692, + "psnr_db": 19.6230811, + "ref_absmax": 11.5288897, + "rel_max": 1.11131751, + "scaled_max_abs": 1.11131751 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "fail", + "tap": "normalize", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 62.5860337, + "index": 1, + "metrics": { + "corr": 0.707333617, + "finite": true, + "max_abs": 7.42964315, + "mean_abs": 0.478624175, + "psnr_db": 29.0422383, + "ref_absmax": 11.871088, + "rel_max": 0.625860337, + "scaled_max_abs": 0.625860337 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "status": "fail", + "tap": "net.patch_embed", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 64.2101175, + "index": 2, + "metrics": { + "corr": 0.734634691, + "finite": true, + "max_abs": 7.43223953, + "mean_abs": 0.478634595, + "psnr_db": 28.9834112, + "ref_absmax": 11.574873, + "rel_max": 0.642101175, + "scaled_max_abs": 0.642101175 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 62.6756401, + "index": 3, + "metrics": { + "corr": 0.746974125, + "finite": true, + "max_abs": 7.45501006, + "mean_abs": 0.492212457, + "psnr_db": 29.1329189, + "ref_absmax": 11.8945894, + "rel_max": 0.626756401, + "scaled_max_abs": 0.626756401 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 61.110839, + "index": 4, + "metrics": { + "corr": 0.76129488, + "finite": true, + "max_abs": 7.42718017, + "mean_abs": 0.50729758, + "psnr_db": 29.1042408, + "ref_absmax": 12.1536217, + "rel_max": 0.61110839, + "scaled_max_abs": 0.61110839 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 59.5163819, + "index": 5, + "metrics": { + "corr": 0.768286511, + "finite": true, + "max_abs": 7.4455086, + "mean_abs": 0.52169743, + "psnr_db": 29.0359099, + "ref_absmax": 12.5100155, + "rel_max": 0.595163819, + "scaled_max_abs": 0.595163819 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 124.927428, + "index": 6, + "metrics": { + "corr": 0.660392227, + "finite": true, + "max_abs": 5.24499965, + "mean_abs": 0.537403863, + "psnr_db": 19.7609689, + "ref_absmax": 4.19843721, + "rel_max": 1.24927428, + "scaled_max_abs": 1.24927428 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "uniform", + "index": 19 + } + }, + { + "band_ratio": 13.8998174, + "index": 7, + "metrics": { + "corr": 0.994933468, + "finite": true, + "max_abs": 0.308821648, + "mean_abs": 0.0391783898, + "psnr_db": 36.8695941, + "ref_absmax": 2.22176766, + "rel_max": 0.138998174, + "scaled_max_abs": 0.138998174 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/ReduceMean_output_0" + }, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "uniform", + "index": 19 + } + }, + { + "band_ratio": 8.77342093, + "index": 8, + "metrics": { + "corr": 0.994718062, + "finite": true, + "max_abs": 0.117960826, + "mean_abs": 0.0236512218, + "psnr_db": 36.8454306, + "ref_absmax": 1.34452486, + "rel_max": 0.0877342093, + "scaled_max_abs": 0.0877342093 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "natural", + "index": 3 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp16", + "id": "tinyvit__input_hw_swap__onnx_fp16", + "model": "tinyvit", + "path": "onnx", + "variant": "input_hw_swap" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/tinyvit__input_hw_swap__onnx_fp32.json b/bench/verdicts_e2e_gated/tinyvit__input_hw_swap__onnx_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..a2ad2ead7fe6623fbddd941881eddbed6ab520b5 --- /dev/null +++ b/bench/verdicts_e2e_gated/tinyvit__input_hw_swap__onnx_fp32.json @@ -0,0 +1,694 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "at": "normalize", + "explained_by": "hw_transpose", + "nominal_band_ratio": 16910.1721, + "results": [ + { + "band_ratio": 16910.1721, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 11978.5595, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 21078.7917, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 0.0, + "explains": true, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 31179.0395, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "flag" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "/normalize/Div_output_0", + "basis": "interface hypothesis 'hw_transpose' explains the first over-band tap (normalize)", + "index": 0, + "neighbourhood": [ + { + "band_ratio": 11112.3355, + "index": 0, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "fail", + "tap": "normalize" + }, + { + "band_ratio": 6257.79037, + "index": 1, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "status": "fail", + "tap": "net.patch_embed" + } + ], + "observed_first_over_band": { + "index": 0, + "tap": "normalize" + }, + "shape": 224, + "tap": "normalize" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "b88fbeb7e5ccfc3a68fd06cd180ad6d021e081405b0192529d08cc36d6d93803", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "121bfc3b5e2c121ef6a98f26e2a23cdf3d9208ae92a97146bd668b56bd33de95", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 1.1920929e-07, + "224": 1.2665987e-07 + }, + "primary_class": "D3", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.9375, + "band_ratio": 1946.64411, + "metrics": { + "corr": 0.989459683, + "finite": true, + "max_abs": 0.246458471, + "mean_abs": 0.0314199599, + "psnr_db": 33.7637012, + "ref_absmax": 1.26606846, + "rel_max": 0.194664411, + "scaled_max_abs": 0.194664411 + }, + "status": "fail", + "worst_probe": { + "category": "uniform", + "index": 16 + } + }, + "first_fail_index": 0, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 11616.7792, + "index": 0, + "metrics": { + "corr": 0.675680703, + "finite": true, + "max_abs": 13.3928566, + "mean_abs": 0.899941866, + "psnr_db": 19.0470658, + "ref_absmax": 11.5288897, + "rel_max": 1.16167792, + "scaled_max_abs": 1.16167792 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "fail", + "tap": "normalize", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9883.92463, + "index": 1, + "metrics": { + "corr": 0.673041684, + "finite": true, + "max_abs": 10.6707128, + "mean_abs": 0.509603093, + "psnr_db": 28.0168855, + "ref_absmax": 10.7960281, + "rel_max": 0.988392463, + "scaled_max_abs": 0.988392463 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "status": "fail", + "tap": "net.patch_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9903.75554, + "index": 2, + "metrics": { + "corr": 0.707078195, + "finite": true, + "max_abs": 10.6707125, + "mean_abs": 0.509603095, + "psnr_db": 27.9360467, + "ref_absmax": 10.7744102, + "rel_max": 0.990375554, + "scaled_max_abs": 0.990375554 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 10199.7246, + "index": 3, + "metrics": { + "corr": 0.718142376, + "finite": true, + "max_abs": 10.93361, + "mean_abs": 0.523911126, + "psnr_db": 27.8570841, + "ref_absmax": 10.7195148, + "rel_max": 1.01997246, + "scaled_max_abs": 1.01997246 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 10008.3684, + "index": 4, + "metrics": { + "corr": 0.732637283, + "finite": true, + "max_abs": 11.012817, + "mean_abs": 0.540599164, + "psnr_db": 27.8423854, + "ref_absmax": 11.0036087, + "rel_max": 1.00083684, + "scaled_max_abs": 1.00083684 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9769.67433, + "index": 5, + "metrics": { + "corr": 0.740447993, + "finite": true, + "max_abs": 11.0867518, + "mean_abs": 0.555695477, + "psnr_db": 27.9440114, + "ref_absmax": 11.3481283, + "rel_max": 0.976967433, + "scaled_max_abs": 0.976967433 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 13900.3041, + "index": 6, + "metrics": { + "corr": 0.640557156, + "finite": true, + "max_abs": 5.71452117, + "mean_abs": 0.565418653, + "psnr_db": 19.3260515, + "ref_absmax": 4.11107635, + "rel_max": 1.39003041, + "scaled_max_abs": 1.39003041 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "uniform", + "index": 19 + } + }, + { + "band_ratio": 1793.14631, + "index": 7, + "metrics": { + "corr": 0.991644362, + "finite": true, + "max_abs": 0.397320151, + "mean_abs": 0.0495478961, + "psnr_db": 35.1250315, + "ref_absmax": 2.21577096, + "rel_max": 0.179314631, + "scaled_max_abs": 0.179314631 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/ReduceMean_output_0" + }, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "uniform", + "index": 18 + } + }, + { + "band_ratio": 1946.64423, + "index": 8, + "metrics": { + "corr": 0.989459683, + "finite": true, + "max_abs": 0.246458486, + "mean_abs": 0.0314199613, + "psnr_db": 33.7637009, + "ref_absmax": 1.26606846, + "rel_max": 0.194664423, + "scaled_max_abs": 0.194664423 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "uniform", + "index": 16 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 878.835174, + "metrics": { + "corr": 0.994711613, + "finite": true, + "max_abs": 0.118161574, + "mean_abs": 0.023649742, + "psnr_db": 36.8405429, + "ref_absmax": 1.34452486, + "rel_max": 0.0878835174, + "scaled_max_abs": 0.0878835174 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 3 + } + }, + "first_fail_index": 0, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 11112.3355, + "index": 0, + "metrics": { + "corr": 0.709006652, + "finite": true, + "max_abs": 12.811289, + "mean_abs": 0.852875386, + "psnr_db": 19.6231673, + "ref_absmax": 11.5288897, + "rel_max": 1.11123355, + "scaled_max_abs": 1.11123355 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "fail", + "tap": "normalize", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6257.79037, + "index": 1, + "metrics": { + "corr": 0.707336986, + "finite": true, + "max_abs": 7.42867804, + "mean_abs": 0.478568887, + "psnr_db": 29.0423884, + "ref_absmax": 11.871088, + "rel_max": 0.625779037, + "scaled_max_abs": 0.625779037 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "status": "fail", + "tap": "net.patch_embed", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6417.93524, + "index": 2, + "metrics": { + "corr": 0.734638017, + "finite": true, + "max_abs": 7.42867851, + "mean_abs": 0.478568887, + "psnr_db": 28.9835616, + "ref_absmax": 11.574873, + "rel_max": 0.641793524, + "scaled_max_abs": 0.641793524 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6265.34791, + "index": 3, + "metrics": { + "corr": 0.746979009, + "finite": true, + "max_abs": 7.4523741, + "mean_abs": 0.492151036, + "psnr_db": 29.1330617, + "ref_absmax": 11.8945894, + "rel_max": 0.626534791, + "scaled_max_abs": 0.626534791 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 6113.32848, + "index": 4, + "metrics": { + "corr": 0.761300032, + "finite": true, + "max_abs": 7.42990816, + "mean_abs": 0.50723232, + "psnr_db": 29.1044026, + "ref_absmax": 12.1536217, + "rel_max": 0.611332848, + "scaled_max_abs": 0.611332848 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 5952.65057, + "index": 5, + "metrics": { + "corr": 0.768291068, + "finite": true, + "max_abs": 7.44677508, + "mean_abs": 0.521629141, + "psnr_db": 29.0360608, + "ref_absmax": 12.5100155, + "rel_max": 0.595265057, + "scaled_max_abs": 0.595265057 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 12494.4595, + "index": 6, + "metrics": { + "corr": 0.660402198, + "finite": true, + "max_abs": 5.24572039, + "mean_abs": 0.537344762, + "psnr_db": 19.761096, + "ref_absmax": 4.19843721, + "rel_max": 1.24944595, + "scaled_max_abs": 1.24944595 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "uniform", + "index": 19 + } + }, + { + "band_ratio": 1390.60825, + "index": 7, + "metrics": { + "corr": 0.994931898, + "finite": true, + "max_abs": 0.308960844, + "mean_abs": 0.039150596, + "psnr_db": 36.8680015, + "ref_absmax": 2.22176766, + "rel_max": 0.139060825, + "scaled_max_abs": 0.139060825 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/ReduceMean_output_0" + }, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "uniform", + "index": 19 + } + }, + { + "band_ratio": 878.835396, + "index": 8, + "metrics": { + "corr": 0.994711613, + "finite": true, + "max_abs": 0.118161604, + "mean_abs": 0.0236497428, + "psnr_db": 36.8405429, + "ref_absmax": 1.34452486, + "rel_max": 0.0878835396, + "scaled_max_abs": 0.0878835396 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "natural", + "index": 3 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp32", + "id": "tinyvit__input_hw_swap__onnx_fp32", + "model": "tinyvit", + "path": "onnx", + "variant": "input_hw_swap" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/tinyvit__int8_clean__onnx_int8.json b/bench/verdicts_e2e_gated/tinyvit__int8_clean__onnx_int8.json new file mode 100644 index 0000000000000000000000000000000000000000..e885f82d5d1e92f24fec123632de4ec0acd453ea --- /dev/null +++ b/bench/verdicts_e2e_gated/tinyvit__int8_clean__onnx_int8.json @@ -0,0 +1,808 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": false, + "note": null, + "status": "clear" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "status": "clear" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "status": "clear" + } + }, + "declared_precision": "int8", + "first_divergence": null, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "1ba73e638e8e94d7217b6a0f35ad0761414c95fdf53dcfba281c3da50295e5b4", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "6a91621bc4885f6da14c1d1a5de1a0765406f538ac82db7deebe125985d74969", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "int8 band on exciter probes", + "reason": "a statically quantised model is specified on its calibration distribution; exciter categories ['wide_range', 'near_zero', 'saturating'] are measured and reported per tap ('ungated_exciters') but do not gate" + }, + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": null, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.875, + "band_ratio": 0.305213402, + "metrics": { + "corr": 0.998667829, + "finite": true, + "max_abs": 0.108577788, + "mean_abs": 0.00711427655, + "psnr_db": 40.307928, + "ref_absmax": 0.857067645, + "rel_max": 0.126685202, + "scaled_max_abs": 0.108577788 + }, + "status": "pass", + "ungated_exciters": { + "band_ratio": 3.7969797, + "metrics": { + "corr": 0.962030203, + "finite": true, + "max_abs": 0.517578602, + "mean_abs": 0.0755833277, + "psnr_db": 24.7780906, + "ref_absmax": 1.26606846, + "rel_max": 0.408807753, + "scaled_max_abs": 0.408807753 + } + } + }, + "first_fail_index": null, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 0.0358443598, + "index": 0, + "metrics": { + "corr": 0.99998378, + "finite": true, + "max_abs": 0.0093292594, + "mean_abs": 0.00466938237, + "psnr_db": 58.9115834, + "ref_absmax": 2.6400001, + "rel_max": 0.00353381024, + "scaled_max_abs": 0.00353381024 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "normalize", + "ungated_exciters": { + "band_ratio": 7.29207513, + "metrics": { + "corr": 0.927079249, + "finite": true, + "max_abs": 8.8980484, + "mean_abs": 0.355833548, + "psnr_db": 21.0584139, + "ref_absmax": 11.5288897, + "rel_max": 0.771804455, + "scaled_max_abs": 0.771804455 + } + } + }, + { + "band_ratio": 0.041919469, + "index": 1, + "metrics": { + "corr": 0.99988951, + "finite": true, + "max_abs": 0.711663008, + "mean_abs": 0.00552147076, + "psnr_db": 57.5516845, + "ref_absmax": 3.05000877, + "rel_max": 0.233331462, + "scaled_max_abs": 0.233331462 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.patch_embed", + "ungated_exciters": { + "band_ratio": 9.07288468, + "metrics": { + "corr": 0.909271153, + "finite": true, + "max_abs": 8.36414838, + "mean_abs": 0.228564824, + "psnr_db": 29.669643, + "ref_absmax": 10.7960281, + "rel_max": 0.774743107, + "scaled_max_abs": 0.774743107 + } + } + }, + { + "band_ratio": 0.0538407464, + "index": 2, + "metrics": { + "corr": 0.999855006, + "finite": true, + "max_abs": 0.716923237, + "mean_abs": 0.0080709872, + "psnr_db": 55.3777786, + "ref_absmax": 3.35814142, + "rel_max": 0.213488102, + "scaled_max_abs": 0.213488102 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.pos_embed", + "ungated_exciters": { + "band_ratio": 8.7452958, + "metrics": { + "corr": 0.912547042, + "finite": true, + "max_abs": 8.36698496, + "mean_abs": 0.231367515, + "psnr_db": 29.570649, + "ref_absmax": 10.7744102, + "rel_max": 0.77656083, + "scaled_max_abs": 0.77656083 + } + } + }, + { + "band_ratio": 0.0788345602, + "index": 3, + "metrics": { + "corr": 0.999689495, + "finite": true, + "max_abs": 0.697504163, + "mean_abs": 0.0132406911, + "psnr_db": 52.065667, + "ref_absmax": 3.5892539, + "rel_max": 0.19433124, + "scaled_max_abs": 0.19433124 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.blocks.0", + "ungated_exciters": { + "band_ratio": 8.3044362, + "metrics": { + "corr": 0.916955638, + "finite": true, + "max_abs": 8.33901, + "mean_abs": 0.259529084, + "psnr_db": 29.5629199, + "ref_absmax": 10.7195148, + "rel_max": 0.77792793, + "scaled_max_abs": 0.77792793 + } + } + }, + { + "band_ratio": 0.101766078, + "index": 4, + "metrics": { + "corr": 0.999515706, + "finite": true, + "max_abs": 0.694274068, + "mean_abs": 0.0178510444, + "psnr_db": 49.8479392, + "ref_absmax": 3.74135327, + "rel_max": 0.185567632, + "scaled_max_abs": 0.185567632 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.blocks.1", + "ungated_exciters": { + "band_ratio": 7.75313697, + "metrics": { + "corr": 0.92246863, + "finite": true, + "max_abs": 8.3160913, + "mean_abs": 0.274403745, + "psnr_db": 29.6996594, + "ref_absmax": 11.0036087, + "rel_max": 0.755760362, + "scaled_max_abs": 0.755760362 + } + } + }, + { + "band_ratio": 0.114838393, + "index": 5, + "metrics": { + "corr": 0.999375236, + "finite": true, + "max_abs": 0.742621541, + "mean_abs": 0.0215615945, + "psnr_db": 48.7982578, + "ref_absmax": 3.9971683, + "rel_max": 0.185786908, + "scaled_max_abs": 0.185786908 + }, + "op": { + "candidates": 12, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.blocks.2", + "ungated_exciters": { + "band_ratio": 7.42614252, + "metrics": { + "corr": 0.925738575, + "finite": true, + "max_abs": 8.34559393, + "mean_abs": 0.283106264, + "psnr_db": 29.9496189, + "ref_absmax": 11.3481283, + "rel_max": 0.735415894, + "scaled_max_abs": 0.735415894 + } + } + }, + { + "band_ratio": 0.15048936, + "index": 6, + "metrics": { + "corr": 0.999311718, + "finite": true, + "max_abs": 0.760080814, + "mean_abs": 0.0287683229, + "psnr_db": 46.4498841, + "ref_absmax": 4.11107635, + "rel_max": 0.184886085, + "scaled_max_abs": 0.184886085 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.norm", + "ungated_exciters": { + "band_ratio": 1.58783596, + "metrics": { + "corr": 0.98412164, + "finite": true, + "max_abs": 1.60128012, + "mean_abs": 0.0987293776, + "psnr_db": 32.4641872, + "ref_absmax": 3.7492106, + "rel_max": 0.42709794, + "scaled_max_abs": 0.42709794 + } + } + }, + { + "band_ratio": 0.135869936, + "index": 7, + "metrics": { + "corr": 0.999506115, + "finite": true, + "max_abs": 0.224555135, + "mean_abs": 0.00743860407, + "psnr_db": 47.3375326, + "ref_absmax": 2.0205965, + "rel_max": 0.111133091, + "scaled_max_abs": 0.111133091 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/ReduceMean_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.pool", + "ungated_exciters": { + "band_ratio": 1.35795315, + "metrics": { + "corr": 0.986420468, + "finite": true, + "max_abs": 0.644234776, + "mean_abs": 0.0621545666, + "psnr_db": 31.6088724, + "ref_absmax": 2.21577096, + "rel_max": 0.290749716, + "scaled_max_abs": 0.290749716 + } + } + }, + { + "band_ratio": 0.305213402, + "index": 8, + "metrics": { + "corr": 0.998667829, + "finite": true, + "max_abs": 0.108577788, + "mean_abs": 0.00711427655, + "psnr_db": 40.307928, + "ref_absmax": 0.857067645, + "rel_max": 0.126685202, + "scaled_max_abs": 0.108577788 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "pass", + "tap": "net.head", + "ungated_exciters": { + "band_ratio": 3.7969797, + "metrics": { + "corr": 0.962030203, + "finite": true, + "max_abs": 0.517578602, + "mean_abs": 0.0755833277, + "psnr_db": 24.7780906, + "ref_absmax": 1.26606846, + "rel_max": 0.408807753, + "scaled_max_abs": 0.408807753 + } + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.40483437, + "metrics": { + "corr": 0.997856464, + "finite": true, + "max_abs": 0.18754828, + "mean_abs": 0.010871628, + "psnr_db": 37.8544525, + "ref_absmax": 0.915185452, + "rel_max": 0.204929263, + "scaled_max_abs": 0.18754828 + }, + "status": "pass", + "ungated_exciters": { + "band_ratio": 3.98943067, + "metrics": { + "corr": 0.960105693, + "finite": true, + "max_abs": 0.555726051, + "mean_abs": 0.0663308772, + "psnr_db": 24.75038, + "ref_absmax": 1.34452486, + "rel_max": 0.413325233, + "scaled_max_abs": 0.413325233 + } + } + }, + "first_fail_index": null, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 0.0358761909, + "index": 0, + "metrics": { + "corr": 0.999983129, + "finite": true, + "max_abs": 0.009329319, + "mean_abs": 0.00467525361, + "psnr_db": 58.9038735, + "ref_absmax": 2.6400001, + "rel_max": 0.00353383281, + "scaled_max_abs": 0.00353383281 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "normalize", + "ungated_exciters": { + "band_ratio": 6.40507214, + "metrics": { + "corr": 0.935949279, + "finite": true, + "max_abs": 8.8980484, + "mean_abs": 0.346772095, + "psnr_db": 21.6136782, + "ref_absmax": 11.5288897, + "rel_max": 0.771804455, + "scaled_max_abs": 0.771804455 + } + } + }, + { + "band_ratio": 0.0397488002, + "index": 1, + "metrics": { + "corr": 0.999892792, + "finite": true, + "max_abs": 0.937298059, + "mean_abs": 0.00557355653, + "psnr_db": 58.0135195, + "ref_absmax": 3.33092546, + "rel_max": 0.281392685, + "scaled_max_abs": 0.281392685 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.patch_embed", + "ungated_exciters": { + "band_ratio": 7.91755139, + "metrics": { + "corr": 0.920824486, + "finite": true, + "max_abs": 9.47746062, + "mean_abs": 0.214278313, + "psnr_db": 30.7632591, + "ref_absmax": 11.871088, + "rel_max": 0.798364952, + "scaled_max_abs": 0.798364952 + } + } + }, + { + "band_ratio": 0.0529795402, + "index": 2, + "metrics": { + "corr": 0.999847013, + "finite": true, + "max_abs": 0.933243275, + "mean_abs": 0.00846131329, + "psnr_db": 55.5178363, + "ref_absmax": 3.41502428, + "rel_max": 0.273275736, + "scaled_max_abs": 0.273275736 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.pos_embed", + "ungated_exciters": { + "band_ratio": 7.65974068, + "metrics": { + "corr": 0.923402593, + "finite": true, + "max_abs": 9.47997499, + "mean_abs": 0.216574684, + "psnr_db": 30.7020909, + "ref_absmax": 11.574873, + "rel_max": 0.819013307, + "scaled_max_abs": 0.819013307 + } + } + }, + { + "band_ratio": 0.0908989121, + "index": 3, + "metrics": { + "corr": 0.99961389, + "finite": true, + "max_abs": 0.925094128, + "mean_abs": 0.0148857319, + "psnr_db": 50.8288263, + "ref_absmax": 3.38168859, + "rel_max": 0.273559821, + "scaled_max_abs": 0.273559821 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.blocks.0", + "ungated_exciters": { + "band_ratio": 7.19825677, + "metrics": { + "corr": 0.928017432, + "finite": true, + "max_abs": 9.50604749, + "mean_abs": 0.241832129, + "psnr_db": 30.922168, + "ref_absmax": 11.8945894, + "rel_max": 0.799190888, + "scaled_max_abs": 0.799190888 + } + } + }, + { + "band_ratio": 0.124742761, + "index": 4, + "metrics": { + "corr": 0.999371185, + "finite": true, + "max_abs": 0.930356145, + "mean_abs": 0.0208643733, + "psnr_db": 48.0796929, + "ref_absmax": 3.4326365, + "rel_max": 0.271032527, + "scaled_max_abs": 0.271032527 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.blocks.1", + "ungated_exciters": { + "band_ratio": 6.70111873, + "metrics": { + "corr": 0.932988813, + "finite": true, + "max_abs": 9.48718929, + "mean_abs": 0.255272325, + "psnr_db": 31.01297, + "ref_absmax": 12.1536217, + "rel_max": 0.780605942, + "scaled_max_abs": 0.780605942 + } + } + }, + { + "band_ratio": 0.151843449, + "index": 5, + "metrics": { + "corr": 0.999052311, + "finite": true, + "max_abs": 0.884018064, + "mean_abs": 0.0269522187, + "psnr_db": 46.3720788, + "ref_absmax": 3.75654864, + "rel_max": 0.235327197, + "scaled_max_abs": 0.235327197 + }, + "op": { + "candidates": 12, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.blocks.2", + "ungated_exciters": { + "band_ratio": 6.40505958, + "metrics": { + "corr": 0.935949404, + "finite": true, + "max_abs": 9.59743047, + "mean_abs": 0.268058487, + "psnr_db": 31.0587751, + "ref_absmax": 12.5100155, + "rel_max": 0.767179743, + "scaled_max_abs": 0.767179743 + } + } + }, + { + "band_ratio": 0.176357581, + "index": 6, + "metrics": { + "corr": 0.999000332, + "finite": true, + "max_abs": 0.830788255, + "mean_abs": 0.034688737, + "psnr_db": 45.0721173, + "ref_absmax": 4.19843721, + "rel_max": 0.197880357, + "scaled_max_abs": 0.197880357 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.norm", + "ungated_exciters": { + "band_ratio": 1.19789975, + "metrics": { + "corr": 0.988021003, + "finite": true, + "max_abs": 1.4651134, + "mean_abs": 0.0861447296, + "psnr_db": 32.4596571, + "ref_absmax": 3.38565159, + "rel_max": 0.43274193, + "scaled_max_abs": 0.43274193 + } + } + }, + { + "band_ratio": 0.19362574, + "index": 7, + "metrics": { + "corr": 0.999279026, + "finite": true, + "max_abs": 0.127520084, + "mean_abs": 0.0156105205, + "psnr_db": 44.2607382, + "ref_absmax": 1.86660826, + "rel_max": 0.0683164684, + "scaled_max_abs": 0.0683164684 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/ReduceMean_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.pool", + "ungated_exciters": { + "band_ratio": 0.705443386, + "metrics": { + "corr": 0.992945566, + "finite": true, + "max_abs": 0.443654776, + "mean_abs": 0.0476511202, + "psnr_db": 34.3942944, + "ref_absmax": 2.22176766, + "rel_max": 0.199685495, + "scaled_max_abs": 0.199685495 + } + } + }, + { + "band_ratio": 0.40483437, + "index": 8, + "metrics": { + "corr": 0.997856464, + "finite": true, + "max_abs": 0.18754828, + "mean_abs": 0.010871628, + "psnr_db": 37.8544525, + "ref_absmax": 0.915185452, + "rel_max": 0.204929263, + "scaled_max_abs": 0.18754828 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "pass", + "tap": "net.head", + "ungated_exciters": { + "band_ratio": 3.98943067, + "metrics": { + "corr": 0.960105693, + "finite": true, + "max_abs": 0.555726051, + "mean_abs": 0.0663308772, + "psnr_db": 24.75038, + "ref_absmax": 1.34452486, + "rel_max": 0.413325233, + "scaled_max_abs": 0.413325233 + } + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "int8", + "id": "tinyvit__int8_clean__onnx_int8", + "model": "tinyvit", + "path": "onnx", + "variant": "int8_clean" + }, + "verdict": "PASS" +} diff --git a/bench/verdicts_e2e_gated/tinyvit__int8_override_blocks_0__onnx_int8.json b/bench/verdicts_e2e_gated/tinyvit__int8_override_blocks_0__onnx_int8.json new file mode 100644 index 0000000000000000000000000000000000000000..23f0d43022c8c887871bf0333bc4a38ee93251fb --- /dev/null +++ b/bench/verdicts_e2e_gated/tinyvit__int8_override_blocks_0__onnx_int8.json @@ -0,0 +1,912 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "reason": "first divergence at tap 3 is beyond the hypothesis taps (first 3) \u2014 interface faults surface earlier", + "status": "not_evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "status": "flag" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "int8", + "first_divergence": { + "artifact_tensor": "/net/blocks/blocks.0/Add_1_output_0_DequantizeLinear_Output", + "basis": "earliest tap over the int8 band", + "index": 3, + "neighbourhood": [ + { + "band_ratio": 0.0529795402, + "index": 2, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.pos_embed" + }, + { + "band_ratio": 13.8864334, + "index": 3, + "op": { + "candidates": 9, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.blocks.0" + }, + { + "band_ratio": 23.2067232, + "index": 4, + "op": { + "candidates": 9, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.blocks.1" + } + ], + "shape": 224, + "tap": "net.blocks.0" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "75b229874345e1d7dfe2d49c82338c37066f29ea807033fc6ab93a737c81ddd1", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "e37dc5b8a70606937d4bcf776ec3ca75b59206e0b32f1d9a396795bf3f2961d0", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "int8 band on exciter probes", + "reason": "a statically quantised model is specified on its calibration distribution; exciter categories ['wide_range', 'near_zero', 'saturating'] are measured and reported per tap ('ungated_exciters') but do not gate" + }, + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D4", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.8125, + "band_ratio": 17.2290563, + "metrics": { + "corr": 0.827709437, + "finite": true, + "max_abs": 0.554243505, + "mean_abs": 0.158262556, + "psnr_db": 18.0447335, + "ref_absmax": 0.857067645, + "rel_max": 0.646674167, + "scaled_max_abs": 0.554243505 + }, + "status": "fail", + "ungated_exciters": { + "band_ratio": 48.6842925, + "metrics": { + "corr": 0.513157075, + "finite": true, + "max_abs": 1.12737159, + "mean_abs": 0.311795407, + "psnr_db": 15.4292599, + "ref_absmax": 1.26606846, + "rel_max": 0.890450737, + "scaled_max_abs": 0.890450737 + } + }, + "worst_probe": { + "category": "natural", + "index": 2 + } + }, + "first_fail_index": 3, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 0.0358443598, + "index": 0, + "metrics": { + "corr": 0.99998378, + "finite": true, + "max_abs": 0.0093292594, + "mean_abs": 0.00466938237, + "psnr_db": 58.9115834, + "ref_absmax": 2.6400001, + "rel_max": 0.00353381024, + "scaled_max_abs": 0.00353381024 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "normalize", + "ungated_exciters": { + "band_ratio": 7.29207513, + "metrics": { + "corr": 0.927079249, + "finite": true, + "max_abs": 8.8980484, + "mean_abs": 0.355833548, + "psnr_db": 21.0584139, + "ref_absmax": 11.5288897, + "rel_max": 0.771804455, + "scaled_max_abs": 0.771804455 + } + } + }, + { + "band_ratio": 0.041919469, + "index": 1, + "metrics": { + "corr": 0.99988951, + "finite": true, + "max_abs": 0.711663008, + "mean_abs": 0.00552147076, + "psnr_db": 57.5516845, + "ref_absmax": 3.05000877, + "rel_max": 0.233331462, + "scaled_max_abs": 0.233331462 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.patch_embed", + "ungated_exciters": { + "band_ratio": 9.07288468, + "metrics": { + "corr": 0.909271153, + "finite": true, + "max_abs": 8.36414838, + "mean_abs": 0.228564824, + "psnr_db": 29.669643, + "ref_absmax": 10.7960281, + "rel_max": 0.774743107, + "scaled_max_abs": 0.774743107 + } + } + }, + { + "band_ratio": 0.0538407464, + "index": 2, + "metrics": { + "corr": 0.999855006, + "finite": true, + "max_abs": 0.716923237, + "mean_abs": 0.0080709872, + "psnr_db": 55.3777786, + "ref_absmax": 3.35814142, + "rel_max": 0.213488102, + "scaled_max_abs": 0.213488102 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.pos_embed", + "ungated_exciters": { + "band_ratio": 8.7452958, + "metrics": { + "corr": 0.912547042, + "finite": true, + "max_abs": 8.36698496, + "mean_abs": 0.231367515, + "psnr_db": 29.570649, + "ref_absmax": 10.7744102, + "rel_max": 0.77656083, + "scaled_max_abs": 0.77656083 + } + } + }, + { + "band_ratio": 14.0543324, + "index": 3, + "metrics": { + "corr": 0.859456676, + "finite": true, + "max_abs": 3.33325389, + "mean_abs": 0.335159735, + "psnr_db": 22.636619, + "ref_absmax": 3.5892539, + "rel_max": 0.928675981, + "scaled_max_abs": 0.928675981 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.blocks.0", + "ungated_exciters": { + "band_ratio": 23.5451242, + "metrics": { + "corr": 0.764548758, + "finite": true, + "max_abs": 10.4635148, + "mean_abs": 1.01261525, + "psnr_db": 23.195933, + "ref_absmax": 10.7195148, + "rel_max": 0.976118321, + "scaled_max_abs": 0.976118321 + } + }, + "worst_probe": { + "category": "uniform", + "index": 18 + } + }, + { + "band_ratio": 23.6581631, + "index": 4, + "metrics": { + "corr": 0.763418369, + "finite": true, + "max_abs": 3.32472831, + "mean_abs": 0.368663863, + "psnr_db": 22.7830056, + "ref_absmax": 3.74135327, + "rel_max": 0.888643244, + "scaled_max_abs": 0.888643244 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.blocks.1", + "ungated_exciters": { + "band_ratio": 37.8641399, + "metrics": { + "corr": 0.621358601, + "finite": true, + "max_abs": 10.464447, + "mean_abs": 1.03447939, + "psnr_db": 23.2723514, + "ref_absmax": 11.0036087, + "rel_max": 0.951001371, + "scaled_max_abs": 0.951001371 + } + }, + "worst_probe": { + "category": "uniform", + "index": 18 + } + }, + { + "band_ratio": 28.670578, + "index": 5, + "metrics": { + "corr": 0.71329422, + "finite": true, + "max_abs": 3.51617041, + "mean_abs": 0.412789305, + "psnr_db": 22.7139041, + "ref_absmax": 3.9971683, + "rel_max": 0.87966534, + "scaled_max_abs": 0.87966534 + }, + "op": { + "candidates": 12, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.blocks.2", + "ungated_exciters": { + "band_ratio": 40.2943602, + "metrics": { + "corr": 0.597056398, + "finite": true, + "max_abs": 10.7019672, + "mean_abs": 1.05275975, + "psnr_db": 23.4779245, + "ref_absmax": 11.3481283, + "rel_max": 0.943060119, + "scaled_max_abs": 0.943060119 + } + }, + "worst_probe": { + "category": "uniform", + "index": 19 + } + }, + { + "band_ratio": 27.7676783, + "index": 6, + "metrics": { + "corr": 0.722323217, + "finite": true, + "max_abs": 4.2335825, + "mean_abs": 0.578051194, + "psnr_db": 20.3922764, + "ref_absmax": 4.11107635, + "rel_max": 1.02979904, + "scaled_max_abs": 1.02979904 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.norm", + "ungated_exciters": { + "band_ratio": 35.4847811, + "metrics": { + "corr": 0.645152189, + "finite": true, + "max_abs": 4.39369535, + "mean_abs": 0.658391774, + "psnr_db": 18.9719538, + "ref_absmax": 3.7492106, + "rel_max": 1.17189879, + "scaled_max_abs": 1.17189879 + } + }, + "worst_probe": { + "category": "natural", + "index": 10 + } + }, + { + "band_ratio": 25.2773384, + "index": 7, + "metrics": { + "corr": 0.747226616, + "finite": true, + "max_abs": 1.60557935, + "mean_abs": 0.405248916, + "psnr_db": 17.7565316, + "ref_absmax": 2.0205965, + "rel_max": 0.794606614, + "scaled_max_abs": 0.794606614 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/ReduceMean_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.pool", + "ungated_exciters": { + "band_ratio": 36.8995853, + "metrics": { + "corr": 0.631004147, + "finite": true, + "max_abs": 2.42098778, + "mean_abs": 0.496359846, + "psnr_db": 16.6428549, + "ref_absmax": 2.21577096, + "rel_max": 1.09261644, + "scaled_max_abs": 1.09261644 + } + }, + "worst_probe": { + "category": "natural", + "index": 2 + } + }, + { + "band_ratio": 17.2290563, + "index": 8, + "metrics": { + "corr": 0.827709437, + "finite": true, + "max_abs": 0.554243505, + "mean_abs": 0.158262556, + "psnr_db": 18.0447335, + "ref_absmax": 0.857067645, + "rel_max": 0.646674167, + "scaled_max_abs": 0.554243505 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "ungated_exciters": { + "band_ratio": 48.6842925, + "metrics": { + "corr": 0.513157075, + "finite": true, + "max_abs": 1.12737159, + "mean_abs": 0.311795407, + "psnr_db": 15.4292599, + "ref_absmax": 1.26606846, + "rel_max": 0.890450737, + "scaled_max_abs": 0.890450737 + } + }, + "worst_probe": { + "category": "natural", + "index": 2 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.78125, + "band_ratio": 16.3334363, + "metrics": { + "corr": 0.836665637, + "finite": true, + "max_abs": 0.618572474, + "mean_abs": 0.163134092, + "psnr_db": 18.5216251, + "ref_absmax": 0.915185452, + "rel_max": 0.6758985, + "scaled_max_abs": 0.618572474 + }, + "status": "fail", + "ungated_exciters": { + "band_ratio": 45.0214438, + "metrics": { + "corr": 0.549785562, + "finite": true, + "max_abs": 1.11923242, + "mean_abs": 0.272540002, + "psnr_db": 16.484588, + "ref_absmax": 1.34452486, + "rel_max": 0.83243713, + "scaled_max_abs": 0.83243713 + } + }, + "worst_probe": { + "category": "natural", + "index": 11 + } + }, + "first_fail_index": 3, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 0.0358761909, + "index": 0, + "metrics": { + "corr": 0.999983129, + "finite": true, + "max_abs": 0.009329319, + "mean_abs": 0.00467525361, + "psnr_db": 58.9038735, + "ref_absmax": 2.6400001, + "rel_max": 0.00353383281, + "scaled_max_abs": 0.00353383281 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "normalize", + "ungated_exciters": { + "band_ratio": 6.40507214, + "metrics": { + "corr": 0.935949279, + "finite": true, + "max_abs": 8.8980484, + "mean_abs": 0.346772095, + "psnr_db": 21.6136782, + "ref_absmax": 11.5288897, + "rel_max": 0.771804455, + "scaled_max_abs": 0.771804455 + } + } + }, + { + "band_ratio": 0.0397488002, + "index": 1, + "metrics": { + "corr": 0.999892792, + "finite": true, + "max_abs": 0.937298059, + "mean_abs": 0.00557355653, + "psnr_db": 58.0135195, + "ref_absmax": 3.33092546, + "rel_max": 0.281392685, + "scaled_max_abs": 0.281392685 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.patch_embed", + "ungated_exciters": { + "band_ratio": 7.91755139, + "metrics": { + "corr": 0.920824486, + "finite": true, + "max_abs": 9.47746062, + "mean_abs": 0.214278313, + "psnr_db": 30.7632591, + "ref_absmax": 11.871088, + "rel_max": 0.798364952, + "scaled_max_abs": 0.798364952 + } + } + }, + { + "band_ratio": 0.0529795402, + "index": 2, + "metrics": { + "corr": 0.999847013, + "finite": true, + "max_abs": 0.933243275, + "mean_abs": 0.00846131329, + "psnr_db": 55.5178363, + "ref_absmax": 3.41502428, + "rel_max": 0.273275736, + "scaled_max_abs": 0.273275736 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.pos_embed", + "ungated_exciters": { + "band_ratio": 7.65974068, + "metrics": { + "corr": 0.923402593, + "finite": true, + "max_abs": 9.47997499, + "mean_abs": 0.216574684, + "psnr_db": 30.7020909, + "ref_absmax": 11.574873, + "rel_max": 0.819013307, + "scaled_max_abs": 0.819013307 + } + } + }, + { + "band_ratio": 13.8864334, + "index": 3, + "metrics": { + "corr": 0.861135666, + "finite": true, + "max_abs": 3.12568858, + "mean_abs": 0.332524779, + "psnr_db": 22.3923514, + "ref_absmax": 3.38168859, + "rel_max": 0.924298171, + "scaled_max_abs": 0.924298171 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.blocks.0", + "ungated_exciters": { + "band_ratio": 22.8275841, + "metrics": { + "corr": 0.771724159, + "finite": true, + "max_abs": 11.6405894, + "mean_abs": 1.01281749, + "psnr_db": 24.0175299, + "ref_absmax": 11.8945894, + "rel_max": 0.978645752, + "scaled_max_abs": 0.978645752 + } + }, + "worst_probe": { + "category": "uniform", + "index": 18 + } + }, + { + "band_ratio": 23.2067232, + "index": 4, + "metrics": { + "corr": 0.767932768, + "finite": true, + "max_abs": 3.17324624, + "mean_abs": 0.366211251, + "psnr_db": 22.2957872, + "ref_absmax": 3.4326365, + "rel_max": 0.924434103, + "scaled_max_abs": 0.924434103 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.blocks.1", + "ungated_exciters": { + "band_ratio": 37.2078652, + "metrics": { + "corr": 0.627921348, + "finite": true, + "max_abs": 11.7311909, + "mean_abs": 1.03847862, + "psnr_db": 24.0517253, + "ref_absmax": 12.1536217, + "rel_max": 0.965242393, + "scaled_max_abs": 0.965242393 + } + }, + "worst_probe": { + "category": "natural", + "index": 11 + } + }, + { + "band_ratio": 26.7824322, + "index": 5, + "metrics": { + "corr": 0.732175678, + "finite": true, + "max_abs": 3.22186746, + "mean_abs": 0.404134775, + "psnr_db": 22.3902708, + "ref_absmax": 3.75654864, + "rel_max": 0.857666907, + "scaled_max_abs": 0.857666907 + }, + "op": { + "candidates": 12, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.blocks.2", + "ungated_exciters": { + "band_ratio": 38.1913701, + "metrics": { + "corr": 0.618086299, + "finite": true, + "max_abs": 11.9795211, + "mean_abs": 1.05263953, + "psnr_db": 24.1213929, + "ref_absmax": 12.5100155, + "rel_max": 0.957594426, + "scaled_max_abs": 0.957594426 + } + }, + "worst_probe": { + "category": "uniform", + "index": 18 + } + }, + { + "band_ratio": 25.869334, + "index": 6, + "metrics": { + "corr": 0.74130666, + "finite": true, + "max_abs": 4.15591741, + "mean_abs": 0.556338822, + "psnr_db": 20.9427818, + "ref_absmax": 4.19843721, + "rel_max": 0.989872468, + "scaled_max_abs": 0.989872468 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.norm", + "ungated_exciters": { + "band_ratio": 34.0640321, + "metrics": { + "corr": 0.659359679, + "finite": true, + "max_abs": 3.72791684, + "mean_abs": 0.640526229, + "psnr_db": 17.9212372, + "ref_absmax": 3.38565159, + "rel_max": 1.10109287, + "scaled_max_abs": 1.10109287 + } + }, + "worst_probe": { + "category": "uniform", + "index": 16 + } + }, + { + "band_ratio": 22.2161833, + "index": 7, + "metrics": { + "corr": 0.777838167, + "finite": true, + "max_abs": 1.5788506, + "mean_abs": 0.393305072, + "psnr_db": 17.7497561, + "ref_absmax": 1.86660826, + "rel_max": 0.845839285, + "scaled_max_abs": 0.845839285 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/ReduceMean_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.pool", + "ungated_exciters": { + "band_ratio": 33.9540168, + "metrics": { + "corr": 0.660459832, + "finite": true, + "max_abs": 2.46453071, + "mean_abs": 0.474000744, + "psnr_db": 16.9431186, + "ref_absmax": 2.22176766, + "rel_max": 1.10926572, + "scaled_max_abs": 1.10926572 + } + }, + "worst_probe": { + "category": "natural", + "index": 11 + } + }, + { + "band_ratio": 16.3334363, + "index": 8, + "metrics": { + "corr": 0.836665637, + "finite": true, + "max_abs": 0.618572474, + "mean_abs": 0.163134092, + "psnr_db": 18.5216251, + "ref_absmax": 0.915185452, + "rel_max": 0.6758985, + "scaled_max_abs": 0.618572474 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "ungated_exciters": { + "band_ratio": 45.0214438, + "metrics": { + "corr": 0.549785562, + "finite": true, + "max_abs": 1.11923242, + "mean_abs": 0.272540002, + "psnr_db": 16.484588, + "ref_absmax": 1.34452486, + "rel_max": 0.83243713, + "scaled_max_abs": 0.83243713 + } + }, + "worst_probe": { + "category": "natural", + "index": 11 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "int8", + "id": "tinyvit__int8_override_blocks_0__onnx_int8", + "model": "tinyvit", + "path": "onnx", + "variant": "int8_override_blocks_0" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/tinyvit__int8_override_blocks_2__onnx_int8.json b/bench/verdicts_e2e_gated/tinyvit__int8_override_blocks_2__onnx_int8.json new file mode 100644 index 0000000000000000000000000000000000000000..3462923a11e88d7f4d704bac56bcc0471c4fa847 --- /dev/null +++ b/bench/verdicts_e2e_gated/tinyvit__int8_override_blocks_2__onnx_int8.json @@ -0,0 +1,896 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": { + "reason": "first divergence at tap 5 is beyond the hypothesis taps (first 3) \u2014 interface faults surface earlier", + "status": "not_evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "status": "flag" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "int8", + "first_divergence": { + "artifact_tensor": "/net/blocks/blocks.2/Add_1_output_0_DequantizeLinear_Output", + "basis": "earliest tap over the int8 band", + "index": 5, + "neighbourhood": [ + { + "band_ratio": 0.124742761, + "index": 4, + "op": { + "candidates": 9, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.blocks.1" + }, + { + "band_ratio": 14.2775019, + "index": 5, + "op": { + "candidates": 12, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.blocks.2" + }, + { + "band_ratio": 13.1991788, + "index": 6, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.norm" + } + ], + "shape": 224, + "tap": "net.blocks.2" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "b9c4b448d3d0048b061cfde0e3e962747ee95730b9c610409c1bed96a2dbda5f", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "254a506cb7c6ea099dc442e1fc08cf85c3e3d2f4da805371134b4540e197c9ef", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "int8 band on exciter probes", + "reason": "a statically quantised model is specified on its calibration distribution; exciter categories ['wide_range', 'near_zero', 'saturating'] are measured and reported per tap ('ungated_exciters') but do not gate" + }, + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D4", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.90625, + "band_ratio": 1.81890138, + "metrics": { + "corr": 0.981810986, + "finite": true, + "max_abs": 0.237875938, + "mean_abs": 0.0485177838, + "psnr_db": 28.2209424, + "ref_absmax": 0.857067645, + "rel_max": 0.277546282, + "scaled_max_abs": 0.237875938 + }, + "status": "fail", + "ungated_exciters": { + "band_ratio": 11.0342141, + "metrics": { + "corr": 0.889657859, + "finite": true, + "max_abs": 0.546399824, + "mean_abs": 0.133855405, + "psnr_db": 21.8308784, + "ref_absmax": 1.26606846, + "rel_max": 0.431572101, + "scaled_max_abs": 0.431572101 + } + }, + "worst_probe": { + "category": "natural", + "index": 2 + } + }, + "first_fail_index": 5, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 0.0358443598, + "index": 0, + "metrics": { + "corr": 0.99998378, + "finite": true, + "max_abs": 0.0093292594, + "mean_abs": 0.00466938237, + "psnr_db": 58.9115834, + "ref_absmax": 2.6400001, + "rel_max": 0.00353381024, + "scaled_max_abs": 0.00353381024 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "normalize", + "ungated_exciters": { + "band_ratio": 7.29207513, + "metrics": { + "corr": 0.927079249, + "finite": true, + "max_abs": 8.8980484, + "mean_abs": 0.355833548, + "psnr_db": 21.0584139, + "ref_absmax": 11.5288897, + "rel_max": 0.771804455, + "scaled_max_abs": 0.771804455 + } + } + }, + { + "band_ratio": 0.041919469, + "index": 1, + "metrics": { + "corr": 0.99988951, + "finite": true, + "max_abs": 0.711663008, + "mean_abs": 0.00552147076, + "psnr_db": 57.5516845, + "ref_absmax": 3.05000877, + "rel_max": 0.233331462, + "scaled_max_abs": 0.233331462 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.patch_embed", + "ungated_exciters": { + "band_ratio": 9.07288468, + "metrics": { + "corr": 0.909271153, + "finite": true, + "max_abs": 8.36414838, + "mean_abs": 0.228564824, + "psnr_db": 29.669643, + "ref_absmax": 10.7960281, + "rel_max": 0.774743107, + "scaled_max_abs": 0.774743107 + } + } + }, + { + "band_ratio": 0.0538407464, + "index": 2, + "metrics": { + "corr": 0.999855006, + "finite": true, + "max_abs": 0.716923237, + "mean_abs": 0.0080709872, + "psnr_db": 55.3777786, + "ref_absmax": 3.35814142, + "rel_max": 0.213488102, + "scaled_max_abs": 0.213488102 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.pos_embed", + "ungated_exciters": { + "band_ratio": 8.7452958, + "metrics": { + "corr": 0.912547042, + "finite": true, + "max_abs": 8.36698496, + "mean_abs": 0.231367515, + "psnr_db": 29.570649, + "ref_absmax": 10.7744102, + "rel_max": 0.77656083, + "scaled_max_abs": 0.77656083 + } + } + }, + { + "band_ratio": 0.0788345602, + "index": 3, + "metrics": { + "corr": 0.999689495, + "finite": true, + "max_abs": 0.697504163, + "mean_abs": 0.0132406911, + "psnr_db": 52.065667, + "ref_absmax": 3.5892539, + "rel_max": 0.19433124, + "scaled_max_abs": 0.19433124 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.blocks.0", + "ungated_exciters": { + "band_ratio": 8.3044362, + "metrics": { + "corr": 0.916955638, + "finite": true, + "max_abs": 8.33901, + "mean_abs": 0.259529084, + "psnr_db": 29.5629199, + "ref_absmax": 10.7195148, + "rel_max": 0.77792793, + "scaled_max_abs": 0.77792793 + } + } + }, + { + "band_ratio": 0.101766078, + "index": 4, + "metrics": { + "corr": 0.999515706, + "finite": true, + "max_abs": 0.694274068, + "mean_abs": 0.0178510444, + "psnr_db": 49.8479392, + "ref_absmax": 3.74135327, + "rel_max": 0.185567632, + "scaled_max_abs": 0.185567632 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.blocks.1", + "ungated_exciters": { + "band_ratio": 7.75313697, + "metrics": { + "corr": 0.92246863, + "finite": true, + "max_abs": 8.3160913, + "mean_abs": 0.274403745, + "psnr_db": 29.6996594, + "ref_absmax": 11.0036087, + "rel_max": 0.755760362, + "scaled_max_abs": 0.755760362 + } + } + }, + { + "band_ratio": 14.4947382, + "index": 5, + "metrics": { + "corr": 0.855052618, + "finite": true, + "max_abs": 3.74116829, + "mean_abs": 0.413176306, + "psnr_db": 22.0810184, + "ref_absmax": 3.9971683, + "rel_max": 0.935954658, + "scaled_max_abs": 0.935954658 + }, + "op": { + "candidates": 12, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.blocks.2", + "ungated_exciters": { + "band_ratio": 23.136456, + "metrics": { + "corr": 0.76863544, + "finite": true, + "max_abs": 11.0941283, + "mean_abs": 1.11673604, + "psnr_db": 23.004825, + "ref_absmax": 11.3481283, + "rel_max": 0.977617454, + "scaled_max_abs": 0.977617454 + } + }, + "worst_probe": { + "category": "uniform", + "index": 17 + } + }, + { + "band_ratio": 13.2800008, + "index": 6, + "metrics": { + "corr": 0.867199992, + "finite": true, + "max_abs": 3.04598176, + "mean_abs": 0.426193709, + "psnr_db": 23.5956283, + "ref_absmax": 4.11107635, + "rel_max": 0.740920747, + "scaled_max_abs": 0.740920747 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.norm", + "ungated_exciters": { + "band_ratio": 16.6543248, + "metrics": { + "corr": 0.833456752, + "finite": true, + "max_abs": 2.66470683, + "mean_abs": 0.483587211, + "psnr_db": 22.2583383, + "ref_absmax": 3.7492106, + "rel_max": 0.710738103, + "scaled_max_abs": 0.710738103 + } + }, + "worst_probe": { + "category": "uniform", + "index": 18 + } + }, + { + "band_ratio": 1.84185559, + "index": 7, + "metrics": { + "corr": 0.981581444, + "finite": true, + "max_abs": 0.937689185, + "mean_abs": 0.070032965, + "psnr_db": 30.769783, + "ref_absmax": 2.0205965, + "rel_max": 0.464065529, + "scaled_max_abs": 0.464065529 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/ReduceMean_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.pool", + "ungated_exciters": { + "band_ratio": 11.0145642, + "metrics": { + "corr": 0.889854358, + "finite": true, + "max_abs": 1.18562615, + "mean_abs": 0.216533752, + "psnr_db": 22.6710584, + "ref_absmax": 2.21577096, + "rel_max": 0.535085156, + "scaled_max_abs": 0.535085156 + } + }, + "worst_probe": { + "category": "natural", + "index": 11 + } + }, + { + "band_ratio": 1.81890138, + "index": 8, + "metrics": { + "corr": 0.981810986, + "finite": true, + "max_abs": 0.237875938, + "mean_abs": 0.0485177838, + "psnr_db": 28.2209424, + "ref_absmax": 0.857067645, + "rel_max": 0.277546282, + "scaled_max_abs": 0.237875938 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "ungated_exciters": { + "band_ratio": 11.0342141, + "metrics": { + "corr": 0.889657859, + "finite": true, + "max_abs": 0.546399824, + "mean_abs": 0.133855405, + "psnr_db": 21.8308784, + "ref_absmax": 1.26606846, + "rel_max": 0.431572101, + "scaled_max_abs": 0.431572101 + } + }, + "worst_probe": { + "category": "natural", + "index": 2 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.90625, + "band_ratio": 2.22394997, + "metrics": { + "corr": 0.9777605, + "finite": true, + "max_abs": 0.222067237, + "mean_abs": 0.0555358293, + "psnr_db": 27.4001059, + "ref_absmax": 0.915185452, + "rel_max": 0.242647254, + "scaled_max_abs": 0.222067237 + }, + "status": "fail", + "ungated_exciters": { + "band_ratio": 13.0765643, + "metrics": { + "corr": 0.869234357, + "finite": true, + "max_abs": 0.555726051, + "mean_abs": 0.133746661, + "psnr_db": 21.4718271, + "ref_absmax": 1.34452486, + "rel_max": 0.413325233, + "scaled_max_abs": 0.413325233 + } + }, + "worst_probe": { + "category": "natural", + "index": 11 + } + }, + "first_fail_index": 5, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 0.0358761909, + "index": 0, + "metrics": { + "corr": 0.999983129, + "finite": true, + "max_abs": 0.009329319, + "mean_abs": 0.00467525361, + "psnr_db": 58.9038735, + "ref_absmax": 2.6400001, + "rel_max": 0.00353383281, + "scaled_max_abs": 0.00353383281 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "normalize", + "ungated_exciters": { + "band_ratio": 6.40507214, + "metrics": { + "corr": 0.935949279, + "finite": true, + "max_abs": 8.8980484, + "mean_abs": 0.346772095, + "psnr_db": 21.6136782, + "ref_absmax": 11.5288897, + "rel_max": 0.771804455, + "scaled_max_abs": 0.771804455 + } + } + }, + { + "band_ratio": 0.0397488002, + "index": 1, + "metrics": { + "corr": 0.999892792, + "finite": true, + "max_abs": 0.937298059, + "mean_abs": 0.00557355653, + "psnr_db": 58.0135195, + "ref_absmax": 3.33092546, + "rel_max": 0.281392685, + "scaled_max_abs": 0.281392685 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.patch_embed", + "ungated_exciters": { + "band_ratio": 7.91755139, + "metrics": { + "corr": 0.920824486, + "finite": true, + "max_abs": 9.47746062, + "mean_abs": 0.214278313, + "psnr_db": 30.7632591, + "ref_absmax": 11.871088, + "rel_max": 0.798364952, + "scaled_max_abs": 0.798364952 + } + } + }, + { + "band_ratio": 0.0529795402, + "index": 2, + "metrics": { + "corr": 0.999847013, + "finite": true, + "max_abs": 0.933243275, + "mean_abs": 0.00846131329, + "psnr_db": 55.5178363, + "ref_absmax": 3.41502428, + "rel_max": 0.273275736, + "scaled_max_abs": 0.273275736 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.pos_embed", + "ungated_exciters": { + "band_ratio": 7.65974068, + "metrics": { + "corr": 0.923402593, + "finite": true, + "max_abs": 9.47997499, + "mean_abs": 0.216574684, + "psnr_db": 30.7020909, + "ref_absmax": 11.574873, + "rel_max": 0.819013307, + "scaled_max_abs": 0.819013307 + } + } + }, + { + "band_ratio": 0.0908989121, + "index": 3, + "metrics": { + "corr": 0.99961389, + "finite": true, + "max_abs": 0.925094128, + "mean_abs": 0.0148857319, + "psnr_db": 50.8288263, + "ref_absmax": 3.38168859, + "rel_max": 0.273559821, + "scaled_max_abs": 0.273559821 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.blocks.0", + "ungated_exciters": { + "band_ratio": 7.19825677, + "metrics": { + "corr": 0.928017432, + "finite": true, + "max_abs": 9.50604749, + "mean_abs": 0.241832129, + "psnr_db": 30.922168, + "ref_absmax": 11.8945894, + "rel_max": 0.799190888, + "scaled_max_abs": 0.799190888 + } + } + }, + { + "band_ratio": 0.124742761, + "index": 4, + "metrics": { + "corr": 0.999371185, + "finite": true, + "max_abs": 0.930356145, + "mean_abs": 0.0208643733, + "psnr_db": 48.0796929, + "ref_absmax": 3.4326365, + "rel_max": 0.271032527, + "scaled_max_abs": 0.271032527 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0_DequantizeLinear_Output" + }, + "status": "pass", + "tap": "net.blocks.1", + "ungated_exciters": { + "band_ratio": 6.70111873, + "metrics": { + "corr": 0.932988813, + "finite": true, + "max_abs": 9.48718929, + "mean_abs": 0.255272325, + "psnr_db": 31.01297, + "ref_absmax": 12.1536217, + "rel_max": 0.780605942, + "scaled_max_abs": 0.780605942 + } + } + }, + { + "band_ratio": 14.2775019, + "index": 5, + "metrics": { + "corr": 0.857224981, + "finite": true, + "max_abs": 3.50054863, + "mean_abs": 0.418168867, + "psnr_db": 21.5660484, + "ref_absmax": 3.75654864, + "rel_max": 0.931852337, + "scaled_max_abs": 0.931852337 + }, + "op": { + "candidates": 12, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.blocks.2", + "ungated_exciters": { + "band_ratio": 22.2937359, + "metrics": { + "corr": 0.777062641, + "finite": true, + "max_abs": 12.2560155, + "mean_abs": 1.11793366, + "psnr_db": 23.6404488, + "ref_absmax": 12.5100155, + "rel_max": 0.979696267, + "scaled_max_abs": 0.979696267 + } + }, + "worst_probe": { + "category": "uniform", + "index": 17 + } + }, + { + "band_ratio": 13.1991788, + "index": 6, + "metrics": { + "corr": 0.868008212, + "finite": true, + "max_abs": 3.18892252, + "mean_abs": 0.425381502, + "psnr_db": 23.8658069, + "ref_absmax": 4.19843721, + "rel_max": 0.75954989, + "scaled_max_abs": 0.75954989 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.norm", + "ungated_exciters": { + "band_ratio": 16.4377408, + "metrics": { + "corr": 0.835622592, + "finite": true, + "max_abs": 2.20528311, + "mean_abs": 0.483902714, + "psnr_db": 21.0857902, + "ref_absmax": 3.38565159, + "rel_max": 0.651361502, + "scaled_max_abs": 0.651361502 + } + }, + "worst_probe": { + "category": "natural", + "index": 5 + } + }, + { + "band_ratio": 1.88654556, + "index": 7, + "metrics": { + "corr": 0.981134544, + "finite": true, + "max_abs": 0.80303371, + "mean_abs": 0.0762582618, + "psnr_db": 29.5690089, + "ref_absmax": 1.86660826, + "rel_max": 0.430210091, + "scaled_max_abs": 0.430210091 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/ReduceMean_output_0_DequantizeLinear_Output" + }, + "status": "fail", + "tap": "net.pool", + "ungated_exciters": { + "band_ratio": 11.0148871, + "metrics": { + "corr": 0.889851129, + "finite": true, + "max_abs": 1.1725657, + "mean_abs": 0.217891322, + "psnr_db": 22.6405715, + "ref_absmax": 2.22176766, + "rel_max": 0.527762519, + "scaled_max_abs": 0.527762519 + } + }, + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_ratio": 2.22394997, + "index": 8, + "metrics": { + "corr": 0.9777605, + "finite": true, + "max_abs": 0.222067237, + "mean_abs": 0.0555358293, + "psnr_db": 27.4001059, + "ref_absmax": 0.915185452, + "rel_max": 0.242647254, + "scaled_max_abs": 0.222067237 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "ungated_exciters": { + "band_ratio": 13.0765643, + "metrics": { + "corr": 0.869234357, + "finite": true, + "max_abs": 0.555726051, + "mean_abs": 0.133746661, + "psnr_db": 21.4718271, + "ref_absmax": 1.34452486, + "rel_max": 0.413325233, + "scaled_max_abs": 0.413325233 + } + }, + "worst_probe": { + "category": "natural", + "index": 11 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "int8", + "id": "tinyvit__int8_override_blocks_2__onnx_int8", + "model": "tinyvit", + "path": "onnx", + "variant": "int8_override_blocks_2" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/tinyvit__interp_mode__coreml_fp16.json b/bench/verdicts_e2e_gated/tinyvit__interp_mode__coreml_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..6cb1ef0518fb9c151a7244efeee42561c8a5278e --- /dev/null +++ b/bench/verdicts_e2e_gated/tinyvit__interp_mode__coreml_fp16.json @@ -0,0 +1,693 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "at": "net.pos_embed", + "explained_by": null, + "nominal_band_ratio": 12.6278233, + "results": [ + { + "band_ratio": 107.643349, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 78.5665641, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 161.289202, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 145.324141, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 142.698723, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [ + "inputs[0]: dtype float16 (declared float32)", + "outputs[0]: dtype float16 (declared float32)" + ], + "status": "precision_narrowing" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "input_5_cast_fp16", + "basis": "earliest tap over band with in-band predecessors", + "index": 2, + "neighbourhood": [ + { + "band_ratio": 0.817007877, + "index": 1, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_5_cast_fp16" + }, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_ratio": 4.42303863, + "index": 2, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5_cast_fp16" + }, + "status": "fail", + "tap": "net.pos_embed" + }, + { + "band_ratio": 5.37253147, + "index": 3, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_17_cast_fp16" + }, + "status": "fail", + "tap": "net.blocks.0" + } + ], + "shape": 224, + "tap": "net.pos_embed" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "f40ca31d9a69db6086b871b2b0323e30620d56ca5787b72f2393785cd07ee0d0", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "d934f1163a95bbc677ee739a6ddca0bd5761a58e022b8ae2dcf664b6c8acdd4a", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D2", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 2.57790155, + "metrics": { + "corr": 0.999604141, + "finite": true, + "max_abs": 0.0326379985, + "mean_abs": 0.00866685933, + "psnr_db": 46.9656823, + "ref_absmax": 1.26606846, + "rel_max": 0.0257790155, + "scaled_max_abs": 0.0257790155 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + "first_fail_index": 1, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 0.117570499, + "index": 0, + "metrics": { + "corr": 0.999999914, + "finite": true, + "max_abs": 0.0135545731, + "mean_abs": 0.000674526699, + "psnr_db": 83.5827466, + "ref_absmax": 11.5288897, + "rel_max": 0.00117570499, + "scaled_max_abs": 0.00117570499 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 1.47449007, + "index": 1, + "metrics": { + "corr": 0.999991394, + "finite": true, + "max_abs": 0.159186363, + "mean_abs": 0.00251833586, + "psnr_db": 73.8085669, + "ref_absmax": 10.7960281, + "rel_max": 0.0147449007, + "scaled_max_abs": 0.0147449007 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_5_cast_fp16" + }, + "status": "fail", + "tap": "net.patch_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 3.836397, + "index": 2, + "metrics": { + "corr": 0.997649496, + "finite": true, + "max_abs": 0.413349152, + "mean_abs": 0.0548370858, + "psnr_db": 48.8899811, + "ref_absmax": 10.7744102, + "rel_max": 0.03836397, + "scaled_max_abs": 0.03836397 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5_cast_fp16" + }, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "wide_range", + "index": 20 + } + }, + { + "band_ratio": 4.17349871, + "index": 3, + "metrics": { + "corr": 0.997621642, + "finite": true, + "max_abs": 0.447378814, + "mean_abs": 0.0574262695, + "psnr_db": 48.5923074, + "ref_absmax": 10.7195148, + "rel_max": 0.0417349871, + "scaled_max_abs": 0.0417349871 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_17_cast_fp16" + }, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "natural", + "index": 12 + } + }, + { + "band_ratio": 4.58850478, + "index": 4, + "metrics": { + "corr": 0.997658817, + "finite": true, + "max_abs": 0.504901111, + "mean_abs": 0.0597642949, + "psnr_db": 48.4185543, + "ref_absmax": 11.0036087, + "rel_max": 0.0458850478, + "scaled_max_abs": 0.0458850478 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_29_cast_fp16" + }, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "natural", + "index": 5 + } + }, + { + "band_ratio": 4.95155103, + "index": 5, + "metrics": { + "corr": 0.99766508, + "finite": true, + "max_abs": 0.561908364, + "mean_abs": 0.0617786933, + "psnr_db": 48.4018797, + "ref_absmax": 11.3481283, + "rel_max": 0.0495155103, + "scaled_max_abs": 0.0495155103 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_41_cast_fp16" + }, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_ratio": 24.8883873, + "index": 6, + "metrics": { + "corr": 0.994816824, + "finite": true, + "max_abs": 1.0231806, + "mean_abs": 0.0670779251, + "psnr_db": 37.7363868, + "ref_absmax": 4.11107635, + "rel_max": 0.248883873, + "scaled_max_abs": 0.248883873 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_ratio": 3.90548158, + "index": 7, + "metrics": { + "corr": 0.999611665, + "finite": true, + "max_abs": 0.0865365267, + "mean_abs": 0.0122920916, + "psnr_db": 48.1017814, + "ref_absmax": 2.21577096, + "rel_max": 0.0390548158, + "scaled_max_abs": 0.0390548158 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_cast_fp16" + }, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_ratio": 2.57790155, + "index": 8, + "metrics": { + "corr": 0.999604141, + "finite": true, + "max_abs": 0.0326379985, + "mean_abs": 0.00866685933, + "psnr_db": 46.9656823, + "ref_absmax": 1.26606846, + "rel_max": 0.0257790155, + "scaled_max_abs": 0.0257790155 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "natural", + "index": 0 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.96875, + "band_ratio": 3.03553151, + "metrics": { + "corr": 0.999331084, + "finite": true, + "max_abs": 0.0408134758, + "mean_abs": 0.0110726049, + "psnr_db": 45.1831116, + "ref_absmax": 1.34452486, + "rel_max": 0.0303553151, + "scaled_max_abs": 0.0303553151 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 3 + } + }, + "first_fail_index": 2, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 0.116213884, + "index": 0, + "metrics": { + "corr": 0.999999912, + "finite": true, + "max_abs": 0.0133981705, + "mean_abs": 0.000679588388, + "psnr_db": 83.6184843, + "ref_absmax": 11.5288897, + "rel_max": 0.00116213884, + "scaled_max_abs": 0.00116213884 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.817007877, + "index": 1, + "metrics": { + "corr": 0.999991415, + "finite": true, + "max_abs": 0.0969877243, + "mean_abs": 0.00250771621, + "psnr_db": 74.367951, + "ref_absmax": 11.871088, + "rel_max": 0.00817007877, + "scaled_max_abs": 0.00817007877 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_5_cast_fp16" + }, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_ratio": 4.42303863, + "index": 2, + "metrics": { + "corr": 0.995696267, + "finite": true, + "max_abs": 0.511961102, + "mean_abs": 0.0749137392, + "psnr_db": 46.8699448, + "ref_absmax": 11.574873, + "rel_max": 0.0442303863, + "scaled_max_abs": 0.0442303863 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5_cast_fp16" + }, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "natural", + "index": 14 + } + }, + { + "band_ratio": 5.37253147, + "index": 3, + "metrics": { + "corr": 0.995705503, + "finite": true, + "max_abs": 0.63904056, + "mean_abs": 0.0783675331, + "psnr_db": 46.8205304, + "ref_absmax": 11.8945894, + "rel_max": 0.0537253147, + "scaled_max_abs": 0.0537253147 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_17_cast_fp16" + }, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "natural", + "index": 12 + } + }, + { + "band_ratio": 5.38786068, + "index": 4, + "metrics": { + "corr": 0.995815854, + "finite": true, + "max_abs": 0.654820204, + "mean_abs": 0.0813125394, + "psnr_db": 46.6501865, + "ref_absmax": 12.1536217, + "rel_max": 0.0538786068, + "scaled_max_abs": 0.0538786068 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_29_cast_fp16" + }, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "natural", + "index": 12 + } + }, + { + "band_ratio": 5.55685935, + "index": 5, + "metrics": { + "corr": 0.995845882, + "finite": true, + "max_abs": 0.695163965, + "mean_abs": 0.083897053, + "psnr_db": 46.4872647, + "ref_absmax": 12.5100155, + "rel_max": 0.0555685935, + "scaled_max_abs": 0.0555685935 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_41_cast_fp16" + }, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "natural", + "index": 2 + } + }, + { + "band_ratio": 28.1151243, + "index": 6, + "metrics": { + "corr": 0.991444696, + "finite": true, + "max_abs": 1.18039584, + "mean_abs": 0.0885903496, + "psnr_db": 35.7483922, + "ref_absmax": 4.19843721, + "rel_max": 0.281151243, + "scaled_max_abs": 0.281151243 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "natural", + "index": 9 + } + }, + { + "band_ratio": 4.09803323, + "index": 7, + "metrics": { + "corr": 0.999516419, + "finite": true, + "max_abs": 0.0910487771, + "mean_abs": 0.0138490313, + "psnr_db": 47.0775486, + "ref_absmax": 2.22176766, + "rel_max": 0.0409803323, + "scaled_max_abs": 0.0409803323 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_cast_fp16" + }, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "natural", + "index": 3 + } + }, + { + "band_ratio": 3.03553151, + "index": 8, + "metrics": { + "corr": 0.999331084, + "finite": true, + "max_abs": 0.0408134758, + "mean_abs": 0.0110726049, + "psnr_db": 45.1831116, + "ref_absmax": 1.34452486, + "rel_max": 0.0303553151, + "scaled_max_abs": 0.0303553151 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "natural", + "index": 3 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp16", + "id": "tinyvit__interp_mode__coreml_fp16", + "model": "tinyvit", + "path": "coreml", + "variant": "interp_mode" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/tinyvit__interp_mode__coreml_fp32.json b/bench/verdicts_e2e_gated/tinyvit__interp_mode__coreml_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..dfafc0ffb0e29526eff316697156744c20a83870 --- /dev/null +++ b/bench/verdicts_e2e_gated/tinyvit__interp_mode__coreml_fp32.json @@ -0,0 +1,686 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "at": "net.pos_embed", + "explained_by": null, + "nominal_band_ratio": 1254.76091, + "results": [ + { + "band_ratio": 10754.6959, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 7856.00151, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 16129.2633, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 14534.1529, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 14281.7138, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "input_5", + "basis": "earliest tap over band with in-band predecessors", + "index": 2, + "neighbourhood": [ + { + "band_ratio": 0.00321343524, + "index": 1, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_5" + }, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_ratio": 438.909013, + "index": 2, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5" + }, + "status": "fail", + "tap": "net.pos_embed" + }, + { + "band_ratio": 536.358119, + "index": 3, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_17" + }, + "status": "fail", + "tap": "net.blocks.0" + } + ], + "shape": 224, + "tap": "net.pos_embed" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "32623dfc00246e733bb84baad84c13487c0b906a9c2dc6796c0e3c686eebd55c", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "7db3f5733121a3832e6e77b9dd6a54b9110c5b96b1bd2745eaf0928112117562", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D2", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 262.83103, + "metrics": { + "corr": 0.999607851, + "finite": true, + "max_abs": 0.0332762077, + "mean_abs": 0.00855524068, + "psnr_db": 46.99734, + "ref_absmax": 1.26606846, + "rel_max": 0.026283103, + "scaled_max_abs": 0.026283103 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + "first_fail_index": 2, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.26638033e-08, + "psnr_db": 163.904618, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.00441678321, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 1.05437658e-07, + "psnr_db": 161.322112, + "ref_absmax": 10.7960281, + "rel_max": 4.41678321e-07, + "scaled_max_abs": 4.41678321e-07 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_5" + }, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_ratio": 369.92363, + "index": 2, + "metrics": { + "corr": 0.997654966, + "finite": true, + "max_abs": 0.398570895, + "mean_abs": 0.0546367108, + "psnr_db": 48.9000837, + "ref_absmax": 10.7744102, + "rel_max": 0.036992363, + "scaled_max_abs": 0.036992363 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5" + }, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "near_zero", + "index": 27 + } + }, + { + "band_ratio": 417.110858, + "index": 3, + "metrics": { + "corr": 0.997627158, + "finite": true, + "max_abs": 0.447122604, + "mean_abs": 0.0572576439, + "psnr_db": 48.6023307, + "ref_absmax": 10.7195148, + "rel_max": 0.0417110858, + "scaled_max_abs": 0.0417110858 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_17" + }, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "natural", + "index": 9 + } + }, + { + "band_ratio": 457.495648, + "index": 4, + "metrics": { + "corr": 0.997663977, + "finite": true, + "max_abs": 0.50341031, + "mean_abs": 0.059592456, + "psnr_db": 48.428103, + "ref_absmax": 11.0036087, + "rel_max": 0.0457495648, + "scaled_max_abs": 0.0457495648 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_29" + }, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "natural", + "index": 5 + } + }, + { + "band_ratio": 495.423814, + "index": 5, + "metrics": { + "corr": 0.997670299, + "finite": true, + "max_abs": 0.562213302, + "mean_abs": 0.0616095605, + "psnr_db": 48.4114862, + "ref_absmax": 11.3481283, + "rel_max": 0.0495423814, + "scaled_max_abs": 0.0495423814 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_41" + }, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_ratio": 2489.96853, + "index": 6, + "metrics": { + "corr": 0.994817926, + "finite": true, + "max_abs": 1.02364507, + "mean_abs": 0.066981756, + "psnr_db": 37.737314, + "ref_absmax": 4.11107635, + "rel_max": 0.248996853, + "scaled_max_abs": 0.248996853 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x" + }, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_ratio": 398.92084, + "index": 7, + "metrics": { + "corr": 0.999610818, + "finite": true, + "max_abs": 0.0883917212, + "mean_abs": 0.0122021679, + "psnr_db": 48.0930137, + "ref_absmax": 2.21577096, + "rel_max": 0.039892084, + "scaled_max_abs": 0.039892084 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_1" + }, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_ratio": 262.83103, + "index": 8, + "metrics": { + "corr": 0.999607851, + "finite": true, + "max_abs": 0.0332762077, + "mean_abs": 0.00855524068, + "psnr_db": 46.99734, + "ref_absmax": 1.26606846, + "rel_max": 0.026283103, + "scaled_max_abs": 0.026283103 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "natural", + "index": 0 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.96875, + "band_ratio": 307.261915, + "metrics": { + "corr": 0.999338176, + "finite": true, + "max_abs": 0.0413121283, + "mean_abs": 0.0109561385, + "psnr_db": 45.2159116, + "ref_absmax": 1.34452486, + "rel_max": 0.0307261915, + "scaled_max_abs": 0.0307261915 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 13 + } + }, + "first_fail_index": 2, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.2793459e-08, + "psnr_db": 164.013874, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.00321343524, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.81469727e-06, + "mean_abs": 1.07091069e-07, + "psnr_db": 161.736623, + "ref_absmax": 11.871088, + "rel_max": 3.21343524e-07, + "scaled_max_abs": 3.21343524e-07 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_5" + }, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_ratio": 438.909013, + "index": 2, + "metrics": { + "corr": 0.995700697, + "finite": true, + "max_abs": 0.508031607, + "mean_abs": 0.0747664704, + "psnr_db": 46.8738159, + "ref_absmax": 11.574873, + "rel_max": 0.0438909013, + "scaled_max_abs": 0.0438909013 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5" + }, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "natural", + "index": 2 + } + }, + { + "band_ratio": 536.358119, + "index": 3, + "metrics": { + "corr": 0.995709733, + "finite": true, + "max_abs": 0.637975961, + "mean_abs": 0.0782541543, + "psnr_db": 46.8241878, + "ref_absmax": 11.8945894, + "rel_max": 0.0536358119, + "scaled_max_abs": 0.0536358119 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_17" + }, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "natural", + "index": 12 + } + }, + { + "band_ratio": 538.933932, + "index": 4, + "metrics": { + "corr": 0.995819516, + "finite": true, + "max_abs": 0.654999912, + "mean_abs": 0.0811936729, + "psnr_db": 46.6536842, + "ref_absmax": 12.1536217, + "rel_max": 0.0538933932, + "scaled_max_abs": 0.0538933932 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_29" + }, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "natural", + "index": 13 + } + }, + { + "band_ratio": 557.120447, + "index": 5, + "metrics": { + "corr": 0.995849765, + "finite": true, + "max_abs": 0.696958542, + "mean_abs": 0.0837744038, + "psnr_db": 46.4907287, + "ref_absmax": 12.5100155, + "rel_max": 0.0557120447, + "scaled_max_abs": 0.0557120447 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_41" + }, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "natural", + "index": 2 + } + }, + { + "band_ratio": 2800.6947, + "index": 6, + "metrics": { + "corr": 0.991441808, + "finite": true, + "max_abs": 1.17585409, + "mean_abs": 0.088521598, + "psnr_db": 35.7469244, + "ref_absmax": 4.19843721, + "rel_max": 0.28006947, + "scaled_max_abs": 0.28006947 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x" + }, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "natural", + "index": 9 + } + }, + { + "band_ratio": 411.518142, + "index": 7, + "metrics": { + "corr": 0.999515275, + "finite": true, + "max_abs": 0.09142977, + "mean_abs": 0.0137800495, + "psnr_db": 47.0671696, + "ref_absmax": 2.22176766, + "rel_max": 0.0411518142, + "scaled_max_abs": 0.0411518142 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_1" + }, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "natural", + "index": 3 + } + }, + { + "band_ratio": 307.261915, + "index": 8, + "metrics": { + "corr": 0.999338176, + "finite": true, + "max_abs": 0.0413121283, + "mean_abs": 0.0109561385, + "psnr_db": 45.2159116, + "ref_absmax": 1.34452486, + "rel_max": 0.0307261915, + "scaled_max_abs": 0.0307261915 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "natural", + "index": 13 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp32", + "id": "tinyvit__interp_mode__coreml_fp32", + "model": "tinyvit", + "path": "coreml", + "variant": "interp_mode" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/tinyvit__interp_mode__litert_fp16.json b/bench/verdicts_e2e_gated/tinyvit__interp_mode__litert_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..65f5db619f8088eb0290d0ffbbfff95e77acaa01 --- /dev/null +++ b/bench/verdicts_e2e_gated/tinyvit__interp_mode__litert_fp16.json @@ -0,0 +1,715 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "at": "net.pos_embed", + "explained_by": null, + "nominal_band_ratio": 12.5508861, + "results": [ + { + "band_ratio": 107.550763, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 78.5578275, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 161.306296, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 145.344759, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 142.834084, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 1.65768906e-05, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.23517418e-07, + "mean_abs": 4.01429133e-08, + "psnr_db": 153.258731, + "ref_absmax": 1.34836757, + "rel_max": 1.65768906e-07, + "scaled_max_abs": 1.65768906e-07 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 57, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 1, + "n_ops_total": 187, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;3", + "basis": "earliest tap over band with in-band predecessors", + "index": 2, + "neighbourhood": [ + { + "band_ratio": 0.0277319462, + "index": 1, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;2" + }, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_ratio": 4.39109585, + "index": 2, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;3" + }, + "status": "fail", + "tap": "net.pos_embed" + }, + { + "band_ratio": 5.36433836, + "index": 3, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.0" + } + ], + "shape": 224, + "tap": "net.pos_embed" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "3024b2da7794010377ed88b3488271321a87b7b6dfa0114fc20b325a5b1ac6a2", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "1bd3ceb8ade09140b3be0766ac117d249fd7bea227c06382688ab359952cd836", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D2", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 2.62305634, + "metrics": { + "corr": 0.999605771, + "finite": true, + "max_abs": 0.033209689, + "mean_abs": 0.00856573652, + "psnr_db": 46.9783484, + "ref_absmax": 1.26606846, + "rel_max": 0.0262305634, + "scaled_max_abs": 0.0262305634 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + "first_fail_index": 2, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 8.27203959e-06, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.26638033e-08, + "psnr_db": 163.904618, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0238484209, + "index": 1, + "metrics": { + "corr": 0.999999975, + "finite": true, + "max_abs": 0.00257468224, + "mean_abs": 0.000153147335, + "psnr_db": 99.1308904, + "ref_absmax": 10.7960281, + "rel_max": 0.000238484209, + "scaled_max_abs": 0.000238484209 + }, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;2" + }, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_ratio": 3.70448069, + "index": 2, + "metrics": { + "corr": 0.997655025, + "finite": true, + "max_abs": 0.399135947, + "mean_abs": 0.0546403044, + "psnr_db": 48.9001908, + "ref_absmax": 10.7744102, + "rel_max": 0.0370448069, + "scaled_max_abs": 0.0370448069 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;3" + }, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 4.17242681, + "index": 3, + "metrics": { + "corr": 0.997627217, + "finite": true, + "max_abs": 0.447263911, + "mean_abs": 0.0572581967, + "psnr_db": 48.6024337, + "ref_absmax": 10.7195148, + "rel_max": 0.0417242681, + "scaled_max_abs": 0.0417242681 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "natural", + "index": 9 + } + }, + { + "band_ratio": 4.57556438, + "index": 4, + "metrics": { + "corr": 0.997663969, + "finite": true, + "max_abs": 0.503477201, + "mean_abs": 0.0595949079, + "psnr_db": 48.4280919, + "ref_absmax": 11.0036087, + "rel_max": 0.0457556438, + "scaled_max_abs": 0.0457556438 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "natural", + "index": 5 + } + }, + { + "band_ratio": 4.95282079, + "index": 5, + "metrics": { + "corr": 0.997670257, + "finite": true, + "max_abs": 0.562052459, + "mean_abs": 0.0616129218, + "psnr_db": 48.4114135, + "ref_absmax": 11.3481283, + "rel_max": 0.0495282079, + "scaled_max_abs": 0.0495282079 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_ratio": 24.8922272, + "index": 6, + "metrics": { + "corr": 0.994817798, + "finite": true, + "max_abs": 1.02333847, + "mean_abs": 0.0669856244, + "psnr_db": 37.7372064, + "ref_absmax": 4.11107635, + "rel_max": 0.248922272, + "scaled_max_abs": 0.248922272 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_ratio": 3.99552725, + "index": 7, + "metrics": { + "corr": 0.999610105, + "finite": true, + "max_abs": 0.0885317326, + "mean_abs": 0.0122122467, + "psnr_db": 48.0855604, + "ref_absmax": 2.21577096, + "rel_max": 0.0399552725, + "scaled_max_abs": 0.0399552725 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_ratio": 2.62305634, + "index": 8, + "metrics": { + "corr": 0.999605771, + "finite": true, + "max_abs": 0.033209689, + "mean_abs": 0.00856573652, + "psnr_db": 46.9783484, + "ref_absmax": 1.26606846, + "rel_max": 0.0262305634, + "scaled_max_abs": 0.0262305634 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "natural", + "index": 0 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.96875, + "band_ratio": 3.06804193, + "metrics": { + "corr": 0.999336645, + "finite": true, + "max_abs": 0.0412505865, + "mean_abs": 0.0109688208, + "psnr_db": 45.2081277, + "ref_absmax": 1.34452486, + "rel_max": 0.0306804193, + "scaled_max_abs": 0.0306804193 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 13 + } + }, + "first_fail_index": 2, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 8.27203959e-06, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.2793459e-08, + "psnr_db": 164.013874, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0277319462, + "index": 1, + "metrics": { + "corr": 0.999999975, + "finite": true, + "max_abs": 0.00329208374, + "mean_abs": 0.00015256364, + "psnr_db": 99.7212805, + "ref_absmax": 11.871088, + "rel_max": 0.000277319462, + "scaled_max_abs": 0.000277319462 + }, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;2" + }, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_ratio": 4.39109585, + "index": 2, + "metrics": { + "corr": 0.995700768, + "finite": true, + "max_abs": 0.508263767, + "mean_abs": 0.0747694642, + "psnr_db": 46.8738874, + "ref_absmax": 11.574873, + "rel_max": 0.0439109585, + "scaled_max_abs": 0.0439109585 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;3" + }, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "uniform", + "index": 18 + } + }, + { + "band_ratio": 5.36433836, + "index": 3, + "metrics": { + "corr": 0.995709817, + "finite": true, + "max_abs": 0.638066024, + "mean_abs": 0.078254729, + "psnr_db": 46.8242741, + "ref_absmax": 11.8945894, + "rel_max": 0.0536433836, + "scaled_max_abs": 0.0536433836 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "natural", + "index": 12 + } + }, + { + "band_ratio": 5.387326, + "index": 4, + "metrics": { + "corr": 0.995819485, + "finite": true, + "max_abs": 0.65475522, + "mean_abs": 0.0811960315, + "psnr_db": 46.6536572, + "ref_absmax": 12.1536217, + "rel_max": 0.05387326, + "scaled_max_abs": 0.05387326 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "natural", + "index": 13 + } + }, + { + "band_ratio": 5.5725738, + "index": 5, + "metrics": { + "corr": 0.995849725, + "finite": true, + "max_abs": 0.697129846, + "mean_abs": 0.0837776103, + "psnr_db": 46.4906927, + "ref_absmax": 12.5100155, + "rel_max": 0.055725738, + "scaled_max_abs": 0.055725738 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "natural", + "index": 2 + } + }, + { + "band_ratio": 28.0041943, + "index": 6, + "metrics": { + "corr": 0.991441754, + "finite": true, + "max_abs": 1.17573851, + "mean_abs": 0.0885243336, + "psnr_db": 35.7468971, + "ref_absmax": 4.19843721, + "rel_max": 0.280041943, + "scaled_max_abs": 0.280041943 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "natural", + "index": 9 + } + }, + { + "band_ratio": 4.12728602, + "index": 7, + "metrics": { + "corr": 0.999515014, + "finite": true, + "max_abs": 0.0916987062, + "mean_abs": 0.0137824753, + "psnr_db": 47.0648028, + "ref_absmax": 2.22176766, + "rel_max": 0.0412728602, + "scaled_max_abs": 0.0412728602 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "natural", + "index": 3 + } + }, + { + "band_ratio": 3.06804193, + "index": 8, + "metrics": { + "corr": 0.999336645, + "finite": true, + "max_abs": 0.0412505865, + "mean_abs": 0.0109688208, + "psnr_db": 45.2081277, + "ref_absmax": 1.34452486, + "rel_max": 0.0306804193, + "scaled_max_abs": 0.0306804193 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "natural", + "index": 13 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp16", + "id": "tinyvit__interp_mode__litert_fp16", + "model": "tinyvit", + "path": "litert", + "variant": "interp_mode" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/tinyvit__interp_mode__litert_fp32.json b/bench/verdicts_e2e_gated/tinyvit__interp_mode__litert_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..6a12050ac9b9bc9f6c194ac1190b45303ac1df4b --- /dev/null +++ b/bench/verdicts_e2e_gated/tinyvit__interp_mode__litert_fp32.json @@ -0,0 +1,715 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "at": "net.pos_embed", + "explained_by": null, + "nominal_band_ratio": 1254.7615, + "results": [ + { + "band_ratio": 10754.7012, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 7856.00205, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 16129.2691, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 14534.1523, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 14281.7096, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 0.00209981448, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 2.83122063e-07, + "mean_abs": 4.57424903e-08, + "psnr_db": 151.924455, + "ref_absmax": 1.34831941, + "rel_max": 2.09981448e-07, + "scaled_max_abs": 2.09981448e-07 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 57, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 1, + "n_ops_total": 173, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;3", + "basis": "earliest tap over band with in-band predecessors", + "index": 2, + "neighbourhood": [ + { + "band_ratio": 0.0120503822, + "index": 1, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;2" + }, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_ratio": 438.909991, + "index": 2, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;3" + }, + "status": "fail", + "tap": "net.pos_embed" + }, + { + "band_ratio": 536.357956, + "index": 3, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.0" + } + ], + "shape": 224, + "tap": "net.pos_embed" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "de05297813092b6416293d9d52605025e6c183169d21fb4e7e134bf1d02a2eca", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "e7d7f38016371924efb644c4ba3de2b3c770c777507859bd09185735e4e6c7ea", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D2", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 262.832031, + "metrics": { + "corr": 0.999607851, + "finite": true, + "max_abs": 0.0332763344, + "mean_abs": 0.00855522651, + "psnr_db": 46.9973464, + "ref_absmax": 1.26606846, + "rel_max": 0.0262832031, + "scaled_max_abs": 0.0262832031 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + "first_fail_index": 2, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.26638033e-08, + "psnr_db": 163.904618, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.013692028, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.47819519e-05, + "mean_abs": 3.77735959e-07, + "psnr_db": 150.658464, + "ref_absmax": 10.7960281, + "rel_max": 1.3692028e-06, + "scaled_max_abs": 1.3692028e-06 + }, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;2" + }, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_ratio": 369.923658, + "index": 2, + "metrics": { + "corr": 0.997654966, + "finite": true, + "max_abs": 0.398570925, + "mean_abs": 0.0546367169, + "psnr_db": 48.9000838, + "ref_absmax": 10.7744102, + "rel_max": 0.0369923658, + "scaled_max_abs": 0.0369923658 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;3" + }, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_ratio": 417.110928, + "index": 3, + "metrics": { + "corr": 0.997627158, + "finite": true, + "max_abs": 0.447122678, + "mean_abs": 0.0572576421, + "psnr_db": 48.6023309, + "ref_absmax": 10.7195148, + "rel_max": 0.0417110928, + "scaled_max_abs": 0.0417110928 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "natural", + "index": 9 + } + }, + { + "band_ratio": 457.495892, + "index": 4, + "metrics": { + "corr": 0.997663977, + "finite": true, + "max_abs": 0.503410578, + "mean_abs": 0.059592455, + "psnr_db": 48.4281031, + "ref_absmax": 11.0036087, + "rel_max": 0.0457495892, + "scaled_max_abs": 0.0457495892 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "natural", + "index": 5 + } + }, + { + "band_ratio": 495.423696, + "index": 5, + "metrics": { + "corr": 0.997670299, + "finite": true, + "max_abs": 0.562213168, + "mean_abs": 0.0616095599, + "psnr_db": 48.4114862, + "ref_absmax": 11.3481283, + "rel_max": 0.0495423696, + "scaled_max_abs": 0.0495423696 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_ratio": 2489.96802, + "index": 6, + "metrics": { + "corr": 0.994817926, + "finite": true, + "max_abs": 1.02364486, + "mean_abs": 0.066981755, + "psnr_db": 37.737314, + "ref_absmax": 4.11107635, + "rel_max": 0.248996802, + "scaled_max_abs": 0.248996802 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_ratio": 398.922185, + "index": 7, + "metrics": { + "corr": 0.999610818, + "finite": true, + "max_abs": 0.0883920193, + "mean_abs": 0.0122021611, + "psnr_db": 48.0930145, + "ref_absmax": 2.21577096, + "rel_max": 0.0398922185, + "scaled_max_abs": 0.0398922185 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_ratio": 262.832031, + "index": 8, + "metrics": { + "corr": 0.999607851, + "finite": true, + "max_abs": 0.0332763344, + "mean_abs": 0.00855522651, + "psnr_db": 46.9973464, + "ref_absmax": 1.26606846, + "rel_max": 0.0262832031, + "scaled_max_abs": 0.0262832031 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "natural", + "index": 0 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.96875, + "band_ratio": 307.261582, + "metrics": { + "corr": 0.999338177, + "finite": true, + "max_abs": 0.0413120836, + "mean_abs": 0.0109561177, + "psnr_db": 45.215918, + "ref_absmax": 1.34452486, + "rel_max": 0.0307261582, + "scaled_max_abs": 0.0307261582 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 13 + } + }, + "first_fail_index": 2, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.2793459e-08, + "psnr_db": 164.013874, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0120503822, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-05, + "mean_abs": 3.77230551e-07, + "psnr_db": 151.208122, + "ref_absmax": 11.871088, + "rel_max": 1.20503822e-06, + "scaled_max_abs": 1.20503822e-06 + }, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;2" + }, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_ratio": 438.909991, + "index": 2, + "metrics": { + "corr": 0.995700698, + "finite": true, + "max_abs": 0.508032739, + "mean_abs": 0.074766475, + "psnr_db": 46.873816, + "ref_absmax": 11.574873, + "rel_max": 0.0438909991, + "scaled_max_abs": 0.0438909991 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;3" + }, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "natural", + "index": 14 + } + }, + { + "band_ratio": 536.357956, + "index": 3, + "metrics": { + "corr": 0.995709733, + "finite": true, + "max_abs": 0.637975767, + "mean_abs": 0.0782541538, + "psnr_db": 46.8241879, + "ref_absmax": 11.8945894, + "rel_max": 0.0536357956, + "scaled_max_abs": 0.0536357956 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "natural", + "index": 12 + } + }, + { + "band_ratio": 538.934153, + "index": 4, + "metrics": { + "corr": 0.995819516, + "finite": true, + "max_abs": 0.65500018, + "mean_abs": 0.081193673, + "psnr_db": 46.6536843, + "ref_absmax": 12.1536217, + "rel_max": 0.0538934153, + "scaled_max_abs": 0.0538934153 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "natural", + "index": 13 + } + }, + { + "band_ratio": 557.120542, + "index": 5, + "metrics": { + "corr": 0.995849765, + "finite": true, + "max_abs": 0.696958661, + "mean_abs": 0.0837744039, + "psnr_db": 46.4907288, + "ref_absmax": 12.5100155, + "rel_max": 0.0557120542, + "scaled_max_abs": 0.0557120542 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "natural", + "index": 2 + } + }, + { + "band_ratio": 2800.69428, + "index": 6, + "metrics": { + "corr": 0.991441808, + "finite": true, + "max_abs": 1.17585391, + "mean_abs": 0.0885215974, + "psnr_db": 35.7469245, + "ref_absmax": 4.19843721, + "rel_max": 0.280069428, + "scaled_max_abs": 0.280069428 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "natural", + "index": 9 + } + }, + { + "band_ratio": 411.519215, + "index": 7, + "metrics": { + "corr": 0.999515275, + "finite": true, + "max_abs": 0.0914300084, + "mean_abs": 0.0137800453, + "psnr_db": 47.0671698, + "ref_absmax": 2.22176766, + "rel_max": 0.0411519215, + "scaled_max_abs": 0.0411519215 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "natural", + "index": 3 + } + }, + { + "band_ratio": 307.261582, + "index": 8, + "metrics": { + "corr": 0.999338177, + "finite": true, + "max_abs": 0.0413120836, + "mean_abs": 0.0109561177, + "psnr_db": 45.215918, + "ref_absmax": 1.34452486, + "rel_max": 0.0307261582, + "scaled_max_abs": 0.0307261582 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "natural", + "index": 13 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp32", + "id": "tinyvit__interp_mode__litert_fp32", + "model": "tinyvit", + "path": "litert", + "variant": "interp_mode" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/tinyvit__interp_mode__onnx_fp16.json b/bench/verdicts_e2e_gated/tinyvit__interp_mode__onnx_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..96a74f5a24f6b72b66598df16036c6027606f0c9 --- /dev/null +++ b/bench/verdicts_e2e_gated/tinyvit__interp_mode__onnx_fp16.json @@ -0,0 +1,686 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "at": "net.pos_embed", + "explained_by": null, + "nominal_band_ratio": 12.5638763, + "results": [ + { + "band_ratio": 107.546871, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 78.5554542, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 161.289202, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 145.371059, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 142.870962, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "/net/pos_embed/Add_output_0", + "basis": "earliest tap over band with in-band predecessors", + "index": 2, + "neighbourhood": [ + { + "band_ratio": 0.0469161546, + "index": 1, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_ratio": 4.39533027, + "index": 2, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "status": "fail", + "tap": "net.pos_embed" + }, + { + "band_ratio": 5.36432133, + "index": 3, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.0" + } + ], + "shape": 224, + "tap": "net.pos_embed" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "713904d95e077931731b8618c74eb940fd3c73d915010e3c0a08697bc1a6e909", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "54b7f275949e7f2835b404d67d0658fb2afcc9e999c7bc2ceb81567796ad2f76", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 4.38094139e-05, + "224": 3.7163496e-05 + }, + "primary_class": "D2", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 2.59425516, + "metrics": { + "corr": 0.999611095, + "finite": true, + "max_abs": 0.0328450464, + "mean_abs": 0.00851455793, + "psnr_db": 47.0379799, + "ref_absmax": 1.26606846, + "rel_max": 0.0259425516, + "scaled_max_abs": 0.0259425516 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + "first_fail_index": 2, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 0.0441313312, + "index": 0, + "metrics": { + "corr": 0.999999966, + "finite": true, + "max_abs": 0.00508785248, + "mean_abs": 0.000405953078, + "psnr_db": 88.0186903, + "ref_absmax": 11.5288897, + "rel_max": 0.000441313312, + "scaled_max_abs": 0.000441313312 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0469150713, + "index": 1, + "metrics": { + "corr": 0.999999939, + "finite": true, + "max_abs": 0.00506496429, + "mean_abs": 0.000255633799, + "psnr_db": 95.3001421, + "ref_absmax": 10.7960281, + "rel_max": 0.000469150713, + "scaled_max_abs": 0.000469150713 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_ratio": 3.7040503, + "index": 2, + "metrics": { + "corr": 0.997654931, + "finite": true, + "max_abs": 0.399089575, + "mean_abs": 0.0546458202, + "psnr_db": 48.9000401, + "ref_absmax": 10.7744102, + "rel_max": 0.037040503, + "scaled_max_abs": 0.037040503 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "natural", + "index": 10 + } + }, + { + "band_ratio": 4.17299508, + "index": 3, + "metrics": { + "corr": 0.997627381, + "finite": true, + "max_abs": 0.447324827, + "mean_abs": 0.0572554969, + "psnr_db": 48.6027201, + "ref_absmax": 10.7195148, + "rel_max": 0.0417299508, + "scaled_max_abs": 0.0417299508 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "natural", + "index": 9 + } + }, + { + "band_ratio": 4.57630175, + "index": 4, + "metrics": { + "corr": 0.997664251, + "finite": true, + "max_abs": 0.503558338, + "mean_abs": 0.0595876189, + "psnr_db": 48.4285816, + "ref_absmax": 11.0036087, + "rel_max": 0.0457630175, + "scaled_max_abs": 0.0457630175 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "natural", + "index": 5 + } + }, + { + "band_ratio": 4.95047534, + "index": 5, + "metrics": { + "corr": 0.997670694, + "finite": true, + "max_abs": 0.561786294, + "mean_abs": 0.0616024335, + "psnr_db": 48.4121772, + "ref_absmax": 11.3481283, + "rel_max": 0.0495047534, + "scaled_max_abs": 0.0495047534 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_ratio": 24.8824487, + "index": 6, + "metrics": { + "corr": 0.994819153, + "finite": true, + "max_abs": 1.02293646, + "mean_abs": 0.0669725916, + "psnr_db": 37.738342, + "ref_absmax": 4.11107635, + "rel_max": 0.248824487, + "scaled_max_abs": 0.248824487 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_ratio": 3.94955484, + "index": 7, + "metrics": { + "corr": 0.999614053, + "finite": true, + "max_abs": 0.0875130892, + "mean_abs": 0.0121525253, + "psnr_db": 48.1258253, + "ref_absmax": 2.21577096, + "rel_max": 0.0394955484, + "scaled_max_abs": 0.0394955484 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/ReduceMean_output_0" + }, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_ratio": 2.59380939, + "index": 8, + "metrics": { + "corr": 0.999611207, + "finite": true, + "max_abs": 0.0328394026, + "mean_abs": 0.00851334348, + "psnr_db": 47.0389762, + "ref_absmax": 1.26606846, + "rel_max": 0.0259380939, + "scaled_max_abs": 0.0259380939 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "natural", + "index": 0 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.96875, + "band_ratio": 3.05143651, + "metrics": { + "corr": 0.999343298, + "finite": true, + "max_abs": 0.0410273224, + "mean_abs": 0.0109215086, + "psnr_db": 45.2561596, + "ref_absmax": 1.34452486, + "rel_max": 0.0305143651, + "scaled_max_abs": 0.0305143651 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 13 + } + }, + "first_fail_index": 2, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 0.0439328023, + "index": 0, + "metrics": { + "corr": 0.999999965, + "finite": true, + "max_abs": 0.00506496429, + "mean_abs": 0.000406712054, + "psnr_db": 88.0749992, + "ref_absmax": 11.5288897, + "rel_max": 0.000439328023, + "scaled_max_abs": 0.000439328023 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0469161546, + "index": 1, + "metrics": { + "corr": 0.99999994, + "finite": true, + "max_abs": 0.00556945801, + "mean_abs": 0.000254492238, + "psnr_db": 95.9056844, + "ref_absmax": 11.871088, + "rel_max": 0.000469161546, + "scaled_max_abs": 0.000469161546 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_ratio": 4.39533027, + "index": 2, + "metrics": { + "corr": 0.995701081, + "finite": true, + "max_abs": 0.508753896, + "mean_abs": 0.0747694967, + "psnr_db": 46.8740678, + "ref_absmax": 11.574873, + "rel_max": 0.0439533027, + "scaled_max_abs": 0.0439533027 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_ratio": 5.36432133, + "index": 3, + "metrics": { + "corr": 0.995710331, + "finite": true, + "max_abs": 0.638063997, + "mean_abs": 0.0782487846, + "psnr_db": 46.8246691, + "ref_absmax": 11.8945894, + "rel_max": 0.0536432133, + "scaled_max_abs": 0.0536432133 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "natural", + "index": 12 + } + }, + { + "band_ratio": 5.38894158, + "index": 4, + "metrics": { + "corr": 0.995820146, + "finite": true, + "max_abs": 0.654951572, + "mean_abs": 0.0811866579, + "psnr_db": 46.6542467, + "ref_absmax": 12.1536217, + "rel_max": 0.0538894158, + "scaled_max_abs": 0.0538894158 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "natural", + "index": 13 + } + }, + { + "band_ratio": 5.57247184, + "index": 5, + "metrics": { + "corr": 0.995850631, + "finite": true, + "max_abs": 0.69711709, + "mean_abs": 0.0837637378, + "psnr_db": 46.4915362, + "ref_absmax": 12.5100155, + "rel_max": 0.0557247184, + "scaled_max_abs": 0.0557247184 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "natural", + "index": 2 + } + }, + { + "band_ratio": 27.9871935, + "index": 6, + "metrics": { + "corr": 0.991443667, + "finite": true, + "max_abs": 1.17502475, + "mean_abs": 0.0885088514, + "psnr_db": 35.7478671, + "ref_absmax": 4.19843721, + "rel_max": 0.279871935, + "scaled_max_abs": 0.279871935 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "natural", + "index": 9 + } + }, + { + "band_ratio": 4.09803323, + "index": 7, + "metrics": { + "corr": 0.999519119, + "finite": true, + "max_abs": 0.0910487771, + "mean_abs": 0.0137245511, + "psnr_db": 47.1019963, + "ref_absmax": 2.22176766, + "rel_max": 0.0409803323, + "scaled_max_abs": 0.0409803323 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/ReduceMean_output_0" + }, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "natural", + "index": 3 + } + }, + { + "band_ratio": 3.05247829, + "index": 8, + "metrics": { + "corr": 0.999343345, + "finite": true, + "max_abs": 0.0410413295, + "mean_abs": 0.0109211477, + "psnr_db": 45.2564371, + "ref_absmax": 1.34452486, + "rel_max": 0.0305247829, + "scaled_max_abs": 0.0305247829 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "natural", + "index": 13 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp16", + "id": "tinyvit__interp_mode__onnx_fp16", + "model": "tinyvit", + "path": "onnx", + "variant": "interp_mode" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/tinyvit__interp_mode__onnx_fp32.json b/bench/verdicts_e2e_gated/tinyvit__interp_mode__onnx_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..a15fab4d4f8b7c140c6fe9eacf3be90b5c8d5863 --- /dev/null +++ b/bench/verdicts_e2e_gated/tinyvit__interp_mode__onnx_fp32.json @@ -0,0 +1,686 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "at": "net.pos_embed", + "explained_by": null, + "nominal_band_ratio": 1254.7615, + "results": [ + { + "band_ratio": 10754.6971, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 7856.00124, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 16129.2653, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 14534.1472, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 14281.7159, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "/net/pos_embed/Add_output_0", + "basis": "earliest tap over band with in-band predecessors", + "index": 2, + "neighbourhood": [ + { + "band_ratio": 0.0104436645, + "index": 1, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_ratio": 438.910043, + "index": 2, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "status": "fail", + "tap": "net.pos_embed" + }, + { + "band_ratio": 536.357893, + "index": 3, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.0" + } + ], + "shape": 224, + "tap": "net.pos_embed" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "0685082a96bc2e00ac32de8a6a5a5f918039fe9fa16b0c50a0faeb7e69f25d9c", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "14632c234ee5486df9ceef73a59eb0c8e9eeb357e1eab4b549caa5f336ac6006", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 1.49011612e-07, + "224": 1.78813934e-07 + }, + "primary_class": "D2", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 262.831913, + "metrics": { + "corr": 0.999607851, + "finite": true, + "max_abs": 0.0332763195, + "mean_abs": 0.00855522419, + "psnr_db": 46.9973485, + "ref_absmax": 1.26606846, + "rel_max": 0.0262831913, + "scaled_max_abs": 0.0262831913 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + "first_fail_index": 2, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 0.0, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 11.5288897, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0119253147, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.28746033e-05, + "mean_abs": 3.19462653e-07, + "psnr_db": 151.866979, + "ref_absmax": 10.7960281, + "rel_max": 1.19253147e-06, + "scaled_max_abs": 1.19253147e-06 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_ratio": 369.92482, + "index": 2, + "metrics": { + "corr": 0.997654966, + "finite": true, + "max_abs": 0.398572177, + "mean_abs": 0.0546367293, + "psnr_db": 48.9000831, + "ref_absmax": 10.7744102, + "rel_max": 0.036992482, + "scaled_max_abs": 0.036992482 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "saturating", + "index": 29 + } + }, + { + "band_ratio": 417.110942, + "index": 3, + "metrics": { + "corr": 0.997627157, + "finite": true, + "max_abs": 0.447122693, + "mean_abs": 0.0572576578, + "psnr_db": 48.6023301, + "ref_absmax": 10.7195148, + "rel_max": 0.0417110942, + "scaled_max_abs": 0.0417110942 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "natural", + "index": 9 + } + }, + { + "band_ratio": 457.496095, + "index": 4, + "metrics": { + "corr": 0.997663977, + "finite": true, + "max_abs": 0.503410801, + "mean_abs": 0.0595924693, + "psnr_db": 48.4281024, + "ref_absmax": 11.0036087, + "rel_max": 0.0457496095, + "scaled_max_abs": 0.0457496095 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "natural", + "index": 5 + } + }, + { + "band_ratio": 495.423998, + "index": 5, + "metrics": { + "corr": 0.997670299, + "finite": true, + "max_abs": 0.56221351, + "mean_abs": 0.0616095747, + "psnr_db": 48.4114856, + "ref_absmax": 11.3481283, + "rel_max": 0.0495423998, + "scaled_max_abs": 0.0495423998 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_ratio": 2489.96969, + "index": 6, + "metrics": { + "corr": 0.994817925, + "finite": true, + "max_abs": 1.02364555, + "mean_abs": 0.0669817705, + "psnr_db": 37.7373136, + "ref_absmax": 4.11107635, + "rel_max": 0.248996969, + "scaled_max_abs": 0.248996969 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_ratio": 398.922454, + "index": 7, + "metrics": { + "corr": 0.999610818, + "finite": true, + "max_abs": 0.0883920789, + "mean_abs": 0.0122021635, + "psnr_db": 48.0930151, + "ref_absmax": 2.21577096, + "rel_max": 0.0398922454, + "scaled_max_abs": 0.0398922454 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/ReduceMean_output_0" + }, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_ratio": 262.831678, + "index": 8, + "metrics": { + "corr": 0.999607851, + "finite": true, + "max_abs": 0.0332762897, + "mean_abs": 0.00855522586, + "psnr_db": 46.9973469, + "ref_absmax": 1.26606846, + "rel_max": 0.0262831678, + "scaled_max_abs": 0.0262831678 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "natural", + "index": 0 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 0.96875, + "band_ratio": 307.261582, + "metrics": { + "corr": 0.999338177, + "finite": true, + "max_abs": 0.0413120836, + "mean_abs": 0.0109561356, + "psnr_db": 45.2159128, + "ref_absmax": 1.34452486, + "rel_max": 0.0307261582, + "scaled_max_abs": 0.0307261582 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 13 + } + }, + "first_fail_index": 2, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 0.0, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 11.5288897, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0104436645, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.23977661e-05, + "mean_abs": 3.18193685e-07, + "psnr_db": 152.441072, + "ref_absmax": 11.871088, + "rel_max": 1.04436645e-06, + "scaled_max_abs": 1.04436645e-06 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_ratio": 438.910043, + "index": 2, + "metrics": { + "corr": 0.995700698, + "finite": true, + "max_abs": 0.508032799, + "mean_abs": 0.0747664743, + "psnr_db": 46.873816, + "ref_absmax": 11.574873, + "rel_max": 0.0438910043, + "scaled_max_abs": 0.0438910043 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "saturating", + "index": 31 + } + }, + { + "band_ratio": 536.357893, + "index": 3, + "metrics": { + "corr": 0.995709733, + "finite": true, + "max_abs": 0.637975693, + "mean_abs": 0.0782541546, + "psnr_db": 46.8241878, + "ref_absmax": 11.8945894, + "rel_max": 0.0536357893, + "scaled_max_abs": 0.0536357893 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "natural", + "index": 12 + } + }, + { + "band_ratio": 538.934275, + "index": 4, + "metrics": { + "corr": 0.995819516, + "finite": true, + "max_abs": 0.655000329, + "mean_abs": 0.0811936737, + "psnr_db": 46.6536843, + "ref_absmax": 12.1536217, + "rel_max": 0.0538934275, + "scaled_max_abs": 0.0538934275 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "natural", + "index": 13 + } + }, + { + "band_ratio": 557.120352, + "index": 5, + "metrics": { + "corr": 0.995849765, + "finite": true, + "max_abs": 0.696958423, + "mean_abs": 0.0837744048, + "psnr_db": 46.4907288, + "ref_absmax": 12.5100155, + "rel_max": 0.0557120352, + "scaled_max_abs": 0.0557120352 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "natural", + "index": 2 + } + }, + { + "band_ratio": 2800.69272, + "index": 6, + "metrics": { + "corr": 0.991441808, + "finite": true, + "max_abs": 1.17585325, + "mean_abs": 0.0885215986, + "psnr_db": 35.7469244, + "ref_absmax": 4.19843721, + "rel_max": 0.280069272, + "scaled_max_abs": 0.280069272 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "natural", + "index": 9 + } + }, + { + "band_ratio": 411.51841, + "index": 7, + "metrics": { + "corr": 0.999515275, + "finite": true, + "max_abs": 0.0914298296, + "mean_abs": 0.0137800527, + "psnr_db": 47.0671686, + "ref_absmax": 2.22176766, + "rel_max": 0.041151841, + "scaled_max_abs": 0.041151841 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/ReduceMean_output_0" + }, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "natural", + "index": 3 + } + }, + { + "band_ratio": 307.261471, + "index": 8, + "metrics": { + "corr": 0.999338177, + "finite": true, + "max_abs": 0.0413120687, + "mean_abs": 0.010956133, + "psnr_db": 45.2159151, + "ref_absmax": 1.34452486, + "rel_max": 0.0307261471, + "scaled_max_abs": 0.0307261471 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "natural", + "index": 13 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp32", + "id": "tinyvit__interp_mode__onnx_fp32", + "model": "tinyvit", + "path": "onnx", + "variant": "interp_mode" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/tinyvit__layout_swap__coreml_fp16.json b/bench/verdicts_e2e_gated/tinyvit__layout_swap__coreml_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..e9ccffa0c98614ffc4a44e5149b31806a4117610 --- /dev/null +++ b/bench/verdicts_e2e_gated/tinyvit__layout_swap__coreml_fp16.json @@ -0,0 +1,697 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "at": "net.patch_embed", + "explained_by": null, + "nominal_band_ratio": 164.309013, + "results": [ + { + "band_ratio": 164.309013, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 105.322474, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 233.967175, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 124.484914, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 309.982519, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [ + "inputs[0]: dtype float16 (declared float32)", + "outputs[0]: dtype float16 (declared float32)" + ], + "status": "precision_narrowing" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "x_7_cast_fp16", + "basis": "earliest tap over band with in-band predecessors", + "index": 1, + "neighbourhood": [ + { + "band_ratio": 0.116213884, + "index": 0, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 60.5663696, + "index": 1, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_7_cast_fp16" + }, + "status": "fail", + "tap": "net.patch_embed" + }, + { + "band_ratio": 62.1174735, + "index": 2, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5_cast_fp16" + }, + "status": "fail", + "tap": "net.pos_embed" + } + ], + "shape": 224, + "tap": "net.patch_embed" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "7c20fc5f020a541238b4104c884048553382507b18c4b1202de98ab817682e8e", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "8e69ca9da82f23070e7f5e6a1d2f0b47856ae81efa6ec0e1df09128fa3f5a6a5", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D2", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.96875, + "band_ratio": 4.43891123, + "metrics": { + "corr": 0.999252472, + "finite": true, + "max_abs": 0.0561996549, + "mean_abs": 0.00881224286, + "psnr_db": 45.260752, + "ref_absmax": 1.26606846, + "rel_max": 0.0443891123, + "scaled_max_abs": 0.0443891123 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 8 + } + }, + "first_fail_index": 1, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 0.117570499, + "index": 0, + "metrics": { + "corr": 0.999999914, + "finite": true, + "max_abs": 0.0135545731, + "mean_abs": 0.000674526699, + "psnr_db": 83.5827466, + "ref_absmax": 11.5288897, + "rel_max": 0.00117570499, + "scaled_max_abs": 0.00117570499 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 95.7724848, + "index": 1, + "metrics": { + "corr": 0.627222109, + "finite": true, + "max_abs": 10.3396244, + "mean_abs": 0.548092992, + "psnr_db": 27.4422697, + "ref_absmax": 10.7960281, + "rel_max": 0.957724848, + "scaled_max_abs": 0.957724848 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_7_cast_fp16" + }, + "status": "fail", + "tap": "net.patch_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 95.9666441, + "index": 2, + "metrics": { + "corr": 0.665984961, + "finite": true, + "max_abs": 10.3398399, + "mean_abs": 0.548095322, + "psnr_db": 27.3614292, + "ref_absmax": 10.7744102, + "rel_max": 0.959666441, + "scaled_max_abs": 0.959666441 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5_cast_fp16" + }, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 97.3762805, + "index": 3, + "metrics": { + "corr": 0.680760174, + "finite": true, + "max_abs": 10.4382648, + "mean_abs": 0.561426286, + "psnr_db": 27.3116862, + "ref_absmax": 10.7195148, + "rel_max": 0.973762805, + "scaled_max_abs": 0.973762805 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_17_cast_fp16" + }, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 93.8134375, + "index": 4, + "metrics": { + "corr": 0.697112888, + "finite": true, + "max_abs": 10.3228636, + "mean_abs": 0.579076319, + "psnr_db": 27.2966564, + "ref_absmax": 11.0036087, + "rel_max": 0.938134375, + "scaled_max_abs": 0.938134375 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_29_cast_fp16" + }, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 92.0802059, + "index": 5, + "metrics": { + "corr": 0.70278784, + "finite": true, + "max_abs": 10.4493799, + "mean_abs": 0.596577526, + "psnr_db": 27.3511884, + "ref_absmax": 11.3481283, + "rel_max": 0.920802059, + "scaled_max_abs": 0.920802059 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_41_cast_fp16" + }, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 124.125488, + "index": 6, + "metrics": { + "corr": 0.612377083, + "finite": true, + "max_abs": 5.10289359, + "mean_abs": 0.588488751, + "psnr_db": 18.9982534, + "ref_absmax": 4.11107635, + "rel_max": 1.24125488, + "scaled_max_abs": 1.24125488 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "uniform", + "index": 17 + } + }, + { + "band_ratio": 4.94286024, + "index": 7, + "metrics": { + "corr": 0.999348309, + "finite": true, + "max_abs": 0.109522462, + "mean_abs": 0.0136691373, + "psnr_db": 46.2017969, + "ref_absmax": 2.21577096, + "rel_max": 0.0494286024, + "scaled_max_abs": 0.0494286024 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_cast_fp16" + }, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_ratio": 4.43891123, + "index": 8, + "metrics": { + "corr": 0.999252472, + "finite": true, + "max_abs": 0.0561996549, + "mean_abs": 0.00881224286, + "psnr_db": 45.260752, + "ref_absmax": 1.26606846, + "rel_max": 0.0443891123, + "scaled_max_abs": 0.0443891123 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "natural", + "index": 8 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 4.07391544, + "metrics": { + "corr": 0.999264863, + "finite": true, + "max_abs": 0.0547748059, + "mean_abs": 0.00897421876, + "psnr_db": 45.4152695, + "ref_absmax": 1.34452486, + "rel_max": 0.0407391544, + "scaled_max_abs": 0.0407391544 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 13 + } + }, + "first_fail_index": 1, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 0.116213884, + "index": 0, + "metrics": { + "corr": 0.999999912, + "finite": true, + "max_abs": 0.0133981705, + "mean_abs": 0.000679588388, + "psnr_db": 83.6184843, + "ref_absmax": 11.5288897, + "rel_max": 0.00116213884, + "scaled_max_abs": 0.00116213884 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 60.5663696, + "index": 1, + "metrics": { + "corr": 0.645748025, + "finite": true, + "max_abs": 7.18988705, + "mean_abs": 0.544147462, + "psnr_db": 28.2146582, + "ref_absmax": 11.871088, + "rel_max": 0.605663696, + "scaled_max_abs": 0.605663696 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_7_cast_fp16" + }, + "status": "fail", + "tap": "net.patch_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 62.1174735, + "index": 2, + "metrics": { + "corr": 0.678705712, + "finite": true, + "max_abs": 7.19001865, + "mean_abs": 0.544148798, + "psnr_db": 28.1558318, + "ref_absmax": 11.574873, + "rel_max": 0.621174735, + "scaled_max_abs": 0.621174735 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5_cast_fp16" + }, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 61.1439388, + "index": 3, + "metrics": { + "corr": 0.69319341, + "finite": true, + "max_abs": 7.27282047, + "mean_abs": 0.559744468, + "psnr_db": 28.2983735, + "ref_absmax": 11.8945894, + "rel_max": 0.611439388, + "scaled_max_abs": 0.611439388 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_17_cast_fp16" + }, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 62.0008787, + "index": 4, + "metrics": { + "corr": 0.712158829, + "finite": true, + "max_abs": 7.53535223, + "mean_abs": 0.575071305, + "psnr_db": 28.2930719, + "ref_absmax": 12.1536217, + "rel_max": 0.620008787, + "scaled_max_abs": 0.620008787 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_29_cast_fp16" + }, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 60.3282315, + "index": 5, + "metrics": { + "corr": 0.717972646, + "finite": true, + "max_abs": 7.5470711, + "mean_abs": 0.592208315, + "psnr_db": 28.18717, + "ref_absmax": 12.5100155, + "rel_max": 0.603282315, + "scaled_max_abs": 0.603282315 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_41_cast_fp16" + }, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 128.597233, + "index": 6, + "metrics": { + "corr": 0.620064209, + "finite": true, + "max_abs": 5.39907408, + "mean_abs": 0.58453541, + "psnr_db": 19.2736446, + "ref_absmax": 4.19843721, + "rel_max": 1.28597233, + "scaled_max_abs": 1.28597233 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "uniform", + "index": 18 + } + }, + { + "band_ratio": 5.05160607, + "index": 7, + "metrics": { + "corr": 0.999276521, + "finite": true, + "max_abs": 0.11223495, + "mean_abs": 0.0149846323, + "psnr_db": 45.3245012, + "ref_absmax": 2.22176766, + "rel_max": 0.0505160607, + "scaled_max_abs": 0.0505160607 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_cast_fp16" + }, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "natural", + "index": 13 + } + }, + { + "band_ratio": 4.07391544, + "index": 8, + "metrics": { + "corr": 0.999264863, + "finite": true, + "max_abs": 0.0547748059, + "mean_abs": 0.00897421876, + "psnr_db": 45.4152695, + "ref_absmax": 1.34452486, + "rel_max": 0.0407391544, + "scaled_max_abs": 0.0407391544 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "natural", + "index": 13 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp16", + "id": "tinyvit__layout_swap__coreml_fp16", + "model": "tinyvit", + "path": "coreml", + "variant": "layout_swap" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/tinyvit__layout_swap__coreml_fp32.json b/bench/verdicts_e2e_gated/tinyvit__layout_swap__coreml_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..de25b455e1be632b495727cb79880c785b7399ea --- /dev/null +++ b/bench/verdicts_e2e_gated/tinyvit__layout_swap__coreml_fp32.json @@ -0,0 +1,694 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "at": "net.patch_embed", + "explained_by": null, + "nominal_band_ratio": 16415.6014, + "results": [ + { + "band_ratio": 16415.6014, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 10528.9805, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 23397.8436, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 12440.525, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 31002.959, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "x_7", + "basis": "earliest tap over band with in-band predecessors", + "index": 1, + "neighbourhood": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 6052.99679, + "index": 1, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_7" + }, + "status": "fail", + "tap": "net.patch_embed" + }, + { + "band_ratio": 6207.90038, + "index": 2, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5" + }, + "status": "fail", + "tap": "net.pos_embed" + } + ], + "shape": 224, + "tap": "net.patch_embed" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "e74446a3f9ab0edda7d0fa1321422b8cb504ed638ab5fb894f93e7c860d4ac4b", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "5cc3d90e5d3a075507d078151317c7d721c337bcdbf57d218b41db6e03cdd5d9", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D2", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.96875, + "band_ratio": 448.082407, + "metrics": { + "corr": 0.99925546, + "finite": true, + "max_abs": 0.0567303002, + "mean_abs": 0.00849529961, + "psnr_db": 45.2827582, + "ref_absmax": 1.26606846, + "rel_max": 0.0448082407, + "scaled_max_abs": 0.0448082407 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 8 + } + }, + "first_fail_index": 1, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.26638033e-08, + "psnr_db": 163.904618, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 9577.74631, + "index": 1, + "metrics": { + "corr": 0.627298694, + "finite": true, + "max_abs": 10.3401619, + "mean_abs": 0.54737084, + "psnr_db": 27.4430306, + "ref_absmax": 10.7960281, + "rel_max": 0.957774631, + "scaled_max_abs": 0.957774631 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_7" + }, + "status": "fail", + "tap": "net.patch_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9596.963, + "index": 2, + "metrics": { + "corr": 0.66605018, + "finite": true, + "max_abs": 10.3401617, + "mean_abs": 0.54737084, + "psnr_db": 27.3621918, + "ref_absmax": 10.7744102, + "rel_max": 0.9596963, + "scaled_max_abs": 0.9596963 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5" + }, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9755.92662, + "index": 3, + "metrics": { + "corr": 0.680815556, + "finite": true, + "max_abs": 10.45788, + "mean_abs": 0.560819249, + "psnr_db": 27.3123914, + "ref_absmax": 10.7195148, + "rel_max": 0.975592662, + "scaled_max_abs": 0.975592662 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_17" + }, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9393.48844, + "index": 4, + "metrics": { + "corr": 0.697154091, + "finite": true, + "max_abs": 10.3362271, + "mean_abs": 0.578474837, + "psnr_db": 27.2973791, + "ref_absmax": 11.0036087, + "rel_max": 0.939348844, + "scaled_max_abs": 0.939348844 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_29" + }, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9208.82152, + "index": 5, + "metrics": { + "corr": 0.702830772, + "finite": true, + "max_abs": 10.4502888, + "mean_abs": 0.595958077, + "psnr_db": 27.3518929, + "ref_absmax": 11.3481283, + "rel_max": 0.920882152, + "scaled_max_abs": 0.920882152 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_41" + }, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 12432.9999, + "index": 6, + "metrics": { + "corr": 0.61239605, + "finite": true, + "max_abs": 5.11130118, + "mean_abs": 0.588098673, + "psnr_db": 18.9984679, + "ref_absmax": 4.11107635, + "rel_max": 1.24329999, + "scaled_max_abs": 1.24329999 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x" + }, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "uniform", + "index": 17 + } + }, + { + "band_ratio": 498.126833, + "index": 7, + "metrics": { + "corr": 0.999351269, + "finite": true, + "max_abs": 0.110373497, + "mean_abs": 0.0133109452, + "psnr_db": 46.2217122, + "ref_absmax": 2.21577096, + "rel_max": 0.0498126833, + "scaled_max_abs": 0.0498126833 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_1" + }, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_ratio": 448.082407, + "index": 8, + "metrics": { + "corr": 0.99925546, + "finite": true, + "max_abs": 0.0567303002, + "mean_abs": 0.00849529961, + "psnr_db": 45.2827582, + "ref_absmax": 1.26606846, + "rel_max": 0.0448082407, + "scaled_max_abs": 0.0448082407 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "natural", + "index": 8 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 404.515989, + "metrics": { + "corr": 0.999274122, + "finite": true, + "max_abs": 0.0543881804, + "mean_abs": 0.00871554029, + "psnr_db": 45.4696172, + "ref_absmax": 1.34452486, + "rel_max": 0.0404515989, + "scaled_max_abs": 0.0404515989 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 13 + } + }, + "first_fail_index": 1, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.2793459e-08, + "psnr_db": 164.013874, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 6052.99679, + "index": 1, + "metrics": { + "corr": 0.645809246, + "finite": true, + "max_abs": 7.18556577, + "mean_abs": 0.54352553, + "psnr_db": 28.2149764, + "ref_absmax": 11.871088, + "rel_max": 0.605299679, + "scaled_max_abs": 0.605299679 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_7" + }, + "status": "fail", + "tap": "net.patch_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6207.90038, + "index": 2, + "metrics": { + "corr": 0.678757238, + "finite": true, + "max_abs": 7.18556583, + "mean_abs": 0.54352553, + "psnr_db": 28.1561496, + "ref_absmax": 11.574873, + "rel_max": 0.620790038, + "scaled_max_abs": 0.620790038 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5" + }, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6118.9306, + "index": 3, + "metrics": { + "corr": 0.693240829, + "finite": true, + "max_abs": 7.27821672, + "mean_abs": 0.55923571, + "psnr_db": 28.2986609, + "ref_absmax": 11.8945894, + "rel_max": 0.61189306, + "scaled_max_abs": 0.61189306 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_17" + }, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6200.16506, + "index": 4, + "metrics": { + "corr": 0.712190152, + "finite": true, + "max_abs": 7.53544605, + "mean_abs": 0.574556264, + "psnr_db": 28.2933997, + "ref_absmax": 12.1536217, + "rel_max": 0.620016506, + "scaled_max_abs": 0.620016506 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_29" + }, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6044.99792, + "index": 5, + "metrics": { + "corr": 0.718005024, + "finite": true, + "max_abs": 7.56230175, + "mean_abs": 0.591698432, + "psnr_db": 28.1874187, + "ref_absmax": 12.5100155, + "rel_max": 0.604499792, + "scaled_max_abs": 0.604499792 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_41" + }, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 12867.941, + "index": 6, + "metrics": { + "corr": 0.620086772, + "finite": true, + "max_abs": 5.40252423, + "mean_abs": 0.584191571, + "psnr_db": 19.2739008, + "ref_absmax": 4.19843721, + "rel_max": 1.2867941, + "scaled_max_abs": 1.2867941 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x" + }, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "uniform", + "index": 18 + } + }, + { + "band_ratio": 505.648734, + "index": 7, + "metrics": { + "corr": 0.99927707, + "finite": true, + "max_abs": 0.112343401, + "mean_abs": 0.014716173, + "psnr_db": 45.3274424, + "ref_absmax": 2.22176766, + "rel_max": 0.0505648734, + "scaled_max_abs": 0.0505648734 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_1" + }, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "natural", + "index": 13 + } + }, + { + "band_ratio": 404.515989, + "index": 8, + "metrics": { + "corr": 0.999274122, + "finite": true, + "max_abs": 0.0543881804, + "mean_abs": 0.00871554029, + "psnr_db": 45.4696172, + "ref_absmax": 1.34452486, + "rel_max": 0.0404515989, + "scaled_max_abs": 0.0404515989 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "natural", + "index": 13 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp32", + "id": "tinyvit__layout_swap__coreml_fp32", + "model": "tinyvit", + "path": "coreml", + "variant": "layout_swap" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/tinyvit__layout_swap__litert_fp16.json b/bench/verdicts_e2e_gated/tinyvit__layout_swap__litert_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..c3d6ea4cbe87ae4bd7af9a620bee39e0219d348f --- /dev/null +++ b/bench/verdicts_e2e_gated/tinyvit__layout_swap__litert_fp16.json @@ -0,0 +1,703 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "at": "net.pos_embed", + "explained_by": null, + "nominal_band_ratio": 147.541272, + "results": [ + { + "band_ratio": 147.541272, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 102.070117, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 158.206482, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 108.744919, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 178.784706, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 1.32978641e-05, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.78813934e-07, + "mean_abs": 4.45637852e-08, + "psnr_db": 152.376967, + "ref_absmax": 1.34468162, + "rel_max": 1.32978641e-07, + "scaled_max_abs": 1.32978641e-07 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 58, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 1, + "n_ops_total": 188, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;4", + "basis": "earliest tap over band with in-band predecessors", + "index": 2, + "neighbourhood": [ + { + "index": 1, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed;;zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;1" + }, + "status": "not_judgeable", + "tap": "net.patch_embed" + }, + { + "band_ratio": 62.0806254, + "index": 2, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;4" + }, + "status": "fail", + "tap": "net.pos_embed" + }, + { + "band_ratio": 61.1874379, + "index": 3, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.0" + } + ], + "shape": 224, + "tap": "net.pos_embed" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "4377fd3a2e65fb8f34baadac4c5265863b760cc793f50c466bb8bb50b7ba0b53", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "c503305976cf8457af6e11b9874fb147a945bbced30190d808716262c32d3b39", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "tap net.patch_embed @ 224", + "reason": "artifact tensor shape is not a layout of the reference shape" + }, + { + "item": "tap net.patch_embed @ 192", + "reason": "artifact tensor shape is not a layout of the reference shape" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D2", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.96875, + "band_ratio": 4.47623509, + "metrics": { + "corr": 0.999255511, + "finite": true, + "max_abs": 0.0566722006, + "mean_abs": 0.00851234652, + "psnr_db": 45.2827018, + "ref_absmax": 1.26606846, + "rel_max": 0.0447623509, + "scaled_max_abs": 0.0447623509 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 8 + } + }, + "first_fail_index": 2, + "n_judged": 8, + "n_taps": 9, + "taps": [ + { + "band_ratio": 8.27203959e-06, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.26638033e-08, + "psnr_db": 163.904618, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize" + }, + { + "index": 1, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed;;zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;1" + }, + "reason": "artifact tensor shape is not a layout of the reference shape", + "status": "not_judgeable", + "tap": "net.patch_embed" + }, + { + "band_ratio": 95.9751444, + "index": 2, + "metrics": { + "corr": 0.666048518, + "finite": true, + "max_abs": 10.3407558, + "mean_abs": 0.5473986, + "psnr_db": 27.3621759, + "ref_absmax": 10.7744102, + "rel_max": 0.959751444, + "scaled_max_abs": 0.959751444 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;4" + }, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 97.5654048, + "index": 3, + "metrics": { + "corr": 0.680814187, + "finite": true, + "max_abs": 10.4585381, + "mean_abs": 0.560825615, + "psnr_db": 27.312385, + "ref_absmax": 10.7195148, + "rel_max": 0.975654048, + "scaled_max_abs": 0.975654048 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 93.9399892, + "index": 4, + "metrics": { + "corr": 0.697153491, + "finite": true, + "max_abs": 10.3367888, + "mean_abs": 0.578480304, + "psnr_db": 27.2973821, + "ref_absmax": 11.0036087, + "rel_max": 0.939399892, + "scaled_max_abs": 0.939399892 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 92.0914003, + "index": 5, + "metrics": { + "corr": 0.702829912, + "finite": true, + "max_abs": 10.4506503, + "mean_abs": 0.595963258, + "psnr_db": 27.3518923, + "ref_absmax": 11.3481283, + "rel_max": 0.920914003, + "scaled_max_abs": 0.920914003 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 124.322634, + "index": 6, + "metrics": { + "corr": 0.612395961, + "finite": true, + "max_abs": 5.11099839, + "mean_abs": 0.588102183, + "psnr_db": 18.9984669, + "ref_absmax": 4.11107635, + "rel_max": 1.24322634, + "scaled_max_abs": 1.24322634 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "uniform", + "index": 17 + } + }, + { + "band_ratio": 4.97506514, + "index": 7, + "metrics": { + "corr": 0.999351323, + "finite": true, + "max_abs": 0.110236049, + "mean_abs": 0.0133312245, + "psnr_db": 46.2220754, + "ref_absmax": 2.21577096, + "rel_max": 0.0497506514, + "scaled_max_abs": 0.0497506514 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_ratio": 4.47623509, + "index": 8, + "metrics": { + "corr": 0.999255511, + "finite": true, + "max_abs": 0.0566722006, + "mean_abs": 0.00851234652, + "psnr_db": 45.2827018, + "ref_absmax": 1.26606846, + "rel_max": 0.0447623509, + "scaled_max_abs": 0.0447623509 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "natural", + "index": 8 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 4.03456137, + "metrics": { + "corr": 0.999273921, + "finite": true, + "max_abs": 0.0542456806, + "mean_abs": 0.00873403352, + "psnr_db": 45.4681147, + "ref_absmax": 1.34452486, + "rel_max": 0.0403456137, + "scaled_max_abs": 0.0403456137 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 13 + } + }, + "first_fail_index": 2, + "n_judged": 8, + "n_taps": 9, + "taps": [ + { + "band_ratio": 8.27203959e-06, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.2793459e-08, + "psnr_db": 164.013874, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize" + }, + { + "index": 1, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed;;zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;1" + }, + "reason": "artifact tensor shape is not a layout of the reference shape", + "status": "not_judgeable", + "tap": "net.patch_embed" + }, + { + "band_ratio": 62.0806254, + "index": 2, + "metrics": { + "corr": 0.678755324, + "finite": true, + "max_abs": 7.18575352, + "mean_abs": 0.543548744, + "psnr_db": 28.1561272, + "ref_absmax": 11.574873, + "rel_max": 0.620806254, + "scaled_max_abs": 0.620806254 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;4" + }, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 61.1874379, + "index": 3, + "metrics": { + "corr": 0.693238998, + "finite": true, + "max_abs": 7.27799451, + "mean_abs": 0.559241285, + "psnr_db": 28.298643, + "ref_absmax": 11.8945894, + "rel_max": 0.611874379, + "scaled_max_abs": 0.611874379 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 61.9989905, + "index": 4, + "metrics": { + "corr": 0.71218878, + "finite": true, + "max_abs": 7.53512275, + "mean_abs": 0.574561321, + "psnr_db": 28.2933854, + "ref_absmax": 12.1536217, + "rel_max": 0.619989905, + "scaled_max_abs": 0.619989905 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 60.4453823, + "index": 5, + "metrics": { + "corr": 0.718003316, + "finite": true, + "max_abs": 7.56172669, + "mean_abs": 0.591704272, + "psnr_db": 28.1873994, + "ref_absmax": 12.5100155, + "rel_max": 0.604453823, + "scaled_max_abs": 0.604453823 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 128.682193, + "index": 6, + "metrics": { + "corr": 0.620086327, + "finite": true, + "max_abs": 5.40264106, + "mean_abs": 0.584195388, + "psnr_db": 19.2738957, + "ref_absmax": 4.19843721, + "rel_max": 1.28682193, + "scaled_max_abs": 1.28682193 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "uniform", + "index": 18 + } + }, + { + "band_ratio": 5.05030895, + "index": 7, + "metrics": { + "corr": 0.999277082, + "finite": true, + "max_abs": 0.112206131, + "mean_abs": 0.0147379671, + "psnr_db": 45.3274771, + "ref_absmax": 2.22176766, + "rel_max": 0.0505030895, + "scaled_max_abs": 0.0505030895 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "natural", + "index": 13 + } + }, + { + "band_ratio": 4.03456137, + "index": 8, + "metrics": { + "corr": 0.999273921, + "finite": true, + "max_abs": 0.0542456806, + "mean_abs": 0.00873403352, + "psnr_db": 45.4681147, + "ref_absmax": 1.34452486, + "rel_max": 0.0403456137, + "scaled_max_abs": 0.0403456137 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "natural", + "index": 13 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp16", + "id": "tinyvit__layout_swap__litert_fp16", + "model": "tinyvit", + "path": "litert", + "variant": "layout_swap" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/tinyvit__layout_swap__litert_fp32.json b/bench/verdicts_e2e_gated/tinyvit__layout_swap__litert_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..058542058411332198cd5ff07bb5abf4041f0c90 --- /dev/null +++ b/bench/verdicts_e2e_gated/tinyvit__layout_swap__litert_fp32.json @@ -0,0 +1,703 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "at": "net.pos_embed", + "explained_by": null, + "nominal_band_ratio": 14753.7998, + "results": [ + { + "band_ratio": 14753.7992, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 10206.957, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 15819.2877, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 10875.0057, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 17877.8761, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 0.00132983404, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.78813934e-07, + "mean_abs": 4.75818524e-08, + "psnr_db": 152.078289, + "ref_absmax": 1.34463346, + "rel_max": 1.32983404e-07, + "scaled_max_abs": 1.32983404e-07 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 58, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 1, + "n_ops_total": 174, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;4", + "basis": "earliest tap over band with in-band predecessors", + "index": 2, + "neighbourhood": [ + { + "index": 1, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed;;zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;1" + }, + "status": "not_judgeable", + "tap": "net.patch_embed" + }, + { + "band_ratio": 6207.9012, + "index": 2, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;4" + }, + "status": "fail", + "tap": "net.pos_embed" + }, + { + "band_ratio": 6118.9322, + "index": 3, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.0" + } + ], + "shape": 224, + "tap": "net.pos_embed" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "af44fe87e78b3b960d57fc518cee2ad0189d2112a2ed4279a8c8ecaaf103f226", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "8a042d2604440312a37d18312e4e03b39abae3e1c4d246e94b01f24d18092bc7", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "tap net.patch_embed @ 224", + "reason": "artifact tensor shape is not a layout of the reference shape" + }, + { + "item": "tap net.patch_embed @ 192", + "reason": "artifact tensor shape is not a layout of the reference shape" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D2", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.96875, + "band_ratio": 448.082289, + "metrics": { + "corr": 0.999255459, + "finite": true, + "max_abs": 0.0567302853, + "mean_abs": 0.00849530729, + "psnr_db": 45.2827547, + "ref_absmax": 1.26606846, + "rel_max": 0.0448082289, + "scaled_max_abs": 0.0448082289 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 8 + } + }, + "first_fail_index": 2, + "n_judged": 8, + "n_taps": 9, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.26638033e-08, + "psnr_db": 163.904618, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize" + }, + { + "index": 1, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed;;zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;1" + }, + "reason": "artifact tensor shape is not a layout of the reference shape", + "status": "not_judgeable", + "tap": "net.patch_embed" + }, + { + "band_ratio": 9596.96187, + "index": 2, + "metrics": { + "corr": 0.666050179, + "finite": true, + "max_abs": 10.3401604, + "mean_abs": 0.547370883, + "psnr_db": 27.3621918, + "ref_absmax": 10.7744102, + "rel_max": 0.959696187, + "scaled_max_abs": 0.959696187 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;4" + }, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9755.91861, + "index": 3, + "metrics": { + "corr": 0.680815554, + "finite": true, + "max_abs": 10.4578714, + "mean_abs": 0.560819246, + "psnr_db": 27.3123914, + "ref_absmax": 10.7195148, + "rel_max": 0.975591861, + "scaled_max_abs": 0.975591861 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9393.47978, + "index": 4, + "metrics": { + "corr": 0.69715409, + "finite": true, + "max_abs": 10.3362176, + "mean_abs": 0.578474835, + "psnr_db": 27.2973791, + "ref_absmax": 11.0036087, + "rel_max": 0.939347978, + "scaled_max_abs": 0.939347978 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9208.82131, + "index": 5, + "metrics": { + "corr": 0.702830771, + "finite": true, + "max_abs": 10.4502886, + "mean_abs": 0.595958078, + "psnr_db": 27.3518929, + "ref_absmax": 11.3481283, + "rel_max": 0.920882131, + "scaled_max_abs": 0.920882131 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 12433.0022, + "index": 6, + "metrics": { + "corr": 0.612396046, + "finite": true, + "max_abs": 5.11130214, + "mean_abs": 0.588098676, + "psnr_db": 18.9984678, + "ref_absmax": 4.11107635, + "rel_max": 1.24330022, + "scaled_max_abs": 1.24330022 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "uniform", + "index": 17 + } + }, + { + "band_ratio": 498.127371, + "index": 7, + "metrics": { + "corr": 0.999351269, + "finite": true, + "max_abs": 0.110373616, + "mean_abs": 0.0133109438, + "psnr_db": 46.2217127, + "ref_absmax": 2.21577096, + "rel_max": 0.0498127371, + "scaled_max_abs": 0.0498127371 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_ratio": 448.082289, + "index": 8, + "metrics": { + "corr": 0.999255459, + "finite": true, + "max_abs": 0.0567302853, + "mean_abs": 0.00849530729, + "psnr_db": 45.2827547, + "ref_absmax": 1.26606846, + "rel_max": 0.0448082289, + "scaled_max_abs": 0.0448082289 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "natural", + "index": 8 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 404.516654, + "metrics": { + "corr": 0.999274123, + "finite": true, + "max_abs": 0.0543882698, + "mean_abs": 0.00871554224, + "psnr_db": 45.4696184, + "ref_absmax": 1.34452486, + "rel_max": 0.0404516654, + "scaled_max_abs": 0.0404516654 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 13 + } + }, + "first_fail_index": 2, + "n_judged": 8, + "n_taps": 9, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.2793459e-08, + "psnr_db": 164.013874, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize" + }, + { + "index": 1, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed;;zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;1" + }, + "reason": "artifact tensor shape is not a layout of the reference shape", + "status": "not_judgeable", + "tap": "net.patch_embed" + }, + { + "band_ratio": 6207.9012, + "index": 2, + "metrics": { + "corr": 0.678757234, + "finite": true, + "max_abs": 7.18556678, + "mean_abs": 0.543525571, + "psnr_db": 28.1561495, + "ref_absmax": 11.574873, + "rel_max": 0.62079012, + "scaled_max_abs": 0.62079012 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;4" + }, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6118.9322, + "index": 3, + "metrics": { + "corr": 0.693240824, + "finite": true, + "max_abs": 7.27821863, + "mean_abs": 0.55923571, + "psnr_db": 28.2986608, + "ref_absmax": 11.8945894, + "rel_max": 0.61189322, + "scaled_max_abs": 0.61189322 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6200.16663, + "index": 4, + "metrics": { + "corr": 0.712190149, + "finite": true, + "max_abs": 7.53544796, + "mean_abs": 0.574556268, + "psnr_db": 28.2933996, + "ref_absmax": 12.1536217, + "rel_max": 0.620016663, + "scaled_max_abs": 0.620016663 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6044.99906, + "index": 5, + "metrics": { + "corr": 0.71800502, + "finite": true, + "max_abs": 7.56230319, + "mean_abs": 0.591698433, + "psnr_db": 28.1874186, + "ref_absmax": 12.5100155, + "rel_max": 0.604499906, + "scaled_max_abs": 0.604499906 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 12867.9353, + "index": 6, + "metrics": { + "corr": 0.62008677, + "finite": true, + "max_abs": 5.40252185, + "mean_abs": 0.58419157, + "psnr_db": 19.2739008, + "ref_absmax": 4.19843721, + "rel_max": 1.28679353, + "scaled_max_abs": 1.28679353 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "uniform", + "index": 18 + } + }, + { + "band_ratio": 505.649539, + "index": 7, + "metrics": { + "corr": 0.99927707, + "finite": true, + "max_abs": 0.11234358, + "mean_abs": 0.0147161756, + "psnr_db": 45.3274411, + "ref_absmax": 2.22176766, + "rel_max": 0.0505649539, + "scaled_max_abs": 0.0505649539 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "natural", + "index": 13 + } + }, + { + "band_ratio": 404.516654, + "index": 8, + "metrics": { + "corr": 0.999274123, + "finite": true, + "max_abs": 0.0543882698, + "mean_abs": 0.00871554224, + "psnr_db": 45.4696184, + "ref_absmax": 1.34452486, + "rel_max": 0.0404516654, + "scaled_max_abs": 0.0404516654 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "natural", + "index": 13 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp32", + "id": "tinyvit__layout_swap__litert_fp32", + "model": "tinyvit", + "path": "litert", + "variant": "layout_swap" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/tinyvit__layout_swap__onnx_fp16.json b/bench/verdicts_e2e_gated/tinyvit__layout_swap__onnx_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..064cf90b1312ed67e8606d89ce6254cd910b4642 --- /dev/null +++ b/bench/verdicts_e2e_gated/tinyvit__layout_swap__onnx_fp16.json @@ -0,0 +1,694 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "at": "net.patch_embed", + "explained_by": null, + "nominal_band_ratio": 164.19277, + "results": [ + { + "band_ratio": 164.19277, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 105.288092, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 233.967175, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 124.377568, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 310.131863, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp16", + "first_divergence": { + "artifact_tensor": "/net/patch_embed/Transpose_1_output_0", + "basis": "earliest tap over band with in-band predecessors", + "index": 1, + "neighbourhood": [ + { + "band_ratio": 0.0439328023, + "index": 0, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 60.5375772, + "index": 1, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_1_output_0" + }, + "status": "fail", + "tap": "net.patch_embed" + }, + { + "band_ratio": 62.0879443, + "index": 2, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "status": "fail", + "tap": "net.pos_embed" + } + ], + "shape": 224, + "tap": "net.patch_embed" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "bec14cd536dd3c7b07dfb666565aebc3b919ac193e07dcf1dded0a734d4b8982", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "4e10d2740c7d9b16b5218a5a8ba1d6e8327d9dd1d855df99a49f0dc55e4dd75a", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 4.48822975e-05, + "224": 3.95774841e-05 + }, + "primary_class": "D2", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.96875, + "band_ratio": 4.45336904, + "metrics": { + "corr": 0.999256231, + "finite": true, + "max_abs": 0.0563827008, + "mean_abs": 0.00851577282, + "psnr_db": 45.2872437, + "ref_absmax": 1.26606846, + "rel_max": 0.0445336904, + "scaled_max_abs": 0.0445336904 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 8 + } + }, + "first_fail_index": 1, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 0.0441313312, + "index": 0, + "metrics": { + "corr": 0.999999966, + "finite": true, + "max_abs": 0.00508785248, + "mean_abs": 0.000405953078, + "psnr_db": 88.0186903, + "ref_absmax": 11.5288897, + "rel_max": 0.000441313312, + "scaled_max_abs": 0.000441313312 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 95.7953157, + "index": 1, + "metrics": { + "corr": 0.627293153, + "finite": true, + "max_abs": 10.3420892, + "mean_abs": 0.54742416, + "psnr_db": 27.4428598, + "ref_absmax": 10.7960281, + "rel_max": 0.957953157, + "scaled_max_abs": 0.957953157 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_1_output_0" + }, + "status": "fail", + "tap": "net.patch_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 96.0012114, + "index": 2, + "metrics": { + "corr": 0.666044233, + "finite": true, + "max_abs": 10.3435644, + "mean_abs": 0.547432104, + "psnr_db": 27.3620322, + "ref_absmax": 10.7744102, + "rel_max": 0.960012114, + "scaled_max_abs": 0.960012114 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 97.6023169, + "index": 3, + "metrics": { + "corr": 0.680810646, + "finite": true, + "max_abs": 10.4624949, + "mean_abs": 0.560842004, + "psnr_db": 27.3122502, + "ref_absmax": 10.7195148, + "rel_max": 0.976023169, + "scaled_max_abs": 0.976023169 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 93.9233834, + "index": 4, + "metrics": { + "corr": 0.697149229, + "finite": true, + "max_abs": 10.3349616, + "mean_abs": 0.578497753, + "psnr_db": 27.2972298, + "ref_absmax": 11.0036087, + "rel_max": 0.939233834, + "scaled_max_abs": 0.939233834 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 92.0931141, + "index": 5, + "metrics": { + "corr": 0.702827055, + "finite": true, + "max_abs": 10.4508448, + "mean_abs": 0.595978376, + "psnr_db": 27.3517523, + "ref_absmax": 11.3481283, + "rel_max": 0.920931141, + "scaled_max_abs": 0.920931141 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 124.315523, + "index": 6, + "metrics": { + "corr": 0.612393557, + "finite": true, + "max_abs": 5.11070609, + "mean_abs": 0.588111189, + "psnr_db": 18.9984331, + "ref_absmax": 4.11107635, + "rel_max": 1.24315523, + "scaled_max_abs": 1.24315523 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "uniform", + "index": 17 + } + }, + { + "band_ratio": 4.94286024, + "index": 7, + "metrics": { + "corr": 0.999350875, + "finite": true, + "max_abs": 0.109522462, + "mean_abs": 0.0133464659, + "psnr_db": 46.2189778, + "ref_absmax": 2.21577096, + "rel_max": 0.0494286024, + "scaled_max_abs": 0.0494286024 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/ReduceMean_output_0" + }, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_ratio": 4.45146942, + "index": 8, + "metrics": { + "corr": 0.999256307, + "finite": true, + "max_abs": 0.0563586503, + "mean_abs": 0.00851590373, + "psnr_db": 45.2876175, + "ref_absmax": 1.26606846, + "rel_max": 0.0445146942, + "scaled_max_abs": 0.0445146942 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "natural", + "index": 8 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 4.0335085, + "metrics": { + "corr": 0.999274521, + "finite": true, + "max_abs": 0.0542315245, + "mean_abs": 0.00873499622, + "psnr_db": 45.4711062, + "ref_absmax": 1.34452486, + "rel_max": 0.040335085, + "scaled_max_abs": 0.040335085 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 13 + } + }, + "first_fail_index": 1, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 0.0439328023, + "index": 0, + "metrics": { + "corr": 0.999999965, + "finite": true, + "max_abs": 0.00506496429, + "mean_abs": 0.000406712054, + "psnr_db": 88.0749992, + "ref_absmax": 11.5288897, + "rel_max": 0.000439328023, + "scaled_max_abs": 0.000439328023 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 60.5375772, + "index": 1, + "metrics": { + "corr": 0.645803027, + "finite": true, + "max_abs": 7.18646908, + "mean_abs": 0.543572381, + "psnr_db": 28.2148158, + "ref_absmax": 11.871088, + "rel_max": 0.605375772, + "scaled_max_abs": 0.605375772 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_1_output_0" + }, + "status": "fail", + "tap": "net.patch_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 62.0879443, + "index": 2, + "metrics": { + "corr": 0.678750995, + "finite": true, + "max_abs": 7.18660069, + "mean_abs": 0.543580209, + "psnr_db": 28.155986, + "ref_absmax": 11.574873, + "rel_max": 0.620879443, + "scaled_max_abs": 0.620879443 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 61.1994564, + "index": 3, + "metrics": { + "corr": 0.693234172, + "finite": true, + "max_abs": 7.27942407, + "mean_abs": 0.559259118, + "psnr_db": 28.2985111, + "ref_absmax": 11.8945894, + "rel_max": 0.611994564, + "scaled_max_abs": 0.611994564 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 62.0107765, + "index": 4, + "metrics": { + "corr": 0.712182642, + "finite": true, + "max_abs": 7.53655517, + "mean_abs": 0.57457998, + "psnr_db": 28.293245, + "ref_absmax": 12.1536217, + "rel_max": 0.620107765, + "scaled_max_abs": 0.620107765 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 60.4531314, + "index": 5, + "metrics": { + "corr": 0.717998507, + "finite": true, + "max_abs": 7.5626961, + "mean_abs": 0.59172063, + "psnr_db": 28.1872733, + "ref_absmax": 12.5100155, + "rel_max": 0.604531314, + "scaled_max_abs": 0.604531314 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 128.690273, + "index": 6, + "metrics": { + "corr": 0.6200754, + "finite": true, + "max_abs": 5.40298033, + "mean_abs": 0.58421315, + "psnr_db": 19.2737655, + "ref_absmax": 4.19843721, + "rel_max": 1.28690273, + "scaled_max_abs": 1.28690273 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "uniform", + "index": 18 + } + }, + { + "band_ratio": 5.04061749, + "index": 7, + "metrics": { + "corr": 0.999278099, + "finite": true, + "max_abs": 0.111990809, + "mean_abs": 0.0147281971, + "psnr_db": 45.3340958, + "ref_absmax": 2.22176766, + "rel_max": 0.0504061749, + "scaled_max_abs": 0.0504061749 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/ReduceMean_output_0" + }, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "natural", + "index": 13 + } + }, + { + "band_ratio": 4.03229382, + "index": 8, + "metrics": { + "corr": 0.999274658, + "finite": true, + "max_abs": 0.0542151928, + "mean_abs": 0.00873416929, + "psnr_db": 45.4719473, + "ref_absmax": 1.34452486, + "rel_max": 0.0403229382, + "scaled_max_abs": 0.0403229382 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "natural", + "index": 13 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp16", + "id": "tinyvit__layout_swap__onnx_fp16", + "model": "tinyvit", + "path": "onnx", + "variant": "layout_swap" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/tinyvit__layout_swap__onnx_fp32.json b/bench/verdicts_e2e_gated/tinyvit__layout_swap__onnx_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..687831991cc3e258699af9dd0bb7befd8d35bde0 --- /dev/null +++ b/bench/verdicts_e2e_gated/tinyvit__layout_swap__onnx_fp32.json @@ -0,0 +1,694 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "at": "net.patch_embed", + "explained_by": null, + "nominal_band_ratio": 16415.6034, + "results": [ + { + "band_ratio": 16415.6034, + "explains": false, + "hypothesis": "channel_bgr" + }, + { + "band_ratio": 10528.9809, + "explains": false, + "hypothesis": "double_normalize" + }, + { + "band_ratio": 23397.8465, + "explains": false, + "hypothesis": "extra_scale_1_255" + }, + { + "band_ratio": 12440.5296, + "explains": false, + "hypothesis": "hw_transpose" + }, + { + "band_ratio": 31002.9408, + "explains": false, + "hypothesis": "no_normalize" + } + ], + "status": "evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "/net/patch_embed/Transpose_1_output_0", + "basis": "earliest tap over band with in-band predecessors", + "index": 1, + "neighbourhood": [ + { + "band_ratio": 0.0, + "index": 0, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 6052.99965, + "index": 1, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_1_output_0" + }, + "status": "fail", + "tap": "net.patch_embed" + }, + { + "band_ratio": 6207.90326, + "index": 2, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "status": "fail", + "tap": "net.pos_embed" + } + ], + "shape": 224, + "tap": "net.patch_embed" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "7395e560d12bcbf4746e0ab16b89947e45d1ceaa5d2670b4df90689232eabda1", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "61e45831d1229e0469362005eae32e6567c6a75b32092d487ccf22756361fab8", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 1.1920929e-07, + "224": 1.1920929e-07 + }, + "primary_class": "D2", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 0.96875, + "band_ratio": 448.083701, + "metrics": { + "corr": 0.999255459, + "finite": true, + "max_abs": 0.0567304641, + "mean_abs": 0.00849529844, + "psnr_db": 45.2827581, + "ref_absmax": 1.26606846, + "rel_max": 0.0448083701, + "scaled_max_abs": 0.0448083701 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 8 + } + }, + "first_fail_index": 1, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 0.0, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 11.5288897, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 9577.74501, + "index": 1, + "metrics": { + "corr": 0.627298695, + "finite": true, + "max_abs": 10.3401605, + "mean_abs": 0.547370878, + "psnr_db": 27.4430305, + "ref_absmax": 10.7960281, + "rel_max": 0.957774501, + "scaled_max_abs": 0.957774501 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_1_output_0" + }, + "status": "fail", + "tap": "net.patch_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9596.96159, + "index": 2, + "metrics": { + "corr": 0.666050182, + "finite": true, + "max_abs": 10.3401601, + "mean_abs": 0.547370881, + "psnr_db": 27.3621918, + "ref_absmax": 10.7744102, + "rel_max": 0.959696159, + "scaled_max_abs": 0.959696159 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9755.91505, + "index": 3, + "metrics": { + "corr": 0.680815556, + "finite": true, + "max_abs": 10.4578676, + "mean_abs": 0.560819256, + "psnr_db": 27.3123914, + "ref_absmax": 10.7195148, + "rel_max": 0.975591505, + "scaled_max_abs": 0.975591505 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9393.47631, + "index": 4, + "metrics": { + "corr": 0.697154091, + "finite": true, + "max_abs": 10.3362138, + "mean_abs": 0.578474845, + "psnr_db": 27.297379, + "ref_absmax": 11.0036087, + "rel_max": 0.939347631, + "scaled_max_abs": 0.939347631 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 9208.82116, + "index": 5, + "metrics": { + "corr": 0.702830772, + "finite": true, + "max_abs": 10.4502884, + "mean_abs": 0.595958085, + "psnr_db": 27.3518928, + "ref_absmax": 11.3481283, + "rel_max": 0.920882116, + "scaled_max_abs": 0.920882116 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 12433.0022, + "index": 6, + "metrics": { + "corr": 0.612396048, + "finite": true, + "max_abs": 5.11130214, + "mean_abs": 0.588098677, + "psnr_db": 18.9984679, + "ref_absmax": 4.11107635, + "rel_max": 1.24330022, + "scaled_max_abs": 1.24330022 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "uniform", + "index": 17 + } + }, + { + "band_ratio": 498.127909, + "index": 7, + "metrics": { + "corr": 0.999351269, + "finite": true, + "max_abs": 0.110373735, + "mean_abs": 0.0133109398, + "psnr_db": 46.2217132, + "ref_absmax": 2.21577096, + "rel_max": 0.0498127909, + "scaled_max_abs": 0.0498127909 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/ReduceMean_output_0" + }, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "natural", + "index": 0 + } + }, + { + "band_ratio": 448.083584, + "index": 8, + "metrics": { + "corr": 0.99925546, + "finite": true, + "max_abs": 0.0567304492, + "mean_abs": 0.00849529657, + "psnr_db": 45.2827586, + "ref_absmax": 1.26606846, + "rel_max": 0.0448083584, + "scaled_max_abs": 0.0448083584 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "natural", + "index": 8 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 404.516432, + "metrics": { + "corr": 0.999274122, + "finite": true, + "max_abs": 0.05438824, + "mean_abs": 0.0087155393, + "psnr_db": 45.4696148, + "ref_absmax": 1.34452486, + "rel_max": 0.0404516432, + "scaled_max_abs": 0.0404516432 + }, + "status": "fail", + "worst_probe": { + "category": "natural", + "index": 13 + } + }, + "first_fail_index": 1, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 0.0, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 11.5288897, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 6052.99965, + "index": 1, + "metrics": { + "corr": 0.645809247, + "finite": true, + "max_abs": 7.18556917, + "mean_abs": 0.543525561, + "psnr_db": 28.2149764, + "ref_absmax": 11.871088, + "rel_max": 0.605299965, + "scaled_max_abs": 0.605299965 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_1_output_0" + }, + "status": "fail", + "tap": "net.patch_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6207.90326, + "index": 2, + "metrics": { + "corr": 0.678757238, + "finite": true, + "max_abs": 7.18556917, + "mean_abs": 0.543525561, + "psnr_db": 28.1561495, + "ref_absmax": 11.574873, + "rel_max": 0.620790326, + "scaled_max_abs": 0.620790326 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6118.93381, + "index": 3, + "metrics": { + "corr": 0.693240827, + "finite": true, + "max_abs": 7.27822053, + "mean_abs": 0.559235714, + "psnr_db": 28.2986609, + "ref_absmax": 11.8945894, + "rel_max": 0.611893381, + "scaled_max_abs": 0.611893381 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6200.1682, + "index": 4, + "metrics": { + "corr": 0.712190151, + "finite": true, + "max_abs": 7.53544986, + "mean_abs": 0.574556269, + "psnr_db": 28.2933997, + "ref_absmax": 12.1536217, + "rel_max": 0.62001682, + "scaled_max_abs": 0.62001682 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 6045.00058, + "index": 5, + "metrics": { + "corr": 0.718005023, + "finite": true, + "max_abs": 7.56230509, + "mean_abs": 0.591698437, + "psnr_db": 28.1874186, + "ref_absmax": 12.5100155, + "rel_max": 0.604500058, + "scaled_max_abs": 0.604500058 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0" + }, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 12867.9393, + "index": 6, + "metrics": { + "corr": 0.62008677, + "finite": true, + "max_abs": 5.40252352, + "mean_abs": 0.584191575, + "psnr_db": 19.2739008, + "ref_absmax": 4.19843721, + "rel_max": 1.28679393, + "scaled_max_abs": 1.28679393 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "status": "fail", + "tap": "net.norm", + "worst_probe": { + "category": "uniform", + "index": 18 + } + }, + { + "band_ratio": 505.648868, + "index": 7, + "metrics": { + "corr": 0.99927707, + "finite": true, + "max_abs": 0.112343431, + "mean_abs": 0.0147161719, + "psnr_db": 45.3274418, + "ref_absmax": 2.22176766, + "rel_max": 0.0505648868, + "scaled_max_abs": 0.0505648868 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/ReduceMean_output_0" + }, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "natural", + "index": 13 + } + }, + { + "band_ratio": 404.516543, + "index": 8, + "metrics": { + "corr": 0.999274122, + "finite": true, + "max_abs": 0.0543882549, + "mean_abs": 0.00871553989, + "psnr_db": 45.4696159, + "ref_absmax": 1.34452486, + "rel_max": 0.0404516543, + "scaled_max_abs": 0.0404516543 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "natural", + "index": 13 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp32", + "id": "tinyvit__layout_swap__onnx_fp32", + "model": "tinyvit", + "path": "onnx", + "variant": "layout_swap" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/tinyvit__pool_divisor__coreml_fp16.json b/bench/verdicts_e2e_gated/tinyvit__pool_divisor__coreml_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..3f128b2333fc57da19724fe2b21660af7f621a41 --- /dev/null +++ b/bench/verdicts_e2e_gated/tinyvit__pool_divisor__coreml_fp16.json @@ -0,0 +1,572 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": false, + "note": null, + "status": "clear" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [ + "inputs[0]: dtype float16 (declared float32)", + "outputs[0]: dtype float16 (declared float32)" + ], + "status": "precision_narrowing" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "status": "clear" + } + }, + "declared_precision": "fp16", + "first_divergence": null, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "f218c339e76d3c31873d19617a6b8017afacf2c01684704ae273ad1415a2b319", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "34b899d4a515f883983342a14e01526adb1f8daaf464215860e2f26b616618b1", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": null, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.827405205, + "metrics": { + "corr": 0.999994915, + "finite": true, + "max_abs": 0.0104755163, + "mean_abs": 0.0017030064, + "psnr_db": 59.9210729, + "ref_absmax": 1.26606846, + "rel_max": 0.00827405205, + "scaled_max_abs": 0.00827405205 + }, + "status": "pass" + }, + "first_fail_index": 1, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 0.117570499, + "index": 0, + "metrics": { + "corr": 0.999999914, + "finite": true, + "max_abs": 0.0135545731, + "mean_abs": 0.000674526699, + "psnr_db": 83.5827466, + "ref_absmax": 11.5288897, + "rel_max": 0.00117570499, + "scaled_max_abs": 0.00117570499 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 1.47449007, + "index": 1, + "metrics": { + "corr": 0.999991394, + "finite": true, + "max_abs": 0.159186363, + "mean_abs": 0.00251833586, + "psnr_db": 73.8085669, + "ref_absmax": 10.7960281, + "rel_max": 0.0147449007, + "scaled_max_abs": 0.0147449007 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_5_cast_fp16" + }, + "status": "fail", + "tap": "net.patch_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 1.45772783, + "index": 2, + "metrics": { + "corr": 0.999992261, + "finite": true, + "max_abs": 0.157061577, + "mean_abs": 0.00252916549, + "psnr_db": 73.7102173, + "ref_absmax": 10.7744102, + "rel_max": 0.0145772783, + "scaled_max_abs": 0.0145772783 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5_cast_fp16" + }, + "status": "fail", + "tap": "net.pos_embed", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 1.44004222, + "index": 3, + "metrics": { + "corr": 0.999992443, + "finite": true, + "max_abs": 0.15436554, + "mean_abs": 0.00271046309, + "psnr_db": 73.5671904, + "ref_absmax": 10.7195148, + "rel_max": 0.0144004222, + "scaled_max_abs": 0.0144004222 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_17_cast_fp16" + }, + "status": "fail", + "tap": "net.blocks.0", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 1.45278434, + "index": 4, + "metrics": { + "corr": 0.999992728, + "finite": true, + "max_abs": 0.159858704, + "mean_abs": 0.00289978764, + "psnr_db": 73.4913103, + "ref_absmax": 11.0036087, + "rel_max": 0.0145278434, + "scaled_max_abs": 0.0145278434 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_29_cast_fp16" + }, + "status": "fail", + "tap": "net.blocks.1", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 1.34661694, + "index": 5, + "metrics": { + "corr": 0.999992831, + "finite": true, + "max_abs": 0.152815819, + "mean_abs": 0.00305746017, + "psnr_db": 73.5262034, + "ref_absmax": 11.3481283, + "rel_max": 0.0134661694, + "scaled_max_abs": 0.0134661694 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_41_cast_fp16" + }, + "status": "fail", + "tap": "net.blocks.2", + "worst_probe": { + "category": "saturating", + "index": 30 + } + }, + { + "band_ratio": 0.711003077, + "index": 6, + "metrics": { + "corr": 0.999993473, + "finite": true, + "max_abs": 0.0292298794, + "mean_abs": 0.00270321117, + "psnr_db": 66.7353234, + "ref_absmax": 4.11107635, + "rel_max": 0.00711003077, + "scaled_max_abs": 0.00711003077 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "status": "pass", + "tap": "net.norm" + }, + { + "band_ratio": 1.03196097, + "index": 7, + "metrics": { + "corr": 0.999997203, + "finite": true, + "max_abs": 0.0228658915, + "mean_abs": 0.00304456828, + "psnr_db": 60.1824044, + "ref_absmax": 2.21577096, + "rel_max": 0.0103196097, + "scaled_max_abs": 0.0103196097 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_cast_fp16" + }, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "near_zero", + "index": 27 + } + }, + { + "band_ratio": 0.827405205, + "index": 8, + "metrics": { + "corr": 0.999994915, + "finite": true, + "max_abs": 0.0104755163, + "mean_abs": 0.0017030064, + "psnr_db": 59.9210729, + "ref_absmax": 1.26606846, + "rel_max": 0.00827405205, + "scaled_max_abs": 0.00827405205 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "pass", + "tap": "net.head" + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.664855464, + "metrics": { + "corr": 0.999995697, + "finite": true, + "max_abs": 0.008939147, + "mean_abs": 0.00127761571, + "psnr_db": 62.3753409, + "ref_absmax": 1.34452486, + "rel_max": 0.00664855464, + "scaled_max_abs": 0.00664855464 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 0.116213884, + "index": 0, + "metrics": { + "corr": 0.999999912, + "finite": true, + "max_abs": 0.0133981705, + "mean_abs": 0.000679588388, + "psnr_db": 83.6184843, + "ref_absmax": 11.5288897, + "rel_max": 0.00116213884, + "scaled_max_abs": 0.00116213884 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1_cast_fp16" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.817007877, + "index": 1, + "metrics": { + "corr": 0.999991415, + "finite": true, + "max_abs": 0.0969877243, + "mean_abs": 0.00250771621, + "psnr_db": 74.367951, + "ref_absmax": 11.871088, + "rel_max": 0.00817007877, + "scaled_max_abs": 0.00817007877 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_5_cast_fp16" + }, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_ratio": 0.860384338, + "index": 2, + "metrics": { + "corr": 0.999992187, + "finite": true, + "max_abs": 0.0995883942, + "mean_abs": 0.00251680124, + "psnr_db": 74.29315, + "ref_absmax": 11.574873, + "rel_max": 0.00860384338, + "scaled_max_abs": 0.00860384338 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5_cast_fp16" + }, + "status": "pass", + "tap": "net.pos_embed" + }, + { + "band_ratio": 0.837666842, + "index": 3, + "metrics": { + "corr": 0.999992439, + "finite": true, + "max_abs": 0.0996370316, + "mean_abs": 0.00269992927, + "psnr_db": 74.3779895, + "ref_absmax": 11.8945894, + "rel_max": 0.00837666842, + "scaled_max_abs": 0.00837666842 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_17_cast_fp16" + }, + "status": "pass", + "tap": "net.blocks.0" + }, + { + "band_ratio": 0.83436153, + "index": 4, + "metrics": { + "corr": 0.999992743, + "finite": true, + "max_abs": 0.101405144, + "mean_abs": 0.00289164657, + "psnr_db": 74.2749382, + "ref_absmax": 12.1536217, + "rel_max": 0.0083436153, + "scaled_max_abs": 0.0083436153 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_29_cast_fp16" + }, + "status": "pass", + "tap": "net.blocks.1" + }, + { + "band_ratio": 0.818916301, + "index": 5, + "metrics": { + "corr": 0.999992873, + "finite": true, + "max_abs": 0.102446556, + "mean_abs": 0.00303753381, + "psnr_db": 74.1588749, + "ref_absmax": 12.5100155, + "rel_max": 0.00818916301, + "scaled_max_abs": 0.00818916301 + }, + "op": { + "candidates": 9, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_41_cast_fp16" + }, + "status": "pass", + "tap": "net.blocks.2" + }, + { + "band_ratio": 0.678718025, + "index": 6, + "metrics": { + "corr": 0.999993569, + "finite": true, + "max_abs": 0.0284955502, + "mean_abs": 0.00267585862, + "psnr_db": 66.9877398, + "ref_absmax": 4.19843721, + "rel_max": 0.00678718025, + "scaled_max_abs": 0.00678718025 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_cast_fp16" + }, + "status": "pass", + "tap": "net.norm" + }, + { + "band_ratio": 0.873935173, + "index": 7, + "metrics": { + "corr": 0.999997449, + "finite": true, + "max_abs": 0.0194168091, + "mean_abs": 0.00240850639, + "psnr_db": 62.264154, + "ref_absmax": 2.22176766, + "rel_max": 0.00873935173, + "scaled_max_abs": 0.00873935173 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_cast_fp16" + }, + "status": "pass", + "tap": "net.pool" + }, + { + "band_ratio": 0.664855464, + "index": 8, + "metrics": { + "corr": 0.999995697, + "finite": true, + "max_abs": 0.008939147, + "mean_abs": 0.00127761571, + "psnr_db": 62.3753409, + "ref_absmax": 1.34452486, + "rel_max": 0.00664855464, + "scaled_max_abs": 0.00664855464 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "pass", + "tap": "net.head" + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp16", + "id": "tinyvit__pool_divisor__coreml_fp16", + "model": "tinyvit", + "path": "coreml", + "variant": "pool_divisor" + }, + "verdict": "PASS" +} diff --git a/bench/verdicts_e2e_gated/tinyvit__pool_divisor__coreml_fp32.json b/bench/verdicts_e2e_gated/tinyvit__pool_divisor__coreml_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..d82072598ff0111c361f1a5757124129a9ad06c0 --- /dev/null +++ b/bench/verdicts_e2e_gated/tinyvit__pool_divisor__coreml_fp32.json @@ -0,0 +1,617 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "reason": "first divergence at tap 7 is beyond the hypothesis taps (first 3) \u2014 interface faults surface earlier", + "status": "not_evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "_inversed_input", + "basis": "earliest tap over band with in-band predecessors", + "index": 7, + "neighbourhood": [ + { + "band_ratio": 0.00340724751, + "index": 6, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x" + }, + "status": "pass", + "tap": "net.norm" + }, + { + "band_ratio": 50.7609964, + "index": 7, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input" + }, + "status": "fail", + "tap": "net.pool" + }, + { + "band_ratio": 46.535538, + "index": 8, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head" + } + ], + "shape": 224, + "tap": "net.pool" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "5e8325676e374251bab49bd55a7a8f5e0f2ef6f397cab744e79c899c836b99df", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "c6312f2c839db0f4432b1a8719af43b72be320e81242c5028efcdf6196f71fee", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "ComputeUnit.CPU_ONLY is the reference path: the whole ML program runs on the CPU, so there is no CPU/GPU/ANE partition to judge; partitions exist only on accelerator paths, whose precision Apple documents as hardware- and software-version dependent (outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D2", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 66.9560302, + "metrics": { + "corr": 0.999998439, + "finite": true, + "max_abs": 0.00847709179, + "mean_abs": 0.00162466256, + "psnr_db": 60.2363986, + "ref_absmax": 1.26606846, + "rel_max": 0.00669560302, + "scaled_max_abs": 0.00669560302 + }, + "status": "fail", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + "first_fail_index": 7, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.26638033e-08, + "psnr_db": 163.904618, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.00441678321, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 1.05437658e-07, + "psnr_db": 161.322112, + "ref_absmax": 10.7960281, + "rel_max": 4.41678321e-07, + "scaled_max_abs": 4.41678321e-07 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_5" + }, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_ratio": 0.00442564509, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 1.08827013e-07, + "psnr_db": 161.063379, + "ref_absmax": 10.7744102, + "rel_max": 4.42564509e-07, + "scaled_max_abs": 4.42564509e-07 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5" + }, + "status": "pass", + "tap": "net.pos_embed" + }, + { + "band_ratio": 0.00444830914, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 1.38193594e-07, + "psnr_db": 160.03963, + "ref_absmax": 10.7195148, + "rel_max": 4.44830914e-07, + "scaled_max_abs": 4.44830914e-07 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_17" + }, + "status": "pass", + "tap": "net.blocks.0" + }, + { + "band_ratio": 0.00520015392, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.7220459e-06, + "mean_abs": 1.64897191e-07, + "psnr_db": 159.182865, + "ref_absmax": 11.0036087, + "rel_max": 5.20015392e-07, + "scaled_max_abs": 5.20015392e-07 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_29" + }, + "status": "pass", + "tap": "net.blocks.1" + }, + { + "band_ratio": 0.00504228163, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.7220459e-06, + "mean_abs": 1.86291669e-07, + "psnr_db": 158.670108, + "ref_absmax": 11.3481283, + "rel_max": 5.04228163e-07, + "scaled_max_abs": 5.04228163e-07 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_41" + }, + "status": "pass", + "tap": "net.blocks.2" + }, + { + "band_ratio": 0.0046395359, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.90734863e-06, + "mean_abs": 1.82634463e-07, + "psnr_db": 150.24297, + "ref_absmax": 4.11107635, + "rel_max": 4.6395359e-07, + "scaled_max_abs": 4.6395359e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x" + }, + "status": "pass", + "tap": "net.norm" + }, + { + "band_ratio": 68.9688417, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0152819157, + "mean_abs": 0.00289285003, + "psnr_db": 60.5809465, + "ref_absmax": 2.21577096, + "rel_max": 0.00689688417, + "scaled_max_abs": 0.00689688417 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input" + }, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_ratio": 66.9560302, + "index": 8, + "metrics": { + "corr": 0.999998439, + "finite": true, + "max_abs": 0.00847709179, + "mean_abs": 0.00162466256, + "psnr_db": 60.2363986, + "ref_absmax": 1.26606846, + "rel_max": 0.00669560302, + "scaled_max_abs": 0.00669560302 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 46.535538, + "metrics": { + "corr": 0.999999219, + "finite": true, + "max_abs": 0.00625681877, + "mean_abs": 0.00122186264, + "psnr_db": 63.0953282, + "ref_absmax": 1.34452486, + "rel_max": 0.0046535538, + "scaled_max_abs": 0.0046535538 + }, + "status": "fail", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + "first_fail_index": 7, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.2793459e-08, + "psnr_db": 164.013874, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input_1" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.00321343524, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 3.81469727e-06, + "mean_abs": 1.07091069e-07, + "psnr_db": 161.736623, + "ref_absmax": 11.871088, + "rel_max": 3.21343524e-07, + "scaled_max_abs": 3.21343524e-07 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x_5" + }, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_ratio": 0.00411958869, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 1.09860232e-07, + "psnr_db": 161.519356, + "ref_absmax": 11.574873, + "rel_max": 4.11958869e-07, + "scaled_max_abs": 4.11958869e-07 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_5" + }, + "status": "pass", + "tap": "net.pos_embed" + }, + { + "band_ratio": 0.00400885765, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 1.40039236e-07, + "psnr_db": 160.709782, + "ref_absmax": 11.8945894, + "rel_max": 4.00885765e-07, + "scaled_max_abs": 4.00885765e-07 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_17" + }, + "status": "pass", + "tap": "net.blocks.0" + }, + { + "band_ratio": 0.00392341617, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 1.67760047e-07, + "psnr_db": 159.824967, + "ref_absmax": 12.1536217, + "rel_max": 3.92341617e-07, + "scaled_max_abs": 3.92341617e-07 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_29" + }, + "status": "pass", + "tap": "net.blocks.1" + }, + { + "band_ratio": 0.00381164323, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.76837158e-06, + "mean_abs": 1.89873149e-07, + "psnr_db": 159.127453, + "ref_absmax": 12.5100155, + "rel_max": 3.81164323e-07, + "scaled_max_abs": 3.81164323e-07 + }, + "op": { + "candidates": 8, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "input_41" + }, + "status": "pass", + "tap": "net.blocks.2" + }, + { + "band_ratio": 0.00340724751, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-06, + "mean_abs": 1.85331143e-07, + "psnr_db": 150.311684, + "ref_absmax": 4.19843721, + "rel_max": 3.40724751e-07, + "scaled_max_abs": 3.40724751e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "x" + }, + "status": "pass", + "tap": "net.norm" + }, + { + "band_ratio": 50.7609964, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.011277914, + "mean_abs": 0.00224246508, + "psnr_db": 62.8263978, + "ref_absmax": 2.22176766, + "rel_max": 0.00507609964, + "scaled_max_abs": 0.00507609964 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "_inversed_input" + }, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_ratio": 46.535538, + "index": 8, + "metrics": { + "corr": 0.999999219, + "finite": true, + "max_abs": 0.00625681877, + "mean_abs": 0.00122186264, + "psnr_db": 63.0953282, + "ref_absmax": 1.34452486, + "rel_max": 0.0046535538, + "scaled_max_abs": 0.0046535538 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "MLModelInspector.retrieve_outputs (CPU_ONLY); scope via TorchScript trace", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp32", + "id": "tinyvit__pool_divisor__coreml_fp32", + "model": "tinyvit", + "path": "coreml", + "variant": "pool_divisor" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/tinyvit__pool_divisor__litert_fp16.json b/bench/verdicts_e2e_gated/tinyvit__pool_divisor__litert_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..a866fb17b267b90c1ada0a962d33704f04d88d5b --- /dev/null +++ b/bench/verdicts_e2e_gated/tinyvit__pool_divisor__litert_fp16.json @@ -0,0 +1,582 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": false, + "note": null, + "status": "clear" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 1.33642743e-05, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.78813934e-07, + "mean_abs": 4.30562068e-08, + "psnr_db": 152.811319, + "ref_absmax": 1.33799958, + "rel_max": 1.33642743e-07, + "scaled_max_abs": 1.33642743e-07 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 57, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 1, + "n_ops_total": 187, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "status": "clear" + } + }, + "declared_precision": "fp16", + "first_divergence": null, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "e49eed6e638a188644b2fd87625f54e9776f3af6fed32f29ebaa1d6f6b9044ef", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "6b81f951dd4d03cb240e07c26aa79a7061b8226a02954ad5198d73bc90388312", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": null, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.660361156, + "metrics": { + "corr": 0.999998278, + "finite": true, + "max_abs": 0.00836062431, + "mean_abs": 0.00164952946, + "psnr_db": 60.1404236, + "ref_absmax": 1.26606846, + "rel_max": 0.00660361156, + "scaled_max_abs": 0.00660361156 + }, + "status": "pass" + }, + "first_fail_index": 7, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 8.27203959e-06, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.26638033e-08, + "psnr_db": 163.904618, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0238484209, + "index": 1, + "metrics": { + "corr": 0.999999975, + "finite": true, + "max_abs": 0.00257468224, + "mean_abs": 0.000153147335, + "psnr_db": 99.1308904, + "ref_absmax": 10.7960281, + "rel_max": 0.000238484209, + "scaled_max_abs": 0.000238484209 + }, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;2" + }, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_ratio": 0.0238962707, + "index": 2, + "metrics": { + "corr": 0.999999977, + "finite": true, + "max_abs": 0.00257468224, + "mean_abs": 0.000153147282, + "psnr_db": 99.0500481, + "ref_absmax": 10.7744102, + "rel_max": 0.000238962707, + "scaled_max_abs": 0.000238962707 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;3" + }, + "status": "pass", + "tap": "net.pos_embed" + }, + { + "band_ratio": 0.0248371341, + "index": 3, + "metrics": { + "corr": 0.999999975, + "finite": true, + "max_abs": 0.00266242027, + "mean_abs": 0.000175715531, + "psnr_db": 98.3929002, + "ref_absmax": 10.7195148, + "rel_max": 0.000248371341, + "scaled_max_abs": 0.000248371341 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.0" + }, + { + "band_ratio": 0.0244428902, + "index": 4, + "metrics": { + "corr": 0.999999975, + "finite": true, + "max_abs": 0.00268959999, + "mean_abs": 0.000194126271, + "psnr_db": 98.0679496, + "ref_absmax": 11.0036087, + "rel_max": 0.000244428902, + "scaled_max_abs": 0.000244428902 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.1" + }, + { + "band_ratio": 0.0249340827, + "index": 5, + "metrics": { + "corr": 0.999999975, + "finite": true, + "max_abs": 0.0028295517, + "mean_abs": 0.000204465949, + "psnr_db": 98.0757778, + "ref_absmax": 11.3481283, + "rel_max": 0.000249340827, + "scaled_max_abs": 0.000249340827 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.2" + }, + { + "band_ratio": 0.0310450195, + "index": 6, + "metrics": { + "corr": 0.999999972, + "finite": true, + "max_abs": 0.00127628446, + "mean_abs": 0.000187560799, + "psnr_db": 90.4287298, + "ref_absmax": 4.11107635, + "rel_max": 0.000310450195, + "scaled_max_abs": 0.000310450195 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "status": "pass", + "tap": "net.norm" + }, + { + "band_ratio": 14299.4971, + "index": 7, + "metrics": { + "corr": 0.999999971, + "finite": true, + "max_abs": 316.844105, + "mean_abs": 59.9836797, + "psnr_db": -25.7531324, + "ref_absmax": 2.21577096, + "rel_max": 142.994971, + "scaled_max_abs": 142.994971 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_ratio": 0.660361156, + "index": 8, + "metrics": { + "corr": 0.999998278, + "finite": true, + "max_abs": 0.00836062431, + "mean_abs": 0.00164952946, + "psnr_db": 60.1404236, + "ref_absmax": 1.26606846, + "rel_max": 0.00660361156, + "scaled_max_abs": 0.00660361156 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "pass", + "tap": "net.head" + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.485322234, + "metrics": { + "corr": 0.999999038, + "finite": true, + "max_abs": 0.00652527809, + "mean_abs": 0.00126221171, + "psnr_db": 62.8275591, + "ref_absmax": 1.34452486, + "rel_max": 0.00485322234, + "scaled_max_abs": 0.00485322234 + }, + "status": "pass" + }, + "first_fail_index": 7, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 8.27203959e-06, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.2793459e-08, + "psnr_db": 164.013874, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0277319462, + "index": 1, + "metrics": { + "corr": 0.999999975, + "finite": true, + "max_abs": 0.00329208374, + "mean_abs": 0.00015256364, + "psnr_db": 99.7212805, + "ref_absmax": 11.871088, + "rel_max": 0.000277319462, + "scaled_max_abs": 0.000277319462 + }, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;2" + }, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_ratio": 0.0284416403, + "index": 2, + "metrics": { + "corr": 0.999999977, + "finite": true, + "max_abs": 0.00329208374, + "mean_abs": 0.000152563603, + "psnr_db": 99.6624604, + "ref_absmax": 11.574873, + "rel_max": 0.000284416403, + "scaled_max_abs": 0.000284416403 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;3" + }, + "status": "pass", + "tap": "net.pos_embed" + }, + { + "band_ratio": 0.0279738087, + "index": 3, + "metrics": { + "corr": 0.999999975, + "finite": true, + "max_abs": 0.00332736969, + "mean_abs": 0.000176384194, + "psnr_db": 99.194827, + "ref_absmax": 11.8945894, + "rel_max": 0.000279738087, + "scaled_max_abs": 0.000279738087 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.0" + }, + { + "band_ratio": 0.0270794184, + "index": 4, + "metrics": { + "corr": 0.999999974, + "finite": true, + "max_abs": 0.00329113007, + "mean_abs": 0.000196887379, + "psnr_db": 98.8068327, + "ref_absmax": 12.1536217, + "rel_max": 0.000270794184, + "scaled_max_abs": 0.000270794184 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.1" + }, + { + "band_ratio": 0.0256599822, + "index": 5, + "metrics": { + "corr": 0.999999975, + "finite": true, + "max_abs": 0.00321006775, + "mean_abs": 0.000207746592, + "psnr_db": 98.6389943, + "ref_absmax": 12.5100155, + "rel_max": 0.000256599822, + "scaled_max_abs": 0.000256599822 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.2" + }, + { + "band_ratio": 0.0284519364, + "index": 6, + "metrics": { + "corr": 0.999999972, + "finite": true, + "max_abs": 0.00119453669, + "mean_abs": 0.000190440265, + "psnr_db": 90.5400099, + "ref_absmax": 4.19843721, + "rel_max": 0.000284519364, + "scaled_max_abs": 0.000284519364 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "status": "pass", + "tap": "net.norm" + }, + { + "band_ratio": 19499.3145, + "index": 7, + "metrics": { + "corr": 0.99999997, + "finite": true, + "max_abs": 433.229465, + "mean_abs": 86.1442551, + "psnr_db": -28.8635827, + "ref_absmax": 2.22176766, + "rel_max": 194.993145, + "scaled_max_abs": 194.993145 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_ratio": 0.485322234, + "index": 8, + "metrics": { + "corr": 0.999999038, + "finite": true, + "max_abs": 0.00652527809, + "mean_abs": 0.00126221171, + "psnr_db": 62.8275591, + "ref_absmax": 1.34452486, + "rel_max": 0.00485322234, + "scaled_max_abs": 0.00485322234 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "pass", + "tap": "net.head" + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp16", + "id": "tinyvit__pool_divisor__litert_fp16", + "model": "tinyvit", + "path": "litert", + "variant": "pool_divisor" + }, + "verdict": "PASS" +} diff --git a/bench/verdicts_e2e_gated/tinyvit__pool_divisor__litert_fp32.json b/bench/verdicts_e2e_gated/tinyvit__pool_divisor__litert_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..f1480c76db3e9b2774d0746cb34fa4796276f1a3 --- /dev/null +++ b/bench/verdicts_e2e_gated/tinyvit__pool_divisor__litert_fp32.json @@ -0,0 +1,646 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "reason": "first divergence at tap 7 is beyond the hypothesis taps (first 3) \u2014 interface faults surface earlier", + "status": "not_evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "band_ratio": 0.00133615291, + "compared": "partitioned execution vs reference-path execution of the same artifact", + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.78813934e-07, + "mean_abs": 4.06987965e-08, + "psnr_db": 153.115635, + "ref_absmax": 1.33827448, + "rel_max": 1.33615291e-07, + "scaled_max_abs": 1.33615291e-07 + }, + "partition": { + "delegate_boundaries": [ + { + "inputs": 57, + "outputs": [ + "serving_default_output_0_output" + ] + } + ], + "n_delegate_nodes": 1, + "n_ops_total": 173, + "runtime": "TFLite interpreter default op resolver (XNNPACK delegate, CPU, 1 thread)" + }, + "status": "clear" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1", + "basis": "earliest tap over band with in-band predecessors", + "index": 7, + "neighbourhood": [ + { + "band_ratio": 0.0122093036, + "index": 6, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "status": "pass", + "tap": "net.norm" + }, + { + "band_ratio": 1950000.41, + "index": 7, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "status": "fail", + "tap": "net.pool" + }, + { + "band_ratio": 46.5337647, + "index": 8, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.head" + } + ], + "shape": 224, + "tap": "net.pool" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "844380eaf800f5b493ebd5d563d0b9b82eace53384794852c5c8dfb768a0d82f", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "f215f4da600fbabd109654df7eb020955b11a62a8ab4840d1a297bf4291dd345", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [], + "observation_effect_max_abs": { + "192": 0.0, + "224": 0.0 + }, + "primary_class": "D2", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 66.954147, + "metrics": { + "corr": 0.999998439, + "finite": true, + "max_abs": 0.00847685337, + "mean_abs": 0.0016246671, + "psnr_db": 60.236384, + "ref_absmax": 1.26606846, + "rel_max": 0.0066954147, + "scaled_max_abs": 0.0066954147 + }, + "status": "fail", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + }, + "first_fail_index": 7, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.26638033e-08, + "psnr_db": 163.904618, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.013692028, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.47819519e-05, + "mean_abs": 3.77735959e-07, + "psnr_db": 150.658464, + "ref_absmax": 10.7960281, + "rel_max": 1.3692028e-06, + "scaled_max_abs": 1.3692028e-06 + }, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;2" + }, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_ratio": 0.0137194998, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.47819519e-05, + "mean_abs": 3.78651032e-07, + "psnr_db": 150.56143, + "ref_absmax": 10.7744102, + "rel_max": 1.37194998e-06, + "scaled_max_abs": 1.37194998e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;3" + }, + "status": "pass", + "tap": "net.pos_embed" + }, + { + "band_ratio": 0.0133449274, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-05, + "mean_abs": 4.0469488e-07, + "psnr_db": 150.358835, + "ref_absmax": 10.7195148, + "rel_max": 1.33449274e-06, + "scaled_max_abs": 1.33449274e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.0" + }, + { + "band_ratio": 0.0130003848, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-05, + "mean_abs": 4.27641757e-07, + "psnr_db": 150.281717, + "ref_absmax": 11.0036087, + "rel_max": 1.30003848e-06, + "scaled_max_abs": 1.30003848e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.1" + }, + { + "band_ratio": 0.0126057041, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-05, + "mean_abs": 4.47188193e-07, + "psnr_db": 150.363744, + "ref_absmax": 11.3481283, + "rel_max": 1.26057041e-06, + "scaled_max_abs": 1.26057041e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.2" + }, + { + "band_ratio": 0.0104389558, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.29153442e-06, + "mean_abs": 4.01966342e-07, + "psnr_db": 143.372839, + "ref_absmax": 4.11107635, + "rel_max": 1.04389558e-06, + "scaled_max_abs": 1.04389558e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "status": "pass", + "tap": "net.norm" + }, + { + "band_ratio": 1429999.71, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 316.855182, + "mean_abs": 59.9833093, + "psnr_db": -25.7531342, + "ref_absmax": 2.21577096, + "rel_max": 142.999971, + "scaled_max_abs": 142.999971 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_ratio": 66.954147, + "index": 8, + "metrics": { + "corr": 0.999998439, + "finite": true, + "max_abs": 0.00847685337, + "mean_abs": 0.0016246671, + "psnr_db": 60.236384, + "ref_absmax": 1.26606846, + "rel_max": 0.0066954147, + "scaled_max_abs": 0.0066954147 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "near_zero", + "index": 24 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 46.5337647, + "metrics": { + "corr": 0.999999219, + "finite": true, + "max_abs": 0.00625658035, + "mean_abs": 0.0012218587, + "psnr_db": 63.0953371, + "ref_absmax": 1.34452486, + "rel_max": 0.00465337647, + "scaled_max_abs": 0.00465337647 + }, + "status": "fail", + "worst_probe": { + "category": "near_zero", + "index": 27 + } + }, + "first_fail_index": 7, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 0.000827203959, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 9.53674316e-07, + "mean_abs": 3.2793459e-08, + "psnr_db": 164.013874, + "ref_absmax": 11.5288897, + "rel_max": 8.27203959e-08, + "scaled_max_abs": 8.27203959e-08 + }, + "op": { + "candidates": 1, + "layout": [ + 0, + 3, + 1, + 2 + ], + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.Normalize_normalize;4" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0120503822, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-05, + "mean_abs": 3.77230551e-07, + "psnr_db": 151.208122, + "ref_absmax": 11.871088, + "rel_max": 1.20503822e-06, + "scaled_max_abs": 1.20503822e-06 + }, + "op": { + "candidates": 1, + "layout": "nhwc->tokens", + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PatchEmbed_patch_embed/torch.nn.modules.conv.Conv2d_proj;2" + }, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_ratio": 0.0123587661, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-05, + "mean_abs": 3.77991994e-07, + "psnr_db": 151.132396, + "ref_absmax": 11.574873, + "rel_max": 1.23587661e-06, + "scaled_max_abs": 1.23587661e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.PosEmbed_pos_embed;3" + }, + "status": "pass", + "tap": "net.pos_embed" + }, + { + "band_ratio": 0.012026573, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.43051147e-05, + "mean_abs": 4.04609382e-07, + "psnr_db": 151.152989, + "ref_absmax": 11.8945894, + "rel_max": 1.2026573e-06, + "scaled_max_abs": 1.2026573e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_0/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.0" + }, + { + "band_ratio": 0.0109855653, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33514404e-05, + "mean_abs": 4.29329414e-07, + "psnr_db": 151.043175, + "ref_absmax": 12.1536217, + "rel_max": 1.09855653e-06, + "scaled_max_abs": 1.09855653e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_1/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.1" + }, + { + "band_ratio": 0.010672601, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33514404e-05, + "mean_abs": 4.49061651e-07, + "psnr_db": 150.942806, + "ref_absmax": 12.5100155, + "rel_max": 1.0672601e-06, + "scaled_max_abs": 1.0672601e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2;;zoo.Source/zoo.TinyViT_net/torch.nn.modules.container.Sequential_blocks/zoo.Block_2/zoo.Mlp_mlp/torch.nn.modules.li" + }, + "status": "pass", + "tap": "net.blocks.2" + }, + { + "band_ratio": 0.0122093036, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 5.12599945e-06, + "mean_abs": 4.00810134e-07, + "psnr_db": 143.56936, + "ref_absmax": 4.19843721, + "rel_max": 1.22093036e-06, + "scaled_max_abs": 1.22093036e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/torch.nn.modules.normalization.LayerNorm_norm;11" + }, + "status": "pass", + "tap": "net.norm" + }, + { + "band_ratio": 1950000.41, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 433.244785, + "mean_abs": 86.1437857, + "psnr_db": -28.8635581, + "ref_absmax": 2.22176766, + "rel_max": 195.000041, + "scaled_max_abs": 195.000041 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "zoo.Source/zoo.TinyViT_net/zoo.TokenMean_pool;1" + }, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_ratio": 46.5337647, + "index": 8, + "metrics": { + "corr": 0.999999219, + "finite": true, + "max_abs": 0.00625658035, + "mean_abs": 0.0012218587, + "psnr_db": 63.0953371, + "ref_absmax": 1.34452486, + "rel_max": 0.00465337647, + "scaled_max_abs": 0.00465337647 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "Interpreter(experimental_preserve_all_tensors=True, builtin kernels); scope from tensor location name", + "tensor": "serving_default_output_0_output" + }, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "near_zero", + "index": 27 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp32", + "id": "tinyvit__pool_divisor__litert_fp32", + "model": "tinyvit", + "path": "litert", + "variant": "pool_divisor" + }, + "verdict": "FAIL" +} diff --git a/bench/verdicts_e2e_gated/tinyvit__pool_divisor__onnx_fp16.json b/bench/verdicts_e2e_gated/tinyvit__pool_divisor__onnx_fp16.json new file mode 100644 index 0000000000000000000000000000000000000000..1cdbaf06c8a9b94c0e1a3ff051f12b9f3bcadae8 --- /dev/null +++ b/bench/verdicts_e2e_gated/tinyvit__pool_divisor__onnx_fp16.json @@ -0,0 +1,545 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": false, + "note": null, + "status": "clear" + }, + "D2": { + "status": "clear" + }, + "D3": { + "hypotheses": null, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp16, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "status": "clear" + } + }, + "declared_precision": "fp16", + "first_divergence": null, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "ac0e3b32b38e428a910d206ec5447f14032a587c09dec4ee7bee2c21f4f0b269", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "3905d27ff62d39a7d9c6c57e446c43c8e1253d97fac03be1184acea2cc4991fe", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 4.87864017e-05, + "224": 4.37051058e-05 + }, + "primary_class": null, + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.658939385, + "metrics": { + "corr": 0.999998369, + "finite": true, + "max_abs": 0.00834262371, + "mean_abs": 0.00164816977, + "psnr_db": 60.2466927, + "ref_absmax": 1.26606846, + "rel_max": 0.00658939385, + "scaled_max_abs": 0.00658939385 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 0.0441313312, + "index": 0, + "metrics": { + "corr": 0.999999966, + "finite": true, + "max_abs": 0.00508785248, + "mean_abs": 0.000405953078, + "psnr_db": 88.0186903, + "ref_absmax": 11.5288897, + "rel_max": 0.000441313312, + "scaled_max_abs": 0.000441313312 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0469150713, + "index": 1, + "metrics": { + "corr": 0.999999939, + "finite": true, + "max_abs": 0.00506496429, + "mean_abs": 0.000255633799, + "psnr_db": 95.3001421, + "ref_absmax": 10.7960281, + "rel_max": 0.000469150713, + "scaled_max_abs": 0.000469150713 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_ratio": 0.0735365188, + "index": 2, + "metrics": { + "corr": 0.999999921, + "finite": true, + "max_abs": 0.00792312622, + "mean_abs": 0.000301602973, + "psnr_db": 93.5874175, + "ref_absmax": 10.7744102, + "rel_max": 0.000735365188, + "scaled_max_abs": 0.000735365188 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "status": "pass", + "tap": "net.pos_embed" + }, + { + "band_ratio": 0.0642335839, + "index": 3, + "metrics": { + "corr": 0.999999915, + "finite": true, + "max_abs": 0.00688552856, + "mean_abs": 0.000337762151, + "psnr_db": 93.052585, + "ref_absmax": 10.7195148, + "rel_max": 0.000642335839, + "scaled_max_abs": 0.000642335839 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.0" + }, + { + "band_ratio": 0.0711207718, + "index": 4, + "metrics": { + "corr": 0.99999991, + "finite": true, + "max_abs": 0.00782585144, + "mean_abs": 0.000375974454, + "psnr_db": 92.5622871, + "ref_absmax": 11.0036087, + "rel_max": 0.000711207718, + "scaled_max_abs": 0.000711207718 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.1" + }, + { + "band_ratio": 0.0762561059, + "index": 5, + "metrics": { + "corr": 0.999999905, + "finite": true, + "max_abs": 0.00865364075, + "mean_abs": 0.000407947414, + "psnr_db": 92.2800434, + "ref_absmax": 11.3481283, + "rel_max": 0.000762561059, + "scaled_max_abs": 0.000762561059 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.2" + }, + { + "band_ratio": 0.0818820092, + "index": 6, + "metrics": { + "corr": 0.999999846, + "finite": true, + "max_abs": 0.00336623192, + "mean_abs": 0.000424373745, + "psnr_db": 83.0143914, + "ref_absmax": 4.11107635, + "rel_max": 0.000818820092, + "scaled_max_abs": 0.000818820092 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "status": "pass", + "tap": "net.norm" + }, + { + "band_ratio": 0.678896064, + "index": 7, + "metrics": { + "corr": 0.99999981, + "finite": true, + "max_abs": 0.0150427818, + "mean_abs": 0.00289370061, + "psnr_db": 60.5835174, + "ref_absmax": 2.21577096, + "rel_max": 0.00678896064, + "scaled_max_abs": 0.00678896064 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/Div_output_0" + }, + "status": "pass", + "tap": "net.pool" + }, + { + "band_ratio": 0.660766032, + "index": 8, + "metrics": { + "corr": 0.999998372, + "finite": true, + "max_abs": 0.00836575031, + "mean_abs": 0.00164719504, + "psnr_db": 60.2472816, + "ref_absmax": 1.26606846, + "rel_max": 0.00660766032, + "scaled_max_abs": 0.00660766032 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "pass", + "tap": "net.head" + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 0.461835468, + "metrics": { + "corr": 0.999999134, + "finite": true, + "max_abs": 0.00620949268, + "mean_abs": 0.00125833838, + "psnr_db": 63.0442076, + "ref_absmax": 1.34452486, + "rel_max": 0.00461835468, + "scaled_max_abs": 0.00461835468 + }, + "status": "pass" + }, + "first_fail_index": null, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 0.0439328023, + "index": 0, + "metrics": { + "corr": 0.999999965, + "finite": true, + "max_abs": 0.00506496429, + "mean_abs": 0.000406712054, + "psnr_db": 88.0749992, + "ref_absmax": 11.5288897, + "rel_max": 0.000439328023, + "scaled_max_abs": 0.000439328023 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0469161546, + "index": 1, + "metrics": { + "corr": 0.99999994, + "finite": true, + "max_abs": 0.00556945801, + "mean_abs": 0.000254492238, + "psnr_db": 95.9056844, + "ref_absmax": 11.871088, + "rel_max": 0.000469161546, + "scaled_max_abs": 0.000469161546 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_ratio": 0.07491884, + "index": 2, + "metrics": { + "corr": 0.99999992, + "finite": true, + "max_abs": 0.00867176056, + "mean_abs": 0.000301083888, + "psnr_db": 94.1877045, + "ref_absmax": 11.574873, + "rel_max": 0.0007491884, + "scaled_max_abs": 0.0007491884 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "status": "pass", + "tap": "net.pos_embed" + }, + { + "band_ratio": 0.0635564292, + "index": 3, + "metrics": { + "corr": 0.999999915, + "finite": true, + "max_abs": 0.00755977631, + "mean_abs": 0.000339032434, + "psnr_db": 93.8757594, + "ref_absmax": 11.8945894, + "rel_max": 0.000635564292, + "scaled_max_abs": 0.000635564292 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.0" + }, + { + "band_ratio": 0.0671218039, + "index": 4, + "metrics": { + "corr": 0.99999991, + "finite": true, + "max_abs": 0.0081577301, + "mean_abs": 0.000376167463, + "psnr_db": 93.3355793, + "ref_absmax": 12.1536217, + "rel_max": 0.000671218039, + "scaled_max_abs": 0.000671218039 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.1" + }, + { + "band_ratio": 0.0664445648, + "index": 5, + "metrics": { + "corr": 0.999999905, + "finite": true, + "max_abs": 0.00831222534, + "mean_abs": 0.000408523199, + "psnr_db": 92.8873389, + "ref_absmax": 12.5100155, + "rel_max": 0.000664445648, + "scaled_max_abs": 0.000664445648 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.2" + }, + { + "band_ratio": 0.0851897059, + "index": 6, + "metrics": { + "corr": 0.999999848, + "finite": true, + "max_abs": 0.00357663631, + "mean_abs": 0.000421772845, + "psnr_db": 83.2639281, + "ref_absmax": 4.19843721, + "rel_max": 0.000851897059, + "scaled_max_abs": 0.000851897059 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "status": "pass", + "tap": "net.norm" + }, + { + "band_ratio": 0.487457088, + "index": 7, + "metrics": { + "corr": 0.999999832, + "finite": true, + "max_abs": 0.010830164, + "mean_abs": 0.00226106985, + "psnr_db": 62.7453328, + "ref_absmax": 2.22176766, + "rel_max": 0.00487457088, + "scaled_max_abs": 0.00487457088 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/Div_output_0" + }, + "status": "pass", + "tap": "net.pool" + }, + { + "band_ratio": 0.462597968, + "index": 8, + "metrics": { + "corr": 0.999999132, + "finite": true, + "max_abs": 0.00621974468, + "mean_abs": 0.00125831807, + "psnr_db": 63.0439163, + "ref_absmax": 1.34452486, + "rel_max": 0.00462597968, + "scaled_max_abs": 0.00462597968 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "pass", + "tap": "net.head" + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp16", + "id": "tinyvit__pool_divisor__onnx_fp16", + "model": "tinyvit", + "path": "onnx", + "variant": "pool_divisor" + }, + "verdict": "PASS" +} diff --git a/bench/verdicts_e2e_gated/tinyvit__pool_divisor__onnx_fp32.json b/bench/verdicts_e2e_gated/tinyvit__pool_divisor__onnx_fp32.json new file mode 100644 index 0000000000000000000000000000000000000000..aec3d45aae942a2848a7f644887374595743321f --- /dev/null +++ b/bench/verdicts_e2e_gated/tinyvit__pool_divisor__onnx_fp32.json @@ -0,0 +1,617 @@ +{ + "bands": { + "aggregation": "suite-level (all probes of a tap pooled), applied per tap", + "fp16": { + "limit": 0.01, + "metric": "rel_max" + }, + "fp32": { + "limit": 0.0001, + "metric": "scaled_max_abs" + }, + "int8": { + "corr_min": 0.99, + "gated_on": "non-exciter probes (natural, uniform)", + "metric": "psnr_db & corr", + "psnr_db_min": 30.0, + "reported_not_gated": [ + "wide_range", + "near_zero", + "saturating" + ] + }, + "reproducibility_bound_max_abs": 1e-06, + "version": "d04-v1" + }, + "classes": { + "D1": { + "end_to_end_over_band": true, + "note": null, + "status": "flag" + }, + "D2": { + "status": "flag" + }, + "D3": { + "hypotheses": { + "reason": "first divergence at tap 7 is beyond the hypothesis taps (first 3) \u2014 interface faults surface earlier", + "status": "not_evaluated" + }, + "interface": { + "issues": [], + "note": "names are not compared (converters rename I/O); count and shape are structural (D3); a float32->float16 I/O dtype is precision narrowing, judged with the artifact's compute precision (D1), not as D3", + "precision_narrowing": [], + "status": "match" + }, + "status": "clear" + }, + "D4": { + "reason": "declared precision is fp32, not int8", + "status": "not_applicable" + }, + "D5": { + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)", + "status": "not_judgeable" + }, + "D6": { + "reason": "nominal shape already over band; shape dependence is masked", + "status": "inconclusive" + } + }, + "declared_precision": "fp32", + "first_divergence": { + "artifact_tensor": "/net/pool/Div_output_0", + "basis": "earliest tap over band with in-band predecessors", + "index": 7, + "neighbourhood": [ + { + "band_ratio": 0.0102217425, + "index": 6, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "status": "pass", + "tap": "net.norm" + }, + { + "band_ratio": 50.7599233, + "index": 7, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/Div_output_0" + }, + "status": "fail", + "tap": "net.pool" + }, + { + "band_ratio": 46.535538, + "index": 8, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head" + } + ], + "shape": 224, + "tap": "net.pool" + }, + "gating": "end_to_end", + "inputs": { + "192": { + "converted": "29e7e1dbaad6a6990775eb00895aa52693a3a89cdbcd96543c0bafbf687bb936", + "probes": "d4e586d231d5755c5db16def842b9794786a7de9af65debcb50a2f1c086e2c9f", + "reference": "2ca581f3202378f8084e7bd34783ab4eec6af6f15178d69c40c79825d6435b70" + }, + "224": { + "converted": "63cfd5e8ddbb86e7614d07034c066744d3e7c0eb4d47e246e163194db543f59d", + "probes": "9ce0d9e815388953a6bc42e5fcf7ac408dc695b3b2b7ca947c28cf2691e2de22", + "reference": "08b2e999a469a791e383cd7a40a48f0afcd09bad45f6e76cc84f9982a315722f" + } + }, + "judge": { + "convertdrift": "0.1.0", + "numpy": "2.2.6" + }, + "not_judgeable": [ + { + "item": "D5", + "reason": "CPUExecutionProvider is the only provider on the reference path: every node is assigned to it, so there is no partition or fallback to judge (the CoreML EP is an accelerator path, outside the reference path)" + } + ], + "observation_effect_max_abs": { + "192": 1.1920929e-07, + "224": 1.1920929e-07 + }, + "primary_class": "D2", + "reference_path": "CPU only, pinned producer envs (see bench/manifest.json)", + "reproducibility": { + "bound": 1e-06, + "max_abs_run_to_run": 0.0, + "ok": true, + "runs": 3 + }, + "schema": "convertdrift.verdict/1", + "shapes": { + "192": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 66.9569717, + "metrics": { + "corr": 0.999998439, + "finite": true, + "max_abs": 0.008477211, + "mean_abs": 0.00162467309, + "psnr_db": 60.2363699, + "ref_absmax": 1.26606846, + "rel_max": 0.00669569717, + "scaled_max_abs": 0.00669569717 + }, + "status": "fail", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + }, + "first_fail_index": 7, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 0.0, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 11.5288897, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0119253147, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.28746033e-05, + "mean_abs": 3.19462653e-07, + "psnr_db": 151.866979, + "ref_absmax": 10.7960281, + "rel_max": 1.19253147e-06, + "scaled_max_abs": 1.19253147e-06 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_ratio": 0.0119492417, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.28746033e-05, + "mean_abs": 3.49198263e-07, + "psnr_db": 151.445693, + "ref_absmax": 10.7744102, + "rel_max": 1.19492417e-06, + "scaled_max_abs": 1.19492417e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "status": "pass", + "tap": "net.pos_embed" + }, + { + "band_ratio": 0.0124552656, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33514404e-05, + "mean_abs": 3.75557543e-07, + "psnr_db": 151.183096, + "ref_absmax": 10.7195148, + "rel_max": 1.24552656e-06, + "scaled_max_abs": 1.24552656e-06 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.0" + }, + { + "band_ratio": 0.0121336925, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33514404e-05, + "mean_abs": 4.00633754e-07, + "psnr_db": 151.04211, + "ref_absmax": 11.0036087, + "rel_max": 1.21336925e-06, + "scaled_max_abs": 1.21336925e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.1" + }, + { + "band_ratio": 0.0117653238, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.33514404e-05, + "mean_abs": 4.22095975e-07, + "psnr_db": 151.052516, + "ref_absmax": 11.3481283, + "rel_max": 1.17653238e-06, + "scaled_max_abs": 1.17653238e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.2" + }, + { + "band_ratio": 0.0104389558, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.29153442e-06, + "mean_abs": 3.91903887e-07, + "psnr_db": 143.585678, + "ref_absmax": 4.11107635, + "rel_max": 1.04389558e-06, + "scaled_max_abs": 1.04389558e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "status": "pass", + "tap": "net.norm" + }, + { + "band_ratio": 68.9688417, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0152819157, + "mean_abs": 0.00289285857, + "psnr_db": 60.5809346, + "ref_absmax": 2.21577096, + "rel_max": 0.00689688417, + "scaled_max_abs": 0.00689688417 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/Div_output_0" + }, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_ratio": 66.9560302, + "index": 8, + "metrics": { + "corr": 0.999998439, + "finite": true, + "max_abs": 0.00847709179, + "mean_abs": 0.00162466808, + "psnr_db": 60.2364041, + "ref_absmax": 1.26606846, + "rel_max": 0.00669560302, + "scaled_max_abs": 0.00669560302 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "near_zero", + "index": 26 + } + } + ] + }, + "224": { + "e2e": { + "argmax_agreement": 1.0, + "band_ratio": 46.535538, + "metrics": { + "corr": 0.999999219, + "finite": true, + "max_abs": 0.00625681877, + "mean_abs": 0.00122184791, + "psnr_db": 63.0954314, + "ref_absmax": 1.34452486, + "rel_max": 0.0046535538, + "scaled_max_abs": 0.0046535538 + }, + "status": "fail", + "worst_probe": { + "category": "near_zero", + "index": 27 + } + }, + "first_fail_index": 7, + "n_judged": 9, + "n_taps": 9, + "taps": [ + { + "band_ratio": 0.0, + "index": 0, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0, + "mean_abs": 0.0, + "psnr_db": 200.0, + "ref_absmax": 11.5288897, + "rel_max": 0.0, + "scaled_max_abs": 0.0 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/normalize/Div_output_0" + }, + "status": "pass", + "tap": "normalize" + }, + { + "band_ratio": 0.0104436645, + "index": 1, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.23977661e-05, + "mean_abs": 3.18193685e-07, + "psnr_db": 152.441072, + "ref_absmax": 11.871088, + "rel_max": 1.04436645e-06, + "scaled_max_abs": 1.04436645e-06 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/patch_embed/Transpose_output_0" + }, + "status": "pass", + "tap": "net.patch_embed" + }, + { + "band_ratio": 0.0107109306, + "index": 2, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.23977661e-05, + "mean_abs": 3.18841259e-07, + "psnr_db": 152.36286, + "ref_absmax": 11.574873, + "rel_max": 1.07109306e-06, + "scaled_max_abs": 1.07109306e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pos_embed/Add_output_0" + }, + "status": "pass", + "tap": "net.pos_embed" + }, + { + "band_ratio": 0.0104230299, + "index": 3, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.23977661e-05, + "mean_abs": 3.4705172e-07, + "psnr_db": 152.330323, + "ref_absmax": 11.8945894, + "rel_max": 1.04230299e-06, + "scaled_max_abs": 1.04230299e-06 + }, + "op": { + "candidates": 2, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.0/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.0" + }, + { + "band_ratio": 0.010200882, + "index": 4, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.23977661e-05, + "mean_abs": 3.72946531e-07, + "psnr_db": 152.172601, + "ref_absmax": 12.1536217, + "rel_max": 1.0200882e-06, + "scaled_max_abs": 1.0200882e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.1/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.1" + }, + { + "band_ratio": 0.00991027239, + "index": 5, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 1.23977661e-05, + "mean_abs": 3.93472908e-07, + "psnr_db": 152.03444, + "ref_absmax": 12.5100155, + "rel_max": 9.91027239e-07, + "scaled_max_abs": 9.91027239e-07 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/blocks/blocks.2/Add_1_output_0" + }, + "status": "pass", + "tap": "net.blocks.2" + }, + { + "band_ratio": 0.0102217425, + "index": 6, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 4.29153442e-06, + "mean_abs": 3.56977886e-07, + "psnr_db": 144.555686, + "ref_absmax": 4.19843721, + "rel_max": 1.02217425e-06, + "scaled_max_abs": 1.02217425e-06 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/norm/LayerNormalization_output_0" + }, + "status": "pass", + "tap": "net.norm" + }, + { + "band_ratio": 50.7599233, + "index": 7, + "metrics": { + "corr": 1.0, + "finite": true, + "max_abs": 0.0112776756, + "mean_abs": 0.00224244692, + "psnr_db": 62.8264423, + "ref_absmax": 2.22176766, + "rel_max": 0.00507599233, + "scaled_max_abs": 0.00507599233 + }, + "op": { + "candidates": 1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "/net/pool/Div_output_0" + }, + "status": "fail", + "tap": "net.pool", + "worst_probe": { + "category": "near_zero", + "index": 25 + } + }, + { + "band_ratio": 46.535538, + "index": 8, + "metrics": { + "corr": 0.999999219, + "finite": true, + "max_abs": 0.00625681877, + "mean_abs": 0.0012218455, + "psnr_db": 63.0954445, + "ref_absmax": 1.34452486, + "rel_max": 0.0046535538, + "scaled_max_abs": 0.0046535538 + }, + "op": { + "candidates": -1, + "layout": null, + "method": "onnx graph-output augmentation; scope from node name", + "tensor": "output" + }, + "status": "fail", + "tap": "net.head", + "worst_probe": { + "category": "near_zero", + "index": 27 + } + } + ] + } + }, + "subject": { + "artifact_precision_requested": "fp32", + "id": "tinyvit__pool_divisor__onnx_fp32", + "model": "tinyvit", + "path": "onnx", + "variant": "pool_divisor" + }, + "verdict": "FAIL" +} diff --git a/bench/zoo_spec.json b/bench/zoo_spec.json new file mode 100644 index 0000000000000000000000000000000000000000..6f3c4812248d70d6bcb3919edd29308dc1479b8a --- /dev/null +++ b/bench/zoo_spec.json @@ -0,0 +1,197 @@ +{ + "hypotheses": { + "channel_bgr": [ + "bgr", + "normalize" + ], + "double_normalize": [ + "normalize", + "normalize" + ], + "extra_scale_1_255": [ + "scale255", + "normalize" + ], + "hw_transpose": [ + "hw_swap", + "normalize" + ], + "no_normalize": [] + }, + "models": { + "mobilenet_v3_small": { + "int8_override_sites": [ + "net.features.3", + "net.features.9" + ], + "taps": [ + "normalize", + "net.features.0", + "net.features.1", + "net.features.2", + "net.features.3", + "net.features.4", + "net.features.5", + "net.features.6", + "net.features.7", + "net.features.8", + "net.features.9", + "net.features.10", + "net.features.11", + "net.features.12", + "net.avgpool", + "net.classifier" + ], + "variants": { + "baked_shape": { + "class": "D6", + "description": "pool divisor baked at the nominal shape", + "site": "net.avgpool" + }, + "clean": { + "class": null, + "description": "faithful conversion of the source", + "site": null + }, + "drop_normalize": { + "class": "D3", + "description": "artifact omits the input normalisation", + "site": "normalize" + }, + "input_hw_swap": { + "class": "D3", + "description": "artifact reads the input with H and W swapped", + "site": "normalize" + }, + "layout_swap": { + "class": "D2", + "description": "internal H<->W transpose at a block boundary", + "site": "net.features.6" + }, + "pool_divisor": { + "class": "D2", + "description": "global/SE average pool divides by padded count", + "site": "net.features.4" + } + }, + "weights_sha256": "047dcff4addef86ea5bc2eff13c9614dc11f47ab1160d0a71a25e7db994f4e1f" + }, + "resnet18": { + "int8_override_sites": [ + "net.layer2.0", + "net.layer3.1" + ], + "taps": [ + "normalize", + "net.maxpool", + "net.layer1.0", + "net.layer1.1", + "net.layer2.0", + "net.layer2.1", + "net.layer3.0", + "net.layer3.1", + "net.layer4.0", + "net.layer4.1", + "net.avgpool", + "net.fc" + ], + "variants": { + "baked_shape": { + "class": "D6", + "description": "pool divisor baked at the nominal shape", + "site": "net.avgpool" + }, + "clean": { + "class": null, + "description": "faithful conversion of the source", + "site": null + }, + "drop_normalize": { + "class": "D3", + "description": "artifact omits the input normalisation", + "site": "normalize" + }, + "input_hw_swap": { + "class": "D3", + "description": "artifact reads the input with H and W swapped", + "site": "normalize" + }, + "layout_swap": { + "class": "D2", + "description": "internal H<->W transpose at a block boundary", + "site": "net.layer3.0" + }, + "pool_divisor": { + "class": "D2", + "description": "global/SE average pool divides by padded count", + "site": "net.avgpool" + } + }, + "weights_sha256": "f37072fd47e89c5e827621c5baffa7500819f7896bbacec160b1a16c560e07ec" + }, + "tinyvit": { + "int8_override_sites": [ + "net.blocks.0", + "net.blocks.2" + ], + "taps": [ + "normalize", + "net.patch_embed", + "net.pos_embed", + "net.blocks.0", + "net.blocks.1", + "net.blocks.2", + "net.norm", + "net.pool", + "net.head" + ], + "variants": { + "baked_shape": { + "class": "D6", + "description": "pool divisor baked at the nominal shape", + "site": "net.pool" + }, + "clean": { + "class": null, + "description": "faithful conversion of the source", + "site": null + }, + "drop_normalize": { + "class": "D3", + "description": "artifact omits the input normalisation", + "site": "normalize" + }, + "gelu_tanh": { + "class": "D2", + "description": "exact GELU rewritten to the tanh approximation", + "site": "net.blocks.1" + }, + "input_hw_swap": { + "class": "D3", + "description": "artifact reads the input with H and W swapped", + "site": "normalize" + }, + "interp_mode": { + "class": "D2", + "description": "pos-embed bilinear resize with align_corners flipped", + "site": "net.pos_embed" + }, + "layout_swap": { + "class": "D2", + "description": "internal H<->W transpose at a block boundary", + "site": "net.patch_embed" + }, + "pool_divisor": { + "class": "D2", + "description": "global/SE average pool divides by padded count", + "site": "net.pool" + } + }, + "weights_sha256": "1421c90a14f7d9a5e3352cf19f59d4a06ae259f65632f60b4766a5f48c29b23f" + } + }, + "shapes": [ + 224, + 192 + ] +} \ No newline at end of file